5package com.google.ortools.pdlp;
19 com.google.protobuf.GeneratedMessage implements
22private static final long serialVersionUID = 0L;
24 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
25 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
33 private IterationStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
37 convergenceInformation_ = java.util.Collections.emptyList();
38 infeasibilityInformation_ = java.util.Collections.emptyList();
39 pointMetadata_ = java.util.Collections.emptyList();
43 public static final com.google.protobuf.Descriptors.Descriptor
45 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
49 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
51 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
52 .ensureFieldAccessorsInitialized(
53 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
56 private int bitField0_;
58 private int iterationNumber_ = 0;
72 return ((bitField0_ & 0x00000001) != 0);
87 return iterationNumber_;
91 @SuppressWarnings(
"serial")
104 return convergenceInformation_;
116 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
118 return convergenceInformation_;
131 return convergenceInformation_.size();
144 return convergenceInformation_.get(index);
158 return convergenceInformation_.get(index);
162 @SuppressWarnings(
"serial")
175 return infeasibilityInformation_;
187 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
189 return infeasibilityInformation_;
202 return infeasibilityInformation_.size();
215 return infeasibilityInformation_.get(index);
229 return infeasibilityInformation_.get(index);
233 @SuppressWarnings(
"serial")
234 private java.util.List<com.google.ortools.pdlp.
PointMetadata> pointMetadata_;
244 return pointMetadata_;
254 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
256 return pointMetadata_;
267 return pointMetadata_.size();
278 return pointMetadata_.get(index);
290 return pointMetadata_.get(index);
294 private double cumulativeKktMatrixPasses_ = 0D;
313 return ((bitField0_ & 0x00000002) != 0);
333 return cumulativeKktMatrixPasses_;
337 private int cumulativeRejectedSteps_ = 0;
349 return ((bitField0_ & 0x00000004) != 0);
362 return cumulativeRejectedSteps_;
366 private double cumulativeTimeSec_ = 0D;
378 return ((bitField0_ & 0x00000008) != 0);
391 return cumulativeTimeSec_;
395 private int restartUsed_ = 0;
406 return ((bitField0_ & 0x00000010) != 0);
419 return result ==
null ? com.google.ortools.pdlp.RestartChoice.RESTART_CHOICE_UNSPECIFIED : result;
423 private double stepSize_ = 0D;
436 return ((bitField0_ & 0x00000020) != 0);
454 private double primalWeight_ = 0D;
466 return ((bitField0_ & 0x00000040) != 0);
479 return primalWeight_;
482 private byte memoizedIsInitialized = -1;
489 memoizedIsInitialized = 1;
494 public void writeTo(com.google.protobuf.CodedOutputStream output)
495 throws java.io.IOException {
496 if (((bitField0_ & 0x00000001) != 0)) {
497 output.writeInt32(1, iterationNumber_);
499 for (
int i = 0; i < convergenceInformation_.size(); i++) {
500 output.writeMessage(2, convergenceInformation_.get(i));
502 for (
int i = 0; i < infeasibilityInformation_.size(); i++) {
503 output.writeMessage(3, infeasibilityInformation_.get(i));
505 if (((bitField0_ & 0x00000002) != 0)) {
506 output.writeDouble(4, cumulativeKktMatrixPasses_);
508 if (((bitField0_ & 0x00000004) != 0)) {
509 output.writeInt32(5, cumulativeRejectedSteps_);
511 if (((bitField0_ & 0x00000008) != 0)) {
512 output.writeDouble(6, cumulativeTimeSec_);
514 if (((bitField0_ & 0x00000010) != 0)) {
515 output.writeEnum(7, restartUsed_);
517 if (((bitField0_ & 0x00000020) != 0)) {
518 output.writeDouble(8, stepSize_);
520 if (((bitField0_ & 0x00000040) != 0)) {
521 output.writeDouble(9, primalWeight_);
523 for (
int i = 0; i < pointMetadata_.size(); i++) {
524 output.writeMessage(11, pointMetadata_.get(i));
526 getUnknownFields().writeTo(output);
531 int size = memoizedSize;
532 if (size != -1)
return size;
535 if (((bitField0_ & 0x00000001) != 0)) {
536 size += com.google.protobuf.CodedOutputStream
537 .computeInt32Size(1, iterationNumber_);
539 for (
int i = 0; i < convergenceInformation_.size(); i++) {
540 size += com.google.protobuf.CodedOutputStream
541 .computeMessageSize(2, convergenceInformation_.get(i));
543 for (
int i = 0; i < infeasibilityInformation_.size(); i++) {
544 size += com.google.protobuf.CodedOutputStream
545 .computeMessageSize(3, infeasibilityInformation_.get(i));
547 if (((bitField0_ & 0x00000002) != 0)) {
548 size += com.google.protobuf.CodedOutputStream
549 .computeDoubleSize(4, cumulativeKktMatrixPasses_);
551 if (((bitField0_ & 0x00000004) != 0)) {
552 size += com.google.protobuf.CodedOutputStream
553 .computeInt32Size(5, cumulativeRejectedSteps_);
555 if (((bitField0_ & 0x00000008) != 0)) {
556 size += com.google.protobuf.CodedOutputStream
557 .computeDoubleSize(6, cumulativeTimeSec_);
559 if (((bitField0_ & 0x00000010) != 0)) {
560 size += com.google.protobuf.CodedOutputStream
561 .computeEnumSize(7, restartUsed_);
563 if (((bitField0_ & 0x00000020) != 0)) {
564 size += com.google.protobuf.CodedOutputStream
565 .computeDoubleSize(8, stepSize_);
567 if (((bitField0_ & 0x00000040) != 0)) {
568 size += com.google.protobuf.CodedOutputStream
569 .computeDoubleSize(9, primalWeight_);
571 for (
int i = 0; i < pointMetadata_.size(); i++) {
572 size += com.google.protobuf.CodedOutputStream
573 .computeMessageSize(11, pointMetadata_.get(i));
575 size += getUnknownFields().getSerializedSize();
581 public boolean equals(
final java.lang.Object obj) {
585 if (!(obj instanceof com.google.ortools.pdlp.IterationStats)) {
586 return super.equals(obj);
604 != java.lang.Double.doubleToLongBits(
615 != java.lang.Double.doubleToLongBits(
620 if (restartUsed_ != other.restartUsed_)
return false;
624 if (java.lang.Double.doubleToLongBits(
getStepSize())
625 != java.lang.Double.doubleToLongBits(
631 != java.lang.Double.doubleToLongBits(
634 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
640 if (memoizedHashCode != 0) {
641 return memoizedHashCode;
663 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
672 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
677 hash = (53 * hash) + restartUsed_;
681 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
686 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
689 hash = (29 * hash) + getUnknownFields().hashCode();
690 memoizedHashCode = hash;
695 java.nio.ByteBuffer data)
696 throws com.google.protobuf.InvalidProtocolBufferException {
697 return PARSER.parseFrom(data);
700 java.nio.ByteBuffer data,
701 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
702 throws com.google.protobuf.InvalidProtocolBufferException {
703 return PARSER.parseFrom(data, extensionRegistry);
706 com.google.protobuf.ByteString data)
707 throws com.google.protobuf.InvalidProtocolBufferException {
708 return PARSER.parseFrom(data);
711 com.google.protobuf.ByteString data,
712 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
713 throws com.google.protobuf.InvalidProtocolBufferException {
714 return PARSER.parseFrom(data, extensionRegistry);
717 throws com.google.protobuf.InvalidProtocolBufferException {
718 return PARSER.parseFrom(data);
722 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
723 throws com.google.protobuf.InvalidProtocolBufferException {
724 return PARSER.parseFrom(data, extensionRegistry);
727 throws java.io.IOException {
728 return com.google.protobuf.GeneratedMessage
729 .parseWithIOException(PARSER, input);
732 java.io.InputStream input,
733 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
734 throws java.io.IOException {
735 return com.google.protobuf.GeneratedMessage
736 .parseWithIOException(PARSER, input, extensionRegistry);
740 throws java.io.IOException {
741 return com.google.protobuf.GeneratedMessage
742 .parseDelimitedWithIOException(PARSER, input);
746 java.io.InputStream input,
747 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
748 throws java.io.IOException {
749 return com.google.protobuf.GeneratedMessage
750 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
753 com.google.protobuf.CodedInputStream input)
754 throws java.io.IOException {
755 return com.google.protobuf.GeneratedMessage
756 .parseWithIOException(PARSER, input);
759 com.google.protobuf.CodedInputStream input,
760 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
761 throws java.io.IOException {
762 return com.google.protobuf.GeneratedMessage
763 .parseWithIOException(PARSER, input, extensionRegistry);
776 return this == DEFAULT_INSTANCE
782 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
798 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
801 public static final com.google.protobuf.Descriptors.Descriptor
803 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
807 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
809 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
810 .ensureFieldAccessorsInitialized(
811 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
820 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
828 iterationNumber_ = 0;
829 if (convergenceInformationBuilder_ ==
null) {
830 convergenceInformation_ = java.util.Collections.emptyList();
832 convergenceInformation_ =
null;
833 convergenceInformationBuilder_.clear();
835 bitField0_ = (bitField0_ & ~0x00000002);
836 if (infeasibilityInformationBuilder_ ==
null) {
837 infeasibilityInformation_ = java.util.Collections.emptyList();
839 infeasibilityInformation_ =
null;
840 infeasibilityInformationBuilder_.clear();
842 bitField0_ = (bitField0_ & ~0x00000004);
843 if (pointMetadataBuilder_ ==
null) {
844 pointMetadata_ = java.util.Collections.emptyList();
846 pointMetadata_ =
null;
847 pointMetadataBuilder_.clear();
849 bitField0_ = (bitField0_ & ~0x00000008);
850 cumulativeKktMatrixPasses_ = 0D;
851 cumulativeRejectedSteps_ = 0;
852 cumulativeTimeSec_ = 0D;
860 public com.google.protobuf.Descriptors.Descriptor
862 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
867 return com.google.ortools.pdlp.IterationStats.getDefaultInstance();
874 throw newUninitializedMessageException(result);
882 buildPartialRepeatedFields(result);
883 if (bitField0_ != 0) { buildPartial0(result); }
888 private void buildPartialRepeatedFields(com.google.ortools.pdlp.IterationStats result) {
889 if (convergenceInformationBuilder_ ==
null) {
890 if (((bitField0_ & 0x00000002) != 0)) {
891 convergenceInformation_ = java.util.Collections.unmodifiableList(convergenceInformation_);
892 bitField0_ = (bitField0_ & ~0x00000002);
894 result.convergenceInformation_ = convergenceInformation_;
896 result.convergenceInformation_ = convergenceInformationBuilder_.build();
898 if (infeasibilityInformationBuilder_ ==
null) {
899 if (((bitField0_ & 0x00000004) != 0)) {
900 infeasibilityInformation_ = java.util.Collections.unmodifiableList(infeasibilityInformation_);
901 bitField0_ = (bitField0_ & ~0x00000004);
903 result.infeasibilityInformation_ = infeasibilityInformation_;
905 result.infeasibilityInformation_ = infeasibilityInformationBuilder_.build();
907 if (pointMetadataBuilder_ ==
null) {
908 if (((bitField0_ & 0x00000008) != 0)) {
909 pointMetadata_ = java.util.Collections.unmodifiableList(pointMetadata_);
910 bitField0_ = (bitField0_ & ~0x00000008);
912 result.pointMetadata_ = pointMetadata_;
914 result.pointMetadata_ = pointMetadataBuilder_.build();
918 private void buildPartial0(com.google.ortools.pdlp.IterationStats result) {
919 int from_bitField0_ = bitField0_;
920 int to_bitField0_ = 0;
921 if (((from_bitField0_ & 0x00000001) != 0)) {
922 result.iterationNumber_ = iterationNumber_;
923 to_bitField0_ |= 0x00000001;
925 if (((from_bitField0_ & 0x00000010) != 0)) {
926 result.cumulativeKktMatrixPasses_ = cumulativeKktMatrixPasses_;
927 to_bitField0_ |= 0x00000002;
929 if (((from_bitField0_ & 0x00000020) != 0)) {
930 result.cumulativeRejectedSteps_ = cumulativeRejectedSteps_;
931 to_bitField0_ |= 0x00000004;
933 if (((from_bitField0_ & 0x00000040) != 0)) {
934 result.cumulativeTimeSec_ = cumulativeTimeSec_;
935 to_bitField0_ |= 0x00000008;
937 if (((from_bitField0_ & 0x00000080) != 0)) {
938 result.restartUsed_ = restartUsed_;
939 to_bitField0_ |= 0x00000010;
941 if (((from_bitField0_ & 0x00000100) != 0)) {
942 result.stepSize_ = stepSize_;
943 to_bitField0_ |= 0x00000020;
945 if (((from_bitField0_ & 0x00000200) != 0)) {
946 result.primalWeight_ = primalWeight_;
947 to_bitField0_ |= 0x00000040;
949 result.bitField0_ |= to_bitField0_;
954 if (other instanceof com.google.ortools.pdlp.IterationStats) {
955 return mergeFrom((com.google.ortools.pdlp.IterationStats)other);
957 super.mergeFrom(other);
963 if (other == com.google.ortools.pdlp.IterationStats.getDefaultInstance())
return this;
964 if (other.hasIterationNumber()) {
967 if (convergenceInformationBuilder_ ==
null) {
968 if (!other.convergenceInformation_.isEmpty()) {
969 if (convergenceInformation_.isEmpty()) {
970 convergenceInformation_ = other.convergenceInformation_;
971 bitField0_ = (bitField0_ & ~0x00000002);
973 ensureConvergenceInformationIsMutable();
974 convergenceInformation_.addAll(other.convergenceInformation_);
979 if (!other.convergenceInformation_.isEmpty()) {
980 if (convergenceInformationBuilder_.isEmpty()) {
981 convergenceInformationBuilder_.dispose();
982 convergenceInformationBuilder_ =
null;
983 convergenceInformation_ = other.convergenceInformation_;
984 bitField0_ = (bitField0_ & ~0x00000002);
985 convergenceInformationBuilder_ =
986 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
987 getConvergenceInformationFieldBuilder() :
null;
989 convergenceInformationBuilder_.addAllMessages(other.convergenceInformation_);
993 if (infeasibilityInformationBuilder_ ==
null) {
994 if (!other.infeasibilityInformation_.isEmpty()) {
995 if (infeasibilityInformation_.isEmpty()) {
996 infeasibilityInformation_ = other.infeasibilityInformation_;
997 bitField0_ = (bitField0_ & ~0x00000004);
999 ensureInfeasibilityInformationIsMutable();
1000 infeasibilityInformation_.addAll(other.infeasibilityInformation_);
1005 if (!other.infeasibilityInformation_.isEmpty()) {
1006 if (infeasibilityInformationBuilder_.isEmpty()) {
1007 infeasibilityInformationBuilder_.dispose();
1008 infeasibilityInformationBuilder_ =
null;
1009 infeasibilityInformation_ = other.infeasibilityInformation_;
1010 bitField0_ = (bitField0_ & ~0x00000004);
1011 infeasibilityInformationBuilder_ =
1012 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1013 getInfeasibilityInformationFieldBuilder() :
null;
1015 infeasibilityInformationBuilder_.addAllMessages(other.infeasibilityInformation_);
1019 if (pointMetadataBuilder_ ==
null) {
1020 if (!other.pointMetadata_.isEmpty()) {
1021 if (pointMetadata_.isEmpty()) {
1022 pointMetadata_ = other.pointMetadata_;
1023 bitField0_ = (bitField0_ & ~0x00000008);
1025 ensurePointMetadataIsMutable();
1026 pointMetadata_.addAll(other.pointMetadata_);
1031 if (!other.pointMetadata_.isEmpty()) {
1032 if (pointMetadataBuilder_.isEmpty()) {
1033 pointMetadataBuilder_.dispose();
1034 pointMetadataBuilder_ =
null;
1035 pointMetadata_ = other.pointMetadata_;
1036 bitField0_ = (bitField0_ & ~0x00000008);
1037 pointMetadataBuilder_ =
1038 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1039 getPointMetadataFieldBuilder() :
null;
1041 pointMetadataBuilder_.addAllMessages(other.pointMetadata_);
1045 if (other.hasCumulativeKktMatrixPasses()) {
1048 if (other.hasCumulativeRejectedSteps()) {
1051 if (other.hasCumulativeTimeSec()) {
1054 if (other.hasRestartUsed()) {
1057 if (other.hasStepSize()) {
1060 if (other.hasPrimalWeight()) {
1063 this.mergeUnknownFields(other.getUnknownFields());
1075 com.google.protobuf.CodedInputStream input,
1076 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1077 throws java.io.IOException {
1078 if (extensionRegistry ==
null) {
1079 throw new java.lang.NullPointerException();
1082 boolean done =
false;
1084 int tag = input.readTag();
1090 iterationNumber_ = input.readInt32();
1091 bitField0_ |= 0x00000001;
1097 com.google.ortools.pdlp.ConvergenceInformation.parser(),
1099 if (convergenceInformationBuilder_ ==
null) {
1100 ensureConvergenceInformationIsMutable();
1101 convergenceInformation_.add(m);
1103 convergenceInformationBuilder_.addMessage(m);
1110 com.google.ortools.pdlp.InfeasibilityInformation.parser(),
1112 if (infeasibilityInformationBuilder_ ==
null) {
1113 ensureInfeasibilityInformationIsMutable();
1114 infeasibilityInformation_.add(m);
1116 infeasibilityInformationBuilder_.addMessage(m);
1121 cumulativeKktMatrixPasses_ = input.readDouble();
1122 bitField0_ |= 0x00000010;
1126 cumulativeRejectedSteps_ = input.readInt32();
1127 bitField0_ |= 0x00000020;
1131 cumulativeTimeSec_ = input.readDouble();
1132 bitField0_ |= 0x00000040;
1136 int tmpRaw = input.readEnum();
1138 com.google.ortools.pdlp.RestartChoice.forNumber(tmpRaw);
1139 if (tmpValue ==
null) {
1140 mergeUnknownVarintField(7, tmpRaw);
1142 restartUsed_ = tmpRaw;
1143 bitField0_ |= 0x00000080;
1148 stepSize_ = input.readDouble();
1149 bitField0_ |= 0x00000100;
1153 primalWeight_ = input.readDouble();
1154 bitField0_ |= 0x00000200;
1160 com.google.ortools.pdlp.PointMetadata.parser(),
1162 if (pointMetadataBuilder_ ==
null) {
1163 ensurePointMetadataIsMutable();
1164 pointMetadata_.add(m);
1166 pointMetadataBuilder_.addMessage(m);
1171 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1178 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1179 throw e.unwrapIOException();
1185 private int bitField0_;
1187 private int iterationNumber_ ;
1201 return ((bitField0_ & 0x00000001) != 0);
1216 return iterationNumber_;
1232 iterationNumber_ = value;
1233 bitField0_ |= 0x00000001;
1249 bitField0_ = (bitField0_ & ~0x00000001);
1250 iterationNumber_ = 0;
1255 private java.util.List<com.google.ortools.pdlp.ConvergenceInformation> convergenceInformation_ =
1256 java.util.Collections.emptyList();
1257 private void ensureConvergenceInformationIsMutable() {
1258 if (!((bitField0_ & 0x00000002) != 0)) {
1259 convergenceInformation_ =
new java.util.ArrayList<com.google.ortools.pdlp.ConvergenceInformation>(convergenceInformation_);
1260 bitField0_ |= 0x00000002;
1264 private com.google.protobuf.RepeatedFieldBuilder<
1265 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder> convergenceInformationBuilder_;
1277 if (convergenceInformationBuilder_ ==
null) {
1278 return java.util.Collections.unmodifiableList(convergenceInformation_);
1280 return convergenceInformationBuilder_.getMessageList();
1293 if (convergenceInformationBuilder_ ==
null) {
1294 return convergenceInformation_.size();
1296 return convergenceInformationBuilder_.getCount();
1309 if (convergenceInformationBuilder_ ==
null) {
1310 return convergenceInformation_.get(index);
1312 return convergenceInformationBuilder_.getMessage(index);
1325 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1326 if (convergenceInformationBuilder_ ==
null) {
1327 if (value ==
null) {
1328 throw new NullPointerException();
1330 ensureConvergenceInformationIsMutable();
1331 convergenceInformation_.set(index, value);
1334 convergenceInformationBuilder_.setMessage(index, value);
1348 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1349 if (convergenceInformationBuilder_ ==
null) {
1350 ensureConvergenceInformationIsMutable();
1351 convergenceInformation_.set(index, builderForValue.build());
1354 convergenceInformationBuilder_.setMessage(index, builderForValue.build());
1368 if (convergenceInformationBuilder_ ==
null) {
1369 if (value ==
null) {
1370 throw new NullPointerException();
1372 ensureConvergenceInformationIsMutable();
1373 convergenceInformation_.add(value);
1376 convergenceInformationBuilder_.addMessage(value);
1390 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1391 if (convergenceInformationBuilder_ ==
null) {
1392 if (value ==
null) {
1393 throw new NullPointerException();
1395 ensureConvergenceInformationIsMutable();
1396 convergenceInformation_.add(index, value);
1399 convergenceInformationBuilder_.addMessage(index, value);
1413 com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1414 if (convergenceInformationBuilder_ ==
null) {
1415 ensureConvergenceInformationIsMutable();
1416 convergenceInformation_.add(builderForValue.build());
1419 convergenceInformationBuilder_.addMessage(builderForValue.build());
1433 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1434 if (convergenceInformationBuilder_ ==
null) {
1435 ensureConvergenceInformationIsMutable();
1436 convergenceInformation_.add(index, builderForValue.build());
1439 convergenceInformationBuilder_.addMessage(index, builderForValue.build());
1453 java.lang.Iterable<? extends com.google.ortools.pdlp.ConvergenceInformation> values) {
1454 if (convergenceInformationBuilder_ ==
null) {
1455 ensureConvergenceInformationIsMutable();
1456 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1457 values, convergenceInformation_);
1460 convergenceInformationBuilder_.addAllMessages(values);
1474 if (convergenceInformationBuilder_ ==
null) {
1475 convergenceInformation_ = java.util.Collections.emptyList();
1476 bitField0_ = (bitField0_ & ~0x00000002);
1479 convergenceInformationBuilder_.clear();
1493 if (convergenceInformationBuilder_ ==
null) {
1494 ensureConvergenceInformationIsMutable();
1495 convergenceInformation_.remove(index);
1498 convergenceInformationBuilder_.remove(index);
1513 return getConvergenceInformationFieldBuilder().getBuilder(index);
1526 if (convergenceInformationBuilder_ ==
null) {
1527 return convergenceInformation_.get(index); }
else {
1528 return convergenceInformationBuilder_.getMessageOrBuilder(index);
1540 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1542 if (convergenceInformationBuilder_ !=
null) {
1543 return convergenceInformationBuilder_.getMessageOrBuilderList();
1545 return java.util.Collections.unmodifiableList(convergenceInformation_);
1558 return getConvergenceInformationFieldBuilder().addBuilder(
1559 com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1572 return getConvergenceInformationFieldBuilder().addBuilder(
1573 index, com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1584 public java.util.List<com.google.ortools.pdlp.ConvergenceInformation.Builder>
1586 return getConvergenceInformationFieldBuilder().getBuilderList();
1588 private com.google.protobuf.RepeatedFieldBuilder<
1589 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1590 getConvergenceInformationFieldBuilder() {
1591 if (convergenceInformationBuilder_ ==
null) {
1592 convergenceInformationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1593 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>(
1594 convergenceInformation_,
1595 ((bitField0_ & 0x00000002) != 0),
1596 getParentForChildren(),
1598 convergenceInformation_ =
null;
1600 return convergenceInformationBuilder_;
1603 private java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> infeasibilityInformation_ =
1604 java.util.Collections.emptyList();
1605 private void ensureInfeasibilityInformationIsMutable() {
1606 if (!((bitField0_ & 0x00000004) != 0)) {
1607 infeasibilityInformation_ =
new java.util.ArrayList<com.google.ortools.pdlp.InfeasibilityInformation>(infeasibilityInformation_);
1608 bitField0_ |= 0x00000004;
1612 private com.google.protobuf.RepeatedFieldBuilder<
1613 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder> infeasibilityInformationBuilder_;
1625 if (infeasibilityInformationBuilder_ ==
null) {
1626 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1628 return infeasibilityInformationBuilder_.getMessageList();
1641 if (infeasibilityInformationBuilder_ ==
null) {
1642 return infeasibilityInformation_.size();
1644 return infeasibilityInformationBuilder_.getCount();
1657 if (infeasibilityInformationBuilder_ ==
null) {
1658 return infeasibilityInformation_.get(index);
1660 return infeasibilityInformationBuilder_.getMessage(index);
1673 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1674 if (infeasibilityInformationBuilder_ ==
null) {
1675 if (value ==
null) {
1676 throw new NullPointerException();
1678 ensureInfeasibilityInformationIsMutable();
1679 infeasibilityInformation_.set(index, value);
1682 infeasibilityInformationBuilder_.setMessage(index, value);
1696 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1697 if (infeasibilityInformationBuilder_ ==
null) {
1698 ensureInfeasibilityInformationIsMutable();
1699 infeasibilityInformation_.set(index, builderForValue.build());
1702 infeasibilityInformationBuilder_.setMessage(index, builderForValue.build());
1716 if (infeasibilityInformationBuilder_ ==
null) {
1717 if (value ==
null) {
1718 throw new NullPointerException();
1720 ensureInfeasibilityInformationIsMutable();
1721 infeasibilityInformation_.add(value);
1724 infeasibilityInformationBuilder_.addMessage(value);
1738 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1739 if (infeasibilityInformationBuilder_ ==
null) {
1740 if (value ==
null) {
1741 throw new NullPointerException();
1743 ensureInfeasibilityInformationIsMutable();
1744 infeasibilityInformation_.add(index, value);
1747 infeasibilityInformationBuilder_.addMessage(index, value);
1761 com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1762 if (infeasibilityInformationBuilder_ ==
null) {
1763 ensureInfeasibilityInformationIsMutable();
1764 infeasibilityInformation_.add(builderForValue.build());
1767 infeasibilityInformationBuilder_.addMessage(builderForValue.build());
1781 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1782 if (infeasibilityInformationBuilder_ ==
null) {
1783 ensureInfeasibilityInformationIsMutable();
1784 infeasibilityInformation_.add(index, builderForValue.build());
1787 infeasibilityInformationBuilder_.addMessage(index, builderForValue.build());
1801 java.lang.Iterable<? extends com.google.ortools.pdlp.InfeasibilityInformation> values) {
1802 if (infeasibilityInformationBuilder_ ==
null) {
1803 ensureInfeasibilityInformationIsMutable();
1804 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1805 values, infeasibilityInformation_);
1808 infeasibilityInformationBuilder_.addAllMessages(values);
1822 if (infeasibilityInformationBuilder_ ==
null) {
1823 infeasibilityInformation_ = java.util.Collections.emptyList();
1824 bitField0_ = (bitField0_ & ~0x00000004);
1827 infeasibilityInformationBuilder_.clear();
1841 if (infeasibilityInformationBuilder_ ==
null) {
1842 ensureInfeasibilityInformationIsMutable();
1843 infeasibilityInformation_.remove(index);
1846 infeasibilityInformationBuilder_.remove(index);
1861 return getInfeasibilityInformationFieldBuilder().getBuilder(index);
1874 if (infeasibilityInformationBuilder_ ==
null) {
1875 return infeasibilityInformation_.get(index); }
else {
1876 return infeasibilityInformationBuilder_.getMessageOrBuilder(index);
1888 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1890 if (infeasibilityInformationBuilder_ !=
null) {
1891 return infeasibilityInformationBuilder_.getMessageOrBuilderList();
1893 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1906 return getInfeasibilityInformationFieldBuilder().addBuilder(
1907 com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1920 return getInfeasibilityInformationFieldBuilder().addBuilder(
1921 index, com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1932 public java.util.List<com.google.ortools.pdlp.InfeasibilityInformation.Builder>
1934 return getInfeasibilityInformationFieldBuilder().getBuilderList();
1936 private com.google.protobuf.RepeatedFieldBuilder<
1937 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1938 getInfeasibilityInformationFieldBuilder() {
1939 if (infeasibilityInformationBuilder_ ==
null) {
1940 infeasibilityInformationBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1941 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>(
1942 infeasibilityInformation_,
1943 ((bitField0_ & 0x00000004) != 0),
1944 getParentForChildren(),
1946 infeasibilityInformation_ =
null;
1948 return infeasibilityInformationBuilder_;
1951 private java.util.List<com.google.ortools.pdlp.PointMetadata> pointMetadata_ =
1952 java.util.Collections.emptyList();
1953 private void ensurePointMetadataIsMutable() {
1954 if (!((bitField0_ & 0x00000008) != 0)) {
1955 pointMetadata_ =
new java.util.ArrayList<com.google.ortools.pdlp.PointMetadata>(pointMetadata_);
1956 bitField0_ |= 0x00000008;
1960 private com.google.protobuf.RepeatedFieldBuilder<
1961 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder> pointMetadataBuilder_;
1971 if (pointMetadataBuilder_ ==
null) {
1972 return java.util.Collections.unmodifiableList(pointMetadata_);
1974 return pointMetadataBuilder_.getMessageList();
1985 if (pointMetadataBuilder_ ==
null) {
1986 return pointMetadata_.size();
1988 return pointMetadataBuilder_.getCount();
1999 if (pointMetadataBuilder_ ==
null) {
2000 return pointMetadata_.get(index);
2002 return pointMetadataBuilder_.getMessage(index);
2013 int index, com.google.ortools.pdlp.PointMetadata value) {
2014 if (pointMetadataBuilder_ ==
null) {
2015 if (value ==
null) {
2016 throw new NullPointerException();
2018 ensurePointMetadataIsMutable();
2019 pointMetadata_.set(index, value);
2022 pointMetadataBuilder_.setMessage(index, value);
2034 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2035 if (pointMetadataBuilder_ ==
null) {
2036 ensurePointMetadataIsMutable();
2037 pointMetadata_.set(index, builderForValue.build());
2040 pointMetadataBuilder_.setMessage(index, builderForValue.build());
2052 if (pointMetadataBuilder_ ==
null) {
2053 if (value ==
null) {
2054 throw new NullPointerException();
2056 ensurePointMetadataIsMutable();
2057 pointMetadata_.add(value);
2060 pointMetadataBuilder_.addMessage(value);
2072 int index, com.google.ortools.pdlp.PointMetadata value) {
2073 if (pointMetadataBuilder_ ==
null) {
2074 if (value ==
null) {
2075 throw new NullPointerException();
2077 ensurePointMetadataIsMutable();
2078 pointMetadata_.add(index, value);
2081 pointMetadataBuilder_.addMessage(index, value);
2093 com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2094 if (pointMetadataBuilder_ ==
null) {
2095 ensurePointMetadataIsMutable();
2096 pointMetadata_.add(builderForValue.build());
2099 pointMetadataBuilder_.addMessage(builderForValue.build());
2111 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2112 if (pointMetadataBuilder_ ==
null) {
2113 ensurePointMetadataIsMutable();
2114 pointMetadata_.add(index, builderForValue.build());
2117 pointMetadataBuilder_.addMessage(index, builderForValue.build());
2129 java.lang.Iterable<? extends com.google.ortools.pdlp.PointMetadata> values) {
2130 if (pointMetadataBuilder_ ==
null) {
2131 ensurePointMetadataIsMutable();
2132 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2133 values, pointMetadata_);
2136 pointMetadataBuilder_.addAllMessages(values);
2148 if (pointMetadataBuilder_ ==
null) {
2149 pointMetadata_ = java.util.Collections.emptyList();
2150 bitField0_ = (bitField0_ & ~0x00000008);
2153 pointMetadataBuilder_.clear();
2165 if (pointMetadataBuilder_ ==
null) {
2166 ensurePointMetadataIsMutable();
2167 pointMetadata_.remove(index);
2170 pointMetadataBuilder_.remove(index);
2183 return getPointMetadataFieldBuilder().getBuilder(index);
2194 if (pointMetadataBuilder_ ==
null) {
2195 return pointMetadata_.get(index); }
else {
2196 return pointMetadataBuilder_.getMessageOrBuilder(index);
2206 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
2208 if (pointMetadataBuilder_ !=
null) {
2209 return pointMetadataBuilder_.getMessageOrBuilderList();
2211 return java.util.Collections.unmodifiableList(pointMetadata_);
2222 return getPointMetadataFieldBuilder().addBuilder(
2223 com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2234 return getPointMetadataFieldBuilder().addBuilder(
2235 index, com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2244 public java.util.List<com.google.ortools.pdlp.PointMetadata.Builder>
2246 return getPointMetadataFieldBuilder().getBuilderList();
2248 private com.google.protobuf.RepeatedFieldBuilder<
2249 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>
2250 getPointMetadataFieldBuilder() {
2251 if (pointMetadataBuilder_ ==
null) {
2252 pointMetadataBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
2253 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>(
2255 ((bitField0_ & 0x00000008) != 0),
2256 getParentForChildren(),
2258 pointMetadata_ =
null;
2260 return pointMetadataBuilder_;
2263 private double cumulativeKktMatrixPasses_ ;
2282 return ((bitField0_ & 0x00000010) != 0);
2302 return cumulativeKktMatrixPasses_;
2323 cumulativeKktMatrixPasses_ = value;
2324 bitField0_ |= 0x00000010;
2345 bitField0_ = (bitField0_ & ~0x00000010);
2346 cumulativeKktMatrixPasses_ = 0D;
2351 private int cumulativeRejectedSteps_ ;
2363 return ((bitField0_ & 0x00000020) != 0);
2376 return cumulativeRejectedSteps_;
2390 cumulativeRejectedSteps_ = value;
2391 bitField0_ |= 0x00000020;
2405 bitField0_ = (bitField0_ & ~0x00000020);
2406 cumulativeRejectedSteps_ = 0;
2411 private double cumulativeTimeSec_ ;
2423 return ((bitField0_ & 0x00000040) != 0);
2436 return cumulativeTimeSec_;
2450 cumulativeTimeSec_ = value;
2451 bitField0_ |= 0x00000040;
2465 bitField0_ = (bitField0_ & ~0x00000040);
2466 cumulativeTimeSec_ = 0D;
2471 private int restartUsed_ = 0;
2482 return ((bitField0_ & 0x00000080) != 0);
2496 return result ==
null ? com.google.ortools.pdlp.RestartChoice.RESTART_CHOICE_UNSPECIFIED : result;
2509 if (value ==
null) {
2510 throw new NullPointerException();
2512 bitField0_ |= 0x00000080;
2513 restartUsed_ = value.getNumber();
2527 bitField0_ = (bitField0_ & ~0x00000080);
2533 private double stepSize_ ;
2546 return ((bitField0_ & 0x00000100) != 0);
2576 bitField0_ |= 0x00000100;
2591 bitField0_ = (bitField0_ & ~0x00000100);
2597 private double primalWeight_ ;
2609 return ((bitField0_ & 0x00000200) != 0);
2622 return primalWeight_;
2636 primalWeight_ = value;
2637 bitField0_ |= 0x00000200;
2651 bitField0_ = (bitField0_ & ~0x00000200);
2663 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.IterationStats();
2667 return DEFAULT_INSTANCE;
2671 PARSER =
new com.google.protobuf.AbstractParser<
IterationStats>() {
2674 com.google.protobuf.CodedInputStream input,
2675 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2676 throws com.google.protobuf.InvalidProtocolBufferException {
2679 builder.mergeFrom(input, extensionRegistry);
2680 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2681 throw e.setUnfinishedMessage(builder.buildPartial());
2682 }
catch (com.google.protobuf.UninitializedMessageException e) {
2683 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2684 }
catch (java.io.IOException e) {
2685 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2686 .setUnfinishedMessage(builder.buildPartial());
2688 return builder.buildPartial();
2703 return DEFAULT_INSTANCE;