5package com.google.ortools.sat;
25 com.google.protobuf.GeneratedMessageV3 implements
28private static final long serialVersionUID = 0L;
37 @SuppressWarnings({
"unused"})
39 UnusedPrivateParameter unused) {
43 public static final com.google.protobuf.Descriptors.Descriptor
45 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
49 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
51 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_fieldAccessorTable
52 .ensureFieldAccessorsInitialized(
53 com.google.ortools.sat.IntervalConstraintProto.class, com.google.ortools.sat.IntervalConstraintProto.Builder.class);
56 private int bitField0_;
65 return ((bitField0_ & 0x00000001) != 0);
73 return start_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : start_;
80 return start_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : start_;
91 return ((bitField0_ & 0x00000002) != 0);
99 return end_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : end_;
106 return end_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : end_;
117 return ((bitField0_ & 0x00000004) != 0);
125 return size_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : size_;
132 return size_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : size_;
135 private byte memoizedIsInitialized = -1;
142 memoizedIsInitialized = 1;
147 public void writeTo(com.google.protobuf.CodedOutputStream output)
148 throws java.io.IOException {
149 if (((bitField0_ & 0x00000001) != 0)) {
152 if (((bitField0_ & 0x00000002) != 0)) {
153 output.writeMessage(5,
getEnd());
155 if (((bitField0_ & 0x00000004) != 0)) {
156 output.writeMessage(6,
getSize());
158 getUnknownFields().writeTo(output);
163 int size = memoizedSize;
164 if (size != -1)
return size;
167 if (((bitField0_ & 0x00000001) != 0)) {
168 size += com.google.protobuf.CodedOutputStream
171 if (((bitField0_ & 0x00000002) != 0)) {
172 size += com.google.protobuf.CodedOutputStream
173 .computeMessageSize(5,
getEnd());
175 if (((bitField0_ & 0x00000004) != 0)) {
176 size += com.google.protobuf.CodedOutputStream
177 .computeMessageSize(6,
getSize());
179 size += getUnknownFields().getSerializedSize();
185 public boolean equals(
final java.lang.Object obj) {
189 if (!(obj instanceof com.google.ortools.sat.IntervalConstraintProto)) {
190 return super.equals(obj);
209 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
215 if (memoizedHashCode != 0) {
216 return memoizedHashCode;
232 hash = (29 * hash) + getUnknownFields().hashCode();
233 memoizedHashCode = hash;
238 java.nio.ByteBuffer data)
239 throws com.google.protobuf.InvalidProtocolBufferException {
240 return PARSER.parseFrom(data);
243 java.nio.ByteBuffer data,
244 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
245 throws com.google.protobuf.InvalidProtocolBufferException {
246 return PARSER.parseFrom(data, extensionRegistry);
249 com.google.protobuf.ByteString data)
250 throws com.google.protobuf.InvalidProtocolBufferException {
251 return PARSER.parseFrom(data);
254 com.google.protobuf.ByteString data,
255 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
256 throws com.google.protobuf.InvalidProtocolBufferException {
257 return PARSER.parseFrom(data, extensionRegistry);
260 throws com.google.protobuf.InvalidProtocolBufferException {
261 return PARSER.parseFrom(data);
265 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
266 throws com.google.protobuf.InvalidProtocolBufferException {
267 return PARSER.parseFrom(data, extensionRegistry);
270 throws java.io.IOException {
271 return com.google.protobuf.GeneratedMessageV3
272 .parseWithIOException(PARSER, input);
275 java.io.InputStream input,
276 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
277 throws java.io.IOException {
278 return com.google.protobuf.GeneratedMessageV3
279 .parseWithIOException(PARSER, input, extensionRegistry);
283 throws java.io.IOException {
284 return com.google.protobuf.GeneratedMessageV3
285 .parseDelimitedWithIOException(PARSER, input);
289 java.io.InputStream input,
290 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
291 throws java.io.IOException {
292 return com.google.protobuf.GeneratedMessageV3
293 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
296 com.google.protobuf.CodedInputStream input)
297 throws java.io.IOException {
298 return com.google.protobuf.GeneratedMessageV3
299 .parseWithIOException(PARSER, input);
302 com.google.protobuf.CodedInputStream input,
303 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
304 throws java.io.IOException {
305 return com.google.protobuf.GeneratedMessageV3
306 .parseWithIOException(PARSER, input, extensionRegistry);
319 return this == DEFAULT_INSTANCE
325 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
347 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
350 public static final com.google.protobuf.Descriptors.Descriptor
352 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
356 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
358 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_fieldAccessorTable
359 .ensureFieldAccessorsInitialized(
360 com.google.ortools.sat.IntervalConstraintProto.class, com.google.ortools.sat.IntervalConstraintProto.Builder.class);
365 maybeForceBuilderInitialization();
369 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
371 maybeForceBuilderInitialization();
373 private void maybeForceBuilderInitialization() {
374 if (com.google.protobuf.GeneratedMessageV3
375 .alwaysUseFieldBuilders) {
376 getStartFieldBuilder();
377 getEndFieldBuilder();
378 getSizeFieldBuilder();
386 if (startBuilder_ !=
null) {
387 startBuilder_.dispose();
388 startBuilder_ =
null;
391 if (endBuilder_ !=
null) {
392 endBuilder_.dispose();
396 if (sizeBuilder_ !=
null) {
397 sizeBuilder_.dispose();
404 public com.google.protobuf.Descriptors.Descriptor
406 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
411 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
418 throw newUninitializedMessageException(result);
426 if (bitField0_ != 0) { buildPartial0(result); }
431 private void buildPartial0(com.google.ortools.sat.IntervalConstraintProto result) {
432 int from_bitField0_ = bitField0_;
433 int to_bitField0_ = 0;
434 if (((from_bitField0_ & 0x00000001) != 0)) {
435 result.start_ = startBuilder_ ==
null
437 : startBuilder_.build();
438 to_bitField0_ |= 0x00000001;
440 if (((from_bitField0_ & 0x00000002) != 0)) {
441 result.end_ = endBuilder_ ==
null
443 : endBuilder_.build();
444 to_bitField0_ |= 0x00000002;
446 if (((from_bitField0_ & 0x00000004) != 0)) {
447 result.size_ = sizeBuilder_ ==
null
449 : sizeBuilder_.build();
450 to_bitField0_ |= 0x00000004;
452 result.bitField0_ |= to_bitField0_;
457 return super.
clone();
461 com.google.protobuf.Descriptors.FieldDescriptor field,
462 java.lang.Object value) {
463 return super.
setField(field, value);
467 com.google.protobuf.Descriptors.FieldDescriptor field) {
472 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
477 com.google.protobuf.Descriptors.FieldDescriptor field,
478 int index, java.lang.Object value) {
483 com.google.protobuf.Descriptors.FieldDescriptor field,
484 java.lang.Object value) {
489 if (other instanceof com.google.ortools.sat.IntervalConstraintProto) {
490 return mergeFrom((com.google.ortools.sat.IntervalConstraintProto)other);
492 super.mergeFrom(other);
498 if (other == com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance())
return this;
499 if (other.hasStart()) {
502 if (other.hasEnd()) {
505 if (other.hasSize()) {
520 com.google.protobuf.CodedInputStream input,
521 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
522 throws java.io.IOException {
523 if (extensionRegistry ==
null) {
524 throw new java.lang.NullPointerException();
527 boolean done =
false;
529 int tag = input.readTag();
536 getStartFieldBuilder().getBuilder(),
538 bitField0_ |= 0x00000001;
543 getEndFieldBuilder().getBuilder(),
545 bitField0_ |= 0x00000002;
550 getSizeFieldBuilder().getBuilder(),
552 bitField0_ |= 0x00000004;
556 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
563 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
564 throw e.unwrapIOException();
570 private int bitField0_;
573 private com.google.protobuf.SingleFieldBuilderV3<
574 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> startBuilder_;
580 return ((bitField0_ & 0x00000001) != 0);
587 if (startBuilder_ ==
null) {
588 return start_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : start_;
590 return startBuilder_.getMessage();
597 if (startBuilder_ ==
null) {
599 throw new NullPointerException();
603 startBuilder_.setMessage(value);
605 bitField0_ |= 0x00000001;
613 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
614 if (startBuilder_ ==
null) {
615 start_ = builderForValue.build();
617 startBuilder_.setMessage(builderForValue.build());
619 bitField0_ |= 0x00000001;
627 if (startBuilder_ ==
null) {
628 if (((bitField0_ & 0x00000001) != 0) &&
630 start_ != com.google.ortools.sat.LinearExpressionProto.getDefaultInstance()) {
636 startBuilder_.mergeFrom(value);
638 if (start_ !=
null) {
639 bitField0_ |= 0x00000001;
648 bitField0_ = (bitField0_ & ~0x00000001);
650 if (startBuilder_ !=
null) {
651 startBuilder_.dispose();
652 startBuilder_ =
null;
661 bitField0_ |= 0x00000001;
663 return getStartFieldBuilder().getBuilder();
669 if (startBuilder_ !=
null) {
670 return startBuilder_.getMessageOrBuilder();
672 return start_ ==
null ?
673 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : start_;
679 private com.google.protobuf.SingleFieldBuilderV3<
680 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
681 getStartFieldBuilder() {
682 if (startBuilder_ ==
null) {
683 startBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
684 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
686 getParentForChildren(),
690 return startBuilder_;
694 private com.google.protobuf.SingleFieldBuilderV3<
695 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> endBuilder_;
701 return ((bitField0_ & 0x00000002) != 0);
708 if (endBuilder_ ==
null) {
709 return end_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : end_;
711 return endBuilder_.getMessage();
718 if (endBuilder_ ==
null) {
720 throw new NullPointerException();
724 endBuilder_.setMessage(value);
726 bitField0_ |= 0x00000002;
734 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
735 if (endBuilder_ ==
null) {
736 end_ = builderForValue.build();
738 endBuilder_.setMessage(builderForValue.build());
740 bitField0_ |= 0x00000002;
748 if (endBuilder_ ==
null) {
749 if (((bitField0_ & 0x00000002) != 0) &&
751 end_ != com.google.ortools.sat.LinearExpressionProto.getDefaultInstance()) {
757 endBuilder_.mergeFrom(value);
760 bitField0_ |= 0x00000002;
769 bitField0_ = (bitField0_ & ~0x00000002);
771 if (endBuilder_ !=
null) {
772 endBuilder_.dispose();
782 bitField0_ |= 0x00000002;
784 return getEndFieldBuilder().getBuilder();
790 if (endBuilder_ !=
null) {
791 return endBuilder_.getMessageOrBuilder();
793 return end_ ==
null ?
794 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : end_;
800 private com.google.protobuf.SingleFieldBuilderV3<
801 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
802 getEndFieldBuilder() {
803 if (endBuilder_ ==
null) {
804 endBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
805 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
807 getParentForChildren(),
815 private com.google.protobuf.SingleFieldBuilderV3<
816 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> sizeBuilder_;
822 return ((bitField0_ & 0x00000004) != 0);
829 if (sizeBuilder_ ==
null) {
830 return size_ ==
null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : size_;
832 return sizeBuilder_.getMessage();
839 if (sizeBuilder_ ==
null) {
841 throw new NullPointerException();
845 sizeBuilder_.setMessage(value);
847 bitField0_ |= 0x00000004;
855 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
856 if (sizeBuilder_ ==
null) {
857 size_ = builderForValue.build();
859 sizeBuilder_.setMessage(builderForValue.build());
861 bitField0_ |= 0x00000004;
869 if (sizeBuilder_ ==
null) {
870 if (((bitField0_ & 0x00000004) != 0) &&
872 size_ != com.google.ortools.sat.LinearExpressionProto.getDefaultInstance()) {
878 sizeBuilder_.mergeFrom(value);
881 bitField0_ |= 0x00000004;
890 bitField0_ = (bitField0_ & ~0x00000004);
892 if (sizeBuilder_ !=
null) {
893 sizeBuilder_.dispose();
903 bitField0_ |= 0x00000004;
905 return getSizeFieldBuilder().getBuilder();
911 if (sizeBuilder_ !=
null) {
912 return sizeBuilder_.getMessageOrBuilder();
914 return size_ ==
null ?
915 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : size_;
921 private com.google.protobuf.SingleFieldBuilderV3<
922 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
923 getSizeFieldBuilder() {
924 if (sizeBuilder_ ==
null) {
925 sizeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
926 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
928 getParentForChildren(),
936 final com.google.protobuf.UnknownFieldSet unknownFields) {
942 final com.google.protobuf.UnknownFieldSet unknownFields) {
953 DEFAULT_INSTANCE =
new com.google.ortools.sat.IntervalConstraintProto();
957 return DEFAULT_INSTANCE;
964 com.google.protobuf.CodedInputStream input,
965 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
966 throws com.google.protobuf.InvalidProtocolBufferException {
969 builder.mergeFrom(input, extensionRegistry);
970 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
971 throw e.setUnfinishedMessage(builder.buildPartial());
972 }
catch (com.google.protobuf.UninitializedMessageException e) {
973 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
974 }
catch (java.io.IOException e) {
975 throw new com.google.protobuf.InvalidProtocolBufferException(e)
976 .setUnfinishedMessage(builder.buildPartial());
978 return builder.buildPartial();
993 return DEFAULT_INSTANCE;