5package com.google.ortools.sat;
30 com.google.protobuf.GeneratedMessage implements
33private static final long serialVersionUID = 0L;
35 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
36 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
48 timeExprs_ = java.util.Collections.emptyList();
49 levelChanges_ = java.util.Collections.emptyList();
50 activeLiterals_ = emptyIntList();
53 public static final com.google.protobuf.Descriptors.Descriptor
55 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ReservoirConstraintProto_descriptor;
59 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
61 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ReservoirConstraintProto_fieldAccessorTable
62 .ensureFieldAccessorsInitialized(
63 com.google.ortools.sat.ReservoirConstraintProto.class, com.google.ortools.sat.ReservoirConstraintProto.Builder.class);
67 private long minLevel_ = 0L;
78 private long maxLevel_ = 0L;
89 @SuppressWarnings(
"serial")
110 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
123 return timeExprs_.size();
134 return timeExprs_.get(index);
146 return timeExprs_.get(index);
150 @SuppressWarnings(
"serial")
161 return levelChanges_;
171 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
173 return levelChanges_;
184 return levelChanges_.size();
195 return levelChanges_.get(index);
207 return levelChanges_.get(index);
211 @SuppressWarnings(
"serial")
212 private com.google.protobuf.Internal.IntList activeLiterals_ =
219 public java.util.List<java.lang.Integer>
221 return activeLiterals_;
228 return activeLiterals_.size();
236 return activeLiterals_.getInt(index);
238 private int activeLiteralsMemoizedSerializedSize = -1;
240 private byte memoizedIsInitialized = -1;
247 memoizedIsInitialized = 1;
252 public void writeTo(com.google.protobuf.CodedOutputStream output)
253 throws java.io.IOException {
255 if (minLevel_ != 0L) {
256 output.writeInt64(1, minLevel_);
258 if (maxLevel_ != 0L) {
259 output.writeInt64(2, maxLevel_);
261 for (
int i = 0; i < timeExprs_.size(); i++) {
262 output.writeMessage(3, timeExprs_.get(i));
265 output.writeUInt32NoTag(42);
266 output.writeUInt32NoTag(activeLiteralsMemoizedSerializedSize);
268 for (
int i = 0; i < activeLiterals_.size(); i++) {
269 output.writeInt32NoTag(activeLiterals_.getInt(i));
271 for (
int i = 0; i < levelChanges_.size(); i++) {
272 output.writeMessage(6, levelChanges_.get(i));
274 getUnknownFields().writeTo(output);
279 int size = memoizedSize;
280 if (size != -1)
return size;
283 if (minLevel_ != 0L) {
284 size += com.google.protobuf.CodedOutputStream
285 .computeInt64Size(1, minLevel_);
287 if (maxLevel_ != 0L) {
288 size += com.google.protobuf.CodedOutputStream
289 .computeInt64Size(2, maxLevel_);
291 for (
int i = 0; i < timeExprs_.size(); i++) {
292 size += com.google.protobuf.CodedOutputStream
293 .computeMessageSize(3, timeExprs_.get(i));
297 for (
int i = 0; i < activeLiterals_.size(); i++) {
298 dataSize += com.google.protobuf.CodedOutputStream
299 .computeInt32SizeNoTag(activeLiterals_.getInt(i));
304 size += com.google.protobuf.CodedOutputStream
305 .computeInt32SizeNoTag(dataSize);
307 activeLiteralsMemoizedSerializedSize = dataSize;
309 for (
int i = 0; i < levelChanges_.size(); i++) {
310 size += com.google.protobuf.CodedOutputStream
311 .computeMessageSize(6, levelChanges_.get(i));
313 size += getUnknownFields().getSerializedSize();
319 public boolean equals(
final java.lang.Object obj) {
323 if (!(obj instanceof com.google.ortools.sat.ReservoirConstraintProto)) {
324 return super.equals(obj);
338 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
344 if (memoizedHashCode != 0) {
345 return memoizedHashCode;
350 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
353 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
367 hash = (29 * hash) + getUnknownFields().hashCode();
368 memoizedHashCode = hash;
373 java.nio.ByteBuffer data)
374 throws com.google.protobuf.InvalidProtocolBufferException {
375 return PARSER.parseFrom(data);
378 java.nio.ByteBuffer data,
379 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
380 throws com.google.protobuf.InvalidProtocolBufferException {
381 return PARSER.parseFrom(data, extensionRegistry);
384 com.google.protobuf.ByteString data)
385 throws com.google.protobuf.InvalidProtocolBufferException {
386 return PARSER.parseFrom(data);
389 com.google.protobuf.ByteString data,
390 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
391 throws com.google.protobuf.InvalidProtocolBufferException {
392 return PARSER.parseFrom(data, extensionRegistry);
395 throws com.google.protobuf.InvalidProtocolBufferException {
396 return PARSER.parseFrom(data);
400 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
401 throws com.google.protobuf.InvalidProtocolBufferException {
402 return PARSER.parseFrom(data, extensionRegistry);
405 throws java.io.IOException {
406 return com.google.protobuf.GeneratedMessage
407 .parseWithIOException(PARSER, input);
410 java.io.InputStream input,
411 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
412 throws java.io.IOException {
413 return com.google.protobuf.GeneratedMessage
414 .parseWithIOException(PARSER, input, extensionRegistry);
418 throws java.io.IOException {
419 return com.google.protobuf.GeneratedMessage
420 .parseDelimitedWithIOException(PARSER, input);
424 java.io.InputStream input,
425 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
426 throws java.io.IOException {
427 return com.google.protobuf.GeneratedMessage
428 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
431 com.google.protobuf.CodedInputStream input)
432 throws java.io.IOException {
433 return com.google.protobuf.GeneratedMessage
434 .parseWithIOException(PARSER, input);
437 com.google.protobuf.CodedInputStream input,
438 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
439 throws java.io.IOException {
440 return com.google.protobuf.GeneratedMessage
441 .parseWithIOException(PARSER, input, extensionRegistry);
454 return this == DEFAULT_INSTANCE
460 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
487 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
490 public static final com.google.protobuf.Descriptors.Descriptor
492 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ReservoirConstraintProto_descriptor;
496 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
498 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ReservoirConstraintProto_fieldAccessorTable
499 .ensureFieldAccessorsInitialized(
500 com.google.ortools.sat.ReservoirConstraintProto.class, com.google.ortools.sat.ReservoirConstraintProto.Builder.class);
509 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
519 if (timeExprsBuilder_ ==
null) {
520 timeExprs_ = java.util.Collections.emptyList();
523 timeExprsBuilder_.clear();
525 bitField0_ = (bitField0_ & ~0x00000004);
526 if (levelChangesBuilder_ ==
null) {
527 levelChanges_ = java.util.Collections.emptyList();
529 levelChanges_ =
null;
530 levelChangesBuilder_.clear();
532 bitField0_ = (bitField0_ & ~0x00000008);
533 activeLiterals_ = emptyIntList();
538 public com.google.protobuf.Descriptors.Descriptor
540 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ReservoirConstraintProto_descriptor;
545 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
552 throw newUninitializedMessageException(result);
560 buildPartialRepeatedFields(result);
561 if (bitField0_ != 0) { buildPartial0(result); }
566 private void buildPartialRepeatedFields(com.google.ortools.sat.ReservoirConstraintProto result) {
567 if (timeExprsBuilder_ ==
null) {
568 if (((bitField0_ & 0x00000004) != 0)) {
569 timeExprs_ = java.util.Collections.unmodifiableList(timeExprs_);
570 bitField0_ = (bitField0_ & ~0x00000004);
572 result.timeExprs_ = timeExprs_;
574 result.timeExprs_ = timeExprsBuilder_.build();
576 if (levelChangesBuilder_ ==
null) {
577 if (((bitField0_ & 0x00000008) != 0)) {
578 levelChanges_ = java.util.Collections.unmodifiableList(levelChanges_);
579 bitField0_ = (bitField0_ & ~0x00000008);
581 result.levelChanges_ = levelChanges_;
583 result.levelChanges_ = levelChangesBuilder_.build();
587 private void buildPartial0(com.google.ortools.sat.ReservoirConstraintProto result) {
588 int from_bitField0_ = bitField0_;
589 if (((from_bitField0_ & 0x00000001) != 0)) {
590 result.minLevel_ = minLevel_;
592 if (((from_bitField0_ & 0x00000002) != 0)) {
593 result.maxLevel_ = maxLevel_;
595 if (((from_bitField0_ & 0x00000010) != 0)) {
596 activeLiterals_.makeImmutable();
597 result.activeLiterals_ = activeLiterals_;
603 if (other instanceof com.google.ortools.sat.ReservoirConstraintProto) {
604 return mergeFrom((com.google.ortools.sat.ReservoirConstraintProto)other);
606 super.mergeFrom(other);
612 if (other == com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance())
return this;
613 if (other.getMinLevel() != 0L) {
616 if (other.getMaxLevel() != 0L) {
619 if (timeExprsBuilder_ ==
null) {
620 if (!other.timeExprs_.isEmpty()) {
621 if (timeExprs_.isEmpty()) {
622 timeExprs_ = other.timeExprs_;
623 bitField0_ = (bitField0_ & ~0x00000004);
625 ensureTimeExprsIsMutable();
626 timeExprs_.addAll(other.timeExprs_);
631 if (!other.timeExprs_.isEmpty()) {
632 if (timeExprsBuilder_.isEmpty()) {
633 timeExprsBuilder_.dispose();
634 timeExprsBuilder_ =
null;
635 timeExprs_ = other.timeExprs_;
636 bitField0_ = (bitField0_ & ~0x00000004);
638 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
639 getTimeExprsFieldBuilder() :
null;
641 timeExprsBuilder_.addAllMessages(other.timeExprs_);
645 if (levelChangesBuilder_ ==
null) {
646 if (!other.levelChanges_.isEmpty()) {
647 if (levelChanges_.isEmpty()) {
648 levelChanges_ = other.levelChanges_;
649 bitField0_ = (bitField0_ & ~0x00000008);
651 ensureLevelChangesIsMutable();
652 levelChanges_.addAll(other.levelChanges_);
657 if (!other.levelChanges_.isEmpty()) {
658 if (levelChangesBuilder_.isEmpty()) {
659 levelChangesBuilder_.dispose();
660 levelChangesBuilder_ =
null;
661 levelChanges_ = other.levelChanges_;
662 bitField0_ = (bitField0_ & ~0x00000008);
663 levelChangesBuilder_ =
664 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
665 getLevelChangesFieldBuilder() :
null;
667 levelChangesBuilder_.addAllMessages(other.levelChanges_);
671 if (!other.activeLiterals_.isEmpty()) {
672 if (activeLiterals_.isEmpty()) {
673 activeLiterals_ = other.activeLiterals_;
674 activeLiterals_.makeImmutable();
675 bitField0_ |= 0x00000010;
677 ensureActiveLiteralsIsMutable();
678 activeLiterals_.addAll(other.activeLiterals_);
682 this.mergeUnknownFields(other.getUnknownFields());
694 com.google.protobuf.CodedInputStream input,
695 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
696 throws java.io.IOException {
697 if (extensionRegistry ==
null) {
698 throw new java.lang.NullPointerException();
701 boolean done =
false;
703 int tag = input.readTag();
709 minLevel_ = input.readInt64();
710 bitField0_ |= 0x00000001;
714 maxLevel_ = input.readInt64();
715 bitField0_ |= 0x00000002;
721 com.google.ortools.sat.LinearExpressionProto.parser(),
723 if (timeExprsBuilder_ ==
null) {
724 ensureTimeExprsIsMutable();
727 timeExprsBuilder_.addMessage(m);
732 int v = input.readInt32();
733 ensureActiveLiteralsIsMutable();
734 activeLiterals_.addInt(v);
738 int length = input.readRawVarint32();
739 int limit = input.pushLimit(length);
740 ensureActiveLiteralsIsMutable();
741 while (input.getBytesUntilLimit() > 0) {
742 activeLiterals_.addInt(input.readInt32());
744 input.popLimit(limit);
750 com.google.ortools.sat.LinearExpressionProto.parser(),
752 if (levelChangesBuilder_ ==
null) {
753 ensureLevelChangesIsMutable();
754 levelChanges_.add(m);
756 levelChangesBuilder_.addMessage(m);
761 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
768 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
769 throw e.unwrapIOException();
775 private int bitField0_;
777 private long minLevel_ ;
794 bitField0_ |= 0x00000001;
803 bitField0_ = (bitField0_ & ~0x00000001);
809 private long maxLevel_ ;
826 bitField0_ |= 0x00000002;
835 bitField0_ = (bitField0_ & ~0x00000002);
841 private java.util.List<com.google.ortools.sat.LinearExpressionProto> timeExprs_ =
842 java.util.Collections.emptyList();
843 private void ensureTimeExprsIsMutable() {
844 if (!((bitField0_ & 0x00000004) != 0)) {
845 timeExprs_ =
new java.util.ArrayList<com.google.ortools.sat.LinearExpressionProto>(timeExprs_);
846 bitField0_ |= 0x00000004;
850 private com.google.protobuf.RepeatedFieldBuilder<
851 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> timeExprsBuilder_;
861 if (timeExprsBuilder_ ==
null) {
862 return java.util.Collections.unmodifiableList(timeExprs_);
864 return timeExprsBuilder_.getMessageList();
875 if (timeExprsBuilder_ ==
null) {
876 return timeExprs_.size();
878 return timeExprsBuilder_.getCount();
889 if (timeExprsBuilder_ ==
null) {
890 return timeExprs_.get(index);
892 return timeExprsBuilder_.getMessage(index);
903 int index, com.google.ortools.sat.LinearExpressionProto value) {
904 if (timeExprsBuilder_ ==
null) {
906 throw new NullPointerException();
908 ensureTimeExprsIsMutable();
909 timeExprs_.set(index, value);
912 timeExprsBuilder_.setMessage(index, value);
924 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
925 if (timeExprsBuilder_ ==
null) {
926 ensureTimeExprsIsMutable();
927 timeExprs_.set(index, builderForValue.build());
930 timeExprsBuilder_.setMessage(index, builderForValue.build());
942 if (timeExprsBuilder_ ==
null) {
944 throw new NullPointerException();
946 ensureTimeExprsIsMutable();
947 timeExprs_.add(value);
950 timeExprsBuilder_.addMessage(value);
962 int index, com.google.ortools.sat.LinearExpressionProto value) {
963 if (timeExprsBuilder_ ==
null) {
965 throw new NullPointerException();
967 ensureTimeExprsIsMutable();
968 timeExprs_.add(index, value);
971 timeExprsBuilder_.addMessage(index, value);
983 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
984 if (timeExprsBuilder_ ==
null) {
985 ensureTimeExprsIsMutable();
986 timeExprs_.add(builderForValue.build());
989 timeExprsBuilder_.addMessage(builderForValue.build());
1001 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1002 if (timeExprsBuilder_ ==
null) {
1003 ensureTimeExprsIsMutable();
1004 timeExprs_.add(index, builderForValue.build());
1007 timeExprsBuilder_.addMessage(index, builderForValue.build());
1019 java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto> values) {
1020 if (timeExprsBuilder_ ==
null) {
1021 ensureTimeExprsIsMutable();
1022 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1023 values, timeExprs_);
1026 timeExprsBuilder_.addAllMessages(values);
1038 if (timeExprsBuilder_ ==
null) {
1039 timeExprs_ = java.util.Collections.emptyList();
1040 bitField0_ = (bitField0_ & ~0x00000004);
1043 timeExprsBuilder_.clear();
1055 if (timeExprsBuilder_ ==
null) {
1056 ensureTimeExprsIsMutable();
1057 timeExprs_.remove(index);
1060 timeExprsBuilder_.remove(index);
1073 return getTimeExprsFieldBuilder().getBuilder(index);
1084 if (timeExprsBuilder_ ==
null) {
1085 return timeExprs_.get(index); }
else {
1086 return timeExprsBuilder_.getMessageOrBuilder(index);
1096 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1098 if (timeExprsBuilder_ !=
null) {
1099 return timeExprsBuilder_.getMessageOrBuilderList();
1101 return java.util.Collections.unmodifiableList(timeExprs_);
1112 return getTimeExprsFieldBuilder().addBuilder(
1113 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1124 return getTimeExprsFieldBuilder().addBuilder(
1125 index, com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1134 public java.util.List<com.google.ortools.sat.LinearExpressionProto.Builder>
1136 return getTimeExprsFieldBuilder().getBuilderList();
1138 private com.google.protobuf.RepeatedFieldBuilder<
1139 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1140 getTimeExprsFieldBuilder() {
1141 if (timeExprsBuilder_ ==
null) {
1142 timeExprsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1143 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
1145 ((bitField0_ & 0x00000004) != 0),
1146 getParentForChildren(),
1150 return timeExprsBuilder_;
1153 private java.util.List<com.google.ortools.sat.LinearExpressionProto> levelChanges_ =
1154 java.util.Collections.emptyList();
1155 private void ensureLevelChangesIsMutable() {
1156 if (!((bitField0_ & 0x00000008) != 0)) {
1157 levelChanges_ =
new java.util.ArrayList<com.google.ortools.sat.LinearExpressionProto>(levelChanges_);
1158 bitField0_ |= 0x00000008;
1162 private com.google.protobuf.RepeatedFieldBuilder<
1163 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> levelChangesBuilder_;
1173 if (levelChangesBuilder_ ==
null) {
1174 return java.util.Collections.unmodifiableList(levelChanges_);
1176 return levelChangesBuilder_.getMessageList();
1187 if (levelChangesBuilder_ ==
null) {
1188 return levelChanges_.size();
1190 return levelChangesBuilder_.getCount();
1201 if (levelChangesBuilder_ ==
null) {
1202 return levelChanges_.get(index);
1204 return levelChangesBuilder_.getMessage(index);
1215 int index, com.google.ortools.sat.LinearExpressionProto value) {
1216 if (levelChangesBuilder_ ==
null) {
1217 if (value ==
null) {
1218 throw new NullPointerException();
1220 ensureLevelChangesIsMutable();
1221 levelChanges_.set(index, value);
1224 levelChangesBuilder_.setMessage(index, value);
1236 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1237 if (levelChangesBuilder_ ==
null) {
1238 ensureLevelChangesIsMutable();
1239 levelChanges_.set(index, builderForValue.build());
1242 levelChangesBuilder_.setMessage(index, builderForValue.build());
1254 if (levelChangesBuilder_ ==
null) {
1255 if (value ==
null) {
1256 throw new NullPointerException();
1258 ensureLevelChangesIsMutable();
1259 levelChanges_.add(value);
1262 levelChangesBuilder_.addMessage(value);
1274 int index, com.google.ortools.sat.LinearExpressionProto value) {
1275 if (levelChangesBuilder_ ==
null) {
1276 if (value ==
null) {
1277 throw new NullPointerException();
1279 ensureLevelChangesIsMutable();
1280 levelChanges_.add(index, value);
1283 levelChangesBuilder_.addMessage(index, value);
1295 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1296 if (levelChangesBuilder_ ==
null) {
1297 ensureLevelChangesIsMutable();
1298 levelChanges_.add(builderForValue.build());
1301 levelChangesBuilder_.addMessage(builderForValue.build());
1313 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1314 if (levelChangesBuilder_ ==
null) {
1315 ensureLevelChangesIsMutable();
1316 levelChanges_.add(index, builderForValue.build());
1319 levelChangesBuilder_.addMessage(index, builderForValue.build());
1331 java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto> values) {
1332 if (levelChangesBuilder_ ==
null) {
1333 ensureLevelChangesIsMutable();
1334 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1335 values, levelChanges_);
1338 levelChangesBuilder_.addAllMessages(values);
1350 if (levelChangesBuilder_ ==
null) {
1351 levelChanges_ = java.util.Collections.emptyList();
1352 bitField0_ = (bitField0_ & ~0x00000008);
1355 levelChangesBuilder_.clear();
1367 if (levelChangesBuilder_ ==
null) {
1368 ensureLevelChangesIsMutable();
1369 levelChanges_.remove(index);
1372 levelChangesBuilder_.remove(index);
1385 return getLevelChangesFieldBuilder().getBuilder(index);
1396 if (levelChangesBuilder_ ==
null) {
1397 return levelChanges_.get(index); }
else {
1398 return levelChangesBuilder_.getMessageOrBuilder(index);
1408 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1410 if (levelChangesBuilder_ !=
null) {
1411 return levelChangesBuilder_.getMessageOrBuilderList();
1413 return java.util.Collections.unmodifiableList(levelChanges_);
1424 return getLevelChangesFieldBuilder().addBuilder(
1425 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1436 return getLevelChangesFieldBuilder().addBuilder(
1437 index, com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1446 public java.util.List<com.google.ortools.sat.LinearExpressionProto.Builder>
1448 return getLevelChangesFieldBuilder().getBuilderList();
1450 private com.google.protobuf.RepeatedFieldBuilder<
1451 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1452 getLevelChangesFieldBuilder() {
1453 if (levelChangesBuilder_ ==
null) {
1454 levelChangesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1455 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
1457 ((bitField0_ & 0x00000008) != 0),
1458 getParentForChildren(),
1460 levelChanges_ =
null;
1462 return levelChangesBuilder_;
1465 private com.google.protobuf.Internal.IntList activeLiterals_ = emptyIntList();
1466 private void ensureActiveLiteralsIsMutable() {
1467 if (!activeLiterals_.isModifiable()) {
1468 activeLiterals_ = makeMutableCopy(activeLiterals_);
1470 bitField0_ |= 0x00000010;
1476 public java.util.List<java.lang.Integer>
1478 activeLiterals_.makeImmutable();
1479 return activeLiterals_;
1486 return activeLiterals_.size();
1494 return activeLiterals_.getInt(index);
1503 int index,
int value) {
1505 ensureActiveLiteralsIsMutable();
1506 activeLiterals_.setInt(index, value);
1507 bitField0_ |= 0x00000010;
1518 ensureActiveLiteralsIsMutable();
1519 activeLiterals_.addInt(value);
1520 bitField0_ |= 0x00000010;
1530 java.lang.Iterable<? extends java.lang.Integer> values) {
1531 ensureActiveLiteralsIsMutable();
1532 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1533 values, activeLiterals_);
1534 bitField0_ |= 0x00000010;
1543 activeLiterals_ = emptyIntList();
1544 bitField0_ = (bitField0_ & ~0x00000010);
1555 DEFAULT_INSTANCE =
new com.google.ortools.sat.ReservoirConstraintProto();
1559 return DEFAULT_INSTANCE;
1566 com.google.protobuf.CodedInputStream input,
1567 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1568 throws com.google.protobuf.InvalidProtocolBufferException {
1571 builder.mergeFrom(input, extensionRegistry);
1572 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1573 throw e.setUnfinishedMessage(builder.buildPartial());
1574 }
catch (com.google.protobuf.UninitializedMessageException e) {
1575 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1576 }
catch (java.io.IOException e) {
1577 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1578 .setUnfinishedMessage(builder.buildPartial());
1580 return builder.buildPartial();
1595 return DEFAULT_INSTANCE;