6package com.google.ortools.sat;
16public final class AutomatonConstraintProto
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 AutomatonConstraintProto.class.getName());
31 private AutomatonConstraintProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private AutomatonConstraintProto() {
35 finalStates_ = emptyLongList();
36 transitionTail_ = emptyLongList();
37 transitionHead_ = emptyLongList();
38 transitionLabel_ = emptyLongList();
39 vars_ = emptyIntList();
40 exprs_ = java.util.Collections.emptyList();
43 public static final com.google.protobuf.Descriptors.Descriptor
45 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_descriptor;
49 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
51 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_fieldAccessorTable
52 .ensureFieldAccessorsInitialized(
53 com.google.ortools.sat.AutomatonConstraintProto.class, com.google.ortools.sat.AutomatonConstraintProto.Builder.class);
57 private long startingState_ = 0L;
70 return startingState_;
74 @SuppressWarnings(
"serial")
75 private com.google.protobuf.Internal.LongList finalStates_ =
82 public java.
util.List<java.lang.Long>
91 return finalStates_.size();
99 return finalStates_.getLong(index);
101 private int finalStatesMemoizedSerializedSize = -1;
104 @SuppressWarnings(
"serial")
105 private com.google.protobuf.Internal.LongList transitionTail_ =
118 public java.
util.List<java.lang.Long>
120 return transitionTail_;
133 return transitionTail_.size();
147 return transitionTail_.getLong(index);
149 private int transitionTailMemoizedSerializedSize = -1;
152 @SuppressWarnings(
"serial")
153 private com.google.protobuf.Internal.LongList transitionHead_ =
160 public java.
util.List<java.lang.Long>
162 return transitionHead_;
169 return transitionHead_.size();
177 return transitionHead_.getLong(index);
179 private int transitionHeadMemoizedSerializedSize = -1;
182 @SuppressWarnings(
"serial")
183 private com.google.protobuf.Internal.LongList transitionLabel_ =
190 public java.
util.List<java.lang.Long>
192 return transitionLabel_;
199 return transitionLabel_.size();
207 return transitionLabel_.getLong(index);
209 private int transitionLabelMemoizedSerializedSize = -1;
212 @SuppressWarnings(
"serial")
213 private com.google.protobuf.Internal.IntList vars_ =
224 public java.
util.List<java.lang.Integer>
249 return vars_.getInt(index);
251 private int varsMemoizedSerializedSize = -1;
254 @SuppressWarnings(
"serial")
279 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
294 return exprs_.size();
307 return exprs_.get(index);
321 return exprs_.get(index);
324 private byte memoizedIsInitialized = -1;
331 memoizedIsInitialized = 1;
336 public void writeTo(com.google.protobuf.CodedOutputStream output)
337 throws java.io.IOException {
339 if (startingState_ != 0L) {
340 output.writeInt64(2, startingState_);
343 output.writeUInt32NoTag(26);
344 output.writeUInt32NoTag(finalStatesMemoizedSerializedSize);
346 for (
int i = 0; i < finalStates_.size(); i++) {
347 output.writeInt64NoTag(finalStates_.getLong(i));
350 output.writeUInt32NoTag(34);
351 output.writeUInt32NoTag(transitionTailMemoizedSerializedSize);
353 for (
int i = 0; i < transitionTail_.size(); i++) {
354 output.writeInt64NoTag(transitionTail_.getLong(i));
357 output.writeUInt32NoTag(42);
358 output.writeUInt32NoTag(transitionHeadMemoizedSerializedSize);
360 for (
int i = 0; i < transitionHead_.size(); i++) {
361 output.writeInt64NoTag(transitionHead_.getLong(i));
364 output.writeUInt32NoTag(50);
365 output.writeUInt32NoTag(transitionLabelMemoizedSerializedSize);
367 for (
int i = 0; i < transitionLabel_.size(); i++) {
368 output.writeInt64NoTag(transitionLabel_.getLong(i));
371 output.writeUInt32NoTag(58);
372 output.writeUInt32NoTag(varsMemoizedSerializedSize);
374 for (
int i = 0; i < vars_.size(); i++) {
375 output.writeInt32NoTag(vars_.getInt(i));
377 for (
int i = 0; i < exprs_.size(); i++) {
378 output.writeMessage(8, exprs_.get(i));
380 getUnknownFields().writeTo(output);
385 int size = memoizedSize;
386 if (size != -1)
return size;
389 if (startingState_ != 0L) {
390 size += com.google.protobuf.CodedOutputStream
391 .computeInt64Size(2, startingState_);
395 for (
int i = 0; i < finalStates_.size(); i++) {
396 dataSize += com.google.protobuf.CodedOutputStream
397 .computeInt64SizeNoTag(finalStates_.getLong(i));
402 size += com.google.protobuf.CodedOutputStream
403 .computeInt32SizeNoTag(dataSize);
405 finalStatesMemoizedSerializedSize = dataSize;
409 for (
int i = 0; i < transitionTail_.size(); i++) {
410 dataSize += com.google.protobuf.CodedOutputStream
411 .computeInt64SizeNoTag(transitionTail_.getLong(i));
416 size += com.google.protobuf.CodedOutputStream
417 .computeInt32SizeNoTag(dataSize);
419 transitionTailMemoizedSerializedSize = dataSize;
423 for (
int i = 0; i < transitionHead_.size(); i++) {
424 dataSize += com.google.protobuf.CodedOutputStream
425 .computeInt64SizeNoTag(transitionHead_.getLong(i));
430 size += com.google.protobuf.CodedOutputStream
431 .computeInt32SizeNoTag(dataSize);
433 transitionHeadMemoizedSerializedSize = dataSize;
437 for (
int i = 0; i < transitionLabel_.size(); i++) {
438 dataSize += com.google.protobuf.CodedOutputStream
439 .computeInt64SizeNoTag(transitionLabel_.getLong(i));
444 size += com.google.protobuf.CodedOutputStream
445 .computeInt32SizeNoTag(dataSize);
447 transitionLabelMemoizedSerializedSize = dataSize;
451 for (
int i = 0; i < vars_.size(); i++) {
452 dataSize += com.google.protobuf.CodedOutputStream
453 .computeInt32SizeNoTag(vars_.getInt(i));
458 size += com.google.protobuf.CodedOutputStream
459 .computeInt32SizeNoTag(dataSize);
461 varsMemoizedSerializedSize = dataSize;
463 for (
int i = 0; i < exprs_.size(); i++) {
464 size += com.google.protobuf.CodedOutputStream
465 .computeMessageSize(8, exprs_.get(i));
467 size += getUnknownFields().getSerializedSize();
473 public boolean equals(
final java.lang.Object obj) {
477 if (!(obj instanceof com.google.ortools.sat.AutomatonConstraintProto)) {
478 return super.equals(obj);
496 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
502 if (memoizedHashCode != 0) {
503 return memoizedHashCode;
508 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
534 hash = (29 * hash) + getUnknownFields().hashCode();
535 memoizedHashCode = hash;
540 java.nio.ByteBuffer data)
541 throws com.google.protobuf.InvalidProtocolBufferException {
542 return PARSER.parseFrom(data);
545 java.nio.ByteBuffer data,
546 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
547 throws com.google.protobuf.InvalidProtocolBufferException {
548 return PARSER.parseFrom(data, extensionRegistry);
551 com.google.protobuf.ByteString data)
552 throws com.google.protobuf.InvalidProtocolBufferException {
553 return PARSER.parseFrom(data);
556 com.google.protobuf.ByteString data,
557 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
558 throws com.google.protobuf.InvalidProtocolBufferException {
559 return PARSER.parseFrom(data, extensionRegistry);
562 throws com.google.protobuf.InvalidProtocolBufferException {
563 return PARSER.parseFrom(data);
567 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
568 throws com.google.protobuf.InvalidProtocolBufferException {
569 return PARSER.parseFrom(data, extensionRegistry);
572 throws java.io.IOException {
573 return com.google.protobuf.GeneratedMessage
574 .parseWithIOException(PARSER, input);
577 java.io.InputStream input,
578 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
579 throws java.io.IOException {
580 return com.google.protobuf.GeneratedMessage
581 .parseWithIOException(PARSER, input, extensionRegistry);
585 throws java.io.IOException {
586 return com.google.protobuf.GeneratedMessage
587 .parseDelimitedWithIOException(PARSER, input);
591 java.io.InputStream input,
592 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
593 throws java.io.IOException {
594 return com.google.protobuf.GeneratedMessage
595 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
598 com.google.protobuf.CodedInputStream input)
599 throws java.io.IOException {
600 return com.google.protobuf.GeneratedMessage
601 .parseWithIOException(PARSER, input);
604 com.google.protobuf.CodedInputStream input,
605 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
606 throws java.io.IOException {
607 return com.google.protobuf.GeneratedMessage
608 .parseWithIOException(PARSER, input, extensionRegistry);
614 return DEFAULT_INSTANCE.toBuilder();
617 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
621 return this == DEFAULT_INSTANCE
627 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
639 public static final class Builder
extends
640 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
643 public static final com.google.protobuf.Descriptors.Descriptor
645 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_descriptor;
649 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
651 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_fieldAccessorTable
652 .ensureFieldAccessorsInitialized(
653 com.google.ortools.sat.AutomatonConstraintProto.class, com.google.ortools.sat.AutomatonConstraintProto.Builder.class);
662 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
671 finalStates_ = emptyLongList();
672 transitionTail_ = emptyLongList();
673 transitionHead_ = emptyLongList();
674 transitionLabel_ = emptyLongList();
675 vars_ = emptyIntList();
676 if (exprsBuilder_ ==
null) {
677 exprs_ = java.util.Collections.emptyList();
680 exprsBuilder_.clear();
682 bitField0_ = (bitField0_ & ~0x00000040);
687 public com.google.protobuf.Descriptors.Descriptor
689 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_AutomatonConstraintProto_descriptor;
694 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
701 throw newUninitializedMessageException(result);
709 buildPartialRepeatedFields(result);
710 if (bitField0_ != 0) { buildPartial0(result); }
715 private void buildPartialRepeatedFields(com.google.ortools.sat.AutomatonConstraintProto result) {
716 if (exprsBuilder_ ==
null) {
717 if (((bitField0_ & 0x00000040) != 0)) {
718 exprs_ = java.util.Collections.unmodifiableList(exprs_);
719 bitField0_ = (bitField0_ & ~0x00000040);
721 result.exprs_ = exprs_;
723 result.exprs_ = exprsBuilder_.build();
727 private void buildPartial0(com.google.ortools.sat.AutomatonConstraintProto result) {
728 int from_bitField0_ = bitField0_;
729 if (((from_bitField0_ & 0x00000001) != 0)) {
730 result.startingState_ = startingState_;
732 if (((from_bitField0_ & 0x00000002) != 0)) {
733 finalStates_.makeImmutable();
734 result.finalStates_ = finalStates_;
736 if (((from_bitField0_ & 0x00000004) != 0)) {
737 transitionTail_.makeImmutable();
738 result.transitionTail_ = transitionTail_;
740 if (((from_bitField0_ & 0x00000008) != 0)) {
741 transitionHead_.makeImmutable();
742 result.transitionHead_ = transitionHead_;
744 if (((from_bitField0_ & 0x00000010) != 0)) {
745 transitionLabel_.makeImmutable();
746 result.transitionLabel_ = transitionLabel_;
748 if (((from_bitField0_ & 0x00000020) != 0)) {
749 vars_.makeImmutable();
750 result.vars_ = vars_;
755 public Builder
mergeFrom(com.google.protobuf.Message other) {
756 if (other instanceof com.google.ortools.sat.AutomatonConstraintProto) {
757 return mergeFrom((com.google.ortools.sat.AutomatonConstraintProto)other);
759 super.mergeFrom(other);
764 public Builder
mergeFrom(com.google.ortools.sat.AutomatonConstraintProto other) {
765 if (other == com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance())
return this;
766 if (other.getStartingState() != 0L) {
769 if (!other.finalStates_.isEmpty()) {
770 if (finalStates_.isEmpty()) {
771 finalStates_ = other.finalStates_;
772 finalStates_.makeImmutable();
773 bitField0_ |= 0x00000002;
775 ensureFinalStatesIsMutable();
776 finalStates_.addAll(other.finalStates_);
780 if (!other.transitionTail_.isEmpty()) {
781 if (transitionTail_.isEmpty()) {
782 transitionTail_ = other.transitionTail_;
783 transitionTail_.makeImmutable();
784 bitField0_ |= 0x00000004;
786 ensureTransitionTailIsMutable();
787 transitionTail_.addAll(other.transitionTail_);
791 if (!other.transitionHead_.isEmpty()) {
792 if (transitionHead_.isEmpty()) {
793 transitionHead_ = other.transitionHead_;
794 transitionHead_.makeImmutable();
795 bitField0_ |= 0x00000008;
797 ensureTransitionHeadIsMutable();
798 transitionHead_.addAll(other.transitionHead_);
802 if (!other.transitionLabel_.isEmpty()) {
803 if (transitionLabel_.isEmpty()) {
804 transitionLabel_ = other.transitionLabel_;
805 transitionLabel_.makeImmutable();
806 bitField0_ |= 0x00000010;
808 ensureTransitionLabelIsMutable();
809 transitionLabel_.addAll(other.transitionLabel_);
813 if (!other.vars_.isEmpty()) {
814 if (vars_.isEmpty()) {
816 vars_.makeImmutable();
817 bitField0_ |= 0x00000020;
819 ensureVarsIsMutable();
820 vars_.addAll(other.vars_);
824 if (exprsBuilder_ ==
null) {
825 if (!other.exprs_.isEmpty()) {
826 if (exprs_.isEmpty()) {
827 exprs_ = other.exprs_;
828 bitField0_ = (bitField0_ & ~0x00000040);
830 ensureExprsIsMutable();
831 exprs_.addAll(other.exprs_);
836 if (!other.exprs_.isEmpty()) {
837 if (exprsBuilder_.isEmpty()) {
838 exprsBuilder_.dispose();
839 exprsBuilder_ =
null;
840 exprs_ = other.exprs_;
841 bitField0_ = (bitField0_ & ~0x00000040);
843 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
844 getExprsFieldBuilder() :
null;
846 exprsBuilder_.addAllMessages(other.exprs_);
850 this.mergeUnknownFields(other.getUnknownFields());
862 com.google.protobuf.CodedInputStream input,
863 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
864 throws java.io.IOException {
865 if (extensionRegistry ==
null) {
866 throw new java.lang.NullPointerException();
869 boolean done =
false;
871 int tag = input.readTag();
877 startingState_ = input.readInt64();
878 bitField0_ |= 0x00000001;
882 long v = input.readInt64();
883 ensureFinalStatesIsMutable();
884 finalStates_.addLong(v);
888 int length = input.readRawVarint32();
889 int limit = input.pushLimit(length);
890 ensureFinalStatesIsMutable();
891 while (input.getBytesUntilLimit() > 0) {
892 finalStates_.addLong(input.readInt64());
894 input.popLimit(limit);
898 long v = input.readInt64();
899 ensureTransitionTailIsMutable();
900 transitionTail_.addLong(v);
904 int length = input.readRawVarint32();
905 int limit = input.pushLimit(length);
906 ensureTransitionTailIsMutable();
907 while (input.getBytesUntilLimit() > 0) {
908 transitionTail_.addLong(input.readInt64());
910 input.popLimit(limit);
914 long v = input.readInt64();
915 ensureTransitionHeadIsMutable();
916 transitionHead_.addLong(v);
920 int length = input.readRawVarint32();
921 int limit = input.pushLimit(length);
922 ensureTransitionHeadIsMutable();
923 while (input.getBytesUntilLimit() > 0) {
924 transitionHead_.addLong(input.readInt64());
926 input.popLimit(limit);
930 long v = input.readInt64();
931 ensureTransitionLabelIsMutable();
932 transitionLabel_.addLong(v);
936 int length = input.readRawVarint32();
937 int limit = input.pushLimit(length);
938 ensureTransitionLabelIsMutable();
939 while (input.getBytesUntilLimit() > 0) {
940 transitionLabel_.addLong(input.readInt64());
942 input.popLimit(limit);
946 int v = input.readInt32();
947 ensureVarsIsMutable();
952 int length = input.readRawVarint32();
953 int limit = input.pushLimit(length);
954 ensureVarsIsMutable();
955 while (input.getBytesUntilLimit() > 0) {
956 vars_.addInt(input.readInt32());
958 input.popLimit(limit);
964 com.google.ortools.sat.LinearExpressionProto.parser(),
966 if (exprsBuilder_ ==
null) {
967 ensureExprsIsMutable();
970 exprsBuilder_.addMessage(m);
975 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
982 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
983 throw e.unwrapIOException();
989 private int bitField0_;
991 private long startingState_ ;
1004 return startingState_;
1019 startingState_ = value;
1020 bitField0_ |= 0x00000001;
1035 bitField0_ = (bitField0_ & ~0x00000001);
1036 startingState_ = 0L;
1041 private com.google.protobuf.Internal.LongList finalStates_ = emptyLongList();
1042 private void ensureFinalStatesIsMutable() {
1043 if (!finalStates_.isModifiable()) {
1044 finalStates_ = makeMutableCopy(finalStates_);
1046 bitField0_ |= 0x00000002;
1052 public java.util.List<java.lang.Long>
1054 finalStates_.makeImmutable();
1055 return finalStates_;
1062 return finalStates_.size();
1070 return finalStates_.getLong(index);
1079 int index,
long value) {
1081 ensureFinalStatesIsMutable();
1082 finalStates_.setLong(index, value);
1083 bitField0_ |= 0x00000002;
1094 ensureFinalStatesIsMutable();
1095 finalStates_.addLong(value);
1096 bitField0_ |= 0x00000002;
1106 java.lang.Iterable<? extends java.lang.Long> values) {
1107 ensureFinalStatesIsMutable();
1108 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1109 values, finalStates_);
1110 bitField0_ |= 0x00000002;
1119 finalStates_ = emptyLongList();
1120 bitField0_ = (bitField0_ & ~0x00000002);
1125 private com.google.protobuf.Internal.LongList transitionTail_ = emptyLongList();
1126 private void ensureTransitionTailIsMutable() {
1127 if (!transitionTail_.isModifiable()) {
1128 transitionTail_ = makeMutableCopy(transitionTail_);
1130 bitField0_ |= 0x00000004;
1142 public java.util.List<java.lang.Long>
1144 transitionTail_.makeImmutable();
1145 return transitionTail_;
1158 return transitionTail_.size();
1172 return transitionTail_.getLong(index);
1187 int index,
long value) {
1189 ensureTransitionTailIsMutable();
1190 transitionTail_.setLong(index, value);
1191 bitField0_ |= 0x00000004;
1208 ensureTransitionTailIsMutable();
1209 transitionTail_.addLong(value);
1210 bitField0_ |= 0x00000004;
1226 java.lang.Iterable<? extends java.lang.Long> values) {
1227 ensureTransitionTailIsMutable();
1228 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1229 values, transitionTail_);
1230 bitField0_ |= 0x00000004;
1245 transitionTail_ = emptyLongList();
1246 bitField0_ = (bitField0_ & ~0x00000004);
1251 private com.google.protobuf.Internal.LongList transitionHead_ = emptyLongList();
1252 private void ensureTransitionHeadIsMutable() {
1253 if (!transitionHead_.isModifiable()) {
1254 transitionHead_ = makeMutableCopy(transitionHead_);
1256 bitField0_ |= 0x00000008;
1262 public java.util.List<java.lang.Long>
1264 transitionHead_.makeImmutable();
1265 return transitionHead_;
1272 return transitionHead_.size();
1280 return transitionHead_.getLong(index);
1289 int index,
long value) {
1291 ensureTransitionHeadIsMutable();
1292 transitionHead_.setLong(index, value);
1293 bitField0_ |= 0x00000008;
1304 ensureTransitionHeadIsMutable();
1305 transitionHead_.addLong(value);
1306 bitField0_ |= 0x00000008;
1316 java.lang.Iterable<? extends java.lang.Long> values) {
1317 ensureTransitionHeadIsMutable();
1318 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1319 values, transitionHead_);
1320 bitField0_ |= 0x00000008;
1329 transitionHead_ = emptyLongList();
1330 bitField0_ = (bitField0_ & ~0x00000008);
1335 private com.google.protobuf.Internal.LongList transitionLabel_ = emptyLongList();
1336 private void ensureTransitionLabelIsMutable() {
1337 if (!transitionLabel_.isModifiable()) {
1338 transitionLabel_ = makeMutableCopy(transitionLabel_);
1340 bitField0_ |= 0x00000010;
1346 public java.util.List<java.lang.Long>
1348 transitionLabel_.makeImmutable();
1349 return transitionLabel_;
1356 return transitionLabel_.size();
1364 return transitionLabel_.getLong(index);
1373 int index,
long value) {
1375 ensureTransitionLabelIsMutable();
1376 transitionLabel_.setLong(index, value);
1377 bitField0_ |= 0x00000010;
1388 ensureTransitionLabelIsMutable();
1389 transitionLabel_.addLong(value);
1390 bitField0_ |= 0x00000010;
1400 java.lang.Iterable<? extends java.lang.Long> values) {
1401 ensureTransitionLabelIsMutable();
1402 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1403 values, transitionLabel_);
1404 bitField0_ |= 0x00000010;
1413 transitionLabel_ = emptyLongList();
1414 bitField0_ = (bitField0_ & ~0x00000010);
1419 private com.google.protobuf.Internal.IntList vars_ = emptyIntList();
1420 private void ensureVarsIsMutable() {
1421 if (!vars_.isModifiable()) {
1422 vars_ = makeMutableCopy(vars_);
1424 bitField0_ |= 0x00000020;
1434 public java.util.List<java.lang.Integer>
1436 vars_.makeImmutable();
1448 return vars_.size();
1460 return vars_.getInt(index);
1473 int index,
int value) {
1475 ensureVarsIsMutable();
1476 vars_.setInt(index, value);
1477 bitField0_ |= 0x00000020;
1492 ensureVarsIsMutable();
1493 vars_.addInt(value);
1494 bitField0_ |= 0x00000020;
1508 java.lang.Iterable<? extends java.lang.Integer> values) {
1509 ensureVarsIsMutable();
1510 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1512 bitField0_ |= 0x00000020;
1525 vars_ = emptyIntList();
1526 bitField0_ = (bitField0_ & ~0x00000020);
1531 private java.util.List<com.google.ortools.sat.LinearExpressionProto> exprs_ =
1532 java.util.Collections.emptyList();
1533 private void ensureExprsIsMutable() {
1534 if (!((bitField0_ & 0x00000040) != 0)) {
1535 exprs_ =
new java.util.ArrayList<com.google.ortools.sat.LinearExpressionProto>(exprs_);
1536 bitField0_ |= 0x00000040;
1540 private com.google.protobuf.RepeatedFieldBuilder<
1541 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> exprsBuilder_;
1552 public java.util.List<com.google.ortools.sat.LinearExpressionProto>
getExprsList() {
1553 if (exprsBuilder_ ==
null) {
1554 return java.util.Collections.unmodifiableList(exprs_);
1556 return exprsBuilder_.getMessageList();
1569 if (exprsBuilder_ ==
null) {
1570 return exprs_.size();
1572 return exprsBuilder_.getCount();
1585 if (exprsBuilder_ ==
null) {
1586 return exprs_.get(index);
1588 return exprsBuilder_.getMessage(index);
1601 int index, com.google.ortools.sat.LinearExpressionProto value) {
1602 if (exprsBuilder_ ==
null) {
1603 if (value ==
null) {
1604 throw new NullPointerException();
1606 ensureExprsIsMutable();
1607 exprs_.set(index, value);
1610 exprsBuilder_.setMessage(index, value);
1624 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1625 if (exprsBuilder_ ==
null) {
1626 ensureExprsIsMutable();
1627 exprs_.set(index, builderForValue.build());
1630 exprsBuilder_.setMessage(index, builderForValue.build());
1643 public Builder
addExprs(com.google.ortools.sat.LinearExpressionProto value) {
1644 if (exprsBuilder_ ==
null) {
1645 if (value ==
null) {
1646 throw new NullPointerException();
1648 ensureExprsIsMutable();
1652 exprsBuilder_.addMessage(value);
1666 int index, com.google.ortools.sat.LinearExpressionProto value) {
1667 if (exprsBuilder_ ==
null) {
1668 if (value ==
null) {
1669 throw new NullPointerException();
1671 ensureExprsIsMutable();
1672 exprs_.add(index, value);
1675 exprsBuilder_.addMessage(index, value);
1689 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1690 if (exprsBuilder_ ==
null) {
1691 ensureExprsIsMutable();
1692 exprs_.add(builderForValue.build());
1695 exprsBuilder_.addMessage(builderForValue.build());
1709 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1710 if (exprsBuilder_ ==
null) {
1711 ensureExprsIsMutable();
1712 exprs_.add(index, builderForValue.build());
1715 exprsBuilder_.addMessage(index, builderForValue.build());
1729 java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto> values) {
1730 if (exprsBuilder_ ==
null) {
1731 ensureExprsIsMutable();
1732 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1736 exprsBuilder_.addAllMessages(values);
1750 if (exprsBuilder_ ==
null) {
1751 exprs_ = java.util.Collections.emptyList();
1752 bitField0_ = (bitField0_ & ~0x00000040);
1755 exprsBuilder_.clear();
1769 if (exprsBuilder_ ==
null) {
1770 ensureExprsIsMutable();
1771 exprs_.remove(index);
1774 exprsBuilder_.remove(index);
1789 return getExprsFieldBuilder().getBuilder(index);
1802 if (exprsBuilder_ ==
null) {
1803 return exprs_.get(index); }
else {
1804 return exprsBuilder_.getMessageOrBuilder(index);
1816 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1818 if (exprsBuilder_ !=
null) {
1819 return exprsBuilder_.getMessageOrBuilderList();
1821 return java.util.Collections.unmodifiableList(exprs_);
1834 return getExprsFieldBuilder().addBuilder(
1835 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1848 return getExprsFieldBuilder().addBuilder(
1849 index, com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
1860 public java.util.List<com.google.ortools.sat.LinearExpressionProto.Builder>
1862 return getExprsFieldBuilder().getBuilderList();
1864 private com.google.protobuf.RepeatedFieldBuilder<
1865 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1866 getExprsFieldBuilder() {
1867 if (exprsBuilder_ ==
null) {
1868 exprsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1869 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
1871 ((bitField0_ & 0x00000040) != 0),
1872 getParentForChildren(),
1876 return exprsBuilder_;
1885 DEFAULT_INSTANCE =
new com.google.ortools.sat.AutomatonConstraintProto();
1889 return DEFAULT_INSTANCE;
1896 com.google.protobuf.CodedInputStream input,
1897 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1898 throws com.google.protobuf.InvalidProtocolBufferException {
1901 builder.mergeFrom(input, extensionRegistry);
1902 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1903 throw e.setUnfinishedMessage(builder.buildPartial());
1904 }
catch (com.google.protobuf.UninitializedMessageException e) {
1905 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1906 }
catch (java.io.IOException e) {
1907 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1908 .setUnfinishedMessage(builder.buildPartial());
1910 return builder.buildPartial();
1914 public static com.google.protobuf.Parser<AutomatonConstraintProto>
parser() {
1925 return DEFAULT_INSTANCE;