Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
LinearConstraintProto.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/sat/cp_model.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.sat;
7
20public final class LinearConstraintProto extends
21 com.google.protobuf.GeneratedMessage implements
22 // @@protoc_insertion_point(message_implements:operations_research.sat.LinearConstraintProto)
24private static final long serialVersionUID = 0L;
25 static {
26 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
27 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 /* major= */ 4,
29 /* minor= */ 29,
30 /* patch= */ 3,
31 /* suffix= */ "",
32 LinearConstraintProto.class.getName());
33 }
34 // Use LinearConstraintProto.newBuilder() to construct.
35 private LinearConstraintProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
36 super(builder);
37 }
38 private LinearConstraintProto() {
39 vars_ = emptyIntList();
40 coeffs_ = emptyLongList();
41 domain_ = emptyLongList();
42 }
43
44 public static final com.google.protobuf.Descriptors.Descriptor
46 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearConstraintProto_descriptor;
47 }
48
49 @java.lang.Override
50 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
52 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearConstraintProto_fieldAccessorTable
53 .ensureFieldAccessorsInitialized(
54 com.google.ortools.sat.LinearConstraintProto.class, com.google.ortools.sat.LinearConstraintProto.Builder.class);
55 }
56
57 public static final int VARS_FIELD_NUMBER = 1;
58 @SuppressWarnings("serial")
59 private com.google.protobuf.Internal.IntList vars_ =
60 emptyIntList();
65 @java.lang.Override
66 public java.util.List<java.lang.Integer>
68 return vars_;
69 }
70
74 public int getVarsCount() {
75 return vars_.size();
76 }
77
82 public int getVars(int index) {
83 return vars_.getInt(index);
84 }
85 private int varsMemoizedSerializedSize = -1;
86
87 public static final int COEFFS_FIELD_NUMBER = 2;
88 @SuppressWarnings("serial")
89 private com.google.protobuf.Internal.LongList coeffs_ =
90 emptyLongList();
99 @java.lang.Override
100 public java.util.List<java.lang.Long>
102 return coeffs_;
103 }
104
112 public int getCoeffsCount() {
113 return coeffs_.size();
114 }
115
124 public long getCoeffs(int index) {
125 return coeffs_.getLong(index);
126 }
127 private int coeffsMemoizedSerializedSize = -1;
128
129 public static final int DOMAIN_FIELD_NUMBER = 3;
130 @SuppressWarnings("serial")
131 private com.google.protobuf.Internal.LongList domain_ =
132 emptyLongList();
137 @java.lang.Override
138 public java.util.List<java.lang.Long>
140 return domain_;
141 }
142
146 public int getDomainCount() {
147 return domain_.size();
148 }
149
154 public long getDomain(int index) {
155 return domain_.getLong(index);
156 }
157 private int domainMemoizedSerializedSize = -1;
158
159 private byte memoizedIsInitialized = -1;
160 @java.lang.Override
161 public final boolean isInitialized() {
162 byte isInitialized = memoizedIsInitialized;
163 if (isInitialized == 1) return true;
164 if (isInitialized == 0) return false;
165
166 memoizedIsInitialized = 1;
167 return true;
168 }
169
170 @java.lang.Override
171 public void writeTo(com.google.protobuf.CodedOutputStream output)
172 throws java.io.IOException {
174 if (getVarsList().size() > 0) {
175 output.writeUInt32NoTag(10);
176 output.writeUInt32NoTag(varsMemoizedSerializedSize);
177 }
178 for (int i = 0; i < vars_.size(); i++) {
179 output.writeInt32NoTag(vars_.getInt(i));
180 }
181 if (getCoeffsList().size() > 0) {
182 output.writeUInt32NoTag(18);
183 output.writeUInt32NoTag(coeffsMemoizedSerializedSize);
184 }
185 for (int i = 0; i < coeffs_.size(); i++) {
186 output.writeInt64NoTag(coeffs_.getLong(i));
187 }
188 if (getDomainList().size() > 0) {
189 output.writeUInt32NoTag(26);
190 output.writeUInt32NoTag(domainMemoizedSerializedSize);
191 }
192 for (int i = 0; i < domain_.size(); i++) {
193 output.writeInt64NoTag(domain_.getLong(i));
194 }
195 getUnknownFields().writeTo(output);
196 }
197
198 @java.lang.Override
199 public int getSerializedSize() {
200 int size = memoizedSize;
201 if (size != -1) return size;
202
203 size = 0;
204 {
205 int dataSize = 0;
206 for (int i = 0; i < vars_.size(); i++) {
207 dataSize += com.google.protobuf.CodedOutputStream
208 .computeInt32SizeNoTag(vars_.getInt(i));
209 }
210 size += dataSize;
211 if (!getVarsList().isEmpty()) {
212 size += 1;
213 size += com.google.protobuf.CodedOutputStream
214 .computeInt32SizeNoTag(dataSize);
215 }
216 varsMemoizedSerializedSize = dataSize;
217 }
218 {
219 int dataSize = 0;
220 for (int i = 0; i < coeffs_.size(); i++) {
221 dataSize += com.google.protobuf.CodedOutputStream
222 .computeInt64SizeNoTag(coeffs_.getLong(i));
223 }
224 size += dataSize;
225 if (!getCoeffsList().isEmpty()) {
226 size += 1;
227 size += com.google.protobuf.CodedOutputStream
228 .computeInt32SizeNoTag(dataSize);
229 }
230 coeffsMemoizedSerializedSize = dataSize;
231 }
232 {
233 int dataSize = 0;
234 for (int i = 0; i < domain_.size(); i++) {
235 dataSize += com.google.protobuf.CodedOutputStream
236 .computeInt64SizeNoTag(domain_.getLong(i));
237 }
238 size += dataSize;
239 if (!getDomainList().isEmpty()) {
240 size += 1;
241 size += com.google.protobuf.CodedOutputStream
242 .computeInt32SizeNoTag(dataSize);
243 }
244 domainMemoizedSerializedSize = dataSize;
245 }
246 size += getUnknownFields().getSerializedSize();
247 memoizedSize = size;
248 return size;
249 }
250
251 @java.lang.Override
252 public boolean equals(final java.lang.Object obj) {
253 if (obj == this) {
254 return true;
255 }
256 if (!(obj instanceof com.google.ortools.sat.LinearConstraintProto)) {
257 return super.equals(obj);
258 }
259 com.google.ortools.sat.LinearConstraintProto other = (com.google.ortools.sat.LinearConstraintProto) obj;
260
261 if (!getVarsList()
262 .equals(other.getVarsList())) return false;
263 if (!getCoeffsList()
264 .equals(other.getCoeffsList())) return false;
265 if (!getDomainList()
266 .equals(other.getDomainList())) return false;
267 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
268 return true;
269 }
270
271 @java.lang.Override
272 public int hashCode() {
273 if (memoizedHashCode != 0) {
274 return memoizedHashCode;
275 }
276 int hash = 41;
277 hash = (19 * hash) + getDescriptor().hashCode();
278 if (getVarsCount() > 0) {
279 hash = (37 * hash) + VARS_FIELD_NUMBER;
280 hash = (53 * hash) + getVarsList().hashCode();
281 }
282 if (getCoeffsCount() > 0) {
283 hash = (37 * hash) + COEFFS_FIELD_NUMBER;
284 hash = (53 * hash) + getCoeffsList().hashCode();
285 }
286 if (getDomainCount() > 0) {
287 hash = (37 * hash) + DOMAIN_FIELD_NUMBER;
288 hash = (53 * hash) + getDomainList().hashCode();
289 }
290 hash = (29 * hash) + getUnknownFields().hashCode();
291 memoizedHashCode = hash;
292 return hash;
293 }
294
296 java.nio.ByteBuffer data)
297 throws com.google.protobuf.InvalidProtocolBufferException {
298 return PARSER.parseFrom(data);
299 }
301 java.nio.ByteBuffer data,
302 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
303 throws com.google.protobuf.InvalidProtocolBufferException {
304 return PARSER.parseFrom(data, extensionRegistry);
305 }
307 com.google.protobuf.ByteString data)
308 throws com.google.protobuf.InvalidProtocolBufferException {
309 return PARSER.parseFrom(data);
310 }
312 com.google.protobuf.ByteString data,
313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314 throws com.google.protobuf.InvalidProtocolBufferException {
315 return PARSER.parseFrom(data, extensionRegistry);
316 }
318 throws com.google.protobuf.InvalidProtocolBufferException {
319 return PARSER.parseFrom(data);
320 }
322 byte[] data,
323 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
324 throws com.google.protobuf.InvalidProtocolBufferException {
325 return PARSER.parseFrom(data, extensionRegistry);
326 }
327 public static com.google.ortools.sat.LinearConstraintProto parseFrom(java.io.InputStream input)
328 throws java.io.IOException {
329 return com.google.protobuf.GeneratedMessage
330 .parseWithIOException(PARSER, input);
331 }
333 java.io.InputStream input,
334 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
335 throws java.io.IOException {
336 return com.google.protobuf.GeneratedMessage
337 .parseWithIOException(PARSER, input, extensionRegistry);
338 }
339
341 throws java.io.IOException {
342 return com.google.protobuf.GeneratedMessage
343 .parseDelimitedWithIOException(PARSER, input);
344 }
345
347 java.io.InputStream input,
348 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
349 throws java.io.IOException {
350 return com.google.protobuf.GeneratedMessage
351 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
352 }
354 com.google.protobuf.CodedInputStream input)
355 throws java.io.IOException {
356 return com.google.protobuf.GeneratedMessage
357 .parseWithIOException(PARSER, input);
358 }
360 com.google.protobuf.CodedInputStream input,
361 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
362 throws java.io.IOException {
363 return com.google.protobuf.GeneratedMessage
364 .parseWithIOException(PARSER, input, extensionRegistry);
365 }
366
367 @java.lang.Override
368 public Builder newBuilderForType() { return newBuilder(); }
369 public static Builder newBuilder() {
370 return DEFAULT_INSTANCE.toBuilder();
371 }
372 public static Builder newBuilder(com.google.ortools.sat.LinearConstraintProto prototype) {
373 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
374 }
375 @java.lang.Override
377 return this == DEFAULT_INSTANCE
378 ? new Builder() : new Builder().mergeFrom(this);
379 }
380
381 @java.lang.Override
383 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
384 Builder builder = new Builder(parent);
385 return builder;
386 }
387
399 public static final class Builder extends
400 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
401 // @@protoc_insertion_point(builder_implements:operations_research.sat.LinearConstraintProto)
403 public static final com.google.protobuf.Descriptors.Descriptor
405 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearConstraintProto_descriptor;
406 }
407
408 @java.lang.Override
409 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
411 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearConstraintProto_fieldAccessorTable
412 .ensureFieldAccessorsInitialized(
413 com.google.ortools.sat.LinearConstraintProto.class, com.google.ortools.sat.LinearConstraintProto.Builder.class);
414 }
415
416 // Construct using com.google.ortools.sat.LinearConstraintProto.newBuilder()
417 private Builder() {
418
419 }
420
421 private Builder(
422 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
423 super(parent);
424
425 }
426 @java.lang.Override
427 public Builder clear() {
428 super.clear();
429 bitField0_ = 0;
430 vars_ = emptyIntList();
431 coeffs_ = emptyLongList();
432 domain_ = emptyLongList();
433 return this;
434 }
435
436 @java.lang.Override
437 public com.google.protobuf.Descriptors.Descriptor
439 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_LinearConstraintProto_descriptor;
440 }
441
442 @java.lang.Override
444 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
445 }
446
447 @java.lang.Override
450 if (!result.isInitialized()) {
451 throw newUninitializedMessageException(result);
452 }
453 return result;
454 }
455
456 @java.lang.Override
458 com.google.ortools.sat.LinearConstraintProto result = new com.google.ortools.sat.LinearConstraintProto(this);
459 if (bitField0_ != 0) { buildPartial0(result); }
460 onBuilt();
461 return result;
462 }
463
464 private void buildPartial0(com.google.ortools.sat.LinearConstraintProto result) {
465 int from_bitField0_ = bitField0_;
466 if (((from_bitField0_ & 0x00000001) != 0)) {
467 vars_.makeImmutable();
468 result.vars_ = vars_;
469 }
470 if (((from_bitField0_ & 0x00000002) != 0)) {
471 coeffs_.makeImmutable();
472 result.coeffs_ = coeffs_;
473 }
474 if (((from_bitField0_ & 0x00000004) != 0)) {
475 domain_.makeImmutable();
476 result.domain_ = domain_;
477 }
478 }
479
480 @java.lang.Override
481 public Builder mergeFrom(com.google.protobuf.Message other) {
482 if (other instanceof com.google.ortools.sat.LinearConstraintProto) {
483 return mergeFrom((com.google.ortools.sat.LinearConstraintProto)other);
484 } else {
485 super.mergeFrom(other);
486 return this;
487 }
488 }
489
490 public Builder mergeFrom(com.google.ortools.sat.LinearConstraintProto other) {
491 if (other == com.google.ortools.sat.LinearConstraintProto.getDefaultInstance()) return this;
492 if (!other.vars_.isEmpty()) {
493 if (vars_.isEmpty()) {
494 vars_ = other.vars_;
495 vars_.makeImmutable();
496 bitField0_ |= 0x00000001;
497 } else {
498 ensureVarsIsMutable();
499 vars_.addAll(other.vars_);
500 }
501 onChanged();
502 }
503 if (!other.coeffs_.isEmpty()) {
504 if (coeffs_.isEmpty()) {
505 coeffs_ = other.coeffs_;
506 coeffs_.makeImmutable();
507 bitField0_ |= 0x00000002;
508 } else {
509 ensureCoeffsIsMutable();
510 coeffs_.addAll(other.coeffs_);
511 }
512 onChanged();
513 }
514 if (!other.domain_.isEmpty()) {
515 if (domain_.isEmpty()) {
516 domain_ = other.domain_;
517 domain_.makeImmutable();
518 bitField0_ |= 0x00000004;
519 } else {
520 ensureDomainIsMutable();
521 domain_.addAll(other.domain_);
522 }
523 onChanged();
524 }
525 this.mergeUnknownFields(other.getUnknownFields());
526 onChanged();
527 return this;
528 }
529
530 @java.lang.Override
531 public final boolean isInitialized() {
532 return true;
533 }
534
535 @java.lang.Override
536 public Builder mergeFrom(
537 com.google.protobuf.CodedInputStream input,
538 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
539 throws java.io.IOException {
540 if (extensionRegistry == null) {
541 throw new java.lang.NullPointerException();
542 }
543 try {
544 boolean done = false;
545 while (!done) {
546 int tag = input.readTag();
547 switch (tag) {
548 case 0:
549 done = true;
550 break;
551 case 8: {
552 int v = input.readInt32();
553 ensureVarsIsMutable();
554 vars_.addInt(v);
555 break;
556 } // case 8
557 case 10: {
558 int length = input.readRawVarint32();
559 int limit = input.pushLimit(length);
560 ensureVarsIsMutable();
561 while (input.getBytesUntilLimit() > 0) {
562 vars_.addInt(input.readInt32());
563 }
564 input.popLimit(limit);
565 break;
566 } // case 10
567 case 16: {
568 long v = input.readInt64();
569 ensureCoeffsIsMutable();
570 coeffs_.addLong(v);
571 break;
572 } // case 16
573 case 18: {
574 int length = input.readRawVarint32();
575 int limit = input.pushLimit(length);
576 ensureCoeffsIsMutable();
577 while (input.getBytesUntilLimit() > 0) {
578 coeffs_.addLong(input.readInt64());
579 }
580 input.popLimit(limit);
581 break;
582 } // case 18
583 case 24: {
584 long v = input.readInt64();
585 ensureDomainIsMutable();
586 domain_.addLong(v);
587 break;
588 } // case 24
589 case 26: {
590 int length = input.readRawVarint32();
591 int limit = input.pushLimit(length);
592 ensureDomainIsMutable();
593 while (input.getBytesUntilLimit() > 0) {
594 domain_.addLong(input.readInt64());
595 }
596 input.popLimit(limit);
597 break;
598 } // case 26
599 default: {
600 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
601 done = true; // was an endgroup tag
602 }
603 break;
604 } // default:
605 } // switch (tag)
606 } // while (!done)
607 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
608 throw e.unwrapIOException();
609 } finally {
610 onChanged();
611 } // finally
612 return this;
613 }
614 private int bitField0_;
615
616 private com.google.protobuf.Internal.IntList vars_ = emptyIntList();
617 private void ensureVarsIsMutable() {
618 if (!vars_.isModifiable()) {
619 vars_ = makeMutableCopy(vars_);
620 }
621 bitField0_ |= 0x00000001;
622 }
627 public java.util.List<java.lang.Integer>
629 vars_.makeImmutable();
630 return vars_;
631 }
632
636 public int getVarsCount() {
637 return vars_.size();
638 }
639
644 public int getVars(int index) {
645 return vars_.getInt(index);
646 }
647
653 public Builder setVars(
654 int index, int value) {
655
656 ensureVarsIsMutable();
657 vars_.setInt(index, value);
658 bitField0_ |= 0x00000001;
659 onChanged();
660 return this;
661 }
662
667 public Builder addVars(int value) {
668
669 ensureVarsIsMutable();
670 vars_.addInt(value);
671 bitField0_ |= 0x00000001;
672 onChanged();
673 return this;
674 }
675
680 public Builder addAllVars(
681 java.lang.Iterable<? extends java.lang.Integer> values) {
682 ensureVarsIsMutable();
683 com.google.protobuf.AbstractMessageLite.Builder.addAll(
684 values, vars_);
685 bitField0_ |= 0x00000001;
686 onChanged();
687 return this;
688 }
689
693 public Builder clearVars() {
694 vars_ = emptyIntList();
695 bitField0_ = (bitField0_ & ~0x00000001);
696 onChanged();
697 return this;
698 }
699
700 private com.google.protobuf.Internal.LongList coeffs_ = emptyLongList();
701 private void ensureCoeffsIsMutable() {
702 if (!coeffs_.isModifiable()) {
703 coeffs_ = makeMutableCopy(coeffs_);
704 }
705 bitField0_ |= 0x00000002;
706 }
715 public java.util.List<java.lang.Long>
717 coeffs_.makeImmutable();
718 return coeffs_;
719 }
720
728 public int getCoeffsCount() {
729 return coeffs_.size();
730 }
731
740 public long getCoeffs(int index) {
741 return coeffs_.getLong(index);
742 }
743
753 public Builder setCoeffs(
754 int index, long value) {
755
756 ensureCoeffsIsMutable();
757 coeffs_.setLong(index, value);
758 bitField0_ |= 0x00000002;
759 onChanged();
760 return this;
761 }
762
771 public Builder addCoeffs(long value) {
772
773 ensureCoeffsIsMutable();
774 coeffs_.addLong(value);
775 bitField0_ |= 0x00000002;
776 onChanged();
777 return this;
778 }
779
788 public Builder addAllCoeffs(
789 java.lang.Iterable<? extends java.lang.Long> values) {
790 ensureCoeffsIsMutable();
791 com.google.protobuf.AbstractMessageLite.Builder.addAll(
792 values, coeffs_);
793 bitField0_ |= 0x00000002;
794 onChanged();
795 return this;
796 }
797
805 public Builder clearCoeffs() {
806 coeffs_ = emptyLongList();
807 bitField0_ = (bitField0_ & ~0x00000002);
808 onChanged();
809 return this;
810 }
811
812 private com.google.protobuf.Internal.LongList domain_ = emptyLongList();
813 private void ensureDomainIsMutable() {
814 if (!domain_.isModifiable()) {
815 domain_ = makeMutableCopy(domain_);
816 }
817 bitField0_ |= 0x00000004;
818 }
823 public java.util.List<java.lang.Long>
825 domain_.makeImmutable();
826 return domain_;
827 }
828
832 public int getDomainCount() {
833 return domain_.size();
834 }
835
840 public long getDomain(int index) {
841 return domain_.getLong(index);
842 }
843
849 public Builder setDomain(
850 int index, long value) {
851
852 ensureDomainIsMutable();
853 domain_.setLong(index, value);
854 bitField0_ |= 0x00000004;
855 onChanged();
856 return this;
857 }
858
863 public Builder addDomain(long value) {
864
865 ensureDomainIsMutable();
866 domain_.addLong(value);
867 bitField0_ |= 0x00000004;
868 onChanged();
869 return this;
870 }
871
876 public Builder addAllDomain(
877 java.lang.Iterable<? extends java.lang.Long> values) {
878 ensureDomainIsMutable();
879 com.google.protobuf.AbstractMessageLite.Builder.addAll(
880 values, domain_);
881 bitField0_ |= 0x00000004;
882 onChanged();
883 return this;
884 }
885
889 public Builder clearDomain() {
890 domain_ = emptyLongList();
891 bitField0_ = (bitField0_ & ~0x00000004);
892 onChanged();
893 return this;
894 }
895
896 // @@protoc_insertion_point(builder_scope:operations_research.sat.LinearConstraintProto)
897 }
898
899 // @@protoc_insertion_point(class_scope:operations_research.sat.LinearConstraintProto)
900 private static final com.google.ortools.sat.LinearConstraintProto DEFAULT_INSTANCE;
901 static {
902 DEFAULT_INSTANCE = new com.google.ortools.sat.LinearConstraintProto();
903 }
904
906 return DEFAULT_INSTANCE;
907 }
908
909 private static final com.google.protobuf.Parser<LinearConstraintProto>
910 PARSER = new com.google.protobuf.AbstractParser<LinearConstraintProto>() {
911 @java.lang.Override
912 public LinearConstraintProto parsePartialFrom(
913 com.google.protobuf.CodedInputStream input,
914 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
915 throws com.google.protobuf.InvalidProtocolBufferException {
916 Builder builder = newBuilder();
917 try {
918 builder.mergeFrom(input, extensionRegistry);
919 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
920 throw e.setUnfinishedMessage(builder.buildPartial());
921 } catch (com.google.protobuf.UninitializedMessageException e) {
922 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
923 } catch (java.io.IOException e) {
924 throw new com.google.protobuf.InvalidProtocolBufferException(e)
925 .setUnfinishedMessage(builder.buildPartial());
926 }
927 return builder.buildPartial();
928 }
929 };
930
931 public static com.google.protobuf.Parser<LinearConstraintProto> parser() {
932 return PARSER;
933 }
934
935 @java.lang.Override
936 public com.google.protobuf.Parser<LinearConstraintProto> getParserForType() {
937 return PARSER;
938 }
939
940 @java.lang.Override
942 return DEFAULT_INSTANCE;
943 }
944
945}
946
Builder addAllCoeffs(java.lang.Iterable<? extends java.lang.Long > values)
Builder addAllVars(java.lang.Iterable<? extends java.lang.Integer > values)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder addAllDomain(java.lang.Iterable<? extends java.lang.Long > values)
com.google.ortools.sat.LinearConstraintProto build()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.sat.LinearConstraintProto getDefaultInstanceForType()
Builder mergeFrom(com.google.protobuf.Message other)
Builder mergeFrom(com.google.ortools.sat.LinearConstraintProto other)
com.google.ortools.sat.LinearConstraintProto buildPartial()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Builder newBuilder(com.google.ortools.sat.LinearConstraintProto prototype)
static com.google.ortools.sat.LinearConstraintProto parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.sat.LinearConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< LinearConstraintProto > getParserForType()
static com.google.ortools.sat.LinearConstraintProto parseFrom(byte[] data)
static com.google.ortools.sat.LinearConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.protobuf.Parser< LinearConstraintProto > parser()
static com.google.ortools.sat.LinearConstraintProto getDefaultInstance()
com.google.ortools.sat.LinearConstraintProto getDefaultInstanceForType()
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.sat.LinearConstraintProto parseFrom(com.google.protobuf.ByteString data)
java.util.List< java.lang.Long > getCoeffsList()
static com.google.ortools.sat.LinearConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
java.util.List< java.lang.Long > getDomainList()
java.util.List< java.lang.Integer > getVarsList()
static com.google.ortools.sat.LinearConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.sat.LinearConstraintProto parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.sat.LinearConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.sat.LinearConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.LinearConstraintProto parseFrom(java.io.InputStream input)