6package com.google.ortools.sat;
16@com.google.protobuf.Generated
17public final class AutomatonConstraintProto
extends
18 com.google.protobuf.GeneratedMessage implements
21private static final long serialVersionUID = 0L;
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 "AutomatonConstraintProto");
32 private AutomatonConstraintProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private AutomatonConstraintProto() {
36 finalStates_ = emptyLongList();
37 transitionTail_ = emptyLongList();
38 transitionHead_ = emptyLongList();
39 transitionLabel_ = emptyLongList();
40 vars_ = emptyIntList();
41 exprs_ = java.util.Collections.emptyList();
44 public static final com.google.protobuf.Descriptors.Descriptor
46 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_descriptor;
50 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
52 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_fieldAccessorTable
53 .ensureFieldAccessorsInitialized(
54 com.google.ortools.sat.AutomatonConstraintProto.class, com.google.ortools.sat.AutomatonConstraintProto.Builder.class);
58 private long startingState_ = 0L;
71 return startingState_;
75 @SuppressWarnings(
"serial")
76 private com.google.protobuf.Internal.LongList finalStates_ =
83 public java.
util.List<java.lang.Long>
92 return finalStates_.size();
100 return finalStates_.getLong(index);
102 private int finalStatesMemoizedSerializedSize = -1;
105 @SuppressWarnings(
"serial")
106 private com.google.protobuf.Internal.LongList transitionTail_ =
119 public java.
util.List<java.lang.Long>
121 return transitionTail_;
134 return transitionTail_.size();
148 return transitionTail_.getLong(index);
150 private int transitionTailMemoizedSerializedSize = -1;
153 @SuppressWarnings(
"serial")
154 private com.google.protobuf.Internal.LongList transitionHead_ =
161 public java.
util.List<java.lang.Long>
163 return transitionHead_;
170 return transitionHead_.size();
178 return transitionHead_.getLong(index);
180 private int transitionHeadMemoizedSerializedSize = -1;
183 @SuppressWarnings(
"serial")
184 private com.google.protobuf.Internal.LongList transitionLabel_ =
191 public java.
util.List<java.lang.Long>
193 return transitionLabel_;
200 return transitionLabel_.size();
208 return transitionLabel_.getLong(index);
210 private int transitionLabelMemoizedSerializedSize = -1;
213 @SuppressWarnings(
"serial")
214 private com.google.protobuf.Internal.IntList vars_ =
225 public java.
util.List<java.lang.Integer>
250 return vars_.getInt(index);
252 private int varsMemoizedSerializedSize = -1;
255 @SuppressWarnings(
"serial")
278 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
292 return exprs_.size();
304 return exprs_.get(index);
317 return exprs_.get(index);
320 private byte memoizedIsInitialized = -1;
327 memoizedIsInitialized = 1;
332 public void writeTo(com.google.protobuf.CodedOutputStream output)
333 throws java.io.IOException {
335 if (startingState_ != 0L) {
336 output.writeInt64(2, startingState_);
339 output.writeUInt32NoTag(26);
340 output.writeUInt32NoTag(finalStatesMemoizedSerializedSize);
342 for (
int i = 0; i < finalStates_.size(); i++) {
343 output.writeInt64NoTag(finalStates_.getLong(i));
346 output.writeUInt32NoTag(34);
347 output.writeUInt32NoTag(transitionTailMemoizedSerializedSize);
349 for (
int i = 0; i < transitionTail_.size(); i++) {
350 output.writeInt64NoTag(transitionTail_.getLong(i));
353 output.writeUInt32NoTag(42);
354 output.writeUInt32NoTag(transitionHeadMemoizedSerializedSize);
356 for (
int i = 0; i < transitionHead_.size(); i++) {
357 output.writeInt64NoTag(transitionHead_.getLong(i));
360 output.writeUInt32NoTag(50);
361 output.writeUInt32NoTag(transitionLabelMemoizedSerializedSize);
363 for (
int i = 0; i < transitionLabel_.size(); i++) {
364 output.writeInt64NoTag(transitionLabel_.getLong(i));
367 output.writeUInt32NoTag(58);
368 output.writeUInt32NoTag(varsMemoizedSerializedSize);
370 for (
int i = 0; i < vars_.size(); i++) {
371 output.writeInt32NoTag(vars_.getInt(i));
373 for (
int i = 0; i < exprs_.size(); i++) {
374 output.writeMessage(8, exprs_.get(i));
376 getUnknownFields().writeTo(output);
381 int size = memoizedSize;
382 if (size != -1)
return size;
385 if (startingState_ != 0L) {
386 size += com.google.protobuf.CodedOutputStream
387 .computeInt64Size(2, startingState_);
391 for (
int i = 0; i < finalStates_.size(); i++) {
392 dataSize += com.google.protobuf.CodedOutputStream
393 .computeInt64SizeNoTag(finalStates_.getLong(i));
398 size += com.google.protobuf.CodedOutputStream
399 .computeInt32SizeNoTag(dataSize);
401 finalStatesMemoizedSerializedSize = dataSize;
405 for (
int i = 0; i < transitionTail_.size(); i++) {
406 dataSize += com.google.protobuf.CodedOutputStream
407 .computeInt64SizeNoTag(transitionTail_.getLong(i));
412 size += com.google.protobuf.CodedOutputStream
413 .computeInt32SizeNoTag(dataSize);
415 transitionTailMemoizedSerializedSize = dataSize;
419 for (
int i = 0; i < transitionHead_.size(); i++) {
420 dataSize += com.google.protobuf.CodedOutputStream
421 .computeInt64SizeNoTag(transitionHead_.getLong(i));
426 size += com.google.protobuf.CodedOutputStream
427 .computeInt32SizeNoTag(dataSize);
429 transitionHeadMemoizedSerializedSize = dataSize;
433 for (
int i = 0; i < transitionLabel_.size(); i++) {
434 dataSize += com.google.protobuf.CodedOutputStream
435 .computeInt64SizeNoTag(transitionLabel_.getLong(i));
440 size += com.google.protobuf.CodedOutputStream
441 .computeInt32SizeNoTag(dataSize);
443 transitionLabelMemoizedSerializedSize = dataSize;
447 for (
int i = 0; i < vars_.size(); i++) {
448 dataSize += com.google.protobuf.CodedOutputStream
449 .computeInt32SizeNoTag(vars_.getInt(i));
454 size += com.google.protobuf.CodedOutputStream
455 .computeInt32SizeNoTag(dataSize);
457 varsMemoizedSerializedSize = dataSize;
459 for (
int i = 0; i < exprs_.size(); i++) {
460 size += com.google.protobuf.CodedOutputStream
461 .computeMessageSize(8, exprs_.get(i));
463 size += getUnknownFields().getSerializedSize();
469 public boolean equals(
final java.lang.Object obj) {
473 if (!(obj instanceof com.google.ortools.sat.AutomatonConstraintProto)) {
474 return super.equals(obj);
492 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
498 if (memoizedHashCode != 0) {
499 return memoizedHashCode;
504 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
530 hash = (29 * hash) + getUnknownFields().hashCode();
531 memoizedHashCode = hash;
536 java.nio.ByteBuffer data)
537 throws com.google.protobuf.InvalidProtocolBufferException {
538 return PARSER.parseFrom(data);
541 java.nio.ByteBuffer data,
542 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
543 throws com.google.protobuf.InvalidProtocolBufferException {
544 return PARSER.parseFrom(data, extensionRegistry);
547 com.google.protobuf.ByteString data)
548 throws com.google.protobuf.InvalidProtocolBufferException {
549 return PARSER.parseFrom(data);
552 com.google.protobuf.ByteString data,
553 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
554 throws com.google.protobuf.InvalidProtocolBufferException {
555 return PARSER.parseFrom(data, extensionRegistry);
558 throws com.google.protobuf.InvalidProtocolBufferException {
559 return PARSER.parseFrom(data);
563 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
564 throws com.google.protobuf.InvalidProtocolBufferException {
565 return PARSER.parseFrom(data, extensionRegistry);
568 throws java.io.IOException {
569 return com.google.protobuf.GeneratedMessage
570 .parseWithIOException(PARSER, input);
573 java.io.InputStream input,
574 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
575 throws java.io.IOException {
576 return com.google.protobuf.GeneratedMessage
577 .parseWithIOException(PARSER, input, extensionRegistry);
581 throws java.io.IOException {
582 return com.google.protobuf.GeneratedMessage
583 .parseDelimitedWithIOException(PARSER, input);
587 java.io.InputStream input,
588 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
589 throws java.io.IOException {
590 return com.google.protobuf.GeneratedMessage
591 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
594 com.google.protobuf.CodedInputStream input)
595 throws java.io.IOException {
596 return com.google.protobuf.GeneratedMessage
597 .parseWithIOException(PARSER, input);
600 com.google.protobuf.CodedInputStream input,
601 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
602 throws java.io.IOException {
603 return com.google.protobuf.GeneratedMessage
604 .parseWithIOException(PARSER, input, extensionRegistry);
610 return DEFAULT_INSTANCE.toBuilder();
613 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
617 return this == DEFAULT_INSTANCE
623 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
635 public static final class Builder
extends
636 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
639 public static final com.google.protobuf.Descriptors.Descriptor
641 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_descriptor;
645 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
647 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_fieldAccessorTable
648 .ensureFieldAccessorsInitialized(
649 com.google.ortools.sat.AutomatonConstraintProto.class, com.google.ortools.sat.AutomatonConstraintProto.Builder.class);
658 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
667 finalStates_ = emptyLongList();
668 transitionTail_ = emptyLongList();
669 transitionHead_ = emptyLongList();
670 transitionLabel_ = emptyLongList();
671 vars_ = emptyIntList();
672 if (exprsBuilder_ ==
null) {
673 exprs_ = java.util.Collections.emptyList();
676 exprsBuilder_.clear();
678 bitField0_ = (bitField0_ & ~0x00000040);
683 public com.google.protobuf.Descriptors.Descriptor
685 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_descriptor;
690 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
697 throw newUninitializedMessageException(result);
705 buildPartialRepeatedFields(result);
706 if (bitField0_ != 0) { buildPartial0(result); }
711 private void buildPartialRepeatedFields(com.google.ortools.sat.AutomatonConstraintProto result) {
712 if (exprsBuilder_ ==
null) {
713 if (((bitField0_ & 0x00000040) != 0)) {
714 exprs_ = java.util.Collections.unmodifiableList(exprs_);
715 bitField0_ = (bitField0_ & ~0x00000040);
717 result.exprs_ = exprs_;
719 result.exprs_ = exprsBuilder_.build();
723 private void buildPartial0(com.google.ortools.sat.AutomatonConstraintProto result) {
724 int from_bitField0_ = bitField0_;
725 if (((from_bitField0_ & 0x00000001) != 0)) {
726 result.startingState_ = startingState_;
728 if (((from_bitField0_ & 0x00000002) != 0)) {
729 finalStates_.makeImmutable();
730 result.finalStates_ = finalStates_;
732 if (((from_bitField0_ & 0x00000004) != 0)) {
733 transitionTail_.makeImmutable();
734 result.transitionTail_ = transitionTail_;
736 if (((from_bitField0_ & 0x00000008) != 0)) {
737 transitionHead_.makeImmutable();
738 result.transitionHead_ = transitionHead_;
740 if (((from_bitField0_ & 0x00000010) != 0)) {
741 transitionLabel_.makeImmutable();
742 result.transitionLabel_ = transitionLabel_;
744 if (((from_bitField0_ & 0x00000020) != 0)) {
745 vars_.makeImmutable();
746 result.vars_ = vars_;
751 public Builder
mergeFrom(com.google.protobuf.Message other) {
752 if (other instanceof com.google.ortools.sat.AutomatonConstraintProto) {
753 return mergeFrom((com.google.ortools.sat.AutomatonConstraintProto)other);
755 super.mergeFrom(other);
760 public Builder
mergeFrom(com.google.ortools.sat.AutomatonConstraintProto other) {
761 if (other == com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance())
return this;
762 if (other.getStartingState() != 0L) {
765 if (!other.finalStates_.isEmpty()) {
766 if (finalStates_.isEmpty()) {
767 finalStates_ = other.finalStates_;
768 finalStates_.makeImmutable();
769 bitField0_ |= 0x00000002;
771 ensureFinalStatesIsMutable();
772 finalStates_.addAll(other.finalStates_);
776 if (!other.transitionTail_.isEmpty()) {
777 if (transitionTail_.isEmpty()) {
778 transitionTail_ = other.transitionTail_;
779 transitionTail_.makeImmutable();
780 bitField0_ |= 0x00000004;
782 ensureTransitionTailIsMutable();
783 transitionTail_.addAll(other.transitionTail_);
787 if (!other.transitionHead_.isEmpty()) {
788 if (transitionHead_.isEmpty()) {
789 transitionHead_ = other.transitionHead_;
790 transitionHead_.makeImmutable();
791 bitField0_ |= 0x00000008;
793 ensureTransitionHeadIsMutable();
794 transitionHead_.addAll(other.transitionHead_);
798 if (!other.transitionLabel_.isEmpty()) {
799 if (transitionLabel_.isEmpty()) {
800 transitionLabel_ = other.transitionLabel_;
801 transitionLabel_.makeImmutable();
802 bitField0_ |= 0x00000010;
804 ensureTransitionLabelIsMutable();
805 transitionLabel_.addAll(other.transitionLabel_);
809 if (!other.vars_.isEmpty()) {
810 if (vars_.isEmpty()) {
812 vars_.makeImmutable();
813 bitField0_ |= 0x00000020;
815 ensureVarsIsMutable();
816 vars_.addAll(other.vars_);
820 if (exprsBuilder_ ==
null) {
821 if (!other.exprs_.isEmpty()) {
822 if (exprs_.isEmpty()) {
823 exprs_ = other.exprs_;
824 bitField0_ = (bitField0_ & ~0x00000040);
826 ensureExprsIsMutable();
827 exprs_.addAll(other.exprs_);
832 if (!other.exprs_.isEmpty()) {
833 if (exprsBuilder_.isEmpty()) {
834 exprsBuilder_.dispose();
835 exprsBuilder_ =
null;
836 exprs_ = other.exprs_;
837 bitField0_ = (bitField0_ & ~0x00000040);
839 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
840 internalGetExprsFieldBuilder() :
null;
842 exprsBuilder_.addAllMessages(other.exprs_);
846 this.mergeUnknownFields(other.getUnknownFields());
858 com.google.protobuf.CodedInputStream input,
859 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
860 throws java.io.IOException {
861 if (extensionRegistry ==
null) {
862 throw new java.lang.NullPointerException();
865 boolean done =
false;
867 int tag = input.readTag();
873 startingState_ = input.readInt64();
874 bitField0_ |= 0x00000001;
878 long v = input.readInt64();
879 ensureFinalStatesIsMutable();
880 finalStates_.addLong(v);
884 int length = input.readRawVarint32();
885 int limit = input.pushLimit(length);
886 ensureFinalStatesIsMutable();
887 while (input.getBytesUntilLimit() > 0) {
888 finalStates_.addLong(input.readInt64());
890 input.popLimit(limit);
894 long v = input.readInt64();
895 ensureTransitionTailIsMutable();
896 transitionTail_.addLong(v);
900 int length = input.readRawVarint32();
901 int limit = input.pushLimit(length);
902 ensureTransitionTailIsMutable();
903 while (input.getBytesUntilLimit() > 0) {
904 transitionTail_.addLong(input.readInt64());
906 input.popLimit(limit);
910 long v = input.readInt64();
911 ensureTransitionHeadIsMutable();
912 transitionHead_.addLong(v);
916 int length = input.readRawVarint32();
917 int limit = input.pushLimit(length);
918 ensureTransitionHeadIsMutable();
919 while (input.getBytesUntilLimit() > 0) {
920 transitionHead_.addLong(input.readInt64());
922 input.popLimit(limit);
926 long v = input.readInt64();
927 ensureTransitionLabelIsMutable();
928 transitionLabel_.addLong(v);
932 int length = input.readRawVarint32();
933 int limit = input.pushLimit(length);
934 ensureTransitionLabelIsMutable();
935 while (input.getBytesUntilLimit() > 0) {
936 transitionLabel_.addLong(input.readInt64());
938 input.popLimit(limit);
942 int v = input.readInt32();
943 ensureVarsIsMutable();
948 int length = input.readRawVarint32();
949 int limit = input.pushLimit(length);
950 ensureVarsIsMutable();
951 while (input.getBytesUntilLimit() > 0) {
952 vars_.addInt(input.readInt32());
954 input.popLimit(limit);
960 com.google.ortools.sat.LinearExpressionProto.parser(),
962 if (exprsBuilder_ ==
null) {
963 ensureExprsIsMutable();
966 exprsBuilder_.addMessage(m);
971 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
978 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
979 throw e.unwrapIOException();
985 private int bitField0_;
987 private long startingState_ ;
1000 return startingState_;
1015 startingState_ = value;
1016 bitField0_ |= 0x00000001;
1031 bitField0_ = (bitField0_ & ~0x00000001);
1032 startingState_ = 0L;
1037 private com.google.protobuf.Internal.LongList finalStates_ = emptyLongList();
1038 private void ensureFinalStatesIsMutable() {
1039 if (!finalStates_.isModifiable()) {
1040 finalStates_ = makeMutableCopy(finalStates_);
1042 bitField0_ |= 0x00000002;
1048 public java.util.List<java.lang.Long>
1050 finalStates_.makeImmutable();
1051 return finalStates_;
1058 return finalStates_.size();
1066 return finalStates_.getLong(index);
1075 int index,
long value) {
1077 ensureFinalStatesIsMutable();
1078 finalStates_.setLong(index, value);
1079 bitField0_ |= 0x00000002;
1090 ensureFinalStatesIsMutable();
1091 finalStates_.addLong(value);
1092 bitField0_ |= 0x00000002;
1102 java.lang.Iterable<? extends java.lang.Long> values) {
1103 ensureFinalStatesIsMutable();
1104 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1105 values, finalStates_);
1106 bitField0_ |= 0x00000002;
1115 finalStates_ = emptyLongList();
1116 bitField0_ = (bitField0_ & ~0x00000002);
1121 private com.google.protobuf.Internal.LongList transitionTail_ = emptyLongList();
1122 private void ensureTransitionTailIsMutable() {
1123 if (!transitionTail_.isModifiable()) {
1124 transitionTail_ = makeMutableCopy(transitionTail_);
1126 bitField0_ |= 0x00000004;
1138 public java.util.List<java.lang.Long>
1140 transitionTail_.makeImmutable();
1141 return transitionTail_;
1154 return transitionTail_.size();
1168 return transitionTail_.getLong(index);
1183 int index,
long value) {
1185 ensureTransitionTailIsMutable();
1186 transitionTail_.setLong(index, value);
1187 bitField0_ |= 0x00000004;
1204 ensureTransitionTailIsMutable();
1205 transitionTail_.addLong(value);
1206 bitField0_ |= 0x00000004;
1222 java.lang.Iterable<? extends java.lang.Long> values) {
1223 ensureTransitionTailIsMutable();
1224 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1225 values, transitionTail_);
1226 bitField0_ |= 0x00000004;
1241 transitionTail_ = emptyLongList();
1242 bitField0_ = (bitField0_ & ~0x00000004);
1247 private com.google.protobuf.Internal.LongList transitionHead_ = emptyLongList();
1248 private void ensureTransitionHeadIsMutable() {
1249 if (!transitionHead_.isModifiable()) {
1250 transitionHead_ = makeMutableCopy(transitionHead_);
1252 bitField0_ |= 0x00000008;
1258 public java.util.List<java.lang.Long>
1260 transitionHead_.makeImmutable();
1261 return transitionHead_;
1268 return transitionHead_.size();
1276 return transitionHead_.getLong(index);
1285 int index,
long value) {
1287 ensureTransitionHeadIsMutable();
1288 transitionHead_.setLong(index, value);
1289 bitField0_ |= 0x00000008;
1300 ensureTransitionHeadIsMutable();
1301 transitionHead_.addLong(value);
1302 bitField0_ |= 0x00000008;
1312 java.lang.Iterable<? extends java.lang.Long> values) {
1313 ensureTransitionHeadIsMutable();
1314 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1315 values, transitionHead_);
1316 bitField0_ |= 0x00000008;
1325 transitionHead_ = emptyLongList();
1326 bitField0_ = (bitField0_ & ~0x00000008);
1331 private com.google.protobuf.Internal.LongList transitionLabel_ = emptyLongList();
1332 private void ensureTransitionLabelIsMutable() {
1333 if (!transitionLabel_.isModifiable()) {
1334 transitionLabel_ = makeMutableCopy(transitionLabel_);
1336 bitField0_ |= 0x00000010;
1342 public java.util.List<java.lang.Long>
1344 transitionLabel_.makeImmutable();
1345 return transitionLabel_;
1352 return transitionLabel_.size();
1360 return transitionLabel_.getLong(index);
1369 int index,
long value) {
1371 ensureTransitionLabelIsMutable();
1372 transitionLabel_.setLong(index, value);
1373 bitField0_ |= 0x00000010;
1384 ensureTransitionLabelIsMutable();
1385 transitionLabel_.addLong(value);
1386 bitField0_ |= 0x00000010;
1396 java.lang.Iterable<? extends java.lang.Long> values) {
1397 ensureTransitionLabelIsMutable();
1398 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1399 values, transitionLabel_);
1400 bitField0_ |= 0x00000010;
1409 transitionLabel_ = emptyLongList();
1410 bitField0_ = (bitField0_ & ~0x00000010);
1415 private com.google.protobuf.Internal.IntList vars_ = emptyIntList();
1416 private void ensureVarsIsMutable() {
1417 if (!vars_.isModifiable()) {
1418 vars_ = makeMutableCopy(vars_);
1420 bitField0_ |= 0x00000020;
1430 public java.util.List<java.lang.Integer>
1432 vars_.makeImmutable();
1444 return vars_.size();
1456 return vars_.getInt(index);
1469 int index,
int value) {
1471 ensureVarsIsMutable();
1472 vars_.setInt(index, value);
1473 bitField0_ |= 0x00000020;
1488 ensureVarsIsMutable();
1489 vars_.addInt(value);
1490 bitField0_ |= 0x00000020;
1504 java.lang.Iterable<? extends java.lang.Integer> values) {
1505 ensureVarsIsMutable();
1506 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1508 bitField0_ |= 0x00000020;
1521 vars_ = emptyIntList();
1522 bitField0_ = (bitField0_ & ~0x00000020);
1527 private java.util.List<com.google.ortools.sat.LinearExpressionProto> exprs_ =
1528 java.util.Collections.emptyList();
1529 private void ensureExprsIsMutable() {
1530 if (!((bitField0_ & 0x00000040) != 0)) {
1531 exprs_ =
new java.util.ArrayList<com.google.ortools.sat.LinearExpressionProto>(exprs_);
1532 bitField0_ |= 0x00000040;
1536 private com.google.protobuf.RepeatedFieldBuilder<
1537 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> exprsBuilder_;
1547 public java.util.List<com.google.ortools.sat.LinearExpressionProto>
getExprsList() {
1548 if (exprsBuilder_ ==
null) {
1549 return java.util.Collections.unmodifiableList(exprs_);
1551 return exprsBuilder_.getMessageList();
1563 if (exprsBuilder_ ==
null) {
1564 return exprs_.size();
1566 return exprsBuilder_.getCount();
1578 if (exprsBuilder_ ==
null) {
1579 return exprs_.get(index);
1581 return exprsBuilder_.getMessage(index);
1593 int index, com.google.ortools.sat.LinearExpressionProto value) {
1594 if (exprsBuilder_ ==
null) {
1595 if (value ==
null) {
1596 throw new NullPointerException();
1598 ensureExprsIsMutable();
1599 exprs_.set(index, value);
1602 exprsBuilder_.setMessage(index, value);
1615 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1616 if (exprsBuilder_ ==
null) {
1617 ensureExprsIsMutable();
1618 exprs_.set(index, builderForValue.build());
1621 exprsBuilder_.setMessage(index, builderForValue.build());
1633 public Builder
addExprs(com.google.ortools.sat.LinearExpressionProto value) {
1634 if (exprsBuilder_ ==
null) {
1635 if (value ==
null) {
1636 throw new NullPointerException();
1638 ensureExprsIsMutable();
1642 exprsBuilder_.addMessage(value);
1655 int index, com.google.ortools.sat.LinearExpressionProto value) {
1656 if (exprsBuilder_ ==
null) {
1657 if (value ==
null) {
1658 throw new NullPointerException();
1660 ensureExprsIsMutable();
1661 exprs_.add(index, value);
1664 exprsBuilder_.addMessage(index, value);
1677 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1678 if (exprsBuilder_ ==
null) {
1679 ensureExprsIsMutable();
1680 exprs_.add(builderForValue.build());
1683 exprsBuilder_.addMessage(builderForValue.build());
1696 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1697 if (exprsBuilder_ ==
null) {
1698 ensureExprsIsMutable();
1699 exprs_.add(index, builderForValue.build());
1702 exprsBuilder_.addMessage(index, builderForValue.build());
1715 java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto> values) {
1716 if (exprsBuilder_ ==
null) {
1717 ensureExprsIsMutable();
1718 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1722 exprsBuilder_.addAllMessages(values);
1735 if (exprsBuilder_ ==
null) {
1736 exprs_ = java.util.Collections.emptyList();
1737 bitField0_ = (bitField0_ & ~0x00000040);
1740 exprsBuilder_.clear();
1753 if (exprsBuilder_ ==
null) {
1754 ensureExprsIsMutable();
1755 exprs_.remove(index);
1758 exprsBuilder_.remove(index);
1772 return internalGetExprsFieldBuilder().getBuilder(index);
1784 if (exprsBuilder_ ==
null) {
1785 return exprs_.get(index); }
else {
1786 return exprsBuilder_.getMessageOrBuilder(index);
1797 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1799 if (exprsBuilder_ !=
null) {
1800 return exprsBuilder_.getMessageOrBuilderList();
1802 return java.util.Collections.unmodifiableList(exprs_);
1814 return internalGetExprsFieldBuilder().addBuilder(
1815 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1827 return internalGetExprsFieldBuilder().addBuilder(
1828 index, com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1838 public java.util.List<com.google.ortools.sat.LinearExpressionProto.Builder>
1840 return internalGetExprsFieldBuilder().getBuilderList();
1842 private com.google.protobuf.RepeatedFieldBuilder<
1843 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1844 internalGetExprsFieldBuilder() {
1845 if (exprsBuilder_ ==
null) {
1846 exprsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1847 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
1849 ((bitField0_ & 0x00000040) != 0),
1850 getParentForChildren(),
1854 return exprsBuilder_;
1863 DEFAULT_INSTANCE =
new com.google.ortools.sat.AutomatonConstraintProto();
1867 return DEFAULT_INSTANCE;
1874 com.google.protobuf.CodedInputStream input,
1875 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1876 throws com.google.protobuf.InvalidProtocolBufferException {
1879 builder.mergeFrom(input, extensionRegistry);
1880 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1881 throw e.setUnfinishedMessage(builder.buildPartial());
1882 }
catch (com.google.protobuf.UninitializedMessageException e) {
1883 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1884 }
catch (java.io.IOException e) {
1885 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1886 .setUnfinishedMessage(builder.buildPartial());
1888 return builder.buildPartial();
1892 public static com.google.protobuf.Parser<AutomatonConstraintProto>
parser() {
1903 return DEFAULT_INSTANCE;