Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
LinearArgumentProto.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
10public final class LinearArgumentProto extends
11 com.google.protobuf.GeneratedMessage implements
12 // @@protoc_insertion_point(message_implements:operations_research.sat.LinearArgumentProto)
14private static final long serialVersionUID = 0L;
15 static {
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
18 /* major= */ 4,
19 /* minor= */ 26,
20 /* patch= */ 1,
21 /* suffix= */ "",
22 LinearArgumentProto.class.getName());
23 }
24 // Use LinearArgumentProto.newBuilder() to construct.
25 private LinearArgumentProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
26 super(builder);
27 }
28 private LinearArgumentProto() {
29 exprs_ = java.util.Collections.emptyList();
30 }
31
32 public static final com.google.protobuf.Descriptors.Descriptor
34 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearArgumentProto_descriptor;
35 }
36
37 @java.lang.Override
38 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
40 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearArgumentProto_fieldAccessorTable
41 .ensureFieldAccessorsInitialized(
42 com.google.ortools.sat.LinearArgumentProto.class, com.google.ortools.sat.LinearArgumentProto.Builder.class);
43 }
44
45 private int bitField0_;
46 public static final int TARGET_FIELD_NUMBER = 1;
52 @java.lang.Override
53 public boolean hasTarget() {
54 return ((bitField0_ & 0x00000001) != 0);
55 }
60 @java.lang.Override
62 return target_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : target_;
63 }
67 @java.lang.Override
69 return target_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : target_;
70 }
71
72 public static final int EXPRS_FIELD_NUMBER = 2;
73 @SuppressWarnings("serial")
74 private java.util.List<com.google.ortools.sat.LinearExpressionProto> exprs_;
78 @java.lang.Override
79 public java.util.List<com.google.ortools.sat.LinearExpressionProto> getExprsList() {
80 return exprs_;
81 }
85 @java.lang.Override
86 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
88 return exprs_;
89 }
93 @java.lang.Override
94 public int getExprsCount() {
95 return exprs_.size();
96 }
100 @java.lang.Override
102 return exprs_.get(index);
103 }
107 @java.lang.Override
109 int index) {
110 return exprs_.get(index);
111 }
112
113 private byte memoizedIsInitialized = -1;
114 @java.lang.Override
115 public final boolean isInitialized() {
116 byte isInitialized = memoizedIsInitialized;
117 if (isInitialized == 1) return true;
118 if (isInitialized == 0) return false;
119
120 memoizedIsInitialized = 1;
121 return true;
122 }
123
124 @java.lang.Override
125 public void writeTo(com.google.protobuf.CodedOutputStream output)
126 throws java.io.IOException {
127 if (((bitField0_ & 0x00000001) != 0)) {
128 output.writeMessage(1, getTarget());
129 }
130 for (int i = 0; i < exprs_.size(); i++) {
131 output.writeMessage(2, exprs_.get(i));
132 }
133 getUnknownFields().writeTo(output);
134 }
135
136 @java.lang.Override
137 public int getSerializedSize() {
138 int size = memoizedSize;
139 if (size != -1) return size;
140
141 size = 0;
142 if (((bitField0_ & 0x00000001) != 0)) {
143 size += com.google.protobuf.CodedOutputStream
144 .computeMessageSize(1, getTarget());
145 }
146 for (int i = 0; i < exprs_.size(); i++) {
147 size += com.google.protobuf.CodedOutputStream
148 .computeMessageSize(2, exprs_.get(i));
149 }
150 size += getUnknownFields().getSerializedSize();
151 memoizedSize = size;
152 return size;
153 }
154
155 @java.lang.Override
156 public boolean equals(final java.lang.Object obj) {
157 if (obj == this) {
158 return true;
159 }
160 if (!(obj instanceof com.google.ortools.sat.LinearArgumentProto)) {
161 return super.equals(obj);
162 }
163 com.google.ortools.sat.LinearArgumentProto other = (com.google.ortools.sat.LinearArgumentProto) obj;
164
165 if (hasTarget() != other.hasTarget()) return false;
166 if (hasTarget()) {
167 if (!getTarget()
168 .equals(other.getTarget())) return false;
169 }
170 if (!getExprsList()
171 .equals(other.getExprsList())) return false;
172 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
173 return true;
174 }
175
176 @java.lang.Override
177 public int hashCode() {
178 if (memoizedHashCode != 0) {
179 return memoizedHashCode;
180 }
181 int hash = 41;
182 hash = (19 * hash) + getDescriptor().hashCode();
183 if (hasTarget()) {
184 hash = (37 * hash) + TARGET_FIELD_NUMBER;
185 hash = (53 * hash) + getTarget().hashCode();
186 }
187 if (getExprsCount() > 0) {
188 hash = (37 * hash) + EXPRS_FIELD_NUMBER;
189 hash = (53 * hash) + getExprsList().hashCode();
190 }
191 hash = (29 * hash) + getUnknownFields().hashCode();
192 memoizedHashCode = hash;
193 return hash;
194 }
195
197 java.nio.ByteBuffer data)
198 throws com.google.protobuf.InvalidProtocolBufferException {
199 return PARSER.parseFrom(data);
200 }
202 java.nio.ByteBuffer data,
203 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
204 throws com.google.protobuf.InvalidProtocolBufferException {
205 return PARSER.parseFrom(data, extensionRegistry);
206 }
208 com.google.protobuf.ByteString data)
209 throws com.google.protobuf.InvalidProtocolBufferException {
210 return PARSER.parseFrom(data);
211 }
213 com.google.protobuf.ByteString data,
214 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
215 throws com.google.protobuf.InvalidProtocolBufferException {
216 return PARSER.parseFrom(data, extensionRegistry);
217 }
219 throws com.google.protobuf.InvalidProtocolBufferException {
220 return PARSER.parseFrom(data);
221 }
223 byte[] data,
224 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
225 throws com.google.protobuf.InvalidProtocolBufferException {
226 return PARSER.parseFrom(data, extensionRegistry);
227 }
228 public static com.google.ortools.sat.LinearArgumentProto parseFrom(java.io.InputStream input)
229 throws java.io.IOException {
230 return com.google.protobuf.GeneratedMessage
231 .parseWithIOException(PARSER, input);
232 }
234 java.io.InputStream input,
235 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
236 throws java.io.IOException {
237 return com.google.protobuf.GeneratedMessage
238 .parseWithIOException(PARSER, input, extensionRegistry);
239 }
240
241 public static com.google.ortools.sat.LinearArgumentProto parseDelimitedFrom(java.io.InputStream input)
242 throws java.io.IOException {
243 return com.google.protobuf.GeneratedMessage
244 .parseDelimitedWithIOException(PARSER, input);
245 }
246
248 java.io.InputStream input,
249 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
250 throws java.io.IOException {
251 return com.google.protobuf.GeneratedMessage
252 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
253 }
255 com.google.protobuf.CodedInputStream input)
256 throws java.io.IOException {
257 return com.google.protobuf.GeneratedMessage
258 .parseWithIOException(PARSER, input);
259 }
261 com.google.protobuf.CodedInputStream input,
262 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
263 throws java.io.IOException {
264 return com.google.protobuf.GeneratedMessage
265 .parseWithIOException(PARSER, input, extensionRegistry);
266 }
267
268 @java.lang.Override
269 public Builder newBuilderForType() { return newBuilder(); }
270 public static Builder newBuilder() {
271 return DEFAULT_INSTANCE.toBuilder();
272 }
273 public static Builder newBuilder(com.google.ortools.sat.LinearArgumentProto prototype) {
274 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
275 }
276 @java.lang.Override
278 return this == DEFAULT_INSTANCE
279 ? new Builder() : new Builder().mergeFrom(this);
280 }
281
282 @java.lang.Override
284 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
285 Builder builder = new Builder(parent);
286 return builder;
287 }
291 public static final class Builder extends
292 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
293 // @@protoc_insertion_point(builder_implements:operations_research.sat.LinearArgumentProto)
294 com.google.ortools.sat.LinearArgumentProtoOrBuilder {
295 public static final com.google.protobuf.Descriptors.Descriptor
297 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearArgumentProto_descriptor;
298 }
299
300 @java.lang.Override
301 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
303 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearArgumentProto_fieldAccessorTable
304 .ensureFieldAccessorsInitialized(
305 com.google.ortools.sat.LinearArgumentProto.class, com.google.ortools.sat.LinearArgumentProto.Builder.class);
306 }
307
308 // Construct using com.google.ortools.sat.LinearArgumentProto.newBuilder()
309 private Builder() {
310 maybeForceBuilderInitialization();
311 }
312
313 private Builder(
314 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
315 super(parent);
316 maybeForceBuilderInitialization();
317 }
318 private void maybeForceBuilderInitialization() {
319 if (com.google.protobuf.GeneratedMessage
320 .alwaysUseFieldBuilders) {
321 getTargetFieldBuilder();
322 getExprsFieldBuilder();
323 }
324 }
325 @java.lang.Override
326 public Builder clear() {
327 super.clear();
328 bitField0_ = 0;
329 target_ = null;
330 if (targetBuilder_ != null) {
331 targetBuilder_.dispose();
332 targetBuilder_ = null;
333 }
334 if (exprsBuilder_ == null) {
335 exprs_ = java.util.Collections.emptyList();
336 } else {
337 exprs_ = null;
338 exprsBuilder_.clear();
339 }
340 bitField0_ = (bitField0_ & ~0x00000002);
341 return this;
342 }
343
344 @java.lang.Override
345 public com.google.protobuf.Descriptors.Descriptor
347 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearArgumentProto_descriptor;
348 }
349
350 @java.lang.Override
352 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
353 }
354
355 @java.lang.Override
358 if (!result.isInitialized()) {
359 throw newUninitializedMessageException(result);
360 }
361 return result;
362 }
363
364 @java.lang.Override
366 com.google.ortools.sat.LinearArgumentProto result = new com.google.ortools.sat.LinearArgumentProto(this);
367 buildPartialRepeatedFields(result);
368 if (bitField0_ != 0) { buildPartial0(result); }
369 onBuilt();
370 return result;
371 }
372
373 private void buildPartialRepeatedFields(com.google.ortools.sat.LinearArgumentProto result) {
374 if (exprsBuilder_ == null) {
375 if (((bitField0_ & 0x00000002) != 0)) {
376 exprs_ = java.util.Collections.unmodifiableList(exprs_);
377 bitField0_ = (bitField0_ & ~0x00000002);
378 }
379 result.exprs_ = exprs_;
380 } else {
381 result.exprs_ = exprsBuilder_.build();
382 }
383 }
384
385 private void buildPartial0(com.google.ortools.sat.LinearArgumentProto result) {
386 int from_bitField0_ = bitField0_;
387 int to_bitField0_ = 0;
388 if (((from_bitField0_ & 0x00000001) != 0)) {
389 result.target_ = targetBuilder_ == null
390 ? target_
391 : targetBuilder_.build();
392 to_bitField0_ |= 0x00000001;
393 }
394 result.bitField0_ |= to_bitField0_;
395 }
396
397 @java.lang.Override
398 public Builder mergeFrom(com.google.protobuf.Message other) {
399 if (other instanceof com.google.ortools.sat.LinearArgumentProto) {
400 return mergeFrom((com.google.ortools.sat.LinearArgumentProto)other);
401 } else {
402 super.mergeFrom(other);
403 return this;
404 }
405 }
406
407 public Builder mergeFrom(com.google.ortools.sat.LinearArgumentProto other) {
408 if (other == com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) return this;
409 if (other.hasTarget()) {
410 mergeTarget(other.getTarget());
411 }
412 if (exprsBuilder_ == null) {
413 if (!other.exprs_.isEmpty()) {
414 if (exprs_.isEmpty()) {
415 exprs_ = other.exprs_;
416 bitField0_ = (bitField0_ & ~0x00000002);
417 } else {
418 ensureExprsIsMutable();
419 exprs_.addAll(other.exprs_);
420 }
421 onChanged();
422 }
423 } else {
424 if (!other.exprs_.isEmpty()) {
425 if (exprsBuilder_.isEmpty()) {
426 exprsBuilder_.dispose();
427 exprsBuilder_ = null;
428 exprs_ = other.exprs_;
429 bitField0_ = (bitField0_ & ~0x00000002);
430 exprsBuilder_ =
431 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
432 getExprsFieldBuilder() : null;
433 } else {
434 exprsBuilder_.addAllMessages(other.exprs_);
435 }
436 }
437 }
438 this.mergeUnknownFields(other.getUnknownFields());
439 onChanged();
440 return this;
441 }
442
443 @java.lang.Override
444 public final boolean isInitialized() {
445 return true;
446 }
447
448 @java.lang.Override
450 com.google.protobuf.CodedInputStream input,
451 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
452 throws java.io.IOException {
453 if (extensionRegistry == null) {
454 throw new java.lang.NullPointerException();
455 }
456 try {
457 boolean done = false;
458 while (!done) {
459 int tag = input.readTag();
460 switch (tag) {
461 case 0:
462 done = true;
463 break;
464 case 10: {
465 input.readMessage(
466 getTargetFieldBuilder().getBuilder(),
467 extensionRegistry);
468 bitField0_ |= 0x00000001;
469 break;
470 } // case 10
471 case 18: {
473 input.readMessage(
474 com.google.ortools.sat.LinearExpressionProto.parser(),
475 extensionRegistry);
476 if (exprsBuilder_ == null) {
477 ensureExprsIsMutable();
478 exprs_.add(m);
479 } else {
480 exprsBuilder_.addMessage(m);
481 }
482 break;
483 } // case 18
484 default: {
485 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
486 done = true; // was an endgroup tag
487 }
488 break;
489 } // default:
490 } // switch (tag)
491 } // while (!done)
492 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
493 throw e.unwrapIOException();
494 } finally {
495 onChanged();
496 } // finally
497 return this;
498 }
499 private int bitField0_;
500
502 private com.google.protobuf.SingleFieldBuilder<
503 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> targetBuilder_;
508 public boolean hasTarget() {
509 return ((bitField0_ & 0x00000001) != 0);
510 }
516 if (targetBuilder_ == null) {
517 return target_ == null ? com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : target_;
518 } else {
519 return targetBuilder_.getMessage();
520 }
521 }
525 public Builder setTarget(com.google.ortools.sat.LinearExpressionProto value) {
526 if (targetBuilder_ == null) {
527 if (value == null) {
528 throw new NullPointerException();
529 }
530 target_ = value;
531 } else {
532 targetBuilder_.setMessage(value);
533 }
534 bitField0_ |= 0x00000001;
535 onChanged();
536 return this;
537 }
542 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
543 if (targetBuilder_ == null) {
544 target_ = builderForValue.build();
545 } else {
546 targetBuilder_.setMessage(builderForValue.build());
547 }
548 bitField0_ |= 0x00000001;
549 onChanged();
550 return this;
551 }
555 public Builder mergeTarget(com.google.ortools.sat.LinearExpressionProto value) {
556 if (targetBuilder_ == null) {
557 if (((bitField0_ & 0x00000001) != 0) &&
558 target_ != null &&
559 target_ != com.google.ortools.sat.LinearExpressionProto.getDefaultInstance()) {
560 getTargetBuilder().mergeFrom(value);
561 } else {
562 target_ = value;
563 }
564 } else {
565 targetBuilder_.mergeFrom(value);
566 }
567 if (target_ != null) {
568 bitField0_ |= 0x00000001;
569 onChanged();
570 }
571 return this;
572 }
577 bitField0_ = (bitField0_ & ~0x00000001);
578 target_ = null;
579 if (targetBuilder_ != null) {
580 targetBuilder_.dispose();
581 targetBuilder_ = null;
582 }
583 onChanged();
584 return this;
585 }
590 bitField0_ |= 0x00000001;
591 onChanged();
592 return getTargetFieldBuilder().getBuilder();
593 }
598 if (targetBuilder_ != null) {
599 return targetBuilder_.getMessageOrBuilder();
600 } else {
601 return target_ == null ?
602 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance() : target_;
603 }
604 }
608 private com.google.protobuf.SingleFieldBuilder<
609 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
610 getTargetFieldBuilder() {
611 if (targetBuilder_ == null) {
612 targetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
613 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
614 getTarget(),
615 getParentForChildren(),
616 isClean());
617 target_ = null;
618 }
619 return targetBuilder_;
620 }
621
622 private java.util.List<com.google.ortools.sat.LinearExpressionProto> exprs_ =
623 java.util.Collections.emptyList();
624 private void ensureExprsIsMutable() {
625 if (!((bitField0_ & 0x00000002) != 0)) {
626 exprs_ = new java.util.ArrayList<com.google.ortools.sat.LinearExpressionProto>(exprs_);
627 bitField0_ |= 0x00000002;
628 }
629 }
630
631 private com.google.protobuf.RepeatedFieldBuilder<
632 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder> exprsBuilder_;
633
637 public java.util.List<com.google.ortools.sat.LinearExpressionProto> getExprsList() {
638 if (exprsBuilder_ == null) {
639 return java.util.Collections.unmodifiableList(exprs_);
640 } else {
641 return exprsBuilder_.getMessageList();
642 }
643 }
647 public int getExprsCount() {
648 if (exprsBuilder_ == null) {
649 return exprs_.size();
650 } else {
651 return exprsBuilder_.getCount();
652 }
653 }
658 if (exprsBuilder_ == null) {
659 return exprs_.get(index);
660 } else {
661 return exprsBuilder_.getMessage(index);
662 }
663 }
668 int index, com.google.ortools.sat.LinearExpressionProto value) {
669 if (exprsBuilder_ == null) {
670 if (value == null) {
671 throw new NullPointerException();
672 }
673 ensureExprsIsMutable();
674 exprs_.set(index, value);
675 onChanged();
676 } else {
677 exprsBuilder_.setMessage(index, value);
678 }
679 return this;
680 }
685 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
686 if (exprsBuilder_ == null) {
687 ensureExprsIsMutable();
688 exprs_.set(index, builderForValue.build());
689 onChanged();
690 } else {
691 exprsBuilder_.setMessage(index, builderForValue.build());
692 }
693 return this;
694 }
698 public Builder addExprs(com.google.ortools.sat.LinearExpressionProto value) {
699 if (exprsBuilder_ == null) {
700 if (value == null) {
701 throw new NullPointerException();
702 }
703 ensureExprsIsMutable();
704 exprs_.add(value);
705 onChanged();
706 } else {
707 exprsBuilder_.addMessage(value);
708 }
709 return this;
710 }
715 int index, com.google.ortools.sat.LinearExpressionProto value) {
716 if (exprsBuilder_ == null) {
717 if (value == null) {
718 throw new NullPointerException();
719 }
720 ensureExprsIsMutable();
721 exprs_.add(index, value);
722 onChanged();
723 } else {
724 exprsBuilder_.addMessage(index, value);
725 }
726 return this;
727 }
732 com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
733 if (exprsBuilder_ == null) {
734 ensureExprsIsMutable();
735 exprs_.add(builderForValue.build());
736 onChanged();
737 } else {
738 exprsBuilder_.addMessage(builderForValue.build());
739 }
740 return this;
741 }
746 int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue) {
747 if (exprsBuilder_ == null) {
748 ensureExprsIsMutable();
749 exprs_.add(index, builderForValue.build());
750 onChanged();
751 } else {
752 exprsBuilder_.addMessage(index, builderForValue.build());
753 }
754 return this;
755 }
760 java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto> values) {
761 if (exprsBuilder_ == null) {
762 ensureExprsIsMutable();
763 com.google.protobuf.AbstractMessageLite.Builder.addAll(
764 values, exprs_);
765 onChanged();
766 } else {
767 exprsBuilder_.addAllMessages(values);
768 }
769 return this;
770 }
775 if (exprsBuilder_ == null) {
776 exprs_ = java.util.Collections.emptyList();
777 bitField0_ = (bitField0_ & ~0x00000002);
778 onChanged();
779 } else {
780 exprsBuilder_.clear();
781 }
782 return this;
783 }
787 public Builder removeExprs(int index) {
788 if (exprsBuilder_ == null) {
789 ensureExprsIsMutable();
790 exprs_.remove(index);
791 onChanged();
792 } else {
793 exprsBuilder_.remove(index);
794 }
795 return this;
796 }
801 int index) {
802 return getExprsFieldBuilder().getBuilder(index);
803 }
808 int index) {
809 if (exprsBuilder_ == null) {
810 return exprs_.get(index); } else {
811 return exprsBuilder_.getMessageOrBuilder(index);
812 }
813 }
817 public java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder>
819 if (exprsBuilder_ != null) {
820 return exprsBuilder_.getMessageOrBuilderList();
821 } else {
822 return java.util.Collections.unmodifiableList(exprs_);
823 }
824 }
829 return getExprsFieldBuilder().addBuilder(
830 com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
831 }
836 int index) {
837 return getExprsFieldBuilder().addBuilder(
838 index, com.google.ortools.sat.LinearExpressionProto.getDefaultInstance());
839 }
843 public java.util.List<com.google.ortools.sat.LinearExpressionProto.Builder>
845 return getExprsFieldBuilder().getBuilderList();
846 }
847 private com.google.protobuf.RepeatedFieldBuilder<
848 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>
849 getExprsFieldBuilder() {
850 if (exprsBuilder_ == null) {
851 exprsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
852 com.google.ortools.sat.LinearExpressionProto, com.google.ortools.sat.LinearExpressionProto.Builder, com.google.ortools.sat.LinearExpressionProtoOrBuilder>(
853 exprs_,
854 ((bitField0_ & 0x00000002) != 0),
855 getParentForChildren(),
856 isClean());
857 exprs_ = null;
858 }
859 return exprsBuilder_;
860 }
861
862 // @@protoc_insertion_point(builder_scope:operations_research.sat.LinearArgumentProto)
863 }
864
865 // @@protoc_insertion_point(class_scope:operations_research.sat.LinearArgumentProto)
866 private static final com.google.ortools.sat.LinearArgumentProto DEFAULT_INSTANCE;
867 static {
868 DEFAULT_INSTANCE = new com.google.ortools.sat.LinearArgumentProto();
869 }
870
872 return DEFAULT_INSTANCE;
873 }
874
875 private static final com.google.protobuf.Parser<LinearArgumentProto>
876 PARSER = new com.google.protobuf.AbstractParser<LinearArgumentProto>() {
877 @java.lang.Override
878 public LinearArgumentProto parsePartialFrom(
879 com.google.protobuf.CodedInputStream input,
880 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
881 throws com.google.protobuf.InvalidProtocolBufferException {
882 Builder builder = newBuilder();
883 try {
884 builder.mergeFrom(input, extensionRegistry);
885 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
886 throw e.setUnfinishedMessage(builder.buildPartial());
887 } catch (com.google.protobuf.UninitializedMessageException e) {
888 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
889 } catch (java.io.IOException e) {
890 throw new com.google.protobuf.InvalidProtocolBufferException(e)
891 .setUnfinishedMessage(builder.buildPartial());
892 }
893 return builder.buildPartial();
894 }
895 };
896
897 public static com.google.protobuf.Parser<LinearArgumentProto> parser() {
898 return PARSER;
899 }
900
901 @java.lang.Override
902 public com.google.protobuf.Parser<LinearArgumentProto> getParserForType() {
903 return PARSER;
904 }
905
906 @java.lang.Override
908 return DEFAULT_INSTANCE;
909 }
910
911}
912
com.google.ortools.sat.LinearExpressionProto getExprs(int index)
com.google.ortools.sat.LinearArgumentProto buildPartial()
com.google.ortools.sat.LinearExpressionProtoOrBuilder getExprsOrBuilder(int index)
java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > getExprsBuilderList()
Builder addExprs(int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
Builder addExprs(int index, com.google.ortools.sat.LinearExpressionProto value)
Builder setTarget(com.google.ortools.sat.LinearExpressionProto value)
com.google.ortools.sat.LinearExpressionProto.Builder addExprsBuilder(int index)
com.google.ortools.sat.LinearExpressionProtoOrBuilder getTargetOrBuilder()
Builder setExprs(int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
Builder setTarget(com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
Builder mergeTarget(com.google.ortools.sat.LinearExpressionProto value)
com.google.ortools.sat.LinearExpressionProto getTarget()
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > getExprsOrBuilderList()
Builder addExprs(com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
Builder addAllExprs(java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
com.google.ortools.sat.LinearExpressionProto.Builder getExprsBuilder(int index)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.sat.LinearExpressionProto.Builder addExprsBuilder()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder mergeFrom(com.google.ortools.sat.LinearArgumentProto other)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
java.util.List< com.google.ortools.sat.LinearExpressionProto > getExprsList()
Builder addExprs(com.google.ortools.sat.LinearExpressionProto value)
Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.sat.LinearExpressionProto.Builder getTargetBuilder()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.sat.LinearArgumentProto getDefaultInstanceForType()
Builder setExprs(int index, com.google.ortools.sat.LinearExpressionProto value)
com.google.ortools.sat.LinearArgumentProto build()
com.google.ortools.sat.LinearExpressionProtoOrBuilder getExprsOrBuilder(int index)
static com.google.ortools.sat.LinearArgumentProto parseFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
boolean equals(final java.lang.Object obj)
static com.google.ortools.sat.LinearArgumentProto parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.sat.LinearArgumentProto parseFrom(com.google.protobuf.ByteString data)
com.google.protobuf.Parser< LinearArgumentProto > getParserForType()
static com.google.ortools.sat.LinearArgumentProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearArgumentProto parseFrom(byte[] data)
static com.google.ortools.sat.LinearArgumentProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< LinearArgumentProto > parser()
static com.google.ortools.sat.LinearArgumentProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.LinearArgumentProto getDefaultInstance()
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > getExprsOrBuilderList()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.sat.LinearArgumentProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.LinearArgumentProto getDefaultInstanceForType()
static com.google.ortools.sat.LinearArgumentProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.LinearExpressionProto getExprs(int index)
static com.google.ortools.sat.LinearArgumentProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.LinearExpressionProtoOrBuilder getTargetOrBuilder()
static Builder newBuilder(com.google.ortools.sat.LinearArgumentProto prototype)
static com.google.ortools.sat.LinearArgumentProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearArgumentProto parseDelimitedFrom(java.io.InputStream input)
void writeTo(com.google.protobuf.CodedOutputStream output)
com.google.ortools.sat.LinearExpressionProto getTarget()
java.util.List< com.google.ortools.sat.LinearExpressionProto > getExprsList()