Java Reference

Java Reference

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
4package com.google.ortools.sat;
5
15public final class IntervalConstraintProto extends
16 com.google.protobuf.GeneratedMessageV3 implements
17 // @@protoc_insertion_point(message_implements:operations_research.sat.IntervalConstraintProto)
19private static final long serialVersionUID = 0L;
20 // Use IntervalConstraintProto.newBuilder() to construct.
21 private IntervalConstraintProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
22 super(builder);
23 }
24 private IntervalConstraintProto() {
25 }
26
27 @java.lang.Override
28 @SuppressWarnings({"unused"})
29 protected java.lang.Object newInstance(
30 UnusedPrivateParameter unused) {
31 return new IntervalConstraintProto();
32 }
33
34 @java.lang.Override
35 public final com.google.protobuf.UnknownFieldSet
37 return this.unknownFields;
38 }
40 com.google.protobuf.CodedInputStream input,
41 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
42 throws com.google.protobuf.InvalidProtocolBufferException {
43 this();
44 if (extensionRegistry == null) {
45 throw new java.lang.NullPointerException();
46 }
47 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
48 com.google.protobuf.UnknownFieldSet.newBuilder();
49 try {
50 boolean done = false;
51 while (!done) {
52 int tag = input.readTag();
53 switch (tag) {
54 case 0:
55 done = true;
56 break;
57 case 8: {
58
59 start_ = input.readInt32();
60 break;
61 }
62 case 16: {
63
64 end_ = input.readInt32();
65 break;
66 }
67 case 24: {
68
69 size_ = input.readInt32();
70 break;
71 }
72 case 34: {
73 com.google.ortools.sat.LinearExpressionProto.Builder subBuilder = null;
74 if (startView_ != null) {
75 subBuilder = startView_.toBuilder();
76 }
77 startView_ = input.readMessage(com.google.ortools.sat.LinearExpressionProto.parser(), extensionRegistry);
78 if (subBuilder != null) {
79 subBuilder.mergeFrom(startView_);
80 startView_ = subBuilder.buildPartial();
81 }
82
83 break;
84 }
85 case 42: {
86 com.google.ortools.sat.LinearExpressionProto.Builder subBuilder = null;
87 if (endView_ != null) {
88 subBuilder = endView_.toBuilder();
89 }
90 endView_ = input.readMessage(com.google.ortools.sat.LinearExpressionProto.parser(), extensionRegistry);
91 if (subBuilder != null) {
92 subBuilder.mergeFrom(endView_);
93 endView_ = subBuilder.buildPartial();
94 }
95
96 break;
97 }
98 case 50: {
99 com.google.ortools.sat.LinearExpressionProto.Builder subBuilder = null;
100 if (sizeView_ != null) {
101 subBuilder = sizeView_.toBuilder();
102 }
103 sizeView_ = input.readMessage(com.google.ortools.sat.LinearExpressionProto.parser(), extensionRegistry);
104 if (subBuilder != null) {
105 subBuilder.mergeFrom(sizeView_);
106 sizeView_ = subBuilder.buildPartial();
107 }
108
109 break;
110 }
111 default: {
112 if (!parseUnknownField(
113 input, unknownFields, extensionRegistry, tag)) {
114 done = true;
115 }
116 break;
117 }
118 }
119 }
120 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
121 throw e.setUnfinishedMessage(this);
122 } catch (java.io.IOException e) {
123 throw new com.google.protobuf.InvalidProtocolBufferException(
124 e).setUnfinishedMessage(this);
125 } finally {
126 this.unknownFields = unknownFields.build();
127 makeExtensionsImmutable();
128 }
129 }
130 public static final com.google.protobuf.Descriptors.Descriptor
132 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
133 }
134
135 @java.lang.Override
136 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
138 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_fieldAccessorTable
139 .ensureFieldAccessorsInitialized(
140 com.google.ortools.sat.IntervalConstraintProto.class, com.google.ortools.sat.IntervalConstraintProto.Builder.class);
141 }
142
143 public static final int START_FIELD_NUMBER = 1;
144 private int start_;
149 @java.lang.Override
150 public int getStart() {
151 return start_;
152 }
153
154 public static final int END_FIELD_NUMBER = 2;
155 private int end_;
160 @java.lang.Override
161 public int getEnd() {
162 return end_;
163 }
164
165 public static final int SIZE_FIELD_NUMBER = 3;
166 private int size_;
171 @java.lang.Override
172 public int getSize() {
173 return size_;
174 }
175
176 public static final int START_VIEW_FIELD_NUMBER = 4;
177 private com.google.ortools.sat.LinearExpressionProto startView_;
198 @java.lang.Override
199 public boolean hasStartView() {
200 return startView_ != null;
201 }
222 @java.lang.Override
223 public com.google.ortools.sat.LinearExpressionProto getStartView() {
224 return startView_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : startView_;
225 }
245 @java.lang.Override
246 public com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartViewOrBuilder() {
247 return getStartView();
248 }
249
250 public static final int END_VIEW_FIELD_NUMBER = 5;
251 private com.google.ortools.sat.LinearExpressionProto endView_;
256 @java.lang.Override
257 public boolean hasEndView() {
258 return endView_ != null;
259 }
264 @java.lang.Override
265 public com.google.ortools.sat.LinearExpressionProto getEndView() {
266 return endView_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : endView_;
267 }
271 @java.lang.Override
272 public com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndViewOrBuilder() {
273 return getEndView();
274 }
275
276 public static final int SIZE_VIEW_FIELD_NUMBER = 6;
277 private com.google.ortools.sat.LinearExpressionProto sizeView_;
282 @java.lang.Override
283 public boolean hasSizeView() {
284 return sizeView_ != null;
285 }
290 @java.lang.Override
291 public com.google.ortools.sat.LinearExpressionProto getSizeView() {
292 return sizeView_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : sizeView_;
293 }
297 @java.lang.Override
298 public com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeViewOrBuilder() {
299 return getSizeView();
300 }
301
302 private byte memoizedIsInitialized = -1;
303 @java.lang.Override
304 public final boolean isInitialized() {
305 byte isInitialized = memoizedIsInitialized;
306 if (isInitialized == 1) return true;
307 if (isInitialized == 0) return false;
308
309 memoizedIsInitialized = 1;
310 return true;
311 }
312
313 @java.lang.Override
314 public void writeTo(com.google.protobuf.CodedOutputStream output)
315 throws java.io.IOException {
316 if (start_ != 0) {
317 output.writeInt32(1, start_);
318 }
319 if (end_ != 0) {
320 output.writeInt32(2, end_);
321 }
322 if (size_ != 0) {
323 output.writeInt32(3, size_);
324 }
325 if (startView_ != null) {
326 output.writeMessage(4, getStartView());
327 }
328 if (endView_ != null) {
329 output.writeMessage(5, getEndView());
330 }
331 if (sizeView_ != null) {
332 output.writeMessage(6, getSizeView());
333 }
334 unknownFields.writeTo(output);
335 }
336
337 @java.lang.Override
338 public int getSerializedSize() {
339 int size = memoizedSize;
340 if (size != -1) return size;
341
342 size = 0;
343 if (start_ != 0) {
344 size += com.google.protobuf.CodedOutputStream
345 .computeInt32Size(1, start_);
346 }
347 if (end_ != 0) {
348 size += com.google.protobuf.CodedOutputStream
349 .computeInt32Size(2, end_);
350 }
351 if (size_ != 0) {
352 size += com.google.protobuf.CodedOutputStream
353 .computeInt32Size(3, size_);
354 }
355 if (startView_ != null) {
356 size += com.google.protobuf.CodedOutputStream
357 .computeMessageSize(4, getStartView());
358 }
359 if (endView_ != null) {
360 size += com.google.protobuf.CodedOutputStream
361 .computeMessageSize(5, getEndView());
362 }
363 if (sizeView_ != null) {
364 size += com.google.protobuf.CodedOutputStream
365 .computeMessageSize(6, getSizeView());
366 }
367 size += unknownFields.getSerializedSize();
368 memoizedSize = size;
369 return size;
370 }
371
372 @java.lang.Override
373 public boolean equals(final java.lang.Object obj) {
374 if (obj == this) {
375 return true;
376 }
377 if (!(obj instanceof com.google.ortools.sat.IntervalConstraintProto)) {
378 return super.equals(obj);
379 }
380 com.google.ortools.sat.IntervalConstraintProto other = (com.google.ortools.sat.IntervalConstraintProto) obj;
381
382 if (getStart()
383 != other.getStart()) return false;
384 if (getEnd()
385 != other.getEnd()) return false;
386 if (getSize()
387 != other.getSize()) return false;
388 if (hasStartView() != other.hasStartView()) return false;
389 if (hasStartView()) {
390 if (!getStartView()
391 .equals(other.getStartView())) return false;
392 }
393 if (hasEndView() != other.hasEndView()) return false;
394 if (hasEndView()) {
395 if (!getEndView()
396 .equals(other.getEndView())) return false;
397 }
398 if (hasSizeView() != other.hasSizeView()) return false;
399 if (hasSizeView()) {
400 if (!getSizeView()
401 .equals(other.getSizeView())) return false;
402 }
403 if (!unknownFields.equals(other.unknownFields)) return false;
404 return true;
405 }
406
407 @java.lang.Override
408 public int hashCode() {
409 if (memoizedHashCode != 0) {
410 return memoizedHashCode;
411 }
412 int hash = 41;
413 hash = (19 * hash) + getDescriptor().hashCode();
414 hash = (37 * hash) + START_FIELD_NUMBER;
415 hash = (53 * hash) + getStart();
416 hash = (37 * hash) + END_FIELD_NUMBER;
417 hash = (53 * hash) + getEnd();
418 hash = (37 * hash) + SIZE_FIELD_NUMBER;
419 hash = (53 * hash) + getSize();
420 if (hasStartView()) {
421 hash = (37 * hash) + START_VIEW_FIELD_NUMBER;
422 hash = (53 * hash) + getStartView().hashCode();
423 }
424 if (hasEndView()) {
425 hash = (37 * hash) + END_VIEW_FIELD_NUMBER;
426 hash = (53 * hash) + getEndView().hashCode();
427 }
428 if (hasSizeView()) {
429 hash = (37 * hash) + SIZE_VIEW_FIELD_NUMBER;
430 hash = (53 * hash) + getSizeView().hashCode();
431 }
432 hash = (29 * hash) + unknownFields.hashCode();
433 memoizedHashCode = hash;
434 return hash;
435 }
436
437 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(
438 java.nio.ByteBuffer data)
439 throws com.google.protobuf.InvalidProtocolBufferException {
440 return PARSER.parseFrom(data);
441 }
442 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(
443 java.nio.ByteBuffer data,
444 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
445 throws com.google.protobuf.InvalidProtocolBufferException {
446 return PARSER.parseFrom(data, extensionRegistry);
447 }
448 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(
449 com.google.protobuf.ByteString data)
450 throws com.google.protobuf.InvalidProtocolBufferException {
451 return PARSER.parseFrom(data);
452 }
453 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(
454 com.google.protobuf.ByteString data,
455 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
456 throws com.google.protobuf.InvalidProtocolBufferException {
457 return PARSER.parseFrom(data, extensionRegistry);
458 }
459 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(byte[] data)
460 throws com.google.protobuf.InvalidProtocolBufferException {
461 return PARSER.parseFrom(data);
462 }
463 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(
464 byte[] data,
465 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
466 throws com.google.protobuf.InvalidProtocolBufferException {
467 return PARSER.parseFrom(data, extensionRegistry);
468 }
469 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.io.InputStream input)
470 throws java.io.IOException {
471 return com.google.protobuf.GeneratedMessageV3
472 .parseWithIOException(PARSER, input);
473 }
474 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(
475 java.io.InputStream input,
476 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
477 throws java.io.IOException {
478 return com.google.protobuf.GeneratedMessageV3
479 .parseWithIOException(PARSER, input, extensionRegistry);
480 }
481 public static com.google.ortools.sat.IntervalConstraintProto parseDelimitedFrom(java.io.InputStream input)
482 throws java.io.IOException {
483 return com.google.protobuf.GeneratedMessageV3
484 .parseDelimitedWithIOException(PARSER, input);
485 }
486 public static com.google.ortools.sat.IntervalConstraintProto parseDelimitedFrom(
487 java.io.InputStream input,
488 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
489 throws java.io.IOException {
490 return com.google.protobuf.GeneratedMessageV3
491 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
492 }
493 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(
494 com.google.protobuf.CodedInputStream input)
495 throws java.io.IOException {
496 return com.google.protobuf.GeneratedMessageV3
497 .parseWithIOException(PARSER, input);
498 }
499 public static com.google.ortools.sat.IntervalConstraintProto parseFrom(
500 com.google.protobuf.CodedInputStream input,
501 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
502 throws java.io.IOException {
503 return com.google.protobuf.GeneratedMessageV3
504 .parseWithIOException(PARSER, input, extensionRegistry);
505 }
506
507 @java.lang.Override
508 public Builder newBuilderForType() { return newBuilder(); }
509 public static Builder newBuilder() {
510 return DEFAULT_INSTANCE.toBuilder();
511 }
512 public static Builder newBuilder(com.google.ortools.sat.IntervalConstraintProto prototype) {
513 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
514 }
515 @java.lang.Override
517 return this == DEFAULT_INSTANCE
518 ? new Builder() : new Builder().mergeFrom(this);
519 }
520
521 @java.lang.Override
523 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
524 Builder builder = new Builder(parent);
525 return builder;
526 }
536 public static final class Builder extends
537 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
538 // @@protoc_insertion_point(builder_implements:operations_research.sat.IntervalConstraintProto)
539 com.google.ortools.sat.IntervalConstraintProtoOrBuilder {
540 public static final com.google.protobuf.Descriptors.Descriptor
542 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
543 }
544
545 @java.lang.Override
546 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
548 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_fieldAccessorTable
549 .ensureFieldAccessorsInitialized(
550 com.google.ortools.sat.IntervalConstraintProto.class, com.google.ortools.sat.IntervalConstraintProto.Builder.class);
551 }
552
553 // Construct using com.google.ortools.sat.IntervalConstraintProto.newBuilder()
554 private Builder() {
555 maybeForceBuilderInitialization();
556 }
557
558 private Builder(
559 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
560 super(parent);
561 maybeForceBuilderInitialization();
562 }
563 private void maybeForceBuilderInitialization() {
564 if (com.google.protobuf.GeneratedMessageV3
565 .alwaysUseFieldBuilders) {
566 }
567 }
568 @java.lang.Override
569 public Builder clear() {
570 super.clear();
571 start_ = 0;
572
573 end_ = 0;
574
575 size_ = 0;
576
577 if (startViewBuilder_ == null) {
578 startView_ = null;
579 } else {
580 startView_ = null;
581 startViewBuilder_ = null;
582 }
583 if (endViewBuilder_ == null) {
584 endView_ = null;
585 } else {
586 endView_ = null;
587 endViewBuilder_ = null;
588 }
589 if (sizeViewBuilder_ == null) {
590 sizeView_ = null;
591 } else {
592 sizeView_ = null;
593 sizeViewBuilder_ = null;
594 }
595 return this;
596 }
597
598 @java.lang.Override
599 public com.google.protobuf.Descriptors.Descriptor
601 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_IntervalConstraintProto_descriptor;
602 }
603
604 @java.lang.Override
605 public com.google.ortools.sat.IntervalConstraintProto getDefaultInstanceForType() {
606 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
607 }
608
609 @java.lang.Override
610 public com.google.ortools.sat.IntervalConstraintProto build() {
611 com.google.ortools.sat.IntervalConstraintProto result = buildPartial();
612 if (!result.isInitialized()) {
613 throw newUninitializedMessageException(result);
614 }
615 return result;
616 }
617
618 @java.lang.Override
619 public com.google.ortools.sat.IntervalConstraintProto buildPartial() {
620 com.google.ortools.sat.IntervalConstraintProto result = new com.google.ortools.sat.IntervalConstraintProto(this);
621 result.start_ = start_;
622 result.end_ = end_;
623 result.size_ = size_;
624 if (startViewBuilder_ == null) {
625 result.startView_ = startView_;
626 } else {
627 result.startView_ = startViewBuilder_.build();
628 }
629 if (endViewBuilder_ == null) {
630 result.endView_ = endView_;
631 } else {
632 result.endView_ = endViewBuilder_.build();
633 }
634 if (sizeViewBuilder_ == null) {
635 result.sizeView_ = sizeView_;
636 } else {
637 result.sizeView_ = sizeViewBuilder_.build();
638 }
639 onBuilt();
640 return result;
641 }
642
643 @java.lang.Override
644 public Builder clone() {
645 return super.clone();
646 }
647 @java.lang.Override
649 com.google.protobuf.Descriptors.FieldDescriptor field,
650 java.lang.Object value) {
651 return super.setField(field, value);
652 }
653 @java.lang.Override
655 com.google.protobuf.Descriptors.FieldDescriptor field) {
656 return super.clearField(field);
657 }
658 @java.lang.Override
660 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
661 return super.clearOneof(oneof);
662 }
663 @java.lang.Override
665 com.google.protobuf.Descriptors.FieldDescriptor field,
666 int index, java.lang.Object value) {
667 return super.setRepeatedField(field, index, value);
668 }
669 @java.lang.Override
671 com.google.protobuf.Descriptors.FieldDescriptor field,
672 java.lang.Object value) {
673 return super.addRepeatedField(field, value);
674 }
675 @java.lang.Override
676 public Builder mergeFrom(com.google.protobuf.Message other) {
677 if (other instanceof com.google.ortools.sat.IntervalConstraintProto) {
678 return mergeFrom((com.google.ortools.sat.IntervalConstraintProto)other);
679 } else {
680 super.mergeFrom(other);
681 return this;
682 }
683 }
684
685 public Builder mergeFrom(com.google.ortools.sat.IntervalConstraintProto other) {
686 if (other == com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance()) return this;
687 if (other.getStart() != 0) {
688 setStart(other.getStart());
689 }
690 if (other.getEnd() != 0) {
691 setEnd(other.getEnd());
692 }
693 if (other.getSize() != 0) {
694 setSize(other.getSize());
695 }
696 if (other.hasStartView()) {
697 mergeStartView(other.getStartView());
698 }
699 if (other.hasEndView()) {
700 mergeEndView(other.getEndView());
701 }
702 if (other.hasSizeView()) {
703 mergeSizeView(other.getSizeView());
704 }
705 this.mergeUnknownFields(other.unknownFields);
706 onChanged();
707 return this;
708 }
709
710 @java.lang.Override
711 public final boolean isInitialized() {
712 return true;
713 }
714
715 @java.lang.Override
717 com.google.protobuf.CodedInputStream input,
718 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
719 throws java.io.IOException {
720 com.google.ortools.sat.IntervalConstraintProto parsedMessage = null;
721 try {
722 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
723 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
724 parsedMessage = (com.google.ortools.sat.IntervalConstraintProto) e.getUnfinishedMessage();
725 throw e.unwrapIOException();
726 } finally {
727 if (parsedMessage != null) {
728 mergeFrom(parsedMessage);
729 }
730 }
731 return this;
732 }
733
734 private int start_ ;
739 @java.lang.Override
740 public int getStart() {
741 return start_;
742 }
748 public Builder setStart(int value) {
749
750 start_ = value;
751 onChanged();
752 return this;
753 }
759
760 start_ = 0;
761 onChanged();
762 return this;
763 }
764
765 private int end_ ;
770 @java.lang.Override
771 public int getEnd() {
772 return end_;
773 }
779 public Builder setEnd(int value) {
780
781 end_ = value;
782 onChanged();
783 return this;
784 }
789 public Builder clearEnd() {
790
791 end_ = 0;
792 onChanged();
793 return this;
794 }
795
796 private int size_ ;
801 @java.lang.Override
802 public int getSize() {
803 return size_;
804 }
810 public Builder setSize(int value) {
811
812 size_ = value;
813 onChanged();
814 return this;
815 }
821
822 size_ = 0;
823 onChanged();
824 return this;
825 }
826
827 private com.google.ortools.sat.LinearExpressionProto startView_;
828 private com.google.protobuf.SingleFieldBuilderV3<
829 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> startViewBuilder_;
850 public boolean hasStartView() {
851 return startViewBuilder_ != null || startView_ != null;
852 }
873 public com.google.ortools.sat.LinearExpressionProto getStartView() {
874 if (startViewBuilder_ == null) {
875 return startView_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : startView_;
876 } else {
877 return startViewBuilder_.getMessage();
878 }
879 }
899 public Builder setStartView(com.google.ortools.sat.LinearExpressionProto value) {
900 if (startViewBuilder_ == null) {
901 if (value == null) {
902 throw new NullPointerException();
903 }
904 startView_ = value;
905 onChanged();
906 } else {
907 startViewBuilder_.setMessage(value);
908 }
909
910 return this;
911 }
932 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
933 if (startViewBuilder_ == null) {
934 startView_ = builderForValue.build();
935 onChanged();
936 } else {
937 startViewBuilder_.setMessage(builderForValue.build());
938 }
939
940 return this;
941 }
961 public Builder mergeStartView(com.google.ortools.sat.LinearExpressionProto value) {
962 if (startViewBuilder_ == null) {
963 if (startView_ != null) {
964 startView_ =
965 com.google.ortools.sat.LinearExpressionProto.newBuilder(startView_).mergeFrom(value).buildPartial();
966 } else {
967 startView_ = value;
968 }
969 onChanged();
970 } else {
971 startViewBuilder_.mergeFrom(value);
972 }
973
974 return this;
975 }
996 if (startViewBuilder_ == null) {
997 startView_ = null;
998 onChanged();
999 } else {
1000 startView_ = null;
1001 startViewBuilder_ = null;
1002 }
1003
1004 return this;
1005 }
1025 public com.google.ortools.sat.LinearExpressionProto.Builder getStartViewBuilder() {
1026
1027 onChanged();
1028 return getStartViewFieldBuilder().getBuilder();
1029 }
1049 public com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartViewOrBuilder() {
1050 if (startViewBuilder_ != null) {
1051 return startViewBuilder_.getMessageOrBuilder();
1052 } else {
1053 return startView_ == null ?
1054 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : startView_;
1055 }
1056 }
1076 private com.google.protobuf.SingleFieldBuilderV3<
1077 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1078 getStartViewFieldBuilder() {
1079 if (startViewBuilder_ == null) {
1080 startViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
1081 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
1082 getStartView(),
1083 getParentForChildren(),
1084 isClean());
1085 startView_ = null;
1086 }
1087 return startViewBuilder_;
1088 }
1089
1090 private com.google.ortools.sat.LinearExpressionProto endView_;
1091 private com.google.protobuf.SingleFieldBuilderV3<
1092 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> endViewBuilder_;
1097 public boolean hasEndView() {
1098 return endViewBuilder_ != null || endView_ != null;
1099 }
1104 public com.google.ortools.sat.LinearExpressionProto getEndView() {
1105 if (endViewBuilder_ == null) {
1106 return endView_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : endView_;
1107 } else {
1108 return endViewBuilder_.getMessage();
1109 }
1110 }
1114 public Builder setEndView(com.google.ortools.sat.LinearExpressionProto value) {
1115 if (endViewBuilder_ == null) {
1116 if (value == null) {
1117 throw new NullPointerException();
1118 }
1119 endView_ = value;
1120 onChanged();
1121 } else {
1122 endViewBuilder_.setMessage(value);
1123 }
1124
1125 return this;
1126 }
1131 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1132 if (endViewBuilder_ == null) {
1133 endView_ = builderForValue.build();
1134 onChanged();
1135 } else {
1136 endViewBuilder_.setMessage(builderForValue.build());
1137 }
1138
1139 return this;
1140 }
1144 public Builder mergeEndView(com.google.ortools.sat.LinearExpressionProto value) {
1145 if (endViewBuilder_ == null) {
1146 if (endView_ != null) {
1147 endView_ =
1148 com.google.ortools.sat.LinearExpressionProto.newBuilder(endView_).mergeFrom(value).buildPartial();
1149 } else {
1150 endView_ = value;
1151 }
1152 onChanged();
1153 } else {
1154 endViewBuilder_.mergeFrom(value);
1155 }
1156
1157 return this;
1158 }
1163 if (endViewBuilder_ == null) {
1164 endView_ = null;
1165 onChanged();
1166 } else {
1167 endView_ = null;
1168 endViewBuilder_ = null;
1169 }
1170
1171 return this;
1172 }
1176 public com.google.ortools.sat.LinearExpressionProto.Builder getEndViewBuilder() {
1177
1178 onChanged();
1179 return getEndViewFieldBuilder().getBuilder();
1180 }
1184 public com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndViewOrBuilder() {
1185 if (endViewBuilder_ != null) {
1186 return endViewBuilder_.getMessageOrBuilder();
1187 } else {
1188 return endView_ == null ?
1189 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : endView_;
1190 }
1191 }
1195 private com.google.protobuf.SingleFieldBuilderV3<
1196 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1197 getEndViewFieldBuilder() {
1198 if (endViewBuilder_ == null) {
1199 endViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
1200 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
1201 getEndView(),
1202 getParentForChildren(),
1203 isClean());
1204 endView_ = null;
1205 }
1206 return endViewBuilder_;
1207 }
1208
1209 private com.google.ortools.sat.LinearExpressionProto sizeView_;
1210 private com.google.protobuf.SingleFieldBuilderV3<
1211 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> sizeViewBuilder_;
1216 public boolean hasSizeView() {
1217 return sizeViewBuilder_ != null || sizeView_ != null;
1218 }
1223 public com.google.ortools.sat.LinearExpressionProto getSizeView() {
1224 if (sizeViewBuilder_ == null) {
1225 return sizeView_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : sizeView_;
1226 } else {
1227 return sizeViewBuilder_.getMessage();
1228 }
1229 }
1233 public Builder setSizeView(com.google.ortools.sat.LinearExpressionProto value) {
1234 if (sizeViewBuilder_ == null) {
1235 if (value == null) {
1236 throw new NullPointerException();
1237 }
1238 sizeView_ = value;
1239 onChanged();
1240 } else {
1241 sizeViewBuilder_.setMessage(value);
1242 }
1243
1244 return this;
1245 }
1250 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
1251 if (sizeViewBuilder_ == null) {
1252 sizeView_ = builderForValue.build();
1253 onChanged();
1254 } else {
1255 sizeViewBuilder_.setMessage(builderForValue.build());
1256 }
1257
1258 return this;
1259 }
1263 public Builder mergeSizeView(com.google.ortools.sat.LinearExpressionProto value) {
1264 if (sizeViewBuilder_ == null) {
1265 if (sizeView_ != null) {
1266 sizeView_ =
1267 com.google.ortools.sat.LinearExpressionProto.newBuilder(sizeView_).mergeFrom(value).buildPartial();
1268 } else {
1269 sizeView_ = value;
1270 }
1271 onChanged();
1272 } else {
1273 sizeViewBuilder_.mergeFrom(value);
1274 }
1275
1276 return this;
1277 }
1282 if (sizeViewBuilder_ == null) {
1283 sizeView_ = null;
1284 onChanged();
1285 } else {
1286 sizeView_ = null;
1287 sizeViewBuilder_ = null;
1288 }
1289
1290 return this;
1291 }
1295 public com.google.ortools.sat.LinearExpressionProto.Builder getSizeViewBuilder() {
1296
1297 onChanged();
1298 return getSizeViewFieldBuilder().getBuilder();
1299 }
1303 public com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeViewOrBuilder() {
1304 if (sizeViewBuilder_ != null) {
1305 return sizeViewBuilder_.getMessageOrBuilder();
1306 } else {
1307 return sizeView_ == null ?
1308 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : sizeView_;
1309 }
1310 }
1314 private com.google.protobuf.SingleFieldBuilderV3<
1315 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
1316 getSizeViewFieldBuilder() {
1317 if (sizeViewBuilder_ == null) {
1318 sizeViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
1319 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
1320 getSizeView(),
1321 getParentForChildren(),
1322 isClean());
1323 sizeView_ = null;
1324 }
1325 return sizeViewBuilder_;
1326 }
1327 @java.lang.Override
1329 final com.google.protobuf.UnknownFieldSet unknownFields) {
1330 return super.setUnknownFields(unknownFields);
1331 }
1332
1333 @java.lang.Override
1335 final com.google.protobuf.UnknownFieldSet unknownFields) {
1336 return super.mergeUnknownFields(unknownFields);
1337 }
1338
1339
1340 // @@protoc_insertion_point(builder_scope:operations_research.sat.IntervalConstraintProto)
1341 }
1342
1343 // @@protoc_insertion_point(class_scope:operations_research.sat.IntervalConstraintProto)
1344 private static final com.google.ortools.sat.IntervalConstraintProto DEFAULT_INSTANCE;
1345 static {
1346 DEFAULT_INSTANCE = new com.google.ortools.sat.IntervalConstraintProto();
1347 }
1348
1349 public static com.google.ortools.sat.IntervalConstraintProto getDefaultInstance() {
1350 return DEFAULT_INSTANCE;
1351 }
1352
1353 private static final com.google.protobuf.Parser<IntervalConstraintProto>
1354 PARSER = new com.google.protobuf.AbstractParser<IntervalConstraintProto>() {
1355 @java.lang.Override
1356 public IntervalConstraintProto parsePartialFrom(
1357 com.google.protobuf.CodedInputStream input,
1358 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1359 throws com.google.protobuf.InvalidProtocolBufferException {
1360 return new IntervalConstraintProto(input, extensionRegistry);
1361 }
1362 };
1363
1364 public static com.google.protobuf.Parser<IntervalConstraintProto> parser() {
1365 return PARSER;
1366 }
1367
1368 @java.lang.Override
1369 public com.google.protobuf.Parser<IntervalConstraintProto> getParserForType() {
1370 return PARSER;
1371 }
1372
1373 @java.lang.Override
1374 public com.google.ortools.sat.IntervalConstraintProto getDefaultInstanceForType() {
1375 return DEFAULT_INSTANCE;
1376 }
1377
1378}
1379
com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndViewOrBuilder()
.operations_research.sat.LinearExpressionProto end_view = 5;
.lang.Override com.google.ortools.sat.IntervalConstraintProto buildPartial()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Builder setStartView(com.google.ortools.sat.LinearExpressionProto value)
Builder mergeFrom(com.google.ortools.sat.IntervalConstraintProto other)
Builder clearEndView()
.operations_research.sat.LinearExpressionProto end_view = 5;
com.google.ortools.sat.LinearExpressionProto getStartView()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
boolean hasSizeView()
.operations_research.sat.LinearExpressionProto size_view = 6;
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartViewOrBuilder()
.lang.Override com.google.ortools.sat.IntervalConstraintProto getDefaultInstanceForType()
com.google.ortools.sat.LinearExpressionProto.Builder getSizeViewBuilder()
.operations_research.sat.LinearExpressionProto size_view = 6;
com.google.ortools.sat.LinearExpressionProto.Builder getEndViewBuilder()
.operations_research.sat.LinearExpressionProto end_view = 5;
Builder setSizeView(com.google.ortools.sat.LinearExpressionProto value)
.operations_research.sat.LinearExpressionProto size_view = 6;
Builder mergeSizeView(com.google.ortools.sat.LinearExpressionProto value)
.operations_research.sat.LinearExpressionProto size_view = 6;
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder setSizeView(com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
.operations_research.sat.LinearExpressionProto size_view = 6;
Builder setEndView(com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
.operations_research.sat.LinearExpressionProto end_view = 5;
Builder mergeEndView(com.google.ortools.sat.LinearExpressionProto value)
.operations_research.sat.LinearExpressionProto end_view = 5;
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder setStartView(com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.IntervalConstraintProto build()
com.google.ortools.sat.LinearExpressionProto getEndView()
.operations_research.sat.LinearExpressionProto end_view = 5;
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.LinearExpressionProto getSizeView()
.operations_research.sat.LinearExpressionProto size_view = 6;
com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeViewOrBuilder()
.operations_research.sat.LinearExpressionProto size_view = 6;
Builder clearSizeView()
.operations_research.sat.LinearExpressionProto size_view = 6;
boolean hasEndView()
.operations_research.sat.LinearExpressionProto end_view = 5;
Builder setEndView(com.google.ortools.sat.LinearExpressionProto value)
.operations_research.sat.LinearExpressionProto end_view = 5;
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder mergeStartView(com.google.ortools.sat.LinearExpressionProto value)
com.google.ortools.sat.LinearExpressionProto.Builder getStartViewBuilder()
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
.lang.Override com.google.ortools.sat.LinearExpressionProto getSizeView()
.operations_research.sat.LinearExpressionProto size_view = 6;
.lang.Override boolean hasSizeView()
.operations_research.sat.LinearExpressionProto size_view = 6;
static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
.lang.Override boolean hasEndView()
.operations_research.sat.LinearExpressionProto end_view = 5;
.lang.Override com.google.ortools.sat.IntervalConstraintProto getDefaultInstanceForType()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.io.InputStream input)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Builder newBuilder(com.google.ortools.sat.IntervalConstraintProto prototype)
static com.google.ortools.sat.IntervalConstraintProto parseFrom(byte[] data)
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
.lang.Override com.google.ortools.sat.LinearExpressionProto getEndView()
.operations_research.sat.LinearExpressionProto end_view = 5;
static com.google.ortools.sat.IntervalConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.IntervalConstraintProto getDefaultInstance()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
static com.google.ortools.sat.IntervalConstraintProto parseDelimitedFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.LinearExpressionProto getStartView()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(java.nio.ByteBuffer data)
.lang.Override com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeViewOrBuilder()
.operations_research.sat.LinearExpressionProto size_view = 6;
static com.google.protobuf.Parser< IntervalConstraintProto > parser()
.lang.Override com.google.protobuf.Parser< IntervalConstraintProto > getParserForType()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndViewOrBuilder()
.operations_research.sat.LinearExpressionProto end_view = 5;
static com.google.ortools.sat.IntervalConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override boolean equals(final java.lang.Object obj)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.sat.IntervalConstraintProto parseFrom(com.google.protobuf.ByteString data)
.lang.Override com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartViewOrBuilder()
.lang.Override boolean equals(final java.lang.Object obj)