Google OR-Tools v9.11
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// source: ortools/pdlp/solve_log.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.pdlp;
6
18public final class IterationStats extends
19 com.google.protobuf.GeneratedMessage implements
20 // @@protoc_insertion_point(message_implements:operations_research.pdlp.IterationStats)
22private static final long serialVersionUID = 0L;
23 static {
24 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
25 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
26 /* major= */ 4,
27 /* minor= */ 26,
28 /* patch= */ 1,
29 /* suffix= */ "",
30 IterationStats.class.getName());
31 }
32 // Use IterationStats.newBuilder() to construct.
33 private IterationStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 super(builder);
35 }
36 private IterationStats() {
37 convergenceInformation_ = java.util.Collections.emptyList();
38 infeasibilityInformation_ = java.util.Collections.emptyList();
39 pointMetadata_ = java.util.Collections.emptyList();
40 restartUsed_ = 0;
41 }
42
43 public static final com.google.protobuf.Descriptors.Descriptor
45 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
46 }
47
48 @java.lang.Override
49 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
51 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
52 .ensureFieldAccessorsInitialized(
53 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
54 }
55
56 private int bitField0_;
57 public static final int ITERATION_NUMBER_FIELD_NUMBER = 1;
58 private int iterationNumber_ = 0;
70 @java.lang.Override
71 public boolean hasIterationNumber() {
72 return ((bitField0_ & 0x00000001) != 0);
73 }
85 @java.lang.Override
86 public int getIterationNumber() {
87 return iterationNumber_;
88 }
89
90 public static final int CONVERGENCE_INFORMATION_FIELD_NUMBER = 2;
91 @SuppressWarnings("serial")
92 private java.util.List<com.google.ortools.pdlp.ConvergenceInformation> convergenceInformation_;
102 @java.lang.Override
103 public java.util.List<com.google.ortools.pdlp.ConvergenceInformation> getConvergenceInformationList() {
104 return convergenceInformation_;
105 }
115 @java.lang.Override
116 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
118 return convergenceInformation_;
119 }
129 @java.lang.Override
131 return convergenceInformation_.size();
132 }
142 @java.lang.Override
144 return convergenceInformation_.get(index);
145 }
155 @java.lang.Override
157 int index) {
158 return convergenceInformation_.get(index);
159 }
160
161 public static final int INFEASIBILITY_INFORMATION_FIELD_NUMBER = 3;
162 @SuppressWarnings("serial")
163 private java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> infeasibilityInformation_;
173 @java.lang.Override
174 public java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> getInfeasibilityInformationList() {
175 return infeasibilityInformation_;
176 }
186 @java.lang.Override
187 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
189 return infeasibilityInformation_;
190 }
200 @java.lang.Override
202 return infeasibilityInformation_.size();
203 }
213 @java.lang.Override
215 return infeasibilityInformation_.get(index);
216 }
226 @java.lang.Override
228 int index) {
229 return infeasibilityInformation_.get(index);
230 }
231
232 public static final int POINT_METADATA_FIELD_NUMBER = 11;
233 @SuppressWarnings("serial")
234 private java.util.List<com.google.ortools.pdlp.PointMetadata> pointMetadata_;
242 @java.lang.Override
243 public java.util.List<com.google.ortools.pdlp.PointMetadata> getPointMetadataList() {
244 return pointMetadata_;
245 }
253 @java.lang.Override
254 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
256 return pointMetadata_;
257 }
265 @java.lang.Override
267 return pointMetadata_.size();
268 }
276 @java.lang.Override
278 return pointMetadata_.get(index);
279 }
287 @java.lang.Override
289 int index) {
290 return pointMetadata_.get(index);
291 }
292
293 public static final int CUMULATIVE_KKT_MATRIX_PASSES_FIELD_NUMBER = 4;
294 private double cumulativeKktMatrixPasses_ = 0D;
311 @java.lang.Override
313 return ((bitField0_ & 0x00000002) != 0);
314 }
331 @java.lang.Override
333 return cumulativeKktMatrixPasses_;
334 }
335
336 public static final int CUMULATIVE_REJECTED_STEPS_FIELD_NUMBER = 5;
337 private int cumulativeRejectedSteps_ = 0;
347 @java.lang.Override
348 public boolean hasCumulativeRejectedSteps() {
349 return ((bitField0_ & 0x00000004) != 0);
350 }
360 @java.lang.Override
362 return cumulativeRejectedSteps_;
363 }
364
365 public static final int CUMULATIVE_TIME_SEC_FIELD_NUMBER = 6;
366 private double cumulativeTimeSec_ = 0D;
376 @java.lang.Override
377 public boolean hasCumulativeTimeSec() {
378 return ((bitField0_ & 0x00000008) != 0);
379 }
389 @java.lang.Override
390 public double getCumulativeTimeSec() {
391 return cumulativeTimeSec_;
392 }
393
394 public static final int RESTART_USED_FIELD_NUMBER = 7;
395 private int restartUsed_ = 0;
405 @java.lang.Override public boolean hasRestartUsed() {
406 return ((bitField0_ & 0x00000010) != 0);
407 }
418 com.google.ortools.pdlp.RestartChoice result = com.google.ortools.pdlp.RestartChoice.forNumber(restartUsed_);
419 return result == null ? com.google.ortools.pdlp.RestartChoice.RESTART_CHOICE_UNSPECIFIED : result;
420 }
421
422 public static final int STEP_SIZE_FIELD_NUMBER = 8;
423 private double stepSize_ = 0D;
434 @java.lang.Override
435 public boolean hasStepSize() {
436 return ((bitField0_ & 0x00000020) != 0);
437 }
448 @java.lang.Override
449 public double getStepSize() {
450 return stepSize_;
451 }
452
453 public static final int PRIMAL_WEIGHT_FIELD_NUMBER = 9;
454 private double primalWeight_ = 0D;
464 @java.lang.Override
465 public boolean hasPrimalWeight() {
466 return ((bitField0_ & 0x00000040) != 0);
467 }
477 @java.lang.Override
478 public double getPrimalWeight() {
479 return primalWeight_;
480 }
481
482 private byte memoizedIsInitialized = -1;
483 @java.lang.Override
484 public final boolean isInitialized() {
485 byte isInitialized = memoizedIsInitialized;
486 if (isInitialized == 1) return true;
487 if (isInitialized == 0) return false;
488
489 memoizedIsInitialized = 1;
490 return true;
491 }
492
493 @java.lang.Override
494 public void writeTo(com.google.protobuf.CodedOutputStream output)
495 throws java.io.IOException {
496 if (((bitField0_ & 0x00000001) != 0)) {
497 output.writeInt32(1, iterationNumber_);
498 }
499 for (int i = 0; i < convergenceInformation_.size(); i++) {
500 output.writeMessage(2, convergenceInformation_.get(i));
501 }
502 for (int i = 0; i < infeasibilityInformation_.size(); i++) {
503 output.writeMessage(3, infeasibilityInformation_.get(i));
504 }
505 if (((bitField0_ & 0x00000002) != 0)) {
506 output.writeDouble(4, cumulativeKktMatrixPasses_);
507 }
508 if (((bitField0_ & 0x00000004) != 0)) {
509 output.writeInt32(5, cumulativeRejectedSteps_);
510 }
511 if (((bitField0_ & 0x00000008) != 0)) {
512 output.writeDouble(6, cumulativeTimeSec_);
513 }
514 if (((bitField0_ & 0x00000010) != 0)) {
515 output.writeEnum(7, restartUsed_);
516 }
517 if (((bitField0_ & 0x00000020) != 0)) {
518 output.writeDouble(8, stepSize_);
519 }
520 if (((bitField0_ & 0x00000040) != 0)) {
521 output.writeDouble(9, primalWeight_);
522 }
523 for (int i = 0; i < pointMetadata_.size(); i++) {
524 output.writeMessage(11, pointMetadata_.get(i));
525 }
526 getUnknownFields().writeTo(output);
527 }
528
529 @java.lang.Override
530 public int getSerializedSize() {
531 int size = memoizedSize;
532 if (size != -1) return size;
533
534 size = 0;
535 if (((bitField0_ & 0x00000001) != 0)) {
536 size += com.google.protobuf.CodedOutputStream
537 .computeInt32Size(1, iterationNumber_);
538 }
539 for (int i = 0; i < convergenceInformation_.size(); i++) {
540 size += com.google.protobuf.CodedOutputStream
541 .computeMessageSize(2, convergenceInformation_.get(i));
542 }
543 for (int i = 0; i < infeasibilityInformation_.size(); i++) {
544 size += com.google.protobuf.CodedOutputStream
545 .computeMessageSize(3, infeasibilityInformation_.get(i));
546 }
547 if (((bitField0_ & 0x00000002) != 0)) {
548 size += com.google.protobuf.CodedOutputStream
549 .computeDoubleSize(4, cumulativeKktMatrixPasses_);
550 }
551 if (((bitField0_ & 0x00000004) != 0)) {
552 size += com.google.protobuf.CodedOutputStream
553 .computeInt32Size(5, cumulativeRejectedSteps_);
554 }
555 if (((bitField0_ & 0x00000008) != 0)) {
556 size += com.google.protobuf.CodedOutputStream
557 .computeDoubleSize(6, cumulativeTimeSec_);
558 }
559 if (((bitField0_ & 0x00000010) != 0)) {
560 size += com.google.protobuf.CodedOutputStream
561 .computeEnumSize(7, restartUsed_);
562 }
563 if (((bitField0_ & 0x00000020) != 0)) {
564 size += com.google.protobuf.CodedOutputStream
565 .computeDoubleSize(8, stepSize_);
566 }
567 if (((bitField0_ & 0x00000040) != 0)) {
568 size += com.google.protobuf.CodedOutputStream
569 .computeDoubleSize(9, primalWeight_);
570 }
571 for (int i = 0; i < pointMetadata_.size(); i++) {
572 size += com.google.protobuf.CodedOutputStream
573 .computeMessageSize(11, pointMetadata_.get(i));
574 }
575 size += getUnknownFields().getSerializedSize();
576 memoizedSize = size;
577 return size;
578 }
579
580 @java.lang.Override
581 public boolean equals(final java.lang.Object obj) {
582 if (obj == this) {
583 return true;
584 }
585 if (!(obj instanceof com.google.ortools.pdlp.IterationStats)) {
586 return super.equals(obj);
587 }
588 com.google.ortools.pdlp.IterationStats other = (com.google.ortools.pdlp.IterationStats) obj;
589
590 if (hasIterationNumber() != other.hasIterationNumber()) return false;
591 if (hasIterationNumber()) {
593 != other.getIterationNumber()) return false;
594 }
596 .equals(other.getConvergenceInformationList())) return false;
598 .equals(other.getInfeasibilityInformationList())) return false;
600 .equals(other.getPointMetadataList())) return false;
601 if (hasCumulativeKktMatrixPasses() != other.hasCumulativeKktMatrixPasses()) return false;
603 if (java.lang.Double.doubleToLongBits(getCumulativeKktMatrixPasses())
604 != java.lang.Double.doubleToLongBits(
605 other.getCumulativeKktMatrixPasses())) return false;
606 }
607 if (hasCumulativeRejectedSteps() != other.hasCumulativeRejectedSteps()) return false;
610 != other.getCumulativeRejectedSteps()) return false;
611 }
612 if (hasCumulativeTimeSec() != other.hasCumulativeTimeSec()) return false;
613 if (hasCumulativeTimeSec()) {
614 if (java.lang.Double.doubleToLongBits(getCumulativeTimeSec())
615 != java.lang.Double.doubleToLongBits(
616 other.getCumulativeTimeSec())) return false;
617 }
618 if (hasRestartUsed() != other.hasRestartUsed()) return false;
619 if (hasRestartUsed()) {
620 if (restartUsed_ != other.restartUsed_) return false;
621 }
622 if (hasStepSize() != other.hasStepSize()) return false;
623 if (hasStepSize()) {
624 if (java.lang.Double.doubleToLongBits(getStepSize())
625 != java.lang.Double.doubleToLongBits(
626 other.getStepSize())) return false;
627 }
628 if (hasPrimalWeight() != other.hasPrimalWeight()) return false;
629 if (hasPrimalWeight()) {
630 if (java.lang.Double.doubleToLongBits(getPrimalWeight())
631 != java.lang.Double.doubleToLongBits(
632 other.getPrimalWeight())) return false;
633 }
634 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
635 return true;
636 }
637
638 @java.lang.Override
639 public int hashCode() {
640 if (memoizedHashCode != 0) {
641 return memoizedHashCode;
642 }
643 int hash = 41;
644 hash = (19 * hash) + getDescriptor().hashCode();
645 if (hasIterationNumber()) {
646 hash = (37 * hash) + ITERATION_NUMBER_FIELD_NUMBER;
647 hash = (53 * hash) + getIterationNumber();
648 }
650 hash = (37 * hash) + CONVERGENCE_INFORMATION_FIELD_NUMBER;
651 hash = (53 * hash) + getConvergenceInformationList().hashCode();
652 }
654 hash = (37 * hash) + INFEASIBILITY_INFORMATION_FIELD_NUMBER;
655 hash = (53 * hash) + getInfeasibilityInformationList().hashCode();
656 }
657 if (getPointMetadataCount() > 0) {
658 hash = (37 * hash) + POINT_METADATA_FIELD_NUMBER;
659 hash = (53 * hash) + getPointMetadataList().hashCode();
660 }
663 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
664 java.lang.Double.doubleToLongBits(getCumulativeKktMatrixPasses()));
665 }
667 hash = (37 * hash) + CUMULATIVE_REJECTED_STEPS_FIELD_NUMBER;
668 hash = (53 * hash) + getCumulativeRejectedSteps();
669 }
670 if (hasCumulativeTimeSec()) {
671 hash = (37 * hash) + CUMULATIVE_TIME_SEC_FIELD_NUMBER;
672 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
673 java.lang.Double.doubleToLongBits(getCumulativeTimeSec()));
674 }
675 if (hasRestartUsed()) {
676 hash = (37 * hash) + RESTART_USED_FIELD_NUMBER;
677 hash = (53 * hash) + restartUsed_;
678 }
679 if (hasStepSize()) {
680 hash = (37 * hash) + STEP_SIZE_FIELD_NUMBER;
681 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
682 java.lang.Double.doubleToLongBits(getStepSize()));
683 }
684 if (hasPrimalWeight()) {
685 hash = (37 * hash) + PRIMAL_WEIGHT_FIELD_NUMBER;
686 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
687 java.lang.Double.doubleToLongBits(getPrimalWeight()));
688 }
689 hash = (29 * hash) + getUnknownFields().hashCode();
690 memoizedHashCode = hash;
691 return hash;
692 }
693
695 java.nio.ByteBuffer data)
696 throws com.google.protobuf.InvalidProtocolBufferException {
697 return PARSER.parseFrom(data);
698 }
700 java.nio.ByteBuffer data,
701 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
702 throws com.google.protobuf.InvalidProtocolBufferException {
703 return PARSER.parseFrom(data, extensionRegistry);
704 }
706 com.google.protobuf.ByteString data)
707 throws com.google.protobuf.InvalidProtocolBufferException {
708 return PARSER.parseFrom(data);
709 }
711 com.google.protobuf.ByteString data,
712 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
713 throws com.google.protobuf.InvalidProtocolBufferException {
714 return PARSER.parseFrom(data, extensionRegistry);
715 }
717 throws com.google.protobuf.InvalidProtocolBufferException {
718 return PARSER.parseFrom(data);
719 }
721 byte[] data,
722 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
723 throws com.google.protobuf.InvalidProtocolBufferException {
724 return PARSER.parseFrom(data, extensionRegistry);
725 }
726 public static com.google.ortools.pdlp.IterationStats parseFrom(java.io.InputStream input)
727 throws java.io.IOException {
728 return com.google.protobuf.GeneratedMessage
729 .parseWithIOException(PARSER, input);
730 }
732 java.io.InputStream input,
733 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
734 throws java.io.IOException {
735 return com.google.protobuf.GeneratedMessage
736 .parseWithIOException(PARSER, input, extensionRegistry);
737 }
738
739 public static com.google.ortools.pdlp.IterationStats parseDelimitedFrom(java.io.InputStream input)
740 throws java.io.IOException {
741 return com.google.protobuf.GeneratedMessage
742 .parseDelimitedWithIOException(PARSER, input);
743 }
744
746 java.io.InputStream input,
747 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
748 throws java.io.IOException {
749 return com.google.protobuf.GeneratedMessage
750 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
751 }
753 com.google.protobuf.CodedInputStream input)
754 throws java.io.IOException {
755 return com.google.protobuf.GeneratedMessage
756 .parseWithIOException(PARSER, input);
757 }
759 com.google.protobuf.CodedInputStream input,
760 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
761 throws java.io.IOException {
762 return com.google.protobuf.GeneratedMessage
763 .parseWithIOException(PARSER, input, extensionRegistry);
764 }
765
766 @java.lang.Override
767 public Builder newBuilderForType() { return newBuilder(); }
768 public static Builder newBuilder() {
769 return DEFAULT_INSTANCE.toBuilder();
770 }
771 public static Builder newBuilder(com.google.ortools.pdlp.IterationStats prototype) {
772 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
773 }
774 @java.lang.Override
776 return this == DEFAULT_INSTANCE
777 ? new Builder() : new Builder().mergeFrom(this);
778 }
779
780 @java.lang.Override
782 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
783 Builder builder = new Builder(parent);
784 return builder;
785 }
797 public static final class Builder extends
798 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
799 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.IterationStats)
800 com.google.ortools.pdlp.IterationStatsOrBuilder {
801 public static final com.google.protobuf.Descriptors.Descriptor
803 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
804 }
805
806 @java.lang.Override
807 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
809 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_fieldAccessorTable
810 .ensureFieldAccessorsInitialized(
811 com.google.ortools.pdlp.IterationStats.class, com.google.ortools.pdlp.IterationStats.Builder.class);
812 }
813
814 // Construct using com.google.ortools.pdlp.IterationStats.newBuilder()
815 private Builder() {
816
817 }
818
819 private Builder(
820 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
821 super(parent);
822
823 }
824 @java.lang.Override
825 public Builder clear() {
826 super.clear();
827 bitField0_ = 0;
828 iterationNumber_ = 0;
829 if (convergenceInformationBuilder_ == null) {
830 convergenceInformation_ = java.util.Collections.emptyList();
831 } else {
832 convergenceInformation_ = null;
833 convergenceInformationBuilder_.clear();
834 }
835 bitField0_ = (bitField0_ & ~0x00000002);
836 if (infeasibilityInformationBuilder_ == null) {
837 infeasibilityInformation_ = java.util.Collections.emptyList();
838 } else {
839 infeasibilityInformation_ = null;
840 infeasibilityInformationBuilder_.clear();
841 }
842 bitField0_ = (bitField0_ & ~0x00000004);
843 if (pointMetadataBuilder_ == null) {
844 pointMetadata_ = java.util.Collections.emptyList();
845 } else {
846 pointMetadata_ = null;
847 pointMetadataBuilder_.clear();
848 }
849 bitField0_ = (bitField0_ & ~0x00000008);
850 cumulativeKktMatrixPasses_ = 0D;
851 cumulativeRejectedSteps_ = 0;
852 cumulativeTimeSec_ = 0D;
853 restartUsed_ = 0;
854 stepSize_ = 0D;
855 primalWeight_ = 0D;
856 return this;
857 }
858
859 @java.lang.Override
860 public com.google.protobuf.Descriptors.Descriptor
862 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_IterationStats_descriptor;
863 }
864
865 @java.lang.Override
867 return com.google.ortools.pdlp.IterationStats.getDefaultInstance();
868 }
869
870 @java.lang.Override
873 if (!result.isInitialized()) {
874 throw newUninitializedMessageException(result);
875 }
876 return result;
877 }
878
879 @java.lang.Override
881 com.google.ortools.pdlp.IterationStats result = new com.google.ortools.pdlp.IterationStats(this);
882 buildPartialRepeatedFields(result);
883 if (bitField0_ != 0) { buildPartial0(result); }
884 onBuilt();
885 return result;
886 }
887
888 private void buildPartialRepeatedFields(com.google.ortools.pdlp.IterationStats result) {
889 if (convergenceInformationBuilder_ == null) {
890 if (((bitField0_ & 0x00000002) != 0)) {
891 convergenceInformation_ = java.util.Collections.unmodifiableList(convergenceInformation_);
892 bitField0_ = (bitField0_ & ~0x00000002);
893 }
894 result.convergenceInformation_ = convergenceInformation_;
895 } else {
896 result.convergenceInformation_ = convergenceInformationBuilder_.build();
897 }
898 if (infeasibilityInformationBuilder_ == null) {
899 if (((bitField0_ & 0x00000004) != 0)) {
900 infeasibilityInformation_ = java.util.Collections.unmodifiableList(infeasibilityInformation_);
901 bitField0_ = (bitField0_ & ~0x00000004);
902 }
903 result.infeasibilityInformation_ = infeasibilityInformation_;
904 } else {
905 result.infeasibilityInformation_ = infeasibilityInformationBuilder_.build();
906 }
907 if (pointMetadataBuilder_ == null) {
908 if (((bitField0_ & 0x00000008) != 0)) {
909 pointMetadata_ = java.util.Collections.unmodifiableList(pointMetadata_);
910 bitField0_ = (bitField0_ & ~0x00000008);
911 }
912 result.pointMetadata_ = pointMetadata_;
913 } else {
914 result.pointMetadata_ = pointMetadataBuilder_.build();
915 }
916 }
917
918 private void buildPartial0(com.google.ortools.pdlp.IterationStats result) {
919 int from_bitField0_ = bitField0_;
920 int to_bitField0_ = 0;
921 if (((from_bitField0_ & 0x00000001) != 0)) {
922 result.iterationNumber_ = iterationNumber_;
923 to_bitField0_ |= 0x00000001;
924 }
925 if (((from_bitField0_ & 0x00000010) != 0)) {
926 result.cumulativeKktMatrixPasses_ = cumulativeKktMatrixPasses_;
927 to_bitField0_ |= 0x00000002;
928 }
929 if (((from_bitField0_ & 0x00000020) != 0)) {
930 result.cumulativeRejectedSteps_ = cumulativeRejectedSteps_;
931 to_bitField0_ |= 0x00000004;
932 }
933 if (((from_bitField0_ & 0x00000040) != 0)) {
934 result.cumulativeTimeSec_ = cumulativeTimeSec_;
935 to_bitField0_ |= 0x00000008;
936 }
937 if (((from_bitField0_ & 0x00000080) != 0)) {
938 result.restartUsed_ = restartUsed_;
939 to_bitField0_ |= 0x00000010;
940 }
941 if (((from_bitField0_ & 0x00000100) != 0)) {
942 result.stepSize_ = stepSize_;
943 to_bitField0_ |= 0x00000020;
944 }
945 if (((from_bitField0_ & 0x00000200) != 0)) {
946 result.primalWeight_ = primalWeight_;
947 to_bitField0_ |= 0x00000040;
948 }
949 result.bitField0_ |= to_bitField0_;
950 }
951
952 @java.lang.Override
953 public Builder mergeFrom(com.google.protobuf.Message other) {
954 if (other instanceof com.google.ortools.pdlp.IterationStats) {
955 return mergeFrom((com.google.ortools.pdlp.IterationStats)other);
956 } else {
957 super.mergeFrom(other);
958 return this;
959 }
960 }
961
962 public Builder mergeFrom(com.google.ortools.pdlp.IterationStats other) {
963 if (other == com.google.ortools.pdlp.IterationStats.getDefaultInstance()) return this;
964 if (other.hasIterationNumber()) {
965 setIterationNumber(other.getIterationNumber());
966 }
967 if (convergenceInformationBuilder_ == null) {
968 if (!other.convergenceInformation_.isEmpty()) {
969 if (convergenceInformation_.isEmpty()) {
970 convergenceInformation_ = other.convergenceInformation_;
971 bitField0_ = (bitField0_ & ~0x00000002);
972 } else {
973 ensureConvergenceInformationIsMutable();
974 convergenceInformation_.addAll(other.convergenceInformation_);
975 }
976 onChanged();
977 }
978 } else {
979 if (!other.convergenceInformation_.isEmpty()) {
980 if (convergenceInformationBuilder_.isEmpty()) {
981 convergenceInformationBuilder_.dispose();
982 convergenceInformationBuilder_ = null;
983 convergenceInformation_ = other.convergenceInformation_;
984 bitField0_ = (bitField0_ & ~0x00000002);
985 convergenceInformationBuilder_ =
986 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
987 getConvergenceInformationFieldBuilder() : null;
988 } else {
989 convergenceInformationBuilder_.addAllMessages(other.convergenceInformation_);
990 }
991 }
992 }
993 if (infeasibilityInformationBuilder_ == null) {
994 if (!other.infeasibilityInformation_.isEmpty()) {
995 if (infeasibilityInformation_.isEmpty()) {
996 infeasibilityInformation_ = other.infeasibilityInformation_;
997 bitField0_ = (bitField0_ & ~0x00000004);
998 } else {
999 ensureInfeasibilityInformationIsMutable();
1000 infeasibilityInformation_.addAll(other.infeasibilityInformation_);
1001 }
1002 onChanged();
1003 }
1004 } else {
1005 if (!other.infeasibilityInformation_.isEmpty()) {
1006 if (infeasibilityInformationBuilder_.isEmpty()) {
1007 infeasibilityInformationBuilder_.dispose();
1008 infeasibilityInformationBuilder_ = null;
1009 infeasibilityInformation_ = other.infeasibilityInformation_;
1010 bitField0_ = (bitField0_ & ~0x00000004);
1011 infeasibilityInformationBuilder_ =
1012 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1013 getInfeasibilityInformationFieldBuilder() : null;
1014 } else {
1015 infeasibilityInformationBuilder_.addAllMessages(other.infeasibilityInformation_);
1016 }
1017 }
1018 }
1019 if (pointMetadataBuilder_ == null) {
1020 if (!other.pointMetadata_.isEmpty()) {
1021 if (pointMetadata_.isEmpty()) {
1022 pointMetadata_ = other.pointMetadata_;
1023 bitField0_ = (bitField0_ & ~0x00000008);
1024 } else {
1025 ensurePointMetadataIsMutable();
1026 pointMetadata_.addAll(other.pointMetadata_);
1027 }
1028 onChanged();
1029 }
1030 } else {
1031 if (!other.pointMetadata_.isEmpty()) {
1032 if (pointMetadataBuilder_.isEmpty()) {
1033 pointMetadataBuilder_.dispose();
1034 pointMetadataBuilder_ = null;
1035 pointMetadata_ = other.pointMetadata_;
1036 bitField0_ = (bitField0_ & ~0x00000008);
1037 pointMetadataBuilder_ =
1038 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1039 getPointMetadataFieldBuilder() : null;
1040 } else {
1041 pointMetadataBuilder_.addAllMessages(other.pointMetadata_);
1042 }
1043 }
1044 }
1045 if (other.hasCumulativeKktMatrixPasses()) {
1046 setCumulativeKktMatrixPasses(other.getCumulativeKktMatrixPasses());
1047 }
1048 if (other.hasCumulativeRejectedSteps()) {
1049 setCumulativeRejectedSteps(other.getCumulativeRejectedSteps());
1050 }
1051 if (other.hasCumulativeTimeSec()) {
1052 setCumulativeTimeSec(other.getCumulativeTimeSec());
1053 }
1054 if (other.hasRestartUsed()) {
1055 setRestartUsed(other.getRestartUsed());
1056 }
1057 if (other.hasStepSize()) {
1058 setStepSize(other.getStepSize());
1059 }
1060 if (other.hasPrimalWeight()) {
1061 setPrimalWeight(other.getPrimalWeight());
1062 }
1063 this.mergeUnknownFields(other.getUnknownFields());
1064 onChanged();
1065 return this;
1066 }
1067
1068 @java.lang.Override
1069 public final boolean isInitialized() {
1070 return true;
1071 }
1072
1073 @java.lang.Override
1075 com.google.protobuf.CodedInputStream input,
1076 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1077 throws java.io.IOException {
1078 if (extensionRegistry == null) {
1079 throw new java.lang.NullPointerException();
1080 }
1081 try {
1082 boolean done = false;
1083 while (!done) {
1084 int tag = input.readTag();
1085 switch (tag) {
1086 case 0:
1087 done = true;
1088 break;
1089 case 8: {
1090 iterationNumber_ = input.readInt32();
1091 bitField0_ |= 0x00000001;
1092 break;
1093 } // case 8
1094 case 18: {
1096 input.readMessage(
1097 com.google.ortools.pdlp.ConvergenceInformation.parser(),
1098 extensionRegistry);
1099 if (convergenceInformationBuilder_ == null) {
1100 ensureConvergenceInformationIsMutable();
1101 convergenceInformation_.add(m);
1102 } else {
1103 convergenceInformationBuilder_.addMessage(m);
1104 }
1105 break;
1106 } // case 18
1107 case 26: {
1109 input.readMessage(
1110 com.google.ortools.pdlp.InfeasibilityInformation.parser(),
1111 extensionRegistry);
1112 if (infeasibilityInformationBuilder_ == null) {
1113 ensureInfeasibilityInformationIsMutable();
1114 infeasibilityInformation_.add(m);
1115 } else {
1116 infeasibilityInformationBuilder_.addMessage(m);
1117 }
1118 break;
1119 } // case 26
1120 case 33: {
1121 cumulativeKktMatrixPasses_ = input.readDouble();
1122 bitField0_ |= 0x00000010;
1123 break;
1124 } // case 33
1125 case 40: {
1126 cumulativeRejectedSteps_ = input.readInt32();
1127 bitField0_ |= 0x00000020;
1128 break;
1129 } // case 40
1130 case 49: {
1131 cumulativeTimeSec_ = input.readDouble();
1132 bitField0_ |= 0x00000040;
1133 break;
1134 } // case 49
1135 case 56: {
1136 int tmpRaw = input.readEnum();
1138 com.google.ortools.pdlp.RestartChoice.forNumber(tmpRaw);
1139 if (tmpValue == null) {
1140 mergeUnknownVarintField(7, tmpRaw);
1141 } else {
1142 restartUsed_ = tmpRaw;
1143 bitField0_ |= 0x00000080;
1144 }
1145 break;
1146 } // case 56
1147 case 65: {
1148 stepSize_ = input.readDouble();
1149 bitField0_ |= 0x00000100;
1150 break;
1151 } // case 65
1152 case 73: {
1153 primalWeight_ = input.readDouble();
1154 bitField0_ |= 0x00000200;
1155 break;
1156 } // case 73
1157 case 90: {
1159 input.readMessage(
1160 com.google.ortools.pdlp.PointMetadata.parser(),
1161 extensionRegistry);
1162 if (pointMetadataBuilder_ == null) {
1163 ensurePointMetadataIsMutable();
1164 pointMetadata_.add(m);
1165 } else {
1166 pointMetadataBuilder_.addMessage(m);
1167 }
1168 break;
1169 } // case 90
1170 default: {
1171 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1172 done = true; // was an endgroup tag
1173 }
1174 break;
1175 } // default:
1176 } // switch (tag)
1177 } // while (!done)
1178 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1179 throw e.unwrapIOException();
1180 } finally {
1181 onChanged();
1182 } // finally
1183 return this;
1184 }
1185 private int bitField0_;
1186
1187 private int iterationNumber_ ;
1199 @java.lang.Override
1200 public boolean hasIterationNumber() {
1201 return ((bitField0_ & 0x00000001) != 0);
1202 }
1214 @java.lang.Override
1215 public int getIterationNumber() {
1216 return iterationNumber_;
1217 }
1230 public Builder setIterationNumber(int value) {
1231
1232 iterationNumber_ = value;
1233 bitField0_ |= 0x00000001;
1234 onChanged();
1235 return this;
1236 }
1249 bitField0_ = (bitField0_ & ~0x00000001);
1250 iterationNumber_ = 0;
1251 onChanged();
1252 return this;
1253 }
1254
1255 private java.util.List<com.google.ortools.pdlp.ConvergenceInformation> convergenceInformation_ =
1256 java.util.Collections.emptyList();
1257 private void ensureConvergenceInformationIsMutable() {
1258 if (!((bitField0_ & 0x00000002) != 0)) {
1259 convergenceInformation_ = new java.util.ArrayList<com.google.ortools.pdlp.ConvergenceInformation>(convergenceInformation_);
1260 bitField0_ |= 0x00000002;
1261 }
1262 }
1263
1264 private com.google.protobuf.RepeatedFieldBuilder<
1265 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder> convergenceInformationBuilder_;
1266
1276 public java.util.List<com.google.ortools.pdlp.ConvergenceInformation> getConvergenceInformationList() {
1277 if (convergenceInformationBuilder_ == null) {
1278 return java.util.Collections.unmodifiableList(convergenceInformation_);
1279 } else {
1280 return convergenceInformationBuilder_.getMessageList();
1281 }
1282 }
1293 if (convergenceInformationBuilder_ == null) {
1294 return convergenceInformation_.size();
1295 } else {
1296 return convergenceInformationBuilder_.getCount();
1297 }
1298 }
1309 if (convergenceInformationBuilder_ == null) {
1310 return convergenceInformation_.get(index);
1311 } else {
1312 return convergenceInformationBuilder_.getMessage(index);
1313 }
1314 }
1325 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1326 if (convergenceInformationBuilder_ == null) {
1327 if (value == null) {
1328 throw new NullPointerException();
1329 }
1330 ensureConvergenceInformationIsMutable();
1331 convergenceInformation_.set(index, value);
1332 onChanged();
1333 } else {
1334 convergenceInformationBuilder_.setMessage(index, value);
1335 }
1336 return this;
1337 }
1348 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1349 if (convergenceInformationBuilder_ == null) {
1350 ensureConvergenceInformationIsMutable();
1351 convergenceInformation_.set(index, builderForValue.build());
1352 onChanged();
1353 } else {
1354 convergenceInformationBuilder_.setMessage(index, builderForValue.build());
1355 }
1356 return this;
1357 }
1367 public Builder addConvergenceInformation(com.google.ortools.pdlp.ConvergenceInformation value) {
1368 if (convergenceInformationBuilder_ == null) {
1369 if (value == null) {
1370 throw new NullPointerException();
1371 }
1372 ensureConvergenceInformationIsMutable();
1373 convergenceInformation_.add(value);
1374 onChanged();
1375 } else {
1376 convergenceInformationBuilder_.addMessage(value);
1377 }
1378 return this;
1379 }
1390 int index, com.google.ortools.pdlp.ConvergenceInformation value) {
1391 if (convergenceInformationBuilder_ == null) {
1392 if (value == null) {
1393 throw new NullPointerException();
1394 }
1395 ensureConvergenceInformationIsMutable();
1396 convergenceInformation_.add(index, value);
1397 onChanged();
1398 } else {
1399 convergenceInformationBuilder_.addMessage(index, value);
1400 }
1401 return this;
1402 }
1413 com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1414 if (convergenceInformationBuilder_ == null) {
1415 ensureConvergenceInformationIsMutable();
1416 convergenceInformation_.add(builderForValue.build());
1417 onChanged();
1418 } else {
1419 convergenceInformationBuilder_.addMessage(builderForValue.build());
1420 }
1421 return this;
1422 }
1433 int index, com.google.ortools.pdlp.ConvergenceInformation.Builder builderForValue) {
1434 if (convergenceInformationBuilder_ == null) {
1435 ensureConvergenceInformationIsMutable();
1436 convergenceInformation_.add(index, builderForValue.build());
1437 onChanged();
1438 } else {
1439 convergenceInformationBuilder_.addMessage(index, builderForValue.build());
1440 }
1441 return this;
1442 }
1453 java.lang.Iterable<? extends com.google.ortools.pdlp.ConvergenceInformation> values) {
1454 if (convergenceInformationBuilder_ == null) {
1455 ensureConvergenceInformationIsMutable();
1456 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1457 values, convergenceInformation_);
1458 onChanged();
1459 } else {
1460 convergenceInformationBuilder_.addAllMessages(values);
1461 }
1462 return this;
1463 }
1474 if (convergenceInformationBuilder_ == null) {
1475 convergenceInformation_ = java.util.Collections.emptyList();
1476 bitField0_ = (bitField0_ & ~0x00000002);
1477 onChanged();
1478 } else {
1479 convergenceInformationBuilder_.clear();
1480 }
1481 return this;
1482 }
1493 if (convergenceInformationBuilder_ == null) {
1494 ensureConvergenceInformationIsMutable();
1495 convergenceInformation_.remove(index);
1496 onChanged();
1497 } else {
1498 convergenceInformationBuilder_.remove(index);
1499 }
1500 return this;
1501 }
1512 int index) {
1513 return getConvergenceInformationFieldBuilder().getBuilder(index);
1514 }
1525 int index) {
1526 if (convergenceInformationBuilder_ == null) {
1527 return convergenceInformation_.get(index); } else {
1528 return convergenceInformationBuilder_.getMessageOrBuilder(index);
1529 }
1530 }
1540 public java.util.List<? extends com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1542 if (convergenceInformationBuilder_ != null) {
1543 return convergenceInformationBuilder_.getMessageOrBuilderList();
1544 } else {
1545 return java.util.Collections.unmodifiableList(convergenceInformation_);
1546 }
1547 }
1558 return getConvergenceInformationFieldBuilder().addBuilder(
1559 com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1560 }
1571 int index) {
1572 return getConvergenceInformationFieldBuilder().addBuilder(
1573 index, com.google.ortools.pdlp.ConvergenceInformation.getDefaultInstance());
1574 }
1584 public java.util.List<com.google.ortools.pdlp.ConvergenceInformation.Builder>
1586 return getConvergenceInformationFieldBuilder().getBuilderList();
1587 }
1588 private com.google.protobuf.RepeatedFieldBuilder<
1589 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>
1590 getConvergenceInformationFieldBuilder() {
1591 if (convergenceInformationBuilder_ == null) {
1592 convergenceInformationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1593 com.google.ortools.pdlp.ConvergenceInformation, com.google.ortools.pdlp.ConvergenceInformation.Builder, com.google.ortools.pdlp.ConvergenceInformationOrBuilder>(
1594 convergenceInformation_,
1595 ((bitField0_ & 0x00000002) != 0),
1596 getParentForChildren(),
1597 isClean());
1598 convergenceInformation_ = null;
1599 }
1600 return convergenceInformationBuilder_;
1601 }
1602
1603 private java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> infeasibilityInformation_ =
1604 java.util.Collections.emptyList();
1605 private void ensureInfeasibilityInformationIsMutable() {
1606 if (!((bitField0_ & 0x00000004) != 0)) {
1607 infeasibilityInformation_ = new java.util.ArrayList<com.google.ortools.pdlp.InfeasibilityInformation>(infeasibilityInformation_);
1608 bitField0_ |= 0x00000004;
1609 }
1610 }
1611
1612 private com.google.protobuf.RepeatedFieldBuilder<
1613 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder> infeasibilityInformationBuilder_;
1614
1624 public java.util.List<com.google.ortools.pdlp.InfeasibilityInformation> getInfeasibilityInformationList() {
1625 if (infeasibilityInformationBuilder_ == null) {
1626 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1627 } else {
1628 return infeasibilityInformationBuilder_.getMessageList();
1629 }
1630 }
1641 if (infeasibilityInformationBuilder_ == null) {
1642 return infeasibilityInformation_.size();
1643 } else {
1644 return infeasibilityInformationBuilder_.getCount();
1645 }
1646 }
1657 if (infeasibilityInformationBuilder_ == null) {
1658 return infeasibilityInformation_.get(index);
1659 } else {
1660 return infeasibilityInformationBuilder_.getMessage(index);
1661 }
1662 }
1673 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1674 if (infeasibilityInformationBuilder_ == null) {
1675 if (value == null) {
1676 throw new NullPointerException();
1677 }
1678 ensureInfeasibilityInformationIsMutable();
1679 infeasibilityInformation_.set(index, value);
1680 onChanged();
1681 } else {
1682 infeasibilityInformationBuilder_.setMessage(index, value);
1683 }
1684 return this;
1685 }
1696 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1697 if (infeasibilityInformationBuilder_ == null) {
1698 ensureInfeasibilityInformationIsMutable();
1699 infeasibilityInformation_.set(index, builderForValue.build());
1700 onChanged();
1701 } else {
1702 infeasibilityInformationBuilder_.setMessage(index, builderForValue.build());
1703 }
1704 return this;
1705 }
1715 public Builder addInfeasibilityInformation(com.google.ortools.pdlp.InfeasibilityInformation value) {
1716 if (infeasibilityInformationBuilder_ == null) {
1717 if (value == null) {
1718 throw new NullPointerException();
1719 }
1720 ensureInfeasibilityInformationIsMutable();
1721 infeasibilityInformation_.add(value);
1722 onChanged();
1723 } else {
1724 infeasibilityInformationBuilder_.addMessage(value);
1725 }
1726 return this;
1727 }
1738 int index, com.google.ortools.pdlp.InfeasibilityInformation value) {
1739 if (infeasibilityInformationBuilder_ == null) {
1740 if (value == null) {
1741 throw new NullPointerException();
1742 }
1743 ensureInfeasibilityInformationIsMutable();
1744 infeasibilityInformation_.add(index, value);
1745 onChanged();
1746 } else {
1747 infeasibilityInformationBuilder_.addMessage(index, value);
1748 }
1749 return this;
1750 }
1761 com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1762 if (infeasibilityInformationBuilder_ == null) {
1763 ensureInfeasibilityInformationIsMutable();
1764 infeasibilityInformation_.add(builderForValue.build());
1765 onChanged();
1766 } else {
1767 infeasibilityInformationBuilder_.addMessage(builderForValue.build());
1768 }
1769 return this;
1770 }
1781 int index, com.google.ortools.pdlp.InfeasibilityInformation.Builder builderForValue) {
1782 if (infeasibilityInformationBuilder_ == null) {
1783 ensureInfeasibilityInformationIsMutable();
1784 infeasibilityInformation_.add(index, builderForValue.build());
1785 onChanged();
1786 } else {
1787 infeasibilityInformationBuilder_.addMessage(index, builderForValue.build());
1788 }
1789 return this;
1790 }
1801 java.lang.Iterable<? extends com.google.ortools.pdlp.InfeasibilityInformation> values) {
1802 if (infeasibilityInformationBuilder_ == null) {
1803 ensureInfeasibilityInformationIsMutable();
1804 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1805 values, infeasibilityInformation_);
1806 onChanged();
1807 } else {
1808 infeasibilityInformationBuilder_.addAllMessages(values);
1809 }
1810 return this;
1811 }
1822 if (infeasibilityInformationBuilder_ == null) {
1823 infeasibilityInformation_ = java.util.Collections.emptyList();
1824 bitField0_ = (bitField0_ & ~0x00000004);
1825 onChanged();
1826 } else {
1827 infeasibilityInformationBuilder_.clear();
1828 }
1829 return this;
1830 }
1841 if (infeasibilityInformationBuilder_ == null) {
1842 ensureInfeasibilityInformationIsMutable();
1843 infeasibilityInformation_.remove(index);
1844 onChanged();
1845 } else {
1846 infeasibilityInformationBuilder_.remove(index);
1847 }
1848 return this;
1849 }
1860 int index) {
1861 return getInfeasibilityInformationFieldBuilder().getBuilder(index);
1862 }
1873 int index) {
1874 if (infeasibilityInformationBuilder_ == null) {
1875 return infeasibilityInformation_.get(index); } else {
1876 return infeasibilityInformationBuilder_.getMessageOrBuilder(index);
1877 }
1878 }
1888 public java.util.List<? extends com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1890 if (infeasibilityInformationBuilder_ != null) {
1891 return infeasibilityInformationBuilder_.getMessageOrBuilderList();
1892 } else {
1893 return java.util.Collections.unmodifiableList(infeasibilityInformation_);
1894 }
1895 }
1906 return getInfeasibilityInformationFieldBuilder().addBuilder(
1907 com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1908 }
1919 int index) {
1920 return getInfeasibilityInformationFieldBuilder().addBuilder(
1921 index, com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance());
1922 }
1932 public java.util.List<com.google.ortools.pdlp.InfeasibilityInformation.Builder>
1934 return getInfeasibilityInformationFieldBuilder().getBuilderList();
1935 }
1936 private com.google.protobuf.RepeatedFieldBuilder<
1937 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>
1938 getInfeasibilityInformationFieldBuilder() {
1939 if (infeasibilityInformationBuilder_ == null) {
1940 infeasibilityInformationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1941 com.google.ortools.pdlp.InfeasibilityInformation, com.google.ortools.pdlp.InfeasibilityInformation.Builder, com.google.ortools.pdlp.InfeasibilityInformationOrBuilder>(
1942 infeasibilityInformation_,
1943 ((bitField0_ & 0x00000004) != 0),
1944 getParentForChildren(),
1945 isClean());
1946 infeasibilityInformation_ = null;
1947 }
1948 return infeasibilityInformationBuilder_;
1949 }
1950
1951 private java.util.List<com.google.ortools.pdlp.PointMetadata> pointMetadata_ =
1952 java.util.Collections.emptyList();
1953 private void ensurePointMetadataIsMutable() {
1954 if (!((bitField0_ & 0x00000008) != 0)) {
1955 pointMetadata_ = new java.util.ArrayList<com.google.ortools.pdlp.PointMetadata>(pointMetadata_);
1956 bitField0_ |= 0x00000008;
1957 }
1958 }
1959
1960 private com.google.protobuf.RepeatedFieldBuilder<
1961 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder> pointMetadataBuilder_;
1962
1970 public java.util.List<com.google.ortools.pdlp.PointMetadata> getPointMetadataList() {
1971 if (pointMetadataBuilder_ == null) {
1972 return java.util.Collections.unmodifiableList(pointMetadata_);
1973 } else {
1974 return pointMetadataBuilder_.getMessageList();
1975 }
1976 }
1985 if (pointMetadataBuilder_ == null) {
1986 return pointMetadata_.size();
1987 } else {
1988 return pointMetadataBuilder_.getCount();
1989 }
1990 }
1999 if (pointMetadataBuilder_ == null) {
2000 return pointMetadata_.get(index);
2001 } else {
2002 return pointMetadataBuilder_.getMessage(index);
2003 }
2004 }
2013 int index, com.google.ortools.pdlp.PointMetadata value) {
2014 if (pointMetadataBuilder_ == null) {
2015 if (value == null) {
2016 throw new NullPointerException();
2017 }
2018 ensurePointMetadataIsMutable();
2019 pointMetadata_.set(index, value);
2020 onChanged();
2021 } else {
2022 pointMetadataBuilder_.setMessage(index, value);
2023 }
2024 return this;
2025 }
2034 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2035 if (pointMetadataBuilder_ == null) {
2036 ensurePointMetadataIsMutable();
2037 pointMetadata_.set(index, builderForValue.build());
2038 onChanged();
2039 } else {
2040 pointMetadataBuilder_.setMessage(index, builderForValue.build());
2041 }
2042 return this;
2043 }
2051 public Builder addPointMetadata(com.google.ortools.pdlp.PointMetadata value) {
2052 if (pointMetadataBuilder_ == null) {
2053 if (value == null) {
2054 throw new NullPointerException();
2055 }
2056 ensurePointMetadataIsMutable();
2057 pointMetadata_.add(value);
2058 onChanged();
2059 } else {
2060 pointMetadataBuilder_.addMessage(value);
2061 }
2062 return this;
2063 }
2072 int index, com.google.ortools.pdlp.PointMetadata value) {
2073 if (pointMetadataBuilder_ == null) {
2074 if (value == null) {
2075 throw new NullPointerException();
2076 }
2077 ensurePointMetadataIsMutable();
2078 pointMetadata_.add(index, value);
2079 onChanged();
2080 } else {
2081 pointMetadataBuilder_.addMessage(index, value);
2082 }
2083 return this;
2084 }
2093 com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2094 if (pointMetadataBuilder_ == null) {
2095 ensurePointMetadataIsMutable();
2096 pointMetadata_.add(builderForValue.build());
2097 onChanged();
2098 } else {
2099 pointMetadataBuilder_.addMessage(builderForValue.build());
2100 }
2101 return this;
2102 }
2111 int index, com.google.ortools.pdlp.PointMetadata.Builder builderForValue) {
2112 if (pointMetadataBuilder_ == null) {
2113 ensurePointMetadataIsMutable();
2114 pointMetadata_.add(index, builderForValue.build());
2115 onChanged();
2116 } else {
2117 pointMetadataBuilder_.addMessage(index, builderForValue.build());
2118 }
2119 return this;
2120 }
2129 java.lang.Iterable<? extends com.google.ortools.pdlp.PointMetadata> values) {
2130 if (pointMetadataBuilder_ == null) {
2131 ensurePointMetadataIsMutable();
2132 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2133 values, pointMetadata_);
2134 onChanged();
2135 } else {
2136 pointMetadataBuilder_.addAllMessages(values);
2137 }
2138 return this;
2139 }
2148 if (pointMetadataBuilder_ == null) {
2149 pointMetadata_ = java.util.Collections.emptyList();
2150 bitField0_ = (bitField0_ & ~0x00000008);
2151 onChanged();
2152 } else {
2153 pointMetadataBuilder_.clear();
2154 }
2155 return this;
2156 }
2164 public Builder removePointMetadata(int index) {
2165 if (pointMetadataBuilder_ == null) {
2166 ensurePointMetadataIsMutable();
2167 pointMetadata_.remove(index);
2168 onChanged();
2169 } else {
2170 pointMetadataBuilder_.remove(index);
2171 }
2172 return this;
2173 }
2182 int index) {
2183 return getPointMetadataFieldBuilder().getBuilder(index);
2184 }
2193 int index) {
2194 if (pointMetadataBuilder_ == null) {
2195 return pointMetadata_.get(index); } else {
2196 return pointMetadataBuilder_.getMessageOrBuilder(index);
2197 }
2198 }
2206 public java.util.List<? extends com.google.ortools.pdlp.PointMetadataOrBuilder>
2208 if (pointMetadataBuilder_ != null) {
2209 return pointMetadataBuilder_.getMessageOrBuilderList();
2210 } else {
2211 return java.util.Collections.unmodifiableList(pointMetadata_);
2212 }
2213 }
2222 return getPointMetadataFieldBuilder().addBuilder(
2223 com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2224 }
2233 int index) {
2234 return getPointMetadataFieldBuilder().addBuilder(
2235 index, com.google.ortools.pdlp.PointMetadata.getDefaultInstance());
2236 }
2244 public java.util.List<com.google.ortools.pdlp.PointMetadata.Builder>
2246 return getPointMetadataFieldBuilder().getBuilderList();
2247 }
2248 private com.google.protobuf.RepeatedFieldBuilder<
2249 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>
2250 getPointMetadataFieldBuilder() {
2251 if (pointMetadataBuilder_ == null) {
2252 pointMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2253 com.google.ortools.pdlp.PointMetadata, com.google.ortools.pdlp.PointMetadata.Builder, com.google.ortools.pdlp.PointMetadataOrBuilder>(
2254 pointMetadata_,
2255 ((bitField0_ & 0x00000008) != 0),
2256 getParentForChildren(),
2257 isClean());
2258 pointMetadata_ = null;
2259 }
2260 return pointMetadataBuilder_;
2261 }
2262
2263 private double cumulativeKktMatrixPasses_ ;
2280 @java.lang.Override
2282 return ((bitField0_ & 0x00000010) != 0);
2283 }
2300 @java.lang.Override
2302 return cumulativeKktMatrixPasses_;
2303 }
2322
2323 cumulativeKktMatrixPasses_ = value;
2324 bitField0_ |= 0x00000010;
2325 onChanged();
2326 return this;
2327 }
2345 bitField0_ = (bitField0_ & ~0x00000010);
2346 cumulativeKktMatrixPasses_ = 0D;
2347 onChanged();
2348 return this;
2349 }
2350
2351 private int cumulativeRejectedSteps_ ;
2361 @java.lang.Override
2363 return ((bitField0_ & 0x00000020) != 0);
2364 }
2374 @java.lang.Override
2376 return cumulativeRejectedSteps_;
2377 }
2389
2390 cumulativeRejectedSteps_ = value;
2391 bitField0_ |= 0x00000020;
2392 onChanged();
2393 return this;
2394 }
2405 bitField0_ = (bitField0_ & ~0x00000020);
2406 cumulativeRejectedSteps_ = 0;
2407 onChanged();
2408 return this;
2409 }
2410
2411 private double cumulativeTimeSec_ ;
2421 @java.lang.Override
2422 public boolean hasCumulativeTimeSec() {
2423 return ((bitField0_ & 0x00000040) != 0);
2424 }
2434 @java.lang.Override
2435 public double getCumulativeTimeSec() {
2436 return cumulativeTimeSec_;
2437 }
2448 public Builder setCumulativeTimeSec(double value) {
2449
2450 cumulativeTimeSec_ = value;
2451 bitField0_ |= 0x00000040;
2452 onChanged();
2453 return this;
2454 }
2465 bitField0_ = (bitField0_ & ~0x00000040);
2466 cumulativeTimeSec_ = 0D;
2467 onChanged();
2468 return this;
2469 }
2470
2471 private int restartUsed_ = 0;
2481 @java.lang.Override public boolean hasRestartUsed() {
2482 return ((bitField0_ & 0x00000080) != 0);
2483 }
2493 @java.lang.Override
2495 com.google.ortools.pdlp.RestartChoice result = com.google.ortools.pdlp.RestartChoice.forNumber(restartUsed_);
2496 return result == null ? com.google.ortools.pdlp.RestartChoice.RESTART_CHOICE_UNSPECIFIED : result;
2497 }
2508 public Builder setRestartUsed(com.google.ortools.pdlp.RestartChoice value) {
2509 if (value == null) {
2510 throw new NullPointerException();
2511 }
2512 bitField0_ |= 0x00000080;
2513 restartUsed_ = value.getNumber();
2514 onChanged();
2515 return this;
2516 }
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 }
2558 @java.lang.Override
2559 public double getStepSize() {
2560 return stepSize_;
2561 }
2573 public Builder setStepSize(double value) {
2574
2575 stepSize_ = value;
2576 bitField0_ |= 0x00000100;
2577 onChanged();
2578 return this;
2579 }
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 }
2620 @java.lang.Override
2621 public double getPrimalWeight() {
2622 return primalWeight_;
2623 }
2634 public Builder setPrimalWeight(double value) {
2635
2636 primalWeight_ = value;
2637 bitField0_ |= 0x00000200;
2638 onChanged();
2639 return this;
2640 }
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()