Java Reference

Java Reference

DecisionStrategyProto.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
14public final class DecisionStrategyProto extends
15 com.google.protobuf.GeneratedMessageV3 implements
16 // @@protoc_insertion_point(message_implements:operations_research.sat.DecisionStrategyProto)
18private static final long serialVersionUID = 0L;
19 // Use DecisionStrategyProto.newBuilder() to construct.
20 private DecisionStrategyProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
21 super(builder);
22 }
23 private DecisionStrategyProto() {
24 variables_ = emptyIntList();
25 variableSelectionStrategy_ = 0;
26 domainReductionStrategy_ = 0;
27 transformations_ = java.util.Collections.emptyList();
28 }
29
30 @java.lang.Override
31 @SuppressWarnings({"unused"})
32 protected java.lang.Object newInstance(
33 UnusedPrivateParameter unused) {
34 return new DecisionStrategyProto();
35 }
36
37 @java.lang.Override
38 public final com.google.protobuf.UnknownFieldSet
40 return this.unknownFields;
41 }
43 com.google.protobuf.CodedInputStream input,
44 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
45 throws com.google.protobuf.InvalidProtocolBufferException {
46 this();
47 if (extensionRegistry == null) {
48 throw new java.lang.NullPointerException();
49 }
50 int mutable_bitField0_ = 0;
51 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
52 com.google.protobuf.UnknownFieldSet.newBuilder();
53 try {
54 boolean done = false;
55 while (!done) {
56 int tag = input.readTag();
57 switch (tag) {
58 case 0:
59 done = true;
60 break;
61 case 8: {
62 if (!((mutable_bitField0_ & 0x00000001) != 0)) {
63 variables_ = newIntList();
64 mutable_bitField0_ |= 0x00000001;
65 }
66 variables_.addInt(input.readInt32());
67 break;
68 }
69 case 10: {
70 int length = input.readRawVarint32();
71 int limit = input.pushLimit(length);
72 if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
73 variables_ = newIntList();
74 mutable_bitField0_ |= 0x00000001;
75 }
76 while (input.getBytesUntilLimit() > 0) {
77 variables_.addInt(input.readInt32());
78 }
79 input.popLimit(limit);
80 break;
81 }
82 case 16: {
83 int rawValue = input.readEnum();
84
85 variableSelectionStrategy_ = rawValue;
86 break;
87 }
88 case 24: {
89 int rawValue = input.readEnum();
90
91 domainReductionStrategy_ = rawValue;
92 break;
93 }
94 case 34: {
95 if (!((mutable_bitField0_ & 0x00000002) != 0)) {
96 transformations_ = new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation>();
97 mutable_bitField0_ |= 0x00000002;
98 }
99 transformations_.add(
100 input.readMessage(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.parser(), extensionRegistry));
101 break;
102 }
103 default: {
104 if (!parseUnknownField(
105 input, unknownFields, extensionRegistry, tag)) {
106 done = true;
107 }
108 break;
109 }
110 }
111 }
112 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
113 throw e.setUnfinishedMessage(this);
114 } catch (java.io.IOException e) {
115 throw new com.google.protobuf.InvalidProtocolBufferException(
116 e).setUnfinishedMessage(this);
117 } finally {
118 if (((mutable_bitField0_ & 0x00000001) != 0)) {
119 variables_.makeImmutable(); // C
120 }
121 if (((mutable_bitField0_ & 0x00000002) != 0)) {
122 transformations_ = java.util.Collections.unmodifiableList(transformations_);
123 }
124 this.unknownFields = unknownFields.build();
125 makeExtensionsImmutable();
126 }
127 }
128 public static final com.google.protobuf.Descriptors.Descriptor
130 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_descriptor;
131 }
132
133 @java.lang.Override
134 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
136 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_fieldAccessorTable
137 .ensureFieldAccessorsInitialized(
138 com.google.ortools.sat.DecisionStrategyProto.class, com.google.ortools.sat.DecisionStrategyProto.Builder.class);
139 }
140
151 implements com.google.protobuf.ProtocolMessageEnum {
173 ;
174
178 public static final int CHOOSE_FIRST_VALUE = 0;
182 public static final int CHOOSE_LOWEST_MIN_VALUE = 1;
186 public static final int CHOOSE_HIGHEST_MAX_VALUE = 2;
190 public static final int CHOOSE_MIN_DOMAIN_SIZE_VALUE = 3;
194 public static final int CHOOSE_MAX_DOMAIN_SIZE_VALUE = 4;
195
196
197 public final int getNumber() {
198 if (this == UNRECOGNIZED) {
199 throw new java.lang.IllegalArgumentException(
200 "Can't get the number of an unknown enum value.");
201 }
202 return value;
203 }
204
210 @java.lang.Deprecated
211 public static VariableSelectionStrategy valueOf(int value) {
212 return forNumber(value);
213 }
214
219 public static VariableSelectionStrategy forNumber(int value) {
220 switch (value) {
221 case 0: return CHOOSE_FIRST;
222 case 1: return CHOOSE_LOWEST_MIN;
223 case 2: return CHOOSE_HIGHEST_MAX;
224 case 3: return CHOOSE_MIN_DOMAIN_SIZE;
225 case 4: return CHOOSE_MAX_DOMAIN_SIZE;
226 default: return null;
227 }
228 }
229
230 public static com.google.protobuf.Internal.EnumLiteMap<VariableSelectionStrategy>
232 return internalValueMap;
233 }
234 private static final com.google.protobuf.Internal.EnumLiteMap<
235 VariableSelectionStrategy> internalValueMap =
236 new com.google.protobuf.Internal.EnumLiteMap<VariableSelectionStrategy>() {
237 public VariableSelectionStrategy findValueByNumber(int number) {
239 }
240 };
241
242 public final com.google.protobuf.Descriptors.EnumValueDescriptor
244 if (this == UNRECOGNIZED) {
245 throw new java.lang.IllegalStateException(
246 "Can't get the descriptor of an unrecognized enum value.");
247 }
248 return getDescriptor().getValues().get(ordinal());
249 }
250 public final com.google.protobuf.Descriptors.EnumDescriptor
252 return getDescriptor();
253 }
254 public static final com.google.protobuf.Descriptors.EnumDescriptor
256 return com.google.ortools.sat.DecisionStrategyProto.getDescriptor().getEnumTypes().get(0);
257 }
258
259 private static final VariableSelectionStrategy[] VALUES = values();
260
262 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
263 if (desc.getType() != getDescriptor()) {
264 throw new java.lang.IllegalArgumentException(
265 "EnumValueDescriptor is not for this type.");
266 }
267 if (desc.getIndex() == -1) {
268 return UNRECOGNIZED;
269 }
270 return VALUES[desc.getIndex()];
271 }
272
273 private final int value;
274
275 private VariableSelectionStrategy(int value) {
276 this.value = value;
277 }
278
279 // @@protoc_insertion_point(enum_scope:operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy)
280 }
281
292 implements com.google.protobuf.ProtocolMessageEnum {
314 ;
315
319 public static final int SELECT_MIN_VALUE_VALUE = 0;
323 public static final int SELECT_MAX_VALUE_VALUE = 1;
327 public static final int SELECT_LOWER_HALF_VALUE = 2;
331 public static final int SELECT_UPPER_HALF_VALUE = 3;
335 public static final int SELECT_MEDIAN_VALUE_VALUE = 4;
336
337
338 public final int getNumber() {
339 if (this == UNRECOGNIZED) {
340 throw new java.lang.IllegalArgumentException(
341 "Can't get the number of an unknown enum value.");
342 }
343 return value;
344 }
345
351 @java.lang.Deprecated
352 public static DomainReductionStrategy valueOf(int value) {
353 return forNumber(value);
354 }
355
360 public static DomainReductionStrategy forNumber(int value) {
361 switch (value) {
362 case 0: return SELECT_MIN_VALUE;
363 case 1: return SELECT_MAX_VALUE;
364 case 2: return SELECT_LOWER_HALF;
365 case 3: return SELECT_UPPER_HALF;
366 case 4: return SELECT_MEDIAN_VALUE;
367 default: return null;
368 }
369 }
370
371 public static com.google.protobuf.Internal.EnumLiteMap<DomainReductionStrategy>
373 return internalValueMap;
374 }
375 private static final com.google.protobuf.Internal.EnumLiteMap<
376 DomainReductionStrategy> internalValueMap =
377 new com.google.protobuf.Internal.EnumLiteMap<DomainReductionStrategy>() {
378 public DomainReductionStrategy findValueByNumber(int number) {
379 return DomainReductionStrategy.forNumber(number);
380 }
381 };
382
383 public final com.google.protobuf.Descriptors.EnumValueDescriptor
385 if (this == UNRECOGNIZED) {
386 throw new java.lang.IllegalStateException(
387 "Can't get the descriptor of an unrecognized enum value.");
388 }
389 return getDescriptor().getValues().get(ordinal());
390 }
391 public final com.google.protobuf.Descriptors.EnumDescriptor
393 return getDescriptor();
394 }
395 public static final com.google.protobuf.Descriptors.EnumDescriptor
397 return com.google.ortools.sat.DecisionStrategyProto.getDescriptor().getEnumTypes().get(1);
398 }
399
400 private static final DomainReductionStrategy[] VALUES = values();
401
403 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
404 if (desc.getType() != getDescriptor()) {
405 throw new java.lang.IllegalArgumentException(
406 "EnumValueDescriptor is not for this type.");
407 }
408 if (desc.getIndex() == -1) {
409 return UNRECOGNIZED;
410 }
411 return VALUES[desc.getIndex()];
412 }
413
414 private final int value;
415
416 private DomainReductionStrategy(int value) {
417 this.value = value;
418 }
419
420 // @@protoc_insertion_point(enum_scope:operations_research.sat.DecisionStrategyProto.DomainReductionStrategy)
421 }
422
423 public interface AffineTransformationOrBuilder extends
424 // @@protoc_insertion_point(interface_extends:operations_research.sat.DecisionStrategyProto.AffineTransformation)
425 com.google.protobuf.MessageOrBuilder {
426
431 int getIndex();
432
437 long getOffset();
438
444 }
455 public static final class AffineTransformation extends
456 com.google.protobuf.GeneratedMessageV3 implements
457 // @@protoc_insertion_point(message_implements:operations_research.sat.DecisionStrategyProto.AffineTransformation)
459 private static final long serialVersionUID = 0L;
460 // Use AffineTransformation.newBuilder() to construct.
461 private AffineTransformation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
462 super(builder);
463 }
464 private AffineTransformation() {
465 }
466
467 @java.lang.Override
468 @SuppressWarnings({"unused"})
469 protected java.lang.Object newInstance(
470 UnusedPrivateParameter unused) {
471 return new AffineTransformation();
472 }
473
474 @java.lang.Override
475 public final com.google.protobuf.UnknownFieldSet
477 return this.unknownFields;
478 }
479 private AffineTransformation(
480 com.google.protobuf.CodedInputStream input,
481 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
482 throws com.google.protobuf.InvalidProtocolBufferException {
483 this();
484 if (extensionRegistry == null) {
485 throw new java.lang.NullPointerException();
486 }
487 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
488 com.google.protobuf.UnknownFieldSet.newBuilder();
489 try {
490 boolean done = false;
491 while (!done) {
492 int tag = input.readTag();
493 switch (tag) {
494 case 0:
495 done = true;
496 break;
497 case 8: {
498
499 index_ = input.readInt32();
500 break;
501 }
502 case 16: {
503
504 offset_ = input.readInt64();
505 break;
506 }
507 case 24: {
508
509 positiveCoeff_ = input.readInt64();
510 break;
511 }
512 default: {
513 if (!parseUnknownField(
514 input, unknownFields, extensionRegistry, tag)) {
515 done = true;
516 }
517 break;
518 }
519 }
520 }
521 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
522 throw e.setUnfinishedMessage(this);
523 } catch (java.io.IOException e) {
524 throw new com.google.protobuf.InvalidProtocolBufferException(
525 e).setUnfinishedMessage(this);
526 } finally {
527 this.unknownFields = unknownFields.build();
528 makeExtensionsImmutable();
529 }
530 }
531 public static final com.google.protobuf.Descriptors.Descriptor
533 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
534 }
535
536 @java.lang.Override
537 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
539 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_fieldAccessorTable
540 .ensureFieldAccessorsInitialized(
541 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.class, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder.class);
542 }
543
544 public static final int INDEX_FIELD_NUMBER = 1;
545 private int index_;
550 @java.lang.Override
551 public int getIndex() {
552 return index_;
553 }
554
555 public static final int OFFSET_FIELD_NUMBER = 2;
556 private long offset_;
561 @java.lang.Override
562 public long getOffset() {
563 return offset_;
564 }
565
566 public static final int POSITIVE_COEFF_FIELD_NUMBER = 3;
567 private long positiveCoeff_;
572 @java.lang.Override
573 public long getPositiveCoeff() {
574 return positiveCoeff_;
575 }
576
577 private byte memoizedIsInitialized = -1;
578 @java.lang.Override
579 public final boolean isInitialized() {
580 byte isInitialized = memoizedIsInitialized;
581 if (isInitialized == 1) return true;
582 if (isInitialized == 0) return false;
583
584 memoizedIsInitialized = 1;
585 return true;
586 }
587
588 @java.lang.Override
589 public void writeTo(com.google.protobuf.CodedOutputStream output)
590 throws java.io.IOException {
591 if (index_ != 0) {
592 output.writeInt32(1, index_);
593 }
594 if (offset_ != 0L) {
595 output.writeInt64(2, offset_);
596 }
597 if (positiveCoeff_ != 0L) {
598 output.writeInt64(3, positiveCoeff_);
599 }
600 unknownFields.writeTo(output);
601 }
602
603 @java.lang.Override
604 public int getSerializedSize() {
605 int size = memoizedSize;
606 if (size != -1) return size;
607
608 size = 0;
609 if (index_ != 0) {
610 size += com.google.protobuf.CodedOutputStream
611 .computeInt32Size(1, index_);
612 }
613 if (offset_ != 0L) {
614 size += com.google.protobuf.CodedOutputStream
615 .computeInt64Size(2, offset_);
616 }
617 if (positiveCoeff_ != 0L) {
618 size += com.google.protobuf.CodedOutputStream
619 .computeInt64Size(3, positiveCoeff_);
620 }
621 size += unknownFields.getSerializedSize();
622 memoizedSize = size;
623 return size;
624 }
625
626 @java.lang.Override
627 public boolean equals(final java.lang.Object obj) {
628 if (obj == this) {
629 return true;
630 }
631 if (!(obj instanceof com.google.ortools.sat.DecisionStrategyProto.AffineTransformation)) {
632 return super.equals(obj);
633 }
634 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation other = (com.google.ortools.sat.DecisionStrategyProto.AffineTransformation) obj;
635
636 if (getIndex()
637 != other.getIndex()) return false;
638 if (getOffset()
639 != other.getOffset()) return false;
640 if (getPositiveCoeff()
641 != other.getPositiveCoeff()) return false;
642 if (!unknownFields.equals(other.unknownFields)) return false;
643 return true;
644 }
645
646 @java.lang.Override
647 public int hashCode() {
648 if (memoizedHashCode != 0) {
649 return memoizedHashCode;
650 }
651 int hash = 41;
652 hash = (19 * hash) + getDescriptor().hashCode();
653 hash = (37 * hash) + INDEX_FIELD_NUMBER;
654 hash = (53 * hash) + getIndex();
655 hash = (37 * hash) + OFFSET_FIELD_NUMBER;
656 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
657 getOffset());
658 hash = (37 * hash) + POSITIVE_COEFF_FIELD_NUMBER;
659 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
661 hash = (29 * hash) + unknownFields.hashCode();
662 memoizedHashCode = hash;
663 return hash;
664 }
665
666 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(
667 java.nio.ByteBuffer data)
668 throws com.google.protobuf.InvalidProtocolBufferException {
669 return PARSER.parseFrom(data);
670 }
671 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(
672 java.nio.ByteBuffer data,
673 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
674 throws com.google.protobuf.InvalidProtocolBufferException {
675 return PARSER.parseFrom(data, extensionRegistry);
676 }
677 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(
678 com.google.protobuf.ByteString data)
679 throws com.google.protobuf.InvalidProtocolBufferException {
680 return PARSER.parseFrom(data);
681 }
682 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(
683 com.google.protobuf.ByteString data,
684 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
685 throws com.google.protobuf.InvalidProtocolBufferException {
686 return PARSER.parseFrom(data, extensionRegistry);
687 }
688 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(byte[] data)
689 throws com.google.protobuf.InvalidProtocolBufferException {
690 return PARSER.parseFrom(data);
691 }
692 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(
693 byte[] data,
694 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
695 throws com.google.protobuf.InvalidProtocolBufferException {
696 return PARSER.parseFrom(data, extensionRegistry);
697 }
698 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.io.InputStream input)
699 throws java.io.IOException {
700 return com.google.protobuf.GeneratedMessageV3
701 .parseWithIOException(PARSER, input);
702 }
703 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(
704 java.io.InputStream input,
705 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
706 throws java.io.IOException {
707 return com.google.protobuf.GeneratedMessageV3
708 .parseWithIOException(PARSER, input, extensionRegistry);
709 }
710 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseDelimitedFrom(java.io.InputStream input)
711 throws java.io.IOException {
712 return com.google.protobuf.GeneratedMessageV3
713 .parseDelimitedWithIOException(PARSER, input);
714 }
715 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseDelimitedFrom(
716 java.io.InputStream input,
717 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
718 throws java.io.IOException {
719 return com.google.protobuf.GeneratedMessageV3
720 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
721 }
722 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(
723 com.google.protobuf.CodedInputStream input)
724 throws java.io.IOException {
725 return com.google.protobuf.GeneratedMessageV3
726 .parseWithIOException(PARSER, input);
727 }
728 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(
729 com.google.protobuf.CodedInputStream input,
730 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
731 throws java.io.IOException {
732 return com.google.protobuf.GeneratedMessageV3
733 .parseWithIOException(PARSER, input, extensionRegistry);
734 }
735
736 @java.lang.Override
737 public Builder newBuilderForType() { return newBuilder(); }
738 public static Builder newBuilder() {
739 return DEFAULT_INSTANCE.toBuilder();
740 }
741 public static Builder newBuilder(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation prototype) {
742 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
743 }
744 @java.lang.Override
746 return this == DEFAULT_INSTANCE
747 ? new Builder() : new Builder().mergeFrom(this);
748 }
749
750 @java.lang.Override
752 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
753 Builder builder = new Builder(parent);
754 return builder;
755 }
766 public static final class Builder extends
767 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
768 // @@protoc_insertion_point(builder_implements:operations_research.sat.DecisionStrategyProto.AffineTransformation)
770 public static final com.google.protobuf.Descriptors.Descriptor
772 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
773 }
774
775 @java.lang.Override
776 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
778 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_fieldAccessorTable
779 .ensureFieldAccessorsInitialized(
780 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.class, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder.class);
781 }
782
783 // Construct using com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.newBuilder()
784 private Builder() {
785 maybeForceBuilderInitialization();
786 }
787
788 private Builder(
789 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
790 super(parent);
791 maybeForceBuilderInitialization();
792 }
793 private void maybeForceBuilderInitialization() {
794 if (com.google.protobuf.GeneratedMessageV3
795 .alwaysUseFieldBuilders) {
796 }
797 }
798 @java.lang.Override
799 public Builder clear() {
800 super.clear();
801 index_ = 0;
802
803 offset_ = 0L;
804
805 positiveCoeff_ = 0L;
806
807 return this;
808 }
809
810 @java.lang.Override
811 public com.google.protobuf.Descriptors.Descriptor
813 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
814 }
815
816 @java.lang.Override
817 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstanceForType() {
818 return com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.getDefaultInstance();
819 }
820
821 @java.lang.Override
822 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation build() {
823 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation result = buildPartial();
824 if (!result.isInitialized()) {
825 throw newUninitializedMessageException(result);
826 }
827 return result;
828 }
829
830 @java.lang.Override
831 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation buildPartial() {
832 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation result = new com.google.ortools.sat.DecisionStrategyProto.AffineTransformation(this);
833 result.index_ = index_;
834 result.offset_ = offset_;
835 result.positiveCoeff_ = positiveCoeff_;
836 onBuilt();
837 return result;
838 }
839
840 @java.lang.Override
841 public Builder clone() {
842 return super.clone();
843 }
844 @java.lang.Override
846 com.google.protobuf.Descriptors.FieldDescriptor field,
847 java.lang.Object value) {
848 return super.setField(field, value);
849 }
850 @java.lang.Override
852 com.google.protobuf.Descriptors.FieldDescriptor field) {
853 return super.clearField(field);
854 }
855 @java.lang.Override
857 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
858 return super.clearOneof(oneof);
859 }
860 @java.lang.Override
862 com.google.protobuf.Descriptors.FieldDescriptor field,
863 int index, java.lang.Object value) {
864 return super.setRepeatedField(field, index, value);
865 }
866 @java.lang.Override
868 com.google.protobuf.Descriptors.FieldDescriptor field,
869 java.lang.Object value) {
870 return super.addRepeatedField(field, value);
871 }
872 @java.lang.Override
873 public Builder mergeFrom(com.google.protobuf.Message other) {
874 if (other instanceof com.google.ortools.sat.DecisionStrategyProto.AffineTransformation) {
875 return mergeFrom((com.google.ortools.sat.DecisionStrategyProto.AffineTransformation)other);
876 } else {
877 super.mergeFrom(other);
878 return this;
879 }
880 }
881
882 public Builder mergeFrom(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation other) {
883 if (other == com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.getDefaultInstance()) return this;
884 if (other.getIndex() != 0) {
885 setIndex(other.getIndex());
886 }
887 if (other.getOffset() != 0L) {
888 setOffset(other.getOffset());
889 }
890 if (other.getPositiveCoeff() != 0L) {
891 setPositiveCoeff(other.getPositiveCoeff());
892 }
893 this.mergeUnknownFields(other.unknownFields);
894 onChanged();
895 return this;
896 }
897
898 @java.lang.Override
899 public final boolean isInitialized() {
900 return true;
901 }
902
903 @java.lang.Override
905 com.google.protobuf.CodedInputStream input,
906 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
907 throws java.io.IOException {
908 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parsedMessage = null;
909 try {
910 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
911 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
912 parsedMessage = (com.google.ortools.sat.DecisionStrategyProto.AffineTransformation) e.getUnfinishedMessage();
913 throw e.unwrapIOException();
914 } finally {
915 if (parsedMessage != null) {
916 mergeFrom(parsedMessage);
917 }
918 }
919 return this;
920 }
921
922 private int index_ ;
927 @java.lang.Override
928 public int getIndex() {
929 return index_;
930 }
936 public Builder setIndex(int value) {
937
938 index_ = value;
939 onChanged();
940 return this;
941 }
947
948 index_ = 0;
949 onChanged();
950 return this;
951 }
952
953 private long offset_ ;
958 @java.lang.Override
959 public long getOffset() {
960 return offset_;
961 }
967 public Builder setOffset(long value) {
968
969 offset_ = value;
970 onChanged();
971 return this;
972 }
978
979 offset_ = 0L;
980 onChanged();
981 return this;
982 }
983
984 private long positiveCoeff_ ;
989 @java.lang.Override
990 public long getPositiveCoeff() {
991 return positiveCoeff_;
992 }
998 public Builder setPositiveCoeff(long value) {
999
1000 positiveCoeff_ = value;
1001 onChanged();
1002 return this;
1003 }
1009
1010 positiveCoeff_ = 0L;
1011 onChanged();
1012 return this;
1013 }
1014 @java.lang.Override
1016 final com.google.protobuf.UnknownFieldSet unknownFields) {
1017 return super.setUnknownFields(unknownFields);
1018 }
1019
1020 @java.lang.Override
1022 final com.google.protobuf.UnknownFieldSet unknownFields) {
1023 return super.mergeUnknownFields(unknownFields);
1024 }
1025
1026
1027 // @@protoc_insertion_point(builder_scope:operations_research.sat.DecisionStrategyProto.AffineTransformation)
1028 }
1029
1030 // @@protoc_insertion_point(class_scope:operations_research.sat.DecisionStrategyProto.AffineTransformation)
1031 private static final com.google.ortools.sat.DecisionStrategyProto.AffineTransformation DEFAULT_INSTANCE;
1032 static {
1033 DEFAULT_INSTANCE = new com.google.ortools.sat.DecisionStrategyProto.AffineTransformation();
1034 }
1035
1036 public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstance() {
1037 return DEFAULT_INSTANCE;
1038 }
1039
1040 private static final com.google.protobuf.Parser<AffineTransformation>
1041 PARSER = new com.google.protobuf.AbstractParser<AffineTransformation>() {
1042 @java.lang.Override
1043 public AffineTransformation parsePartialFrom(
1044 com.google.protobuf.CodedInputStream input,
1045 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1046 throws com.google.protobuf.InvalidProtocolBufferException {
1047 return new AffineTransformation(input, extensionRegistry);
1048 }
1049 };
1050
1051 public static com.google.protobuf.Parser<AffineTransformation> parser() {
1052 return PARSER;
1053 }
1054
1055 @java.lang.Override
1056 public com.google.protobuf.Parser<AffineTransformation> getParserForType() {
1057 return PARSER;
1058 }
1059
1060 @java.lang.Override
1061 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstanceForType() {
1062 return DEFAULT_INSTANCE;
1063 }
1064
1065 }
1066
1067 public static final int VARIABLES_FIELD_NUMBER = 1;
1068 private com.google.protobuf.Internal.IntList variables_;
1079 @java.lang.Override
1080 public java.util.List<java.lang.Integer>
1082 return variables_;
1083 }
1094 public int getVariablesCount() {
1095 return variables_.size();
1096 }
1108 public int getVariables(int index) {
1109 return variables_.getInt(index);
1110 }
1111 private int variablesMemoizedSerializedSize = -1;
1112
1113 public static final int VARIABLE_SELECTION_STRATEGY_FIELD_NUMBER = 2;
1114 private int variableSelectionStrategy_;
1119 @java.lang.Override public int getVariableSelectionStrategyValue() {
1120 return variableSelectionStrategy_;
1121 }
1126 @java.lang.Override public com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy getVariableSelectionStrategy() {
1127 @SuppressWarnings("deprecation")
1128 com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy result = com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.valueOf(variableSelectionStrategy_);
1129 return result == null ? com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.UNRECOGNIZED : result;
1130 }
1131
1132 public static final int DOMAIN_REDUCTION_STRATEGY_FIELD_NUMBER = 3;
1133 private int domainReductionStrategy_;
1138 @java.lang.Override public int getDomainReductionStrategyValue() {
1139 return domainReductionStrategy_;
1140 }
1145 @java.lang.Override public com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy getDomainReductionStrategy() {
1146 @SuppressWarnings("deprecation")
1147 com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy result = com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.valueOf(domainReductionStrategy_);
1148 return result == null ? com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.UNRECOGNIZED : result;
1149 }
1150
1151 public static final int TRANSFORMATIONS_FIELD_NUMBER = 4;
1152 private java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> transformations_;
1156 @java.lang.Override
1157 public java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> getTransformationsList() {
1158 return transformations_;
1159 }
1163 @java.lang.Override
1164 public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder>
1166 return transformations_;
1167 }
1171 @java.lang.Override
1173 return transformations_.size();
1174 }
1178 @java.lang.Override
1179 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getTransformations(int index) {
1180 return transformations_.get(index);
1181 }
1185 @java.lang.Override
1186 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder getTransformationsOrBuilder(
1187 int index) {
1188 return transformations_.get(index);
1189 }
1190
1191 private byte memoizedIsInitialized = -1;
1192 @java.lang.Override
1193 public final boolean isInitialized() {
1194 byte isInitialized = memoizedIsInitialized;
1195 if (isInitialized == 1) return true;
1196 if (isInitialized == 0) return false;
1197
1198 memoizedIsInitialized = 1;
1199 return true;
1200 }
1201
1202 @java.lang.Override
1203 public void writeTo(com.google.protobuf.CodedOutputStream output)
1204 throws java.io.IOException {
1206 if (getVariablesList().size() > 0) {
1207 output.writeUInt32NoTag(10);
1208 output.writeUInt32NoTag(variablesMemoizedSerializedSize);
1209 }
1210 for (int i = 0; i < variables_.size(); i++) {
1211 output.writeInt32NoTag(variables_.getInt(i));
1212 }
1213 if (variableSelectionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.CHOOSE_FIRST.getNumber()) {
1214 output.writeEnum(2, variableSelectionStrategy_);
1215 }
1216 if (domainReductionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.SELECT_MIN_VALUE.getNumber()) {
1217 output.writeEnum(3, domainReductionStrategy_);
1218 }
1219 for (int i = 0; i < transformations_.size(); i++) {
1220 output.writeMessage(4, transformations_.get(i));
1221 }
1222 unknownFields.writeTo(output);
1223 }
1224
1225 @java.lang.Override
1226 public int getSerializedSize() {
1227 int size = memoizedSize;
1228 if (size != -1) return size;
1229
1230 size = 0;
1231 {
1232 int dataSize = 0;
1233 for (int i = 0; i < variables_.size(); i++) {
1234 dataSize += com.google.protobuf.CodedOutputStream
1235 .computeInt32SizeNoTag(variables_.getInt(i));
1236 }
1237 size += dataSize;
1238 if (!getVariablesList().isEmpty()) {
1239 size += 1;
1240 size += com.google.protobuf.CodedOutputStream
1241 .computeInt32SizeNoTag(dataSize);
1242 }
1243 variablesMemoizedSerializedSize = dataSize;
1244 }
1245 if (variableSelectionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.CHOOSE_FIRST.getNumber()) {
1246 size += com.google.protobuf.CodedOutputStream
1247 .computeEnumSize(2, variableSelectionStrategy_);
1248 }
1249 if (domainReductionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.SELECT_MIN_VALUE.getNumber()) {
1250 size += com.google.protobuf.CodedOutputStream
1251 .computeEnumSize(3, domainReductionStrategy_);
1252 }
1253 for (int i = 0; i < transformations_.size(); i++) {
1254 size += com.google.protobuf.CodedOutputStream
1255 .computeMessageSize(4, transformations_.get(i));
1256 }
1257 size += unknownFields.getSerializedSize();
1258 memoizedSize = size;
1259 return size;
1260 }
1261
1262 @java.lang.Override
1263 public boolean equals(final java.lang.Object obj) {
1264 if (obj == this) {
1265 return true;
1266 }
1267 if (!(obj instanceof com.google.ortools.sat.DecisionStrategyProto)) {
1268 return super.equals(obj);
1269 }
1270 com.google.ortools.sat.DecisionStrategyProto other = (com.google.ortools.sat.DecisionStrategyProto) obj;
1271
1272 if (!getVariablesList()
1273 .equals(other.getVariablesList())) return false;
1274 if (variableSelectionStrategy_ != other.variableSelectionStrategy_) return false;
1275 if (domainReductionStrategy_ != other.domainReductionStrategy_) return false;
1277 .equals(other.getTransformationsList())) return false;
1278 if (!unknownFields.equals(other.unknownFields)) return false;
1279 return true;
1280 }
1281
1282 @java.lang.Override
1283 public int hashCode() {
1284 if (memoizedHashCode != 0) {
1285 return memoizedHashCode;
1286 }
1287 int hash = 41;
1288 hash = (19 * hash) + getDescriptor().hashCode();
1289 if (getVariablesCount() > 0) {
1290 hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
1291 hash = (53 * hash) + getVariablesList().hashCode();
1292 }
1293 hash = (37 * hash) + VARIABLE_SELECTION_STRATEGY_FIELD_NUMBER;
1294 hash = (53 * hash) + variableSelectionStrategy_;
1295 hash = (37 * hash) + DOMAIN_REDUCTION_STRATEGY_FIELD_NUMBER;
1296 hash = (53 * hash) + domainReductionStrategy_;
1297 if (getTransformationsCount() > 0) {
1298 hash = (37 * hash) + TRANSFORMATIONS_FIELD_NUMBER;
1299 hash = (53 * hash) + getTransformationsList().hashCode();
1300 }
1301 hash = (29 * hash) + unknownFields.hashCode();
1302 memoizedHashCode = hash;
1303 return hash;
1304 }
1305
1306 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(
1307 java.nio.ByteBuffer data)
1308 throws com.google.protobuf.InvalidProtocolBufferException {
1309 return PARSER.parseFrom(data);
1310 }
1311 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(
1312 java.nio.ByteBuffer data,
1313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1314 throws com.google.protobuf.InvalidProtocolBufferException {
1315 return PARSER.parseFrom(data, extensionRegistry);
1316 }
1317 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(
1318 com.google.protobuf.ByteString data)
1319 throws com.google.protobuf.InvalidProtocolBufferException {
1320 return PARSER.parseFrom(data);
1321 }
1322 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(
1323 com.google.protobuf.ByteString data,
1324 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1325 throws com.google.protobuf.InvalidProtocolBufferException {
1326 return PARSER.parseFrom(data, extensionRegistry);
1327 }
1328 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(byte[] data)
1329 throws com.google.protobuf.InvalidProtocolBufferException {
1330 return PARSER.parseFrom(data);
1331 }
1332 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(
1333 byte[] data,
1334 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1335 throws com.google.protobuf.InvalidProtocolBufferException {
1336 return PARSER.parseFrom(data, extensionRegistry);
1337 }
1338 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.io.InputStream input)
1339 throws java.io.IOException {
1340 return com.google.protobuf.GeneratedMessageV3
1341 .parseWithIOException(PARSER, input);
1342 }
1343 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(
1344 java.io.InputStream input,
1345 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1346 throws java.io.IOException {
1347 return com.google.protobuf.GeneratedMessageV3
1348 .parseWithIOException(PARSER, input, extensionRegistry);
1349 }
1350 public static com.google.ortools.sat.DecisionStrategyProto parseDelimitedFrom(java.io.InputStream input)
1351 throws java.io.IOException {
1352 return com.google.protobuf.GeneratedMessageV3
1353 .parseDelimitedWithIOException(PARSER, input);
1354 }
1355 public static com.google.ortools.sat.DecisionStrategyProto parseDelimitedFrom(
1356 java.io.InputStream input,
1357 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1358 throws java.io.IOException {
1359 return com.google.protobuf.GeneratedMessageV3
1360 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1361 }
1362 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(
1363 com.google.protobuf.CodedInputStream input)
1364 throws java.io.IOException {
1365 return com.google.protobuf.GeneratedMessageV3
1366 .parseWithIOException(PARSER, input);
1367 }
1368 public static com.google.ortools.sat.DecisionStrategyProto parseFrom(
1369 com.google.protobuf.CodedInputStream input,
1370 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1371 throws java.io.IOException {
1372 return com.google.protobuf.GeneratedMessageV3
1373 .parseWithIOException(PARSER, input, extensionRegistry);
1374 }
1375
1376 @java.lang.Override
1377 public Builder newBuilderForType() { return newBuilder(); }
1378 public static Builder newBuilder() {
1379 return DEFAULT_INSTANCE.toBuilder();
1380 }
1381 public static Builder newBuilder(com.google.ortools.sat.DecisionStrategyProto prototype) {
1382 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1383 }
1384 @java.lang.Override
1386 return this == DEFAULT_INSTANCE
1387 ? new Builder() : new Builder().mergeFrom(this);
1388 }
1389
1390 @java.lang.Override
1392 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1393 Builder builder = new Builder(parent);
1394 return builder;
1395 }
1404 public static final class Builder extends
1405 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1406 // @@protoc_insertion_point(builder_implements:operations_research.sat.DecisionStrategyProto)
1407 com.google.ortools.sat.DecisionStrategyProtoOrBuilder {
1408 public static final com.google.protobuf.Descriptors.Descriptor
1410 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_descriptor;
1411 }
1412
1413 @java.lang.Override
1414 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1416 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_fieldAccessorTable
1417 .ensureFieldAccessorsInitialized(
1418 com.google.ortools.sat.DecisionStrategyProto.class, com.google.ortools.sat.DecisionStrategyProto.Builder.class);
1419 }
1420
1421 // Construct using com.google.ortools.sat.DecisionStrategyProto.newBuilder()
1422 private Builder() {
1423 maybeForceBuilderInitialization();
1424 }
1425
1426 private Builder(
1427 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1428 super(parent);
1429 maybeForceBuilderInitialization();
1430 }
1431 private void maybeForceBuilderInitialization() {
1432 if (com.google.protobuf.GeneratedMessageV3
1433 .alwaysUseFieldBuilders) {
1434 getTransformationsFieldBuilder();
1435 }
1436 }
1437 @java.lang.Override
1438 public Builder clear() {
1439 super.clear();
1440 variables_ = emptyIntList();
1441 bitField0_ = (bitField0_ & ~0x00000001);
1442 variableSelectionStrategy_ = 0;
1443
1444 domainReductionStrategy_ = 0;
1445
1446 if (transformationsBuilder_ == null) {
1447 transformations_ = java.util.Collections.emptyList();
1448 bitField0_ = (bitField0_ & ~0x00000002);
1449 } else {
1450 transformationsBuilder_.clear();
1451 }
1452 return this;
1453 }
1454
1455 @java.lang.Override
1456 public com.google.protobuf.Descriptors.Descriptor
1458 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_descriptor;
1459 }
1460
1461 @java.lang.Override
1462 public com.google.ortools.sat.DecisionStrategyProto getDefaultInstanceForType() {
1463 return com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance();
1464 }
1465
1466 @java.lang.Override
1467 public com.google.ortools.sat.DecisionStrategyProto build() {
1468 com.google.ortools.sat.DecisionStrategyProto result = buildPartial();
1469 if (!result.isInitialized()) {
1470 throw newUninitializedMessageException(result);
1471 }
1472 return result;
1473 }
1474
1475 @java.lang.Override
1476 public com.google.ortools.sat.DecisionStrategyProto buildPartial() {
1477 com.google.ortools.sat.DecisionStrategyProto result = new com.google.ortools.sat.DecisionStrategyProto(this);
1478 int from_bitField0_ = bitField0_;
1479 if (((bitField0_ & 0x00000001) != 0)) {
1480 variables_.makeImmutable();
1481 bitField0_ = (bitField0_ & ~0x00000001);
1482 }
1483 result.variables_ = variables_;
1484 result.variableSelectionStrategy_ = variableSelectionStrategy_;
1485 result.domainReductionStrategy_ = domainReductionStrategy_;
1486 if (transformationsBuilder_ == null) {
1487 if (((bitField0_ & 0x00000002) != 0)) {
1488 transformations_ = java.util.Collections.unmodifiableList(transformations_);
1489 bitField0_ = (bitField0_ & ~0x00000002);
1490 }
1491 result.transformations_ = transformations_;
1492 } else {
1493 result.transformations_ = transformationsBuilder_.build();
1494 }
1495 onBuilt();
1496 return result;
1497 }
1498
1499 @java.lang.Override
1500 public Builder clone() {
1501 return super.clone();
1502 }
1503 @java.lang.Override
1505 com.google.protobuf.Descriptors.FieldDescriptor field,
1506 java.lang.Object value) {
1507 return super.setField(field, value);
1508 }
1509 @java.lang.Override
1511 com.google.protobuf.Descriptors.FieldDescriptor field) {
1512 return super.clearField(field);
1513 }
1514 @java.lang.Override
1516 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1517 return super.clearOneof(oneof);
1518 }
1519 @java.lang.Override
1521 com.google.protobuf.Descriptors.FieldDescriptor field,
1522 int index, java.lang.Object value) {
1523 return super.setRepeatedField(field, index, value);
1524 }
1525 @java.lang.Override
1527 com.google.protobuf.Descriptors.FieldDescriptor field,
1528 java.lang.Object value) {
1529 return super.addRepeatedField(field, value);
1530 }
1531 @java.lang.Override
1532 public Builder mergeFrom(com.google.protobuf.Message other) {
1533 if (other instanceof com.google.ortools.sat.DecisionStrategyProto) {
1534 return mergeFrom((com.google.ortools.sat.DecisionStrategyProto)other);
1535 } else {
1536 super.mergeFrom(other);
1537 return this;
1538 }
1539 }
1540
1541 public Builder mergeFrom(com.google.ortools.sat.DecisionStrategyProto other) {
1542 if (other == com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance()) return this;
1543 if (!other.variables_.isEmpty()) {
1544 if (variables_.isEmpty()) {
1545 variables_ = other.variables_;
1546 bitField0_ = (bitField0_ & ~0x00000001);
1547 } else {
1548 ensureVariablesIsMutable();
1549 variables_.addAll(other.variables_);
1550 }
1551 onChanged();
1552 }
1553 if (other.variableSelectionStrategy_ != 0) {
1554 setVariableSelectionStrategyValue(other.getVariableSelectionStrategyValue());
1555 }
1556 if (other.domainReductionStrategy_ != 0) {
1557 setDomainReductionStrategyValue(other.getDomainReductionStrategyValue());
1558 }
1559 if (transformationsBuilder_ == null) {
1560 if (!other.transformations_.isEmpty()) {
1561 if (transformations_.isEmpty()) {
1562 transformations_ = other.transformations_;
1563 bitField0_ = (bitField0_ & ~0x00000002);
1564 } else {
1565 ensureTransformationsIsMutable();
1566 transformations_.addAll(other.transformations_);
1567 }
1568 onChanged();
1569 }
1570 } else {
1571 if (!other.transformations_.isEmpty()) {
1572 if (transformationsBuilder_.isEmpty()) {
1573 transformationsBuilder_.dispose();
1574 transformationsBuilder_ = null;
1575 transformations_ = other.transformations_;
1576 bitField0_ = (bitField0_ & ~0x00000002);
1577 transformationsBuilder_ =
1578 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1579 getTransformationsFieldBuilder() : null;
1580 } else {
1581 transformationsBuilder_.addAllMessages(other.transformations_);
1582 }
1583 }
1584 }
1585 this.mergeUnknownFields(other.unknownFields);
1586 onChanged();
1587 return this;
1588 }
1589
1590 @java.lang.Override
1591 public final boolean isInitialized() {
1592 return true;
1593 }
1594
1595 @java.lang.Override
1597 com.google.protobuf.CodedInputStream input,
1598 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1599 throws java.io.IOException {
1600 com.google.ortools.sat.DecisionStrategyProto parsedMessage = null;
1601 try {
1602 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1603 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1604 parsedMessage = (com.google.ortools.sat.DecisionStrategyProto) e.getUnfinishedMessage();
1605 throw e.unwrapIOException();
1606 } finally {
1607 if (parsedMessage != null) {
1608 mergeFrom(parsedMessage);
1609 }
1610 }
1611 return this;
1612 }
1613 private int bitField0_;
1614
1615 private com.google.protobuf.Internal.IntList variables_ = emptyIntList();
1616 private void ensureVariablesIsMutable() {
1617 if (!((bitField0_ & 0x00000001) != 0)) {
1618 variables_ = mutableCopy(variables_);
1619 bitField0_ |= 0x00000001;
1620 }
1621 }
1632 public java.util.List<java.lang.Integer>
1634 return ((bitField0_ & 0x00000001) != 0) ?
1635 java.util.Collections.unmodifiableList(variables_) : variables_;
1636 }
1647 public int getVariablesCount() {
1648 return variables_.size();
1649 }
1661 public int getVariables(int index) {
1662 return variables_.getInt(index);
1663 }
1677 int index, int value) {
1678 ensureVariablesIsMutable();
1679 variables_.setInt(index, value);
1680 onChanged();
1681 return this;
1682 }
1694 public Builder addVariables(int value) {
1695 ensureVariablesIsMutable();
1696 variables_.addInt(value);
1697 onChanged();
1698 return this;
1699 }
1712 java.lang.Iterable<? extends java.lang.Integer> values) {
1713 ensureVariablesIsMutable();
1714 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1715 values, variables_);
1716 onChanged();
1717 return this;
1718 }
1730 variables_ = emptyIntList();
1731 bitField0_ = (bitField0_ & ~0x00000001);
1732 onChanged();
1733 return this;
1734 }
1735
1736 private int variableSelectionStrategy_ = 0;
1741 @java.lang.Override public int getVariableSelectionStrategyValue() {
1742 return variableSelectionStrategy_;
1743 }
1750
1751 variableSelectionStrategy_ = value;
1752 onChanged();
1753 return this;
1754 }
1759 @java.lang.Override
1760 public com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy getVariableSelectionStrategy() {
1761 @SuppressWarnings("deprecation")
1762 com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy result = com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.valueOf(variableSelectionStrategy_);
1763 return result == null ? com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.UNRECOGNIZED : result;
1764 }
1770 public Builder setVariableSelectionStrategy(com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy value) {
1771 if (value == null) {
1772 throw new NullPointerException();
1773 }
1774
1775 variableSelectionStrategy_ = value.getNumber();
1776 onChanged();
1777 return this;
1778 }
1784
1785 variableSelectionStrategy_ = 0;
1786 onChanged();
1787 return this;
1788 }
1789
1790 private int domainReductionStrategy_ = 0;
1795 @java.lang.Override public int getDomainReductionStrategyValue() {
1796 return domainReductionStrategy_;
1797 }
1804
1805 domainReductionStrategy_ = value;
1806 onChanged();
1807 return this;
1808 }
1813 @java.lang.Override
1814 public com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy getDomainReductionStrategy() {
1815 @SuppressWarnings("deprecation")
1816 com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy result = com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.valueOf(domainReductionStrategy_);
1817 return result == null ? com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.UNRECOGNIZED : result;
1818 }
1824 public Builder setDomainReductionStrategy(com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy value) {
1825 if (value == null) {
1826 throw new NullPointerException();
1827 }
1828
1829 domainReductionStrategy_ = value.getNumber();
1830 onChanged();
1831 return this;
1832 }
1838
1839 domainReductionStrategy_ = 0;
1840 onChanged();
1841 return this;
1842 }
1843
1844 private java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> transformations_ =
1845 java.util.Collections.emptyList();
1846 private void ensureTransformationsIsMutable() {
1847 if (!((bitField0_ & 0x00000002) != 0)) {
1848 transformations_ = new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation>(transformations_);
1849 bitField0_ |= 0x00000002;
1850 }
1851 }
1852
1853 private com.google.protobuf.RepeatedFieldBuilderV3<
1854 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder, com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder> transformationsBuilder_;
1855
1859 public java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> getTransformationsList() {
1860 if (transformationsBuilder_ == null) {
1861 return java.util.Collections.unmodifiableList(transformations_);
1862 } else {
1863 return transformationsBuilder_.getMessageList();
1864 }
1865 }
1870 if (transformationsBuilder_ == null) {
1871 return transformations_.size();
1872 } else {
1873 return transformationsBuilder_.getCount();
1874 }
1875 }
1879 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getTransformations(int index) {
1880 if (transformationsBuilder_ == null) {
1881 return transformations_.get(index);
1882 } else {
1883 return transformationsBuilder_.getMessage(index);
1884 }
1885 }
1890 int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation value) {
1891 if (transformationsBuilder_ == null) {
1892 if (value == null) {
1893 throw new NullPointerException();
1894 }
1895 ensureTransformationsIsMutable();
1896 transformations_.set(index, value);
1897 onChanged();
1898 } else {
1899 transformationsBuilder_.setMessage(index, value);
1900 }
1901 return this;
1902 }
1907 int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder builderForValue) {
1908 if (transformationsBuilder_ == null) {
1909 ensureTransformationsIsMutable();
1910 transformations_.set(index, builderForValue.build());
1911 onChanged();
1912 } else {
1913 transformationsBuilder_.setMessage(index, builderForValue.build());
1914 }
1915 return this;
1916 }
1920 public Builder addTransformations(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation value) {
1921 if (transformationsBuilder_ == null) {
1922 if (value == null) {
1923 throw new NullPointerException();
1924 }
1925 ensureTransformationsIsMutable();
1926 transformations_.add(value);
1927 onChanged();
1928 } else {
1929 transformationsBuilder_.addMessage(value);
1930 }
1931 return this;
1932 }
1937 int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation value) {
1938 if (transformationsBuilder_ == null) {
1939 if (value == null) {
1940 throw new NullPointerException();
1941 }
1942 ensureTransformationsIsMutable();
1943 transformations_.add(index, value);
1944 onChanged();
1945 } else {
1946 transformationsBuilder_.addMessage(index, value);
1947 }
1948 return this;
1949 }
1954 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder builderForValue) {
1955 if (transformationsBuilder_ == null) {
1956 ensureTransformationsIsMutable();
1957 transformations_.add(builderForValue.build());
1958 onChanged();
1959 } else {
1960 transformationsBuilder_.addMessage(builderForValue.build());
1961 }
1962 return this;
1963 }
1968 int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder builderForValue) {
1969 if (transformationsBuilder_ == null) {
1970 ensureTransformationsIsMutable();
1971 transformations_.add(index, builderForValue.build());
1972 onChanged();
1973 } else {
1974 transformationsBuilder_.addMessage(index, builderForValue.build());
1975 }
1976 return this;
1977 }
1982 java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> values) {
1983 if (transformationsBuilder_ == null) {
1984 ensureTransformationsIsMutable();
1985 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1986 values, transformations_);
1987 onChanged();
1988 } else {
1989 transformationsBuilder_.addAllMessages(values);
1990 }
1991 return this;
1992 }
1997 if (transformationsBuilder_ == null) {
1998 transformations_ = java.util.Collections.emptyList();
1999 bitField0_ = (bitField0_ & ~0x00000002);
2000 onChanged();
2001 } else {
2002 transformationsBuilder_.clear();
2003 }
2004 return this;
2005 }
2009 public Builder removeTransformations(int index) {
2010 if (transformationsBuilder_ == null) {
2011 ensureTransformationsIsMutable();
2012 transformations_.remove(index);
2013 onChanged();
2014 } else {
2015 transformationsBuilder_.remove(index);
2016 }
2017 return this;
2018 }
2022 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder getTransformationsBuilder(
2023 int index) {
2024 return getTransformationsFieldBuilder().getBuilder(index);
2025 }
2029 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder getTransformationsOrBuilder(
2030 int index) {
2031 if (transformationsBuilder_ == null) {
2032 return transformations_.get(index); } else {
2033 return transformationsBuilder_.getMessageOrBuilder(index);
2034 }
2035 }
2039 public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder>
2041 if (transformationsBuilder_ != null) {
2042 return transformationsBuilder_.getMessageOrBuilderList();
2043 } else {
2044 return java.util.Collections.unmodifiableList(transformations_);
2045 }
2046 }
2050 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder addTransformationsBuilder() {
2051 return getTransformationsFieldBuilder().addBuilder(
2052 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.getDefaultInstance());
2053 }
2057 public com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder addTransformationsBuilder(
2058 int index) {
2059 return getTransformationsFieldBuilder().addBuilder(
2060 index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.getDefaultInstance());
2061 }
2065 public java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder>
2067 return getTransformationsFieldBuilder().getBuilderList();
2068 }
2069 private com.google.protobuf.RepeatedFieldBuilderV3<
2070 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder, com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder>
2071 getTransformationsFieldBuilder() {
2072 if (transformationsBuilder_ == null) {
2073 transformationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2074 com.google.ortools.sat.DecisionStrategyProto.AffineTransformation, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder, com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder>(
2075 transformations_,
2076 ((bitField0_ & 0x00000002) != 0),
2077 getParentForChildren(),
2078 isClean());
2079 transformations_ = null;
2080 }
2081 return transformationsBuilder_;
2082 }
2083 @java.lang.Override
2085 final com.google.protobuf.UnknownFieldSet unknownFields) {
2086 return super.setUnknownFields(unknownFields);
2087 }
2088
2089 @java.lang.Override
2091 final com.google.protobuf.UnknownFieldSet unknownFields) {
2092 return super.mergeUnknownFields(unknownFields);
2093 }
2094
2095
2096 // @@protoc_insertion_point(builder_scope:operations_research.sat.DecisionStrategyProto)
2097 }
2098
2099 // @@protoc_insertion_point(class_scope:operations_research.sat.DecisionStrategyProto)
2100 private static final com.google.ortools.sat.DecisionStrategyProto DEFAULT_INSTANCE;
2101 static {
2102 DEFAULT_INSTANCE = new com.google.ortools.sat.DecisionStrategyProto();
2103 }
2104
2105 public static com.google.ortools.sat.DecisionStrategyProto getDefaultInstance() {
2106 return DEFAULT_INSTANCE;
2107 }
2108
2109 private static final com.google.protobuf.Parser<DecisionStrategyProto>
2110 PARSER = new com.google.protobuf.AbstractParser<DecisionStrategyProto>() {
2111 @java.lang.Override
2112 public DecisionStrategyProto parsePartialFrom(
2113 com.google.protobuf.CodedInputStream input,
2114 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2115 throws com.google.protobuf.InvalidProtocolBufferException {
2116 return new DecisionStrategyProto(input, extensionRegistry);
2117 }
2118 };
2119
2120 public static com.google.protobuf.Parser<DecisionStrategyProto> parser() {
2121 return PARSER;
2122 }
2123
2124 @java.lang.Override
2125 public com.google.protobuf.Parser<DecisionStrategyProto> getParserForType() {
2126 return PARSER;
2127 }
2128
2129 @java.lang.Override
2130 public com.google.ortools.sat.DecisionStrategyProto getDefaultInstanceForType() {
2131 return DEFAULT_INSTANCE;
2132 }
2133
2134}
2135
.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)
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstanceForType()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation buildPartial()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder mergeFrom(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation other)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation build()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(byte[] data)
static Builder newBuilder(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation prototype)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(com.google.protobuf.ByteString data)
.lang.Override long getPositiveCoeff()
int64 positive_coeff = 3;
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.protobuf.Parser< AffineTransformation > parser()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstanceForType()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override com.google.protobuf.Parser< AffineTransformation > getParserForType()
.lang.Override boolean equals(final java.lang.Object obj)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.io.InputStream input)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstance()
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseDelimitedFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy getDomainReductionStrategy()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
.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)
Builder mergeFrom(com.google.ortools.sat.DecisionStrategyProto other)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Builder clearTransformations()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder setDomainReductionStrategyValue(int value)
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override int getVariableSelectionStrategyValue()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder getTransformationsOrBuilder(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder addAllTransformations(java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformation > values)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder addTransformations(int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder builderForValue)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy getVariableSelectionStrategy()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder addTransformations(int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation value)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder setVariableSelectionStrategyValue(int value)
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
java.util.List< com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder > getTransformationsBuilderList()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder setTransformations(int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder builderForValue)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override com.google.ortools.sat.DecisionStrategyProto getDefaultInstanceForType()
Builder clearVariableSelectionStrategy()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
Builder setTransformations(int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation value)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder addTransformations(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder builderForValue)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override com.google.ortools.sat.DecisionStrategyProto buildPartial()
Builder setVariableSelectionStrategy(com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy value)
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
.lang.Override com.google.ortools.sat.DecisionStrategyProto build()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getTransformations(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder setDomainReductionStrategy(com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy value)
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder > getTransformationsOrBuilderList()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
java.util.List< com.google.ortools.sat.DecisionStrategyProto.AffineTransformation > getTransformationsList()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder clearDomainReductionStrategy()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder addTransformationsBuilder(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
int getTransformationsCount()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder getTransformationsBuilder(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Builder addAllVariables(java.lang.Iterable<? extends java.lang.Integer > values)
Builder addTransformations(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation value)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override int getDomainReductionStrategyValue()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
Builder removeTransformations(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder addTransformationsBuilder()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy getDomainReductionStrategy()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
.lang.Override com.google.protobuf.Parser< DecisionStrategyProto > getParserForType()
static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.nio.ByteBuffer data)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.protobuf.Parser< DecisionStrategyProto > parser()
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder getTransformationsOrBuilder(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
static com.google.ortools.sat.DecisionStrategyProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override int getVariableSelectionStrategyValue()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
static com.google.ortools.sat.DecisionStrategyProto parseDelimitedFrom(java.io.InputStream input)
.lang.Override java.util.List< com.google.ortools.sat.DecisionStrategyProto.AffineTransformation > getTransformationsList()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder > getTransformationsOrBuilderList()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
static com.google.ortools.sat.DecisionStrategyProto parseFrom(byte[] data)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(com.google.protobuf.CodedInputStream input)
.lang.Override int getTransformationsCount()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
.lang.Override com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy getVariableSelectionStrategy()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
static Builder newBuilder(com.google.ortools.sat.DecisionStrategyProto prototype)
.lang.Override java.util.List< java.lang.Integer > getVariablesList()
.lang.Override com.google.ortools.sat.DecisionStrategyProto getDefaultInstanceForType()
static com.google.ortools.sat.DecisionStrategyProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto getDefaultInstance()
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getTransformations(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override boolean equals(final java.lang.Object obj)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.sat.DecisionStrategyProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(com.google.protobuf.ByteString data)
.lang.Override int getDomainReductionStrategyValue()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
.lang.Deprecated static DomainReductionStrategy valueOf(int value)
static DomainReductionStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static com.google.protobuf.Internal.EnumLiteMap< DomainReductionStrategy > internalGetValueMap()
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
.lang.Deprecated static VariableSelectionStrategy valueOf(int value)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap< VariableSelectionStrategy > internalGetValueMap()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static VariableSelectionStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)