Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
IterationStats.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/pdlp/solve_log.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.pdlp;
7
19public final class IterationStats extends
20 com.google.protobuf.GeneratedMessage implements
21 // @@protoc_insertion_point(message_implements:operations_research.pdlp.IterationStats)
23private static final long serialVersionUID = 0L;
24 static {
25 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
26 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
27 /* major= */ 4,
28 /* minor= */ 29,
29 /* patch= */ 3,
30 /* suffix= */ "",
31 IterationStats.class.getName());
32 }
33 // Use IterationStats.newBuilder() to construct.
34 private IterationStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 super(builder);
36 }
37 private IterationStats() {
38 convergenceInformation_ = java.util.Collections.emptyList();
39 infeasibilityInformation_ = java.util.Collections.emptyList();
40 pointMetadata_ = java.util.Collections.emptyList();
41 restartUsed_ = 0;
42 }
43
44 public static final com.google.protobuf.Descriptors.Descriptor
46 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
47 }
48
49 @java.lang.Override
50 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
52 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
53 .ensureFieldAccessorsInitialized(
54 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
55 }
56
57 private int bitField0_;
58 public static final int ITERATION_NUMBER_FIELD_NUMBER = 1;
59 private int iterationNumber_ = 0;
71 @java.lang.Override
72 public boolean hasIterationNumber() {
73 return ((bitField0_ & 0x00000001) != 0);
74 }
75
86 @java.lang.Override
87 public int getIterationNumber() {
88 return iterationNumber_;
89 }
90
91 public static final int CONVERGENCE_INFORMATION_FIELD_NUMBER = 2;
92 @SuppressWarnings("serial")
93 private java.util.List<com.google.ortools.pdlp.ConvergenceInformation> convergenceInformation_;
103 @java.lang.Override
105 return convergenceInformation_;
106 }
107
116 @java.lang.Override
117 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
119 return convergenceInformation_;
120 }
121
130 @java.lang.Override
132 return convergenceInformation_.size();
133 }
134
143 @java.lang.Override
145 return convergenceInformation_.get(index);
146 }
147
156 @java.lang.Override
158 int index) {
159 return convergenceInformation_.get(index);
160 }
161
162 public static final int INFEASIBILITY_INFORMATION_FIELD_NUMBER = 3;
163 @SuppressWarnings("serial")
164 private java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> infeasibilityInformation_;
174 @java.lang.Override
176 return infeasibilityInformation_;
177 }
178
187 @java.lang.Override
188 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
190 return infeasibilityInformation_;
191 }
192
201 @java.lang.Override
203 return infeasibilityInformation_.size();
204 }
205
214 @java.lang.Override
216 return infeasibilityInformation_.get(index);
217 }
218
227 @java.lang.Override
229 int index) {
230 return infeasibilityInformation_.get(index);
231 }
232
233 public static final int POINT_METADATA_FIELD_NUMBER = 11;
234 @SuppressWarnings("serial")
235 private java.util.List<com.google.ortools.pdlp.PointMetadata> pointMetadata_;
243 @java.lang.Override
244 public java.util.List<com.google.ortools.pdlp.PointMetadata> getPointMetadataList() {
245 return pointMetadata_;
246 }
247
254 @java.lang.Override
255 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
257 return pointMetadata_;
258 }
259
266 @java.lang.Override
268 return pointMetadata_.size();
269 }
270
277 @java.lang.Override
279 return pointMetadata_.get(index);
280 }
281
288 @java.lang.Override
290 int index) {
291 return pointMetadata_.get(index);
292 }
293
294 public static final int CUMULATIVE_KKT_MATRIX_PASSES_FIELD_NUMBER = 4;
295 private double cumulativeKktMatrixPasses_ = 0D;
312 @java.lang.Override
314 return ((bitField0_ & 0x00000002) != 0);
315 }
316
332 @java.lang.Override
334 return cumulativeKktMatrixPasses_;
335 }
336
337 public static final int CUMULATIVE_REJECTED_STEPS_FIELD_NUMBER = 5;
338 private int cumulativeRejectedSteps_ = 0;
348 @java.lang.Override
349 public boolean hasCumulativeRejectedSteps() {
350 return ((bitField0_ & 0x00000004) != 0);
351 }
352
361 @java.lang.Override
363 return cumulativeRejectedSteps_;
364 }
365
366 public static final int CUMULATIVE_TIME_SEC_FIELD_NUMBER = 6;
367 private double cumulativeTimeSec_ = 0D;
377 @java.lang.Override
378 public boolean hasCumulativeTimeSec() {
379 return ((bitField0_ & 0x00000008) != 0);
380 }
381
390 @java.lang.Override
391 public double getCumulativeTimeSec() {
392 return cumulativeTimeSec_;
393 }
394
395 public static final int RESTART_USED_FIELD_NUMBER = 7;
396 private int restartUsed_ = 0;
406 @java.lang.Override public boolean hasRestartUsed() {
407 return ((bitField0_ & 0x00000010) != 0);
408 }
409
419 com.google.ortools.pdlp.RestartChoice result = com.google.ortools.pdlp.RestartChoice.forNumber(restartUsed_);
421 }
422
423 public static final int STEP_SIZE_FIELD_NUMBER = 8;
424 private double stepSize_ = 0D;
435 @java.lang.Override
436 public boolean hasStepSize() {
437 return ((bitField0_ & 0x00000020) != 0);
438 }
439
449 @java.lang.Override
450 public double getStepSize() {
451 return stepSize_;
452 }
453
454 public static final int PRIMAL_WEIGHT_FIELD_NUMBER = 9;
455 private double primalWeight_ = 0D;
465 @java.lang.Override
466 public boolean hasPrimalWeight() {
467 return ((bitField0_ & 0x00000040) != 0);
468 }
469
478 @java.lang.Override
479 public double getPrimalWeight() {
480 return primalWeight_;
481 }
482
483 private byte memoizedIsInitialized = -1;
484 @java.lang.Override
485 public final boolean isInitialized() {
486 byte isInitialized = memoizedIsInitialized;
487 if (isInitialized == 1) return true;
488 if (isInitialized == 0) return false;
489
490 memoizedIsInitialized = 1;
491 return true;
492 }
493
494 @java.lang.Override
495 public void writeTo(com.google.protobuf.CodedOutputStream output)
496 throws java.io.IOException {
497 if (((bitField0_ & 0x00000001) != 0)) {
498 output.writeInt32(1, iterationNumber_);
499 }
500 for (int i = 0; i < convergenceInformation_.size(); i++) {
501 output.writeMessage(2, convergenceInformation_.get(i));
502 }
503 for (int i = 0; i < infeasibilityInformation_.size(); i++) {
504 output.writeMessage(3, infeasibilityInformation_.get(i));
505 }
506 if (((bitField0_ & 0x00000002) != 0)) {
507 output.writeDouble(4, cumulativeKktMatrixPasses_);
508 }
509 if (((bitField0_ & 0x00000004) != 0)) {
510 output.writeInt32(5, cumulativeRejectedSteps_);
511 }
512 if (((bitField0_ & 0x00000008) != 0)) {
513 output.writeDouble(6, cumulativeTimeSec_);
514 }
515 if (((bitField0_ & 0x00000010) != 0)) {
516 output.writeEnum(7, restartUsed_);
517 }
518 if (((bitField0_ & 0x00000020) != 0)) {
519 output.writeDouble(8, stepSize_);
520 }
521 if (((bitField0_ & 0x00000040) != 0)) {
522 output.writeDouble(9, primalWeight_);
523 }
524 for (int i = 0; i < pointMetadata_.size(); i++) {
525 output.writeMessage(11, pointMetadata_.get(i));
526 }
527 getUnknownFields().writeTo(output);
528 }
529
530 @java.lang.Override
531 public int getSerializedSize() {
532 int size = memoizedSize;
533 if (size != -1) return size;
534
535 size = 0;
536 if (((bitField0_ & 0x00000001) != 0)) {
537 size += com.google.protobuf.CodedOutputStream
538 .computeInt32Size(1, iterationNumber_);
539 }
540 for (int i = 0; i < convergenceInformation_.size(); i++) {
541 size += com.google.protobuf.CodedOutputStream
542 .computeMessageSize(2, convergenceInformation_.get(i));
543 }
544 for (int i = 0; i < infeasibilityInformation_.size(); i++) {
545 size += com.google.protobuf.CodedOutputStream
546 .computeMessageSize(3, infeasibilityInformation_.get(i));
547 }
548 if (((bitField0_ & 0x00000002) != 0)) {
549 size += com.google.protobuf.CodedOutputStream
550 .computeDoubleSize(4, cumulativeKktMatrixPasses_);
551 }
552 if (((bitField0_ & 0x00000004) != 0)) {
553 size += com.google.protobuf.CodedOutputStream
554 .computeInt32Size(5, cumulativeRejectedSteps_);
555 }
556 if (((bitField0_ & 0x00000008) != 0)) {
557 size += com.google.protobuf.CodedOutputStream
558 .computeDoubleSize(6, cumulativeTimeSec_);
559 }
560 if (((bitField0_ & 0x00000010) != 0)) {
561 size += com.google.protobuf.CodedOutputStream
562 .computeEnumSize(7, restartUsed_);
563 }
564 if (((bitField0_ & 0x00000020) != 0)) {
565 size += com.google.protobuf.CodedOutputStream
566 .computeDoubleSize(8, stepSize_);
567 }
568 if (((bitField0_ & 0x00000040) != 0)) {
569 size += com.google.protobuf.CodedOutputStream
570 .computeDoubleSize(9, primalWeight_);
571 }
572 for (int i = 0; i < pointMetadata_.size(); i++) {
573 size += com.google.protobuf.CodedOutputStream
574 .computeMessageSize(11, pointMetadata_.get(i));
575 }
576 size += getUnknownFields().getSerializedSize();
577 memoizedSize = size;
578 return size;
579 }
580
581 @java.lang.Override
582 public boolean equals(final java.lang.Object obj) {
583 if (obj == this) {
584 return true;
585 }
586 if (!(obj instanceof com.google.ortools.pdlp.IterationStats)) {
587 return super.equals(obj);
588 }
589 com.google.ortools.pdlp.IterationStats other = (com.google.ortools.pdlp.IterationStats) obj;
590
591 if (hasIterationNumber() != other.hasIterationNumber()) return false;
592 if (hasIterationNumber()) {
594 != other.getIterationNumber()) return false;
595 }
597 .equals(other.getConvergenceInformationList())) return false;
599 .equals(other.getInfeasibilityInformationList())) return false;
601 .equals(other.getPointMetadataList())) return false;
602 if (hasCumulativeKktMatrixPasses() != other.hasCumulativeKktMatrixPasses()) return false;
604 if (java.lang.Double.doubleToLongBits(getCumulativeKktMatrixPasses())
605 != java.lang.Double.doubleToLongBits(
606 other.getCumulativeKktMatrixPasses())) return false;
607 }
608 if (hasCumulativeRejectedSteps() != other.hasCumulativeRejectedSteps()) return false;
611 != other.getCumulativeRejectedSteps()) return false;
612 }
613 if (hasCumulativeTimeSec() != other.hasCumulativeTimeSec()) return false;
614 if (hasCumulativeTimeSec()) {
615 if (java.lang.Double.doubleToLongBits(getCumulativeTimeSec())
616 != java.lang.Double.doubleToLongBits(
617 other.getCumulativeTimeSec())) return false;
618 }
619 if (hasRestartUsed() != other.hasRestartUsed()) return false;
620 if (hasRestartUsed()) {
621 if (restartUsed_ != other.restartUsed_) return false;
622 }
623 if (hasStepSize() != other.hasStepSize()) return false;
624 if (hasStepSize()) {
625 if (java.lang.Double.doubleToLongBits(getStepSize())
626 != java.lang.Double.doubleToLongBits(
627 other.getStepSize())) return false;
628 }
629 if (hasPrimalWeight() != other.hasPrimalWeight()) return false;
630 if (hasPrimalWeight()) {
631 if (java.lang.Double.doubleToLongBits(getPrimalWeight())
632 != java.lang.Double.doubleToLongBits(
633 other.getPrimalWeight())) return false;
634 }
635 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
636 return true;
637 }
638
639 @java.lang.Override
640 public int hashCode() {
641 if (memoizedHashCode != 0) {
642 return memoizedHashCode;
643 }
644 int hash = 41;
645 hash = (19 * hash) + getDescriptor().hashCode();
646 if (hasIterationNumber()) {
647 hash = (37 * hash) + ITERATION_NUMBER_FIELD_NUMBER;
648 hash = (53 * hash) + getIterationNumber();
649 }
651 hash = (37 * hash) + CONVERGENCE_INFORMATION_FIELD_NUMBER;
652 hash = (53 * hash) + getConvergenceInformationList().hashCode();
653 }
655 hash = (37 * hash) + INFEASIBILITY_INFORMATION_FIELD_NUMBER;
656 hash = (53 * hash) + getInfeasibilityInformationList().hashCode();
657 }
658 if (getPointMetadataCount() > 0) {
659 hash = (37 * hash) + POINT_METADATA_FIELD_NUMBER;
660 hash = (53 * hash) + getPointMetadataList().hashCode();
661 }
664 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
665 java.lang.Double.doubleToLongBits(getCumulativeKktMatrixPasses()));
666 }
668 hash = (37 * hash) + CUMULATIVE_REJECTED_STEPS_FIELD_NUMBER;
669 hash = (53 * hash) + getCumulativeRejectedSteps();
670 }
671 if (hasCumulativeTimeSec()) {
672 hash = (37 * hash) + CUMULATIVE_TIME_SEC_FIELD_NUMBER;
673 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
674 java.lang.Double.doubleToLongBits(getCumulativeTimeSec()));
675 }
676 if (hasRestartUsed()) {
677 hash = (37 * hash) + RESTART_USED_FIELD_NUMBER;
678 hash = (53 * hash) + restartUsed_;
679 }
680 if (hasStepSize()) {
681 hash = (37 * hash) + STEP_SIZE_FIELD_NUMBER;
682 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
683 java.lang.Double.doubleToLongBits(getStepSize()));
684 }
685 if (hasPrimalWeight()) {
686 hash = (37 * hash) + PRIMAL_WEIGHT_FIELD_NUMBER;
687 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
688 java.lang.Double.doubleToLongBits(getPrimalWeight()));
689 }
690 hash = (29 * hash) + getUnknownFields().hashCode();
691 memoizedHashCode = hash;
692 return hash;
693 }
694
696 java.nio.ByteBuffer data)
697 throws com.google.protobuf.InvalidProtocolBufferException {
698 return PARSER.parseFrom(data);
699 }
701 java.nio.ByteBuffer data,
702 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
703 throws com.google.protobuf.InvalidProtocolBufferException {
704 return PARSER.parseFrom(data, extensionRegistry);
705 }
707 com.google.protobuf.ByteString data)
708 throws com.google.protobuf.InvalidProtocolBufferException {
709 return PARSER.parseFrom(data);
710 }
712 com.google.protobuf.ByteString data,
713 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
714 throws com.google.protobuf.InvalidProtocolBufferException {
715 return PARSER.parseFrom(data, extensionRegistry);
716 }
718 throws com.google.protobuf.InvalidProtocolBufferException {
719 return PARSER.parseFrom(data);
720 }
722 byte[] data,
723 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
724 throws com.google.protobuf.InvalidProtocolBufferException {
725 return PARSER.parseFrom(data, extensionRegistry);
726 }
727 public static com.google.ortools.pdlp.IterationStats parseFrom(java.io.InputStream input)
728 throws java.io.IOException {
729 return com.google.protobuf.GeneratedMessage
730 .parseWithIOException(PARSER, input);
731 }
733 java.io.InputStream input,
734 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
735 throws java.io.IOException {
736 return com.google.protobuf.GeneratedMessage
737 .parseWithIOException(PARSER, input, extensionRegistry);
738 }
739
740 public static com.google.ortools.pdlp.IterationStats parseDelimitedFrom(java.io.InputStream input)
741 throws java.io.IOException {
742 return com.google.protobuf.GeneratedMessage
743 .parseDelimitedWithIOException(PARSER, input);
744 }
745
747 java.io.InputStream input,
748 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
749 throws java.io.IOException {
750 return com.google.protobuf.GeneratedMessage
751 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
752 }
754 com.google.protobuf.CodedInputStream input)
755 throws java.io.IOException {
756 return com.google.protobuf.GeneratedMessage
757 .parseWithIOException(PARSER, input);
758 }
760 com.google.protobuf.CodedInputStream input,
761 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
762 throws java.io.IOException {
763 return com.google.protobuf.GeneratedMessage
764 .parseWithIOException(PARSER, input, extensionRegistry);
765 }
766
767 @java.lang.Override
768 public Builder newBuilderForType() { return newBuilder(); }
769 public static Builder newBuilder() {
770 return DEFAULT_INSTANCE.toBuilder();
771 }
772 public static Builder newBuilder(com.google.ortools.pdlp.IterationStats prototype) {
773 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
774 }
775 @java.lang.Override
777 return this == DEFAULT_INSTANCE
778 ? new Builder() : new Builder().mergeFrom(this);
779 }
780
781 @java.lang.Override
783 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
784 Builder builder = new Builder(parent);
785 return builder;
786 }
787
798 public static final class Builder extends
799 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
800 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.IterationStats)
802 public static final com.google.protobuf.Descriptors.Descriptor
804 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
805 }
806
807 @java.lang.Override
808 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
810 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
811 .ensureFieldAccessorsInitialized(
812 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
813 }
814
815 // Construct using com.google.ortools.pdlp.IterationStats.newBuilder()
816 private Builder() {
817
818 }
819
820 private Builder(
821 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
822 super(parent);
823
824 }
825 @java.lang.Override
826 public Builder clear() {
827 super.clear();
828 bitField0_ = 0;
829 iterationNumber_ = 0;
830 if (convergenceInformationBuilder_ == null) {
831 convergenceInformation_ = java.util.Collections.emptyList();
832 } else {
833 convergenceInformation_ = null;
834 convergenceInformationBuilder_.clear();
835 }
836 bitField0_ = (bitField0_ & ~0x00000002);
837 if (infeasibilityInformationBuilder_ == null) {
838 infeasibilityInformation_ = java.util.Collections.emptyList();
839 } else {
840 infeasibilityInformation_ = null;
841 infeasibilityInformationBuilder_.clear();
842 }
843 bitField0_ = (bitField0_ & ~0x00000004);
844 if (pointMetadataBuilder_ == null) {
845 pointMetadata_ = java.util.Collections.emptyList();
846 } else {
847 pointMetadata_ = null;
848 pointMetadataBuilder_.clear();
849 }
850 bitField0_ = (bitField0_ & ~0x00000008);
851 cumulativeKktMatrixPasses_ = 0D;
852 cumulativeRejectedSteps_ = 0;
853 cumulativeTimeSec_ = 0D;
854 restartUsed_ = 0;
855 stepSize_ = 0D;
856 primalWeight_ = 0D;
857 return this;
858 }
859
860 @java.lang.Override
861 public com.google.protobuf.Descriptors.Descriptor
863 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
864 }
865
866 @java.lang.Override
868 return com.google.ortools.pdlp.IterationStats.getDefaultInstance();
869 }
870
871 @java.lang.Override
874 if (!result.isInitialized()) {
875 throw newUninitializedMessageException(result);
876 }
877 return result;
878 }
879
880 @java.lang.Override
882 com.google.ortools.pdlp.IterationStats result = new com.google.ortools.pdlp.IterationStats(this);
883 buildPartialRepeatedFields(result);
884 if (bitField0_ != 0) { buildPartial0(result); }
885 onBuilt();
886 return result;
887 }
888
889 private void buildPartialRepeatedFields(com.google.ortools.pdlp.IterationStats result) {
890 if (convergenceInformationBuilder_ == null) {
891 if (((bitField0_ & 0x00000002) != 0)) {
892 convergenceInformation_ = java.util.Collections.unmodifiableList(convergenceInformation_);
893 bitField0_ = (bitField0_ & ~0x00000002);
894 }
895 result.convergenceInformation_ = convergenceInformation_;
896 } else {
897 result.convergenceInformation_ = convergenceInformationBuilder_.build();
898 }
899 if (infeasibilityInformationBuilder_ == null) {
900 if (((bitField0_ & 0x00000004) != 0)) {
901 infeasibilityInformation_ = java.util.Collections.unmodifiableList(infeasibilityInformation_);
902 bitField0_ = (bitField0_ & ~0x00000004);
903 }
904 result.infeasibilityInformation_ = infeasibilityInformation_;
905 } else {
906 result.infeasibilityInformation_ = infeasibilityInformationBuilder_.build();
907 }
908 if (pointMetadataBuilder_ == null) {
909 if (((bitField0_ & 0x00000008) != 0)) {
910 pointMetadata_ = java.util.Collections.unmodifiableList(pointMetadata_);
911 bitField0_ = (bitField0_ & ~0x00000008);
912 }
913 result.pointMetadata_ = pointMetadata_;
914 } else {
915 result.pointMetadata_ = pointMetadataBuilder_.build();
916 }
917 }
918
919 private void buildPartial0(com.google.ortools.pdlp.IterationStats result) {
920 int from_bitField0_ = bitField0_;
921 int to_bitField0_ = 0;
922 if (((from_bitField0_ & 0x00000001) != 0)) {
923 result.iterationNumber_ = iterationNumber_;
924 to_bitField0_ |= 0x00000001;
925 }
926 if (((from_bitField0_ & 0x00000010) != 0)) {
927 result.cumulativeKktMatrixPasses_ = cumulativeKktMatrixPasses_;
928 to_bitField0_ |= 0x00000002;
929 }
930 if (((from_bitField0_ & 0x00000020) != 0)) {
931 result.cumulativeRejectedSteps_ = cumulativeRejectedSteps_;
932 to_bitField0_ |= 0x00000004;
933 }
934 if (((from_bitField0_ & 0x00000040) != 0)) {
935 result.cumulativeTimeSec_ = cumulativeTimeSec_;
936 to_bitField0_ |= 0x00000008;
937 }
938 if (((from_bitField0_ & 0x00000080) != 0)) {
939 result.restartUsed_ = restartUsed_;
940 to_bitField0_ |= 0x00000010;
941 }
942 if (((from_bitField0_ & 0x00000100) != 0)) {
943 result.stepSize_ = stepSize_;
944 to_bitField0_ |= 0x00000020;
945 }
946 if (((from_bitField0_ & 0x00000200) != 0)) {
947 result.primalWeight_ = primalWeight_;
948 to_bitField0_ |= 0x00000040;
949 }
950 result.bitField0_ |= to_bitField0_;
951 }
952
953 @java.lang.Override
954 public Builder mergeFrom(com.google.protobuf.Message other) {
955 if (other instanceof com.google.ortools.pdlp.IterationStats) {
956 return mergeFrom((com.google.ortools.pdlp.IterationStats)other);
957 } else {
958 super.mergeFrom(other);
959 return this;
960 }
961 }
962
963 public Builder mergeFrom(com.google.ortools.pdlp.IterationStats other) {
964 if (other == com.google.ortools.pdlp.IterationStats.getDefaultInstance()) return this;
965 if (other.hasIterationNumber()) {
966 setIterationNumber(other.getIterationNumber());
967 }
968 if (convergenceInformationBuilder_ == null) {
969 if (!other.convergenceInformation_.isEmpty()) {
970 if (convergenceInformation_.isEmpty()) {
971 convergenceInformation_ = other.convergenceInformation_;
972 bitField0_ = (bitField0_ & ~0x00000002);
973 } else {
974 ensureConvergenceInformationIsMutable();
975 convergenceInformation_.addAll(other.convergenceInformation_);
976 }
977 onChanged();
978 }
979 } else {
980 if (!other.convergenceInformation_.isEmpty()) {
981 if (convergenceInformationBuilder_.isEmpty()) {
982 convergenceInformationBuilder_.dispose();
983 convergenceInformationBuilder_ = null;
984 convergenceInformation_ = other.convergenceInformation_;
985 bitField0_ = (bitField0_ & ~0x00000002);
986 convergenceInformationBuilder_ =
987 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
988 getConvergenceInformationFieldBuilder() : null;
989 } else {
990 convergenceInformationBuilder_.addAllMessages(other.convergenceInformation_);
991 }
992 }
993 }
994 if (infeasibilityInformationBuilder_ == null) {
995 if (!other.infeasibilityInformation_.isEmpty()) {
996 if (infeasibilityInformation_.isEmpty()) {
997 infeasibilityInformation_ = other.infeasibilityInformation_;
998 bitField0_ = (bitField0_ & ~0x00000004);
999 } else {
1000 ensureInfeasibilityInformationIsMutable();
1001 infeasibilityInformation_.addAll(other.infeasibilityInformation_);
1002 }
1003 onChanged();
1004 }
1005 } else {
1006 if (!other.infeasibilityInformation_.isEmpty()) {
1007 if (infeasibilityInformationBuilder_.isEmpty()) {
1008 infeasibilityInformationBuilder_.dispose();
1009 infeasibilityInformationBuilder_ = null;
1010 infeasibilityInformation_ = other.infeasibilityInformation_;
1011 bitField0_ = (bitField0_ & ~0x00000004);
1012 infeasibilityInformationBuilder_ =
1013 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1014 getInfeasibilityInformationFieldBuilder() : null;
1015 } else {
1016 infeasibilityInformationBuilder_.addAllMessages(other.infeasibilityInformation_);
1017 }
1018 }
1019 }
1020 if (pointMetadataBuilder_ == null) {
1021 if (!other.pointMetadata_.isEmpty()) {
1022 if (pointMetadata_.isEmpty()) {
1023 pointMetadata_ = other.pointMetadata_;
1024 bitField0_ = (bitField0_ & ~0x00000008);
1025 } else {
1026 ensurePointMetadataIsMutable();
1027 pointMetadata_.addAll(other.pointMetadata_);
1028 }
1029 onChanged();
1030 }
1031 } else {
1032 if (!other.pointMetadata_.isEmpty()) {
1033 if (pointMetadataBuilder_.isEmpty()) {
1034 pointMetadataBuilder_.dispose();
1035 pointMetadataBuilder_ = null;
1036 pointMetadata_ = other.pointMetadata_;
1037 bitField0_ = (bitField0_ & ~0x00000008);
1038 pointMetadataBuilder_ =
1039 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1040 getPointMetadataFieldBuilder() : null;
1041 } else {
1042 pointMetadataBuilder_.addAllMessages(other.pointMetadata_);
1043 }
1044 }
1045 }
1046 if (other.hasCumulativeKktMatrixPasses()) {
1047 setCumulativeKktMatrixPasses(other.getCumulativeKktMatrixPasses());
1048 }
1049 if (other.hasCumulativeRejectedSteps()) {
1050 setCumulativeRejectedSteps(other.getCumulativeRejectedSteps());
1051 }
1052 if (other.hasCumulativeTimeSec()) {
1053 setCumulativeTimeSec(other.getCumulativeTimeSec());
1054 }
1055 if (other.hasRestartUsed()) {
1056 setRestartUsed(other.getRestartUsed());
1057 }
1058 if (other.hasStepSize()) {
1059 setStepSize(other.getStepSize());
1060 }
1061 if (other.hasPrimalWeight()) {
1062 setPrimalWeight(other.getPrimalWeight());
1063 }
1064 this.mergeUnknownFields(other.getUnknownFields());
1065 onChanged();
1066 return this;
1067 }
1068
1069 @java.lang.Override
1070 public final boolean isInitialized() {
1071 return true;
1072 }
1073
1074 @java.lang.Override
1075 public Builder mergeFrom(
1076 com.google.protobuf.CodedInputStream input,
1077 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1078 throws java.io.IOException {
1079 if (extensionRegistry == null) {
1080 throw new java.lang.NullPointerException();
1081 }
1082 try {
1083 boolean done = false;
1084 while (!done) {
1085 int tag = input.readTag();
1086 switch (tag) {
1087 case 0:
1088 done = true;
1089 break;
1090 case 8: {
1091 iterationNumber_ = input.readInt32();
1092 bitField0_ |= 0x00000001;
1093 break;
1094 } // case 8
1095 case 18: {
1097 input.readMessage(
1098 com.google.ortools.pdlp.ConvergenceInformation.parser(),
1099 extensionRegistry);
1100 if (convergenceInformationBuilder_ == null) {
1101 ensureConvergenceInformationIsMutable();
1102 convergenceInformation_.add(m);
1103 } else {
1104 convergenceInformationBuilder_.addMessage(m);
1105 }
1106 break;
1107 } // case 18
1108 case 26: {
1110 input.readMessage(
1111 com.google.ortools.pdlp.InfeasibilityInformation.parser(),
1112 extensionRegistry);
1113 if (infeasibilityInformationBuilder_ == null) {
1114 ensureInfeasibilityInformationIsMutable();
1115 infeasibilityInformation_.add(m);
1116 } else {
1117 infeasibilityInformationBuilder_.addMessage(m);
1118 }
1119 break;
1120 } // case 26
1121 case 33: {
1122 cumulativeKktMatrixPasses_ = input.readDouble();
1123 bitField0_ |= 0x00000010;
1124 break;
1125 } // case 33
1126 case 40: {
1127 cumulativeRejectedSteps_ = input.readInt32();
1128 bitField0_ |= 0x00000020;
1129 break;
1130 } // case 40
1131 case 49: {
1132 cumulativeTimeSec_ = input.readDouble();
1133 bitField0_ |= 0x00000040;
1134 break;
1135 } // case 49
1136 case 56: {
1137 int tmpRaw = input.readEnum();
1139 com.google.ortools.pdlp.RestartChoice.forNumber(tmpRaw);
1140 if (tmpValue == null) {
1141 mergeUnknownVarintField(7, tmpRaw);
1142 } else {
1143 restartUsed_ = tmpRaw;
1144 bitField0_ |= 0x00000080;
1145 }
1146 break;
1147 } // case 56
1148 case 65: {
1149 stepSize_ = input.readDouble();
1150 bitField0_ |= 0x00000100;
1151 break;
1152 } // case 65
1153 case 73: {
1154 primalWeight_ = input.readDouble();
1155 bitField0_ |= 0x00000200;
1156 break;
1157 } // case 73
1158 case 90: {
1160 input.readMessage(
1161 com.google.ortools.pdlp.PointMetadata.parser(),
1162 extensionRegistry);
1163 if (pointMetadataBuilder_ == null) {
1164 ensurePointMetadataIsMutable();
1165 pointMetadata_.add(m);
1166 } else {
1167 pointMetadataBuilder_.addMessage(m);
1168 }
1169 break;
1170 } // case 90
1171 default: {
1172 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1173 done = true; // was an endgroup tag
1174 }
1175 break;
1176 } // default:
1177 } // switch (tag)
1178 } // while (!done)
1179 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1180 throw e.unwrapIOException();
1181 } finally {
1182 onChanged();
1183 } // finally
1184 return this;
1185 }
1186 private int bitField0_;
1187
1188 private int iterationNumber_ ;
1200 @java.lang.Override
1201 public boolean hasIterationNumber() {
1202 return ((bitField0_ & 0x00000001) != 0);
1203 }
1204
1215 @java.lang.Override
1216 public int getIterationNumber() {
1217 return iterationNumber_;
1218 }
1219
1231 public Builder setIterationNumber(int value) {
1232
1233 iterationNumber_ = value;
1234 bitField0_ |= 0x00000001;
1235 onChanged();
1236 return this;
1237 }
1238
1249 public Builder clearIterationNumber() {
1250 bitField0_ = (bitField0_ & ~0x00000001);
1251 iterationNumber_ = 0;
1252 onChanged();
1253 return this;
1254 }
1255
1256 private java.util.List<com.google.ortools.pdlp.ConvergenceInformation> convergenceInformation_ =
1257 java.util.Collections.emptyList();
1258 private void ensureConvergenceInformationIsMutable() {
1259 if (!((bitField0_ & 0x00000002) != 0)) {
1260 convergenceInformation_ = new java.util.ArrayList<com.google.ortools.pdlp.ConvergenceInformation>(convergenceInformation_);
1261 bitField0_ |= 0x00000002;
1262 }
1263 }
1264
1265 private com.google.protobuf.RepeatedFieldBuilder<
1266 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder> convergenceInformationBuilder_;
1267
1277 public java.util.List<com.google.ortools.pdlp.ConvergenceInformation> getConvergenceInformationList() {
1278 if (convergenceInformationBuilder_ == null) {
1279 return java.util.Collections.unmodifiableList(convergenceInformation_);
1280 } else {
1281 return convergenceInformationBuilder_.getMessageList();
1282 }
1283 }
1284
1294 if (convergenceInformationBuilder_ == null) {
1295 return convergenceInformation_.size();
1296 } else {
1297 return convergenceInformationBuilder_.getCount();
1298 }
1299 }
1300
1310 if (convergenceInformationBuilder_ == null) {
1311 return convergenceInformation_.get(index);
1312 } else {
1313 return convergenceInformationBuilder_.getMessage(index);
1314 }
1315 }
1316
1326 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1327 if (convergenceInformationBuilder_ == null) {
1328 if (value == null) {
1329 throw new NullPointerException();
1330 }
1331 ensureConvergenceInformationIsMutable();
1332 convergenceInformation_.set(index, value);
1333 onChanged();
1334 } else {
1335 convergenceInformationBuilder_.setMessage(index, value);
1336 }
1337 return this;
1338 }
1339
1349 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1350 if (convergenceInformationBuilder_ == null) {
1351 ensureConvergenceInformationIsMutable();
1352 convergenceInformation_.set(index, builderForValue.build());
1353 onChanged();
1354 } else {
1355 convergenceInformationBuilder_.setMessage(index, builderForValue.build());
1356 }
1357 return this;
1358 }
1359
1368 public Builder addConvergenceInformation(com.google.ortools.pdlp.ConvergenceInformation value) {
1369 if (convergenceInformationBuilder_ == null) {
1370 if (value == null) {
1371 throw new NullPointerException();
1372 }
1373 ensureConvergenceInformationIsMutable();
1374 convergenceInformation_.add(value);
1375 onChanged();
1376 } else {
1377 convergenceInformationBuilder_.addMessage(value);
1378 }
1379 return this;
1380 }
1381
1391 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1392 if (convergenceInformationBuilder_ == null) {
1393 if (value == null) {
1394 throw new NullPointerException();
1395 }
1396 ensureConvergenceInformationIsMutable();
1397 convergenceInformation_.add(index, value);
1398 onChanged();
1399 } else {
1400 convergenceInformationBuilder_.addMessage(index, value);
1401 }
1402 return this;
1403 }
1404
1414 com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1415 if (convergenceInformationBuilder_ == null) {
1416 ensureConvergenceInformationIsMutable();
1417 convergenceInformation_.add(builderForValue.build());
1418 onChanged();
1419 } else {
1420 convergenceInformationBuilder_.addMessage(builderForValue.build());
1421 }
1422 return this;
1423 }
1424
1434 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1435 if (convergenceInformationBuilder_ == null) {
1436 ensureConvergenceInformationIsMutable();
1437 convergenceInformation_.add(index, builderForValue.build());
1438 onChanged();
1439 } else {
1440 convergenceInformationBuilder_.addMessage(index, builderForValue.build());
1441 }
1442 return this;
1443 }
1444
1454 java.lang.Iterable<? extends com.google.ortools.pdlp.ConvergenceInformation> values) {
1455 if (convergenceInformationBuilder_ == null) {
1456 ensureConvergenceInformationIsMutable();
1457 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1458 values, convergenceInformation_);
1459 onChanged();
1460 } else {
1461 convergenceInformationBuilder_.addAllMessages(values);
1462 }
1463 return this;
1464 }
1465
1475 if (convergenceInformationBuilder_ == null) {
1476 convergenceInformation_ = java.util.Collections.emptyList();
1477 bitField0_ = (bitField0_ & ~0x00000002);
1478 onChanged();
1479 } else {
1480 convergenceInformationBuilder_.clear();
1481 }
1482 return this;
1483 }
1484
1493 public Builder removeConvergenceInformation(int index) {
1494 if (convergenceInformationBuilder_ == null) {
1495 ensureConvergenceInformationIsMutable();
1496 convergenceInformation_.remove(index);
1497 onChanged();
1498 } else {
1499 convergenceInformationBuilder_.remove(index);
1500 }
1501 return this;
1502 }
1503
1513 int index) {
1514 return getConvergenceInformationFieldBuilder().getBuilder(index);
1515 }
1516
1526 int index) {
1527 if (convergenceInformationBuilder_ == null) {
1528 return convergenceInformation_.get(index); } else {
1529 return convergenceInformationBuilder_.getMessageOrBuilder(index);
1530 }
1531 }
1532
1541 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1543 if (convergenceInformationBuilder_ != null) {
1544 return convergenceInformationBuilder_.getMessageOrBuilderList();
1545 } else {
1546 return java.util.Collections.unmodifiableList(convergenceInformation_);
1547 }
1548 }
1549
1559 return getConvergenceInformationFieldBuilder().addBuilder(
1560 com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1561 }
1562
1572 int index) {
1573 return getConvergenceInformationFieldBuilder().addBuilder(
1574 index, com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1575 }
1576
1585 public java.util.List<com.google.ortools.pdlp.ConvergenceInformation.Builder>
1587 return getConvergenceInformationFieldBuilder().getBuilderList();
1588 }
1589 private com.google.protobuf.RepeatedFieldBuilder<
1590 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1591 getConvergenceInformationFieldBuilder() {
1592 if (convergenceInformationBuilder_ == null) {
1593 convergenceInformationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1594 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>(
1595 convergenceInformation_,
1596 ((bitField0_ & 0x00000002) != 0),
1597 getParentForChildren(),
1598 isClean());
1599 convergenceInformation_ = null;
1600 }
1601 return convergenceInformationBuilder_;
1602 }
1603
1604 private java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> infeasibilityInformation_ =
1605 java.util.Collections.emptyList();
1606 private void ensureInfeasibilityInformationIsMutable() {
1607 if (!((bitField0_ & 0x00000004) != 0)) {
1608 infeasibilityInformation_ = new java.util.ArrayList<com.google.ortools.pdlp.InfeasibilityInformation>(infeasibilityInformation_);
1609 bitField0_ |= 0x00000004;
1610 }
1611 }
1612
1613 private com.google.protobuf.RepeatedFieldBuilder<
1614 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder> infeasibilityInformationBuilder_;
1615
1625 public java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> getInfeasibilityInformationList() {
1626 if (infeasibilityInformationBuilder_ == null) {
1627 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1628 } else {
1629 return infeasibilityInformationBuilder_.getMessageList();
1630 }
1631 }
1632
1642 if (infeasibilityInformationBuilder_ == null) {
1643 return infeasibilityInformation_.size();
1644 } else {
1645 return infeasibilityInformationBuilder_.getCount();
1646 }
1647 }
1648
1658 if (infeasibilityInformationBuilder_ == null) {
1659 return infeasibilityInformation_.get(index);
1660 } else {
1661 return infeasibilityInformationBuilder_.getMessage(index);
1662 }
1663 }
1664
1674 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1675 if (infeasibilityInformationBuilder_ == null) {
1676 if (value == null) {
1677 throw new NullPointerException();
1678 }
1679 ensureInfeasibilityInformationIsMutable();
1680 infeasibilityInformation_.set(index, value);
1681 onChanged();
1682 } else {
1683 infeasibilityInformationBuilder_.setMessage(index, value);
1684 }
1685 return this;
1686 }
1687
1697 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1698 if (infeasibilityInformationBuilder_ == null) {
1699 ensureInfeasibilityInformationIsMutable();
1700 infeasibilityInformation_.set(index, builderForValue.build());
1701 onChanged();
1702 } else {
1703 infeasibilityInformationBuilder_.setMessage(index, builderForValue.build());
1704 }
1705 return this;
1706 }
1707
1716 public Builder addInfeasibilityInformation(com.google.ortools.pdlp.InfeasibilityInformation value) {
1717 if (infeasibilityInformationBuilder_ == null) {
1718 if (value == null) {
1719 throw new NullPointerException();
1720 }
1721 ensureInfeasibilityInformationIsMutable();
1722 infeasibilityInformation_.add(value);
1723 onChanged();
1724 } else {
1725 infeasibilityInformationBuilder_.addMessage(value);
1726 }
1727 return this;
1728 }
1729
1739 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1740 if (infeasibilityInformationBuilder_ == null) {
1741 if (value == null) {
1742 throw new NullPointerException();
1743 }
1744 ensureInfeasibilityInformationIsMutable();
1745 infeasibilityInformation_.add(index, value);
1746 onChanged();
1747 } else {
1748 infeasibilityInformationBuilder_.addMessage(index, value);
1749 }
1750 return this;
1751 }
1752
1762 com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1763 if (infeasibilityInformationBuilder_ == null) {
1764 ensureInfeasibilityInformationIsMutable();
1765 infeasibilityInformation_.add(builderForValue.build());
1766 onChanged();
1767 } else {
1768 infeasibilityInformationBuilder_.addMessage(builderForValue.build());
1769 }
1770 return this;
1771 }
1772
1782 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1783 if (infeasibilityInformationBuilder_ == null) {
1784 ensureInfeasibilityInformationIsMutable();
1785 infeasibilityInformation_.add(index, builderForValue.build());
1786 onChanged();
1787 } else {
1788 infeasibilityInformationBuilder_.addMessage(index, builderForValue.build());
1789 }
1790 return this;
1791 }
1792
1802 java.lang.Iterable<? extends com.google.ortools.pdlp.InfeasibilityInformation> values) {
1803 if (infeasibilityInformationBuilder_ == null) {
1804 ensureInfeasibilityInformationIsMutable();
1805 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1806 values, infeasibilityInformation_);
1807 onChanged();
1808 } else {
1809 infeasibilityInformationBuilder_.addAllMessages(values);
1810 }
1811 return this;
1812 }
1813
1823 if (infeasibilityInformationBuilder_ == null) {
1824 infeasibilityInformation_ = java.util.Collections.emptyList();
1825 bitField0_ = (bitField0_ & ~0x00000004);
1826 onChanged();
1827 } else {
1828 infeasibilityInformationBuilder_.clear();
1829 }
1830 return this;
1831 }
1832
1841 public Builder removeInfeasibilityInformation(int index) {
1842 if (infeasibilityInformationBuilder_ == null) {
1843 ensureInfeasibilityInformationIsMutable();
1844 infeasibilityInformation_.remove(index);
1845 onChanged();
1846 } else {
1847 infeasibilityInformationBuilder_.remove(index);
1848 }
1849 return this;
1850 }
1851
1861 int index) {
1862 return getInfeasibilityInformationFieldBuilder().getBuilder(index);
1863 }
1864
1874 int index) {
1875 if (infeasibilityInformationBuilder_ == null) {
1876 return infeasibilityInformation_.get(index); } else {
1877 return infeasibilityInformationBuilder_.getMessageOrBuilder(index);
1878 }
1879 }
1880
1889 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1891 if (infeasibilityInformationBuilder_ != null) {
1892 return infeasibilityInformationBuilder_.getMessageOrBuilderList();
1893 } else {
1894 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1895 }
1896 }
1897
1907 return getInfeasibilityInformationFieldBuilder().addBuilder(
1908 com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1909 }
1910
1920 int index) {
1921 return getInfeasibilityInformationFieldBuilder().addBuilder(
1922 index, com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1923 }
1924
1933 public java.util.List<com.google.ortools.pdlp.InfeasibilityInformation.Builder>
1935 return getInfeasibilityInformationFieldBuilder().getBuilderList();
1936 }
1937 private com.google.protobuf.RepeatedFieldBuilder<
1938 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1939 getInfeasibilityInformationFieldBuilder() {
1940 if (infeasibilityInformationBuilder_ == null) {
1941 infeasibilityInformationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1942 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>(
1943 infeasibilityInformation_,
1944 ((bitField0_ & 0x00000004) != 0),
1945 getParentForChildren(),
1946 isClean());
1947 infeasibilityInformation_ = null;
1948 }
1949 return infeasibilityInformationBuilder_;
1950 }
1951
1952 private java.util.List<com.google.ortools.pdlp.PointMetadata> pointMetadata_ =
1953 java.util.Collections.emptyList();
1954 private void ensurePointMetadataIsMutable() {
1955 if (!((bitField0_ & 0x00000008) != 0)) {
1956 pointMetadata_ = new java.util.ArrayList<com.google.ortools.pdlp.PointMetadata>(pointMetadata_);
1957 bitField0_ |= 0x00000008;
1958 }
1959 }
1960
1961 private com.google.protobuf.RepeatedFieldBuilder<
1962 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder> pointMetadataBuilder_;
1963
1971 public java.util.List<com.google.ortools.pdlp.PointMetadata> getPointMetadataList() {
1972 if (pointMetadataBuilder_ == null) {
1973 return java.util.Collections.unmodifiableList(pointMetadata_);
1974 } else {
1975 return pointMetadataBuilder_.getMessageList();
1976 }
1977 }
1978
1986 if (pointMetadataBuilder_ == null) {
1987 return pointMetadata_.size();
1988 } else {
1989 return pointMetadataBuilder_.getCount();
1990 }
1991 }
1992
2000 if (pointMetadataBuilder_ == null) {
2001 return pointMetadata_.get(index);
2002 } else {
2003 return pointMetadataBuilder_.getMessage(index);
2004 }
2005 }
2006
2013 public Builder setPointMetadata(
2014 int index, com.google.ortools.pdlp.PointMetadata value) {
2015 if (pointMetadataBuilder_ == null) {
2016 if (value == null) {
2017 throw new NullPointerException();
2018 }
2019 ensurePointMetadataIsMutable();
2020 pointMetadata_.set(index, value);
2021 onChanged();
2022 } else {
2023 pointMetadataBuilder_.setMessage(index, value);
2024 }
2025 return this;
2026 }
2027
2034 public Builder setPointMetadata(
2035 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2036 if (pointMetadataBuilder_ == null) {
2037 ensurePointMetadataIsMutable();
2038 pointMetadata_.set(index, builderForValue.build());
2039 onChanged();
2040 } else {
2041 pointMetadataBuilder_.setMessage(index, builderForValue.build());
2042 }
2043 return this;
2044 }
2045
2052 public Builder addPointMetadata(com.google.ortools.pdlp.PointMetadata value) {
2053 if (pointMetadataBuilder_ == null) {
2054 if (value == null) {
2055 throw new NullPointerException();
2056 }
2057 ensurePointMetadataIsMutable();
2058 pointMetadata_.add(value);
2059 onChanged();
2060 } else {
2061 pointMetadataBuilder_.addMessage(value);
2062 }
2063 return this;
2064 }
2065
2072 public Builder addPointMetadata(
2073 int index, com.google.ortools.pdlp.PointMetadata value) {
2074 if (pointMetadataBuilder_ == null) {
2075 if (value == null) {
2076 throw new NullPointerException();
2077 }
2078 ensurePointMetadataIsMutable();
2079 pointMetadata_.add(index, value);
2080 onChanged();
2081 } else {
2082 pointMetadataBuilder_.addMessage(index, value);
2083 }
2084 return this;
2085 }
2086
2093 public Builder addPointMetadata(
2094 com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2095 if (pointMetadataBuilder_ == null) {
2096 ensurePointMetadataIsMutable();
2097 pointMetadata_.add(builderForValue.build());
2098 onChanged();
2099 } else {
2100 pointMetadataBuilder_.addMessage(builderForValue.build());
2101 }
2102 return this;
2103 }
2104
2111 public Builder addPointMetadata(
2112 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2113 if (pointMetadataBuilder_ == null) {
2114 ensurePointMetadataIsMutable();
2115 pointMetadata_.add(index, builderForValue.build());
2116 onChanged();
2117 } else {
2118 pointMetadataBuilder_.addMessage(index, builderForValue.build());
2119 }
2120 return this;
2121 }
2122
2129 public Builder addAllPointMetadata(
2130 java.lang.Iterable<? extends com.google.ortools.pdlp.PointMetadata> values) {
2131 if (pointMetadataBuilder_ == null) {
2132 ensurePointMetadataIsMutable();
2133 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2134 values, pointMetadata_);
2135 onChanged();
2136 } else {
2137 pointMetadataBuilder_.addAllMessages(values);
2138 }
2139 return this;
2140 }
2141
2148 public Builder clearPointMetadata() {
2149 if (pointMetadataBuilder_ == null) {
2150 pointMetadata_ = java.util.Collections.emptyList();
2151 bitField0_ = (bitField0_ & ~0x00000008);
2152 onChanged();
2153 } else {
2154 pointMetadataBuilder_.clear();
2155 }
2156 return this;
2157 }
2158
2165 public Builder removePointMetadata(int index) {
2166 if (pointMetadataBuilder_ == null) {
2167 ensurePointMetadataIsMutable();
2168 pointMetadata_.remove(index);
2169 onChanged();
2170 } else {
2171 pointMetadataBuilder_.remove(index);
2172 }
2173 return this;
2174 }
2175
2183 int index) {
2184 return getPointMetadataFieldBuilder().getBuilder(index);
2185 }
2186
2194 int index) {
2195 if (pointMetadataBuilder_ == null) {
2196 return pointMetadata_.get(index); } else {
2197 return pointMetadataBuilder_.getMessageOrBuilder(index);
2198 }
2199 }
2200
2207 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
2209 if (pointMetadataBuilder_ != null) {
2210 return pointMetadataBuilder_.getMessageOrBuilderList();
2211 } else {
2212 return java.util.Collections.unmodifiableList(pointMetadata_);
2213 }
2214 }
2215
2223 return getPointMetadataFieldBuilder().addBuilder(
2224 com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2225 }
2226
2234 int index) {
2235 return getPointMetadataFieldBuilder().addBuilder(
2236 index, com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2237 }
2238
2245 public java.util.List<com.google.ortools.pdlp.PointMetadata.Builder>
2247 return getPointMetadataFieldBuilder().getBuilderList();
2248 }
2249 private com.google.protobuf.RepeatedFieldBuilder<
2250 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>
2251 getPointMetadataFieldBuilder() {
2252 if (pointMetadataBuilder_ == null) {
2253 pointMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2254 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>(
2255 pointMetadata_,
2256 ((bitField0_ & 0x00000008) != 0),
2257 getParentForChildren(),
2258 isClean());
2259 pointMetadata_ = null;
2260 }
2261 return pointMetadataBuilder_;
2262 }
2263
2264 private double cumulativeKktMatrixPasses_ ;
2281 @java.lang.Override
2283 return ((bitField0_ & 0x00000010) != 0);
2284 }
2285
2301 @java.lang.Override
2303 return cumulativeKktMatrixPasses_;
2304 }
2305
2322 public Builder setCumulativeKktMatrixPasses(double value) {
2323
2324 cumulativeKktMatrixPasses_ = value;
2325 bitField0_ |= 0x00000010;
2326 onChanged();
2327 return this;
2328 }
2329
2346 bitField0_ = (bitField0_ & ~0x00000010);
2347 cumulativeKktMatrixPasses_ = 0D;
2348 onChanged();
2349 return this;
2350 }
2351
2352 private int cumulativeRejectedSteps_ ;
2362 @java.lang.Override
2364 return ((bitField0_ & 0x00000020) != 0);
2365 }
2366
2375 @java.lang.Override
2377 return cumulativeRejectedSteps_;
2378 }
2379
2389 public Builder setCumulativeRejectedSteps(int value) {
2390
2391 cumulativeRejectedSteps_ = value;
2392 bitField0_ |= 0x00000020;
2393 onChanged();
2394 return this;
2395 }
2396
2406 bitField0_ = (bitField0_ & ~0x00000020);
2407 cumulativeRejectedSteps_ = 0;
2408 onChanged();
2409 return this;
2410 }
2411
2412 private double cumulativeTimeSec_ ;
2422 @java.lang.Override
2423 public boolean hasCumulativeTimeSec() {
2424 return ((bitField0_ & 0x00000040) != 0);
2425 }
2426
2435 @java.lang.Override
2436 public double getCumulativeTimeSec() {
2437 return cumulativeTimeSec_;
2438 }
2439
2449 public Builder setCumulativeTimeSec(double value) {
2450
2451 cumulativeTimeSec_ = value;
2452 bitField0_ |= 0x00000040;
2453 onChanged();
2454 return this;
2455 }
2456
2465 public Builder clearCumulativeTimeSec() {
2466 bitField0_ = (bitField0_ & ~0x00000040);
2467 cumulativeTimeSec_ = 0D;
2468 onChanged();
2469 return this;
2470 }
2471
2472 private int restartUsed_ = 0;
2482 @java.lang.Override public boolean hasRestartUsed() {
2483 return ((bitField0_ & 0x00000080) != 0);
2484 }
2485
2494 @java.lang.Override
2496 com.google.ortools.pdlp.RestartChoice result = com.google.ortools.pdlp.RestartChoice.forNumber(restartUsed_);
2498 }
2499
2509 public Builder setRestartUsed(com.google.ortools.pdlp.RestartChoice value) {
2510 if (value == null) {
2511 throw new NullPointerException();
2512 }
2513 bitField0_ |= 0x00000080;
2514 restartUsed_ = value.getNumber();
2515 onChanged();
2516 return this;
2517 }
2518
2527 public Builder clearRestartUsed() {
2528 bitField0_ = (bitField0_ & ~0x00000080);
2529 restartUsed_ = 0;
2530 onChanged();
2531 return this;
2532 }
2533
2534 private double stepSize_ ;
2545 @java.lang.Override
2546 public boolean hasStepSize() {
2547 return ((bitField0_ & 0x00000100) != 0);
2548 }
2549
2559 @java.lang.Override
2560 public double getStepSize() {
2561 return stepSize_;
2562 }
2563
2574 public Builder setStepSize(double value) {
2575
2576 stepSize_ = value;
2577 bitField0_ |= 0x00000100;
2578 onChanged();
2579 return this;
2580 }
2581
2591 public Builder clearStepSize() {
2592 bitField0_ = (bitField0_ & ~0x00000100);
2593 stepSize_ = 0D;
2594 onChanged();
2595 return this;
2596 }
2597
2598 private double primalWeight_ ;
2608 @java.lang.Override
2609 public boolean hasPrimalWeight() {
2610 return ((bitField0_ & 0x00000200) != 0);
2611 }
2612
2621 @java.lang.Override
2622 public double getPrimalWeight() {
2623 return primalWeight_;
2624 }
2625
2635 public Builder setPrimalWeight(double value) {
2636
2637 primalWeight_ = value;
2638 bitField0_ |= 0x00000200;
2639 onChanged();
2640 return this;
2641 }
2642
2651 public Builder clearPrimalWeight() {
2652 bitField0_ = (bitField0_ & ~0x00000200);
2653 primalWeight_ = 0D;
2654 onChanged();
2655 return this;
2656 }
2657
2658 // @@protoc_insertion_point(builder_scope:operations_research.pdlp.IterationStats)
2659 }
2660
2661 // @@protoc_insertion_point(class_scope:operations_research.pdlp.IterationStats)
2662 private static final com.google.ortools.pdlp.IterationStats DEFAULT_INSTANCE;
2663 static {
2664 DEFAULT_INSTANCE = new com.google.ortools.pdlp.IterationStats();
2665 }
2666
2668 return DEFAULT_INSTANCE;
2669 }
2670
2671 private static final com.google.protobuf.Parser<IterationStats>
2672 PARSER = new com.google.protobuf.AbstractParser<IterationStats>() {
2673 @java.lang.Override
2674 public IterationStats parsePartialFrom(
2675 com.google.protobuf.CodedInputStream input,
2676 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2677 throws com.google.protobuf.InvalidProtocolBufferException {
2678 Builder builder = newBuilder();
2679 try {
2680 builder.mergeFrom(input, extensionRegistry);
2681 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2682 throw e.setUnfinishedMessage(builder.buildPartial());
2683 } catch (com.google.protobuf.UninitializedMessageException e) {
2684 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2685 } catch (java.io.IOException e) {
2686 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2687 .setUnfinishedMessage(builder.buildPartial());
2688 }
2689 return builder.buildPartial();
2690 }
2691 };
2692
2693 public static com.google.protobuf.Parser<IterationStats> parser() {
2694 return PARSER;
2695 }
2696
2697 @java.lang.Override
2698 public com.google.protobuf.Parser<IterationStats> getParserForType() {
2699 return PARSER;
2700 }
2701
2702 @java.lang.Override
2704 return DEFAULT_INSTANCE;
2705 }
2706
2707}
2708
Builder addPointMetadata(com.google.ortools.pdlp.PointMetadata.Builder builderForValue)
com.google.ortools.pdlp.PointMetadata.Builder addPointMetadataBuilder(int index)
Builder setInfeasibilityInformation(int index, com.google.ortools.pdlp.InfeasibilityInformation value)
com.google.ortools.pdlp.PointMetadata.Builder addPointMetadataBuilder()
Builder setRestartUsed(com.google.ortools.pdlp.RestartChoice value)
Builder setInfeasibilityInformation(int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder addConvergenceInformation(com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue)
com.google.ortools.pdlp.ConvergenceInformation getConvergenceInformation(int index)
Builder setPointMetadata(int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue)
com.google.ortools.pdlp.ConvergenceInformation.Builder addConvergenceInformationBuilder(int index)
Builder addInfeasibilityInformation(com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue)
com.google.ortools.pdlp.InfeasibilityInformationOrBuilder getInfeasibilityInformationOrBuilder(int index)
java.util.List< com.google.ortools.pdlp.InfeasibilityInformation > getInfeasibilityInformationList()
Builder addPointMetadata(int index, com.google.ortools.pdlp.PointMetadata value)
Builder addInfeasibilityInformation(com.google.ortools.pdlp.InfeasibilityInformation value)
com.google.ortools.pdlp.InfeasibilityInformation.Builder addInfeasibilityInformationBuilder()
Builder setPointMetadata(int index, com.google.ortools.pdlp.PointMetadata value)
Builder setConvergenceInformation(int index, com.google.ortools.pdlp.ConvergenceInformation value)
com.google.ortools.pdlp.ConvergenceInformation.Builder getConvergenceInformationBuilder(int index)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder mergeFrom(com.google.ortools.pdlp.IterationStats other)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.pdlp.ConvergenceInformation.Builder addConvergenceInformationBuilder()
com.google.ortools.pdlp.PointMetadata getPointMetadata(int index)
Builder addConvergenceInformation(int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue)
com.google.ortools.pdlp.PointMetadata.Builder getPointMetadataBuilder(int index)
java.util.List< com.google.ortools.pdlp.PointMetadata > getPointMetadataList()
Builder mergeFrom(com.google.protobuf.Message other)
Builder addConvergenceInformation(int index, com.google.ortools.pdlp.ConvergenceInformation value)
java.util.List< com.google.ortools.pdlp.InfeasibilityInformation.Builder > getInfeasibilityInformationBuilderList()
Builder addConvergenceInformation(com.google.ortools.pdlp.ConvergenceInformation value)
java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder > getPointMetadataOrBuilderList()
java.util.List< com.google.ortools.pdlp.ConvergenceInformation > getConvergenceInformationList()
com.google.ortools.pdlp.RestartChoice getRestartUsed()
java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder > getInfeasibilityInformationOrBuilderList()
com.google.ortools.pdlp.PointMetadataOrBuilder getPointMetadataOrBuilder(int index)
com.google.ortools.pdlp.IterationStats buildPartial()
Builder setConvergenceInformation(int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue)
Builder addPointMetadata(com.google.ortools.pdlp.PointMetadata value)
com.google.ortools.pdlp.InfeasibilityInformation getInfeasibilityInformation(int index)
com.google.ortools.pdlp.IterationStats build()
java.util.List< com.google.ortools.pdlp.PointMetadata.Builder > getPointMetadataBuilderList()
com.google.ortools.pdlp.IterationStats getDefaultInstanceForType()
Builder addAllConvergenceInformation(java.lang.Iterable<? extends com.google.ortools.pdlp.ConvergenceInformation > values)
Builder addInfeasibilityInformation(int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue)
Builder addAllPointMetadata(java.lang.Iterable<? extends com.google.ortools.pdlp.PointMetadata > values)
java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder > getConvergenceInformationOrBuilderList()
com.google.ortools.pdlp.InfeasibilityInformation.Builder getInfeasibilityInformationBuilder(int index)
Builder addAllInfeasibilityInformation(java.lang.Iterable<? extends com.google.ortools.pdlp.InfeasibilityInformation > values)
java.util.List< com.google.ortools.pdlp.ConvergenceInformation.Builder > getConvergenceInformationBuilderList()
com.google.ortools.pdlp.InfeasibilityInformation.Builder addInfeasibilityInformationBuilder(int index)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder addPointMetadata(int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue)
com.google.ortools.pdlp.ConvergenceInformationOrBuilder getConvergenceInformationOrBuilder(int index)
Builder addInfeasibilityInformation(int index, com.google.ortools.pdlp.InfeasibilityInformation value)
com.google.ortools.pdlp.InfeasibilityInformationOrBuilder getInfeasibilityInformationOrBuilder(int index)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.pdlp.ConvergenceInformation getConvergenceInformation(int index)
static com.google.ortools.pdlp.IterationStats parseFrom(java.nio.ByteBuffer data)
java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder > getInfeasibilityInformationOrBuilderList()
com.google.ortools.pdlp.PointMetadataOrBuilder getPointMetadataOrBuilder(int index)
static com.google.ortools.pdlp.IterationStats getDefaultInstance()
com.google.ortools.pdlp.PointMetadata getPointMetadata(int index)
static com.google.ortools.pdlp.IterationStats parseFrom(java.io.InputStream input)
com.google.ortools.pdlp.RestartChoice getRestartUsed()
void writeTo(com.google.protobuf.CodedOutputStream output)
static final int CUMULATIVE_KKT_MATRIX_PASSES_FIELD_NUMBER
static com.google.ortools.pdlp.IterationStats parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List< com.google.ortools.pdlp.ConvergenceInformation > getConvergenceInformationList()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.pdlp.IterationStats parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.pdlp.IterationStats getDefaultInstanceForType()
boolean equals(final java.lang.Object obj)
java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder > getConvergenceInformationOrBuilderList()
com.google.ortools.pdlp.ConvergenceInformationOrBuilder getConvergenceInformationOrBuilder(int index)
static Builder newBuilder(com.google.ortools.pdlp.IterationStats prototype)
java.util.List< com.google.ortools.pdlp.InfeasibilityInformation > getInfeasibilityInformationList()
static com.google.ortools.pdlp.IterationStats parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.IterationStats parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.IterationStats parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.IterationStats parseFrom(byte[] data)
static com.google.ortools.pdlp.IterationStats parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.IterationStats parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder > getPointMetadataOrBuilderList()
static com.google.ortools.pdlp.IterationStats parseDelimitedFrom(java.io.InputStream input)
com.google.ortools.pdlp.InfeasibilityInformation getInfeasibilityInformation(int index)
com.google.protobuf.Parser< IterationStats > getParserForType()
static com.google.protobuf.Parser< IterationStats > parser()
static com.google.ortools.pdlp.IterationStats parseFrom(com.google.protobuf.ByteString data)
java.util.List< com.google.ortools.pdlp.PointMetadata > getPointMetadataList()