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  @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  }
42  private DecisionStrategyProto(
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(
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 
208  @java.lang.Deprecated
209  public static VariableSelectionStrategy valueOf(int value) {
210  return forNumber(value);
211  }
212 
213  public static VariableSelectionStrategy forNumber(int value) {
214  switch (value) {
215  case 0: return CHOOSE_FIRST;
216  case 1: return CHOOSE_LOWEST_MIN;
217  case 2: return CHOOSE_HIGHEST_MAX;
218  case 3: return CHOOSE_MIN_DOMAIN_SIZE;
219  case 4: return CHOOSE_MAX_DOMAIN_SIZE;
220  default: return null;
221  }
222  }
223 
224  public static com.google.protobuf.Internal.EnumLiteMap<VariableSelectionStrategy>
226  return internalValueMap;
227  }
228  private static final com.google.protobuf.Internal.EnumLiteMap<
229  VariableSelectionStrategy> internalValueMap =
230  new com.google.protobuf.Internal.EnumLiteMap<VariableSelectionStrategy>() {
231  public VariableSelectionStrategy findValueByNumber(int number) {
232  return VariableSelectionStrategy.forNumber(number);
233  }
234  };
235 
236  public final com.google.protobuf.Descriptors.EnumValueDescriptor
238  return getDescriptor().getValues().get(ordinal());
239  }
240  public final com.google.protobuf.Descriptors.EnumDescriptor
242  return getDescriptor();
243  }
244  public static final com.google.protobuf.Descriptors.EnumDescriptor
246  return com.google.ortools.sat.DecisionStrategyProto.getDescriptor().getEnumTypes().get(0);
247  }
248 
249  private static final VariableSelectionStrategy[] VALUES = values();
250 
252  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
253  if (desc.getType() != getDescriptor()) {
254  throw new java.lang.IllegalArgumentException(
255  "EnumValueDescriptor is not for this type.");
256  }
257  if (desc.getIndex() == -1) {
258  return UNRECOGNIZED;
259  }
260  return VALUES[desc.getIndex()];
261  }
262 
263  private final int value;
264 
265  private VariableSelectionStrategy(int value) {
266  this.value = value;
267  }
268 
269  // @@protoc_insertion_point(enum_scope:operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy)
270  }
271 
282  implements com.google.protobuf.ProtocolMessageEnum {
300  ;
301 
305  public static final int SELECT_MIN_VALUE_VALUE = 0;
309  public static final int SELECT_MAX_VALUE_VALUE = 1;
313  public static final int SELECT_LOWER_HALF_VALUE = 2;
317  public static final int SELECT_UPPER_HALF_VALUE = 3;
318 
319 
320  public final int getNumber() {
321  if (this == UNRECOGNIZED) {
322  throw new java.lang.IllegalArgumentException(
323  "Can't get the number of an unknown enum value.");
324  }
325  return value;
326  }
327 
331  @java.lang.Deprecated
332  public static DomainReductionStrategy valueOf(int value) {
333  return forNumber(value);
334  }
335 
336  public static DomainReductionStrategy forNumber(int value) {
337  switch (value) {
338  case 0: return SELECT_MIN_VALUE;
339  case 1: return SELECT_MAX_VALUE;
340  case 2: return SELECT_LOWER_HALF;
341  case 3: return SELECT_UPPER_HALF;
342  default: return null;
343  }
344  }
345 
346  public static com.google.protobuf.Internal.EnumLiteMap<DomainReductionStrategy>
348  return internalValueMap;
349  }
350  private static final com.google.protobuf.Internal.EnumLiteMap<
351  DomainReductionStrategy> internalValueMap =
352  new com.google.protobuf.Internal.EnumLiteMap<DomainReductionStrategy>() {
353  public DomainReductionStrategy findValueByNumber(int number) {
354  return DomainReductionStrategy.forNumber(number);
355  }
356  };
357 
358  public final com.google.protobuf.Descriptors.EnumValueDescriptor
360  return getDescriptor().getValues().get(ordinal());
361  }
362  public final com.google.protobuf.Descriptors.EnumDescriptor
364  return getDescriptor();
365  }
366  public static final com.google.protobuf.Descriptors.EnumDescriptor
368  return com.google.ortools.sat.DecisionStrategyProto.getDescriptor().getEnumTypes().get(1);
369  }
370 
371  private static final DomainReductionStrategy[] VALUES = values();
372 
374  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
375  if (desc.getType() != getDescriptor()) {
376  throw new java.lang.IllegalArgumentException(
377  "EnumValueDescriptor is not for this type.");
378  }
379  if (desc.getIndex() == -1) {
380  return UNRECOGNIZED;
381  }
382  return VALUES[desc.getIndex()];
383  }
384 
385  private final int value;
386 
387  private DomainReductionStrategy(int value) {
388  this.value = value;
389  }
390 
391  // @@protoc_insertion_point(enum_scope:operations_research.sat.DecisionStrategyProto.DomainReductionStrategy)
392  }
393 
394  public interface AffineTransformationOrBuilder extends
395  // @@protoc_insertion_point(interface_extends:operations_research.sat.DecisionStrategyProto.AffineTransformation)
396  com.google.protobuf.MessageOrBuilder {
397 
401  int getVar();
402 
406  long getOffset();
407 
411  long getPositiveCoeff();
412  }
423  public static final class AffineTransformation extends
424  com.google.protobuf.GeneratedMessageV3 implements
425  // @@protoc_insertion_point(message_implements:operations_research.sat.DecisionStrategyProto.AffineTransformation)
427  private static final long serialVersionUID = 0L;
428  // Use AffineTransformation.newBuilder() to construct.
429  private AffineTransformation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
430  super(builder);
431  }
432  private AffineTransformation() {
433  }
434 
435  @java.lang.Override
436  @SuppressWarnings({"unused"})
437  protected java.lang.Object newInstance(
438  UnusedPrivateParameter unused) {
439  return new AffineTransformation();
440  }
441 
442  @java.lang.Override
443  public final com.google.protobuf.UnknownFieldSet
445  return this.unknownFields;
446  }
447  private AffineTransformation(
448  com.google.protobuf.CodedInputStream input,
449  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
450  throws com.google.protobuf.InvalidProtocolBufferException {
451  this();
452  if (extensionRegistry == null) {
453  throw new java.lang.NullPointerException();
454  }
455  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
456  com.google.protobuf.UnknownFieldSet.newBuilder();
457  try {
458  boolean done = false;
459  while (!done) {
460  int tag = input.readTag();
461  switch (tag) {
462  case 0:
463  done = true;
464  break;
465  case 8: {
466 
467  var_ = input.readInt32();
468  break;
469  }
470  case 16: {
471 
472  offset_ = input.readInt64();
473  break;
474  }
475  case 24: {
476 
477  positiveCoeff_ = input.readInt64();
478  break;
479  }
480  default: {
481  if (!parseUnknownField(
482  input, unknownFields, extensionRegistry, tag)) {
483  done = true;
484  }
485  break;
486  }
487  }
488  }
489  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
490  throw e.setUnfinishedMessage(this);
491  } catch (java.io.IOException e) {
492  throw new com.google.protobuf.InvalidProtocolBufferException(
493  e).setUnfinishedMessage(this);
494  } finally {
495  this.unknownFields = unknownFields.build();
496  makeExtensionsImmutable();
497  }
498  }
499  public static final com.google.protobuf.Descriptors.Descriptor
501  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
502  }
503 
504  @java.lang.Override
505  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
507  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_fieldAccessorTable
508  .ensureFieldAccessorsInitialized(
510  }
511 
512  public static final int VAR_FIELD_NUMBER = 1;
513  private int var_;
517  public int getVar() {
518  return var_;
519  }
520 
521  public static final int OFFSET_FIELD_NUMBER = 2;
522  private long offset_;
526  public long getOffset() {
527  return offset_;
528  }
529 
530  public static final int POSITIVE_COEFF_FIELD_NUMBER = 3;
531  private long positiveCoeff_;
535  public long getPositiveCoeff() {
536  return positiveCoeff_;
537  }
538 
539  private byte memoizedIsInitialized = -1;
540  @java.lang.Override
541  public final boolean isInitialized() {
542  byte isInitialized = memoizedIsInitialized;
543  if (isInitialized == 1) return true;
544  if (isInitialized == 0) return false;
545 
546  memoizedIsInitialized = 1;
547  return true;
548  }
549 
550  @java.lang.Override
551  public void writeTo(com.google.protobuf.CodedOutputStream output)
552  throws java.io.IOException {
553  if (var_ != 0) {
554  output.writeInt32(1, var_);
555  }
556  if (offset_ != 0L) {
557  output.writeInt64(2, offset_);
558  }
559  if (positiveCoeff_ != 0L) {
560  output.writeInt64(3, positiveCoeff_);
561  }
562  unknownFields.writeTo(output);
563  }
564 
565  @java.lang.Override
566  public int getSerializedSize() {
567  int size = memoizedSize;
568  if (size != -1) return size;
569 
570  size = 0;
571  if (var_ != 0) {
572  size += com.google.protobuf.CodedOutputStream
573  .computeInt32Size(1, var_);
574  }
575  if (offset_ != 0L) {
576  size += com.google.protobuf.CodedOutputStream
577  .computeInt64Size(2, offset_);
578  }
579  if (positiveCoeff_ != 0L) {
580  size += com.google.protobuf.CodedOutputStream
581  .computeInt64Size(3, positiveCoeff_);
582  }
583  size += unknownFields.getSerializedSize();
584  memoizedSize = size;
585  return size;
586  }
587 
588  @java.lang.Override
589  public boolean equals(final java.lang.Object obj) {
590  if (obj == this) {
591  return true;
592  }
594  return super.equals(obj);
595  }
597 
598  if (getVar()
599  != other.getVar()) return false;
600  if (getOffset()
601  != other.getOffset()) return false;
602  if (getPositiveCoeff()
603  != other.getPositiveCoeff()) return false;
604  if (!unknownFields.equals(other.unknownFields)) return false;
605  return true;
606  }
607 
608  @java.lang.Override
609  public int hashCode() {
610  if (memoizedHashCode != 0) {
611  return memoizedHashCode;
612  }
613  int hash = 41;
614  hash = (19 * hash) + getDescriptor().hashCode();
615  hash = (37 * hash) + VAR_FIELD_NUMBER;
616  hash = (53 * hash) + getVar();
617  hash = (37 * hash) + OFFSET_FIELD_NUMBER;
618  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
619  getOffset());
620  hash = (37 * hash) + POSITIVE_COEFF_FIELD_NUMBER;
621  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
622  getPositiveCoeff());
623  hash = (29 * hash) + unknownFields.hashCode();
624  memoizedHashCode = hash;
625  return hash;
626  }
627 
629  java.nio.ByteBuffer data)
630  throws com.google.protobuf.InvalidProtocolBufferException {
631  return PARSER.parseFrom(data);
632  }
634  java.nio.ByteBuffer data,
635  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
636  throws com.google.protobuf.InvalidProtocolBufferException {
637  return PARSER.parseFrom(data, extensionRegistry);
638  }
640  com.google.protobuf.ByteString data)
641  throws com.google.protobuf.InvalidProtocolBufferException {
642  return PARSER.parseFrom(data);
643  }
645  com.google.protobuf.ByteString data,
646  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
647  throws com.google.protobuf.InvalidProtocolBufferException {
648  return PARSER.parseFrom(data, extensionRegistry);
649  }
651  throws com.google.protobuf.InvalidProtocolBufferException {
652  return PARSER.parseFrom(data);
653  }
655  byte[] data,
656  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
657  throws com.google.protobuf.InvalidProtocolBufferException {
658  return PARSER.parseFrom(data, extensionRegistry);
659  }
660  public static com.google.ortools.sat.DecisionStrategyProto.AffineTransformation parseFrom(java.io.InputStream input)
661  throws java.io.IOException {
662  return com.google.protobuf.GeneratedMessageV3
663  .parseWithIOException(PARSER, input);
664  }
666  java.io.InputStream input,
667  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
668  throws java.io.IOException {
669  return com.google.protobuf.GeneratedMessageV3
670  .parseWithIOException(PARSER, input, extensionRegistry);
671  }
673  throws java.io.IOException {
674  return com.google.protobuf.GeneratedMessageV3
675  .parseDelimitedWithIOException(PARSER, input);
676  }
678  java.io.InputStream input,
679  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
680  throws java.io.IOException {
681  return com.google.protobuf.GeneratedMessageV3
682  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
683  }
685  com.google.protobuf.CodedInputStream input)
686  throws java.io.IOException {
687  return com.google.protobuf.GeneratedMessageV3
688  .parseWithIOException(PARSER, input);
689  }
691  com.google.protobuf.CodedInputStream input,
692  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
693  throws java.io.IOException {
694  return com.google.protobuf.GeneratedMessageV3
695  .parseWithIOException(PARSER, input, extensionRegistry);
696  }
697 
698  @java.lang.Override
699  public Builder newBuilderForType() { return newBuilder(); }
700  public static Builder newBuilder() {
701  return DEFAULT_INSTANCE.toBuilder();
702  }
704  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
705  }
706  @java.lang.Override
707  public Builder toBuilder() {
708  return this == DEFAULT_INSTANCE
709  ? new Builder() : new Builder().mergeFrom(this);
710  }
711 
712  @java.lang.Override
714  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
715  Builder builder = new Builder(parent);
716  return builder;
717  }
728  public static final class Builder extends
729  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
730  // @@protoc_insertion_point(builder_implements:operations_research.sat.DecisionStrategyProto.AffineTransformation)
732  public static final com.google.protobuf.Descriptors.Descriptor
734  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
735  }
736 
737  @java.lang.Override
738  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
740  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_fieldAccessorTable
741  .ensureFieldAccessorsInitialized(
743  }
744 
745  // Construct using com.google.ortools.sat.DecisionStrategyProto.AffineTransformation.newBuilder()
746  private Builder() {
747  maybeForceBuilderInitialization();
748  }
749 
750  private Builder(
751  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
752  super(parent);
753  maybeForceBuilderInitialization();
754  }
755  private void maybeForceBuilderInitialization() {
756  if (com.google.protobuf.GeneratedMessageV3
757  .alwaysUseFieldBuilders) {
758  }
759  }
760  @java.lang.Override
761  public Builder clear() {
762  super.clear();
763  var_ = 0;
764 
765  offset_ = 0L;
766 
767  positiveCoeff_ = 0L;
768 
769  return this;
770  }
771 
772  @java.lang.Override
773  public com.google.protobuf.Descriptors.Descriptor
775  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_AffineTransformation_descriptor;
776  }
777 
778  @java.lang.Override
781  }
782 
783  @java.lang.Override
786  if (!result.isInitialized()) {
787  throw newUninitializedMessageException(result);
788  }
789  return result;
790  }
791 
792  @java.lang.Override
795  result.var_ = var_;
796  result.offset_ = offset_;
797  result.positiveCoeff_ = positiveCoeff_;
798  onBuilt();
799  return result;
800  }
801 
802  @java.lang.Override
803  public Builder clone() {
804  return super.clone();
805  }
806  @java.lang.Override
808  com.google.protobuf.Descriptors.FieldDescriptor field,
809  java.lang.Object value) {
810  return super.setField(field, value);
811  }
812  @java.lang.Override
814  com.google.protobuf.Descriptors.FieldDescriptor field) {
815  return super.clearField(field);
816  }
817  @java.lang.Override
819  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
820  return super.clearOneof(oneof);
821  }
822  @java.lang.Override
824  com.google.protobuf.Descriptors.FieldDescriptor field,
825  int index, java.lang.Object value) {
826  return super.setRepeatedField(field, index, value);
827  }
828  @java.lang.Override
830  com.google.protobuf.Descriptors.FieldDescriptor field,
831  java.lang.Object value) {
832  return super.addRepeatedField(field, value);
833  }
834  @java.lang.Override
835  public Builder mergeFrom(com.google.protobuf.Message other) {
838  } else {
839  super.mergeFrom(other);
840  return this;
841  }
842  }
843 
846  if (other.getVar() != 0) {
847  setVar(other.getVar());
848  }
849  if (other.getOffset() != 0L) {
850  setOffset(other.getOffset());
851  }
852  if (other.getPositiveCoeff() != 0L) {
853  setPositiveCoeff(other.getPositiveCoeff());
854  }
855  this.mergeUnknownFields(other.unknownFields);
856  onChanged();
857  return this;
858  }
859 
860  @java.lang.Override
861  public final boolean isInitialized() {
862  return true;
863  }
864 
865  @java.lang.Override
867  com.google.protobuf.CodedInputStream input,
868  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
869  throws java.io.IOException {
871  try {
872  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
873  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
874  parsedMessage = (com.google.ortools.sat.DecisionStrategyProto.AffineTransformation) e.getUnfinishedMessage();
875  throw e.unwrapIOException();
876  } finally {
877  if (parsedMessage != null) {
878  mergeFrom(parsedMessage);
879  }
880  }
881  return this;
882  }
883 
884  private int var_ ;
888  public int getVar() {
889  return var_;
890  }
894  public Builder setVar(int value) {
895 
896  var_ = value;
897  onChanged();
898  return this;
899  }
903  public Builder clearVar() {
904 
905  var_ = 0;
906  onChanged();
907  return this;
908  }
909 
910  private long offset_ ;
914  public long getOffset() {
915  return offset_;
916  }
920  public Builder setOffset(long value) {
921 
922  offset_ = value;
923  onChanged();
924  return this;
925  }
929  public Builder clearOffset() {
930 
931  offset_ = 0L;
932  onChanged();
933  return this;
934  }
935 
936  private long positiveCoeff_ ;
940  public long getPositiveCoeff() {
941  return positiveCoeff_;
942  }
946  public Builder setPositiveCoeff(long value) {
947 
948  positiveCoeff_ = value;
949  onChanged();
950  return this;
951  }
956 
957  positiveCoeff_ = 0L;
958  onChanged();
959  return this;
960  }
961  @java.lang.Override
962  public final Builder setUnknownFields(
963  final com.google.protobuf.UnknownFieldSet unknownFields) {
964  return super.setUnknownFields(unknownFields);
965  }
966 
967  @java.lang.Override
969  final com.google.protobuf.UnknownFieldSet unknownFields) {
970  return super.mergeUnknownFields(unknownFields);
971  }
972 
973 
974  // @@protoc_insertion_point(builder_scope:operations_research.sat.DecisionStrategyProto.AffineTransformation)
975  }
976 
977  // @@protoc_insertion_point(class_scope:operations_research.sat.DecisionStrategyProto.AffineTransformation)
978  private static final com.google.ortools.sat.DecisionStrategyProto.AffineTransformation DEFAULT_INSTANCE;
979  static {
981  }
982 
984  return DEFAULT_INSTANCE;
985  }
986 
987  private static final com.google.protobuf.Parser<AffineTransformation>
988  PARSER = new com.google.protobuf.AbstractParser<AffineTransformation>() {
989  @java.lang.Override
990  public AffineTransformation parsePartialFrom(
991  com.google.protobuf.CodedInputStream input,
992  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
993  throws com.google.protobuf.InvalidProtocolBufferException {
994  return new AffineTransformation(input, extensionRegistry);
995  }
996  };
997 
998  public static com.google.protobuf.Parser<AffineTransformation> parser() {
999  return PARSER;
1000  }
1001 
1002  @java.lang.Override
1003  public com.google.protobuf.Parser<AffineTransformation> getParserForType() {
1004  return PARSER;
1005  }
1006 
1007  @java.lang.Override
1009  return DEFAULT_INSTANCE;
1010  }
1011 
1012  }
1013 
1014  public static final int VARIABLES_FIELD_NUMBER = 1;
1015  private com.google.protobuf.Internal.IntList variables_;
1025  public java.util.List<java.lang.Integer>
1027  return variables_;
1028  }
1038  public int getVariablesCount() {
1039  return variables_.size();
1040  }
1050  public int getVariables(int index) {
1051  return variables_.getInt(index);
1052  }
1053  private int variablesMemoizedSerializedSize = -1;
1054 
1055  public static final int VARIABLE_SELECTION_STRATEGY_FIELD_NUMBER = 2;
1056  private int variableSelectionStrategy_;
1061  return variableSelectionStrategy_;
1062  }
1067  @SuppressWarnings("deprecation")
1070  }
1071 
1072  public static final int DOMAIN_REDUCTION_STRATEGY_FIELD_NUMBER = 3;
1073  private int domainReductionStrategy_;
1078  return domainReductionStrategy_;
1079  }
1084  @SuppressWarnings("deprecation")
1087  }
1088 
1089  public static final int TRANSFORMATIONS_FIELD_NUMBER = 4;
1090  private java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> transformations_;
1095  return transformations_;
1096  }
1100  public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder>
1102  return transformations_;
1103  }
1108  return transformations_.size();
1109  }
1114  return transformations_.get(index);
1115  }
1120  int index) {
1121  return transformations_.get(index);
1122  }
1123 
1124  private byte memoizedIsInitialized = -1;
1125  @java.lang.Override
1126  public final boolean isInitialized() {
1127  byte isInitialized = memoizedIsInitialized;
1128  if (isInitialized == 1) return true;
1129  if (isInitialized == 0) return false;
1130 
1131  memoizedIsInitialized = 1;
1132  return true;
1133  }
1134 
1135  @java.lang.Override
1136  public void writeTo(com.google.protobuf.CodedOutputStream output)
1137  throws java.io.IOException {
1139  if (getVariablesList().size() > 0) {
1140  output.writeUInt32NoTag(10);
1141  output.writeUInt32NoTag(variablesMemoizedSerializedSize);
1142  }
1143  for (int i = 0; i < variables_.size(); i++) {
1144  output.writeInt32NoTag(variables_.getInt(i));
1145  }
1146  if (variableSelectionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.CHOOSE_FIRST.getNumber()) {
1147  output.writeEnum(2, variableSelectionStrategy_);
1148  }
1149  if (domainReductionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.SELECT_MIN_VALUE.getNumber()) {
1150  output.writeEnum(3, domainReductionStrategy_);
1151  }
1152  for (int i = 0; i < transformations_.size(); i++) {
1153  output.writeMessage(4, transformations_.get(i));
1154  }
1155  unknownFields.writeTo(output);
1156  }
1157 
1158  @java.lang.Override
1159  public int getSerializedSize() {
1160  int size = memoizedSize;
1161  if (size != -1) return size;
1162 
1163  size = 0;
1164  {
1165  int dataSize = 0;
1166  for (int i = 0; i < variables_.size(); i++) {
1167  dataSize += com.google.protobuf.CodedOutputStream
1168  .computeInt32SizeNoTag(variables_.getInt(i));
1169  }
1170  size += dataSize;
1171  if (!getVariablesList().isEmpty()) {
1172  size += 1;
1173  size += com.google.protobuf.CodedOutputStream
1174  .computeInt32SizeNoTag(dataSize);
1175  }
1176  variablesMemoizedSerializedSize = dataSize;
1177  }
1178  if (variableSelectionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy.CHOOSE_FIRST.getNumber()) {
1179  size += com.google.protobuf.CodedOutputStream
1180  .computeEnumSize(2, variableSelectionStrategy_);
1181  }
1182  if (domainReductionStrategy_ != com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy.SELECT_MIN_VALUE.getNumber()) {
1183  size += com.google.protobuf.CodedOutputStream
1184  .computeEnumSize(3, domainReductionStrategy_);
1185  }
1186  for (int i = 0; i < transformations_.size(); i++) {
1187  size += com.google.protobuf.CodedOutputStream
1188  .computeMessageSize(4, transformations_.get(i));
1189  }
1190  size += unknownFields.getSerializedSize();
1191  memoizedSize = size;
1192  return size;
1193  }
1194 
1195  @java.lang.Override
1196  public boolean equals(final java.lang.Object obj) {
1197  if (obj == this) {
1198  return true;
1199  }
1200  if (!(obj instanceof com.google.ortools.sat.DecisionStrategyProto)) {
1201  return super.equals(obj);
1202  }
1204 
1205  if (!getVariablesList()
1206  .equals(other.getVariablesList())) return false;
1207  if (variableSelectionStrategy_ != other.variableSelectionStrategy_) return false;
1208  if (domainReductionStrategy_ != other.domainReductionStrategy_) return false;
1209  if (!getTransformationsList()
1210  .equals(other.getTransformationsList())) return false;
1211  if (!unknownFields.equals(other.unknownFields)) return false;
1212  return true;
1213  }
1214 
1215  @java.lang.Override
1216  public int hashCode() {
1217  if (memoizedHashCode != 0) {
1218  return memoizedHashCode;
1219  }
1220  int hash = 41;
1221  hash = (19 * hash) + getDescriptor().hashCode();
1222  if (getVariablesCount() > 0) {
1223  hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
1224  hash = (53 * hash) + getVariablesList().hashCode();
1225  }
1226  hash = (37 * hash) + VARIABLE_SELECTION_STRATEGY_FIELD_NUMBER;
1227  hash = (53 * hash) + variableSelectionStrategy_;
1228  hash = (37 * hash) + DOMAIN_REDUCTION_STRATEGY_FIELD_NUMBER;
1229  hash = (53 * hash) + domainReductionStrategy_;
1230  if (getTransformationsCount() > 0) {
1231  hash = (37 * hash) + TRANSFORMATIONS_FIELD_NUMBER;
1232  hash = (53 * hash) + getTransformationsList().hashCode();
1233  }
1234  hash = (29 * hash) + unknownFields.hashCode();
1235  memoizedHashCode = hash;
1236  return hash;
1237  }
1238 
1240  java.nio.ByteBuffer data)
1241  throws com.google.protobuf.InvalidProtocolBufferException {
1242  return PARSER.parseFrom(data);
1243  }
1245  java.nio.ByteBuffer data,
1246  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1247  throws com.google.protobuf.InvalidProtocolBufferException {
1248  return PARSER.parseFrom(data, extensionRegistry);
1249  }
1251  com.google.protobuf.ByteString data)
1252  throws com.google.protobuf.InvalidProtocolBufferException {
1253  return PARSER.parseFrom(data);
1254  }
1256  com.google.protobuf.ByteString data,
1257  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1258  throws com.google.protobuf.InvalidProtocolBufferException {
1259  return PARSER.parseFrom(data, extensionRegistry);
1260  }
1262  throws com.google.protobuf.InvalidProtocolBufferException {
1263  return PARSER.parseFrom(data);
1264  }
1266  byte[] data,
1267  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1268  throws com.google.protobuf.InvalidProtocolBufferException {
1269  return PARSER.parseFrom(data, extensionRegistry);
1270  }
1271  public static com.google.ortools.sat.DecisionStrategyProto parseFrom(java.io.InputStream input)
1272  throws java.io.IOException {
1273  return com.google.protobuf.GeneratedMessageV3
1274  .parseWithIOException(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  .parseWithIOException(PARSER, input, extensionRegistry);
1282  }
1283  public static com.google.ortools.sat.DecisionStrategyProto parseDelimitedFrom(java.io.InputStream input)
1284  throws java.io.IOException {
1285  return com.google.protobuf.GeneratedMessageV3
1286  .parseDelimitedWithIOException(PARSER, input);
1287  }
1289  java.io.InputStream input,
1290  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1291  throws java.io.IOException {
1292  return com.google.protobuf.GeneratedMessageV3
1293  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1294  }
1296  com.google.protobuf.CodedInputStream input)
1297  throws java.io.IOException {
1298  return com.google.protobuf.GeneratedMessageV3
1299  .parseWithIOException(PARSER, input);
1300  }
1302  com.google.protobuf.CodedInputStream input,
1303  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1304  throws java.io.IOException {
1305  return com.google.protobuf.GeneratedMessageV3
1306  .parseWithIOException(PARSER, input, extensionRegistry);
1307  }
1308 
1309  @java.lang.Override
1310  public Builder newBuilderForType() { return newBuilder(); }
1311  public static Builder newBuilder() {
1312  return DEFAULT_INSTANCE.toBuilder();
1313  }
1315  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1316  }
1317  @java.lang.Override
1318  public Builder toBuilder() {
1319  return this == DEFAULT_INSTANCE
1320  ? new Builder() : new Builder().mergeFrom(this);
1321  }
1322 
1323  @java.lang.Override
1325  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1326  Builder builder = new Builder(parent);
1327  return builder;
1328  }
1337  public static final class Builder extends
1338  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1339  // @@protoc_insertion_point(builder_implements:operations_research.sat.DecisionStrategyProto)
1340  com.google.ortools.sat.DecisionStrategyProtoOrBuilder {
1341  public static final com.google.protobuf.Descriptors.Descriptor
1343  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_descriptor;
1344  }
1345 
1346  @java.lang.Override
1347  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1349  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_fieldAccessorTable
1350  .ensureFieldAccessorsInitialized(
1352  }
1353 
1354  // Construct using com.google.ortools.sat.DecisionStrategyProto.newBuilder()
1355  private Builder() {
1356  maybeForceBuilderInitialization();
1357  }
1358 
1359  private Builder(
1360  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1361  super(parent);
1362  maybeForceBuilderInitialization();
1363  }
1364  private void maybeForceBuilderInitialization() {
1365  if (com.google.protobuf.GeneratedMessageV3
1366  .alwaysUseFieldBuilders) {
1367  getTransformationsFieldBuilder();
1368  }
1369  }
1370  @java.lang.Override
1371  public Builder clear() {
1372  super.clear();
1373  variables_ = emptyIntList();
1374  bitField0_ = (bitField0_ & ~0x00000001);
1375  variableSelectionStrategy_ = 0;
1376 
1377  domainReductionStrategy_ = 0;
1378 
1379  if (transformationsBuilder_ == null) {
1380  transformations_ = java.util.Collections.emptyList();
1381  bitField0_ = (bitField0_ & ~0x00000002);
1382  } else {
1383  transformationsBuilder_.clear();
1384  }
1385  return this;
1386  }
1387 
1388  @java.lang.Override
1389  public com.google.protobuf.Descriptors.Descriptor
1391  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_DecisionStrategyProto_descriptor;
1392  }
1393 
1394  @java.lang.Override
1397  }
1398 
1399  @java.lang.Override
1402  if (!result.isInitialized()) {
1403  throw newUninitializedMessageException(result);
1404  }
1405  return result;
1406  }
1407 
1408  @java.lang.Override
1411  int from_bitField0_ = bitField0_;
1412  if (((bitField0_ & 0x00000001) != 0)) {
1413  variables_.makeImmutable();
1414  bitField0_ = (bitField0_ & ~0x00000001);
1415  }
1416  result.variables_ = variables_;
1417  result.variableSelectionStrategy_ = variableSelectionStrategy_;
1418  result.domainReductionStrategy_ = domainReductionStrategy_;
1419  if (transformationsBuilder_ == null) {
1420  if (((bitField0_ & 0x00000002) != 0)) {
1421  transformations_ = java.util.Collections.unmodifiableList(transformations_);
1422  bitField0_ = (bitField0_ & ~0x00000002);
1423  }
1424  result.transformations_ = transformations_;
1425  } else {
1426  result.transformations_ = transformationsBuilder_.build();
1427  }
1428  onBuilt();
1429  return result;
1430  }
1431 
1432  @java.lang.Override
1433  public Builder clone() {
1434  return super.clone();
1435  }
1436  @java.lang.Override
1438  com.google.protobuf.Descriptors.FieldDescriptor field,
1439  java.lang.Object value) {
1440  return super.setField(field, value);
1441  }
1442  @java.lang.Override
1444  com.google.protobuf.Descriptors.FieldDescriptor field) {
1445  return super.clearField(field);
1446  }
1447  @java.lang.Override
1449  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1450  return super.clearOneof(oneof);
1451  }
1452  @java.lang.Override
1454  com.google.protobuf.Descriptors.FieldDescriptor field,
1455  int index, java.lang.Object value) {
1456  return super.setRepeatedField(field, index, value);
1457  }
1458  @java.lang.Override
1460  com.google.protobuf.Descriptors.FieldDescriptor field,
1461  java.lang.Object value) {
1462  return super.addRepeatedField(field, value);
1463  }
1464  @java.lang.Override
1465  public Builder mergeFrom(com.google.protobuf.Message other) {
1466  if (other instanceof com.google.ortools.sat.DecisionStrategyProto) {
1468  } else {
1469  super.mergeFrom(other);
1470  return this;
1471  }
1472  }
1473 
1475  if (other == com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance()) return this;
1476  if (!other.variables_.isEmpty()) {
1477  if (variables_.isEmpty()) {
1478  variables_ = other.variables_;
1479  bitField0_ = (bitField0_ & ~0x00000001);
1480  } else {
1481  ensureVariablesIsMutable();
1482  variables_.addAll(other.variables_);
1483  }
1484  onChanged();
1485  }
1486  if (other.variableSelectionStrategy_ != 0) {
1487  setVariableSelectionStrategyValue(other.getVariableSelectionStrategyValue());
1488  }
1489  if (other.domainReductionStrategy_ != 0) {
1490  setDomainReductionStrategyValue(other.getDomainReductionStrategyValue());
1491  }
1492  if (transformationsBuilder_ == null) {
1493  if (!other.transformations_.isEmpty()) {
1494  if (transformations_.isEmpty()) {
1495  transformations_ = other.transformations_;
1496  bitField0_ = (bitField0_ & ~0x00000002);
1497  } else {
1498  ensureTransformationsIsMutable();
1499  transformations_.addAll(other.transformations_);
1500  }
1501  onChanged();
1502  }
1503  } else {
1504  if (!other.transformations_.isEmpty()) {
1505  if (transformationsBuilder_.isEmpty()) {
1506  transformationsBuilder_.dispose();
1507  transformationsBuilder_ = null;
1508  transformations_ = other.transformations_;
1509  bitField0_ = (bitField0_ & ~0x00000002);
1510  transformationsBuilder_ =
1511  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1512  getTransformationsFieldBuilder() : null;
1513  } else {
1514  transformationsBuilder_.addAllMessages(other.transformations_);
1515  }
1516  }
1517  }
1518  this.mergeUnknownFields(other.unknownFields);
1519  onChanged();
1520  return this;
1521  }
1522 
1523  @java.lang.Override
1524  public final boolean isInitialized() {
1525  return true;
1526  }
1527 
1528  @java.lang.Override
1530  com.google.protobuf.CodedInputStream input,
1531  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1532  throws java.io.IOException {
1533  com.google.ortools.sat.DecisionStrategyProto parsedMessage = null;
1534  try {
1535  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1536  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1537  parsedMessage = (com.google.ortools.sat.DecisionStrategyProto) e.getUnfinishedMessage();
1538  throw e.unwrapIOException();
1539  } finally {
1540  if (parsedMessage != null) {
1541  mergeFrom(parsedMessage);
1542  }
1543  }
1544  return this;
1545  }
1546  private int bitField0_;
1547 
1548  private com.google.protobuf.Internal.IntList variables_ = emptyIntList();
1549  private void ensureVariablesIsMutable() {
1550  if (!((bitField0_ & 0x00000001) != 0)) {
1551  variables_ = mutableCopy(variables_);
1552  bitField0_ |= 0x00000001;
1553  }
1554  }
1564  public java.util.List<java.lang.Integer>
1566  return ((bitField0_ & 0x00000001) != 0) ?
1567  java.util.Collections.unmodifiableList(variables_) : variables_;
1568  }
1578  public int getVariablesCount() {
1579  return variables_.size();
1580  }
1590  public int getVariables(int index) {
1591  return variables_.getInt(index);
1592  }
1603  int index, int value) {
1604  ensureVariablesIsMutable();
1605  variables_.setInt(index, value);
1606  onChanged();
1607  return this;
1608  }
1618  public Builder addVariables(int value) {
1619  ensureVariablesIsMutable();
1620  variables_.addInt(value);
1621  onChanged();
1622  return this;
1623  }
1634  java.lang.Iterable<? extends java.lang.Integer> values) {
1635  ensureVariablesIsMutable();
1636  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1637  values, variables_);
1638  onChanged();
1639  return this;
1640  }
1651  variables_ = emptyIntList();
1652  bitField0_ = (bitField0_ & ~0x00000001);
1653  onChanged();
1654  return this;
1655  }
1656 
1657  private int variableSelectionStrategy_ = 0;
1662  return variableSelectionStrategy_;
1663  }
1668  variableSelectionStrategy_ = value;
1669  onChanged();
1670  return this;
1671  }
1676  @SuppressWarnings("deprecation")
1679  }
1684  if (value == null) {
1685  throw new NullPointerException();
1686  }
1687 
1688  variableSelectionStrategy_ = value.getNumber();
1689  onChanged();
1690  return this;
1691  }
1696 
1697  variableSelectionStrategy_ = 0;
1698  onChanged();
1699  return this;
1700  }
1701 
1702  private int domainReductionStrategy_ = 0;
1707  return domainReductionStrategy_;
1708  }
1713  domainReductionStrategy_ = value;
1714  onChanged();
1715  return this;
1716  }
1721  @SuppressWarnings("deprecation")
1724  }
1729  if (value == null) {
1730  throw new NullPointerException();
1731  }
1732 
1733  domainReductionStrategy_ = value.getNumber();
1734  onChanged();
1735  return this;
1736  }
1741 
1742  domainReductionStrategy_ = 0;
1743  onChanged();
1744  return this;
1745  }
1746 
1747  private java.util.List<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> transformations_ =
1748  java.util.Collections.emptyList();
1749  private void ensureTransformationsIsMutable() {
1750  if (!((bitField0_ & 0x00000002) != 0)) {
1751  transformations_ = new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto.AffineTransformation>(transformations_);
1752  bitField0_ |= 0x00000002;
1753  }
1754  }
1755 
1756  private com.google.protobuf.RepeatedFieldBuilderV3<
1758 
1763  if (transformationsBuilder_ == null) {
1764  return java.util.Collections.unmodifiableList(transformations_);
1765  } else {
1766  return transformationsBuilder_.getMessageList();
1767  }
1768  }
1773  if (transformationsBuilder_ == null) {
1774  return transformations_.size();
1775  } else {
1776  return transformationsBuilder_.getCount();
1777  }
1778  }
1783  if (transformationsBuilder_ == null) {
1784  return transformations_.get(index);
1785  } else {
1786  return transformationsBuilder_.getMessage(index);
1787  }
1788  }
1794  if (transformationsBuilder_ == null) {
1795  if (value == null) {
1796  throw new NullPointerException();
1797  }
1798  ensureTransformationsIsMutable();
1799  transformations_.set(index, value);
1800  onChanged();
1801  } else {
1802  transformationsBuilder_.setMessage(index, value);
1803  }
1804  return this;
1805  }
1811  if (transformationsBuilder_ == null) {
1812  ensureTransformationsIsMutable();
1813  transformations_.set(index, builderForValue.build());
1814  onChanged();
1815  } else {
1816  transformationsBuilder_.setMessage(index, builderForValue.build());
1817  }
1818  return this;
1819  }
1824  if (transformationsBuilder_ == null) {
1825  if (value == null) {
1826  throw new NullPointerException();
1827  }
1828  ensureTransformationsIsMutable();
1829  transformations_.add(value);
1830  onChanged();
1831  } else {
1832  transformationsBuilder_.addMessage(value);
1833  }
1834  return this;
1835  }
1841  if (transformationsBuilder_ == null) {
1842  if (value == null) {
1843  throw new NullPointerException();
1844  }
1845  ensureTransformationsIsMutable();
1846  transformations_.add(index, value);
1847  onChanged();
1848  } else {
1849  transformationsBuilder_.addMessage(index, value);
1850  }
1851  return this;
1852  }
1858  if (transformationsBuilder_ == null) {
1859  ensureTransformationsIsMutable();
1860  transformations_.add(builderForValue.build());
1861  onChanged();
1862  } else {
1863  transformationsBuilder_.addMessage(builderForValue.build());
1864  }
1865  return this;
1866  }
1872  if (transformationsBuilder_ == null) {
1873  ensureTransformationsIsMutable();
1874  transformations_.add(index, builderForValue.build());
1875  onChanged();
1876  } else {
1877  transformationsBuilder_.addMessage(index, builderForValue.build());
1878  }
1879  return this;
1880  }
1885  java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformation> values) {
1886  if (transformationsBuilder_ == null) {
1887  ensureTransformationsIsMutable();
1888  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1889  values, transformations_);
1890  onChanged();
1891  } else {
1892  transformationsBuilder_.addAllMessages(values);
1893  }
1894  return this;
1895  }
1900  if (transformationsBuilder_ == null) {
1901  transformations_ = java.util.Collections.emptyList();
1902  bitField0_ = (bitField0_ & ~0x00000002);
1903  onChanged();
1904  } else {
1905  transformationsBuilder_.clear();
1906  }
1907  return this;
1908  }
1912  public Builder removeTransformations(int index) {
1913  if (transformationsBuilder_ == null) {
1914  ensureTransformationsIsMutable();
1915  transformations_.remove(index);
1916  onChanged();
1917  } else {
1918  transformationsBuilder_.remove(index);
1919  }
1920  return this;
1921  }
1926  int index) {
1927  return getTransformationsFieldBuilder().getBuilder(index);
1928  }
1933  int index) {
1934  if (transformationsBuilder_ == null) {
1935  return transformations_.get(index); } else {
1936  return transformationsBuilder_.getMessageOrBuilder(index);
1937  }
1938  }
1942  public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProto.AffineTransformationOrBuilder>
1944  if (transformationsBuilder_ != null) {
1945  return transformationsBuilder_.getMessageOrBuilderList();
1946  } else {
1947  return java.util.Collections.unmodifiableList(transformations_);
1948  }
1949  }
1954  return getTransformationsFieldBuilder().addBuilder(
1956  }
1961  int index) {
1962  return getTransformationsFieldBuilder().addBuilder(
1964  }
1970  return getTransformationsFieldBuilder().getBuilderList();
1971  }
1972  private com.google.protobuf.RepeatedFieldBuilderV3<
1974  getTransformationsFieldBuilder() {
1975  if (transformationsBuilder_ == null) {
1976  transformationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1978  transformations_,
1979  ((bitField0_ & 0x00000002) != 0),
1980  getParentForChildren(),
1981  isClean());
1982  transformations_ = null;
1983  }
1984  return transformationsBuilder_;
1985  }
1986  @java.lang.Override
1988  final com.google.protobuf.UnknownFieldSet unknownFields) {
1989  return super.setUnknownFields(unknownFields);
1990  }
1991 
1992  @java.lang.Override
1994  final com.google.protobuf.UnknownFieldSet unknownFields) {
1995  return super.mergeUnknownFields(unknownFields);
1996  }
1997 
1998 
1999  // @@protoc_insertion_point(builder_scope:operations_research.sat.DecisionStrategyProto)
2000  }
2001 
2002  // @@protoc_insertion_point(class_scope:operations_research.sat.DecisionStrategyProto)
2003  private static final com.google.ortools.sat.DecisionStrategyProto DEFAULT_INSTANCE;
2004  static {
2005  DEFAULT_INSTANCE = new com.google.ortools.sat.DecisionStrategyProto();
2006  }
2007 
2009  return DEFAULT_INSTANCE;
2010  }
2011 
2012  private static final com.google.protobuf.Parser<DecisionStrategyProto>
2013  PARSER = new com.google.protobuf.AbstractParser<DecisionStrategyProto>() {
2014  @java.lang.Override
2015  public DecisionStrategyProto parsePartialFrom(
2016  com.google.protobuf.CodedInputStream input,
2017  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2018  throws com.google.protobuf.InvalidProtocolBufferException {
2019  return new DecisionStrategyProto(input, extensionRegistry);
2020  }
2021  };
2022 
2023  public static com.google.protobuf.Parser<DecisionStrategyProto> parser() {
2024  return PARSER;
2025  }
2026 
2027  @java.lang.Override
2028  public com.google.protobuf.Parser<DecisionStrategyProto> getParserForType() {
2029  return PARSER;
2030  }
2031 
2032  @java.lang.Override
2034  return DEFAULT_INSTANCE;
2035  }
2036 
2037 }
2038 
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;
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
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 java.lang.Object newInstance(UnusedPrivateParameter unused)
.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()