5package com.google.ortools.linearsolver;
16 com.google.protobuf.GeneratedMessageV3 implements
19private static final long serialVersionUID = 0L;
21 private MPModelDeltaProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
25 baselineModelFilePath_ =
"";
29 @SuppressWarnings({
"unused"})
31 UnusedPrivateParameter unused) {
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_descriptor;
40 @SuppressWarnings({
"rawtypes"})
46 return internalGetVariableOverrides();
48 return internalGetConstraintOverrides();
50 throw new RuntimeException(
51 "Invalid map field number: " + number);
55 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
57 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_fieldAccessorTable
58 .ensureFieldAccessorsInitialized(
59 com.google.ortools.linearsolver.MPModelDeltaProto.class, com.google.ortools.linearsolver.MPModelDeltaProto.Builder.class);
62 private int bitField0_;
64 @SuppressWarnings(
"serial")
65 private volatile java.lang.Object baselineModelFilePath_ = "";
72 return ((bitField0_ & 0x00000001) != 0);
80 java.lang.Object ref = baselineModelFilePath_;
81 if (ref instanceof java.lang.String) {
82 return (java.lang.String) ref;
84 com.google.protobuf.ByteString bs =
85 (com.google.protobuf.ByteString) ref;
86 java.lang.String s = bs.toStringUtf8();
87 if (bs.isValidUtf8()) {
88 baselineModelFilePath_ = s;
98 public com.google.protobuf.ByteString
100 java.lang.Object ref = baselineModelFilePath_;
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 baselineModelFilePath_ = b;
108 return (com.google.protobuf.ByteString) ref;
113 private static final class VariableOverridesDefaultEntryHolder {
114 static final com.google.protobuf.MapEntry<
115 java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> defaultEntry =
116 com.google.protobuf.MapEntry
117 .<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>newDefaultInstance(
118 com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_VariableOverridesEntry_descriptor,
119 com.google.protobuf.WireFormat.FieldType.INT32,
121 com.google.protobuf.WireFormat.FieldType.MESSAGE,
122 com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance());
124 @SuppressWarnings(
"serial")
125 private com.google.protobuf.MapField<
126 java.lang.Integer, com.google.ortools.linearsolver.
MPVariableProto> variableOverrides_;
127 private com.google.protobuf.MapField<java.lang.Integer, com.google.ortools.linearsolver.
MPVariableProto>
128 internalGetVariableOverrides() {
129 if (variableOverrides_ ==
null) {
130 return com.google.protobuf.MapField.emptyMapField(
131 VariableOverridesDefaultEntryHolder.defaultEntry);
133 return variableOverrides_;
136 return internalGetVariableOverrides().getMap().size();
155 return internalGetVariableOverrides().getMap().containsKey(key);
161 @java.lang.Deprecated
162 public java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
getVariableOverrides() {
180 return internalGetVariableOverrides().getMap();
200com.google.ortools.linearsolver.MPVariableProto defaultValue) {
202 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> map =
203 internalGetVariableOverrides().getMap();
204 return map.containsKey(key) ? map.get(key) : defaultValue;
223 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> map =
224 internalGetVariableOverrides().getMap();
225 if (!map.containsKey(key)) {
226 throw new java.lang.IllegalArgumentException();
232 private static final class ConstraintOverridesDefaultEntryHolder {
233 static final com.google.protobuf.MapEntry<
234 java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> defaultEntry =
235 com.google.protobuf.MapEntry
236 .<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto>newDefaultInstance(
237 com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_ConstraintOverridesEntry_descriptor,
238 com.google.protobuf.WireFormat.FieldType.INT32,
240 com.google.protobuf.WireFormat.FieldType.MESSAGE,
241 com.google.ortools.linearsolver.MPConstraintProto.getDefaultInstance());
243 @SuppressWarnings(
"serial")
244 private com.google.protobuf.MapField<
245 java.lang.Integer, com.google.ortools.linearsolver.
MPConstraintProto> constraintOverrides_;
246 private com.google.protobuf.MapField<java.lang.Integer, com.google.ortools.linearsolver.
MPConstraintProto>
247 internalGetConstraintOverrides() {
248 if (constraintOverrides_ ==
null) {
249 return com.google.protobuf.MapField.emptyMapField(
250 ConstraintOverridesDefaultEntryHolder.defaultEntry);
252 return constraintOverrides_;
255 return internalGetConstraintOverrides().getMap().size();
274 return internalGetConstraintOverrides().getMap().containsKey(key);
280 @java.lang.Deprecated
299 return internalGetConstraintOverrides().getMap();
319com.google.ortools.linearsolver.MPConstraintProto defaultValue) {
321 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> map =
322 internalGetConstraintOverrides().getMap();
323 return map.containsKey(key) ? map.get(key) : defaultValue;
342 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> map =
343 internalGetConstraintOverrides().getMap();
344 if (!map.containsKey(key)) {
345 throw new java.lang.IllegalArgumentException();
350 private byte memoizedIsInitialized = -1;
357 memoizedIsInitialized = 1;
362 public void writeTo(com.google.protobuf.CodedOutputStream output)
363 throws java.io.IOException {
364 if (((bitField0_ & 0x00000001) != 0)) {
365 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baselineModelFilePath_);
367 com.google.protobuf.GeneratedMessageV3
368 .serializeIntegerMapTo(
370 internalGetVariableOverrides(),
371 VariableOverridesDefaultEntryHolder.defaultEntry,
373 com.google.protobuf.GeneratedMessageV3
374 .serializeIntegerMapTo(
376 internalGetConstraintOverrides(),
377 ConstraintOverridesDefaultEntryHolder.defaultEntry,
379 getUnknownFields().writeTo(output);
384 int size = memoizedSize;
385 if (size != -1)
return size;
388 if (((bitField0_ & 0x00000001) != 0)) {
389 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baselineModelFilePath_);
391 for (java.util.Map.Entry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> entry
392 : internalGetVariableOverrides().getMap().entrySet()) {
393 com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
394 variableOverrides__ = VariableOverridesDefaultEntryHolder.defaultEntry.newBuilderForType()
395 .setKey(entry.getKey())
396 .setValue(entry.getValue())
398 size += com.google.protobuf.CodedOutputStream
399 .computeMessageSize(2, variableOverrides__);
401 for (java.util.Map.Entry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> entry
402 : internalGetConstraintOverrides().getMap().entrySet()) {
403 com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto>
404 constraintOverrides__ = ConstraintOverridesDefaultEntryHolder.defaultEntry.newBuilderForType()
405 .setKey(entry.getKey())
406 .setValue(entry.getValue())
408 size += com.google.protobuf.CodedOutputStream
409 .computeMessageSize(3, constraintOverrides__);
411 size += getUnknownFields().getSerializedSize();
417 public boolean equals(
final java.lang.Object obj) {
421 if (!(obj instanceof com.google.ortools.linearsolver.MPModelDeltaProto)) {
422 return super.equals(obj);
431 if (!internalGetVariableOverrides().equals(
432 other.internalGetVariableOverrides()))
return false;
433 if (!internalGetConstraintOverrides().equals(
434 other.internalGetConstraintOverrides()))
return false;
435 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
441 if (memoizedHashCode != 0) {
442 return memoizedHashCode;
450 if (!internalGetVariableOverrides().getMap().isEmpty()) {
452 hash = (53 * hash) + internalGetVariableOverrides().hashCode();
454 if (!internalGetConstraintOverrides().getMap().isEmpty()) {
456 hash = (53 * hash) + internalGetConstraintOverrides().hashCode();
458 hash = (29 * hash) + getUnknownFields().hashCode();
459 memoizedHashCode = hash;
464 java.nio.ByteBuffer data)
465 throws com.google.protobuf.InvalidProtocolBufferException {
469 java.nio.ByteBuffer data,
470 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
471 throws com.google.protobuf.InvalidProtocolBufferException {
475 com.google.protobuf.ByteString data)
476 throws com.google.protobuf.InvalidProtocolBufferException {
480 com.google.protobuf.ByteString data,
481 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
482 throws com.google.protobuf.InvalidProtocolBufferException {
486 throws com.google.protobuf.InvalidProtocolBufferException {
491 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
492 throws com.google.protobuf.InvalidProtocolBufferException {
496 throws java.io.IOException {
497 return com.google.protobuf.GeneratedMessageV3
498 .parseWithIOException(
PARSER, input);
501 java.io.InputStream input,
502 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
503 throws java.io.IOException {
504 return com.google.protobuf.GeneratedMessageV3
505 .parseWithIOException(
PARSER, input, extensionRegistry);
509 throws java.io.IOException {
510 return com.google.protobuf.GeneratedMessageV3
511 .parseDelimitedWithIOException(
PARSER, input);
515 java.io.InputStream input,
516 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
517 throws java.io.IOException {
518 return com.google.protobuf.GeneratedMessageV3
519 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
522 com.google.protobuf.CodedInputStream input)
523 throws java.io.IOException {
524 return com.google.protobuf.GeneratedMessageV3
525 .parseWithIOException(
PARSER, input);
528 com.google.protobuf.CodedInputStream input,
529 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
530 throws java.io.IOException {
531 return com.google.protobuf.GeneratedMessageV3
532 .parseWithIOException(
PARSER, input, extensionRegistry);
545 return this == DEFAULT_INSTANCE
551 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
564 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
567 public static final com.google.protobuf.Descriptors.Descriptor
569 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_descriptor;
572 @SuppressWarnings({
"rawtypes"})
577 return internalGetVariableOverrides();
579 return internalGetConstraintOverrides();
581 throw new RuntimeException(
582 "Invalid map field number: " + number);
585 @SuppressWarnings({
"rawtypes"})
590 return internalGetMutableVariableOverrides();
592 return internalGetMutableConstraintOverrides();
594 throw new RuntimeException(
595 "Invalid map field number: " + number);
599 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
601 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_fieldAccessorTable
602 .ensureFieldAccessorsInitialized(
603 com.google.ortools.linearsolver.MPModelDeltaProto.class, com.google.ortools.linearsolver.MPModelDeltaProto.Builder.class);
612 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
620 baselineModelFilePath_ =
"";
621 internalGetMutableVariableOverrides().clear();
622 internalGetMutableConstraintOverrides().clear();
627 public com.google.protobuf.Descriptors.Descriptor
629 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_descriptor;
634 return com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance();
641 throw newUninitializedMessageException(result);
649 if (bitField0_ != 0) { buildPartial0(result); }
654 private void buildPartial0(com.google.ortools.linearsolver.MPModelDeltaProto result) {
655 int from_bitField0_ = bitField0_;
656 int to_bitField0_ = 0;
657 if (((from_bitField0_ & 0x00000001) != 0)) {
658 result.baselineModelFilePath_ = baselineModelFilePath_;
659 to_bitField0_ |= 0x00000001;
661 if (((from_bitField0_ & 0x00000002) != 0)) {
662 result.variableOverrides_ = internalGetVariableOverrides().build(VariableOverridesDefaultEntryHolder.defaultEntry);
664 if (((from_bitField0_ & 0x00000004) != 0)) {
665 result.constraintOverrides_ = internalGetConstraintOverrides().build(ConstraintOverridesDefaultEntryHolder.defaultEntry);
667 result.bitField0_ |= to_bitField0_;
672 return super.
clone();
676 com.google.protobuf.Descriptors.FieldDescriptor field,
677 java.lang.Object value) {
678 return super.
setField(field, value);
682 com.google.protobuf.Descriptors.FieldDescriptor field) {
687 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
692 com.google.protobuf.Descriptors.FieldDescriptor field,
693 int index, java.lang.Object value) {
698 com.google.protobuf.Descriptors.FieldDescriptor field,
699 java.lang.Object value) {
704 if (other instanceof com.google.ortools.linearsolver.MPModelDeltaProto) {
705 return mergeFrom((com.google.ortools.linearsolver.MPModelDeltaProto)other);
707 super.mergeFrom(other);
713 if (other == com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance())
return this;
714 if (other.hasBaselineModelFilePath()) {
715 baselineModelFilePath_ = other.baselineModelFilePath_;
716 bitField0_ |= 0x00000001;
719 internalGetMutableVariableOverrides().mergeFrom(
720 other.internalGetVariableOverrides());
721 bitField0_ |= 0x00000002;
722 internalGetMutableConstraintOverrides().mergeFrom(
723 other.internalGetConstraintOverrides());
724 bitField0_ |= 0x00000004;
737 com.google.protobuf.CodedInputStream input,
738 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
739 throws java.io.IOException {
740 if (extensionRegistry ==
null) {
741 throw new java.lang.NullPointerException();
744 boolean done =
false;
746 int tag = input.readTag();
752 baselineModelFilePath_ = input.readBytes();
753 bitField0_ |= 0x00000001;
757 com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
758 variableOverrides__ = input.readMessage(
759 VariableOverridesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
760 internalGetMutableVariableOverrides().ensureBuilderMap().put(
761 variableOverrides__.getKey(), variableOverrides__.getValue());
762 bitField0_ |= 0x00000002;
766 com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto>
767 constraintOverrides__ = input.readMessage(
768 ConstraintOverridesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
769 internalGetMutableConstraintOverrides().ensureBuilderMap().put(
770 constraintOverrides__.getKey(), constraintOverrides__.getValue());
771 bitField0_ |= 0x00000004;
775 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
782 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
783 throw e.unwrapIOException();
789 private int bitField0_;
791 private java.lang.Object baselineModelFilePath_ =
"";
797 return ((bitField0_ & 0x00000001) != 0);
804 java.lang.Object ref = baselineModelFilePath_;
805 if (!(ref instanceof java.lang.String)) {
806 com.google.protobuf.ByteString bs =
807 (com.google.protobuf.ByteString) ref;
808 java.lang.String s = bs.toStringUtf8();
809 if (bs.isValidUtf8()) {
810 baselineModelFilePath_ = s;
814 return (java.lang.String) ref;
821 public com.google.protobuf.ByteString
823 java.lang.Object ref = baselineModelFilePath_;
824 if (ref instanceof String) {
825 com.google.protobuf.ByteString b =
826 com.google.protobuf.ByteString.copyFromUtf8(
827 (java.lang.String) ref);
828 baselineModelFilePath_ = b;
831 return (com.google.protobuf.ByteString) ref;
840 java.lang.String value) {
841 if (value ==
null) {
throw new NullPointerException(); }
842 baselineModelFilePath_ = value;
843 bitField0_ |= 0x00000001;
853 bitField0_ = (bitField0_ & ~0x00000001);
863 com.google.protobuf.ByteString value) {
864 if (value ==
null) {
throw new NullPointerException(); }
865 baselineModelFilePath_ = value;
866 bitField0_ |= 0x00000001;
871 private static final class VariableOverridesConverter
implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder, com.google.ortools.linearsolver.MPVariableProto> {
874 if (val instanceof com.google.ortools.linearsolver.MPVariableProto) {
return (com.google.ortools.linearsolver.MPVariableProto) val; }
875 return ((com.google.ortools.linearsolver.MPVariableProto.Builder) val).build();
879 public com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> defaultEntry() {
880 return VariableOverridesDefaultEntryHolder.defaultEntry;
883 private static final VariableOverridesConverter variableOverridesConverter =
new VariableOverridesConverter();
885 private com.google.protobuf.MapFieldBuilder<
886 java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder, com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder> variableOverrides_;
887 private com.google.protobuf.MapFieldBuilder<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder, com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder>
888 internalGetVariableOverrides() {
889 if (variableOverrides_ ==
null) {
890 return new com.google.protobuf.MapFieldBuilder<>(variableOverridesConverter);
892 return variableOverrides_;
894 private com.google.protobuf.MapFieldBuilder<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder, com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder>
895 internalGetMutableVariableOverrides() {
896 if (variableOverrides_ ==
null) {
897 variableOverrides_ =
new com.google.protobuf.MapFieldBuilder<>(variableOverridesConverter);
899 bitField0_ |= 0x00000002;
901 return variableOverrides_;
904 return internalGetVariableOverrides().ensureBuilderMap().size();
923 return internalGetVariableOverrides().ensureBuilderMap().containsKey(key);
929 @java.lang.Deprecated
930 public java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
getVariableOverrides() {
948 return internalGetVariableOverrides().getImmutableMap();
968com.google.ortools.linearsolver.MPVariableProto defaultValue) {
970 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> map = internalGetMutableVariableOverrides().ensureBuilderMap();
971 return map.containsKey(key) ? variableOverridesConverter.build(map.get(key)) : defaultValue;
990 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> map = internalGetMutableVariableOverrides().ensureBuilderMap();
991 if (!map.containsKey(key)) {
992 throw new java.lang.IllegalArgumentException();
994 return variableOverridesConverter.build(map.get(key));
997 bitField0_ = (bitField0_ & ~0x00000002);
998 internalGetMutableVariableOverrides().clear();
1017 internalGetMutableVariableOverrides().ensureBuilderMap()
1024 @java.lang.Deprecated
1025 public java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
1027 bitField0_ |= 0x00000002;
1028 return internalGetMutableVariableOverrides().ensureMessageMap();
1045 com.google.ortools.linearsolver.MPVariableProto value) {
1047 if (value ==
null) {
throw new NullPointerException(
"map value"); }
1048 internalGetMutableVariableOverrides().ensureBuilderMap()
1050 bitField0_ |= 0x00000002;
1067 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> values) {
1068 for (java.util.Map.Entry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> e : values.entrySet()) {
1069 if (e.getKey() ==
null || e.getValue() ==
null) {
1070 throw new NullPointerException();
1073 internalGetMutableVariableOverrides().ensureBuilderMap()
1075 bitField0_ |= 0x00000002;
1093 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> builderMap = internalGetMutableVariableOverrides().ensureBuilderMap();
1095 if (entry ==
null) {
1096 entry = com.google.ortools.linearsolver.MPVariableProto.newBuilder();
1097 builderMap.put(key, entry);
1099 if (entry instanceof com.google.ortools.linearsolver.MPVariableProto) {
1100 entry = ((com.google.ortools.linearsolver.MPVariableProto) entry).toBuilder();
1101 builderMap.put(key, entry);
1103 return (com.google.ortools.linearsolver.MPVariableProto.Builder) entry;
1106 private static final class ConstraintOverridesConverter
implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder, com.google.ortools.linearsolver.MPConstraintProto> {
1109 if (val instanceof com.google.ortools.linearsolver.MPConstraintProto) {
return (com.google.ortools.linearsolver.MPConstraintProto) val; }
1110 return ((com.google.ortools.linearsolver.MPConstraintProto.Builder) val).build();
1114 public com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> defaultEntry() {
1115 return ConstraintOverridesDefaultEntryHolder.defaultEntry;
1118 private static final ConstraintOverridesConverter constraintOverridesConverter =
new ConstraintOverridesConverter();
1120 private com.google.protobuf.MapFieldBuilder<
1121 java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder, com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder> constraintOverrides_;
1122 private com.google.protobuf.MapFieldBuilder<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder, com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder>
1123 internalGetConstraintOverrides() {
1124 if (constraintOverrides_ ==
null) {
1125 return new com.google.protobuf.MapFieldBuilder<>(constraintOverridesConverter);
1127 return constraintOverrides_;
1129 private com.google.protobuf.MapFieldBuilder<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder, com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder>
1130 internalGetMutableConstraintOverrides() {
1131 if (constraintOverrides_ ==
null) {
1132 constraintOverrides_ =
new com.google.protobuf.MapFieldBuilder<>(constraintOverridesConverter);
1134 bitField0_ |= 0x00000004;
1136 return constraintOverrides_;
1139 return internalGetConstraintOverrides().ensureBuilderMap().size();
1158 return internalGetConstraintOverrides().ensureBuilderMap().containsKey(key);
1164 @java.lang.Deprecated
1183 return internalGetConstraintOverrides().getImmutableMap();
1203com.google.ortools.linearsolver.MPConstraintProto defaultValue) {
1205 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> map = internalGetMutableConstraintOverrides().ensureBuilderMap();
1206 return map.containsKey(key) ? constraintOverridesConverter.build(map.get(key)) : defaultValue;
1225 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> map = internalGetMutableConstraintOverrides().ensureBuilderMap();
1226 if (!map.containsKey(key)) {
1227 throw new java.lang.IllegalArgumentException();
1229 return constraintOverridesConverter.build(map.get(key));
1232 bitField0_ = (bitField0_ & ~0x00000004);
1233 internalGetMutableConstraintOverrides().clear();
1252 internalGetMutableConstraintOverrides().ensureBuilderMap()
1259 @java.lang.Deprecated
1260 public java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto>
1262 bitField0_ |= 0x00000004;
1263 return internalGetMutableConstraintOverrides().ensureMessageMap();
1280 com.google.ortools.linearsolver.MPConstraintProto value) {
1282 if (value ==
null) {
throw new NullPointerException(
"map value"); }
1283 internalGetMutableConstraintOverrides().ensureBuilderMap()
1285 bitField0_ |= 0x00000004;
1302 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> values) {
1303 for (java.util.Map.Entry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> e : values.entrySet()) {
1304 if (e.getKey() ==
null || e.getValue() ==
null) {
1305 throw new NullPointerException();
1308 internalGetMutableConstraintOverrides().ensureBuilderMap()
1310 bitField0_ |= 0x00000004;
1328 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> builderMap = internalGetMutableConstraintOverrides().ensureBuilderMap();
1330 if (entry ==
null) {
1331 entry = com.google.ortools.linearsolver.MPConstraintProto.newBuilder();
1332 builderMap.put(key, entry);
1334 if (entry instanceof com.google.ortools.linearsolver.MPConstraintProto) {
1335 entry = ((com.google.ortools.linearsolver.MPConstraintProto) entry).toBuilder();
1336 builderMap.put(key, entry);
1338 return (com.google.ortools.linearsolver.MPConstraintProto.Builder) entry;
1342 final com.google.protobuf.UnknownFieldSet unknownFields) {
1348 final com.google.protobuf.UnknownFieldSet unknownFields) {
1359 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelDeltaProto();
1363 return DEFAULT_INSTANCE;
1366 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
MPModelDeltaProto>
1370 com.google.protobuf.CodedInputStream input,
1371 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1372 throws com.google.protobuf.InvalidProtocolBufferException {
1375 builder.
mergeFrom(input, extensionRegistry);
1376 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1378 }
catch (com.google.protobuf.UninitializedMessageException e) {
1379 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
1380 }
catch (java.io.IOException e) {
1381 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1399 return DEFAULT_INSTANCE;