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