5package com.google.ortools.linearsolver;
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
30 private MPModelDeltaProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 baselineModelFilePath_ =
"";
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_descriptor;
42 @SuppressWarnings({
"rawtypes"})
48 return internalGetVariableOverrides();
50 return internalGetConstraintOverrides();
52 throw new RuntimeException(
53 "Invalid map field number: " + number);
57 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
59 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_fieldAccessorTable
60 .ensureFieldAccessorsInitialized(
61 com.google.ortools.linearsolver.MPModelDeltaProto.class, com.google.ortools.linearsolver.MPModelDeltaProto.Builder.class);
64 private int bitField0_;
66 @SuppressWarnings(
"serial")
67 private volatile java.lang.Object baselineModelFilePath_ = "";
74 return ((bitField0_ & 0x00000001) != 0);
82 java.lang.Object ref = baselineModelFilePath_;
83 if (ref instanceof java.lang.String) {
84 return (java.lang.String) ref;
86 com.google.protobuf.ByteString bs =
87 (com.google.protobuf.ByteString) ref;
88 java.lang.String s = bs.toStringUtf8();
89 if (bs.isValidUtf8()) {
90 baselineModelFilePath_ = s;
100 public com.google.protobuf.ByteString
102 java.lang.Object ref = baselineModelFilePath_;
103 if (ref instanceof java.lang.String) {
104 com.google.protobuf.ByteString b =
105 com.google.protobuf.ByteString.copyFromUtf8(
106 (java.lang.String) ref);
107 baselineModelFilePath_ = b;
110 return (com.google.protobuf.ByteString) ref;
115 private static final class VariableOverridesDefaultEntryHolder {
116 static final com.google.protobuf.MapEntry<
117 java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> defaultEntry =
118 com.google.protobuf.MapEntry
119 .<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>newDefaultInstance(
120 com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_VariableOverridesEntry_descriptor,
121 com.google.protobuf.WireFormat.FieldType.INT32,
123 com.google.protobuf.WireFormat.FieldType.MESSAGE,
124 com.google.ortools.linearsolver.MPVariableProto.getDefaultInstance());
126 @SuppressWarnings(
"serial")
127 private com.google.protobuf.MapField<
128 java.lang.Integer, com.google.ortools.linearsolver.
MPVariableProto> variableOverrides_;
129 private com.google.protobuf.MapField<java.lang.Integer, com.google.ortools.linearsolver.
MPVariableProto>
130 internalGetVariableOverrides() {
131 if (variableOverrides_ ==
null) {
132 return com.google.protobuf.MapField.emptyMapField(
133 VariableOverridesDefaultEntryHolder.defaultEntry);
135 return variableOverrides_;
138 return internalGetVariableOverrides().getMap().size();
157 return internalGetVariableOverrides().getMap().containsKey(key);
163 @java.lang.Deprecated
164 public java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
getVariableOverrides() {
182 return internalGetVariableOverrides().getMap();
202com.google.ortools.linearsolver.MPVariableProto defaultValue) {
204 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> map =
205 internalGetVariableOverrides().getMap();
206 return map.containsKey(key) ? map.get(key) : defaultValue;
225 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> map =
226 internalGetVariableOverrides().getMap();
227 if (!map.containsKey(key)) {
228 throw new java.lang.IllegalArgumentException();
234 private static final class ConstraintOverridesDefaultEntryHolder {
235 static final com.google.protobuf.MapEntry<
236 java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> defaultEntry =
237 com.google.protobuf.MapEntry
238 .<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto>newDefaultInstance(
239 com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_ConstraintOverridesEntry_descriptor,
240 com.google.protobuf.WireFormat.FieldType.INT32,
242 com.google.protobuf.WireFormat.FieldType.MESSAGE,
243 com.google.ortools.linearsolver.MPConstraintProto.getDefaultInstance());
245 @SuppressWarnings(
"serial")
246 private com.google.protobuf.MapField<
247 java.lang.Integer, com.google.ortools.linearsolver.
MPConstraintProto> constraintOverrides_;
248 private com.google.protobuf.MapField<java.lang.Integer, com.google.ortools.linearsolver.
MPConstraintProto>
249 internalGetConstraintOverrides() {
250 if (constraintOverrides_ ==
null) {
251 return com.google.protobuf.MapField.emptyMapField(
252 ConstraintOverridesDefaultEntryHolder.defaultEntry);
254 return constraintOverrides_;
257 return internalGetConstraintOverrides().getMap().size();
276 return internalGetConstraintOverrides().getMap().containsKey(key);
282 @java.lang.Deprecated
301 return internalGetConstraintOverrides().getMap();
321com.google.ortools.linearsolver.MPConstraintProto defaultValue) {
323 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> map =
324 internalGetConstraintOverrides().getMap();
325 return map.containsKey(key) ? map.get(key) : defaultValue;
344 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> map =
345 internalGetConstraintOverrides().getMap();
346 if (!map.containsKey(key)) {
347 throw new java.lang.IllegalArgumentException();
352 private byte memoizedIsInitialized = -1;
359 memoizedIsInitialized = 1;
364 public void writeTo(com.google.protobuf.CodedOutputStream output)
365 throws java.io.IOException {
366 if (((bitField0_ & 0x00000001) != 0)) {
367 com.google.protobuf.GeneratedMessage.writeString(output, 1, baselineModelFilePath_);
369 com.google.protobuf.GeneratedMessage
370 .serializeIntegerMapTo(
372 internalGetVariableOverrides(),
373 VariableOverridesDefaultEntryHolder.defaultEntry,
375 com.google.protobuf.GeneratedMessage
376 .serializeIntegerMapTo(
378 internalGetConstraintOverrides(),
379 ConstraintOverridesDefaultEntryHolder.defaultEntry,
381 getUnknownFields().writeTo(output);
386 int size = memoizedSize;
387 if (size != -1)
return size;
390 if (((bitField0_ & 0x00000001) != 0)) {
391 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, baselineModelFilePath_);
393 for (java.util.Map.Entry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> entry
394 : internalGetVariableOverrides().getMap().entrySet()) {
395 com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
396 variableOverrides__ = VariableOverridesDefaultEntryHolder.defaultEntry.newBuilderForType()
397 .setKey(entry.getKey())
398 .setValue(entry.getValue())
400 size += com.google.protobuf.CodedOutputStream
401 .computeMessageSize(2, variableOverrides__);
403 for (java.util.Map.Entry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> entry
404 : internalGetConstraintOverrides().getMap().entrySet()) {
405 com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto>
406 constraintOverrides__ = ConstraintOverridesDefaultEntryHolder.defaultEntry.newBuilderForType()
407 .setKey(entry.getKey())
408 .setValue(entry.getValue())
410 size += com.google.protobuf.CodedOutputStream
411 .computeMessageSize(3, constraintOverrides__);
413 size += getUnknownFields().getSerializedSize();
419 public boolean equals(
final java.lang.Object obj) {
423 if (!(obj instanceof com.google.ortools.linearsolver.MPModelDeltaProto)) {
424 return super.equals(obj);
433 if (!internalGetVariableOverrides().
equals(
434 other.internalGetVariableOverrides()))
return false;
435 if (!internalGetConstraintOverrides().
equals(
436 other.internalGetConstraintOverrides()))
return false;
437 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
443 if (memoizedHashCode != 0) {
444 return memoizedHashCode;
452 if (!internalGetVariableOverrides().getMap().isEmpty()) {
454 hash = (53 * hash) + internalGetVariableOverrides().hashCode();
456 if (!internalGetConstraintOverrides().getMap().isEmpty()) {
458 hash = (53 * hash) + internalGetConstraintOverrides().hashCode();
460 hash = (29 * hash) + getUnknownFields().hashCode();
461 memoizedHashCode = hash;
466 java.nio.ByteBuffer data)
467 throws com.google.protobuf.InvalidProtocolBufferException {
468 return PARSER.parseFrom(data);
471 java.nio.ByteBuffer data,
472 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
473 throws com.google.protobuf.InvalidProtocolBufferException {
474 return PARSER.parseFrom(data, extensionRegistry);
477 com.google.protobuf.ByteString data)
478 throws com.google.protobuf.InvalidProtocolBufferException {
479 return PARSER.parseFrom(data);
482 com.google.protobuf.ByteString data,
483 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
484 throws com.google.protobuf.InvalidProtocolBufferException {
485 return PARSER.parseFrom(data, extensionRegistry);
488 throws com.google.protobuf.InvalidProtocolBufferException {
489 return PARSER.parseFrom(data);
493 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
494 throws com.google.protobuf.InvalidProtocolBufferException {
495 return PARSER.parseFrom(data, extensionRegistry);
498 throws java.io.IOException {
499 return com.google.protobuf.GeneratedMessage
500 .parseWithIOException(PARSER, input);
503 java.io.InputStream input,
504 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
505 throws java.io.IOException {
506 return com.google.protobuf.GeneratedMessage
507 .parseWithIOException(PARSER, input, extensionRegistry);
511 throws java.io.IOException {
512 return com.google.protobuf.GeneratedMessage
513 .parseDelimitedWithIOException(PARSER, input);
517 java.io.InputStream input,
518 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
519 throws java.io.IOException {
520 return com.google.protobuf.GeneratedMessage
521 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
524 com.google.protobuf.CodedInputStream input)
525 throws java.io.IOException {
526 return com.google.protobuf.GeneratedMessage
527 .parseWithIOException(PARSER, input);
530 com.google.protobuf.CodedInputStream input,
531 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
532 throws java.io.IOException {
533 return com.google.protobuf.GeneratedMessage
534 .parseWithIOException(PARSER, input, extensionRegistry);
547 return this == DEFAULT_INSTANCE
553 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
566 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
569 public static final com.google.protobuf.Descriptors.Descriptor
571 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_descriptor;
574 @SuppressWarnings({
"rawtypes"})
579 return internalGetVariableOverrides();
581 return internalGetConstraintOverrides();
583 throw new RuntimeException(
584 "Invalid map field number: " + number);
587 @SuppressWarnings({
"rawtypes"})
592 return internalGetMutableVariableOverrides();
594 return internalGetMutableConstraintOverrides();
596 throw new RuntimeException(
597 "Invalid map field number: " + number);
601 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
603 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_fieldAccessorTable
604 .ensureFieldAccessorsInitialized(
605 com.google.ortools.linearsolver.MPModelDeltaProto.class, com.google.ortools.linearsolver.MPModelDeltaProto.Builder.class);
614 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
622 baselineModelFilePath_ =
"";
623 internalGetMutableVariableOverrides().clear();
624 internalGetMutableConstraintOverrides().clear();
629 public com.google.protobuf.Descriptors.Descriptor
631 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelDeltaProto_descriptor;
636 return com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance();
643 throw newUninitializedMessageException(result);
651 if (bitField0_ != 0) { buildPartial0(result); }
656 private void buildPartial0(com.google.ortools.linearsolver.MPModelDeltaProto result) {
657 int from_bitField0_ = bitField0_;
658 int to_bitField0_ = 0;
659 if (((from_bitField0_ & 0x00000001) != 0)) {
660 result.baselineModelFilePath_ = baselineModelFilePath_;
661 to_bitField0_ |= 0x00000001;
663 if (((from_bitField0_ & 0x00000002) != 0)) {
664 result.variableOverrides_ = internalGetVariableOverrides().build(VariableOverridesDefaultEntryHolder.defaultEntry);
666 if (((from_bitField0_ & 0x00000004) != 0)) {
667 result.constraintOverrides_ = internalGetConstraintOverrides().build(ConstraintOverridesDefaultEntryHolder.defaultEntry);
669 result.bitField0_ |= to_bitField0_;
674 if (other instanceof com.google.ortools.linearsolver.MPModelDeltaProto) {
675 return mergeFrom((com.google.ortools.linearsolver.MPModelDeltaProto)other);
677 super.mergeFrom(other);
683 if (other == com.google.ortools.linearsolver.MPModelDeltaProto.getDefaultInstance())
return this;
684 if (other.hasBaselineModelFilePath()) {
685 baselineModelFilePath_ = other.baselineModelFilePath_;
686 bitField0_ |= 0x00000001;
689 internalGetMutableVariableOverrides().mergeFrom(
690 other.internalGetVariableOverrides());
691 bitField0_ |= 0x00000002;
692 internalGetMutableConstraintOverrides().mergeFrom(
693 other.internalGetConstraintOverrides());
694 bitField0_ |= 0x00000004;
695 this.mergeUnknownFields(other.getUnknownFields());
707 com.google.protobuf.CodedInputStream input,
708 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
709 throws java.io.IOException {
710 if (extensionRegistry ==
null) {
711 throw new java.lang.NullPointerException();
714 boolean done =
false;
716 int tag = input.readTag();
722 baselineModelFilePath_ = input.readBytes();
723 bitField0_ |= 0x00000001;
727 com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
728 variableOverrides__ = input.readMessage(
729 VariableOverridesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
730 internalGetMutableVariableOverrides().ensureBuilderMap().put(
731 variableOverrides__.getKey(), variableOverrides__.getValue());
732 bitField0_ |= 0x00000002;
736 com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto>
737 constraintOverrides__ = input.readMessage(
738 ConstraintOverridesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
739 internalGetMutableConstraintOverrides().ensureBuilderMap().put(
740 constraintOverrides__.getKey(), constraintOverrides__.getValue());
741 bitField0_ |= 0x00000004;
745 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
752 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
753 throw e.unwrapIOException();
759 private int bitField0_;
761 private java.lang.Object baselineModelFilePath_ =
"";
767 return ((bitField0_ & 0x00000001) != 0);
774 java.lang.Object ref = baselineModelFilePath_;
775 if (!(ref instanceof java.lang.String)) {
776 com.google.protobuf.ByteString bs =
777 (com.google.protobuf.ByteString) ref;
778 java.lang.String s = bs.toStringUtf8();
779 if (bs.isValidUtf8()) {
780 baselineModelFilePath_ = s;
784 return (java.lang.String) ref;
791 public com.google.protobuf.ByteString
793 java.lang.Object ref = baselineModelFilePath_;
794 if (ref instanceof String) {
795 com.google.protobuf.ByteString b =
796 com.google.protobuf.ByteString.copyFromUtf8(
797 (java.lang.String) ref);
798 baselineModelFilePath_ = b;
801 return (com.google.protobuf.ByteString) ref;
810 java.lang.String value) {
811 if (value ==
null) {
throw new NullPointerException(); }
812 baselineModelFilePath_ = value;
813 bitField0_ |= 0x00000001;
823 bitField0_ = (bitField0_ & ~0x00000001);
833 com.google.protobuf.ByteString value) {
834 if (value ==
null) {
throw new NullPointerException(); }
835 baselineModelFilePath_ = value;
836 bitField0_ |= 0x00000001;
841 private static final class VariableOverridesConverter
implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder, com.google.ortools.linearsolver.MPVariableProto> {
844 if (val instanceof com.google.ortools.linearsolver.MPVariableProto) {
return (com.google.ortools.linearsolver.MPVariableProto) val; }
845 return ((com.google.ortools.linearsolver.MPVariableProto.Builder) val).build();
849 public com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> defaultEntry() {
850 return VariableOverridesDefaultEntryHolder.defaultEntry;
853 private static final VariableOverridesConverter variableOverridesConverter =
new VariableOverridesConverter();
855 private com.google.protobuf.MapFieldBuilder<
856 java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder, com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder> variableOverrides_;
857 private com.google.protobuf.MapFieldBuilder<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder, com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder>
858 internalGetVariableOverrides() {
859 if (variableOverrides_ ==
null) {
860 return new com.google.protobuf.MapFieldBuilder<>(variableOverridesConverter);
862 return variableOverrides_;
864 private com.google.protobuf.MapFieldBuilder<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder, com.google.ortools.linearsolver.MPVariableProto, com.google.ortools.linearsolver.MPVariableProto.Builder>
865 internalGetMutableVariableOverrides() {
866 if (variableOverrides_ ==
null) {
867 variableOverrides_ =
new com.google.protobuf.MapFieldBuilder<>(variableOverridesConverter);
869 bitField0_ |= 0x00000002;
871 return variableOverrides_;
874 return internalGetVariableOverrides().ensureBuilderMap().size();
893 return internalGetVariableOverrides().ensureBuilderMap().containsKey(key);
899 @java.lang.Deprecated
900 public java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
getVariableOverrides() {
918 return internalGetVariableOverrides().getImmutableMap();
938com.google.ortools.linearsolver.MPVariableProto defaultValue) {
940 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> map = internalGetMutableVariableOverrides().ensureBuilderMap();
941 return map.containsKey(key) ? variableOverridesConverter.build(map.get(key)) : defaultValue;
960 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> map = internalGetMutableVariableOverrides().ensureBuilderMap();
961 if (!map.containsKey(key)) {
962 throw new java.lang.IllegalArgumentException();
964 return variableOverridesConverter.build(map.get(key));
967 bitField0_ = (bitField0_ & ~0x00000002);
968 internalGetMutableVariableOverrides().clear();
987 internalGetMutableVariableOverrides().ensureBuilderMap()
994 @java.lang.Deprecated
995 public java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto>
997 bitField0_ |= 0x00000002;
998 return internalGetMutableVariableOverrides().ensureMessageMap();
1015 com.google.ortools.linearsolver.MPVariableProto value) {
1017 if (value ==
null) {
throw new NullPointerException(
"map value"); }
1018 internalGetMutableVariableOverrides().ensureBuilderMap()
1020 bitField0_ |= 0x00000002;
1037 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> values) {
1038 for (java.util.Map.Entry<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProto> e : values.entrySet()) {
1039 if (e.getKey() ==
null || e.getValue() ==
null) {
1040 throw new NullPointerException();
1043 internalGetMutableVariableOverrides().ensureBuilderMap()
1045 bitField0_ |= 0x00000002;
1063 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPVariableProtoOrBuilder> builderMap = internalGetMutableVariableOverrides().ensureBuilderMap();
1065 if (entry ==
null) {
1066 entry = com.google.ortools.linearsolver.MPVariableProto.newBuilder();
1067 builderMap.put(key, entry);
1069 if (entry instanceof com.google.ortools.linearsolver.MPVariableProto) {
1070 entry = ((com.google.ortools.linearsolver.MPVariableProto) entry).
toBuilder();
1071 builderMap.put(key, entry);
1073 return (com.google.ortools.linearsolver.MPVariableProto.Builder) entry;
1076 private static final class ConstraintOverridesConverter
implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder, com.google.ortools.linearsolver.MPConstraintProto> {
1079 if (val instanceof com.google.ortools.linearsolver.MPConstraintProto) {
return (com.google.ortools.linearsolver.MPConstraintProto) val; }
1080 return ((com.google.ortools.linearsolver.MPConstraintProto.Builder) val).build();
1084 public com.google.protobuf.MapEntry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> defaultEntry() {
1085 return ConstraintOverridesDefaultEntryHolder.defaultEntry;
1088 private static final ConstraintOverridesConverter constraintOverridesConverter =
new ConstraintOverridesConverter();
1090 private com.google.protobuf.MapFieldBuilder<
1091 java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder, com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder> constraintOverrides_;
1092 private com.google.protobuf.MapFieldBuilder<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder, com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder>
1093 internalGetConstraintOverrides() {
1094 if (constraintOverrides_ ==
null) {
1095 return new com.google.protobuf.MapFieldBuilder<>(constraintOverridesConverter);
1097 return constraintOverrides_;
1099 private com.google.protobuf.MapFieldBuilder<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder, com.google.ortools.linearsolver.MPConstraintProto, com.google.ortools.linearsolver.MPConstraintProto.Builder>
1100 internalGetMutableConstraintOverrides() {
1101 if (constraintOverrides_ ==
null) {
1102 constraintOverrides_ =
new com.google.protobuf.MapFieldBuilder<>(constraintOverridesConverter);
1104 bitField0_ |= 0x00000004;
1106 return constraintOverrides_;
1109 return internalGetConstraintOverrides().ensureBuilderMap().size();
1128 return internalGetConstraintOverrides().ensureBuilderMap().containsKey(key);
1134 @java.lang.Deprecated
1153 return internalGetConstraintOverrides().getImmutableMap();
1173com.google.ortools.linearsolver.MPConstraintProto defaultValue) {
1175 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> map = internalGetMutableConstraintOverrides().ensureBuilderMap();
1176 return map.containsKey(key) ? constraintOverridesConverter.build(map.get(key)) : defaultValue;
1195 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> map = internalGetMutableConstraintOverrides().ensureBuilderMap();
1196 if (!map.containsKey(key)) {
1197 throw new java.lang.IllegalArgumentException();
1199 return constraintOverridesConverter.build(map.get(key));
1202 bitField0_ = (bitField0_ & ~0x00000004);
1203 internalGetMutableConstraintOverrides().clear();
1222 internalGetMutableConstraintOverrides().ensureBuilderMap()
1229 @java.lang.Deprecated
1230 public java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto>
1232 bitField0_ |= 0x00000004;
1233 return internalGetMutableConstraintOverrides().ensureMessageMap();
1250 com.google.ortools.linearsolver.MPConstraintProto value) {
1252 if (value ==
null) {
throw new NullPointerException(
"map value"); }
1253 internalGetMutableConstraintOverrides().ensureBuilderMap()
1255 bitField0_ |= 0x00000004;
1272 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> values) {
1273 for (java.util.Map.Entry<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProto> e : values.entrySet()) {
1274 if (e.getKey() ==
null || e.getValue() ==
null) {
1275 throw new NullPointerException();
1278 internalGetMutableConstraintOverrides().ensureBuilderMap()
1280 bitField0_ |= 0x00000004;
1298 java.util.Map<java.lang.Integer, com.google.ortools.linearsolver.MPConstraintProtoOrBuilder> builderMap = internalGetMutableConstraintOverrides().ensureBuilderMap();
1300 if (entry ==
null) {
1301 entry = com.google.ortools.linearsolver.MPConstraintProto.newBuilder();
1302 builderMap.put(key, entry);
1304 if (entry instanceof com.google.ortools.linearsolver.MPConstraintProto) {
1305 entry = ((com.google.ortools.linearsolver.MPConstraintProto) entry).
toBuilder();
1306 builderMap.put(key, entry);
1308 return (com.google.ortools.linearsolver.MPConstraintProto.Builder) entry;
1317 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPModelDeltaProto();
1321 return DEFAULT_INSTANCE;
1328 com.google.protobuf.CodedInputStream input,
1329 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1330 throws com.google.protobuf.InvalidProtocolBufferException {
1333 builder.mergeFrom(input, extensionRegistry);
1334 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1335 throw e.setUnfinishedMessage(builder.buildPartial());
1336 }
catch (com.google.protobuf.UninitializedMessageException e) {
1337 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1338 }
catch (java.io.IOException e) {
1339 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1340 .setUnfinishedMessage(builder.buildPartial());
1342 return builder.buildPartial();
1357 return DEFAULT_INSTANCE;