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.class.getName());
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")
280 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
295 return exprs_.size();
308 return exprs_.get(index);
322 return exprs_.get(index);
325 private byte memoizedIsInitialized = -1;
332 memoizedIsInitialized = 1;
337 public void writeTo(com.google.protobuf.CodedOutputStream output)
338 throws java.io.IOException {
340 if (startingState_ != 0L) {
341 output.writeInt64(2, startingState_);
344 output.writeUInt32NoTag(26);
345 output.writeUInt32NoTag(finalStatesMemoizedSerializedSize);
347 for (
int i = 0; i < finalStates_.size(); i++) {
348 output.writeInt64NoTag(finalStates_.getLong(i));
351 output.writeUInt32NoTag(34);
352 output.writeUInt32NoTag(transitionTailMemoizedSerializedSize);
354 for (
int i = 0; i < transitionTail_.size(); i++) {
355 output.writeInt64NoTag(transitionTail_.getLong(i));
358 output.writeUInt32NoTag(42);
359 output.writeUInt32NoTag(transitionHeadMemoizedSerializedSize);
361 for (
int i = 0; i < transitionHead_.size(); i++) {
362 output.writeInt64NoTag(transitionHead_.getLong(i));
365 output.writeUInt32NoTag(50);
366 output.writeUInt32NoTag(transitionLabelMemoizedSerializedSize);
368 for (
int i = 0; i < transitionLabel_.size(); i++) {
369 output.writeInt64NoTag(transitionLabel_.getLong(i));
372 output.writeUInt32NoTag(58);
373 output.writeUInt32NoTag(varsMemoizedSerializedSize);
375 for (
int i = 0; i < vars_.size(); i++) {
376 output.writeInt32NoTag(vars_.getInt(i));
378 for (
int i = 0; i < exprs_.size(); i++) {
379 output.writeMessage(8, exprs_.get(i));
381 getUnknownFields().writeTo(output);
386 int size = memoizedSize;
387 if (size != -1)
return size;
390 if (startingState_ != 0L) {
391 size += com.google.protobuf.CodedOutputStream
392 .computeInt64Size(2, startingState_);
396 for (
int i = 0; i < finalStates_.size(); i++) {
397 dataSize += com.google.protobuf.CodedOutputStream
398 .computeInt64SizeNoTag(finalStates_.getLong(i));
403 size += com.google.protobuf.CodedOutputStream
404 .computeInt32SizeNoTag(dataSize);
406 finalStatesMemoizedSerializedSize = dataSize;
410 for (
int i = 0; i < transitionTail_.size(); i++) {
411 dataSize += com.google.protobuf.CodedOutputStream
412 .computeInt64SizeNoTag(transitionTail_.getLong(i));
417 size += com.google.protobuf.CodedOutputStream
418 .computeInt32SizeNoTag(dataSize);
420 transitionTailMemoizedSerializedSize = dataSize;
424 for (
int i = 0; i < transitionHead_.size(); i++) {
425 dataSize += com.google.protobuf.CodedOutputStream
426 .computeInt64SizeNoTag(transitionHead_.getLong(i));
431 size += com.google.protobuf.CodedOutputStream
432 .computeInt32SizeNoTag(dataSize);
434 transitionHeadMemoizedSerializedSize = dataSize;
438 for (
int i = 0; i < transitionLabel_.size(); i++) {
439 dataSize += com.google.protobuf.CodedOutputStream
440 .computeInt64SizeNoTag(transitionLabel_.getLong(i));
445 size += com.google.protobuf.CodedOutputStream
446 .computeInt32SizeNoTag(dataSize);
448 transitionLabelMemoizedSerializedSize = dataSize;
452 for (
int i = 0; i < vars_.size(); i++) {
453 dataSize += com.google.protobuf.CodedOutputStream
454 .computeInt32SizeNoTag(vars_.getInt(i));
459 size += com.google.protobuf.CodedOutputStream
460 .computeInt32SizeNoTag(dataSize);
462 varsMemoizedSerializedSize = dataSize;
464 for (
int i = 0; i < exprs_.size(); i++) {
465 size += com.google.protobuf.CodedOutputStream
466 .computeMessageSize(8, exprs_.get(i));
468 size += getUnknownFields().getSerializedSize();
474 public boolean equals(
final java.lang.Object obj) {
478 if (!(obj instanceof com.google.ortools.sat.AutomatonConstraintProto)) {
479 return super.equals(obj);
497 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
503 if (memoizedHashCode != 0) {
504 return memoizedHashCode;
509 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
535 hash = (29 * hash) + getUnknownFields().hashCode();
536 memoizedHashCode = hash;
541 java.nio.ByteBuffer data)
542 throws com.google.protobuf.InvalidProtocolBufferException {
543 return PARSER.parseFrom(data);
546 java.nio.ByteBuffer data,
547 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
548 throws com.google.protobuf.InvalidProtocolBufferException {
549 return PARSER.parseFrom(data, extensionRegistry);
552 com.google.protobuf.ByteString data)
553 throws com.google.protobuf.InvalidProtocolBufferException {
554 return PARSER.parseFrom(data);
557 com.google.protobuf.ByteString data,
558 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
559 throws com.google.protobuf.InvalidProtocolBufferException {
560 return PARSER.parseFrom(data, extensionRegistry);
563 throws com.google.protobuf.InvalidProtocolBufferException {
564 return PARSER.parseFrom(data);
568 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
569 throws com.google.protobuf.InvalidProtocolBufferException {
570 return PARSER.parseFrom(data, extensionRegistry);
573 throws java.io.IOException {
574 return com.google.protobuf.GeneratedMessage
575 .parseWithIOException(PARSER, input);
578 java.io.InputStream input,
579 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
580 throws java.io.IOException {
581 return com.google.protobuf.GeneratedMessage
582 .parseWithIOException(PARSER, input, extensionRegistry);
586 throws java.io.IOException {
587 return com.google.protobuf.GeneratedMessage
588 .parseDelimitedWithIOException(PARSER, input);
592 java.io.InputStream input,
593 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
594 throws java.io.IOException {
595 return com.google.protobuf.GeneratedMessage
596 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
599 com.google.protobuf.CodedInputStream input)
600 throws java.io.IOException {
601 return com.google.protobuf.GeneratedMessage
602 .parseWithIOException(PARSER, input);
605 com.google.protobuf.CodedInputStream input,
606 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
607 throws java.io.IOException {
608 return com.google.protobuf.GeneratedMessage
609 .parseWithIOException(PARSER, input, extensionRegistry);
615 return DEFAULT_INSTANCE.toBuilder();
618 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
622 return this == DEFAULT_INSTANCE
628 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
640 public static final class Builder
extends
641 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
644 public static final com.google.protobuf.Descriptors.Descriptor
646 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_descriptor;
650 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
652 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_fieldAccessorTable
653 .ensureFieldAccessorsInitialized(
654 com.google.ortools.sat.AutomatonConstraintProto.class, com.google.ortools.sat.AutomatonConstraintProto.Builder.class);
663 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
672 finalStates_ = emptyLongList();
673 transitionTail_ = emptyLongList();
674 transitionHead_ = emptyLongList();
675 transitionLabel_ = emptyLongList();
676 vars_ = emptyIntList();
677 if (exprsBuilder_ ==
null) {
678 exprs_ = java.util.Collections.emptyList();
681 exprsBuilder_.clear();
683 bitField0_ = (bitField0_ & ~0x00000040);
688 public com.google.protobuf.Descriptors.Descriptor
690 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_descriptor;
695 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
702 throw newUninitializedMessageException(result);
710 buildPartialRepeatedFields(result);
711 if (bitField0_ != 0) { buildPartial0(result); }
716 private void buildPartialRepeatedFields(com.google.ortools.sat.AutomatonConstraintProto result) {
717 if (exprsBuilder_ ==
null) {
718 if (((bitField0_ & 0x00000040) != 0)) {
719 exprs_ = java.util.Collections.unmodifiableList(exprs_);
720 bitField0_ = (bitField0_ & ~0x00000040);
722 result.exprs_ = exprs_;
724 result.exprs_ = exprsBuilder_.build();
728 private void buildPartial0(com.google.ortools.sat.AutomatonConstraintProto result) {
729 int from_bitField0_ = bitField0_;
730 if (((from_bitField0_ & 0x00000001) != 0)) {
731 result.startingState_ = startingState_;
733 if (((from_bitField0_ & 0x00000002) != 0)) {
734 finalStates_.makeImmutable();
735 result.finalStates_ = finalStates_;
737 if (((from_bitField0_ & 0x00000004) != 0)) {
738 transitionTail_.makeImmutable();
739 result.transitionTail_ = transitionTail_;
741 if (((from_bitField0_ & 0x00000008) != 0)) {
742 transitionHead_.makeImmutable();
743 result.transitionHead_ = transitionHead_;
745 if (((from_bitField0_ & 0x00000010) != 0)) {
746 transitionLabel_.makeImmutable();
747 result.transitionLabel_ = transitionLabel_;
749 if (((from_bitField0_ & 0x00000020) != 0)) {
750 vars_.makeImmutable();
751 result.vars_ = vars_;
756 public Builder
mergeFrom(com.google.protobuf.Message other) {
757 if (other instanceof com.google.ortools.sat.AutomatonConstraintProto) {
758 return mergeFrom((com.google.ortools.sat.AutomatonConstraintProto)other);
760 super.mergeFrom(other);
765 public Builder
mergeFrom(com.google.ortools.sat.AutomatonConstraintProto other) {
766 if (other == com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance())
return this;
767 if (other.getStartingState() != 0L) {
770 if (!other.finalStates_.isEmpty()) {
771 if (finalStates_.isEmpty()) {
772 finalStates_ = other.finalStates_;
773 finalStates_.makeImmutable();
774 bitField0_ |= 0x00000002;
776 ensureFinalStatesIsMutable();
777 finalStates_.addAll(other.finalStates_);
781 if (!other.transitionTail_.isEmpty()) {
782 if (transitionTail_.isEmpty()) {
783 transitionTail_ = other.transitionTail_;
784 transitionTail_.makeImmutable();
785 bitField0_ |= 0x00000004;
787 ensureTransitionTailIsMutable();
788 transitionTail_.addAll(other.transitionTail_);
792 if (!other.transitionHead_.isEmpty()) {
793 if (transitionHead_.isEmpty()) {
794 transitionHead_ = other.transitionHead_;
795 transitionHead_.makeImmutable();
796 bitField0_ |= 0x00000008;
798 ensureTransitionHeadIsMutable();
799 transitionHead_.addAll(other.transitionHead_);
803 if (!other.transitionLabel_.isEmpty()) {
804 if (transitionLabel_.isEmpty()) {
805 transitionLabel_ = other.transitionLabel_;
806 transitionLabel_.makeImmutable();
807 bitField0_ |= 0x00000010;
809 ensureTransitionLabelIsMutable();
810 transitionLabel_.addAll(other.transitionLabel_);
814 if (!other.vars_.isEmpty()) {
815 if (vars_.isEmpty()) {
817 vars_.makeImmutable();
818 bitField0_ |= 0x00000020;
820 ensureVarsIsMutable();
821 vars_.addAll(other.vars_);
825 if (exprsBuilder_ ==
null) {
826 if (!other.exprs_.isEmpty()) {
827 if (exprs_.isEmpty()) {
828 exprs_ = other.exprs_;
829 bitField0_ = (bitField0_ & ~0x00000040);
831 ensureExprsIsMutable();
832 exprs_.addAll(other.exprs_);
837 if (!other.exprs_.isEmpty()) {
838 if (exprsBuilder_.isEmpty()) {
839 exprsBuilder_.dispose();
840 exprsBuilder_ =
null;
841 exprs_ = other.exprs_;
842 bitField0_ = (bitField0_ & ~0x00000040);
844 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
845 internalGetExprsFieldBuilder() :
null;
847 exprsBuilder_.addAllMessages(other.exprs_);
851 this.mergeUnknownFields(other.getUnknownFields());
863 com.google.protobuf.CodedInputStream input,
864 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
865 throws java.io.IOException {
866 if (extensionRegistry ==
null) {
867 throw new java.lang.NullPointerException();
870 boolean done =
false;
872 int tag = input.readTag();
878 startingState_ = input.readInt64();
879 bitField0_ |= 0x00000001;
883 long v = input.readInt64();
884 ensureFinalStatesIsMutable();
885 finalStates_.addLong(v);
889 int length = input.readRawVarint32();
890 int limit = input.pushLimit(length);
891 ensureFinalStatesIsMutable();
892 while (input.getBytesUntilLimit() > 0) {
893 finalStates_.addLong(input.readInt64());
895 input.popLimit(limit);
899 long v = input.readInt64();
900 ensureTransitionTailIsMutable();
901 transitionTail_.addLong(v);
905 int length = input.readRawVarint32();
906 int limit = input.pushLimit(length);
907 ensureTransitionTailIsMutable();
908 while (input.getBytesUntilLimit() > 0) {
909 transitionTail_.addLong(input.readInt64());
911 input.popLimit(limit);
915 long v = input.readInt64();
916 ensureTransitionHeadIsMutable();
917 transitionHead_.addLong(v);
921 int length = input.readRawVarint32();
922 int limit = input.pushLimit(length);
923 ensureTransitionHeadIsMutable();
924 while (input.getBytesUntilLimit() > 0) {
925 transitionHead_.addLong(input.readInt64());
927 input.popLimit(limit);
931 long v = input.readInt64();
932 ensureTransitionLabelIsMutable();
933 transitionLabel_.addLong(v);
937 int length = input.readRawVarint32();
938 int limit = input.pushLimit(length);
939 ensureTransitionLabelIsMutable();
940 while (input.getBytesUntilLimit() > 0) {
941 transitionLabel_.addLong(input.readInt64());
943 input.popLimit(limit);
947 int v = input.readInt32();
948 ensureVarsIsMutable();
953 int length = input.readRawVarint32();
954 int limit = input.pushLimit(length);
955 ensureVarsIsMutable();
956 while (input.getBytesUntilLimit() > 0) {
957 vars_.addInt(input.readInt32());
959 input.popLimit(limit);
965 com.google.ortools.sat.LinearExpressionProto.parser(),
967 if (exprsBuilder_ ==
null) {
968 ensureExprsIsMutable();
971 exprsBuilder_.addMessage(m);
976 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
983 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
984 throw e.unwrapIOException();
990 private int bitField0_;
992 private long startingState_ ;
1005 return startingState_;
1020 startingState_ = value;
1021 bitField0_ |= 0x00000001;
1036 bitField0_ = (bitField0_ & ~0x00000001);
1037 startingState_ = 0L;
1042 private com.google.protobuf.Internal.LongList finalStates_ = emptyLongList();
1043 private void ensureFinalStatesIsMutable() {
1044 if (!finalStates_.isModifiable()) {
1045 finalStates_ = makeMutableCopy(finalStates_);
1047 bitField0_ |= 0x00000002;
1053 public java.util.List<java.lang.Long>
1055 finalStates_.makeImmutable();
1056 return finalStates_;
1063 return finalStates_.size();
1071 return finalStates_.getLong(index);
1080 int index,
long value) {
1082 ensureFinalStatesIsMutable();
1083 finalStates_.setLong(index, value);
1084 bitField0_ |= 0x00000002;
1095 ensureFinalStatesIsMutable();
1096 finalStates_.addLong(value);
1097 bitField0_ |= 0x00000002;
1107 java.lang.Iterable<? extends java.lang.Long> values) {
1108 ensureFinalStatesIsMutable();
1109 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1110 values, finalStates_);
1111 bitField0_ |= 0x00000002;
1120 finalStates_ = emptyLongList();
1121 bitField0_ = (bitField0_ & ~0x00000002);
1126 private com.google.protobuf.Internal.LongList transitionTail_ = emptyLongList();
1127 private void ensureTransitionTailIsMutable() {
1128 if (!transitionTail_.isModifiable()) {
1129 transitionTail_ = makeMutableCopy(transitionTail_);
1131 bitField0_ |= 0x00000004;
1143 public java.util.List<java.lang.Long>
1145 transitionTail_.makeImmutable();
1146 return transitionTail_;
1159 return transitionTail_.size();
1173 return transitionTail_.getLong(index);
1188 int index,
long value) {
1190 ensureTransitionTailIsMutable();
1191 transitionTail_.setLong(index, value);
1192 bitField0_ |= 0x00000004;
1209 ensureTransitionTailIsMutable();
1210 transitionTail_.addLong(value);
1211 bitField0_ |= 0x00000004;
1227 java.lang.Iterable<? extends java.lang.Long> values) {
1228 ensureTransitionTailIsMutable();
1229 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1230 values, transitionTail_);
1231 bitField0_ |= 0x00000004;
1246 transitionTail_ = emptyLongList();
1247 bitField0_ = (bitField0_ & ~0x00000004);
1252 private com.google.protobuf.Internal.LongList transitionHead_ = emptyLongList();
1253 private void ensureTransitionHeadIsMutable() {
1254 if (!transitionHead_.isModifiable()) {
1255 transitionHead_ = makeMutableCopy(transitionHead_);
1257 bitField0_ |= 0x00000008;
1263 public java.util.List<java.lang.Long>
1265 transitionHead_.makeImmutable();
1266 return transitionHead_;
1273 return transitionHead_.size();
1281 return transitionHead_.getLong(index);
1290 int index,
long value) {
1292 ensureTransitionHeadIsMutable();
1293 transitionHead_.setLong(index, value);
1294 bitField0_ |= 0x00000008;
1305 ensureTransitionHeadIsMutable();
1306 transitionHead_.addLong(value);
1307 bitField0_ |= 0x00000008;
1317 java.lang.Iterable<? extends java.lang.Long> values) {
1318 ensureTransitionHeadIsMutable();
1319 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1320 values, transitionHead_);
1321 bitField0_ |= 0x00000008;
1330 transitionHead_ = emptyLongList();
1331 bitField0_ = (bitField0_ & ~0x00000008);
1336 private com.google.protobuf.Internal.LongList transitionLabel_ = emptyLongList();
1337 private void ensureTransitionLabelIsMutable() {
1338 if (!transitionLabel_.isModifiable()) {
1339 transitionLabel_ = makeMutableCopy(transitionLabel_);
1341 bitField0_ |= 0x00000010;
1347 public java.util.List<java.lang.Long>
1349 transitionLabel_.makeImmutable();
1350 return transitionLabel_;
1357 return transitionLabel_.size();
1365 return transitionLabel_.getLong(index);
1374 int index,
long value) {
1376 ensureTransitionLabelIsMutable();
1377 transitionLabel_.setLong(index, value);
1378 bitField0_ |= 0x00000010;
1389 ensureTransitionLabelIsMutable();
1390 transitionLabel_.addLong(value);
1391 bitField0_ |= 0x00000010;
1401 java.lang.Iterable<? extends java.lang.Long> values) {
1402 ensureTransitionLabelIsMutable();
1403 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1404 values, transitionLabel_);
1405 bitField0_ |= 0x00000010;
1414 transitionLabel_ = emptyLongList();
1415 bitField0_ = (bitField0_ & ~0x00000010);
1420 private com.google.protobuf.Internal.IntList vars_ = emptyIntList();
1421 private void ensureVarsIsMutable() {
1422 if (!vars_.isModifiable()) {
1423 vars_ = makeMutableCopy(vars_);
1425 bitField0_ |= 0x00000020;
1435 public java.util.List<java.lang.Integer>
1437 vars_.makeImmutable();
1449 return vars_.size();
1461 return vars_.getInt(index);
1474 int index,
int value) {
1476 ensureVarsIsMutable();
1477 vars_.setInt(index, value);
1478 bitField0_ |= 0x00000020;
1493 ensureVarsIsMutable();
1494 vars_.addInt(value);
1495 bitField0_ |= 0x00000020;
1509 java.lang.Iterable<? extends java.lang.Integer> values) {
1510 ensureVarsIsMutable();
1511 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1513 bitField0_ |= 0x00000020;
1526 vars_ = emptyIntList();
1527 bitField0_ = (bitField0_ & ~0x00000020);
1532 private java.util.List<com.google.ortools.sat.LinearExpressionProto> exprs_ =
1533 java.util.Collections.emptyList();
1534 private void ensureExprsIsMutable() {
1535 if (!((bitField0_ & 0x00000040) != 0)) {
1536 exprs_ =
new java.util.ArrayList<com.google.ortools.sat.LinearExpressionProto>(exprs_);
1537 bitField0_ |= 0x00000040;
1541 private com.google.protobuf.RepeatedFieldBuilder<
1542 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> exprsBuilder_;
1553 public java.util.List<com.google.ortools.sat.LinearExpressionProto>
getExprsList() {
1554 if (exprsBuilder_ ==
null) {
1555 return java.util.Collections.unmodifiableList(exprs_);
1557 return exprsBuilder_.getMessageList();
1570 if (exprsBuilder_ ==
null) {
1571 return exprs_.size();
1573 return exprsBuilder_.getCount();
1586 if (exprsBuilder_ ==
null) {
1587 return exprs_.get(index);
1589 return exprsBuilder_.getMessage(index);
1602 int index, com.google.ortools.sat.LinearExpressionProto value) {
1603 if (exprsBuilder_ ==
null) {
1604 if (value ==
null) {
1605 throw new NullPointerException();
1607 ensureExprsIsMutable();
1608 exprs_.set(index, value);
1611 exprsBuilder_.setMessage(index, value);
1625 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1626 if (exprsBuilder_ ==
null) {
1627 ensureExprsIsMutable();
1628 exprs_.set(index, builderForValue.build());
1631 exprsBuilder_.setMessage(index, builderForValue.build());
1644 public Builder
addExprs(com.google.ortools.sat.LinearExpressionProto value) {
1645 if (exprsBuilder_ ==
null) {
1646 if (value ==
null) {
1647 throw new NullPointerException();
1649 ensureExprsIsMutable();
1653 exprsBuilder_.addMessage(value);
1667 int index, com.google.ortools.sat.LinearExpressionProto value) {
1668 if (exprsBuilder_ ==
null) {
1669 if (value ==
null) {
1670 throw new NullPointerException();
1672 ensureExprsIsMutable();
1673 exprs_.add(index, value);
1676 exprsBuilder_.addMessage(index, value);
1690 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1691 if (exprsBuilder_ ==
null) {
1692 ensureExprsIsMutable();
1693 exprs_.add(builderForValue.build());
1696 exprsBuilder_.addMessage(builderForValue.build());
1710 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1711 if (exprsBuilder_ ==
null) {
1712 ensureExprsIsMutable();
1713 exprs_.add(index, builderForValue.build());
1716 exprsBuilder_.addMessage(index, builderForValue.build());
1730 java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto> values) {
1731 if (exprsBuilder_ ==
null) {
1732 ensureExprsIsMutable();
1733 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1737 exprsBuilder_.addAllMessages(values);
1751 if (exprsBuilder_ ==
null) {
1752 exprs_ = java.util.Collections.emptyList();
1753 bitField0_ = (bitField0_ & ~0x00000040);
1756 exprsBuilder_.clear();
1770 if (exprsBuilder_ ==
null) {
1771 ensureExprsIsMutable();
1772 exprs_.remove(index);
1775 exprsBuilder_.remove(index);
1790 return internalGetExprsFieldBuilder().getBuilder(index);
1803 if (exprsBuilder_ ==
null) {
1804 return exprs_.get(index); }
else {
1805 return exprsBuilder_.getMessageOrBuilder(index);
1817 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1819 if (exprsBuilder_ !=
null) {
1820 return exprsBuilder_.getMessageOrBuilderList();
1822 return java.util.Collections.unmodifiableList(exprs_);
1835 return internalGetExprsFieldBuilder().addBuilder(
1836 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1849 return internalGetExprsFieldBuilder().addBuilder(
1850 index, com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1861 public java.util.List<com.google.ortools.sat.LinearExpressionProto.Builder>
1863 return internalGetExprsFieldBuilder().getBuilderList();
1865 private com.google.protobuf.RepeatedFieldBuilder<
1866 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1867 internalGetExprsFieldBuilder() {
1868 if (exprsBuilder_ ==
null) {
1869 exprsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1870 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
1872 ((bitField0_ & 0x00000040) != 0),
1873 getParentForChildren(),
1877 return exprsBuilder_;
1886 DEFAULT_INSTANCE =
new com.google.ortools.sat.AutomatonConstraintProto();
1890 return DEFAULT_INSTANCE;
1897 com.google.protobuf.CodedInputStream input,
1898 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1899 throws com.google.protobuf.InvalidProtocolBufferException {
1902 builder.mergeFrom(input, extensionRegistry);
1903 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1904 throw e.setUnfinishedMessage(builder.buildPartial());
1905 }
catch (com.google.protobuf.UninitializedMessageException e) {
1906 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1907 }
catch (java.io.IOException e) {
1908 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1909 .setUnfinishedMessage(builder.buildPartial());
1911 return builder.buildPartial();
1915 public static com.google.protobuf.Parser<AutomatonConstraintProto>
parser() {
1926 return DEFAULT_INSTANCE;