5package com.google.ortools.pdlp;
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
35 polishingPhaseType_ = 0;
36 terminationReason_ = 0;
38 iterationStats_ = java.util.Collections.emptyList();
41 public static final com.google.protobuf.Descriptors.Descriptor
43 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_FeasibilityPolishingDetails_descriptor;
47 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
49 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_FeasibilityPolishingDetails_fieldAccessorTable
50 .ensureFieldAccessorsInitialized(
51 com.google.ortools.pdlp.FeasibilityPolishingDetails.class, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder.class);
54 private int bitField0_;
56 private int polishingPhaseType_ = 0;
62 return ((bitField0_ & 0x00000001) != 0);
70 return result ==
null ? com.google.ortools.pdlp.PolishingPhaseType.POLISHING_PHASE_TYPE_UNSPECIFIED : result;
74 private int mainIterationCount_ = 0;
86 return ((bitField0_ & 0x00000002) != 0);
99 return mainIterationCount_;
110 return ((bitField0_ & 0x00000004) != 0);
118 return params_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance() : params_;
125 return params_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance() : params_;
129 private int terminationReason_ = 0;
135 return ((bitField0_ & 0x00000008) != 0);
143 return result ==
null ? com.google.ortools.pdlp.TerminationReason.TERMINATION_REASON_UNSPECIFIED : result;
147 private int iterationCount_ = 0;
154 return ((bitField0_ & 0x00000010) != 0);
162 return iterationCount_;
166 private double solveTimeSec_ = 0D;
173 return ((bitField0_ & 0x00000020) != 0);
181 return solveTimeSec_;
192 return ((bitField0_ & 0x00000040) != 0);
200 return solutionStats_ ==
null ? com.google.ortools.pdlp.IterationStats.getDefaultInstance() : solutionStats_;
207 return solutionStats_ ==
null ? com.google.ortools.pdlp.IterationStats.getDefaultInstance() : solutionStats_;
211 private int solutionType_ = 0;
217 return ((bitField0_ & 0x00000080) != 0);
225 return result ==
null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
229 @SuppressWarnings(
"serial")
230 private java.util.List<com.google.ortools.pdlp.
IterationStats> iterationStats_;
236 return iterationStats_;
242 public java.util.List<? extends com.google.ortools.pdlp.IterationStatsOrBuilder>
244 return iterationStats_;
251 return iterationStats_.size();
258 return iterationStats_.get(index);
266 return iterationStats_.get(index);
269 private byte memoizedIsInitialized = -1;
276 memoizedIsInitialized = 1;
281 public void writeTo(com.google.protobuf.CodedOutputStream output)
282 throws java.io.IOException {
283 if (((bitField0_ & 0x00000001) != 0)) {
284 output.writeEnum(1, polishingPhaseType_);
286 if (((bitField0_ & 0x00000002) != 0)) {
287 output.writeInt32(2, mainIterationCount_);
289 if (((bitField0_ & 0x00000004) != 0)) {
292 if (((bitField0_ & 0x00000008) != 0)) {
293 output.writeEnum(4, terminationReason_);
295 if (((bitField0_ & 0x00000010) != 0)) {
296 output.writeInt32(5, iterationCount_);
298 if (((bitField0_ & 0x00000020) != 0)) {
299 output.writeDouble(6, solveTimeSec_);
301 if (((bitField0_ & 0x00000040) != 0)) {
304 if (((bitField0_ & 0x00000080) != 0)) {
305 output.writeEnum(8, solutionType_);
307 for (
int i = 0; i < iterationStats_.size(); i++) {
308 output.writeMessage(9, iterationStats_.get(i));
310 getUnknownFields().writeTo(output);
315 int size = memoizedSize;
316 if (size != -1)
return size;
319 if (((bitField0_ & 0x00000001) != 0)) {
320 size += com.google.protobuf.CodedOutputStream
321 .computeEnumSize(1, polishingPhaseType_);
323 if (((bitField0_ & 0x00000002) != 0)) {
324 size += com.google.protobuf.CodedOutputStream
325 .computeInt32Size(2, mainIterationCount_);
327 if (((bitField0_ & 0x00000004) != 0)) {
328 size += com.google.protobuf.CodedOutputStream
331 if (((bitField0_ & 0x00000008) != 0)) {
332 size += com.google.protobuf.CodedOutputStream
333 .computeEnumSize(4, terminationReason_);
335 if (((bitField0_ & 0x00000010) != 0)) {
336 size += com.google.protobuf.CodedOutputStream
337 .computeInt32Size(5, iterationCount_);
339 if (((bitField0_ & 0x00000020) != 0)) {
340 size += com.google.protobuf.CodedOutputStream
341 .computeDoubleSize(6, solveTimeSec_);
343 if (((bitField0_ & 0x00000040) != 0)) {
344 size += com.google.protobuf.CodedOutputStream
347 if (((bitField0_ & 0x00000080) != 0)) {
348 size += com.google.protobuf.CodedOutputStream
349 .computeEnumSize(8, solutionType_);
351 for (
int i = 0; i < iterationStats_.size(); i++) {
352 size += com.google.protobuf.CodedOutputStream
353 .computeMessageSize(9, iterationStats_.get(i));
355 size += getUnknownFields().getSerializedSize();
361 public boolean equals(
final java.lang.Object obj) {
365 if (!(obj instanceof com.google.ortools.pdlp.FeasibilityPolishingDetails)) {
366 return super.equals(obj);
372 if (polishingPhaseType_ != other.polishingPhaseType_)
return false;
386 if (terminationReason_ != other.terminationReason_)
return false;
396 != java.lang.Double.doubleToLongBits(
406 if (solutionType_ != other.solutionType_)
return false;
410 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
416 if (memoizedHashCode != 0) {
417 return memoizedHashCode;
423 hash = (53 * hash) + polishingPhaseType_;
435 hash = (53 * hash) + terminationReason_;
443 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
452 hash = (53 * hash) + solutionType_;
458 hash = (29 * hash) + getUnknownFields().hashCode();
459 memoizedHashCode = hash;
464 java.nio.ByteBuffer data)
465 throws com.google.protobuf.InvalidProtocolBufferException {
466 return PARSER.parseFrom(data);
469 java.nio.ByteBuffer data,
470 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
471 throws com.google.protobuf.InvalidProtocolBufferException {
472 return PARSER.parseFrom(data, extensionRegistry);
475 com.google.protobuf.ByteString data)
476 throws com.google.protobuf.InvalidProtocolBufferException {
477 return PARSER.parseFrom(data);
480 com.google.protobuf.ByteString data,
481 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
482 throws com.google.protobuf.InvalidProtocolBufferException {
483 return PARSER.parseFrom(data, extensionRegistry);
486 throws com.google.protobuf.InvalidProtocolBufferException {
487 return PARSER.parseFrom(data);
491 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
492 throws com.google.protobuf.InvalidProtocolBufferException {
493 return PARSER.parseFrom(data, extensionRegistry);
496 throws java.io.IOException {
497 return com.google.protobuf.GeneratedMessage
498 .parseWithIOException(PARSER, input);
501 java.io.InputStream input,
502 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
503 throws java.io.IOException {
504 return com.google.protobuf.GeneratedMessage
505 .parseWithIOException(PARSER, input, extensionRegistry);
509 throws java.io.IOException {
510 return com.google.protobuf.GeneratedMessage
511 .parseDelimitedWithIOException(PARSER, input);
515 java.io.InputStream input,
516 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
517 throws java.io.IOException {
518 return com.google.protobuf.GeneratedMessage
519 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
522 com.google.protobuf.CodedInputStream input)
523 throws java.io.IOException {
524 return com.google.protobuf.GeneratedMessage
525 .parseWithIOException(PARSER, input);
528 com.google.protobuf.CodedInputStream input,
529 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
530 throws java.io.IOException {
531 return com.google.protobuf.GeneratedMessage
532 .parseWithIOException(PARSER, input, extensionRegistry);
540 public static Builder newBuilder(com.google.ortools.pdlp.FeasibilityPolishingDetails prototype) {
545 return this == DEFAULT_INSTANCE
551 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
565 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
568 public static final com.google.protobuf.Descriptors.Descriptor
570 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_FeasibilityPolishingDetails_descriptor;
574 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
576 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_FeasibilityPolishingDetails_fieldAccessorTable
577 .ensureFieldAccessorsInitialized(
578 com.google.ortools.pdlp.FeasibilityPolishingDetails.class, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder.class);
583 maybeForceBuilderInitialization();
587 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
589 maybeForceBuilderInitialization();
591 private void maybeForceBuilderInitialization() {
592 if (com.google.protobuf.GeneratedMessage
593 .alwaysUseFieldBuilders) {
594 getParamsFieldBuilder();
595 getSolutionStatsFieldBuilder();
596 getIterationStatsFieldBuilder();
603 polishingPhaseType_ = 0;
604 mainIterationCount_ = 0;
606 if (paramsBuilder_ !=
null) {
607 paramsBuilder_.dispose();
608 paramsBuilder_ =
null;
610 terminationReason_ = 0;
613 solutionStats_ =
null;
614 if (solutionStatsBuilder_ !=
null) {
615 solutionStatsBuilder_.dispose();
616 solutionStatsBuilder_ =
null;
619 if (iterationStatsBuilder_ ==
null) {
620 iterationStats_ = java.util.Collections.emptyList();
622 iterationStats_ =
null;
623 iterationStatsBuilder_.clear();
625 bitField0_ = (bitField0_ & ~0x00000100);
630 public com.google.protobuf.Descriptors.Descriptor
632 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_FeasibilityPolishingDetails_descriptor;
637 return com.google.ortools.pdlp.FeasibilityPolishingDetails.getDefaultInstance();
644 throw newUninitializedMessageException(result);
652 buildPartialRepeatedFields(result);
653 if (bitField0_ != 0) { buildPartial0(result); }
658 private void buildPartialRepeatedFields(com.google.ortools.pdlp.FeasibilityPolishingDetails result) {
659 if (iterationStatsBuilder_ ==
null) {
660 if (((bitField0_ & 0x00000100) != 0)) {
661 iterationStats_ = java.util.Collections.unmodifiableList(iterationStats_);
662 bitField0_ = (bitField0_ & ~0x00000100);
664 result.iterationStats_ = iterationStats_;
666 result.iterationStats_ = iterationStatsBuilder_.build();
670 private void buildPartial0(com.google.ortools.pdlp.FeasibilityPolishingDetails result) {
671 int from_bitField0_ = bitField0_;
672 int to_bitField0_ = 0;
673 if (((from_bitField0_ & 0x00000001) != 0)) {
674 result.polishingPhaseType_ = polishingPhaseType_;
675 to_bitField0_ |= 0x00000001;
677 if (((from_bitField0_ & 0x00000002) != 0)) {
678 result.mainIterationCount_ = mainIterationCount_;
679 to_bitField0_ |= 0x00000002;
681 if (((from_bitField0_ & 0x00000004) != 0)) {
682 result.params_ = paramsBuilder_ ==
null
684 : paramsBuilder_.build();
685 to_bitField0_ |= 0x00000004;
687 if (((from_bitField0_ & 0x00000008) != 0)) {
688 result.terminationReason_ = terminationReason_;
689 to_bitField0_ |= 0x00000008;
691 if (((from_bitField0_ & 0x00000010) != 0)) {
692 result.iterationCount_ = iterationCount_;
693 to_bitField0_ |= 0x00000010;
695 if (((from_bitField0_ & 0x00000020) != 0)) {
696 result.solveTimeSec_ = solveTimeSec_;
697 to_bitField0_ |= 0x00000020;
699 if (((from_bitField0_ & 0x00000040) != 0)) {
700 result.solutionStats_ = solutionStatsBuilder_ ==
null
702 : solutionStatsBuilder_.build();
703 to_bitField0_ |= 0x00000040;
705 if (((from_bitField0_ & 0x00000080) != 0)) {
706 result.solutionType_ = solutionType_;
707 to_bitField0_ |= 0x00000080;
709 result.bitField0_ |= to_bitField0_;
714 if (other instanceof com.google.ortools.pdlp.FeasibilityPolishingDetails) {
715 return mergeFrom((com.google.ortools.pdlp.FeasibilityPolishingDetails)other);
717 super.mergeFrom(other);
723 if (other == com.google.ortools.pdlp.FeasibilityPolishingDetails.getDefaultInstance())
return this;
724 if (other.hasPolishingPhaseType()) {
727 if (other.hasMainIterationCount()) {
730 if (other.hasParams()) {
733 if (other.hasTerminationReason()) {
736 if (other.hasIterationCount()) {
739 if (other.hasSolveTimeSec()) {
742 if (other.hasSolutionStats()) {
745 if (other.hasSolutionType()) {
748 if (iterationStatsBuilder_ ==
null) {
749 if (!other.iterationStats_.isEmpty()) {
750 if (iterationStats_.isEmpty()) {
751 iterationStats_ = other.iterationStats_;
752 bitField0_ = (bitField0_ & ~0x00000100);
754 ensureIterationStatsIsMutable();
755 iterationStats_.addAll(other.iterationStats_);
760 if (!other.iterationStats_.isEmpty()) {
761 if (iterationStatsBuilder_.isEmpty()) {
762 iterationStatsBuilder_.dispose();
763 iterationStatsBuilder_ =
null;
764 iterationStats_ = other.iterationStats_;
765 bitField0_ = (bitField0_ & ~0x00000100);
766 iterationStatsBuilder_ =
767 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
768 getIterationStatsFieldBuilder() :
null;
770 iterationStatsBuilder_.addAllMessages(other.iterationStats_);
774 this.mergeUnknownFields(other.getUnknownFields());
786 com.google.protobuf.CodedInputStream input,
787 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
788 throws java.io.IOException {
789 if (extensionRegistry ==
null) {
790 throw new java.lang.NullPointerException();
793 boolean done =
false;
795 int tag = input.readTag();
801 int tmpRaw = input.readEnum();
803 com.google.ortools.pdlp.PolishingPhaseType.forNumber(tmpRaw);
804 if (tmpValue ==
null) {
805 mergeUnknownVarintField(1, tmpRaw);
807 polishingPhaseType_ = tmpRaw;
808 bitField0_ |= 0x00000001;
813 mainIterationCount_ = input.readInt32();
814 bitField0_ |= 0x00000002;
819 getParamsFieldBuilder().getBuilder(),
821 bitField0_ |= 0x00000004;
825 int tmpRaw = input.readEnum();
827 com.google.ortools.pdlp.TerminationReason.forNumber(tmpRaw);
828 if (tmpValue ==
null) {
829 mergeUnknownVarintField(4, tmpRaw);
831 terminationReason_ = tmpRaw;
832 bitField0_ |= 0x00000008;
837 iterationCount_ = input.readInt32();
838 bitField0_ |= 0x00000010;
842 solveTimeSec_ = input.readDouble();
843 bitField0_ |= 0x00000020;
848 getSolutionStatsFieldBuilder().getBuilder(),
850 bitField0_ |= 0x00000040;
854 int tmpRaw = input.readEnum();
856 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
857 if (tmpValue ==
null) {
858 mergeUnknownVarintField(8, tmpRaw);
860 solutionType_ = tmpRaw;
861 bitField0_ |= 0x00000080;
868 com.google.ortools.pdlp.IterationStats.parser(),
870 if (iterationStatsBuilder_ ==
null) {
871 ensureIterationStatsIsMutable();
872 iterationStats_.add(m);
874 iterationStatsBuilder_.addMessage(m);
879 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
886 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
887 throw e.unwrapIOException();
893 private int bitField0_;
895 private int polishingPhaseType_ = 0;
901 return ((bitField0_ & 0x00000001) != 0);
910 return result ==
null ? com.google.ortools.pdlp.PolishingPhaseType.POLISHING_PHASE_TYPE_UNSPECIFIED : result;
919 throw new NullPointerException();
921 bitField0_ |= 0x00000001;
922 polishingPhaseType_ = value.getNumber();
931 bitField0_ = (bitField0_ & ~0x00000001);
932 polishingPhaseType_ = 0;
937 private int mainIterationCount_ ;
949 return ((bitField0_ & 0x00000002) != 0);
962 return mainIterationCount_;
976 mainIterationCount_ = value;
977 bitField0_ |= 0x00000002;
991 bitField0_ = (bitField0_ & ~0x00000002);
992 mainIterationCount_ = 0;
998 private com.google.protobuf.SingleFieldBuilder<
999 com.google.ortools.pdlp.PrimalDualHybridGradientParams, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParamsOrBuilder> paramsBuilder_;
1005 return ((bitField0_ & 0x00000004) != 0);
1012 if (paramsBuilder_ ==
null) {
1013 return params_ ==
null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance() : params_;
1015 return paramsBuilder_.getMessage();
1022 if (paramsBuilder_ ==
null) {
1023 if (value ==
null) {
1024 throw new NullPointerException();
1028 paramsBuilder_.setMessage(value);
1030 bitField0_ |= 0x00000004;
1038 com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder builderForValue) {
1039 if (paramsBuilder_ ==
null) {
1040 params_ = builderForValue.build();
1042 paramsBuilder_.setMessage(builderForValue.build());
1044 bitField0_ |= 0x00000004;
1052 if (paramsBuilder_ ==
null) {
1053 if (((bitField0_ & 0x00000004) != 0) &&
1055 params_ != com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance()) {
1061 paramsBuilder_.mergeFrom(value);
1063 if (params_ !=
null) {
1064 bitField0_ |= 0x00000004;
1073 bitField0_ = (bitField0_ & ~0x00000004);
1075 if (paramsBuilder_ !=
null) {
1076 paramsBuilder_.dispose();
1077 paramsBuilder_ =
null;
1086 bitField0_ |= 0x00000004;
1088 return getParamsFieldBuilder().getBuilder();
1094 if (paramsBuilder_ !=
null) {
1095 return paramsBuilder_.getMessageOrBuilder();
1097 return params_ ==
null ?
1098 com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance() : params_;
1104 private com.google.protobuf.SingleFieldBuilder<
1105 com.google.ortools.pdlp.PrimalDualHybridGradientParams, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParamsOrBuilder>
1106 getParamsFieldBuilder() {
1107 if (paramsBuilder_ ==
null) {
1108 paramsBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1109 com.google.ortools.pdlp.PrimalDualHybridGradientParams, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParamsOrBuilder>(
1111 getParentForChildren(),
1115 return paramsBuilder_;
1118 private int terminationReason_ = 0;
1124 return ((bitField0_ & 0x00000008) != 0);
1133 return result ==
null ? com.google.ortools.pdlp.TerminationReason.TERMINATION_REASON_UNSPECIFIED : result;
1141 if (value ==
null) {
1142 throw new NullPointerException();
1144 bitField0_ |= 0x00000008;
1145 terminationReason_ = value.getNumber();
1154 bitField0_ = (bitField0_ & ~0x00000008);
1155 terminationReason_ = 0;
1160 private int iterationCount_ ;
1167 return ((bitField0_ & 0x00000010) != 0);
1175 return iterationCount_;
1184 iterationCount_ = value;
1185 bitField0_ |= 0x00000010;
1194 bitField0_ = (bitField0_ & ~0x00000010);
1195 iterationCount_ = 0;
1200 private double solveTimeSec_ ;
1207 return ((bitField0_ & 0x00000020) != 0);
1215 return solveTimeSec_;
1224 solveTimeSec_ = value;
1225 bitField0_ |= 0x00000020;
1234 bitField0_ = (bitField0_ & ~0x00000020);
1241 private com.google.protobuf.SingleFieldBuilder<
1242 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder> solutionStatsBuilder_;
1248 return ((bitField0_ & 0x00000040) != 0);
1255 if (solutionStatsBuilder_ ==
null) {
1256 return solutionStats_ ==
null ? com.google.ortools.pdlp.IterationStats.getDefaultInstance() : solutionStats_;
1258 return solutionStatsBuilder_.getMessage();
1265 if (solutionStatsBuilder_ ==
null) {
1266 if (value ==
null) {
1267 throw new NullPointerException();
1269 solutionStats_ = value;
1271 solutionStatsBuilder_.setMessage(value);
1273 bitField0_ |= 0x00000040;
1281 com.google.ortools.pdlp.IterationStats.Builder builderForValue) {
1282 if (solutionStatsBuilder_ ==
null) {
1283 solutionStats_ = builderForValue.build();
1285 solutionStatsBuilder_.setMessage(builderForValue.build());
1287 bitField0_ |= 0x00000040;
1295 if (solutionStatsBuilder_ ==
null) {
1296 if (((bitField0_ & 0x00000040) != 0) &&
1297 solutionStats_ !=
null &&
1298 solutionStats_ != com.google.ortools.pdlp.IterationStats.getDefaultInstance()) {
1301 solutionStats_ = value;
1304 solutionStatsBuilder_.mergeFrom(value);
1306 if (solutionStats_ !=
null) {
1307 bitField0_ |= 0x00000040;
1316 bitField0_ = (bitField0_ & ~0x00000040);
1317 solutionStats_ =
null;
1318 if (solutionStatsBuilder_ !=
null) {
1319 solutionStatsBuilder_.dispose();
1320 solutionStatsBuilder_ =
null;
1329 bitField0_ |= 0x00000040;
1331 return getSolutionStatsFieldBuilder().getBuilder();
1337 if (solutionStatsBuilder_ !=
null) {
1338 return solutionStatsBuilder_.getMessageOrBuilder();
1340 return solutionStats_ ==
null ?
1341 com.google.ortools.pdlp.IterationStats.getDefaultInstance() : solutionStats_;
1347 private com.google.protobuf.SingleFieldBuilder<
1348 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder>
1349 getSolutionStatsFieldBuilder() {
1350 if (solutionStatsBuilder_ ==
null) {
1351 solutionStatsBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
1352 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder>(
1354 getParentForChildren(),
1356 solutionStats_ =
null;
1358 return solutionStatsBuilder_;
1361 private int solutionType_ = 0;
1367 return ((bitField0_ & 0x00000080) != 0);
1376 return result ==
null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
1384 if (value ==
null) {
1385 throw new NullPointerException();
1387 bitField0_ |= 0x00000080;
1388 solutionType_ = value.getNumber();
1397 bitField0_ = (bitField0_ & ~0x00000080);
1403 private java.util.List<com.google.ortools.pdlp.IterationStats> iterationStats_ =
1404 java.util.Collections.emptyList();
1405 private void ensureIterationStatsIsMutable() {
1406 if (!((bitField0_ & 0x00000100) != 0)) {
1407 iterationStats_ =
new java.util.ArrayList<com.google.ortools.pdlp.IterationStats>(iterationStats_);
1408 bitField0_ |= 0x00000100;
1412 private com.google.protobuf.RepeatedFieldBuilder<
1413 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder> iterationStatsBuilder_;
1419 if (iterationStatsBuilder_ ==
null) {
1420 return java.util.Collections.unmodifiableList(iterationStats_);
1422 return iterationStatsBuilder_.getMessageList();
1429 if (iterationStatsBuilder_ ==
null) {
1430 return iterationStats_.size();
1432 return iterationStatsBuilder_.getCount();
1439 if (iterationStatsBuilder_ ==
null) {
1440 return iterationStats_.get(index);
1442 return iterationStatsBuilder_.getMessage(index);
1449 int index, com.google.ortools.pdlp.IterationStats value) {
1450 if (iterationStatsBuilder_ ==
null) {
1451 if (value ==
null) {
1452 throw new NullPointerException();
1454 ensureIterationStatsIsMutable();
1455 iterationStats_.set(index, value);
1458 iterationStatsBuilder_.setMessage(index, value);
1466 int index, com.google.ortools.pdlp.IterationStats.Builder builderForValue) {
1467 if (iterationStatsBuilder_ ==
null) {
1468 ensureIterationStatsIsMutable();
1469 iterationStats_.set(index, builderForValue.build());
1472 iterationStatsBuilder_.setMessage(index, builderForValue.build());
1480 if (iterationStatsBuilder_ ==
null) {
1481 if (value ==
null) {
1482 throw new NullPointerException();
1484 ensureIterationStatsIsMutable();
1485 iterationStats_.add(value);
1488 iterationStatsBuilder_.addMessage(value);
1496 int index, com.google.ortools.pdlp.IterationStats value) {
1497 if (iterationStatsBuilder_ ==
null) {
1498 if (value ==
null) {
1499 throw new NullPointerException();
1501 ensureIterationStatsIsMutable();
1502 iterationStats_.add(index, value);
1505 iterationStatsBuilder_.addMessage(index, value);
1513 com.google.ortools.pdlp.IterationStats.Builder builderForValue) {
1514 if (iterationStatsBuilder_ ==
null) {
1515 ensureIterationStatsIsMutable();
1516 iterationStats_.add(builderForValue.build());
1519 iterationStatsBuilder_.addMessage(builderForValue.build());
1527 int index, com.google.ortools.pdlp.IterationStats.Builder builderForValue) {
1528 if (iterationStatsBuilder_ ==
null) {
1529 ensureIterationStatsIsMutable();
1530 iterationStats_.add(index, builderForValue.build());
1533 iterationStatsBuilder_.addMessage(index, builderForValue.build());
1541 java.lang.Iterable<? extends com.google.ortools.pdlp.IterationStats> values) {
1542 if (iterationStatsBuilder_ ==
null) {
1543 ensureIterationStatsIsMutable();
1544 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1545 values, iterationStats_);
1548 iterationStatsBuilder_.addAllMessages(values);
1556 if (iterationStatsBuilder_ ==
null) {
1557 iterationStats_ = java.util.Collections.emptyList();
1558 bitField0_ = (bitField0_ & ~0x00000100);
1561 iterationStatsBuilder_.clear();
1569 if (iterationStatsBuilder_ ==
null) {
1570 ensureIterationStatsIsMutable();
1571 iterationStats_.remove(index);
1574 iterationStatsBuilder_.remove(index);
1583 return getIterationStatsFieldBuilder().getBuilder(index);
1590 if (iterationStatsBuilder_ ==
null) {
1591 return iterationStats_.get(index); }
else {
1592 return iterationStatsBuilder_.getMessageOrBuilder(index);
1598 public java.util.List<? extends com.google.ortools.pdlp.IterationStatsOrBuilder>
1600 if (iterationStatsBuilder_ !=
null) {
1601 return iterationStatsBuilder_.getMessageOrBuilderList();
1603 return java.util.Collections.unmodifiableList(iterationStats_);
1610 return getIterationStatsFieldBuilder().addBuilder(
1611 com.google.ortools.pdlp.IterationStats.getDefaultInstance());
1618 return getIterationStatsFieldBuilder().addBuilder(
1619 index, com.google.ortools.pdlp.IterationStats.getDefaultInstance());
1624 public java.util.List<com.google.ortools.pdlp.IterationStats.Builder>
1626 return getIterationStatsFieldBuilder().getBuilderList();
1628 private com.google.protobuf.RepeatedFieldBuilder<
1629 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder>
1630 getIterationStatsFieldBuilder() {
1631 if (iterationStatsBuilder_ ==
null) {
1632 iterationStatsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1633 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder>(
1635 ((bitField0_ & 0x00000100) != 0),
1636 getParentForChildren(),
1638 iterationStats_ =
null;
1640 return iterationStatsBuilder_;
1649 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.FeasibilityPolishingDetails();
1653 return DEFAULT_INSTANCE;
1660 com.google.protobuf.CodedInputStream input,
1661 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1662 throws com.google.protobuf.InvalidProtocolBufferException {
1665 builder.mergeFrom(input, extensionRegistry);
1666 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1667 throw e.setUnfinishedMessage(builder.buildPartial());
1668 }
catch (com.google.protobuf.UninitializedMessageException e) {
1669 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1670 }
catch (java.io.IOException e) {
1671 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1672 .setUnfinishedMessage(builder.buildPartial());
1674 return builder.buildPartial();
1689 return DEFAULT_INSTANCE;