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