OR-Tools  7.1
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 
4 package com.google.ortools.sat;
5 
14 public final class DecisionStrategyProto extends
15  com.google.protobuf.GeneratedMessageV3 implements
16  // @@protoc_insertion_point(message_implements:operations_research.sat.DecisionStrategyProto)
18 private 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  public final com.google.protobuf.UnknownFieldSet
33  return this.unknownFields;
34  }
35  private DecisionStrategyProto(
36  com.google.protobuf.CodedInputStream input,
37  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
38  throws com.google.protobuf.InvalidProtocolBufferException {
39  this();
40  if (extensionRegistry == null) {
41  throw new java.lang.NullPointerException();
42  }
43  int mutable_bitField0_ = 0;
44  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
45  com.google.protobuf.UnknownFieldSet.newBuilder();
46  try {
47  boolean done = false;
48  while (!done) {
49  int tag = input.readTag();
50  switch (tag) {
51  case 0:
52  done = true;
53  break;
54  case 8: {
55  if (!((mutable_bitField0_ & 0x00000001) != 0)) {
56  variables_ = newIntList();
57  mutable_bitField0_ |= 0x00000001;
58  }
59  variables_.addInt(input.readInt32());
60  break;
61  }
62  case 10: {
63  int length = input.readRawVarint32();
64  int limit = input.pushLimit(length);
65  if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
66  variables_ = newIntList();
67  mutable_bitField0_ |= 0x00000001;
68  }
69  while (input.getBytesUntilLimit() > 0) {
70  variables_.addInt(input.readInt32());
71  }
72  input.popLimit(limit);
73  break;
74  }
75  case 16: {
76  int rawValue = input.readEnum();
77 
78  variableSelectionStrategy_ = rawValue;
79  break;
80  }
81  case 24: {
82  int rawValue = input.readEnum();
83 
84  domainReductionStrategy_ = rawValue;
85  break;
86  }
87  case 34: {
88  if (!((mutable_bitField0_ & 0x00000008) != 0)) {
89  transformations_ = new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation>();
90  mutable_bitField0_ |= 0x00000008;
91  }
92  transformations_.add(
93  input.readMessage(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.parser(), extensionRegistry));
94  break;
95  }
96  default: {
97  if (!parseUnknownField(
98  input, unknownFields, extensionRegistry, tag)) {
99  done = true;
100  }
101  break;
102  }
103  }
104  }
105  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
106  throw e.setUnfinishedMessage(this);
107  } catch (java.io.IOException e) {
108  throw new com.google.protobuf.InvalidProtocolBufferException(
109  e).setUnfinishedMessage(this);
110  } finally {
111  if (((mutable_bitField0_ & 0x00000001) != 0)) {
112  variables_.makeImmutable(); // C
113  }
114  if (((mutable_bitField0_ & 0x00000008) != 0)) {
115  transformations_ = java.util.Collections.unmodifiableList(transformations_);
116  }
117  this.unknownFields = unknownFields.build();
118  makeExtensionsImmutable();
119  }
120  }
121  public static final com.google.protobuf.Descriptors.Descriptor
123  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_descriptor;
124  }
125 
126  @java.lang.Override
127  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
129  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_fieldAccessorTable
130  .ensureFieldAccessorsInitialized(
132  }
133 
144  implements com.google.protobuf.ProtocolMessageEnum {
166  ;
167 
171  public static final int CHOOSE_FIRST_VALUE = 0;
175  public static final int CHOOSE_LOWEST_MIN_VALUE = 1;
179  public static final int CHOOSE_HIGHEST_MAX_VALUE = 2;
183  public static final int CHOOSE_MIN_DOMAIN_SIZE_VALUE = 3;
187  public static final int CHOOSE_MAX_DOMAIN_SIZE_VALUE = 4;
188 
189 
190  public final int getNumber() {
191  if (this == UNRECOGNIZED) {
192  throw new java.lang.IllegalArgumentException(
193  "Can't get the number of an unknown enum value.");
194  }
195  return value;
196  }
197 
201  @java.lang.Deprecated
202  public static VariableSelectionStrategy valueOf(int value) {
203  return forNumber(value);
204  }
205 
206  public static VariableSelectionStrategy forNumber(int value) {
207  switch (value) {
208  case 0: return CHOOSE_FIRST;
209  case 1: return CHOOSE_LOWEST_MIN;
210  case 2: return CHOOSE_HIGHEST_MAX;
211  case 3: return CHOOSE_MIN_DOMAIN_SIZE;
212  case 4: return CHOOSE_MAX_DOMAIN_SIZE;
213  default: return null;
214  }
215  }
216 
217  public static com.google.protobuf.Internal.EnumLiteMap<VariableSelectionStrategy>
219  return internalValueMap;
220  }
221  private static final com.google.protobuf.Internal.EnumLiteMap<
222  VariableSelectionStrategy> internalValueMap =
223  new com.google.protobuf.Internal.EnumLiteMap<VariableSelectionStrategy>() {
224  public VariableSelectionStrategy findValueByNumber(int number) {
225  return VariableSelectionStrategy.forNumber(number);
226  }
227  };
228 
229  public final com.google.protobuf.Descriptors.EnumValueDescriptor
231  return getDescriptor().getValues().get(ordinal());
232  }
233  public final com.google.protobuf.Descriptors.EnumDescriptor
235  return getDescriptor();
236  }
237  public static final com.google.protobuf.Descriptors.EnumDescriptor
239  return com.google.ortools.sat.DecisionStrategyProto.getDescriptor().getEnumTypes().get(0);
240  }
241 
242  private static final VariableSelectionStrategy[] VALUES = values();
243 
245  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
246  if (desc.getType() != getDescriptor()) {
247  throw new java.lang.IllegalArgumentException(
248  "EnumValueDescriptor is not for this type.");
249  }
250  if (desc.getIndex() == -1) {
251  return UNRECOGNIZED;
252  }
253  return VALUES[desc.getIndex()];
254  }
255 
256  private final int value;
257 
258  private VariableSelectionStrategy(int value) {
259  this.value = value;
260  }
261 
262  // @@protoc_insertion_point(enum_scope:operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy)
263  }
264 
275  implements com.google.protobuf.ProtocolMessageEnum {
293  ;
294 
298  public static final int SELECT_MIN_VALUE_VALUE = 0;
302  public static final int SELECT_MAX_VALUE_VALUE = 1;
306  public static final int SELECT_LOWER_HALF_VALUE = 2;
310  public static final int SELECT_UPPER_HALF_VALUE = 3;
311 
312 
313  public final int getNumber() {
314  if (this == UNRECOGNIZED) {
315  throw new java.lang.IllegalArgumentException(
316  "Can't get the number of an unknown enum value.");
317  }
318  return value;
319  }
320 
324  @java.lang.Deprecated
325  public static DomainReductionStrategy valueOf(int value) {
326  return forNumber(value);
327  }
328 
329  public static DomainReductionStrategy forNumber(int value) {
330  switch (value) {
331  case 0: return SELECT_MIN_VALUE;
332  case 1: return SELECT_MAX_VALUE;
333  case 2: return SELECT_LOWER_HALF;
334  case 3: return SELECT_UPPER_HALF;
335  default: return null;
336  }
337  }
338 
339  public static com.google.protobuf.Internal.EnumLiteMap<DomainReductionStrategy>
341  return internalValueMap;
342  }
343  private static final com.google.protobuf.Internal.EnumLiteMap<
344  DomainReductionStrategy> internalValueMap =
345  new com.google.protobuf.Internal.EnumLiteMap<DomainReductionStrategy>() {
346  public DomainReductionStrategy findValueByNumber(int number) {
347  return DomainReductionStrategy.forNumber(number);
348  }
349  };
350 
351  public final com.google.protobuf.Descriptors.EnumValueDescriptor
353  return getDescriptor().getValues().get(ordinal());
354  }
355  public final com.google.protobuf.Descriptors.EnumDescriptor
357  return getDescriptor();
358  }
359  public static final com.google.protobuf.Descriptors.EnumDescriptor
361  return com.google.ortools.sat.DecisionStrategyProto.getDescriptor().getEnumTypes().get(1);
362  }
363 
364  private static final DomainReductionStrategy[] VALUES = values();
365 
367  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
368  if (desc.getType() != getDescriptor()) {
369  throw new java.lang.IllegalArgumentException(
370  "EnumValueDescriptor is not for this type.");
371  }
372  if (desc.getIndex() == -1) {
373  return UNRECOGNIZED;
374  }
375  return VALUES[desc.getIndex()];
376  }
377 
378  private final int value;
379 
380  private DomainReductionStrategy(int value) {
381  this.value = value;
382  }
383 
384  // @@protoc_insertion_point(enum_scope:operations_research.sat.DecisionStrategyProto.DomainReductionStrategy)
385  }
386 
387  public interface AffineTransformationOrBuilder extends
388  // @@protoc_insertion_point(interface_extends:operations_research.sat.DecisionStrategyProto.AffineTransformation)
389  com.google.protobuf.MessageOrBuilder {
390 
394  int getVar();
395 
399  long getOffset();
400 
404  long getPositiveCoeff();
405  }
416  public static final class AffineTransformation extends
417  com.google.protobuf.GeneratedMessageV3 implements
418  // @@protoc_insertion_point(message_implements:operations_research.sat.DecisionStrategyProto.AffineTransformation)
420  private static final long serialVersionUID = 0L;
421  // Use AffineTransformation.newBuilder() to construct.
422  private AffineTransformation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
423  super(builder);
424  }
425  private AffineTransformation() {
426  }
427 
428  @java.lang.Override
429  public final com.google.protobuf.UnknownFieldSet
431  return this.unknownFields;
432  }
433  private AffineTransformation(
434  com.google.protobuf.CodedInputStream input,
435  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
436  throws com.google.protobuf.InvalidProtocolBufferException {
437  this();
438  if (extensionRegistry == null) {
439  throw new java.lang.NullPointerException();
440  }
441  int mutable_bitField0_ = 0;
442  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
443  com.google.protobuf.UnknownFieldSet.newBuilder();
444  try {
445  boolean done = false;
446  while (!done) {
447  int tag = input.readTag();
448  switch (tag) {
449  case 0:
450  done = true;
451  break;
452  case 8: {
453 
454  var_ = input.readInt32();
455  break;
456  }
457  case 16: {
458 
459  offset_ = input.readInt64();
460  break;
461  }
462  case 24: {
463 
464  positiveCoeff_ = input.readInt64();
465  break;
466  }
467  default: {
468  if (!parseUnknownField(
469  input, unknownFields, extensionRegistry, tag)) {
470  done = true;
471  }
472  break;
473  }
474  }
475  }
476  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
477  throw e.setUnfinishedMessage(this);
478  } catch (java.io.IOException e) {
479  throw new com.google.protobuf.InvalidProtocolBufferException(
480  e).setUnfinishedMessage(this);
481  } finally {
482  this.unknownFields = unknownFields.build();
483  makeExtensionsImmutable();
484  }
485  }
486  public static final com.google.protobuf.Descriptors.Descriptor
488  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
489  }
490 
491  @java.lang.Override
492  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
494  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_fieldAccessorTable
495  .ensureFieldAccessorsInitialized(
497  }
498 
499  public static final int VAR_FIELD_NUMBER = 1;
500  private int var_;
504  public int getVar() {
505  return var_;
506  }
507 
508  public static final int OFFSET_FIELD_NUMBER = 2;
509  private long offset_;
513  public long getOffset() {
514  return offset_;
515  }
516 
517  public static final int POSITIVE_COEFF_FIELD_NUMBER = 3;
518  private long positiveCoeff_;
522  public long getPositiveCoeff() {
523  return positiveCoeff_;
524  }
525 
526  private byte memoizedIsInitialized = -1;
527  @java.lang.Override
528  public final boolean isInitialized() {
529  byte isInitialized = memoizedIsInitialized;
530  if (isInitialized == 1) return true;
531  if (isInitialized == 0) return false;
532 
533  memoizedIsInitialized = 1;
534  return true;
535  }
536 
537  @java.lang.Override
538  public void writeTo(com.google.protobuf.CodedOutputStream output)
539  throws java.io.IOException {
540  if (var_ != 0) {
541  output.writeInt32(1, var_);
542  }
543  if (offset_ != 0L) {
544  output.writeInt64(2, offset_);
545  }
546  if (positiveCoeff_ != 0L) {
547  output.writeInt64(3, positiveCoeff_);
548  }
549  unknownFields.writeTo(output);
550  }
551 
552  @java.lang.Override
553  public int getSerializedSize() {
554  int size = memoizedSize;
555  if (size != -1) return size;
556 
557  size = 0;
558  if (var_ != 0) {
559  size += com.google.protobuf.CodedOutputStream
560  .computeInt32Size(1, var_);
561  }
562  if (offset_ != 0L) {
563  size += com.google.protobuf.CodedOutputStream
564  .computeInt64Size(2, offset_);
565  }
566  if (positiveCoeff_ != 0L) {
567  size += com.google.protobuf.CodedOutputStream
568  .computeInt64Size(3, positiveCoeff_);
569  }
570  size += unknownFields.getSerializedSize();
571  memoizedSize = size;
572  return size;
573  }
574 
575  @java.lang.Override
576  public boolean equals(final java.lang.Object obj) {
577  if (obj == this) {
578  return true;
579  }
581  return super.equals(obj);
582  }
584 
585  if (getVar()
586  != other.getVar()) return false;
587  if (getOffset()
588  != other.getOffset()) return false;
589  if (getPositiveCoeff()
590  != other.getPositiveCoeff()) return false;
591  if (!unknownFields.equals(other.unknownFields)) return false;
592  return true;
593  }
594 
595  @java.lang.Override
596  public int hashCode() {
597  if (memoizedHashCode != 0) {
598  return memoizedHashCode;
599  }
600  int hash = 41;
601  hash = (19 * hash) + getDescriptor().hashCode();
602  hash = (37 * hash) + VAR_FIELD_NUMBER;
603  hash = (53 * hash) + getVar();
604  hash = (37 * hash) + OFFSET_FIELD_NUMBER;
605  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
606  getOffset());
607  hash = (37 * hash) + POSITIVE_COEFF_FIELD_NUMBER;
608  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
609  getPositiveCoeff());
610  hash = (29 * hash) + unknownFields.hashCode();
611  memoizedHashCode = hash;
612  return hash;
613  }
614 
616  java.nio.ByteBuffer data)
617  throws com.google.protobuf.InvalidProtocolBufferException {
618  return PARSER.parseFrom(data);
619  }
621  java.nio.ByteBuffer data,
622  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
623  throws com.google.protobuf.InvalidProtocolBufferException {
624  return PARSER.parseFrom(data, extensionRegistry);
625  }
627  com.google.protobuf.ByteString data)
628  throws com.google.protobuf.InvalidProtocolBufferException {
629  return PARSER.parseFrom(data);
630  }
632  com.google.protobuf.ByteString data,
633  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
634  throws com.google.protobuf.InvalidProtocolBufferException {
635  return PARSER.parseFrom(data, extensionRegistry);
636  }
638  throws com.google.protobuf.InvalidProtocolBufferException {
639  return PARSER.parseFrom(data);
640  }
642  byte[] data,
643  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
644  throws com.google.protobuf.InvalidProtocolBufferException {
645  return PARSER.parseFrom(data, extensionRegistry);
646  }
647  public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.io.InputStream input)
648  throws java.io.IOException {
649  return com.google.protobuf.GeneratedMessageV3
650  .parseWithIOException(PARSER, input);
651  }
653  java.io.InputStream input,
654  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
655  throws java.io.IOException {
656  return com.google.protobuf.GeneratedMessageV3
657  .parseWithIOException(PARSER, input, extensionRegistry);
658  }
660  throws java.io.IOException {
661  return com.google.protobuf.GeneratedMessageV3
662  .parseDelimitedWithIOException(PARSER, input);
663  }
665  java.io.InputStream input,
666  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
667  throws java.io.IOException {
668  return com.google.protobuf.GeneratedMessageV3
669  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
670  }
672  com.google.protobuf.CodedInputStream input)
673  throws java.io.IOException {
674  return com.google.protobuf.GeneratedMessageV3
675  .parseWithIOException(PARSER, input);
676  }
678  com.google.protobuf.CodedInputStream input,
679  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
680  throws java.io.IOException {
681  return com.google.protobuf.GeneratedMessageV3
682  .parseWithIOException(PARSER, input, extensionRegistry);
683  }
684 
685  @java.lang.Override
686  public Builder newBuilderForType() { return newBuilder(); }
687  public static Builder newBuilder() {
688  return DEFAULT_INSTANCE.toBuilder();
689  }
691  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
692  }
693  @java.lang.Override
694  public Builder toBuilder() {
695  return this == DEFAULT_INSTANCE
696  ? new Builder() : new Builder().mergeFrom(this);
697  }
698 
699  @java.lang.Override
701  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
702  Builder builder = new Builder(parent);
703  return builder;
704  }
715  public static final class Builder extends
716  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
717  // @@protoc_insertion_point(builder_implements:operations_research.sat.DecisionStrategyProto.AffineTransformation)
719  public static final com.google.protobuf.Descriptors.Descriptor
721  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
722  }
723 
724  @java.lang.Override
725  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
727  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_fieldAccessorTable
728  .ensureFieldAccessorsInitialized(
730  }
731 
732  // Construct using com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.newBuilder()
733  private Builder() {
734  maybeForceBuilderInitialization();
735  }
736 
737  private Builder(
738  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
739  super(parent);
740  maybeForceBuilderInitialization();
741  }
742  private void maybeForceBuilderInitialization() {
743  if (com.google.protobuf.GeneratedMessageV3
744  .alwaysUseFieldBuilders) {
745  }
746  }
747  @java.lang.Override
748  public Builder clear() {
749  super.clear();
750  var_ = 0;
751 
752  offset_ = 0L;
753 
754  positiveCoeff_ = 0L;
755 
756  return this;
757  }
758 
759  @java.lang.Override
760  public com.google.protobuf.Descriptors.Descriptor
762  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
763  }
764 
765  @java.lang.Override
768  }
769 
770  @java.lang.Override
773  if (!result.isInitialized()) {
774  throw newUninitializedMessageException(result);
775  }
776  return result;
777  }
778 
779  @java.lang.Override
782  result.var_ = var_;
783  result.offset_ = offset_;
784  result.positiveCoeff_ = positiveCoeff_;
785  onBuilt();
786  return result;
787  }
788 
789  @java.lang.Override
790  public Builder clone() {
791  return super.clone();
792  }
793  @java.lang.Override
795  com.google.protobuf.Descriptors.FieldDescriptor field,
796  java.lang.Object value) {
797  return super.setField(field, value);
798  }
799  @java.lang.Override
801  com.google.protobuf.Descriptors.FieldDescriptor field) {
802  return super.clearField(field);
803  }
804  @java.lang.Override
806  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
807  return super.clearOneof(oneof);
808  }
809  @java.lang.Override
811  com.google.protobuf.Descriptors.FieldDescriptor field,
812  int index, java.lang.Object value) {
813  return super.setRepeatedField(field, index, value);
814  }
815  @java.lang.Override
817  com.google.protobuf.Descriptors.FieldDescriptor field,
818  java.lang.Object value) {
819  return super.addRepeatedField(field, value);
820  }
821  @java.lang.Override
822  public Builder mergeFrom(com.google.protobuf.Message other) {
825  } else {
826  super.mergeFrom(other);
827  return this;
828  }
829  }
830 
833  if (other.getVar() != 0) {
834  setVar(other.getVar());
835  }
836  if (other.getOffset() != 0L) {
837  setOffset(other.getOffset());
838  }
839  if (other.getPositiveCoeff() != 0L) {
840  setPositiveCoeff(other.getPositiveCoeff());
841  }
842  this.mergeUnknownFields(other.unknownFields);
843  onChanged();
844  return this;
845  }
846 
847  @java.lang.Override
848  public final boolean isInitialized() {
849  return true;
850  }
851 
852  @java.lang.Override
854  com.google.protobuf.CodedInputStream input,
855  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
856  throws java.io.IOException {
858  try {
859  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
860  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
861  parsedMessage = (com.google.ortools.sat.DecisionStrategyProto.AffineTransformation) e.getUnfinishedMessage();
862  throw e.unwrapIOException();
863  } finally {
864  if (parsedMessage != null) {
865  mergeFrom(parsedMessage);
866  }
867  }
868  return this;
869  }
870 
871  private int var_ ;
875  public int getVar() {
876  return var_;
877  }
881  public Builder setVar(int value) {
882 
883  var_ = value;
884  onChanged();
885  return this;
886  }
890  public Builder clearVar() {
891 
892  var_ = 0;
893  onChanged();
894  return this;
895  }
896 
897  private long offset_ ;
901  public long getOffset() {
902  return offset_;
903  }
907  public Builder setOffset(long value) {
908 
909  offset_ = value;
910  onChanged();
911  return this;
912  }
916  public Builder clearOffset() {
917 
918  offset_ = 0L;
919  onChanged();
920  return this;
921  }
922 
923  private long positiveCoeff_ ;
927  public long getPositiveCoeff() {
928  return positiveCoeff_;
929  }
933  public Builder setPositiveCoeff(long value) {
934 
935  positiveCoeff_ = value;
936  onChanged();
937  return this;
938  }
943 
944  positiveCoeff_ = 0L;
945  onChanged();
946  return this;
947  }
948  @java.lang.Override
949  public final Builder setUnknownFields(
950  final com.google.protobuf.UnknownFieldSet unknownFields) {
951  return super.setUnknownFields(unknownFields);
952  }
953 
954  @java.lang.Override
956  final com.google.protobuf.UnknownFieldSet unknownFields) {
957  return super.mergeUnknownFields(unknownFields);
958  }
959 
960 
961  // @@protoc_insertion_point(builder_scope:operations_research.sat.DecisionStrategyProto.AffineTransformation)
962  }
963 
964  // @@protoc_insertion_point(class_scope:operations_research.sat.DecisionStrategyProto.AffineTransformation)
965  private static final com.google.ortools.sat.DecisionStrategyProto.AffineTransformation DEFAULT_INSTANCE;
966  static {
968  }
969 
971  return DEFAULT_INSTANCE;
972  }
973 
974  private static final com.google.protobuf.Parser<AffineTransformation>
975  PARSER = new com.google.protobuf.AbstractParser<AffineTransformation>() {
976  @java.lang.Override
977  public AffineTransformation parsePartialFrom(
978  com.google.protobuf.CodedInputStream input,
979  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
980  throws com.google.protobuf.InvalidProtocolBufferException {
981  return new AffineTransformation(input, extensionRegistry);
982  }
983  };
984 
985  public static com.google.protobuf.Parser<AffineTransformation> parser() {
986  return PARSER;
987  }
988 
989  @java.lang.Override
990  public com.google.protobuf.Parser<AffineTransformation> getParserForType() {
991  return PARSER;
992  }
993 
994  @java.lang.Override
996  return DEFAULT_INSTANCE;
997  }
998 
999  }
1000 
1001  private int bitField0_;
1002  public static final int VARIABLES_FIELD_NUMBER = 1;
1003  private com.google.protobuf.Internal.IntList variables_;
1013  public java.util.List<java.lang.Integer>
1015  return variables_;
1016  }
1026  public int getVariablesCount() {
1027  return variables_.size();
1028  }
1038  public int getVariables(int index) {
1039  return variables_.getInt(index);
1040  }
1041  private int variablesMemoizedSerializedSize = -1;
1042 
1043  public static final int VARIABLE_SELECTION_STRATEGY_FIELD_NUMBER = 2;
1044  private int variableSelectionStrategy_;
1049  return variableSelectionStrategy_;
1050  }
1055  @SuppressWarnings("deprecation")
1058  }
1059 
1060  public static final int DOMAIN_REDUCTION_STRATEGY_FIELD_NUMBER = 3;
1061  private int domainReductionStrategy_;
1066  return domainReductionStrategy_;
1067  }
1072  @SuppressWarnings("deprecation")
1075  }
1076 
1077  public static final int TRANSFORMATIONS_FIELD_NUMBER = 4;
1078  private java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> transformations_;
1083  return transformations_;
1084  }
1088  public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder>
1090  return transformations_;
1091  }
1096  return transformations_.size();
1097  }
1102  return transformations_.get(index);
1103  }
1108  int index) {
1109  return transformations_.get(index);
1110  }
1111 
1112  private byte memoizedIsInitialized = -1;
1113  @java.lang.Override
1114  public final boolean isInitialized() {
1115  byte isInitialized = memoizedIsInitialized;
1116  if (isInitialized == 1) return true;
1117  if (isInitialized == 0) return false;
1118 
1119  memoizedIsInitialized = 1;
1120  return true;
1121  }
1122 
1123  @java.lang.Override
1124  public void writeTo(com.google.protobuf.CodedOutputStream output)
1125  throws java.io.IOException {
1127  if (getVariablesList().size() > 0) {
1128  output.writeUInt32NoTag(10);
1129  output.writeUInt32NoTag(variablesMemoizedSerializedSize);
1130  }
1131  for (int i = 0; i < variables_.size(); i++) {
1132  output.writeInt32NoTag(variables_.getInt(i));
1133  }
1134  if (variableSelectionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.CHOOSE_FIRST.getNumber()) {
1135  output.writeEnum(2, variableSelectionStrategy_);
1136  }
1137  if (domainReductionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.SELECT_MIN_VALUE.getNumber()) {
1138  output.writeEnum(3, domainReductionStrategy_);
1139  }
1140  for (int i = 0; i < transformations_.size(); i++) {
1141  output.writeMessage(4, transformations_.get(i));
1142  }
1143  unknownFields.writeTo(output);
1144  }
1145 
1146  @java.lang.Override
1147  public int getSerializedSize() {
1148  int size = memoizedSize;
1149  if (size != -1) return size;
1150 
1151  size = 0;
1152  {
1153  int dataSize = 0;
1154  for (int i = 0; i < variables_.size(); i++) {
1155  dataSize += com.google.protobuf.CodedOutputStream
1156  .computeInt32SizeNoTag(variables_.getInt(i));
1157  }
1158  size += dataSize;
1159  if (!getVariablesList().isEmpty()) {
1160  size += 1;
1161  size += com.google.protobuf.CodedOutputStream
1162  .computeInt32SizeNoTag(dataSize);
1163  }
1164  variablesMemoizedSerializedSize = dataSize;
1165  }
1166  if (variableSelectionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.CHOOSE_FIRST.getNumber()) {
1167  size += com.google.protobuf.CodedOutputStream
1168  .computeEnumSize(2, variableSelectionStrategy_);
1169  }
1170  if (domainReductionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.SELECT_MIN_VALUE.getNumber()) {
1171  size += com.google.protobuf.CodedOutputStream
1172  .computeEnumSize(3, domainReductionStrategy_);
1173  }
1174  for (int i = 0; i < transformations_.size(); i++) {
1175  size += com.google.protobuf.CodedOutputStream
1176  .computeMessageSize(4, transformations_.get(i));
1177  }
1178  size += unknownFields.getSerializedSize();
1179  memoizedSize = size;
1180  return size;
1181  }
1182 
1183  @java.lang.Override
1184  public boolean equals(final java.lang.Object obj) {
1185  if (obj == this) {
1186  return true;
1187  }
1188  if (!(obj instanceof com.google.ortools.sat.DecisionStrategyProto)) {
1189  return super.equals(obj);
1190  }
1192 
1193  if (!getVariablesList()
1194  .equals(other.getVariablesList())) return false;
1195  if (variableSelectionStrategy_ != other.variableSelectionStrategy_) return false;
1196  if (domainReductionStrategy_ != other.domainReductionStrategy_) return false;
1197  if (!getTransformationsList()
1198  .equals(other.getTransformationsList())) return false;
1199  if (!unknownFields.equals(other.unknownFields)) return false;
1200  return true;
1201  }
1202 
1203  @java.lang.Override
1204  public int hashCode() {
1205  if (memoizedHashCode != 0) {
1206  return memoizedHashCode;
1207  }
1208  int hash = 41;
1209  hash = (19 * hash) + getDescriptor().hashCode();
1210  if (getVariablesCount() > 0) {
1211  hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
1212  hash = (53 * hash) + getVariablesList().hashCode();
1213  }
1214  hash = (37 * hash) + VARIABLE_SELECTION_STRATEGY_FIELD_NUMBER;
1215  hash = (53 * hash) + variableSelectionStrategy_;
1216  hash = (37 * hash) + DOMAIN_REDUCTION_STRATEGY_FIELD_NUMBER;
1217  hash = (53 * hash) + domainReductionStrategy_;
1218  if (getTransformationsCount() > 0) {
1219  hash = (37 * hash) + TRANSFORMATIONS_FIELD_NUMBER;
1220  hash = (53 * hash) + getTransformationsList().hashCode();
1221  }
1222  hash = (29 * hash) + unknownFields.hashCode();
1223  memoizedHashCode = hash;
1224  return hash;
1225  }
1226 
1228  java.nio.ByteBuffer data)
1229  throws com.google.protobuf.InvalidProtocolBufferException {
1230  return PARSER.parseFrom(data);
1231  }
1233  java.nio.ByteBuffer data,
1234  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1235  throws com.google.protobuf.InvalidProtocolBufferException {
1236  return PARSER.parseFrom(data, extensionRegistry);
1237  }
1239  com.google.protobuf.ByteString data)
1240  throws com.google.protobuf.InvalidProtocolBufferException {
1241  return PARSER.parseFrom(data);
1242  }
1244  com.google.protobuf.ByteString data,
1245  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1246  throws com.google.protobuf.InvalidProtocolBufferException {
1247  return PARSER.parseFrom(data, extensionRegistry);
1248  }
1250  throws com.google.protobuf.InvalidProtocolBufferException {
1251  return PARSER.parseFrom(data);
1252  }
1254  byte[] data,
1255  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1256  throws com.google.protobuf.InvalidProtocolBufferException {
1257  return PARSER.parseFrom(data, extensionRegistry);
1258  }
1259  public static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.io.InputStream input)
1260  throws java.io.IOException {
1261  return com.google.protobuf.GeneratedMessageV3
1262  .parseWithIOException(PARSER, input);
1263  }
1265  java.io.InputStream input,
1266  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1267  throws java.io.IOException {
1268  return com.google.protobuf.GeneratedMessageV3
1269  .parseWithIOException(PARSER, input, extensionRegistry);
1270  }
1271  public static com.google.ortools.sat.DecisionStrategyProto parseDelimitedFrom(java.io.InputStream input)
1272  throws java.io.IOException {
1273  return com.google.protobuf.GeneratedMessageV3
1274  .parseDelimitedWithIOException(PARSER, input);
1275  }
1277  java.io.InputStream input,
1278  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1279  throws java.io.IOException {
1280  return com.google.protobuf.GeneratedMessageV3
1281  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1282  }
1284  com.google.protobuf.CodedInputStream input)
1285  throws java.io.IOException {
1286  return com.google.protobuf.GeneratedMessageV3
1287  .parseWithIOException(PARSER, input);
1288  }
1290  com.google.protobuf.CodedInputStream input,
1291  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1292  throws java.io.IOException {
1293  return com.google.protobuf.GeneratedMessageV3
1294  .parseWithIOException(PARSER, input, extensionRegistry);
1295  }
1296 
1297  @java.lang.Override
1298  public Builder newBuilderForType() { return newBuilder(); }
1299  public static Builder newBuilder() {
1300  return DEFAULT_INSTANCE.toBuilder();
1301  }
1303  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1304  }
1305  @java.lang.Override
1306  public Builder toBuilder() {
1307  return this == DEFAULT_INSTANCE
1308  ? new Builder() : new Builder().mergeFrom(this);
1309  }
1310 
1311  @java.lang.Override
1313  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1314  Builder builder = new Builder(parent);
1315  return builder;
1316  }
1325  public static final class Builder extends
1326  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1327  // @@protoc_insertion_point(builder_implements:operations_research.sat.DecisionStrategyProto)
1328  com.google.ortools.sat.DecisionStrategyProtoOrBuilder {
1329  public static final com.google.protobuf.Descriptors.Descriptor
1331  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_descriptor;
1332  }
1333 
1334  @java.lang.Override
1335  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1337  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_fieldAccessorTable
1338  .ensureFieldAccessorsInitialized(
1340  }
1341 
1342  // Construct using com.google.ortools.sat.DecisionStrategyProto.newBuilder()
1343  private Builder() {
1344  maybeForceBuilderInitialization();
1345  }
1346 
1347  private Builder(
1348  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1349  super(parent);
1350  maybeForceBuilderInitialization();
1351  }
1352  private void maybeForceBuilderInitialization() {
1353  if (com.google.protobuf.GeneratedMessageV3
1354  .alwaysUseFieldBuilders) {
1355  getTransformationsFieldBuilder();
1356  }
1357  }
1358  @java.lang.Override
1359  public Builder clear() {
1360  super.clear();
1361  variables_ = emptyIntList();
1362  bitField0_ = (bitField0_ & ~0x00000001);
1363  variableSelectionStrategy_ = 0;
1364 
1365  domainReductionStrategy_ = 0;
1366 
1367  if (transformationsBuilder_ == null) {
1368  transformations_ = java.util.Collections.emptyList();
1369  bitField0_ = (bitField0_ & ~0x00000008);
1370  } else {
1371  transformationsBuilder_.clear();
1372  }
1373  return this;
1374  }
1375 
1376  @java.lang.Override
1377  public com.google.protobuf.Descriptors.Descriptor
1379  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_descriptor;
1380  }
1381 
1382  @java.lang.Override
1385  }
1386 
1387  @java.lang.Override
1390  if (!result.isInitialized()) {
1391  throw newUninitializedMessageException(result);
1392  }
1393  return result;
1394  }
1395 
1396  @java.lang.Override
1399  int from_bitField0_ = bitField0_;
1400  int to_bitField0_ = 0;
1401  if (((bitField0_ & 0x00000001) != 0)) {
1402  variables_.makeImmutable();
1403  bitField0_ = (bitField0_ & ~0x00000001);
1404  }
1405  result.variables_ = variables_;
1406  result.variableSelectionStrategy_ = variableSelectionStrategy_;
1407  result.domainReductionStrategy_ = domainReductionStrategy_;
1408  if (transformationsBuilder_ == null) {
1409  if (((bitField0_ & 0x00000008) != 0)) {
1410  transformations_ = java.util.Collections.unmodifiableList(transformations_);
1411  bitField0_ = (bitField0_ & ~0x00000008);
1412  }
1413  result.transformations_ = transformations_;
1414  } else {
1415  result.transformations_ = transformationsBuilder_.build();
1416  }
1417  result.bitField0_ = to_bitField0_;
1418  onBuilt();
1419  return result;
1420  }
1421 
1422  @java.lang.Override
1423  public Builder clone() {
1424  return super.clone();
1425  }
1426  @java.lang.Override
1428  com.google.protobuf.Descriptors.FieldDescriptor field,
1429  java.lang.Object value) {
1430  return super.setField(field, value);
1431  }
1432  @java.lang.Override
1434  com.google.protobuf.Descriptors.FieldDescriptor field) {
1435  return super.clearField(field);
1436  }
1437  @java.lang.Override
1439  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1440  return super.clearOneof(oneof);
1441  }
1442  @java.lang.Override
1444  com.google.protobuf.Descriptors.FieldDescriptor field,
1445  int index, java.lang.Object value) {
1446  return super.setRepeatedField(field, index, value);
1447  }
1448  @java.lang.Override
1450  com.google.protobuf.Descriptors.FieldDescriptor field,
1451  java.lang.Object value) {
1452  return super.addRepeatedField(field, value);
1453  }
1454  @java.lang.Override
1455  public Builder mergeFrom(com.google.protobuf.Message other) {
1456  if (other instanceof com.google.ortools.sat.DecisionStrategyProto) {
1458  } else {
1459  super.mergeFrom(other);
1460  return this;
1461  }
1462  }
1463 
1465  if (other == com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance()) return this;
1466  if (!other.variables_.isEmpty()) {
1467  if (variables_.isEmpty()) {
1468  variables_ = other.variables_;
1469  bitField0_ = (bitField0_ & ~0x00000001);
1470  } else {
1471  ensureVariablesIsMutable();
1472  variables_.addAll(other.variables_);
1473  }
1474  onChanged();
1475  }
1476  if (other.variableSelectionStrategy_ != 0) {
1477  setVariableSelectionStrategyValue(other.getVariableSelectionStrategyValue());
1478  }
1479  if (other.domainReductionStrategy_ != 0) {
1480  setDomainReductionStrategyValue(other.getDomainReductionStrategyValue());
1481  }
1482  if (transformationsBuilder_ == null) {
1483  if (!other.transformations_.isEmpty()) {
1484  if (transformations_.isEmpty()) {
1485  transformations_ = other.transformations_;
1486  bitField0_ = (bitField0_ & ~0x00000008);
1487  } else {
1488  ensureTransformationsIsMutable();
1489  transformations_.addAll(other.transformations_);
1490  }
1491  onChanged();
1492  }
1493  } else {
1494  if (!other.transformations_.isEmpty()) {
1495  if (transformationsBuilder_.isEmpty()) {
1496  transformationsBuilder_.dispose();
1497  transformationsBuilder_ = null;
1498  transformations_ = other.transformations_;
1499  bitField0_ = (bitField0_ & ~0x00000008);
1500  transformationsBuilder_ =
1501  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1502  getTransformationsFieldBuilder() : null;
1503  } else {
1504  transformationsBuilder_.addAllMessages(other.transformations_);
1505  }
1506  }
1507  }
1508  this.mergeUnknownFields(other.unknownFields);
1509  onChanged();
1510  return this;
1511  }
1512 
1513  @java.lang.Override
1514  public final boolean isInitialized() {
1515  return true;
1516  }
1517 
1518  @java.lang.Override
1520  com.google.protobuf.CodedInputStream input,
1521  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1522  throws java.io.IOException {
1523  com.google.ortools.sat.DecisionStrategyProto parsedMessage = null;
1524  try {
1525  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1526  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1527  parsedMessage = (com.google.ortools.sat.DecisionStrategyProto) e.getUnfinishedMessage();
1528  throw e.unwrapIOException();
1529  } finally {
1530  if (parsedMessage != null) {
1531  mergeFrom(parsedMessage);
1532  }
1533  }
1534  return this;
1535  }
1536  private int bitField0_;
1537 
1538  private com.google.protobuf.Internal.IntList variables_ = emptyIntList();
1539  private void ensureVariablesIsMutable() {
1540  if (!((bitField0_ & 0x00000001) != 0)) {
1541  variables_ = mutableCopy(variables_);
1542  bitField0_ |= 0x00000001;
1543  }
1544  }
1554  public java.util.List<java.lang.Integer>
1556  return ((bitField0_ & 0x00000001) != 0) ?
1557  java.util.Collections.unmodifiableList(variables_) : variables_;
1558  }
1568  public int getVariablesCount() {
1569  return variables_.size();
1570  }
1580  public int getVariables(int index) {
1581  return variables_.getInt(index);
1582  }
1593  int index, int value) {
1594  ensureVariablesIsMutable();
1595  variables_.setInt(index, value);
1596  onChanged();
1597  return this;
1598  }
1608  public Builder addVariables(int value) {
1609  ensureVariablesIsMutable();
1610  variables_.addInt(value);
1611  onChanged();
1612  return this;
1613  }
1624  java.lang.Iterable<? extends java.lang.Integer> values) {
1625  ensureVariablesIsMutable();
1626  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1627  values, variables_);
1628  onChanged();
1629  return this;
1630  }
1641  variables_ = emptyIntList();
1642  bitField0_ = (bitField0_ & ~0x00000001);
1643  onChanged();
1644  return this;
1645  }
1646 
1647  private int variableSelectionStrategy_ = 0;
1652  return variableSelectionStrategy_;
1653  }
1658  variableSelectionStrategy_ = value;
1659  onChanged();
1660  return this;
1661  }
1666  @SuppressWarnings("deprecation")
1669  }
1674  if (value == null) {
1675  throw new NullPointerException();
1676  }
1677 
1678  variableSelectionStrategy_ = value.getNumber();
1679  onChanged();
1680  return this;
1681  }
1686 
1687  variableSelectionStrategy_ = 0;
1688  onChanged();
1689  return this;
1690  }
1691 
1692  private int domainReductionStrategy_ = 0;
1697  return domainReductionStrategy_;
1698  }
1703  domainReductionStrategy_ = value;
1704  onChanged();
1705  return this;
1706  }
1711  @SuppressWarnings("deprecation")
1714  }
1719  if (value == null) {
1720  throw new NullPointerException();
1721  }
1722 
1723  domainReductionStrategy_ = value.getNumber();
1724  onChanged();
1725  return this;
1726  }
1731 
1732  domainReductionStrategy_ = 0;
1733  onChanged();
1734  return this;
1735  }
1736 
1737  private java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> transformations_ =
1738  java.util.Collections.emptyList();
1739  private void ensureTransformationsIsMutable() {
1740  if (!((bitField0_ & 0x00000008) != 0)) {
1741  transformations_ = new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation>(transformations_);
1742  bitField0_ |= 0x00000008;
1743  }
1744  }
1745 
1746  private com.google.protobuf.RepeatedFieldBuilderV3<
1748 
1753  if (transformationsBuilder_ == null) {
1754  return java.util.Collections.unmodifiableList(transformations_);
1755  } else {
1756  return transformationsBuilder_.getMessageList();
1757  }
1758  }
1763  if (transformationsBuilder_ == null) {
1764  return transformations_.size();
1765  } else {
1766  return transformationsBuilder_.getCount();
1767  }
1768  }
1773  if (transformationsBuilder_ == null) {
1774  return transformations_.get(index);
1775  } else {
1776  return transformationsBuilder_.getMessage(index);
1777  }
1778  }
1784  if (transformationsBuilder_ == null) {
1785  if (value == null) {
1786  throw new NullPointerException();
1787  }
1788  ensureTransformationsIsMutable();
1789  transformations_.set(index, value);
1790  onChanged();
1791  } else {
1792  transformationsBuilder_.setMessage(index, value);
1793  }
1794  return this;
1795  }
1801  if (transformationsBuilder_ == null) {
1802  ensureTransformationsIsMutable();
1803  transformations_.set(index, builderForValue.build());
1804  onChanged();
1805  } else {
1806  transformationsBuilder_.setMessage(index, builderForValue.build());
1807  }
1808  return this;
1809  }
1814  if (transformationsBuilder_ == null) {
1815  if (value == null) {
1816  throw new NullPointerException();
1817  }
1818  ensureTransformationsIsMutable();
1819  transformations_.add(value);
1820  onChanged();
1821  } else {
1822  transformationsBuilder_.addMessage(value);
1823  }
1824  return this;
1825  }
1831  if (transformationsBuilder_ == null) {
1832  if (value == null) {
1833  throw new NullPointerException();
1834  }
1835  ensureTransformationsIsMutable();
1836  transformations_.add(index, value);
1837  onChanged();
1838  } else {
1839  transformationsBuilder_.addMessage(index, value);
1840  }
1841  return this;
1842  }
1848  if (transformationsBuilder_ == null) {
1849  ensureTransformationsIsMutable();
1850  transformations_.add(builderForValue.build());
1851  onChanged();
1852  } else {
1853  transformationsBuilder_.addMessage(builderForValue.build());
1854  }
1855  return this;
1856  }
1862  if (transformationsBuilder_ == null) {
1863  ensureTransformationsIsMutable();
1864  transformations_.add(index, builderForValue.build());
1865  onChanged();
1866  } else {
1867  transformationsBuilder_.addMessage(index, builderForValue.build());
1868  }
1869  return this;
1870  }
1875  java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> values) {
1876  if (transformationsBuilder_ == null) {
1877  ensureTransformationsIsMutable();
1878  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1879  values, transformations_);
1880  onChanged();
1881  } else {
1882  transformationsBuilder_.addAllMessages(values);
1883  }
1884  return this;
1885  }
1890  if (transformationsBuilder_ == null) {
1891  transformations_ = java.util.Collections.emptyList();
1892  bitField0_ = (bitField0_ & ~0x00000008);
1893  onChanged();
1894  } else {
1895  transformationsBuilder_.clear();
1896  }
1897  return this;
1898  }
1902  public Builder removeTransformations(int index) {
1903  if (transformationsBuilder_ == null) {
1904  ensureTransformationsIsMutable();
1905  transformations_.remove(index);
1906  onChanged();
1907  } else {
1908  transformationsBuilder_.remove(index);
1909  }
1910  return this;
1911  }
1916  int index) {
1917  return getTransformationsFieldBuilder().getBuilder(index);
1918  }
1923  int index) {
1924  if (transformationsBuilder_ == null) {
1925  return transformations_.get(index); } else {
1926  return transformationsBuilder_.getMessageOrBuilder(index);
1927  }
1928  }
1932  public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder>
1934  if (transformationsBuilder_ != null) {
1935  return transformationsBuilder_.getMessageOrBuilderList();
1936  } else {
1937  return java.util.Collections.unmodifiableList(transformations_);
1938  }
1939  }
1944  return getTransformationsFieldBuilder().addBuilder(
1946  }
1951  int index) {
1952  return getTransformationsFieldBuilder().addBuilder(
1954  }
1960  return getTransformationsFieldBuilder().getBuilderList();
1961  }
1962  private com.google.protobuf.RepeatedFieldBuilderV3<
1964  getTransformationsFieldBuilder() {
1965  if (transformationsBuilder_ == null) {
1966  transformationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1968  transformations_,
1969  ((bitField0_ & 0x00000008) != 0),
1970  getParentForChildren(),
1971  isClean());
1972  transformations_ = null;
1973  }
1974  return transformationsBuilder_;
1975  }
1976  @java.lang.Override
1978  final com.google.protobuf.UnknownFieldSet unknownFields) {
1979  return super.setUnknownFields(unknownFields);
1980  }
1981 
1982  @java.lang.Override
1984  final com.google.protobuf.UnknownFieldSet unknownFields) {
1985  return super.mergeUnknownFields(unknownFields);
1986  }
1987 
1988 
1989  // @@protoc_insertion_point(builder_scope:operations_research.sat.DecisionStrategyProto)
1990  }
1991 
1992  // @@protoc_insertion_point(class_scope:operations_research.sat.DecisionStrategyProto)
1993  private static final com.google.ortools.sat.DecisionStrategyProto DEFAULT_INSTANCE;
1994  static {
1995  DEFAULT_INSTANCE = new com.google.ortools.sat.DecisionStrategyProto();
1996  }
1997 
1999  return DEFAULT_INSTANCE;
2000  }
2001 
2002  private static final com.google.protobuf.Parser<DecisionStrategyProto>
2003  PARSER = new com.google.protobuf.AbstractParser<DecisionStrategyProto>() {
2004  @java.lang.Override
2005  public DecisionStrategyProto parsePartialFrom(
2006  com.google.protobuf.CodedInputStream input,
2007  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2008  throws com.google.protobuf.InvalidProtocolBufferException {
2009  return new DecisionStrategyProto(input, extensionRegistry);
2010  }
2011  };
2012 
2013  public static com.google.protobuf.Parser<DecisionStrategyProto> parser() {
2014  return PARSER;
2015  }
2016 
2017  @java.lang.Override
2018  public com.google.protobuf.Parser<DecisionStrategyProto> getParserForType() {
2019  return PARSER;
2020  }
2021 
2022  @java.lang.Override
2024  return DEFAULT_INSTANCE;
2025  }
2026 
2027 }
2028 
static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.nio.ByteBuffer data)
com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder getTransformationsOrBuilder(int index)
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;
int getDomainReductionStrategyValue()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation build()
static com.google.ortools.sat.DecisionStrategyProto parseFrom(com.google.protobuf.CodedInputStream input)
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstanceForType()
int getTransformationsCount()
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;
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstance()
Builder clearVariableSelectionStrategy()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
java.util.List< java.lang.Integer > getVariablesList()
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseDelimitedFrom(java.io.InputStream input)
Builder addTransformations(int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder builderForValue)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
.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;
static com.google.protobuf.Parser< DecisionStrategyProto > parser()
Builder addTransformations(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation value)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder mergeFrom(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation other)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getTransformations(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
int getVariableSelectionStrategyValue()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
Builder clearTransformations()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
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)
Builder addAllVariables(java.lang.Iterable<? extends java.lang.Integer > values)
.lang.Override com.google.protobuf.Parser< AffineTransformation > getParserForType()
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.nio.ByteBuffer data)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.Parser< DecisionStrategyProto > getParserForType()
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(com.google.protobuf.ByteString data)
com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder addTransformationsBuilder()
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;
Builder mergeFrom(com.google.ortools.sat.DecisionStrategyProto other)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(com.google.protobuf.CodedInputStream input)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder setVariableSelectionStrategyValue(int value)
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder setDomainReductionStrategyValue(int value)
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.protobuf.Parser< AffineTransformation > parser()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder addTransformationsBuilder(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
int getTransformationsCount()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation buildPartial()
int getVariableSelectionStrategyValue()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
.lang.Override com.google.ortools.sat.DecisionStrategyProto getDefaultInstanceForType()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.sat.DecisionStrategyProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy getVariableSelectionStrategy()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(byte[] data)
static VariableSelectionStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder getTransformationsOrBuilder(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
Builder setTransformations(int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation value)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
static com.google.protobuf.Internal.EnumLiteMap< VariableSelectionStrategy > internalGetValueMap()
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.io.InputStream input)
Builder clearDomainReductionStrategy()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getTransformations(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Deprecated static VariableSelectionStrategy valueOf(int value)
java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder > getTransformationsOrBuilderList()
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;
Builder removeTransformations(int index)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.DecisionStrategyProto buildPartial()
java.util.List< com.google.ortools.sat.DecisionStrategyProto.AffineTransformation > getTransformationsList()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy getDomainReductionStrategy()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.DecisionStrategyProto.AffineTransformation getDefaultInstanceForType()
static Builder newBuilder(com.google.ortools.sat.DecisionStrategyProto.AffineTransformation prototype)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
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 getDefaultInstanceForType()
static com.google.ortools.sat.DecisionStrategyProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setDomainReductionStrategy(com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy value)
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.sat.DecisionStrategyProto parseFrom(com.google.protobuf.ByteString data)
int getDomainReductionStrategyValue()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
Builder setVariableSelectionStrategy(com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy value)
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override boolean equals(final java.lang.Object obj)
com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy getDomainReductionStrategy()
.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DomainReductionStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
.lang.Override boolean equals(final java.lang.Object obj)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.io.InputStream input)
.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)
static com.google.protobuf.Internal.EnumLiteMap< DomainReductionStrategy > internalGetValueMap()
java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder > getTransformationsOrBuilderList()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setTransformations(int index, com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder builderForValue)
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy getVariableSelectionStrategy()
.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy ...
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.sat.DecisionStrategyProto getDefaultInstance()
static com.google.ortools.sat.DecisionStrategyProto parseFrom(byte[] data)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
java.util.List< com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.Builder > getTransformationsBuilderList()
repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
.lang.Deprecated static DomainReductionStrategy valueOf(int value)
static Builder newBuilder(com.google.ortools.sat.DecisionStrategyProto prototype)
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
.lang.Override com.google.ortools.sat.DecisionStrategyProto build()