Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
IntervalConstraintProto.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/sat/cp_model.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.sat;
6
24public final class IntervalConstraintProto extends
25 com.google.protobuf.GeneratedMessage implements
26 // @@protoc_insertion_point(message_implements:operations_research.sat.IntervalConstraintProto)
28private static final long serialVersionUID = 0L;
29 static {
30 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
31 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
32 /* major= */ 4,
33 /* minor= */ 26,
34 /* patch= */ 1,
35 /* suffix= */ "",
36 IntervalConstraintProto.class.getName());
37 }
38 // Use IntervalConstraintProto.newBuilder() to construct.
39 private IntervalConstraintProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
40 super(builder);
41 }
42 private IntervalConstraintProto() {
43 }
44
45 public static final com.google.protobuf.Descriptors.Descriptor
47 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
48 }
49
50 @java.lang.Override
51 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
53 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_fieldAccessorTable
54 .ensureFieldAccessorsInitialized(
55 com.google.ortools.sat.IntervalConstraintProto.class, com.google.ortools.sat.IntervalConstraintProto.Builder.class);
56 }
57
58 private int bitField0_;
59 public static final int START_FIELD_NUMBER = 4;
65 @java.lang.Override
66 public boolean hasStart() {
67 return ((bitField0_ & 0x00000001) != 0);
68 }
73 @java.lang.Override
75 return start_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : start_;
76 }
80 @java.lang.Override
82 return start_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : start_;
83 }
84
85 public static final int END_FIELD_NUMBER = 5;
91 @java.lang.Override
92 public boolean hasEnd() {
93 return ((bitField0_ & 0x00000002) != 0);
94 }
99 @java.lang.Override
101 return end_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : end_;
102 }
106 @java.lang.Override
108 return end_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : end_;
109 }
110
111 public static final int SIZE_FIELD_NUMBER = 6;
117 @java.lang.Override
118 public boolean hasSize() {
119 return ((bitField0_ & 0x00000004) != 0);
120 }
125 @java.lang.Override
127 return size_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : size_;
128 }
132 @java.lang.Override
134 return size_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : size_;
135 }
136
137 private byte memoizedIsInitialized = -1;
138 @java.lang.Override
139 public final boolean isInitialized() {
140 byte isInitialized = memoizedIsInitialized;
141 if (isInitialized == 1) return true;
142 if (isInitialized == 0) return false;
143
144 memoizedIsInitialized = 1;
145 return true;
146 }
147
148 @java.lang.Override
149 public void writeTo(com.google.protobuf.CodedOutputStream output)
150 throws java.io.IOException {
151 if (((bitField0_ & 0x00000001) != 0)) {
152 output.writeMessage(4, getStart());
153 }
154 if (((bitField0_ & 0x00000002) != 0)) {
155 output.writeMessage(5, getEnd());
156 }
157 if (((bitField0_ & 0x00000004) != 0)) {
158 output.writeMessage(6, getSize());
159 }
160 getUnknownFields().writeTo(output);
161 }
162
163 @java.lang.Override
164 public int getSerializedSize() {
165 int size = memoizedSize;
166 if (size != -1) return size;
167
168 size = 0;
169 if (((bitField0_ & 0x00000001) != 0)) {
170 size += com.google.protobuf.CodedOutputStream
171 .computeMessageSize(4, getStart());
172 }
173 if (((bitField0_ & 0x00000002) != 0)) {
174 size += com.google.protobuf.CodedOutputStream
175 .computeMessageSize(5, getEnd());
176 }
177 if (((bitField0_ & 0x00000004) != 0)) {
178 size += com.google.protobuf.CodedOutputStream
179 .computeMessageSize(6, getSize());
180 }
181 size += getUnknownFields().getSerializedSize();
182 memoizedSize = size;
183 return size;
184 }
185
186 @java.lang.Override
187 public boolean equals(final java.lang.Object obj) {
188 if (obj == this) {
189 return true;
190 }
191 if (!(obj instanceof com.google.ortools.sat.IntervalConstraintProto)) {
192 return super.equals(obj);
193 }
194 com.google.ortools.sat.IntervalConstraintProto other = (com.google.ortools.sat.IntervalConstraintProto) obj;
195
196 if (hasStart() != other.hasStart()) return false;
197 if (hasStart()) {
198 if (!getStart()
199 .equals(other.getStart())) return false;
200 }
201 if (hasEnd() != other.hasEnd()) return false;
202 if (hasEnd()) {
203 if (!getEnd()
204 .equals(other.getEnd())) return false;
205 }
206 if (hasSize() != other.hasSize()) return false;
207 if (hasSize()) {
208 if (!getSize()
209 .equals(other.getSize())) return false;
210 }
211 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
212 return true;
213 }
214
215 @java.lang.Override
216 public int hashCode() {
217 if (memoizedHashCode != 0) {
218 return memoizedHashCode;
219 }
220 int hash = 41;
221 hash = (19 * hash) + getDescriptor().hashCode();
222 if (hasStart()) {
223 hash = (37 * hash) + START_FIELD_NUMBER;
224 hash = (53 * hash) + getStart().hashCode();
225 }
226 if (hasEnd()) {
227 hash = (37 * hash) + END_FIELD_NUMBER;
228 hash = (53 * hash) + getEnd().hashCode();
229 }
230 if (hasSize()) {
231 hash = (37 * hash) + SIZE_FIELD_NUMBER;
232 hash = (53 * hash) + getSize().hashCode();
233 }
234 hash = (29 * hash) + getUnknownFields().hashCode();
235 memoizedHashCode = hash;
236 return hash;
237 }
238
240 java.nio.ByteBuffer data)
241 throws com.google.protobuf.InvalidProtocolBufferException {
242 return PARSER.parseFrom(data);
243 }
245 java.nio.ByteBuffer data,
246 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
247 throws com.google.protobuf.InvalidProtocolBufferException {
248 return PARSER.parseFrom(data, extensionRegistry);
249 }
251 com.google.protobuf.ByteString data)
252 throws com.google.protobuf.InvalidProtocolBufferException {
253 return PARSER.parseFrom(data);
254 }
256 com.google.protobuf.ByteString data,
257 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
258 throws com.google.protobuf.InvalidProtocolBufferException {
259 return PARSER.parseFrom(data, extensionRegistry);
260 }
262 throws com.google.protobuf.InvalidProtocolBufferException {
263 return PARSER.parseFrom(data);
264 }
266 byte[] data,
267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data, extensionRegistry);
270 }
271 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.io.InputStream input)
272 throws java.io.IOException {
273 return com.google.protobuf.GeneratedMessage
274 .parseWithIOException(PARSER, input);
275 }
277 java.io.InputStream input,
278 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
279 throws java.io.IOException {
280 return com.google.protobuf.GeneratedMessage
281 .parseWithIOException(PARSER, input, extensionRegistry);
282 }
283
285 throws java.io.IOException {
286 return com.google.protobuf.GeneratedMessage
287 .parseDelimitedWithIOException(PARSER, input);
288 }
289
291 java.io.InputStream input,
292 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
293 throws java.io.IOException {
294 return com.google.protobuf.GeneratedMessage
295 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
296 }
298 com.google.protobuf.CodedInputStream input)
299 throws java.io.IOException {
300 return com.google.protobuf.GeneratedMessage
301 .parseWithIOException(PARSER, input);
302 }
304 com.google.protobuf.CodedInputStream input,
305 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseWithIOException(PARSER, input, extensionRegistry);
309 }
310
311 @java.lang.Override
312 public Builder newBuilderForType() { return newBuilder(); }
313 public static Builder newBuilder() {
314 return DEFAULT_INSTANCE.toBuilder();
315 }
316 public static Builder newBuilder(com.google.ortools.sat.IntervalConstraintProto prototype) {
317 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
318 }
319 @java.lang.Override
321 return this == DEFAULT_INSTANCE
322 ? new Builder() : new Builder().mergeFrom(this);
323 }
324
325 @java.lang.Override
327 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
328 Builder builder = new Builder(parent);
329 return builder;
330 }
348 public static final class Builder extends
349 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
350 // @@protoc_insertion_point(builder_implements:operations_research.sat.IntervalConstraintProto)
351 com.google.ortools.sat.IntervalConstraintProtoOrBuilder {
352 public static final com.google.protobuf.Descriptors.Descriptor
354 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
355 }
356
357 @java.lang.Override
358 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
360 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_fieldAccessorTable
361 .ensureFieldAccessorsInitialized(
362 com.google.ortools.sat.IntervalConstraintProto.class, com.google.ortools.sat.IntervalConstraintProto.Builder.class);
363 }
364
365 // Construct using com.google.ortools.sat.IntervalConstraintProto.newBuilder()
366 private Builder() {
367 maybeForceBuilderInitialization();
368 }
369
370 private Builder(
371 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
372 super(parent);
373 maybeForceBuilderInitialization();
374 }
375 private void maybeForceBuilderInitialization() {
376 if (com.google.protobuf.GeneratedMessage
377 .alwaysUseFieldBuilders) {
378 getStartFieldBuilder();
379 getEndFieldBuilder();
380 getSizeFieldBuilder();
381 }
382 }
383 @java.lang.Override
384 public Builder clear() {
385 super.clear();
386 bitField0_ = 0;
387 start_ = null;
388 if (startBuilder_ != null) {
389 startBuilder_.dispose();
390 startBuilder_ = null;
391 }
392 end_ = null;
393 if (endBuilder_ != null) {
394 endBuilder_.dispose();
395 endBuilder_ = null;
396 }
397 size_ = null;
398 if (sizeBuilder_ != null) {
399 sizeBuilder_.dispose();
400 sizeBuilder_ = null;
401 }
402 return this;
403 }
404
405 @java.lang.Override
406 public com.google.protobuf.Descriptors.Descriptor
408 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
409 }
410
411 @java.lang.Override
413 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
414 }
415
416 @java.lang.Override
419 if (!result.isInitialized()) {
420 throw newUninitializedMessageException(result);
421 }
422 return result;
423 }
424
425 @java.lang.Override
427 com.google.ortools.sat.IntervalConstraintProto result = new com.google.ortools.sat.IntervalConstraintProto(this);
428 if (bitField0_ != 0) { buildPartial0(result); }
429 onBuilt();
430 return result;
431 }
432
433 private void buildPartial0(com.google.ortools.sat.IntervalConstraintProto result) {
434 int from_bitField0_ = bitField0_;
435 int to_bitField0_ = 0;
436 if (((from_bitField0_ & 0x00000001) != 0)) {
437 result.start_ = startBuilder_ == null
438 ? start_
439 : startBuilder_.build();
440 to_bitField0_ |= 0x00000001;
441 }
442 if (((from_bitField0_ & 0x00000002) != 0)) {
443 result.end_ = endBuilder_ == null
444 ? end_
445 : endBuilder_.build();
446 to_bitField0_ |= 0x00000002;
447 }
448 if (((from_bitField0_ & 0x00000004) != 0)) {
449 result.size_ = sizeBuilder_ == null
450 ? size_
451 : sizeBuilder_.build();
452 to_bitField0_ |= 0x00000004;
453 }
454 result.bitField0_ |= to_bitField0_;
455 }
456
457 @java.lang.Override
458 public Builder mergeFrom(com.google.protobuf.Message other) {
459 if (other instanceof com.google.ortools.sat.IntervalConstraintProto) {
460 return mergeFrom((com.google.ortools.sat.IntervalConstraintProto)other);
461 } else {
462 super.mergeFrom(other);
463 return this;
464 }
465 }
466
467 public Builder mergeFrom(com.google.ortools.sat.IntervalConstraintProto other) {
468 if (other == com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance()) return this;
469 if (other.hasStart()) {
470 mergeStart(other.getStart());
471 }
472 if (other.hasEnd()) {
473 mergeEnd(other.getEnd());
474 }
475 if (other.hasSize()) {
476 mergeSize(other.getSize());
477 }
478 this.mergeUnknownFields(other.getUnknownFields());
479 onChanged();
480 return this;
481 }
482
483 @java.lang.Override
484 public final boolean isInitialized() {
485 return true;
486 }
487
488 @java.lang.Override
490 com.google.protobuf.CodedInputStream input,
491 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
492 throws java.io.IOException {
493 if (extensionRegistry == null) {
494 throw new java.lang.NullPointerException();
495 }
496 try {
497 boolean done = false;
498 while (!done) {
499 int tag = input.readTag();
500 switch (tag) {
501 case 0:
502 done = true;
503 break;
504 case 34: {
505 input.readMessage(
506 getStartFieldBuilder().getBuilder(),
507 extensionRegistry);
508 bitField0_ |= 0x00000001;
509 break;
510 } // case 34
511 case 42: {
512 input.readMessage(
513 getEndFieldBuilder().getBuilder(),
514 extensionRegistry);
515 bitField0_ |= 0x00000002;
516 break;
517 } // case 42
518 case 50: {
519 input.readMessage(
520 getSizeFieldBuilder().getBuilder(),
521 extensionRegistry);
522 bitField0_ |= 0x00000004;
523 break;
524 } // case 50
525 default: {
526 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
527 done = true; // was an endgroup tag
528 }
529 break;
530 } // default:
531 } // switch (tag)
532 } // while (!done)
533 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
534 throw e.unwrapIOException();
535 } finally {
536 onChanged();
537 } // finally
538 return this;
539 }
540 private int bitField0_;
541
543 private com.google.protobuf.SingleFieldBuilder<
544 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> startBuilder_;
549 public boolean hasStart() {
550 return ((bitField0_ & 0x00000001) != 0);
551 }
557 if (startBuilder_ == null) {
558 return start_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : start_;
559 } else {
560 return startBuilder_.getMessage();
561 }
562 }
566 public Builder setStart(com.google.ortools.sat.LinearExpressionProto value) {
567 if (startBuilder_ == null) {
568 if (value == null) {
569 throw new NullPointerException();
570 }
571 start_ = value;
572 } else {
573 startBuilder_.setMessage(value);
574 }
575 bitField0_ |= 0x00000001;
576 onChanged();
577 return this;
578 }
583 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
584 if (startBuilder_ == null) {
585 start_ = builderForValue.build();
586 } else {
587 startBuilder_.setMessage(builderForValue.build());
588 }
589 bitField0_ |= 0x00000001;
590 onChanged();
591 return this;
592 }
596 public Builder mergeStart(com.google.ortools.sat.LinearExpressionProto value) {
597 if (startBuilder_ == null) {
598 if (((bitField0_ & 0x00000001) != 0) &&
599 start_ != null &&
600 start_ != com.google.ortools.sat.LinearExpressionProto.getDefaultInstance()) {
601 getStartBuilder().mergeFrom(value);
602 } else {
603 start_ = value;
604 }
605 } else {
606 startBuilder_.mergeFrom(value);
607 }
608 if (start_ != null) {
609 bitField0_ |= 0x00000001;
610 onChanged();
611 }
612 return this;
613 }
618 bitField0_ = (bitField0_ & ~0x00000001);
619 start_ = null;
620 if (startBuilder_ != null) {
621 startBuilder_.dispose();
622 startBuilder_ = null;
623 }
624 onChanged();
625 return this;
626 }
631 bitField0_ |= 0x00000001;
632 onChanged();
633 return getStartFieldBuilder().getBuilder();
634 }
639 if (startBuilder_ != null) {
640 return startBuilder_.getMessageOrBuilder();
641 } else {
642 return start_ == null ?
643 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : start_;
644 }
645 }
649 private com.google.protobuf.SingleFieldBuilder<
650 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
651 getStartFieldBuilder() {
652 if (startBuilder_ == null) {
653 startBuilder_ = new com.google.protobuf.SingleFieldBuilder<
654 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
655 getStart(),
656 getParentForChildren(),
657 isClean());
658 start_ = null;
659 }
660 return startBuilder_;
661 }
662
664 private com.google.protobuf.SingleFieldBuilder<
665 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> endBuilder_;
670 public boolean hasEnd() {
671 return ((bitField0_ & 0x00000002) != 0);
672 }
678 if (endBuilder_ == null) {
679 return end_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : end_;
680 } else {
681 return endBuilder_.getMessage();
682 }
683 }
687 public Builder setEnd(com.google.ortools.sat.LinearExpressionProto value) {
688 if (endBuilder_ == null) {
689 if (value == null) {
690 throw new NullPointerException();
691 }
692 end_ = value;
693 } else {
694 endBuilder_.setMessage(value);
695 }
696 bitField0_ |= 0x00000002;
697 onChanged();
698 return this;
699 }
704 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
705 if (endBuilder_ == null) {
706 end_ = builderForValue.build();
707 } else {
708 endBuilder_.setMessage(builderForValue.build());
709 }
710 bitField0_ |= 0x00000002;
711 onChanged();
712 return this;
713 }
717 public Builder mergeEnd(com.google.ortools.sat.LinearExpressionProto value) {
718 if (endBuilder_ == null) {
719 if (((bitField0_ & 0x00000002) != 0) &&
720 end_ != null &&
721 end_ != com.google.ortools.sat.LinearExpressionProto.getDefaultInstance()) {
722 getEndBuilder().mergeFrom(value);
723 } else {
724 end_ = value;
725 }
726 } else {
727 endBuilder_.mergeFrom(value);
728 }
729 if (end_ != null) {
730 bitField0_ |= 0x00000002;
731 onChanged();
732 }
733 return this;
734 }
738 public Builder clearEnd() {
739 bitField0_ = (bitField0_ & ~0x00000002);
740 end_ = null;
741 if (endBuilder_ != null) {
742 endBuilder_.dispose();
743 endBuilder_ = null;
744 }
745 onChanged();
746 return this;
747 }
752 bitField0_ |= 0x00000002;
753 onChanged();
754 return getEndFieldBuilder().getBuilder();
755 }
760 if (endBuilder_ != null) {
761 return endBuilder_.getMessageOrBuilder();
762 } else {
763 return end_ == null ?
764 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : end_;
765 }
766 }
770 private com.google.protobuf.SingleFieldBuilder<
771 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
772 getEndFieldBuilder() {
773 if (endBuilder_ == null) {
774 endBuilder_ = new com.google.protobuf.SingleFieldBuilder<
775 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
776 getEnd(),
777 getParentForChildren(),
778 isClean());
779 end_ = null;
780 }
781 return endBuilder_;
782 }
783
785 private com.google.protobuf.SingleFieldBuilder<
786 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> sizeBuilder_;
791 public boolean hasSize() {
792 return ((bitField0_ & 0x00000004) != 0);
793 }
799 if (sizeBuilder_ == null) {
800 return size_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : size_;
801 } else {
802 return sizeBuilder_.getMessage();
803 }
804 }
808 public Builder setSize(com.google.ortools.sat.LinearExpressionProto value) {
809 if (sizeBuilder_ == null) {
810 if (value == null) {
811 throw new NullPointerException();
812 }
813 size_ = value;
814 } else {
815 sizeBuilder_.setMessage(value);
816 }
817 bitField0_ |= 0x00000004;
818 onChanged();
819 return this;
820 }
825 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
826 if (sizeBuilder_ == null) {
827 size_ = builderForValue.build();
828 } else {
829 sizeBuilder_.setMessage(builderForValue.build());
830 }
831 bitField0_ |= 0x00000004;
832 onChanged();
833 return this;
834 }
838 public Builder mergeSize(com.google.ortools.sat.LinearExpressionProto value) {
839 if (sizeBuilder_ == null) {
840 if (((bitField0_ & 0x00000004) != 0) &&
841 size_ != null &&
842 size_ != com.google.ortools.sat.LinearExpressionProto.getDefaultInstance()) {
843 getSizeBuilder().mergeFrom(value);
844 } else {
845 size_ = value;
846 }
847 } else {
848 sizeBuilder_.mergeFrom(value);
849 }
850 if (size_ != null) {
851 bitField0_ |= 0x00000004;
852 onChanged();
853 }
854 return this;
855 }
860 bitField0_ = (bitField0_ & ~0x00000004);
861 size_ = null;
862 if (sizeBuilder_ != null) {
863 sizeBuilder_.dispose();
864 sizeBuilder_ = null;
865 }
866 onChanged();
867 return this;
868 }
873 bitField0_ |= 0x00000004;
874 onChanged();
875 return getSizeFieldBuilder().getBuilder();
876 }
881 if (sizeBuilder_ != null) {
882 return sizeBuilder_.getMessageOrBuilder();
883 } else {
884 return size_ == null ?
885 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : size_;
886 }
887 }
891 private com.google.protobuf.SingleFieldBuilder<
892 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
893 getSizeFieldBuilder() {
894 if (sizeBuilder_ == null) {
895 sizeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
896 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
897 getSize(),
898 getParentForChildren(),
899 isClean());
900 size_ = null;
901 }
902 return sizeBuilder_;
903 }
904
905 // @@protoc_insertion_point(builder_scope:operations_research.sat.IntervalConstraintProto)
906 }
907
908 // @@protoc_insertion_point(class_scope:operations_research.sat.IntervalConstraintProto)
909 private static final com.google.ortools.sat.IntervalConstraintProto DEFAULT_INSTANCE;
910 static {
911 DEFAULT_INSTANCE = new com.google.ortools.sat.IntervalConstraintProto();
912 }
913
915 return DEFAULT_INSTANCE;
916 }
917
918 private static final com.google.protobuf.Parser<IntervalConstraintProto>
919 PARSER = new com.google.protobuf.AbstractParser<IntervalConstraintProto>() {
920 @java.lang.Override
921 public IntervalConstraintProto parsePartialFrom(
922 com.google.protobuf.CodedInputStream input,
923 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
924 throws com.google.protobuf.InvalidProtocolBufferException {
925 Builder builder = newBuilder();
926 try {
927 builder.mergeFrom(input, extensionRegistry);
928 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
929 throw e.setUnfinishedMessage(builder.buildPartial());
930 } catch (com.google.protobuf.UninitializedMessageException e) {
931 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
932 } catch (java.io.IOException e) {
933 throw new com.google.protobuf.InvalidProtocolBufferException(e)
934 .setUnfinishedMessage(builder.buildPartial());
935 }
936 return builder.buildPartial();
937 }
938 };
939
940 public static com.google.protobuf.Parser<IntervalConstraintProto> parser() {
941 return PARSER;
942 }
943
944 @java.lang.Override
945 public com.google.protobuf.Parser<IntervalConstraintProto> getParserForType() {
946 return PARSER;
947 }
948
949 @java.lang.Override
953
954}
955
Builder setSize(com.google.ortools.sat.LinearExpressionProto value)
Builder setStart(com.google.ortools.sat.LinearExpressionProto value)
com.google.ortools.sat.LinearExpressionProto getEnd()
com.google.ortools.sat.LinearExpressionProto getSize()
com.google.ortools.sat.IntervalConstraintProto build()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder mergeStart(com.google.ortools.sat.LinearExpressionProto value)
com.google.ortools.sat.LinearExpressionProto.Builder getStartBuilder()
com.google.ortools.sat.LinearExpressionProto.Builder getSizeBuilder()
Builder setEnd(com.google.ortools.sat.LinearExpressionProto value)
Builder setEnd(com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
Builder setStart(com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartOrBuilder()
Builder mergeSize(com.google.ortools.sat.LinearExpressionProto value)
com.google.ortools.sat.IntervalConstraintProto getDefaultInstanceForType()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.sat.IntervalConstraintProto buildPartial()
com.google.ortools.sat.LinearExpressionProto.Builder getEndBuilder()
Builder mergeFrom(com.google.ortools.sat.IntervalConstraintProto other)
Builder mergeEnd(com.google.ortools.sat.LinearExpressionProto value)
Builder setSize(com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.sat.LinearExpressionProto getStart()
com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeOrBuilder()
com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndOrBuilder()
static com.google.protobuf.Parser< IntervalConstraintProto > parser()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.protobuf.Parser< IntervalConstraintProto > getParserForType()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndOrBuilder()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.IntervalConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.LinearExpressionProto getSize()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(com.google.protobuf.ByteString data)
com.google.ortools.sat.LinearExpressionProto getEnd()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.nio.ByteBuffer data)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.IntervalConstraintProto getDefaultInstanceForType()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.IntervalConstraintProto getDefaultInstance()
static Builder newBuilder(com.google.ortools.sat.IntervalConstraintProto prototype)
com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeOrBuilder()
void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.ortools.sat.LinearExpressionProto getStart()
com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartOrBuilder()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.sat.IntervalConstraintProto parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(byte[] data)