Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SolveLog.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
10public final class SolveLog extends
11 com.google.protobuf.GeneratedMessage implements
12 // @@protoc_insertion_point(message_implements:operations_research.pdlp.SolveLog)
14private static final long serialVersionUID = 0L;
15 static {
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
18 /* major= */ 4,
19 /* minor= */ 26,
20 /* patch= */ 1,
21 /* suffix= */ "",
22 SolveLog.class.getName());
23 }
24 // Use SolveLog.newBuilder() to construct.
25 private SolveLog(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
26 super(builder);
27 }
28 private SolveLog() {
29 instanceName_ = "";
30 terminationReason_ = 0;
31 terminationString_ = "";
32 solutionType_ = 0;
33 iterationStats_ = java.util.Collections.emptyList();
34 feasibilityPolishingDetails_ = java.util.Collections.emptyList();
35 }
36
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_SolveLog_descriptor;
40 }
41
42 @java.lang.Override
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_SolveLog_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.pdlp.SolveLog.class, com.google.ortools.pdlp.SolveLog.Builder.class);
48 }
49
50 private int bitField0_;
51 public static final int INSTANCE_NAME_FIELD_NUMBER = 1;
52 @SuppressWarnings("serial")
53 private volatile java.lang.Object instanceName_ = "";
62 @java.lang.Override
63 public boolean hasInstanceName() {
64 return ((bitField0_ & 0x00000001) != 0);
65 }
74 @java.lang.Override
75 public java.lang.String getInstanceName() {
76 java.lang.Object ref = instanceName_;
77 if (ref instanceof java.lang.String) {
78 return (java.lang.String) ref;
79 } else {
80 com.google.protobuf.ByteString bs =
81 (com.google.protobuf.ByteString) ref;
82 java.lang.String s = bs.toStringUtf8();
83 if (bs.isValidUtf8()) {
84 instanceName_ = s;
85 }
86 return s;
87 }
88 }
97 @java.lang.Override
98 public com.google.protobuf.ByteString
100 java.lang.Object ref = instanceName_;
101 if (ref instanceof java.lang.String) {
102 com.google.protobuf.ByteString b =
103 com.google.protobuf.ByteString.copyFromUtf8(
104 (java.lang.String) ref);
105 instanceName_ = b;
106 return b;
107 } else {
108 return (com.google.protobuf.ByteString) ref;
109 }
110 }
111
112 public static final int PARAMS_FIELD_NUMBER = 14;
122 @java.lang.Override
123 public boolean hasParams() {
124 return ((bitField0_ & 0x00000002) != 0);
125 }
134 @java.lang.Override
136 return params_ == null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance() : params_;
137 }
145 @java.lang.Override
147 return params_ == null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance() : params_;
148 }
149
150 public static final int TERMINATION_REASON_FIELD_NUMBER = 3;
151 private int terminationReason_ = 0;
160 @java.lang.Override public boolean hasTerminationReason() {
161 return ((bitField0_ & 0x00000004) != 0);
162 }
172 com.google.ortools.pdlp.TerminationReason result = com.google.ortools.pdlp.TerminationReason.forNumber(terminationReason_);
173 return result == null ? com.google.ortools.pdlp.TerminationReason.TERMINATION_REASON_UNSPECIFIED : result;
174 }
175
176 public static final int TERMINATION_STRING_FIELD_NUMBER = 4;
177 @SuppressWarnings("serial")
178 private volatile java.lang.Object terminationString_ = "";
187 @java.lang.Override
188 public boolean hasTerminationString() {
189 return ((bitField0_ & 0x00000008) != 0);
190 }
199 @java.lang.Override
200 public java.lang.String getTerminationString() {
201 java.lang.Object ref = terminationString_;
202 if (ref instanceof java.lang.String) {
203 return (java.lang.String) ref;
204 } else {
205 com.google.protobuf.ByteString bs =
206 (com.google.protobuf.ByteString) ref;
207 java.lang.String s = bs.toStringUtf8();
208 if (bs.isValidUtf8()) {
209 terminationString_ = s;
210 }
211 return s;
212 }
213 }
222 @java.lang.Override
223 public com.google.protobuf.ByteString
225 java.lang.Object ref = terminationString_;
226 if (ref instanceof java.lang.String) {
227 com.google.protobuf.ByteString b =
228 com.google.protobuf.ByteString.copyFromUtf8(
229 (java.lang.String) ref);
230 terminationString_ = b;
231 return b;
232 } else {
233 return (com.google.protobuf.ByteString) ref;
234 }
235 }
236
237 public static final int ITERATION_COUNT_FIELD_NUMBER = 5;
238 private int iterationCount_ = 0;
249 @java.lang.Override
250 public boolean hasIterationCount() {
251 return ((bitField0_ & 0x00000010) != 0);
252 }
263 @java.lang.Override
264 public int getIterationCount() {
265 return iterationCount_;
266 }
267
268 public static final int PREPROCESSING_TIME_SEC_FIELD_NUMBER = 13;
269 private double preprocessingTimeSec_ = 0D;
279 @java.lang.Override
280 public boolean hasPreprocessingTimeSec() {
281 return ((bitField0_ & 0x00000020) != 0);
282 }
292 @java.lang.Override
293 public double getPreprocessingTimeSec() {
294 return preprocessingTimeSec_;
295 }
296
297 public static final int SOLVE_TIME_SEC_FIELD_NUMBER = 6;
298 private double solveTimeSec_ = 0D;
310 @java.lang.Override
311 public boolean hasSolveTimeSec() {
312 return ((bitField0_ & 0x00000040) != 0);
313 }
325 @java.lang.Override
326 public double getSolveTimeSec() {
327 return solveTimeSec_;
328 }
329
330 public static final int SOLUTION_STATS_FIELD_NUMBER = 8;
331 private com.google.ortools.pdlp.IterationStats solutionStats_;
346 @java.lang.Override
347 public boolean hasSolutionStats() {
348 return ((bitField0_ & 0x00000080) != 0);
349 }
364 @java.lang.Override
366 return solutionStats_ == null ? com.google.ortools.pdlp.IterationStats.getDefaultInstance() : solutionStats_;
367 }
381 @java.lang.Override
383 return solutionStats_ == null ? com.google.ortools.pdlp.IterationStats.getDefaultInstance() : solutionStats_;
384 }
385
386 public static final int SOLUTION_TYPE_FIELD_NUMBER = 10;
387 private int solutionType_ = 0;
409 @java.lang.Override public boolean hasSolutionType() {
410 return ((bitField0_ & 0x00000100) != 0);
411 }
434 com.google.ortools.pdlp.PointType result = com.google.ortools.pdlp.PointType.forNumber(solutionType_);
435 return result == null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
436 }
437
438 public static final int ITERATION_STATS_FIELD_NUMBER = 7;
439 @SuppressWarnings("serial")
440 private java.util.List<com.google.ortools.pdlp.IterationStats> iterationStats_;
455 @java.lang.Override
456 public java.util.List<com.google.ortools.pdlp.IterationStats> getIterationStatsList() {
457 return iterationStats_;
458 }
473 @java.lang.Override
474 public java.util.List<? extends com.google.ortools.pdlp.IterationStatsOrBuilder>
476 return iterationStats_;
477 }
492 @java.lang.Override
494 return iterationStats_.size();
495 }
510 @java.lang.Override
512 return iterationStats_.get(index);
513 }
528 @java.lang.Override
530 int index) {
531 return iterationStats_.get(index);
532 }
533
534 public static final int ORIGINAL_PROBLEM_STATS_FIELD_NUMBER = 11;
535 private com.google.ortools.pdlp.QuadraticProgramStats originalProblemStats_;
544 @java.lang.Override
545 public boolean hasOriginalProblemStats() {
546 return ((bitField0_ & 0x00000200) != 0);
547 }
556 @java.lang.Override
558 return originalProblemStats_ == null ? com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance() : originalProblemStats_;
559 }
567 @java.lang.Override
569 return originalProblemStats_ == null ? com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance() : originalProblemStats_;
570 }
571
572 public static final int PREPROCESSED_PROBLEM_STATS_FIELD_NUMBER = 12;
573 private com.google.ortools.pdlp.QuadraticProgramStats preprocessedProblemStats_;
582 @java.lang.Override
584 return ((bitField0_ & 0x00000400) != 0);
585 }
594 @java.lang.Override
596 return preprocessedProblemStats_ == null ? com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance() : preprocessedProblemStats_;
597 }
605 @java.lang.Override
607 return preprocessedProblemStats_ == null ? com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance() : preprocessedProblemStats_;
608 }
609
610 public static final int FEASIBILITY_POLISHING_DETAILS_FIELD_NUMBER = 15;
611 @SuppressWarnings("serial")
612 private java.util.List<com.google.ortools.pdlp.FeasibilityPolishingDetails> feasibilityPolishingDetails_;
621 @java.lang.Override
622 public java.util.List<com.google.ortools.pdlp.FeasibilityPolishingDetails> getFeasibilityPolishingDetailsList() {
623 return feasibilityPolishingDetails_;
624 }
633 @java.lang.Override
634 public java.util.List<? extends com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder>
636 return feasibilityPolishingDetails_;
637 }
646 @java.lang.Override
648 return feasibilityPolishingDetails_.size();
649 }
658 @java.lang.Override
660 return feasibilityPolishingDetails_.get(index);
661 }
670 @java.lang.Override
672 int index) {
673 return feasibilityPolishingDetails_.get(index);
674 }
675
676 private byte memoizedIsInitialized = -1;
677 @java.lang.Override
678 public final boolean isInitialized() {
679 byte isInitialized = memoizedIsInitialized;
680 if (isInitialized == 1) return true;
681 if (isInitialized == 0) return false;
682
683 memoizedIsInitialized = 1;
684 return true;
685 }
686
687 @java.lang.Override
688 public void writeTo(com.google.protobuf.CodedOutputStream output)
689 throws java.io.IOException {
690 if (((bitField0_ & 0x00000001) != 0)) {
691 com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceName_);
692 }
693 if (((bitField0_ & 0x00000004) != 0)) {
694 output.writeEnum(3, terminationReason_);
695 }
696 if (((bitField0_ & 0x00000008) != 0)) {
697 com.google.protobuf.GeneratedMessage.writeString(output, 4, terminationString_);
698 }
699 if (((bitField0_ & 0x00000010) != 0)) {
700 output.writeInt32(5, iterationCount_);
701 }
702 if (((bitField0_ & 0x00000040) != 0)) {
703 output.writeDouble(6, solveTimeSec_);
704 }
705 for (int i = 0; i < iterationStats_.size(); i++) {
706 output.writeMessage(7, iterationStats_.get(i));
707 }
708 if (((bitField0_ & 0x00000080) != 0)) {
709 output.writeMessage(8, getSolutionStats());
710 }
711 if (((bitField0_ & 0x00000100) != 0)) {
712 output.writeEnum(10, solutionType_);
713 }
714 if (((bitField0_ & 0x00000200) != 0)) {
715 output.writeMessage(11, getOriginalProblemStats());
716 }
717 if (((bitField0_ & 0x00000400) != 0)) {
718 output.writeMessage(12, getPreprocessedProblemStats());
719 }
720 if (((bitField0_ & 0x00000020) != 0)) {
721 output.writeDouble(13, preprocessingTimeSec_);
722 }
723 if (((bitField0_ & 0x00000002) != 0)) {
724 output.writeMessage(14, getParams());
725 }
726 for (int i = 0; i < feasibilityPolishingDetails_.size(); i++) {
727 output.writeMessage(15, feasibilityPolishingDetails_.get(i));
728 }
729 getUnknownFields().writeTo(output);
730 }
731
732 @java.lang.Override
733 public int getSerializedSize() {
734 int size = memoizedSize;
735 if (size != -1) return size;
736
737 size = 0;
738 if (((bitField0_ & 0x00000001) != 0)) {
739 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceName_);
740 }
741 if (((bitField0_ & 0x00000004) != 0)) {
742 size += com.google.protobuf.CodedOutputStream
743 .computeEnumSize(3, terminationReason_);
744 }
745 if (((bitField0_ & 0x00000008) != 0)) {
746 size += com.google.protobuf.GeneratedMessage.computeStringSize(4, terminationString_);
747 }
748 if (((bitField0_ & 0x00000010) != 0)) {
749 size += com.google.protobuf.CodedOutputStream
750 .computeInt32Size(5, iterationCount_);
751 }
752 if (((bitField0_ & 0x00000040) != 0)) {
753 size += com.google.protobuf.CodedOutputStream
754 .computeDoubleSize(6, solveTimeSec_);
755 }
756 for (int i = 0; i < iterationStats_.size(); i++) {
757 size += com.google.protobuf.CodedOutputStream
758 .computeMessageSize(7, iterationStats_.get(i));
759 }
760 if (((bitField0_ & 0x00000080) != 0)) {
761 size += com.google.protobuf.CodedOutputStream
762 .computeMessageSize(8, getSolutionStats());
763 }
764 if (((bitField0_ & 0x00000100) != 0)) {
765 size += com.google.protobuf.CodedOutputStream
766 .computeEnumSize(10, solutionType_);
767 }
768 if (((bitField0_ & 0x00000200) != 0)) {
769 size += com.google.protobuf.CodedOutputStream
770 .computeMessageSize(11, getOriginalProblemStats());
771 }
772 if (((bitField0_ & 0x00000400) != 0)) {
773 size += com.google.protobuf.CodedOutputStream
774 .computeMessageSize(12, getPreprocessedProblemStats());
775 }
776 if (((bitField0_ & 0x00000020) != 0)) {
777 size += com.google.protobuf.CodedOutputStream
778 .computeDoubleSize(13, preprocessingTimeSec_);
779 }
780 if (((bitField0_ & 0x00000002) != 0)) {
781 size += com.google.protobuf.CodedOutputStream
782 .computeMessageSize(14, getParams());
783 }
784 for (int i = 0; i < feasibilityPolishingDetails_.size(); i++) {
785 size += com.google.protobuf.CodedOutputStream
786 .computeMessageSize(15, feasibilityPolishingDetails_.get(i));
787 }
788 size += getUnknownFields().getSerializedSize();
789 memoizedSize = size;
790 return size;
791 }
792
793 @java.lang.Override
794 public boolean equals(final java.lang.Object obj) {
795 if (obj == this) {
796 return true;
797 }
798 if (!(obj instanceof com.google.ortools.pdlp.SolveLog)) {
799 return super.equals(obj);
800 }
801 com.google.ortools.pdlp.SolveLog other = (com.google.ortools.pdlp.SolveLog) obj;
802
803 if (hasInstanceName() != other.hasInstanceName()) return false;
804 if (hasInstanceName()) {
805 if (!getInstanceName()
806 .equals(other.getInstanceName())) return false;
807 }
808 if (hasParams() != other.hasParams()) return false;
809 if (hasParams()) {
810 if (!getParams()
811 .equals(other.getParams())) return false;
812 }
813 if (hasTerminationReason() != other.hasTerminationReason()) return false;
814 if (hasTerminationReason()) {
815 if (terminationReason_ != other.terminationReason_) return false;
816 }
817 if (hasTerminationString() != other.hasTerminationString()) return false;
818 if (hasTerminationString()) {
820 .equals(other.getTerminationString())) return false;
821 }
822 if (hasIterationCount() != other.hasIterationCount()) return false;
823 if (hasIterationCount()) {
825 != other.getIterationCount()) return false;
826 }
827 if (hasPreprocessingTimeSec() != other.hasPreprocessingTimeSec()) return false;
829 if (java.lang.Double.doubleToLongBits(getPreprocessingTimeSec())
830 != java.lang.Double.doubleToLongBits(
831 other.getPreprocessingTimeSec())) return false;
832 }
833 if (hasSolveTimeSec() != other.hasSolveTimeSec()) return false;
834 if (hasSolveTimeSec()) {
835 if (java.lang.Double.doubleToLongBits(getSolveTimeSec())
836 != java.lang.Double.doubleToLongBits(
837 other.getSolveTimeSec())) return false;
838 }
839 if (hasSolutionStats() != other.hasSolutionStats()) return false;
840 if (hasSolutionStats()) {
841 if (!getSolutionStats()
842 .equals(other.getSolutionStats())) return false;
843 }
844 if (hasSolutionType() != other.hasSolutionType()) return false;
845 if (hasSolutionType()) {
846 if (solutionType_ != other.solutionType_) return false;
847 }
849 .equals(other.getIterationStatsList())) return false;
850 if (hasOriginalProblemStats() != other.hasOriginalProblemStats()) return false;
853 .equals(other.getOriginalProblemStats())) return false;
854 }
855 if (hasPreprocessedProblemStats() != other.hasPreprocessedProblemStats()) return false;
858 .equals(other.getPreprocessedProblemStats())) return false;
859 }
861 .equals(other.getFeasibilityPolishingDetailsList())) return false;
862 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
863 return true;
864 }
865
866 @java.lang.Override
867 public int hashCode() {
868 if (memoizedHashCode != 0) {
869 return memoizedHashCode;
870 }
871 int hash = 41;
872 hash = (19 * hash) + getDescriptor().hashCode();
873 if (hasInstanceName()) {
874 hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER;
875 hash = (53 * hash) + getInstanceName().hashCode();
876 }
877 if (hasParams()) {
878 hash = (37 * hash) + PARAMS_FIELD_NUMBER;
879 hash = (53 * hash) + getParams().hashCode();
880 }
881 if (hasTerminationReason()) {
882 hash = (37 * hash) + TERMINATION_REASON_FIELD_NUMBER;
883 hash = (53 * hash) + terminationReason_;
884 }
885 if (hasTerminationString()) {
886 hash = (37 * hash) + TERMINATION_STRING_FIELD_NUMBER;
887 hash = (53 * hash) + getTerminationString().hashCode();
888 }
889 if (hasIterationCount()) {
890 hash = (37 * hash) + ITERATION_COUNT_FIELD_NUMBER;
891 hash = (53 * hash) + getIterationCount();
892 }
894 hash = (37 * hash) + PREPROCESSING_TIME_SEC_FIELD_NUMBER;
895 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
896 java.lang.Double.doubleToLongBits(getPreprocessingTimeSec()));
897 }
898 if (hasSolveTimeSec()) {
899 hash = (37 * hash) + SOLVE_TIME_SEC_FIELD_NUMBER;
900 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
901 java.lang.Double.doubleToLongBits(getSolveTimeSec()));
902 }
903 if (hasSolutionStats()) {
904 hash = (37 * hash) + SOLUTION_STATS_FIELD_NUMBER;
905 hash = (53 * hash) + getSolutionStats().hashCode();
906 }
907 if (hasSolutionType()) {
908 hash = (37 * hash) + SOLUTION_TYPE_FIELD_NUMBER;
909 hash = (53 * hash) + solutionType_;
910 }
911 if (getIterationStatsCount() > 0) {
912 hash = (37 * hash) + ITERATION_STATS_FIELD_NUMBER;
913 hash = (53 * hash) + getIterationStatsList().hashCode();
914 }
916 hash = (37 * hash) + ORIGINAL_PROBLEM_STATS_FIELD_NUMBER;
917 hash = (53 * hash) + getOriginalProblemStats().hashCode();
918 }
920 hash = (37 * hash) + PREPROCESSED_PROBLEM_STATS_FIELD_NUMBER;
921 hash = (53 * hash) + getPreprocessedProblemStats().hashCode();
922 }
925 hash = (53 * hash) + getFeasibilityPolishingDetailsList().hashCode();
926 }
927 hash = (29 * hash) + getUnknownFields().hashCode();
928 memoizedHashCode = hash;
929 return hash;
930 }
931
933 java.nio.ByteBuffer data)
934 throws com.google.protobuf.InvalidProtocolBufferException {
935 return PARSER.parseFrom(data);
936 }
938 java.nio.ByteBuffer data,
939 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
940 throws com.google.protobuf.InvalidProtocolBufferException {
941 return PARSER.parseFrom(data, extensionRegistry);
942 }
944 com.google.protobuf.ByteString data)
945 throws com.google.protobuf.InvalidProtocolBufferException {
946 return PARSER.parseFrom(data);
947 }
949 com.google.protobuf.ByteString data,
950 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
951 throws com.google.protobuf.InvalidProtocolBufferException {
952 return PARSER.parseFrom(data, extensionRegistry);
953 }
955 throws com.google.protobuf.InvalidProtocolBufferException {
956 return PARSER.parseFrom(data);
957 }
959 byte[] data,
960 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
961 throws com.google.protobuf.InvalidProtocolBufferException {
962 return PARSER.parseFrom(data, extensionRegistry);
963 }
964 public static com.google.ortools.pdlp.SolveLog parseFrom(java.io.InputStream input)
965 throws java.io.IOException {
966 return com.google.protobuf.GeneratedMessage
967 .parseWithIOException(PARSER, input);
968 }
970 java.io.InputStream input,
971 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
972 throws java.io.IOException {
973 return com.google.protobuf.GeneratedMessage
974 .parseWithIOException(PARSER, input, extensionRegistry);
975 }
976
977 public static com.google.ortools.pdlp.SolveLog parseDelimitedFrom(java.io.InputStream input)
978 throws java.io.IOException {
979 return com.google.protobuf.GeneratedMessage
980 .parseDelimitedWithIOException(PARSER, input);
981 }
982
984 java.io.InputStream input,
985 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
986 throws java.io.IOException {
987 return com.google.protobuf.GeneratedMessage
988 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
989 }
991 com.google.protobuf.CodedInputStream input)
992 throws java.io.IOException {
993 return com.google.protobuf.GeneratedMessage
994 .parseWithIOException(PARSER, input);
995 }
997 com.google.protobuf.CodedInputStream input,
998 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
999 throws java.io.IOException {
1000 return com.google.protobuf.GeneratedMessage
1001 .parseWithIOException(PARSER, input, extensionRegistry);
1002 }
1003
1004 @java.lang.Override
1005 public Builder newBuilderForType() { return newBuilder(); }
1006 public static Builder newBuilder() {
1007 return DEFAULT_INSTANCE.toBuilder();
1008 }
1009 public static Builder newBuilder(com.google.ortools.pdlp.SolveLog prototype) {
1010 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1011 }
1012 @java.lang.Override
1014 return this == DEFAULT_INSTANCE
1015 ? new Builder() : new Builder().mergeFrom(this);
1016 }
1017
1018 @java.lang.Override
1020 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1021 Builder builder = new Builder(parent);
1022 return builder;
1023 }
1027 public static final class Builder extends
1028 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
1029 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.SolveLog)
1030 com.google.ortools.pdlp.SolveLogOrBuilder {
1031 public static final com.google.protobuf.Descriptors.Descriptor
1033 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_SolveLog_descriptor;
1034 }
1035
1036 @java.lang.Override
1037 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1039 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_SolveLog_fieldAccessorTable
1040 .ensureFieldAccessorsInitialized(
1041 com.google.ortools.pdlp.SolveLog.class, com.google.ortools.pdlp.SolveLog.Builder.class);
1042 }
1043
1044 // Construct using com.google.ortools.pdlp.SolveLog.newBuilder()
1045 private Builder() {
1046 maybeForceBuilderInitialization();
1047 }
1048
1049 private Builder(
1050 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1051 super(parent);
1052 maybeForceBuilderInitialization();
1053 }
1054 private void maybeForceBuilderInitialization() {
1055 if (com.google.protobuf.GeneratedMessage
1056 .alwaysUseFieldBuilders) {
1057 getParamsFieldBuilder();
1058 getSolutionStatsFieldBuilder();
1059 getIterationStatsFieldBuilder();
1060 getOriginalProblemStatsFieldBuilder();
1061 getPreprocessedProblemStatsFieldBuilder();
1062 getFeasibilityPolishingDetailsFieldBuilder();
1063 }
1064 }
1065 @java.lang.Override
1066 public Builder clear() {
1067 super.clear();
1068 bitField0_ = 0;
1069 instanceName_ = "";
1070 params_ = null;
1071 if (paramsBuilder_ != null) {
1072 paramsBuilder_.dispose();
1073 paramsBuilder_ = null;
1074 }
1075 terminationReason_ = 0;
1076 terminationString_ = "";
1077 iterationCount_ = 0;
1078 preprocessingTimeSec_ = 0D;
1079 solveTimeSec_ = 0D;
1080 solutionStats_ = null;
1081 if (solutionStatsBuilder_ != null) {
1082 solutionStatsBuilder_.dispose();
1083 solutionStatsBuilder_ = null;
1084 }
1085 solutionType_ = 0;
1086 if (iterationStatsBuilder_ == null) {
1087 iterationStats_ = java.util.Collections.emptyList();
1088 } else {
1089 iterationStats_ = null;
1090 iterationStatsBuilder_.clear();
1091 }
1092 bitField0_ = (bitField0_ & ~0x00000200);
1093 originalProblemStats_ = null;
1094 if (originalProblemStatsBuilder_ != null) {
1095 originalProblemStatsBuilder_.dispose();
1096 originalProblemStatsBuilder_ = null;
1097 }
1098 preprocessedProblemStats_ = null;
1099 if (preprocessedProblemStatsBuilder_ != null) {
1100 preprocessedProblemStatsBuilder_.dispose();
1101 preprocessedProblemStatsBuilder_ = null;
1102 }
1103 if (feasibilityPolishingDetailsBuilder_ == null) {
1104 feasibilityPolishingDetails_ = java.util.Collections.emptyList();
1105 } else {
1106 feasibilityPolishingDetails_ = null;
1107 feasibilityPolishingDetailsBuilder_.clear();
1108 }
1109 bitField0_ = (bitField0_ & ~0x00001000);
1110 return this;
1111 }
1112
1113 @java.lang.Override
1114 public com.google.protobuf.Descriptors.Descriptor
1116 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_SolveLog_descriptor;
1117 }
1118
1119 @java.lang.Override
1121 return com.google.ortools.pdlp.SolveLog.getDefaultInstance();
1122 }
1123
1124 @java.lang.Override
1127 if (!result.isInitialized()) {
1128 throw newUninitializedMessageException(result);
1129 }
1130 return result;
1131 }
1132
1133 @java.lang.Override
1135 com.google.ortools.pdlp.SolveLog result = new com.google.ortools.pdlp.SolveLog(this);
1136 buildPartialRepeatedFields(result);
1137 if (bitField0_ != 0) { buildPartial0(result); }
1138 onBuilt();
1139 return result;
1140 }
1141
1142 private void buildPartialRepeatedFields(com.google.ortools.pdlp.SolveLog result) {
1143 if (iterationStatsBuilder_ == null) {
1144 if (((bitField0_ & 0x00000200) != 0)) {
1145 iterationStats_ = java.util.Collections.unmodifiableList(iterationStats_);
1146 bitField0_ = (bitField0_ & ~0x00000200);
1147 }
1148 result.iterationStats_ = iterationStats_;
1149 } else {
1150 result.iterationStats_ = iterationStatsBuilder_.build();
1151 }
1152 if (feasibilityPolishingDetailsBuilder_ == null) {
1153 if (((bitField0_ & 0x00001000) != 0)) {
1154 feasibilityPolishingDetails_ = java.util.Collections.unmodifiableList(feasibilityPolishingDetails_);
1155 bitField0_ = (bitField0_ & ~0x00001000);
1156 }
1157 result.feasibilityPolishingDetails_ = feasibilityPolishingDetails_;
1158 } else {
1159 result.feasibilityPolishingDetails_ = feasibilityPolishingDetailsBuilder_.build();
1160 }
1161 }
1162
1163 private void buildPartial0(com.google.ortools.pdlp.SolveLog result) {
1164 int from_bitField0_ = bitField0_;
1165 int to_bitField0_ = 0;
1166 if (((from_bitField0_ & 0x00000001) != 0)) {
1167 result.instanceName_ = instanceName_;
1168 to_bitField0_ |= 0x00000001;
1169 }
1170 if (((from_bitField0_ & 0x00000002) != 0)) {
1171 result.params_ = paramsBuilder_ == null
1172 ? params_
1173 : paramsBuilder_.build();
1174 to_bitField0_ |= 0x00000002;
1175 }
1176 if (((from_bitField0_ & 0x00000004) != 0)) {
1177 result.terminationReason_ = terminationReason_;
1178 to_bitField0_ |= 0x00000004;
1179 }
1180 if (((from_bitField0_ & 0x00000008) != 0)) {
1181 result.terminationString_ = terminationString_;
1182 to_bitField0_ |= 0x00000008;
1183 }
1184 if (((from_bitField0_ & 0x00000010) != 0)) {
1185 result.iterationCount_ = iterationCount_;
1186 to_bitField0_ |= 0x00000010;
1187 }
1188 if (((from_bitField0_ & 0x00000020) != 0)) {
1189 result.preprocessingTimeSec_ = preprocessingTimeSec_;
1190 to_bitField0_ |= 0x00000020;
1191 }
1192 if (((from_bitField0_ & 0x00000040) != 0)) {
1193 result.solveTimeSec_ = solveTimeSec_;
1194 to_bitField0_ |= 0x00000040;
1195 }
1196 if (((from_bitField0_ & 0x00000080) != 0)) {
1197 result.solutionStats_ = solutionStatsBuilder_ == null
1198 ? solutionStats_
1199 : solutionStatsBuilder_.build();
1200 to_bitField0_ |= 0x00000080;
1201 }
1202 if (((from_bitField0_ & 0x00000100) != 0)) {
1203 result.solutionType_ = solutionType_;
1204 to_bitField0_ |= 0x00000100;
1205 }
1206 if (((from_bitField0_ & 0x00000400) != 0)) {
1207 result.originalProblemStats_ = originalProblemStatsBuilder_ == null
1208 ? originalProblemStats_
1209 : originalProblemStatsBuilder_.build();
1210 to_bitField0_ |= 0x00000200;
1211 }
1212 if (((from_bitField0_ & 0x00000800) != 0)) {
1213 result.preprocessedProblemStats_ = preprocessedProblemStatsBuilder_ == null
1214 ? preprocessedProblemStats_
1215 : preprocessedProblemStatsBuilder_.build();
1216 to_bitField0_ |= 0x00000400;
1217 }
1218 result.bitField0_ |= to_bitField0_;
1219 }
1220
1221 @java.lang.Override
1222 public Builder mergeFrom(com.google.protobuf.Message other) {
1223 if (other instanceof com.google.ortools.pdlp.SolveLog) {
1224 return mergeFrom((com.google.ortools.pdlp.SolveLog)other);
1225 } else {
1226 super.mergeFrom(other);
1227 return this;
1228 }
1229 }
1230
1231 public Builder mergeFrom(com.google.ortools.pdlp.SolveLog other) {
1232 if (other == com.google.ortools.pdlp.SolveLog.getDefaultInstance()) return this;
1233 if (other.hasInstanceName()) {
1234 instanceName_ = other.instanceName_;
1235 bitField0_ |= 0x00000001;
1236 onChanged();
1237 }
1238 if (other.hasParams()) {
1239 mergeParams(other.getParams());
1240 }
1241 if (other.hasTerminationReason()) {
1242 setTerminationReason(other.getTerminationReason());
1243 }
1244 if (other.hasTerminationString()) {
1245 terminationString_ = other.terminationString_;
1246 bitField0_ |= 0x00000008;
1247 onChanged();
1248 }
1249 if (other.hasIterationCount()) {
1250 setIterationCount(other.getIterationCount());
1251 }
1252 if (other.hasPreprocessingTimeSec()) {
1253 setPreprocessingTimeSec(other.getPreprocessingTimeSec());
1254 }
1255 if (other.hasSolveTimeSec()) {
1256 setSolveTimeSec(other.getSolveTimeSec());
1257 }
1258 if (other.hasSolutionStats()) {
1259 mergeSolutionStats(other.getSolutionStats());
1260 }
1261 if (other.hasSolutionType()) {
1262 setSolutionType(other.getSolutionType());
1263 }
1264 if (iterationStatsBuilder_ == null) {
1265 if (!other.iterationStats_.isEmpty()) {
1266 if (iterationStats_.isEmpty()) {
1267 iterationStats_ = other.iterationStats_;
1268 bitField0_ = (bitField0_ & ~0x00000200);
1269 } else {
1270 ensureIterationStatsIsMutable();
1271 iterationStats_.addAll(other.iterationStats_);
1272 }
1273 onChanged();
1274 }
1275 } else {
1276 if (!other.iterationStats_.isEmpty()) {
1277 if (iterationStatsBuilder_.isEmpty()) {
1278 iterationStatsBuilder_.dispose();
1279 iterationStatsBuilder_ = null;
1280 iterationStats_ = other.iterationStats_;
1281 bitField0_ = (bitField0_ & ~0x00000200);
1282 iterationStatsBuilder_ =
1283 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1284 getIterationStatsFieldBuilder() : null;
1285 } else {
1286 iterationStatsBuilder_.addAllMessages(other.iterationStats_);
1287 }
1288 }
1289 }
1290 if (other.hasOriginalProblemStats()) {
1291 mergeOriginalProblemStats(other.getOriginalProblemStats());
1292 }
1293 if (other.hasPreprocessedProblemStats()) {
1294 mergePreprocessedProblemStats(other.getPreprocessedProblemStats());
1295 }
1296 if (feasibilityPolishingDetailsBuilder_ == null) {
1297 if (!other.feasibilityPolishingDetails_.isEmpty()) {
1298 if (feasibilityPolishingDetails_.isEmpty()) {
1299 feasibilityPolishingDetails_ = other.feasibilityPolishingDetails_;
1300 bitField0_ = (bitField0_ & ~0x00001000);
1301 } else {
1302 ensureFeasibilityPolishingDetailsIsMutable();
1303 feasibilityPolishingDetails_.addAll(other.feasibilityPolishingDetails_);
1304 }
1305 onChanged();
1306 }
1307 } else {
1308 if (!other.feasibilityPolishingDetails_.isEmpty()) {
1309 if (feasibilityPolishingDetailsBuilder_.isEmpty()) {
1310 feasibilityPolishingDetailsBuilder_.dispose();
1311 feasibilityPolishingDetailsBuilder_ = null;
1312 feasibilityPolishingDetails_ = other.feasibilityPolishingDetails_;
1313 bitField0_ = (bitField0_ & ~0x00001000);
1314 feasibilityPolishingDetailsBuilder_ =
1315 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1316 getFeasibilityPolishingDetailsFieldBuilder() : null;
1317 } else {
1318 feasibilityPolishingDetailsBuilder_.addAllMessages(other.feasibilityPolishingDetails_);
1319 }
1320 }
1321 }
1322 this.mergeUnknownFields(other.getUnknownFields());
1323 onChanged();
1324 return this;
1325 }
1326
1327 @java.lang.Override
1328 public final boolean isInitialized() {
1329 return true;
1330 }
1331
1332 @java.lang.Override
1334 com.google.protobuf.CodedInputStream input,
1335 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1336 throws java.io.IOException {
1337 if (extensionRegistry == null) {
1338 throw new java.lang.NullPointerException();
1339 }
1340 try {
1341 boolean done = false;
1342 while (!done) {
1343 int tag = input.readTag();
1344 switch (tag) {
1345 case 0:
1346 done = true;
1347 break;
1348 case 10: {
1349 instanceName_ = input.readBytes();
1350 bitField0_ |= 0x00000001;
1351 break;
1352 } // case 10
1353 case 24: {
1354 int tmpRaw = input.readEnum();
1356 com.google.ortools.pdlp.TerminationReason.forNumber(tmpRaw);
1357 if (tmpValue == null) {
1358 mergeUnknownVarintField(3, tmpRaw);
1359 } else {
1360 terminationReason_ = tmpRaw;
1361 bitField0_ |= 0x00000004;
1362 }
1363 break;
1364 } // case 24
1365 case 34: {
1366 terminationString_ = input.readBytes();
1367 bitField0_ |= 0x00000008;
1368 break;
1369 } // case 34
1370 case 40: {
1371 iterationCount_ = input.readInt32();
1372 bitField0_ |= 0x00000010;
1373 break;
1374 } // case 40
1375 case 49: {
1376 solveTimeSec_ = input.readDouble();
1377 bitField0_ |= 0x00000040;
1378 break;
1379 } // case 49
1380 case 58: {
1382 input.readMessage(
1383 com.google.ortools.pdlp.IterationStats.parser(),
1384 extensionRegistry);
1385 if (iterationStatsBuilder_ == null) {
1386 ensureIterationStatsIsMutable();
1387 iterationStats_.add(m);
1388 } else {
1389 iterationStatsBuilder_.addMessage(m);
1390 }
1391 break;
1392 } // case 58
1393 case 66: {
1394 input.readMessage(
1395 getSolutionStatsFieldBuilder().getBuilder(),
1396 extensionRegistry);
1397 bitField0_ |= 0x00000080;
1398 break;
1399 } // case 66
1400 case 80: {
1401 int tmpRaw = input.readEnum();
1403 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
1404 if (tmpValue == null) {
1405 mergeUnknownVarintField(10, tmpRaw);
1406 } else {
1407 solutionType_ = tmpRaw;
1408 bitField0_ |= 0x00000100;
1409 }
1410 break;
1411 } // case 80
1412 case 90: {
1413 input.readMessage(
1414 getOriginalProblemStatsFieldBuilder().getBuilder(),
1415 extensionRegistry);
1416 bitField0_ |= 0x00000400;
1417 break;
1418 } // case 90
1419 case 98: {
1420 input.readMessage(
1421 getPreprocessedProblemStatsFieldBuilder().getBuilder(),
1422 extensionRegistry);
1423 bitField0_ |= 0x00000800;
1424 break;
1425 } // case 98
1426 case 105: {
1427 preprocessingTimeSec_ = input.readDouble();
1428 bitField0_ |= 0x00000020;
1429 break;
1430 } // case 105
1431 case 114: {
1432 input.readMessage(
1433 getParamsFieldBuilder().getBuilder(),
1434 extensionRegistry);
1435 bitField0_ |= 0x00000002;
1436 break;
1437 } // case 114
1438 case 122: {
1440 input.readMessage(
1441 com.google.ortools.pdlp.FeasibilityPolishingDetails.parser(),
1442 extensionRegistry);
1443 if (feasibilityPolishingDetailsBuilder_ == null) {
1444 ensureFeasibilityPolishingDetailsIsMutable();
1445 feasibilityPolishingDetails_.add(m);
1446 } else {
1447 feasibilityPolishingDetailsBuilder_.addMessage(m);
1448 }
1449 break;
1450 } // case 122
1451 default: {
1452 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1453 done = true; // was an endgroup tag
1454 }
1455 break;
1456 } // default:
1457 } // switch (tag)
1458 } // while (!done)
1459 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1460 throw e.unwrapIOException();
1461 } finally {
1462 onChanged();
1463 } // finally
1464 return this;
1465 }
1466 private int bitField0_;
1467
1468 private java.lang.Object instanceName_ = "";
1477 public boolean hasInstanceName() {
1478 return ((bitField0_ & 0x00000001) != 0);
1479 }
1488 public java.lang.String getInstanceName() {
1489 java.lang.Object ref = instanceName_;
1490 if (!(ref instanceof java.lang.String)) {
1491 com.google.protobuf.ByteString bs =
1492 (com.google.protobuf.ByteString) ref;
1493 java.lang.String s = bs.toStringUtf8();
1494 if (bs.isValidUtf8()) {
1495 instanceName_ = s;
1496 }
1497 return s;
1498 } else {
1499 return (java.lang.String) ref;
1500 }
1501 }
1510 public com.google.protobuf.ByteString
1512 java.lang.Object ref = instanceName_;
1513 if (ref instanceof String) {
1514 com.google.protobuf.ByteString b =
1515 com.google.protobuf.ByteString.copyFromUtf8(
1516 (java.lang.String) ref);
1517 instanceName_ = b;
1518 return b;
1519 } else {
1520 return (com.google.protobuf.ByteString) ref;
1521 }
1522 }
1533 java.lang.String value) {
1534 if (value == null) { throw new NullPointerException(); }
1535 instanceName_ = value;
1536 bitField0_ |= 0x00000001;
1537 onChanged();
1538 return this;
1539 }
1549 instanceName_ = getDefaultInstance().getInstanceName();
1550 bitField0_ = (bitField0_ & ~0x00000001);
1551 onChanged();
1552 return this;
1553 }
1564 com.google.protobuf.ByteString value) {
1565 if (value == null) { throw new NullPointerException(); }
1566 instanceName_ = value;
1567 bitField0_ |= 0x00000001;
1568 onChanged();
1569 return this;
1570 }
1571
1573 private com.google.protobuf.SingleFieldBuilder<
1574 com.google.ortools.pdlp.PrimalDualHybridGradientParams, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParamsOrBuilder> paramsBuilder_;
1583 public boolean hasParams() {
1584 return ((bitField0_ & 0x00000002) != 0);
1585 }
1595 if (paramsBuilder_ == null) {
1596 return params_ == null ? com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance() : params_;
1597 } else {
1598 return paramsBuilder_.getMessage();
1599 }
1600 }
1608 public Builder setParams(com.google.ortools.pdlp.PrimalDualHybridGradientParams value) {
1609 if (paramsBuilder_ == null) {
1610 if (value == null) {
1611 throw new NullPointerException();
1612 }
1613 params_ = value;
1614 } else {
1615 paramsBuilder_.setMessage(value);
1616 }
1617 bitField0_ |= 0x00000002;
1618 onChanged();
1619 return this;
1620 }
1629 com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder builderForValue) {
1630 if (paramsBuilder_ == null) {
1631 params_ = builderForValue.build();
1632 } else {
1633 paramsBuilder_.setMessage(builderForValue.build());
1634 }
1635 bitField0_ |= 0x00000002;
1636 onChanged();
1637 return this;
1638 }
1646 public Builder mergeParams(com.google.ortools.pdlp.PrimalDualHybridGradientParams value) {
1647 if (paramsBuilder_ == null) {
1648 if (((bitField0_ & 0x00000002) != 0) &&
1649 params_ != null &&
1650 params_ != com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance()) {
1651 getParamsBuilder().mergeFrom(value);
1652 } else {
1653 params_ = value;
1654 }
1655 } else {
1656 paramsBuilder_.mergeFrom(value);
1657 }
1658 if (params_ != null) {
1659 bitField0_ |= 0x00000002;
1660 onChanged();
1661 }
1662 return this;
1663 }
1672 bitField0_ = (bitField0_ & ~0x00000002);
1673 params_ = null;
1674 if (paramsBuilder_ != null) {
1675 paramsBuilder_.dispose();
1676 paramsBuilder_ = null;
1677 }
1678 onChanged();
1679 return this;
1680 }
1689 bitField0_ |= 0x00000002;
1690 onChanged();
1691 return getParamsFieldBuilder().getBuilder();
1692 }
1701 if (paramsBuilder_ != null) {
1702 return paramsBuilder_.getMessageOrBuilder();
1703 } else {
1704 return params_ == null ?
1705 com.google.ortools.pdlp.PrimalDualHybridGradientParams.getDefaultInstance() : params_;
1706 }
1707 }
1715 private com.google.protobuf.SingleFieldBuilder<
1716 com.google.ortools.pdlp.PrimalDualHybridGradientParams, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParamsOrBuilder>
1717 getParamsFieldBuilder() {
1718 if (paramsBuilder_ == null) {
1719 paramsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1720 com.google.ortools.pdlp.PrimalDualHybridGradientParams, com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder, com.google.ortools.pdlp.PrimalDualHybridGradientParamsOrBuilder>(
1721 getParams(),
1722 getParentForChildren(),
1723 isClean());
1724 params_ = null;
1725 }
1726 return paramsBuilder_;
1727 }
1728
1729 private int terminationReason_ = 0;
1738 @java.lang.Override public boolean hasTerminationReason() {
1739 return ((bitField0_ & 0x00000004) != 0);
1740 }
1749 @java.lang.Override
1751 com.google.ortools.pdlp.TerminationReason result = com.google.ortools.pdlp.TerminationReason.forNumber(terminationReason_);
1752 return result == null ? com.google.ortools.pdlp.TerminationReason.TERMINATION_REASON_UNSPECIFIED : result;
1753 }
1763 public Builder setTerminationReason(com.google.ortools.pdlp.TerminationReason value) {
1764 if (value == null) {
1765 throw new NullPointerException();
1766 }
1767 bitField0_ |= 0x00000004;
1768 terminationReason_ = value.getNumber();
1769 onChanged();
1770 return this;
1771 }
1781 bitField0_ = (bitField0_ & ~0x00000004);
1782 terminationReason_ = 0;
1783 onChanged();
1784 return this;
1785 }
1786
1787 private java.lang.Object terminationString_ = "";
1796 public boolean hasTerminationString() {
1797 return ((bitField0_ & 0x00000008) != 0);
1798 }
1807 public java.lang.String getTerminationString() {
1808 java.lang.Object ref = terminationString_;
1809 if (!(ref instanceof java.lang.String)) {
1810 com.google.protobuf.ByteString bs =
1811 (com.google.protobuf.ByteString) ref;
1812 java.lang.String s = bs.toStringUtf8();
1813 if (bs.isValidUtf8()) {
1814 terminationString_ = s;
1815 }
1816 return s;
1817 } else {
1818 return (java.lang.String) ref;
1819 }
1820 }
1829 public com.google.protobuf.ByteString
1831 java.lang.Object ref = terminationString_;
1832 if (ref instanceof String) {
1833 com.google.protobuf.ByteString b =
1834 com.google.protobuf.ByteString.copyFromUtf8(
1835 (java.lang.String) ref);
1836 terminationString_ = b;
1837 return b;
1838 } else {
1839 return (com.google.protobuf.ByteString) ref;
1840 }
1841 }
1852 java.lang.String value) {
1853 if (value == null) { throw new NullPointerException(); }
1854 terminationString_ = value;
1855 bitField0_ |= 0x00000008;
1856 onChanged();
1857 return this;
1858 }
1868 terminationString_ = getDefaultInstance().getTerminationString();
1869 bitField0_ = (bitField0_ & ~0x00000008);
1870 onChanged();
1871 return this;
1872 }
1883 com.google.protobuf.ByteString value) {
1884 if (value == null) { throw new NullPointerException(); }
1885 terminationString_ = value;
1886 bitField0_ |= 0x00000008;
1887 onChanged();
1888 return this;
1889 }
1890
1891 private int iterationCount_ ;
1902 @java.lang.Override
1903 public boolean hasIterationCount() {
1904 return ((bitField0_ & 0x00000010) != 0);
1905 }
1916 @java.lang.Override
1917 public int getIterationCount() {
1918 return iterationCount_;
1919 }
1931 public Builder setIterationCount(int value) {
1932
1933 iterationCount_ = value;
1934 bitField0_ |= 0x00000010;
1935 onChanged();
1936 return this;
1937 }
1949 bitField0_ = (bitField0_ & ~0x00000010);
1950 iterationCount_ = 0;
1951 onChanged();
1952 return this;
1953 }
1954
1955 private double preprocessingTimeSec_ ;
1965 @java.lang.Override
1966 public boolean hasPreprocessingTimeSec() {
1967 return ((bitField0_ & 0x00000020) != 0);
1968 }
1978 @java.lang.Override
1979 public double getPreprocessingTimeSec() {
1980 return preprocessingTimeSec_;
1981 }
1992 public Builder setPreprocessingTimeSec(double value) {
1993
1994 preprocessingTimeSec_ = value;
1995 bitField0_ |= 0x00000020;
1996 onChanged();
1997 return this;
1998 }
2009 bitField0_ = (bitField0_ & ~0x00000020);
2010 preprocessingTimeSec_ = 0D;
2011 onChanged();
2012 return this;
2013 }
2014
2015 private double solveTimeSec_ ;
2027 @java.lang.Override
2028 public boolean hasSolveTimeSec() {
2029 return ((bitField0_ & 0x00000040) != 0);
2030 }
2042 @java.lang.Override
2043 public double getSolveTimeSec() {
2044 return solveTimeSec_;
2045 }
2058 public Builder setSolveTimeSec(double value) {
2059
2060 solveTimeSec_ = value;
2061 bitField0_ |= 0x00000040;
2062 onChanged();
2063 return this;
2064 }
2077 bitField0_ = (bitField0_ & ~0x00000040);
2078 solveTimeSec_ = 0D;
2079 onChanged();
2080 return this;
2081 }
2082
2083 private com.google.ortools.pdlp.IterationStats solutionStats_;
2084 private com.google.protobuf.SingleFieldBuilder<
2085 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder> solutionStatsBuilder_;
2100 public boolean hasSolutionStats() {
2101 return ((bitField0_ & 0x00000080) != 0);
2102 }
2118 if (solutionStatsBuilder_ == null) {
2119 return solutionStats_ == null ? com.google.ortools.pdlp.IterationStats.getDefaultInstance() : solutionStats_;
2120 } else {
2121 return solutionStatsBuilder_.getMessage();
2122 }
2123 }
2137 public Builder setSolutionStats(com.google.ortools.pdlp.IterationStats value) {
2138 if (solutionStatsBuilder_ == null) {
2139 if (value == null) {
2140 throw new NullPointerException();
2141 }
2142 solutionStats_ = value;
2143 } else {
2144 solutionStatsBuilder_.setMessage(value);
2145 }
2146 bitField0_ |= 0x00000080;
2147 onChanged();
2148 return this;
2149 }
2164 com.google.ortools.pdlp.IterationStats.Builder builderForValue) {
2165 if (solutionStatsBuilder_ == null) {
2166 solutionStats_ = builderForValue.build();
2167 } else {
2168 solutionStatsBuilder_.setMessage(builderForValue.build());
2169 }
2170 bitField0_ |= 0x00000080;
2171 onChanged();
2172 return this;
2173 }
2187 public Builder mergeSolutionStats(com.google.ortools.pdlp.IterationStats value) {
2188 if (solutionStatsBuilder_ == null) {
2189 if (((bitField0_ & 0x00000080) != 0) &&
2190 solutionStats_ != null &&
2191 solutionStats_ != com.google.ortools.pdlp.IterationStats.getDefaultInstance()) {
2192 getSolutionStatsBuilder().mergeFrom(value);
2193 } else {
2194 solutionStats_ = value;
2195 }
2196 } else {
2197 solutionStatsBuilder_.mergeFrom(value);
2198 }
2199 if (solutionStats_ != null) {
2200 bitField0_ |= 0x00000080;
2201 onChanged();
2202 }
2203 return this;
2204 }
2219 bitField0_ = (bitField0_ & ~0x00000080);
2220 solutionStats_ = null;
2221 if (solutionStatsBuilder_ != null) {
2222 solutionStatsBuilder_.dispose();
2223 solutionStatsBuilder_ = null;
2224 }
2225 onChanged();
2226 return this;
2227 }
2242 bitField0_ |= 0x00000080;
2243 onChanged();
2244 return getSolutionStatsFieldBuilder().getBuilder();
2245 }
2260 if (solutionStatsBuilder_ != null) {
2261 return solutionStatsBuilder_.getMessageOrBuilder();
2262 } else {
2263 return solutionStats_ == null ?
2264 com.google.ortools.pdlp.IterationStats.getDefaultInstance() : solutionStats_;
2265 }
2266 }
2280 private com.google.protobuf.SingleFieldBuilder<
2281 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder>
2282 getSolutionStatsFieldBuilder() {
2283 if (solutionStatsBuilder_ == null) {
2284 solutionStatsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2285 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder>(
2287 getParentForChildren(),
2288 isClean());
2289 solutionStats_ = null;
2290 }
2291 return solutionStatsBuilder_;
2292 }
2293
2294 private int solutionType_ = 0;
2316 @java.lang.Override public boolean hasSolutionType() {
2317 return ((bitField0_ & 0x00000100) != 0);
2318 }
2340 @java.lang.Override
2342 com.google.ortools.pdlp.PointType result = com.google.ortools.pdlp.PointType.forNumber(solutionType_);
2343 return result == null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
2344 }
2367 public Builder setSolutionType(com.google.ortools.pdlp.PointType value) {
2368 if (value == null) {
2369 throw new NullPointerException();
2370 }
2371 bitField0_ |= 0x00000100;
2372 solutionType_ = value.getNumber();
2373 onChanged();
2374 return this;
2375 }
2398 bitField0_ = (bitField0_ & ~0x00000100);
2399 solutionType_ = 0;
2400 onChanged();
2401 return this;
2402 }
2403
2404 private java.util.List<com.google.ortools.pdlp.IterationStats> iterationStats_ =
2405 java.util.Collections.emptyList();
2406 private void ensureIterationStatsIsMutable() {
2407 if (!((bitField0_ & 0x00000200) != 0)) {
2408 iterationStats_ = new java.util.ArrayList<com.google.ortools.pdlp.IterationStats>(iterationStats_);
2409 bitField0_ |= 0x00000200;
2410 }
2411 }
2412
2413 private com.google.protobuf.RepeatedFieldBuilder<
2414 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder> iterationStatsBuilder_;
2415
2430 public java.util.List<com.google.ortools.pdlp.IterationStats> getIterationStatsList() {
2431 if (iterationStatsBuilder_ == null) {
2432 return java.util.Collections.unmodifiableList(iterationStats_);
2433 } else {
2434 return iterationStatsBuilder_.getMessageList();
2435 }
2436 }
2452 if (iterationStatsBuilder_ == null) {
2453 return iterationStats_.size();
2454 } else {
2455 return iterationStatsBuilder_.getCount();
2456 }
2457 }
2473 if (iterationStatsBuilder_ == null) {
2474 return iterationStats_.get(index);
2475 } else {
2476 return iterationStatsBuilder_.getMessage(index);
2477 }
2478 }
2494 int index, com.google.ortools.pdlp.IterationStats value) {
2495 if (iterationStatsBuilder_ == null) {
2496 if (value == null) {
2497 throw new NullPointerException();
2498 }
2499 ensureIterationStatsIsMutable();
2500 iterationStats_.set(index, value);
2501 onChanged();
2502 } else {
2503 iterationStatsBuilder_.setMessage(index, value);
2504 }
2505 return this;
2506 }
2522 int index, com.google.ortools.pdlp.IterationStats.Builder builderForValue) {
2523 if (iterationStatsBuilder_ == null) {
2524 ensureIterationStatsIsMutable();
2525 iterationStats_.set(index, builderForValue.build());
2526 onChanged();
2527 } else {
2528 iterationStatsBuilder_.setMessage(index, builderForValue.build());
2529 }
2530 return this;
2531 }
2546 public Builder addIterationStats(com.google.ortools.pdlp.IterationStats value) {
2547 if (iterationStatsBuilder_ == null) {
2548 if (value == null) {
2549 throw new NullPointerException();
2550 }
2551 ensureIterationStatsIsMutable();
2552 iterationStats_.add(value);
2553 onChanged();
2554 } else {
2555 iterationStatsBuilder_.addMessage(value);
2556 }
2557 return this;
2558 }
2574 int index, com.google.ortools.pdlp.IterationStats value) {
2575 if (iterationStatsBuilder_ == null) {
2576 if (value == null) {
2577 throw new NullPointerException();
2578 }
2579 ensureIterationStatsIsMutable();
2580 iterationStats_.add(index, value);
2581 onChanged();
2582 } else {
2583 iterationStatsBuilder_.addMessage(index, value);
2584 }
2585 return this;
2586 }
2602 com.google.ortools.pdlp.IterationStats.Builder builderForValue) {
2603 if (iterationStatsBuilder_ == null) {
2604 ensureIterationStatsIsMutable();
2605 iterationStats_.add(builderForValue.build());
2606 onChanged();
2607 } else {
2608 iterationStatsBuilder_.addMessage(builderForValue.build());
2609 }
2610 return this;
2611 }
2627 int index, com.google.ortools.pdlp.IterationStats.Builder builderForValue) {
2628 if (iterationStatsBuilder_ == null) {
2629 ensureIterationStatsIsMutable();
2630 iterationStats_.add(index, builderForValue.build());
2631 onChanged();
2632 } else {
2633 iterationStatsBuilder_.addMessage(index, builderForValue.build());
2634 }
2635 return this;
2636 }
2652 java.lang.Iterable<? extends com.google.ortools.pdlp.IterationStats> values) {
2653 if (iterationStatsBuilder_ == null) {
2654 ensureIterationStatsIsMutable();
2655 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2656 values, iterationStats_);
2657 onChanged();
2658 } else {
2659 iterationStatsBuilder_.addAllMessages(values);
2660 }
2661 return this;
2662 }
2678 if (iterationStatsBuilder_ == null) {
2679 iterationStats_ = java.util.Collections.emptyList();
2680 bitField0_ = (bitField0_ & ~0x00000200);
2681 onChanged();
2682 } else {
2683 iterationStatsBuilder_.clear();
2684 }
2685 return this;
2686 }
2701 public Builder removeIterationStats(int index) {
2702 if (iterationStatsBuilder_ == null) {
2703 ensureIterationStatsIsMutable();
2704 iterationStats_.remove(index);
2705 onChanged();
2706 } else {
2707 iterationStatsBuilder_.remove(index);
2708 }
2709 return this;
2710 }
2726 int index) {
2727 return getIterationStatsFieldBuilder().getBuilder(index);
2728 }
2744 int index) {
2745 if (iterationStatsBuilder_ == null) {
2746 return iterationStats_.get(index); } else {
2747 return iterationStatsBuilder_.getMessageOrBuilder(index);
2748 }
2749 }
2764 public java.util.List<? extends com.google.ortools.pdlp.IterationStatsOrBuilder>
2766 if (iterationStatsBuilder_ != null) {
2767 return iterationStatsBuilder_.getMessageOrBuilderList();
2768 } else {
2769 return java.util.Collections.unmodifiableList(iterationStats_);
2770 }
2771 }
2787 return getIterationStatsFieldBuilder().addBuilder(
2788 com.google.ortools.pdlp.IterationStats.getDefaultInstance());
2789 }
2805 int index) {
2806 return getIterationStatsFieldBuilder().addBuilder(
2807 index, com.google.ortools.pdlp.IterationStats.getDefaultInstance());
2808 }
2823 public java.util.List<com.google.ortools.pdlp.IterationStats.Builder>
2825 return getIterationStatsFieldBuilder().getBuilderList();
2826 }
2827 private com.google.protobuf.RepeatedFieldBuilder<
2828 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder>
2829 getIterationStatsFieldBuilder() {
2830 if (iterationStatsBuilder_ == null) {
2831 iterationStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2832 com.google.ortools.pdlp.IterationStats, com.google.ortools.pdlp.IterationStats.Builder, com.google.ortools.pdlp.IterationStatsOrBuilder>(
2833 iterationStats_,
2834 ((bitField0_ & 0x00000200) != 0),
2835 getParentForChildren(),
2836 isClean());
2837 iterationStats_ = null;
2838 }
2839 return iterationStatsBuilder_;
2840 }
2841
2842 private com.google.ortools.pdlp.QuadraticProgramStats originalProblemStats_;
2843 private com.google.protobuf.SingleFieldBuilder<
2844 com.google.ortools.pdlp.QuadraticProgramStats, com.google.ortools.pdlp.QuadraticProgramStats.Builder, com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder> originalProblemStatsBuilder_;
2853 public boolean hasOriginalProblemStats() {
2854 return ((bitField0_ & 0x00000400) != 0);
2855 }
2865 if (originalProblemStatsBuilder_ == null) {
2866 return originalProblemStats_ == null ? com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance() : originalProblemStats_;
2867 } else {
2868 return originalProblemStatsBuilder_.getMessage();
2869 }
2870 }
2878 public Builder setOriginalProblemStats(com.google.ortools.pdlp.QuadraticProgramStats value) {
2879 if (originalProblemStatsBuilder_ == null) {
2880 if (value == null) {
2881 throw new NullPointerException();
2882 }
2883 originalProblemStats_ = value;
2884 } else {
2885 originalProblemStatsBuilder_.setMessage(value);
2886 }
2887 bitField0_ |= 0x00000400;
2888 onChanged();
2889 return this;
2890 }
2899 com.google.ortools.pdlp.QuadraticProgramStats.Builder builderForValue) {
2900 if (originalProblemStatsBuilder_ == null) {
2901 originalProblemStats_ = builderForValue.build();
2902 } else {
2903 originalProblemStatsBuilder_.setMessage(builderForValue.build());
2904 }
2905 bitField0_ |= 0x00000400;
2906 onChanged();
2907 return this;
2908 }
2916 public Builder mergeOriginalProblemStats(com.google.ortools.pdlp.QuadraticProgramStats value) {
2917 if (originalProblemStatsBuilder_ == null) {
2918 if (((bitField0_ & 0x00000400) != 0) &&
2919 originalProblemStats_ != null &&
2920 originalProblemStats_ != com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance()) {
2921 getOriginalProblemStatsBuilder().mergeFrom(value);
2922 } else {
2923 originalProblemStats_ = value;
2924 }
2925 } else {
2926 originalProblemStatsBuilder_.mergeFrom(value);
2927 }
2928 if (originalProblemStats_ != null) {
2929 bitField0_ |= 0x00000400;
2930 onChanged();
2931 }
2932 return this;
2933 }
2942 bitField0_ = (bitField0_ & ~0x00000400);
2943 originalProblemStats_ = null;
2944 if (originalProblemStatsBuilder_ != null) {
2945 originalProblemStatsBuilder_.dispose();
2946 originalProblemStatsBuilder_ = null;
2947 }
2948 onChanged();
2949 return this;
2950 }
2959 bitField0_ |= 0x00000400;
2960 onChanged();
2961 return getOriginalProblemStatsFieldBuilder().getBuilder();
2962 }
2971 if (originalProblemStatsBuilder_ != null) {
2972 return originalProblemStatsBuilder_.getMessageOrBuilder();
2973 } else {
2974 return originalProblemStats_ == null ?
2975 com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance() : originalProblemStats_;
2976 }
2977 }
2985 private com.google.protobuf.SingleFieldBuilder<
2986 com.google.ortools.pdlp.QuadraticProgramStats, com.google.ortools.pdlp.QuadraticProgramStats.Builder, com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder>
2987 getOriginalProblemStatsFieldBuilder() {
2988 if (originalProblemStatsBuilder_ == null) {
2989 originalProblemStatsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2990 com.google.ortools.pdlp.QuadraticProgramStats, com.google.ortools.pdlp.QuadraticProgramStats.Builder, com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder>(
2992 getParentForChildren(),
2993 isClean());
2994 originalProblemStats_ = null;
2995 }
2996 return originalProblemStatsBuilder_;
2997 }
2998
2999 private com.google.ortools.pdlp.QuadraticProgramStats preprocessedProblemStats_;
3000 private com.google.protobuf.SingleFieldBuilder<
3001 com.google.ortools.pdlp.QuadraticProgramStats, com.google.ortools.pdlp.QuadraticProgramStats.Builder, com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder> preprocessedProblemStatsBuilder_;
3011 return ((bitField0_ & 0x00000800) != 0);
3012 }
3022 if (preprocessedProblemStatsBuilder_ == null) {
3023 return preprocessedProblemStats_ == null ? com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance() : preprocessedProblemStats_;
3024 } else {
3025 return preprocessedProblemStatsBuilder_.getMessage();
3026 }
3027 }
3035 public Builder setPreprocessedProblemStats(com.google.ortools.pdlp.QuadraticProgramStats value) {
3036 if (preprocessedProblemStatsBuilder_ == null) {
3037 if (value == null) {
3038 throw new NullPointerException();
3039 }
3040 preprocessedProblemStats_ = value;
3041 } else {
3042 preprocessedProblemStatsBuilder_.setMessage(value);
3043 }
3044 bitField0_ |= 0x00000800;
3045 onChanged();
3046 return this;
3047 }
3056 com.google.ortools.pdlp.QuadraticProgramStats.Builder builderForValue) {
3057 if (preprocessedProblemStatsBuilder_ == null) {
3058 preprocessedProblemStats_ = builderForValue.build();
3059 } else {
3060 preprocessedProblemStatsBuilder_.setMessage(builderForValue.build());
3061 }
3062 bitField0_ |= 0x00000800;
3063 onChanged();
3064 return this;
3065 }
3073 public Builder mergePreprocessedProblemStats(com.google.ortools.pdlp.QuadraticProgramStats value) {
3074 if (preprocessedProblemStatsBuilder_ == null) {
3075 if (((bitField0_ & 0x00000800) != 0) &&
3076 preprocessedProblemStats_ != null &&
3077 preprocessedProblemStats_ != com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance()) {
3078 getPreprocessedProblemStatsBuilder().mergeFrom(value);
3079 } else {
3080 preprocessedProblemStats_ = value;
3081 }
3082 } else {
3083 preprocessedProblemStatsBuilder_.mergeFrom(value);
3084 }
3085 if (preprocessedProblemStats_ != null) {
3086 bitField0_ |= 0x00000800;
3087 onChanged();
3088 }
3089 return this;
3090 }
3099 bitField0_ = (bitField0_ & ~0x00000800);
3100 preprocessedProblemStats_ = null;
3101 if (preprocessedProblemStatsBuilder_ != null) {
3102 preprocessedProblemStatsBuilder_.dispose();
3103 preprocessedProblemStatsBuilder_ = null;
3104 }
3105 onChanged();
3106 return this;
3107 }
3116 bitField0_ |= 0x00000800;
3117 onChanged();
3118 return getPreprocessedProblemStatsFieldBuilder().getBuilder();
3119 }
3128 if (preprocessedProblemStatsBuilder_ != null) {
3129 return preprocessedProblemStatsBuilder_.getMessageOrBuilder();
3130 } else {
3131 return preprocessedProblemStats_ == null ?
3132 com.google.ortools.pdlp.QuadraticProgramStats.getDefaultInstance() : preprocessedProblemStats_;
3133 }
3134 }
3142 private com.google.protobuf.SingleFieldBuilder<
3143 com.google.ortools.pdlp.QuadraticProgramStats, com.google.ortools.pdlp.QuadraticProgramStats.Builder, com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder>
3144 getPreprocessedProblemStatsFieldBuilder() {
3145 if (preprocessedProblemStatsBuilder_ == null) {
3146 preprocessedProblemStatsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3147 com.google.ortools.pdlp.QuadraticProgramStats, com.google.ortools.pdlp.QuadraticProgramStats.Builder, com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder>(
3149 getParentForChildren(),
3150 isClean());
3151 preprocessedProblemStats_ = null;
3152 }
3153 return preprocessedProblemStatsBuilder_;
3154 }
3155
3156 private java.util.List<com.google.ortools.pdlp.FeasibilityPolishingDetails> feasibilityPolishingDetails_ =
3157 java.util.Collections.emptyList();
3158 private void ensureFeasibilityPolishingDetailsIsMutable() {
3159 if (!((bitField0_ & 0x00001000) != 0)) {
3160 feasibilityPolishingDetails_ = new java.util.ArrayList<com.google.ortools.pdlp.FeasibilityPolishingDetails>(feasibilityPolishingDetails_);
3161 bitField0_ |= 0x00001000;
3162 }
3163 }
3164
3165 private com.google.protobuf.RepeatedFieldBuilder<
3166 com.google.ortools.pdlp.FeasibilityPolishingDetails, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder, com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder> feasibilityPolishingDetailsBuilder_;
3167
3176 public java.util.List<com.google.ortools.pdlp.FeasibilityPolishingDetails> getFeasibilityPolishingDetailsList() {
3177 if (feasibilityPolishingDetailsBuilder_ == null) {
3178 return java.util.Collections.unmodifiableList(feasibilityPolishingDetails_);
3179 } else {
3180 return feasibilityPolishingDetailsBuilder_.getMessageList();
3181 }
3182 }
3192 if (feasibilityPolishingDetailsBuilder_ == null) {
3193 return feasibilityPolishingDetails_.size();
3194 } else {
3195 return feasibilityPolishingDetailsBuilder_.getCount();
3196 }
3197 }
3207 if (feasibilityPolishingDetailsBuilder_ == null) {
3208 return feasibilityPolishingDetails_.get(index);
3209 } else {
3210 return feasibilityPolishingDetailsBuilder_.getMessage(index);
3211 }
3212 }
3222 int index, com.google.ortools.pdlp.FeasibilityPolishingDetails value) {
3223 if (feasibilityPolishingDetailsBuilder_ == null) {
3224 if (value == null) {
3225 throw new NullPointerException();
3226 }
3227 ensureFeasibilityPolishingDetailsIsMutable();
3228 feasibilityPolishingDetails_.set(index, value);
3229 onChanged();
3230 } else {
3231 feasibilityPolishingDetailsBuilder_.setMessage(index, value);
3232 }
3233 return this;
3234 }
3244 int index, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder builderForValue) {
3245 if (feasibilityPolishingDetailsBuilder_ == null) {
3246 ensureFeasibilityPolishingDetailsIsMutable();
3247 feasibilityPolishingDetails_.set(index, builderForValue.build());
3248 onChanged();
3249 } else {
3250 feasibilityPolishingDetailsBuilder_.setMessage(index, builderForValue.build());
3251 }
3252 return this;
3253 }
3262 public Builder addFeasibilityPolishingDetails(com.google.ortools.pdlp.FeasibilityPolishingDetails value) {
3263 if (feasibilityPolishingDetailsBuilder_ == null) {
3264 if (value == null) {
3265 throw new NullPointerException();
3266 }
3267 ensureFeasibilityPolishingDetailsIsMutable();
3268 feasibilityPolishingDetails_.add(value);
3269 onChanged();
3270 } else {
3271 feasibilityPolishingDetailsBuilder_.addMessage(value);
3272 }
3273 return this;
3274 }
3284 int index, com.google.ortools.pdlp.FeasibilityPolishingDetails value) {
3285 if (feasibilityPolishingDetailsBuilder_ == null) {
3286 if (value == null) {
3287 throw new NullPointerException();
3288 }
3289 ensureFeasibilityPolishingDetailsIsMutable();
3290 feasibilityPolishingDetails_.add(index, value);
3291 onChanged();
3292 } else {
3293 feasibilityPolishingDetailsBuilder_.addMessage(index, value);
3294 }
3295 return this;
3296 }
3306 com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder builderForValue) {
3307 if (feasibilityPolishingDetailsBuilder_ == null) {
3308 ensureFeasibilityPolishingDetailsIsMutable();
3309 feasibilityPolishingDetails_.add(builderForValue.build());
3310 onChanged();
3311 } else {
3312 feasibilityPolishingDetailsBuilder_.addMessage(builderForValue.build());
3313 }
3314 return this;
3315 }
3325 int index, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder builderForValue) {
3326 if (feasibilityPolishingDetailsBuilder_ == null) {
3327 ensureFeasibilityPolishingDetailsIsMutable();
3328 feasibilityPolishingDetails_.add(index, builderForValue.build());
3329 onChanged();
3330 } else {
3331 feasibilityPolishingDetailsBuilder_.addMessage(index, builderForValue.build());
3332 }
3333 return this;
3334 }
3344 java.lang.Iterable<? extends com.google.ortools.pdlp.FeasibilityPolishingDetails> values) {
3345 if (feasibilityPolishingDetailsBuilder_ == null) {
3346 ensureFeasibilityPolishingDetailsIsMutable();
3347 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3348 values, feasibilityPolishingDetails_);
3349 onChanged();
3350 } else {
3351 feasibilityPolishingDetailsBuilder_.addAllMessages(values);
3352 }
3353 return this;
3354 }
3364 if (feasibilityPolishingDetailsBuilder_ == null) {
3365 feasibilityPolishingDetails_ = java.util.Collections.emptyList();
3366 bitField0_ = (bitField0_ & ~0x00001000);
3367 onChanged();
3368 } else {
3369 feasibilityPolishingDetailsBuilder_.clear();
3370 }
3371 return this;
3372 }
3382 if (feasibilityPolishingDetailsBuilder_ == null) {
3383 ensureFeasibilityPolishingDetailsIsMutable();
3384 feasibilityPolishingDetails_.remove(index);
3385 onChanged();
3386 } else {
3387 feasibilityPolishingDetailsBuilder_.remove(index);
3388 }
3389 return this;
3390 }
3400 int index) {
3401 return getFeasibilityPolishingDetailsFieldBuilder().getBuilder(index);
3402 }
3412 int index) {
3413 if (feasibilityPolishingDetailsBuilder_ == null) {
3414 return feasibilityPolishingDetails_.get(index); } else {
3415 return feasibilityPolishingDetailsBuilder_.getMessageOrBuilder(index);
3416 }
3417 }
3426 public java.util.List<? extends com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder>
3428 if (feasibilityPolishingDetailsBuilder_ != null) {
3429 return feasibilityPolishingDetailsBuilder_.getMessageOrBuilderList();
3430 } else {
3431 return java.util.Collections.unmodifiableList(feasibilityPolishingDetails_);
3432 }
3433 }
3443 return getFeasibilityPolishingDetailsFieldBuilder().addBuilder(
3444 com.google.ortools.pdlp.FeasibilityPolishingDetails.getDefaultInstance());
3445 }
3455 int index) {
3456 return getFeasibilityPolishingDetailsFieldBuilder().addBuilder(
3457 index, com.google.ortools.pdlp.FeasibilityPolishingDetails.getDefaultInstance());
3458 }
3467 public java.util.List<com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder>
3469 return getFeasibilityPolishingDetailsFieldBuilder().getBuilderList();
3470 }
3471 private com.google.protobuf.RepeatedFieldBuilder<
3472 com.google.ortools.pdlp.FeasibilityPolishingDetails, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder, com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder>
3473 getFeasibilityPolishingDetailsFieldBuilder() {
3474 if (feasibilityPolishingDetailsBuilder_ == null) {
3475 feasibilityPolishingDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
3476 com.google.ortools.pdlp.FeasibilityPolishingDetails, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder, com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder>(
3477 feasibilityPolishingDetails_,
3478 ((bitField0_ & 0x00001000) != 0),
3479 getParentForChildren(),
3480 isClean());
3481 feasibilityPolishingDetails_ = null;
3482 }
3483 return feasibilityPolishingDetailsBuilder_;
3484 }
3485
3486 // @@protoc_insertion_point(builder_scope:operations_research.pdlp.SolveLog)
3487 }
3488
3489 // @@protoc_insertion_point(class_scope:operations_research.pdlp.SolveLog)
3490 private static final com.google.ortools.pdlp.SolveLog DEFAULT_INSTANCE;
3491 static {
3492 DEFAULT_INSTANCE = new com.google.ortools.pdlp.SolveLog();
3493 }
3494
3496 return DEFAULT_INSTANCE;
3497 }
3498
3499 private static final com.google.protobuf.Parser<SolveLog>
3500 PARSER = new com.google.protobuf.AbstractParser<SolveLog>() {
3501 @java.lang.Override
3502 public SolveLog parsePartialFrom(
3503 com.google.protobuf.CodedInputStream input,
3504 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3505 throws com.google.protobuf.InvalidProtocolBufferException {
3506 Builder builder = newBuilder();
3507 try {
3508 builder.mergeFrom(input, extensionRegistry);
3509 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3510 throw e.setUnfinishedMessage(builder.buildPartial());
3511 } catch (com.google.protobuf.UninitializedMessageException e) {
3512 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3513 } catch (java.io.IOException e) {
3514 throw new com.google.protobuf.InvalidProtocolBufferException(e)
3515 .setUnfinishedMessage(builder.buildPartial());
3516 }
3517 return builder.buildPartial();
3518 }
3519 };
3520
3521 public static com.google.protobuf.Parser<SolveLog> parser() {
3522 return PARSER;
3523 }
3524
3525 @java.lang.Override
3526 public com.google.protobuf.Parser<SolveLog> getParserForType() {
3527 return PARSER;
3528 }
3529
3530 @java.lang.Override
3532 return DEFAULT_INSTANCE;
3533 }
3534
3535}
3536
com.google.ortools.pdlp.IterationStats.Builder getSolutionStatsBuilder()
com.google.ortools.pdlp.QuadraticProgramStats.Builder getOriginalProblemStatsBuilder()
com.google.ortools.pdlp.IterationStats getSolutionStats()
Builder setSolutionType(com.google.ortools.pdlp.PointType value)
Builder mergeFrom(com.google.ortools.pdlp.SolveLog other)
Builder addIterationStats(com.google.ortools.pdlp.IterationStats.Builder builderForValue)
Builder setFeasibilityPolishingDetails(int index, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder builderForValue)
Builder addAllFeasibilityPolishingDetails(java.lang.Iterable<? extends com.google.ortools.pdlp.FeasibilityPolishingDetails > values)
Builder addIterationStats(int index, com.google.ortools.pdlp.IterationStats.Builder builderForValue)
com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder getFeasibilityPolishingDetailsBuilder(int index)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setOriginalProblemStats(com.google.ortools.pdlp.QuadraticProgramStats value)
java.util.List< com.google.ortools.pdlp.FeasibilityPolishingDetails > getFeasibilityPolishingDetailsList()
Builder addIterationStats(com.google.ortools.pdlp.IterationStats value)
com.google.ortools.pdlp.SolveLog buildPartial()
com.google.ortools.pdlp.IterationStats.Builder addIterationStatsBuilder()
Builder removeFeasibilityPolishingDetails(int index)
com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder getOriginalProblemStatsOrBuilder()
Builder addFeasibilityPolishingDetails(int index, com.google.ortools.pdlp.FeasibilityPolishingDetails value)
com.google.ortools.pdlp.QuadraticProgramStats.Builder getPreprocessedProblemStatsBuilder()
Builder setSolutionStats(com.google.ortools.pdlp.IterationStats value)
Builder addAllIterationStats(java.lang.Iterable<? extends com.google.ortools.pdlp.IterationStats > values)
com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder addFeasibilityPolishingDetailsBuilder()
com.google.ortools.pdlp.IterationStatsOrBuilder getIterationStatsOrBuilder(int index)
Builder setPreprocessedProblemStats(com.google.ortools.pdlp.QuadraticProgramStats.Builder builderForValue)
Builder setTerminationReason(com.google.ortools.pdlp.TerminationReason value)
com.google.ortools.pdlp.PointType getSolutionType()
com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder getParamsBuilder()
Builder mergePreprocessedProblemStats(com.google.ortools.pdlp.QuadraticProgramStats value)
Builder mergeParams(com.google.ortools.pdlp.PrimalDualHybridGradientParams value)
com.google.ortools.pdlp.QuadraticProgramStats getPreprocessedProblemStats()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.pdlp.IterationStats.Builder getIterationStatsBuilder(int index)
Builder addFeasibilityPolishingDetails(com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder builderForValue)
com.google.ortools.pdlp.IterationStats getIterationStats(int index)
Builder setIterationStats(int index, com.google.ortools.pdlp.IterationStats.Builder builderForValue)
Builder mergeFrom(com.google.protobuf.Message other)
Builder addFeasibilityPolishingDetails(com.google.ortools.pdlp.FeasibilityPolishingDetails value)
com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder getPreprocessedProblemStatsOrBuilder()
com.google.ortools.pdlp.IterationStats.Builder addIterationStatsBuilder(int index)
java.util.List<? extends com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder > getFeasibilityPolishingDetailsOrBuilderList()
com.google.ortools.pdlp.TerminationReason getTerminationReason()
com.google.ortools.pdlp.PrimalDualHybridGradientParams getParams()
com.google.ortools.pdlp.FeasibilityPolishingDetails getFeasibilityPolishingDetails(int index)
Builder addFeasibilityPolishingDetails(int index, com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder builderForValue)
Builder setIterationStats(int index, com.google.ortools.pdlp.IterationStats value)
Builder setPreprocessingTimeSec(double value)
java.util.List< com.google.ortools.pdlp.IterationStats.Builder > getIterationStatsBuilderList()
Builder setInstanceNameBytes(com.google.protobuf.ByteString value)
Builder mergeOriginalProblemStats(com.google.ortools.pdlp.QuadraticProgramStats value)
com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder getFeasibilityPolishingDetailsOrBuilder(int index)
Builder setParams(com.google.ortools.pdlp.PrimalDualHybridGradientParams.Builder builderForValue)
Builder addIterationStats(int index, com.google.ortools.pdlp.IterationStats value)
Builder setTerminationString(java.lang.String value)
Builder setPreprocessedProblemStats(com.google.ortools.pdlp.QuadraticProgramStats value)
Builder setSolutionStats(com.google.ortools.pdlp.IterationStats.Builder builderForValue)
Builder setOriginalProblemStats(com.google.ortools.pdlp.QuadraticProgramStats.Builder builderForValue)
com.google.protobuf.ByteString getTerminationStringBytes()
Builder setFeasibilityPolishingDetails(int index, com.google.ortools.pdlp.FeasibilityPolishingDetails value)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder mergeSolutionStats(com.google.ortools.pdlp.IterationStats value)
Builder setInstanceName(java.lang.String value)
com.google.ortools.pdlp.IterationStatsOrBuilder getSolutionStatsOrBuilder()
java.util.List< com.google.ortools.pdlp.IterationStats > getIterationStatsList()
com.google.ortools.pdlp.PrimalDualHybridGradientParamsOrBuilder getParamsOrBuilder()
com.google.ortools.pdlp.SolveLog build()
com.google.ortools.pdlp.QuadraticProgramStats getOriginalProblemStats()
com.google.ortools.pdlp.SolveLog getDefaultInstanceForType()
com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder addFeasibilityPolishingDetailsBuilder(int index)
Builder setParams(com.google.ortools.pdlp.PrimalDualHybridGradientParams value)
Builder setTerminationStringBytes(com.google.protobuf.ByteString value)
java.util.List<? extends com.google.ortools.pdlp.IterationStatsOrBuilder > getIterationStatsOrBuilderList()
java.util.List< com.google.ortools.pdlp.FeasibilityPolishingDetails.Builder > getFeasibilityPolishingDetailsBuilderList()
com.google.protobuf.ByteString getInstanceNameBytes()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static final int PREPROCESSED_PROBLEM_STATS_FIELD_NUMBER
java.util.List< com.google.ortools.pdlp.IterationStats > getIterationStatsList()
static com.google.ortools.pdlp.SolveLog parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.pdlp.SolveLog parseFrom(com.google.protobuf.ByteString data)
static final int SOLUTION_STATS_FIELD_NUMBER
static com.google.ortools.pdlp.SolveLog parseFrom(byte[] data)
com.google.ortools.pdlp.QuadraticProgramStats getPreprocessedProblemStats()
static final int SOLVE_TIME_SEC_FIELD_NUMBER
com.google.ortools.pdlp.QuadraticProgramStats getOriginalProblemStats()
com.google.protobuf.Parser< SolveLog > getParserForType()
com.google.ortools.pdlp.IterationStatsOrBuilder getSolutionStatsOrBuilder()
com.google.ortools.pdlp.PrimalDualHybridGradientParamsOrBuilder getParamsOrBuilder()
static com.google.ortools.pdlp.SolveLog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
java.util.List<? extends com.google.ortools.pdlp.IterationStatsOrBuilder > getIterationStatsOrBuilderList()
com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder getPreprocessedProblemStatsOrBuilder()
static final int ORIGINAL_PROBLEM_STATS_FIELD_NUMBER
static final int PARAMS_FIELD_NUMBER
static final int FEASIBILITY_POLISHING_DETAILS_FIELD_NUMBER
java.lang.String getTerminationString()
com.google.ortools.pdlp.IterationStats getIterationStats(int index)
com.google.ortools.pdlp.TerminationReason getTerminationReason()
static final int ITERATION_COUNT_FIELD_NUMBER
static final int TERMINATION_REASON_FIELD_NUMBER
static final int INSTANCE_NAME_FIELD_NUMBER
Definition SolveLog.java:51
static final int ITERATION_STATS_FIELD_NUMBER
static final int SOLUTION_TYPE_FIELD_NUMBER
static com.google.ortools.pdlp.SolveLog parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.pdlp.FeasibilityPolishingDetails getFeasibilityPolishingDetails(int index)
static final int PREPROCESSING_TIME_SEC_FIELD_NUMBER
com.google.ortools.pdlp.IterationStats getSolutionStats()
static com.google.protobuf.Parser< SolveLog > parser()
static final int TERMINATION_STRING_FIELD_NUMBER
static com.google.ortools.pdlp.SolveLog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Definition SolveLog.java:38
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.pdlp.SolveLog parseFrom(java.io.InputStream input)
static com.google.ortools.pdlp.SolveLog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.pdlp.IterationStatsOrBuilder getIterationStatsOrBuilder(int index)
java.util.List<? extends com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder > getFeasibilityPolishingDetailsOrBuilderList()
java.util.List< com.google.ortools.pdlp.FeasibilityPolishingDetails > getFeasibilityPolishingDetailsList()
static com.google.ortools.pdlp.SolveLog parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean equals(final java.lang.Object obj)
com.google.ortools.pdlp.QuadraticProgramStatsOrBuilder getOriginalProblemStatsOrBuilder()
static com.google.ortools.pdlp.SolveLog parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.pdlp.PointType getSolutionType()
com.google.ortools.pdlp.FeasibilityPolishingDetailsOrBuilder getFeasibilityPolishingDetailsOrBuilder(int index)
com.google.protobuf.ByteString getInstanceNameBytes()
Definition SolveLog.java:99
static Builder newBuilder(com.google.ortools.pdlp.SolveLog prototype)
static com.google.ortools.pdlp.SolveLog parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.pdlp.SolveLog parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
com.google.protobuf.ByteString getTerminationStringBytes()
com.google.ortools.pdlp.SolveLog getDefaultInstanceForType()
com.google.ortools.pdlp.PrimalDualHybridGradientParams getParams()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Definition SolveLog.java:44
static com.google.ortools.pdlp.SolveLog getDefaultInstance()
java.lang.String getInstanceName()
Definition SolveLog.java:75