Java Reference

Java Reference

CpModelProto.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 
13 public final class CpModelProto extends
14  com.google.protobuf.GeneratedMessageV3 implements
15  // @@protoc_insertion_point(message_implements:operations_research.sat.CpModelProto)
17 private static final long serialVersionUID = 0L;
18  // Use CpModelProto.newBuilder() to construct.
19  private CpModelProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
20  super(builder);
21  }
22  private CpModelProto() {
23  name_ = "";
24  variables_ = java.util.Collections.emptyList();
25  constraints_ = java.util.Collections.emptyList();
26  searchStrategy_ = java.util.Collections.emptyList();
27  assumptions_ = emptyIntList();
28  }
29 
30  @java.lang.Override
31  @SuppressWarnings({"unused"})
32  protected java.lang.Object newInstance(
33  UnusedPrivateParameter unused) {
34  return new CpModelProto();
35  }
36 
37  @java.lang.Override
38  public final com.google.protobuf.UnknownFieldSet
40  return this.unknownFields;
41  }
42  private CpModelProto(
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 10: {
62  java.lang.String s = input.readStringRequireUtf8();
63 
64  name_ = s;
65  break;
66  }
67  case 18: {
68  if (!((mutable_bitField0_ & 0x00000001) != 0)) {
69  variables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>();
70  mutable_bitField0_ |= 0x00000001;
71  }
72  variables_.add(
73  input.readMessage(com.google.ortools.sat.IntegerVariableProto.parser(), extensionRegistry));
74  break;
75  }
76  case 26: {
77  if (!((mutable_bitField0_ & 0x00000002) != 0)) {
78  constraints_ = new java.util.ArrayList<com.google.ortools.sat.ConstraintProto>();
79  mutable_bitField0_ |= 0x00000002;
80  }
81  constraints_.add(
82  input.readMessage(com.google.ortools.sat.ConstraintProto.parser(), extensionRegistry));
83  break;
84  }
85  case 34: {
86  com.google.ortools.sat.CpObjectiveProto.Builder subBuilder = null;
87  if (objective_ != null) {
88  subBuilder = objective_.toBuilder();
89  }
90  objective_ = input.readMessage(com.google.ortools.sat.CpObjectiveProto.parser(), extensionRegistry);
91  if (subBuilder != null) {
92  subBuilder.mergeFrom(objective_);
93  objective_ = subBuilder.buildPartial();
94  }
95 
96  break;
97  }
98  case 42: {
99  if (!((mutable_bitField0_ & 0x00000004) != 0)) {
100  searchStrategy_ = new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto>();
101  mutable_bitField0_ |= 0x00000004;
102  }
103  searchStrategy_.add(
104  input.readMessage(com.google.ortools.sat.DecisionStrategyProto.parser(), extensionRegistry));
105  break;
106  }
107  case 50: {
109  if (solutionHint_ != null) {
110  subBuilder = solutionHint_.toBuilder();
111  }
112  solutionHint_ = input.readMessage(com.google.ortools.sat.PartialVariableAssignment.parser(), extensionRegistry);
113  if (subBuilder != null) {
114  subBuilder.mergeFrom(solutionHint_);
115  solutionHint_ = subBuilder.buildPartial();
116  }
117 
118  break;
119  }
120  case 56: {
121  if (!((mutable_bitField0_ & 0x00000008) != 0)) {
122  assumptions_ = newIntList();
123  mutable_bitField0_ |= 0x00000008;
124  }
125  assumptions_.addInt(input.readInt32());
126  break;
127  }
128  case 58: {
129  int length = input.readRawVarint32();
130  int limit = input.pushLimit(length);
131  if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
132  assumptions_ = newIntList();
133  mutable_bitField0_ |= 0x00000008;
134  }
135  while (input.getBytesUntilLimit() > 0) {
136  assumptions_.addInt(input.readInt32());
137  }
138  input.popLimit(limit);
139  break;
140  }
141  case 66: {
142  com.google.ortools.sat.SymmetryProto.Builder subBuilder = null;
143  if (symmetry_ != null) {
144  subBuilder = symmetry_.toBuilder();
145  }
146  symmetry_ = input.readMessage(com.google.ortools.sat.SymmetryProto.parser(), extensionRegistry);
147  if (subBuilder != null) {
148  subBuilder.mergeFrom(symmetry_);
149  symmetry_ = subBuilder.buildPartial();
150  }
151 
152  break;
153  }
154  default: {
155  if (!parseUnknownField(
156  input, unknownFields, extensionRegistry, tag)) {
157  done = true;
158  }
159  break;
160  }
161  }
162  }
163  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
164  throw e.setUnfinishedMessage(this);
165  } catch (java.io.IOException e) {
166  throw new com.google.protobuf.InvalidProtocolBufferException(
167  e).setUnfinishedMessage(this);
168  } finally {
169  if (((mutable_bitField0_ & 0x00000001) != 0)) {
170  variables_ = java.util.Collections.unmodifiableList(variables_);
171  }
172  if (((mutable_bitField0_ & 0x00000002) != 0)) {
173  constraints_ = java.util.Collections.unmodifiableList(constraints_);
174  }
175  if (((mutable_bitField0_ & 0x00000004) != 0)) {
176  searchStrategy_ = java.util.Collections.unmodifiableList(searchStrategy_);
177  }
178  if (((mutable_bitField0_ & 0x00000008) != 0)) {
179  assumptions_.makeImmutable(); // C
180  }
181  this.unknownFields = unknownFields.build();
182  makeExtensionsImmutable();
183  }
184  }
185  public static final com.google.protobuf.Descriptors.Descriptor
187  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
188  }
189 
190  @java.lang.Override
191  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
193  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_fieldAccessorTable
194  .ensureFieldAccessorsInitialized(
196  }
197 
198  public static final int NAME_FIELD_NUMBER = 1;
199  private volatile java.lang.Object name_;
208  @java.lang.Override
209  public java.lang.String getName() {
210  java.lang.Object ref = name_;
211  if (ref instanceof java.lang.String) {
212  return (java.lang.String) ref;
213  } else {
214  com.google.protobuf.ByteString bs =
215  (com.google.protobuf.ByteString) ref;
216  java.lang.String s = bs.toStringUtf8();
217  name_ = s;
218  return s;
219  }
220  }
229  @java.lang.Override
230  public com.google.protobuf.ByteString
232  java.lang.Object ref = name_;
233  if (ref instanceof java.lang.String) {
234  com.google.protobuf.ByteString b =
235  com.google.protobuf.ByteString.copyFromUtf8(
236  (java.lang.String) ref);
237  name_ = b;
238  return b;
239  } else {
240  return (com.google.protobuf.ByteString) ref;
241  }
242  }
243 
244  public static final int VARIABLES_FIELD_NUMBER = 2;
245  private java.util.List<com.google.ortools.sat.IntegerVariableProto> variables_;
253  @java.lang.Override
255  return variables_;
256  }
264  @java.lang.Override
265  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
267  return variables_;
268  }
276  @java.lang.Override
277  public int getVariablesCount() {
278  return variables_.size();
279  }
287  @java.lang.Override
289  return variables_.get(index);
290  }
298  @java.lang.Override
300  int index) {
301  return variables_.get(index);
302  }
303 
304  public static final int CONSTRAINTS_FIELD_NUMBER = 3;
305  private java.util.List<com.google.ortools.sat.ConstraintProto> constraints_;
309  @java.lang.Override
311  return constraints_;
312  }
316  @java.lang.Override
317  public java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder>
319  return constraints_;
320  }
324  @java.lang.Override
325  public int getConstraintsCount() {
326  return constraints_.size();
327  }
331  @java.lang.Override
333  return constraints_.get(index);
334  }
338  @java.lang.Override
340  int index) {
341  return constraints_.get(index);
342  }
343 
344  public static final int OBJECTIVE_FIELD_NUMBER = 4;
345  private com.google.ortools.sat.CpObjectiveProto objective_;
354  @java.lang.Override
355  public boolean hasObjective() {
356  return objective_ != null;
357  }
366  @java.lang.Override
368  return objective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
369  }
377  @java.lang.Override
379  return getObjective();
380  }
381 
382  public static final int SEARCH_STRATEGY_FIELD_NUMBER = 5;
383  private java.util.List<com.google.ortools.sat.DecisionStrategyProto> searchStrategy_;
399  @java.lang.Override
401  return searchStrategy_;
402  }
418  @java.lang.Override
419  public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
421  return searchStrategy_;
422  }
438  @java.lang.Override
439  public int getSearchStrategyCount() {
440  return searchStrategy_.size();
441  }
457  @java.lang.Override
459  return searchStrategy_.get(index);
460  }
476  @java.lang.Override
478  int index) {
479  return searchStrategy_.get(index);
480  }
481 
482  public static final int SOLUTION_HINT_FIELD_NUMBER = 6;
483  private com.google.ortools.sat.PartialVariableAssignment solutionHint_;
500  @java.lang.Override
501  public boolean hasSolutionHint() {
502  return solutionHint_ != null;
503  }
520  @java.lang.Override
522  return solutionHint_ == null ? com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
523  }
539  @java.lang.Override
541  return getSolutionHint();
542  }
543 
544  public static final int ASSUMPTIONS_FIELD_NUMBER = 7;
545  private com.google.protobuf.Internal.IntList assumptions_;
564  @java.lang.Override
565  public java.util.List<java.lang.Integer>
567  return assumptions_;
568  }
587  public int getAssumptionsCount() {
588  return assumptions_.size();
589  }
609  public int getAssumptions(int index) {
610  return assumptions_.getInt(index);
611  }
612  private int assumptionsMemoizedSerializedSize = -1;
613 
614  public static final int SYMMETRY_FIELD_NUMBER = 8;
615  private com.google.ortools.sat.SymmetryProto symmetry_;
627  @java.lang.Override
628  public boolean hasSymmetry() {
629  return symmetry_ != null;
630  }
642  @java.lang.Override
644  return symmetry_ == null ? com.google.ortools.sat.SymmetryProto.getDefaultInstance() : symmetry_;
645  }
656  @java.lang.Override
658  return getSymmetry();
659  }
660 
661  private byte memoizedIsInitialized = -1;
662  @java.lang.Override
663  public final boolean isInitialized() {
664  byte isInitialized = memoizedIsInitialized;
665  if (isInitialized == 1) return true;
666  if (isInitialized == 0) return false;
667 
668  memoizedIsInitialized = 1;
669  return true;
670  }
671 
672  @java.lang.Override
673  public void writeTo(com.google.protobuf.CodedOutputStream output)
674  throws java.io.IOException {
676  if (!getNameBytes().isEmpty()) {
677  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
678  }
679  for (int i = 0; i < variables_.size(); i++) {
680  output.writeMessage(2, variables_.get(i));
681  }
682  for (int i = 0; i < constraints_.size(); i++) {
683  output.writeMessage(3, constraints_.get(i));
684  }
685  if (objective_ != null) {
686  output.writeMessage(4, getObjective());
687  }
688  for (int i = 0; i < searchStrategy_.size(); i++) {
689  output.writeMessage(5, searchStrategy_.get(i));
690  }
691  if (solutionHint_ != null) {
692  output.writeMessage(6, getSolutionHint());
693  }
694  if (getAssumptionsList().size() > 0) {
695  output.writeUInt32NoTag(58);
696  output.writeUInt32NoTag(assumptionsMemoizedSerializedSize);
697  }
698  for (int i = 0; i < assumptions_.size(); i++) {
699  output.writeInt32NoTag(assumptions_.getInt(i));
700  }
701  if (symmetry_ != null) {
702  output.writeMessage(8, getSymmetry());
703  }
704  unknownFields.writeTo(output);
705  }
706 
707  @java.lang.Override
708  public int getSerializedSize() {
709  int size = memoizedSize;
710  if (size != -1) return size;
711 
712  size = 0;
713  if (!getNameBytes().isEmpty()) {
714  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
715  }
716  for (int i = 0; i < variables_.size(); i++) {
717  size += com.google.protobuf.CodedOutputStream
718  .computeMessageSize(2, variables_.get(i));
719  }
720  for (int i = 0; i < constraints_.size(); i++) {
721  size += com.google.protobuf.CodedOutputStream
722  .computeMessageSize(3, constraints_.get(i));
723  }
724  if (objective_ != null) {
725  size += com.google.protobuf.CodedOutputStream
726  .computeMessageSize(4, getObjective());
727  }
728  for (int i = 0; i < searchStrategy_.size(); i++) {
729  size += com.google.protobuf.CodedOutputStream
730  .computeMessageSize(5, searchStrategy_.get(i));
731  }
732  if (solutionHint_ != null) {
733  size += com.google.protobuf.CodedOutputStream
734  .computeMessageSize(6, getSolutionHint());
735  }
736  {
737  int dataSize = 0;
738  for (int i = 0; i < assumptions_.size(); i++) {
739  dataSize += com.google.protobuf.CodedOutputStream
740  .computeInt32SizeNoTag(assumptions_.getInt(i));
741  }
742  size += dataSize;
743  if (!getAssumptionsList().isEmpty()) {
744  size += 1;
745  size += com.google.protobuf.CodedOutputStream
746  .computeInt32SizeNoTag(dataSize);
747  }
748  assumptionsMemoizedSerializedSize = dataSize;
749  }
750  if (symmetry_ != null) {
751  size += com.google.protobuf.CodedOutputStream
752  .computeMessageSize(8, getSymmetry());
753  }
754  size += unknownFields.getSerializedSize();
755  memoizedSize = size;
756  return size;
757  }
758 
759  @java.lang.Override
760  public boolean equals(final java.lang.Object obj) {
761  if (obj == this) {
762  return true;
763  }
764  if (!(obj instanceof com.google.ortools.sat.CpModelProto)) {
765  return super.equals(obj);
766  }
768 
769  if (!getName()
770  .equals(other.getName())) return false;
771  if (!getVariablesList()
772  .equals(other.getVariablesList())) return false;
773  if (!getConstraintsList()
774  .equals(other.getConstraintsList())) return false;
775  if (hasObjective() != other.hasObjective()) return false;
776  if (hasObjective()) {
777  if (!getObjective()
778  .equals(other.getObjective())) return false;
779  }
780  if (!getSearchStrategyList()
781  .equals(other.getSearchStrategyList())) return false;
782  if (hasSolutionHint() != other.hasSolutionHint()) return false;
783  if (hasSolutionHint()) {
784  if (!getSolutionHint()
785  .equals(other.getSolutionHint())) return false;
786  }
787  if (!getAssumptionsList()
788  .equals(other.getAssumptionsList())) return false;
789  if (hasSymmetry() != other.hasSymmetry()) return false;
790  if (hasSymmetry()) {
791  if (!getSymmetry()
792  .equals(other.getSymmetry())) return false;
793  }
794  if (!unknownFields.equals(other.unknownFields)) return false;
795  return true;
796  }
797 
798  @java.lang.Override
799  public int hashCode() {
800  if (memoizedHashCode != 0) {
801  return memoizedHashCode;
802  }
803  int hash = 41;
804  hash = (19 * hash) + getDescriptor().hashCode();
805  hash = (37 * hash) + NAME_FIELD_NUMBER;
806  hash = (53 * hash) + getName().hashCode();
807  if (getVariablesCount() > 0) {
808  hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
809  hash = (53 * hash) + getVariablesList().hashCode();
810  }
811  if (getConstraintsCount() > 0) {
812  hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER;
813  hash = (53 * hash) + getConstraintsList().hashCode();
814  }
815  if (hasObjective()) {
816  hash = (37 * hash) + OBJECTIVE_FIELD_NUMBER;
817  hash = (53 * hash) + getObjective().hashCode();
818  }
819  if (getSearchStrategyCount() > 0) {
820  hash = (37 * hash) + SEARCH_STRATEGY_FIELD_NUMBER;
821  hash = (53 * hash) + getSearchStrategyList().hashCode();
822  }
823  if (hasSolutionHint()) {
824  hash = (37 * hash) + SOLUTION_HINT_FIELD_NUMBER;
825  hash = (53 * hash) + getSolutionHint().hashCode();
826  }
827  if (getAssumptionsCount() > 0) {
828  hash = (37 * hash) + ASSUMPTIONS_FIELD_NUMBER;
829  hash = (53 * hash) + getAssumptionsList().hashCode();
830  }
831  if (hasSymmetry()) {
832  hash = (37 * hash) + SYMMETRY_FIELD_NUMBER;
833  hash = (53 * hash) + getSymmetry().hashCode();
834  }
835  hash = (29 * hash) + unknownFields.hashCode();
836  memoizedHashCode = hash;
837  return hash;
838  }
839 
841  java.nio.ByteBuffer data)
842  throws com.google.protobuf.InvalidProtocolBufferException {
843  return PARSER.parseFrom(data);
844  }
846  java.nio.ByteBuffer data,
847  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
848  throws com.google.protobuf.InvalidProtocolBufferException {
849  return PARSER.parseFrom(data, extensionRegistry);
850  }
852  com.google.protobuf.ByteString data)
853  throws com.google.protobuf.InvalidProtocolBufferException {
854  return PARSER.parseFrom(data);
855  }
857  com.google.protobuf.ByteString data,
858  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
859  throws com.google.protobuf.InvalidProtocolBufferException {
860  return PARSER.parseFrom(data, extensionRegistry);
861  }
862  public static com.google.ortools.sat.CpModelProto parseFrom(byte[] data)
863  throws com.google.protobuf.InvalidProtocolBufferException {
864  return PARSER.parseFrom(data);
865  }
867  byte[] data,
868  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
869  throws com.google.protobuf.InvalidProtocolBufferException {
870  return PARSER.parseFrom(data, extensionRegistry);
871  }
872  public static com.google.ortools.sat.CpModelProto parseFrom(java.io.InputStream input)
873  throws java.io.IOException {
874  return com.google.protobuf.GeneratedMessageV3
875  .parseWithIOException(PARSER, input);
876  }
878  java.io.InputStream input,
879  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
880  throws java.io.IOException {
881  return com.google.protobuf.GeneratedMessageV3
882  .parseWithIOException(PARSER, input, extensionRegistry);
883  }
884  public static com.google.ortools.sat.CpModelProto parseDelimitedFrom(java.io.InputStream input)
885  throws java.io.IOException {
886  return com.google.protobuf.GeneratedMessageV3
887  .parseDelimitedWithIOException(PARSER, input);
888  }
890  java.io.InputStream input,
891  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
892  throws java.io.IOException {
893  return com.google.protobuf.GeneratedMessageV3
894  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
895  }
897  com.google.protobuf.CodedInputStream input)
898  throws java.io.IOException {
899  return com.google.protobuf.GeneratedMessageV3
900  .parseWithIOException(PARSER, input);
901  }
903  com.google.protobuf.CodedInputStream input,
904  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
905  throws java.io.IOException {
906  return com.google.protobuf.GeneratedMessageV3
907  .parseWithIOException(PARSER, input, extensionRegistry);
908  }
909 
910  @java.lang.Override
911  public Builder newBuilderForType() { return newBuilder(); }
912  public static Builder newBuilder() {
913  return DEFAULT_INSTANCE.toBuilder();
914  }
915  public static Builder newBuilder(com.google.ortools.sat.CpModelProto prototype) {
916  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
917  }
918  @java.lang.Override
919  public Builder toBuilder() {
920  return this == DEFAULT_INSTANCE
921  ? new Builder() : new Builder().mergeFrom(this);
922  }
923 
924  @java.lang.Override
926  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
927  Builder builder = new Builder(parent);
928  return builder;
929  }
937  public static final class Builder extends
938  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
939  // @@protoc_insertion_point(builder_implements:operations_research.sat.CpModelProto)
940  com.google.ortools.sat.CpModelProtoOrBuilder {
941  public static final com.google.protobuf.Descriptors.Descriptor
943  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
944  }
945 
946  @java.lang.Override
947  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
949  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_fieldAccessorTable
950  .ensureFieldAccessorsInitialized(
952  }
953 
954  // Construct using com.google.ortools.sat.CpModelProto.newBuilder()
955  private Builder() {
956  maybeForceBuilderInitialization();
957  }
958 
959  private Builder(
960  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
961  super(parent);
962  maybeForceBuilderInitialization();
963  }
964  private void maybeForceBuilderInitialization() {
965  if (com.google.protobuf.GeneratedMessageV3
966  .alwaysUseFieldBuilders) {
967  getVariablesFieldBuilder();
968  getConstraintsFieldBuilder();
969  getSearchStrategyFieldBuilder();
970  }
971  }
972  @java.lang.Override
973  public Builder clear() {
974  super.clear();
975  name_ = "";
976 
977  if (variablesBuilder_ == null) {
978  variables_ = java.util.Collections.emptyList();
979  bitField0_ = (bitField0_ & ~0x00000001);
980  } else {
981  variablesBuilder_.clear();
982  }
983  if (constraintsBuilder_ == null) {
984  constraints_ = java.util.Collections.emptyList();
985  bitField0_ = (bitField0_ & ~0x00000002);
986  } else {
987  constraintsBuilder_.clear();
988  }
989  if (objectiveBuilder_ == null) {
990  objective_ = null;
991  } else {
992  objective_ = null;
993  objectiveBuilder_ = null;
994  }
995  if (searchStrategyBuilder_ == null) {
996  searchStrategy_ = java.util.Collections.emptyList();
997  bitField0_ = (bitField0_ & ~0x00000004);
998  } else {
999  searchStrategyBuilder_.clear();
1000  }
1001  if (solutionHintBuilder_ == null) {
1002  solutionHint_ = null;
1003  } else {
1004  solutionHint_ = null;
1005  solutionHintBuilder_ = null;
1006  }
1007  assumptions_ = emptyIntList();
1008  bitField0_ = (bitField0_ & ~0x00000008);
1009  if (symmetryBuilder_ == null) {
1010  symmetry_ = null;
1011  } else {
1012  symmetry_ = null;
1013  symmetryBuilder_ = null;
1014  }
1015  return this;
1016  }
1017 
1018  @java.lang.Override
1019  public com.google.protobuf.Descriptors.Descriptor
1021  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
1022  }
1023 
1024  @java.lang.Override
1027  }
1028 
1029  @java.lang.Override
1032  if (!result.isInitialized()) {
1033  throw newUninitializedMessageException(result);
1034  }
1035  return result;
1036  }
1037 
1038  @java.lang.Override
1041  int from_bitField0_ = bitField0_;
1042  result.name_ = name_;
1043  if (variablesBuilder_ == null) {
1044  if (((bitField0_ & 0x00000001) != 0)) {
1045  variables_ = java.util.Collections.unmodifiableList(variables_);
1046  bitField0_ = (bitField0_ & ~0x00000001);
1047  }
1048  result.variables_ = variables_;
1049  } else {
1050  result.variables_ = variablesBuilder_.build();
1051  }
1052  if (constraintsBuilder_ == null) {
1053  if (((bitField0_ & 0x00000002) != 0)) {
1054  constraints_ = java.util.Collections.unmodifiableList(constraints_);
1055  bitField0_ = (bitField0_ & ~0x00000002);
1056  }
1057  result.constraints_ = constraints_;
1058  } else {
1059  result.constraints_ = constraintsBuilder_.build();
1060  }
1061  if (objectiveBuilder_ == null) {
1062  result.objective_ = objective_;
1063  } else {
1064  result.objective_ = objectiveBuilder_.build();
1065  }
1066  if (searchStrategyBuilder_ == null) {
1067  if (((bitField0_ & 0x00000004) != 0)) {
1068  searchStrategy_ = java.util.Collections.unmodifiableList(searchStrategy_);
1069  bitField0_ = (bitField0_ & ~0x00000004);
1070  }
1071  result.searchStrategy_ = searchStrategy_;
1072  } else {
1073  result.searchStrategy_ = searchStrategyBuilder_.build();
1074  }
1075  if (solutionHintBuilder_ == null) {
1076  result.solutionHint_ = solutionHint_;
1077  } else {
1078  result.solutionHint_ = solutionHintBuilder_.build();
1079  }
1080  if (((bitField0_ & 0x00000008) != 0)) {
1081  assumptions_.makeImmutable();
1082  bitField0_ = (bitField0_ & ~0x00000008);
1083  }
1084  result.assumptions_ = assumptions_;
1085  if (symmetryBuilder_ == null) {
1086  result.symmetry_ = symmetry_;
1087  } else {
1088  result.symmetry_ = symmetryBuilder_.build();
1089  }
1090  onBuilt();
1091  return result;
1092  }
1093 
1094  @java.lang.Override
1095  public Builder clone() {
1096  return super.clone();
1097  }
1098  @java.lang.Override
1100  com.google.protobuf.Descriptors.FieldDescriptor field,
1101  java.lang.Object value) {
1102  return super.setField(field, value);
1103  }
1104  @java.lang.Override
1106  com.google.protobuf.Descriptors.FieldDescriptor field) {
1107  return super.clearField(field);
1108  }
1109  @java.lang.Override
1111  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1112  return super.clearOneof(oneof);
1113  }
1114  @java.lang.Override
1116  com.google.protobuf.Descriptors.FieldDescriptor field,
1117  int index, java.lang.Object value) {
1118  return super.setRepeatedField(field, index, value);
1119  }
1120  @java.lang.Override
1122  com.google.protobuf.Descriptors.FieldDescriptor field,
1123  java.lang.Object value) {
1124  return super.addRepeatedField(field, value);
1125  }
1126  @java.lang.Override
1127  public Builder mergeFrom(com.google.protobuf.Message other) {
1128  if (other instanceof com.google.ortools.sat.CpModelProto) {
1129  return mergeFrom((com.google.ortools.sat.CpModelProto)other);
1130  } else {
1131  super.mergeFrom(other);
1132  return this;
1133  }
1134  }
1135 
1137  if (other == com.google.ortools.sat.CpModelProto.getDefaultInstance()) return this;
1138  if (!other.getName().isEmpty()) {
1139  name_ = other.name_;
1140  onChanged();
1141  }
1142  if (variablesBuilder_ == null) {
1143  if (!other.variables_.isEmpty()) {
1144  if (variables_.isEmpty()) {
1145  variables_ = other.variables_;
1146  bitField0_ = (bitField0_ & ~0x00000001);
1147  } else {
1148  ensureVariablesIsMutable();
1149  variables_.addAll(other.variables_);
1150  }
1151  onChanged();
1152  }
1153  } else {
1154  if (!other.variables_.isEmpty()) {
1155  if (variablesBuilder_.isEmpty()) {
1156  variablesBuilder_.dispose();
1157  variablesBuilder_ = null;
1158  variables_ = other.variables_;
1159  bitField0_ = (bitField0_ & ~0x00000001);
1160  variablesBuilder_ =
1161  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1162  getVariablesFieldBuilder() : null;
1163  } else {
1164  variablesBuilder_.addAllMessages(other.variables_);
1165  }
1166  }
1167  }
1168  if (constraintsBuilder_ == null) {
1169  if (!other.constraints_.isEmpty()) {
1170  if (constraints_.isEmpty()) {
1171  constraints_ = other.constraints_;
1172  bitField0_ = (bitField0_ & ~0x00000002);
1173  } else {
1174  ensureConstraintsIsMutable();
1175  constraints_.addAll(other.constraints_);
1176  }
1177  onChanged();
1178  }
1179  } else {
1180  if (!other.constraints_.isEmpty()) {
1181  if (constraintsBuilder_.isEmpty()) {
1182  constraintsBuilder_.dispose();
1183  constraintsBuilder_ = null;
1184  constraints_ = other.constraints_;
1185  bitField0_ = (bitField0_ & ~0x00000002);
1186  constraintsBuilder_ =
1187  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1188  getConstraintsFieldBuilder() : null;
1189  } else {
1190  constraintsBuilder_.addAllMessages(other.constraints_);
1191  }
1192  }
1193  }
1194  if (other.hasObjective()) {
1195  mergeObjective(other.getObjective());
1196  }
1197  if (searchStrategyBuilder_ == null) {
1198  if (!other.searchStrategy_.isEmpty()) {
1199  if (searchStrategy_.isEmpty()) {
1200  searchStrategy_ = other.searchStrategy_;
1201  bitField0_ = (bitField0_ & ~0x00000004);
1202  } else {
1203  ensureSearchStrategyIsMutable();
1204  searchStrategy_.addAll(other.searchStrategy_);
1205  }
1206  onChanged();
1207  }
1208  } else {
1209  if (!other.searchStrategy_.isEmpty()) {
1210  if (searchStrategyBuilder_.isEmpty()) {
1211  searchStrategyBuilder_.dispose();
1212  searchStrategyBuilder_ = null;
1213  searchStrategy_ = other.searchStrategy_;
1214  bitField0_ = (bitField0_ & ~0x00000004);
1215  searchStrategyBuilder_ =
1216  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1217  getSearchStrategyFieldBuilder() : null;
1218  } else {
1219  searchStrategyBuilder_.addAllMessages(other.searchStrategy_);
1220  }
1221  }
1222  }
1223  if (other.hasSolutionHint()) {
1224  mergeSolutionHint(other.getSolutionHint());
1225  }
1226  if (!other.assumptions_.isEmpty()) {
1227  if (assumptions_.isEmpty()) {
1228  assumptions_ = other.assumptions_;
1229  bitField0_ = (bitField0_ & ~0x00000008);
1230  } else {
1231  ensureAssumptionsIsMutable();
1232  assumptions_.addAll(other.assumptions_);
1233  }
1234  onChanged();
1235  }
1236  if (other.hasSymmetry()) {
1237  mergeSymmetry(other.getSymmetry());
1238  }
1239  this.mergeUnknownFields(other.unknownFields);
1240  onChanged();
1241  return this;
1242  }
1243 
1244  @java.lang.Override
1245  public final boolean isInitialized() {
1246  return true;
1247  }
1248 
1249  @java.lang.Override
1251  com.google.protobuf.CodedInputStream input,
1252  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1253  throws java.io.IOException {
1254  com.google.ortools.sat.CpModelProto parsedMessage = null;
1255  try {
1256  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1257  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1258  parsedMessage = (com.google.ortools.sat.CpModelProto) e.getUnfinishedMessage();
1259  throw e.unwrapIOException();
1260  } finally {
1261  if (parsedMessage != null) {
1262  mergeFrom(parsedMessage);
1263  }
1264  }
1265  return this;
1266  }
1267  private int bitField0_;
1268 
1269  private java.lang.Object name_ = "";
1278  public java.lang.String getName() {
1279  java.lang.Object ref = name_;
1280  if (!(ref instanceof java.lang.String)) {
1281  com.google.protobuf.ByteString bs =
1282  (com.google.protobuf.ByteString) ref;
1283  java.lang.String s = bs.toStringUtf8();
1284  name_ = s;
1285  return s;
1286  } else {
1287  return (java.lang.String) ref;
1288  }
1289  }
1298  public com.google.protobuf.ByteString
1300  java.lang.Object ref = name_;
1301  if (ref instanceof String) {
1302  com.google.protobuf.ByteString b =
1303  com.google.protobuf.ByteString.copyFromUtf8(
1304  (java.lang.String) ref);
1305  name_ = b;
1306  return b;
1307  } else {
1308  return (com.google.protobuf.ByteString) ref;
1309  }
1310  }
1321  java.lang.String value) {
1322  if (value == null) {
1323  throw new NullPointerException();
1324  }
1325 
1326  name_ = value;
1327  onChanged();
1328  return this;
1329  }
1338  public Builder clearName() {
1339 
1340  name_ = getDefaultInstance().getName();
1341  onChanged();
1342  return this;
1343  }
1354  com.google.protobuf.ByteString value) {
1355  if (value == null) {
1356  throw new NullPointerException();
1357  }
1358  checkByteStringIsUtf8(value);
1359 
1360  name_ = value;
1361  onChanged();
1362  return this;
1363  }
1364 
1365  private java.util.List<com.google.ortools.sat.IntegerVariableProto> variables_ =
1366  java.util.Collections.emptyList();
1367  private void ensureVariablesIsMutable() {
1368  if (!((bitField0_ & 0x00000001) != 0)) {
1369  variables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(variables_);
1370  bitField0_ |= 0x00000001;
1371  }
1372  }
1373 
1374  private com.google.protobuf.RepeatedFieldBuilderV3<
1376 
1385  if (variablesBuilder_ == null) {
1386  return java.util.Collections.unmodifiableList(variables_);
1387  } else {
1388  return variablesBuilder_.getMessageList();
1389  }
1390  }
1398  public int getVariablesCount() {
1399  if (variablesBuilder_ == null) {
1400  return variables_.size();
1401  } else {
1402  return variablesBuilder_.getCount();
1403  }
1404  }
1413  if (variablesBuilder_ == null) {
1414  return variables_.get(index);
1415  } else {
1416  return variablesBuilder_.getMessage(index);
1417  }
1418  }
1427  int index, com.google.ortools.sat.IntegerVariableProto value) {
1428  if (variablesBuilder_ == null) {
1429  if (value == null) {
1430  throw new NullPointerException();
1431  }
1432  ensureVariablesIsMutable();
1433  variables_.set(index, value);
1434  onChanged();
1435  } else {
1436  variablesBuilder_.setMessage(index, value);
1437  }
1438  return this;
1439  }
1448  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1449  if (variablesBuilder_ == null) {
1450  ensureVariablesIsMutable();
1451  variables_.set(index, builderForValue.build());
1452  onChanged();
1453  } else {
1454  variablesBuilder_.setMessage(index, builderForValue.build());
1455  }
1456  return this;
1457  }
1466  if (variablesBuilder_ == null) {
1467  if (value == null) {
1468  throw new NullPointerException();
1469  }
1470  ensureVariablesIsMutable();
1471  variables_.add(value);
1472  onChanged();
1473  } else {
1474  variablesBuilder_.addMessage(value);
1475  }
1476  return this;
1477  }
1486  int index, com.google.ortools.sat.IntegerVariableProto value) {
1487  if (variablesBuilder_ == null) {
1488  if (value == null) {
1489  throw new NullPointerException();
1490  }
1491  ensureVariablesIsMutable();
1492  variables_.add(index, value);
1493  onChanged();
1494  } else {
1495  variablesBuilder_.addMessage(index, value);
1496  }
1497  return this;
1498  }
1507  com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1508  if (variablesBuilder_ == null) {
1509  ensureVariablesIsMutable();
1510  variables_.add(builderForValue.build());
1511  onChanged();
1512  } else {
1513  variablesBuilder_.addMessage(builderForValue.build());
1514  }
1515  return this;
1516  }
1525  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1526  if (variablesBuilder_ == null) {
1527  ensureVariablesIsMutable();
1528  variables_.add(index, builderForValue.build());
1529  onChanged();
1530  } else {
1531  variablesBuilder_.addMessage(index, builderForValue.build());
1532  }
1533  return this;
1534  }
1543  java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
1544  if (variablesBuilder_ == null) {
1545  ensureVariablesIsMutable();
1546  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1547  values, variables_);
1548  onChanged();
1549  } else {
1550  variablesBuilder_.addAllMessages(values);
1551  }
1552  return this;
1553  }
1562  if (variablesBuilder_ == null) {
1563  variables_ = java.util.Collections.emptyList();
1564  bitField0_ = (bitField0_ & ~0x00000001);
1565  onChanged();
1566  } else {
1567  variablesBuilder_.clear();
1568  }
1569  return this;
1570  }
1578  public Builder removeVariables(int index) {
1579  if (variablesBuilder_ == null) {
1580  ensureVariablesIsMutable();
1581  variables_.remove(index);
1582  onChanged();
1583  } else {
1584  variablesBuilder_.remove(index);
1585  }
1586  return this;
1587  }
1596  int index) {
1597  return getVariablesFieldBuilder().getBuilder(index);
1598  }
1607  int index) {
1608  if (variablesBuilder_ == null) {
1609  return variables_.get(index); } else {
1610  return variablesBuilder_.getMessageOrBuilder(index);
1611  }
1612  }
1620  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
1622  if (variablesBuilder_ != null) {
1623  return variablesBuilder_.getMessageOrBuilderList();
1624  } else {
1625  return java.util.Collections.unmodifiableList(variables_);
1626  }
1627  }
1636  return getVariablesFieldBuilder().addBuilder(
1638  }
1647  int index) {
1648  return getVariablesFieldBuilder().addBuilder(
1650  }
1658  public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
1660  return getVariablesFieldBuilder().getBuilderList();
1661  }
1662  private com.google.protobuf.RepeatedFieldBuilderV3<
1664  getVariablesFieldBuilder() {
1665  if (variablesBuilder_ == null) {
1666  variablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1668  variables_,
1669  ((bitField0_ & 0x00000001) != 0),
1670  getParentForChildren(),
1671  isClean());
1672  variables_ = null;
1673  }
1674  return variablesBuilder_;
1675  }
1676 
1677  private java.util.List<com.google.ortools.sat.ConstraintProto> constraints_ =
1678  java.util.Collections.emptyList();
1679  private void ensureConstraintsIsMutable() {
1680  if (!((bitField0_ & 0x00000002) != 0)) {
1681  constraints_ = new java.util.ArrayList<com.google.ortools.sat.ConstraintProto>(constraints_);
1682  bitField0_ |= 0x00000002;
1683  }
1684  }
1685 
1686  private com.google.protobuf.RepeatedFieldBuilderV3<
1688 
1693  if (constraintsBuilder_ == null) {
1694  return java.util.Collections.unmodifiableList(constraints_);
1695  } else {
1696  return constraintsBuilder_.getMessageList();
1697  }
1698  }
1702  public int getConstraintsCount() {
1703  if (constraintsBuilder_ == null) {
1704  return constraints_.size();
1705  } else {
1706  return constraintsBuilder_.getCount();
1707  }
1708  }
1713  if (constraintsBuilder_ == null) {
1714  return constraints_.get(index);
1715  } else {
1716  return constraintsBuilder_.getMessage(index);
1717  }
1718  }
1723  int index, com.google.ortools.sat.ConstraintProto value) {
1724  if (constraintsBuilder_ == null) {
1725  if (value == null) {
1726  throw new NullPointerException();
1727  }
1728  ensureConstraintsIsMutable();
1729  constraints_.set(index, value);
1730  onChanged();
1731  } else {
1732  constraintsBuilder_.setMessage(index, value);
1733  }
1734  return this;
1735  }
1740  int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1741  if (constraintsBuilder_ == null) {
1742  ensureConstraintsIsMutable();
1743  constraints_.set(index, builderForValue.build());
1744  onChanged();
1745  } else {
1746  constraintsBuilder_.setMessage(index, builderForValue.build());
1747  }
1748  return this;
1749  }
1754  if (constraintsBuilder_ == null) {
1755  if (value == null) {
1756  throw new NullPointerException();
1757  }
1758  ensureConstraintsIsMutable();
1759  constraints_.add(value);
1760  onChanged();
1761  } else {
1762  constraintsBuilder_.addMessage(value);
1763  }
1764  return this;
1765  }
1770  int index, com.google.ortools.sat.ConstraintProto value) {
1771  if (constraintsBuilder_ == null) {
1772  if (value == null) {
1773  throw new NullPointerException();
1774  }
1775  ensureConstraintsIsMutable();
1776  constraints_.add(index, value);
1777  onChanged();
1778  } else {
1779  constraintsBuilder_.addMessage(index, value);
1780  }
1781  return this;
1782  }
1787  com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1788  if (constraintsBuilder_ == null) {
1789  ensureConstraintsIsMutable();
1790  constraints_.add(builderForValue.build());
1791  onChanged();
1792  } else {
1793  constraintsBuilder_.addMessage(builderForValue.build());
1794  }
1795  return this;
1796  }
1801  int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1802  if (constraintsBuilder_ == null) {
1803  ensureConstraintsIsMutable();
1804  constraints_.add(index, builderForValue.build());
1805  onChanged();
1806  } else {
1807  constraintsBuilder_.addMessage(index, builderForValue.build());
1808  }
1809  return this;
1810  }
1815  java.lang.Iterable<? extends com.google.ortools.sat.ConstraintProto> values) {
1816  if (constraintsBuilder_ == null) {
1817  ensureConstraintsIsMutable();
1818  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1819  values, constraints_);
1820  onChanged();
1821  } else {
1822  constraintsBuilder_.addAllMessages(values);
1823  }
1824  return this;
1825  }
1830  if (constraintsBuilder_ == null) {
1831  constraints_ = java.util.Collections.emptyList();
1832  bitField0_ = (bitField0_ & ~0x00000002);
1833  onChanged();
1834  } else {
1835  constraintsBuilder_.clear();
1836  }
1837  return this;
1838  }
1842  public Builder removeConstraints(int index) {
1843  if (constraintsBuilder_ == null) {
1844  ensureConstraintsIsMutable();
1845  constraints_.remove(index);
1846  onChanged();
1847  } else {
1848  constraintsBuilder_.remove(index);
1849  }
1850  return this;
1851  }
1856  int index) {
1857  return getConstraintsFieldBuilder().getBuilder(index);
1858  }
1863  int index) {
1864  if (constraintsBuilder_ == null) {
1865  return constraints_.get(index); } else {
1866  return constraintsBuilder_.getMessageOrBuilder(index);
1867  }
1868  }
1872  public java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder>
1874  if (constraintsBuilder_ != null) {
1875  return constraintsBuilder_.getMessageOrBuilderList();
1876  } else {
1877  return java.util.Collections.unmodifiableList(constraints_);
1878  }
1879  }
1884  return getConstraintsFieldBuilder().addBuilder(
1886  }
1891  int index) {
1892  return getConstraintsFieldBuilder().addBuilder(
1894  }
1898  public java.util.List<com.google.ortools.sat.ConstraintProto.Builder>
1900  return getConstraintsFieldBuilder().getBuilderList();
1901  }
1902  private com.google.protobuf.RepeatedFieldBuilderV3<
1904  getConstraintsFieldBuilder() {
1905  if (constraintsBuilder_ == null) {
1906  constraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1908  constraints_,
1909  ((bitField0_ & 0x00000002) != 0),
1910  getParentForChildren(),
1911  isClean());
1912  constraints_ = null;
1913  }
1914  return constraintsBuilder_;
1915  }
1916 
1917  private com.google.ortools.sat.CpObjectiveProto objective_;
1918  private com.google.protobuf.SingleFieldBuilderV3<
1928  public boolean hasObjective() {
1929  return objectiveBuilder_ != null || objective_ != null;
1930  }
1940  if (objectiveBuilder_ == null) {
1941  return objective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
1942  } else {
1943  return objectiveBuilder_.getMessage();
1944  }
1945  }
1954  if (objectiveBuilder_ == null) {
1955  if (value == null) {
1956  throw new NullPointerException();
1957  }
1958  objective_ = value;
1959  onChanged();
1960  } else {
1961  objectiveBuilder_.setMessage(value);
1962  }
1963 
1964  return this;
1965  }
1974  com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
1975  if (objectiveBuilder_ == null) {
1976  objective_ = builderForValue.build();
1977  onChanged();
1978  } else {
1979  objectiveBuilder_.setMessage(builderForValue.build());
1980  }
1981 
1982  return this;
1983  }
1992  if (objectiveBuilder_ == null) {
1993  if (objective_ != null) {
1994  objective_ =
1996  } else {
1997  objective_ = value;
1998  }
1999  onChanged();
2000  } else {
2001  objectiveBuilder_.mergeFrom(value);
2002  }
2003 
2004  return this;
2005  }
2014  if (objectiveBuilder_ == null) {
2015  objective_ = null;
2016  onChanged();
2017  } else {
2018  objective_ = null;
2019  objectiveBuilder_ = null;
2020  }
2021 
2022  return this;
2023  }
2032 
2033  onChanged();
2034  return getObjectiveFieldBuilder().getBuilder();
2035  }
2044  if (objectiveBuilder_ != null) {
2045  return objectiveBuilder_.getMessageOrBuilder();
2046  } else {
2047  return objective_ == null ?
2049  }
2050  }
2058  private com.google.protobuf.SingleFieldBuilderV3<
2060  getObjectiveFieldBuilder() {
2061  if (objectiveBuilder_ == null) {
2062  objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2064  getObjective(),
2065  getParentForChildren(),
2066  isClean());
2067  objective_ = null;
2068  }
2069  return objectiveBuilder_;
2070  }
2071 
2072  private java.util.List<com.google.ortools.sat.DecisionStrategyProto> searchStrategy_ =
2073  java.util.Collections.emptyList();
2074  private void ensureSearchStrategyIsMutable() {
2075  if (!((bitField0_ & 0x00000004) != 0)) {
2076  searchStrategy_ = new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto>(searchStrategy_);
2077  bitField0_ |= 0x00000004;
2078  }
2079  }
2080 
2081  private com.google.protobuf.RepeatedFieldBuilderV3<
2083 
2100  if (searchStrategyBuilder_ == null) {
2101  return java.util.Collections.unmodifiableList(searchStrategy_);
2102  } else {
2103  return searchStrategyBuilder_.getMessageList();
2104  }
2105  }
2121  public int getSearchStrategyCount() {
2122  if (searchStrategyBuilder_ == null) {
2123  return searchStrategy_.size();
2124  } else {
2125  return searchStrategyBuilder_.getCount();
2126  }
2127  }
2144  if (searchStrategyBuilder_ == null) {
2145  return searchStrategy_.get(index);
2146  } else {
2147  return searchStrategyBuilder_.getMessage(index);
2148  }
2149  }
2166  int index, com.google.ortools.sat.DecisionStrategyProto value) {
2167  if (searchStrategyBuilder_ == null) {
2168  if (value == null) {
2169  throw new NullPointerException();
2170  }
2171  ensureSearchStrategyIsMutable();
2172  searchStrategy_.set(index, value);
2173  onChanged();
2174  } else {
2175  searchStrategyBuilder_.setMessage(index, value);
2176  }
2177  return this;
2178  }
2195  int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2196  if (searchStrategyBuilder_ == null) {
2197  ensureSearchStrategyIsMutable();
2198  searchStrategy_.set(index, builderForValue.build());
2199  onChanged();
2200  } else {
2201  searchStrategyBuilder_.setMessage(index, builderForValue.build());
2202  }
2203  return this;
2204  }
2221  if (searchStrategyBuilder_ == null) {
2222  if (value == null) {
2223  throw new NullPointerException();
2224  }
2225  ensureSearchStrategyIsMutable();
2226  searchStrategy_.add(value);
2227  onChanged();
2228  } else {
2229  searchStrategyBuilder_.addMessage(value);
2230  }
2231  return this;
2232  }
2249  int index, com.google.ortools.sat.DecisionStrategyProto value) {
2250  if (searchStrategyBuilder_ == null) {
2251  if (value == null) {
2252  throw new NullPointerException();
2253  }
2254  ensureSearchStrategyIsMutable();
2255  searchStrategy_.add(index, value);
2256  onChanged();
2257  } else {
2258  searchStrategyBuilder_.addMessage(index, value);
2259  }
2260  return this;
2261  }
2278  com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2279  if (searchStrategyBuilder_ == null) {
2280  ensureSearchStrategyIsMutable();
2281  searchStrategy_.add(builderForValue.build());
2282  onChanged();
2283  } else {
2284  searchStrategyBuilder_.addMessage(builderForValue.build());
2285  }
2286  return this;
2287  }
2304  int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2305  if (searchStrategyBuilder_ == null) {
2306  ensureSearchStrategyIsMutable();
2307  searchStrategy_.add(index, builderForValue.build());
2308  onChanged();
2309  } else {
2310  searchStrategyBuilder_.addMessage(index, builderForValue.build());
2311  }
2312  return this;
2313  }
2330  java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto> values) {
2331  if (searchStrategyBuilder_ == null) {
2332  ensureSearchStrategyIsMutable();
2333  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2334  values, searchStrategy_);
2335  onChanged();
2336  } else {
2337  searchStrategyBuilder_.addAllMessages(values);
2338  }
2339  return this;
2340  }
2357  if (searchStrategyBuilder_ == null) {
2358  searchStrategy_ = java.util.Collections.emptyList();
2359  bitField0_ = (bitField0_ & ~0x00000004);
2360  onChanged();
2361  } else {
2362  searchStrategyBuilder_.clear();
2363  }
2364  return this;
2365  }
2381  public Builder removeSearchStrategy(int index) {
2382  if (searchStrategyBuilder_ == null) {
2383  ensureSearchStrategyIsMutable();
2384  searchStrategy_.remove(index);
2385  onChanged();
2386  } else {
2387  searchStrategyBuilder_.remove(index);
2388  }
2389  return this;
2390  }
2407  int index) {
2408  return getSearchStrategyFieldBuilder().getBuilder(index);
2409  }
2426  int index) {
2427  if (searchStrategyBuilder_ == null) {
2428  return searchStrategy_.get(index); } else {
2429  return searchStrategyBuilder_.getMessageOrBuilder(index);
2430  }
2431  }
2447  public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
2449  if (searchStrategyBuilder_ != null) {
2450  return searchStrategyBuilder_.getMessageOrBuilderList();
2451  } else {
2452  return java.util.Collections.unmodifiableList(searchStrategy_);
2453  }
2454  }
2471  return getSearchStrategyFieldBuilder().addBuilder(
2473  }
2490  int index) {
2491  return getSearchStrategyFieldBuilder().addBuilder(
2493  }
2509  public java.util.List<com.google.ortools.sat.DecisionStrategyProto.Builder>
2511  return getSearchStrategyFieldBuilder().getBuilderList();
2512  }
2513  private com.google.protobuf.RepeatedFieldBuilderV3<
2515  getSearchStrategyFieldBuilder() {
2516  if (searchStrategyBuilder_ == null) {
2517  searchStrategyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2519  searchStrategy_,
2520  ((bitField0_ & 0x00000004) != 0),
2521  getParentForChildren(),
2522  isClean());
2523  searchStrategy_ = null;
2524  }
2525  return searchStrategyBuilder_;
2526  }
2527 
2528  private com.google.ortools.sat.PartialVariableAssignment solutionHint_;
2529  private com.google.protobuf.SingleFieldBuilderV3<
2547  public boolean hasSolutionHint() {
2548  return solutionHintBuilder_ != null || solutionHint_ != null;
2549  }
2567  if (solutionHintBuilder_ == null) {
2568  return solutionHint_ == null ? com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
2569  } else {
2570  return solutionHintBuilder_.getMessage();
2571  }
2572  }
2589  if (solutionHintBuilder_ == null) {
2590  if (value == null) {
2591  throw new NullPointerException();
2592  }
2593  solutionHint_ = value;
2594  onChanged();
2595  } else {
2596  solutionHintBuilder_.setMessage(value);
2597  }
2598 
2599  return this;
2600  }
2618  if (solutionHintBuilder_ == null) {
2619  solutionHint_ = builderForValue.build();
2620  onChanged();
2621  } else {
2622  solutionHintBuilder_.setMessage(builderForValue.build());
2623  }
2624 
2625  return this;
2626  }
2643  if (solutionHintBuilder_ == null) {
2644  if (solutionHint_ != null) {
2645  solutionHint_ =
2647  } else {
2648  solutionHint_ = value;
2649  }
2650  onChanged();
2651  } else {
2652  solutionHintBuilder_.mergeFrom(value);
2653  }
2654 
2655  return this;
2656  }
2673  if (solutionHintBuilder_ == null) {
2674  solutionHint_ = null;
2675  onChanged();
2676  } else {
2677  solutionHint_ = null;
2678  solutionHintBuilder_ = null;
2679  }
2680 
2681  return this;
2682  }
2699 
2700  onChanged();
2701  return getSolutionHintFieldBuilder().getBuilder();
2702  }
2719  if (solutionHintBuilder_ != null) {
2720  return solutionHintBuilder_.getMessageOrBuilder();
2721  } else {
2722  return solutionHint_ == null ?
2724  }
2725  }
2741  private com.google.protobuf.SingleFieldBuilderV3<
2743  getSolutionHintFieldBuilder() {
2744  if (solutionHintBuilder_ == null) {
2745  solutionHintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2747  getSolutionHint(),
2748  getParentForChildren(),
2749  isClean());
2750  solutionHint_ = null;
2751  }
2752  return solutionHintBuilder_;
2753  }
2754 
2755  private com.google.protobuf.Internal.IntList assumptions_ = emptyIntList();
2756  private void ensureAssumptionsIsMutable() {
2757  if (!((bitField0_ & 0x00000008) != 0)) {
2758  assumptions_ = mutableCopy(assumptions_);
2759  bitField0_ |= 0x00000008;
2760  }
2761  }
2780  public java.util.List<java.lang.Integer>
2782  return ((bitField0_ & 0x00000008) != 0) ?
2783  java.util.Collections.unmodifiableList(assumptions_) : assumptions_;
2784  }
2803  public int getAssumptionsCount() {
2804  return assumptions_.size();
2805  }
2825  public int getAssumptions(int index) {
2826  return assumptions_.getInt(index);
2827  }
2849  int index, int value) {
2850  ensureAssumptionsIsMutable();
2851  assumptions_.setInt(index, value);
2852  onChanged();
2853  return this;
2854  }
2874  public Builder addAssumptions(int value) {
2875  ensureAssumptionsIsMutable();
2876  assumptions_.addInt(value);
2877  onChanged();
2878  return this;
2879  }
2900  java.lang.Iterable<? extends java.lang.Integer> values) {
2901  ensureAssumptionsIsMutable();
2902  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2903  values, assumptions_);
2904  onChanged();
2905  return this;
2906  }
2926  assumptions_ = emptyIntList();
2927  bitField0_ = (bitField0_ & ~0x00000008);
2928  onChanged();
2929  return this;
2930  }
2931 
2932  private com.google.ortools.sat.SymmetryProto symmetry_;
2933  private com.google.protobuf.SingleFieldBuilderV3<
2946  public boolean hasSymmetry() {
2947  return symmetryBuilder_ != null || symmetry_ != null;
2948  }
2961  if (symmetryBuilder_ == null) {
2962  return symmetry_ == null ? com.google.ortools.sat.SymmetryProto.getDefaultInstance() : symmetry_;
2963  } else {
2964  return symmetryBuilder_.getMessage();
2965  }
2966  }
2978  if (symmetryBuilder_ == null) {
2979  if (value == null) {
2980  throw new NullPointerException();
2981  }
2982  symmetry_ = value;
2983  onChanged();
2984  } else {
2985  symmetryBuilder_.setMessage(value);
2986  }
2987 
2988  return this;
2989  }
3001  com.google.ortools.sat.SymmetryProto.Builder builderForValue) {
3002  if (symmetryBuilder_ == null) {
3003  symmetry_ = builderForValue.build();
3004  onChanged();
3005  } else {
3006  symmetryBuilder_.setMessage(builderForValue.build());
3007  }
3008 
3009  return this;
3010  }
3022  if (symmetryBuilder_ == null) {
3023  if (symmetry_ != null) {
3024  symmetry_ =
3026  } else {
3027  symmetry_ = value;
3028  }
3029  onChanged();
3030  } else {
3031  symmetryBuilder_.mergeFrom(value);
3032  }
3033 
3034  return this;
3035  }
3047  if (symmetryBuilder_ == null) {
3048  symmetry_ = null;
3049  onChanged();
3050  } else {
3051  symmetry_ = null;
3052  symmetryBuilder_ = null;
3053  }
3054 
3055  return this;
3056  }
3068 
3069  onChanged();
3070  return getSymmetryFieldBuilder().getBuilder();
3071  }
3083  if (symmetryBuilder_ != null) {
3084  return symmetryBuilder_.getMessageOrBuilder();
3085  } else {
3086  return symmetry_ == null ?
3088  }
3089  }
3100  private com.google.protobuf.SingleFieldBuilderV3<
3102  getSymmetryFieldBuilder() {
3103  if (symmetryBuilder_ == null) {
3104  symmetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
3106  getSymmetry(),
3107  getParentForChildren(),
3108  isClean());
3109  symmetry_ = null;
3110  }
3111  return symmetryBuilder_;
3112  }
3113  @java.lang.Override
3115  final com.google.protobuf.UnknownFieldSet unknownFields) {
3116  return super.setUnknownFields(unknownFields);
3117  }
3118 
3119  @java.lang.Override
3121  final com.google.protobuf.UnknownFieldSet unknownFields) {
3122  return super.mergeUnknownFields(unknownFields);
3123  }
3124 
3125 
3126  // @@protoc_insertion_point(builder_scope:operations_research.sat.CpModelProto)
3127  }
3128 
3129  // @@protoc_insertion_point(class_scope:operations_research.sat.CpModelProto)
3130  private static final com.google.ortools.sat.CpModelProto DEFAULT_INSTANCE;
3131  static {
3132  DEFAULT_INSTANCE = new com.google.ortools.sat.CpModelProto();
3133  }
3134 
3136  return DEFAULT_INSTANCE;
3137  }
3138 
3139  private static final com.google.protobuf.Parser<CpModelProto>
3140  PARSER = new com.google.protobuf.AbstractParser<CpModelProto>() {
3141  @java.lang.Override
3142  public CpModelProto parsePartialFrom(
3143  com.google.protobuf.CodedInputStream input,
3144  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3145  throws com.google.protobuf.InvalidProtocolBufferException {
3146  return new CpModelProto(input, extensionRegistry);
3147  }
3148  };
3149 
3150  public static com.google.protobuf.Parser<CpModelProto> parser() {
3151  return PARSER;
3152  }
3153 
3154  @java.lang.Override
3155  public com.google.protobuf.Parser<CpModelProto> getParserForType() {
3156  return PARSER;
3157  }
3158 
3159  @java.lang.Override
3161  return DEFAULT_INSTANCE;
3162  }
3163 
3164 }
3165 
.lang.Override java.lang.String getName()
static com.google.ortools.sat.CpModelProto parseFrom(java.io.InputStream input)
static com.google.ortools.sat.DecisionStrategyProto getDefaultInstance()
static com.google.ortools.sat.CpModelProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.ByteString getNameBytes()
Builder addSearchStrategy(int index, com.google.ortools.sat.DecisionStrategyProto value)
static com.google.ortools.sat.CpModelProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.CpModelProto getDefaultInstance()
static com.google.protobuf.Parser< PartialVariableAssignment > parser()
static com.google.ortools.sat.CpObjectiveProto getDefaultInstance()
Builder setSolutionHint(com.google.ortools.sat.PartialVariableAssignment value)
Builder clearConstraints()
repeated .operations_research.sat.ConstraintProto constraints = 3;
Builder setSearchStrategy(int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue)
Builder addVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
.lang.Override boolean hasSymmetry()
Builder addVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder addVariables(com.google.ortools.sat.IntegerVariableProto value)
.lang.Override java.util.List< java.lang.Integer > getAssumptionsList()
Builder addAllAssumptions(java.lang.Iterable<? extends java.lang.Integer > values)
static com.google.ortools.sat.CpModelProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setSymmetry(com.google.ortools.sat.SymmetryProto value)
Builder setSearchStrategy(int index, com.google.ortools.sat.DecisionStrategyProto value)
com.google.ortools.sat.ConstraintProtoOrBuilder getConstraintsOrBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override boolean hasObjective()
.lang.Override final boolean isInitialized()
static com.google.ortools.sat.PartialVariableAssignment getDefaultInstance()
Builder addConstraints(int index, com.google.ortools.sat.ConstraintProto value)
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override com.google.protobuf.ByteString getNameBytes()
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > getVariablesBuilderList()
Builder mergeObjective(com.google.ortools.sat.CpObjectiveProto value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override int getVariablesCount()
com.google.ortools.sat.SymmetryProto getSymmetry()
static com.google.ortools.sat.IntegerVariableProto getDefaultInstance()
.lang.Override Builder toBuilder()
Builder setVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
static com.google.ortools.sat.CpModelProto parseFrom(java.nio.ByteBuffer data)
com.google.ortools.sat.DecisionStrategyProtoOrBuilder getSearchStrategyOrBuilder(int index)
java.util.List< com.google.ortools.sat.ConstraintProto.Builder > getConstraintsBuilderList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
static com.google.ortools.sat.CpModelProto parseFrom(com.google.protobuf.ByteString data)
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getVariablesOrBuilderList()
com.google.ortools.sat.DecisionStrategyProto.Builder addSearchStrategyBuilder(int index)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Builder addConstraints(com.google.ortools.sat.ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
static com.google.protobuf.Parser< IntegerVariableProto > parser()
com.google.ortools.sat.IntegerVariableProto.Builder getVariablesBuilder(int index)
com.google.ortools.sat.PartialVariableAssignment.Builder getSolutionHintBuilder()
.lang.Override com.google.ortools.sat.CpModelProto buildPartial()
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.sat.SymmetryProto getDefaultInstance()
com.google.ortools.sat.ConstraintProto.Builder addConstraintsBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.IntegerVariableProto.Builder addVariablesBuilder(int index)
Builder mergeSolutionHint(com.google.ortools.sat.PartialVariableAssignment value)
Builder mergeFrom(com.google.ortools.sat.CpModelProto other)
com.google.ortools.sat.IntegerVariableProtoOrBuilder getVariablesOrBuilder(int index)
Builder addAllVariables(java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > values)
com.google.ortools.sat.DecisionStrategyProto.Builder getSearchStrategyBuilder(int index)
Builder setConstraints(int index, com.google.ortools.sat.ConstraintProto value)
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.ConstraintProto.Builder getConstraintsBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
int getConstraintsCount()
repeated .operations_research.sat.ConstraintProto constraints = 3;
static com.google.protobuf.Parser< CpObjectiveProto > parser()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override java.util.List< com.google.ortools.sat.DecisionStrategyProto > getSearchStrategyList()
static com.google.protobuf.Parser< SymmetryProto > parser()
Builder addConstraints(int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder > getSearchStrategyOrBuilderList()
.lang.Override int getConstraintsCount()
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override com.google.ortools.sat.CpObjectiveProto getObjective()
.lang.Override com.google.ortools.sat.CpObjectiveProto buildPartial()
.lang.Override com.google.ortools.sat.DecisionStrategyProtoOrBuilder getSearchStrategyOrBuilder(int index)
.lang.Override com.google.ortools.sat.SymmetryProtoOrBuilder getSymmetryOrBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.ortools.sat.ConstraintProtoOrBuilder getConstraintsOrBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
java.util.List< java.lang.Integer > getAssumptionsList()
.lang.Override int getSearchStrategyCount()
.lang.Override com.google.ortools.sat.IntegerVariableProto getVariables(int index)
static com.google.protobuf.Parser< CpModelProto > parser()
static com.google.protobuf.Parser< DecisionStrategyProto > parser()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.ortools.sat.CpModelProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.DecisionStrategyProto getSearchStrategy(int index)
Builder addAllConstraints(java.lang.Iterable<? extends com.google.ortools.sat.ConstraintProto > values)
repeated .operations_research.sat.ConstraintProto constraints = 3;
Builder addVariables(com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.CpObjectiveProtoOrBuilder getObjectiveOrBuilder()
Builder addConstraints(com.google.ortools.sat.ConstraintProto value)
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder addSearchStrategy(com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
Builder removeConstraints(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
static com.google.ortools.sat.CpModelProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override boolean equals(final java.lang.Object obj)
Builder setSymmetry(com.google.ortools.sat.SymmetryProto.Builder builderForValue)
.lang.Override com.google.ortools.sat.IntegerVariableProtoOrBuilder getVariablesOrBuilder(int index)
java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder > getConstraintsOrBuilderList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
.lang.Override com.google.ortools.sat.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder()
.lang.Override java.util.List< com.google.ortools.sat.IntegerVariableProto > getVariablesList()
com.google.ortools.sat.DecisionStrategyProto.Builder addSearchStrategyBuilder()
Builder addSearchStrategy(int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
.lang.Override com.google.protobuf.Parser< CpModelProto > getParserForType()
java.util.List< com.google.ortools.sat.IntegerVariableProto > getVariablesList()
.lang.Override int getSerializedSize()
.lang.Override com.google.ortools.sat.CpModelProto build()
java.util.List< com.google.ortools.sat.ConstraintProto > getConstraintsList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.CpObjectiveProto.Builder getObjectiveBuilder()
.lang.Override java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getVariablesOrBuilderList()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.sat.ConstraintProto getDefaultInstance()
Builder setVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
.lang.Override com.google.ortools.sat.CpModelProto getDefaultInstanceForType()
static Builder newBuilder(com.google.ortools.sat.CpModelProto prototype)
Builder setAssumptions(int index, int value)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override com.google.ortools.sat.DecisionStrategyProto getSearchStrategy(int index)
Builder addSearchStrategy(com.google.ortools.sat.DecisionStrategyProto value)
com.google.ortools.sat.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static final int SEARCH_STRATEGY_FIELD_NUMBER
Builder mergeSymmetry(com.google.ortools.sat.SymmetryProto value)
.lang.Override com.google.ortools.sat.SymmetryProto getSymmetry()
.lang.Override Builder newBuilderForType()
static com.google.ortools.sat.CpModelProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.sat.PartialVariableAssignment getSolutionHint()
com.google.ortools.sat.CpObjectiveProto getObjective()
Builder setSolutionHint(com.google.ortools.sat.PartialVariableAssignment.Builder builderForValue)
Builder addAllSearchStrategy(java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto > values)
com.google.ortools.sat.IntegerVariableProto getVariables(int index)
static com.google.ortools.sat.CpModelProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override java.util.List< com.google.ortools.sat.ConstraintProto > getConstraintsList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override Builder toBuilder()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder setName(java.lang.String value)
com.google.ortools.sat.ConstraintProto getConstraints(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.SymmetryProtoOrBuilder getSymmetryOrBuilder()
com.google.ortools.sat.IntegerVariableProto.Builder addVariablesBuilder()
com.google.ortools.sat.SymmetryProto.Builder getSymmetryBuilder()
java.util.List< com.google.ortools.sat.DecisionStrategyProto > getSearchStrategyList()
.lang.Override com.google.ortools.sat.PartialVariableAssignment getSolutionHint()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override com.google.ortools.sat.SymmetryProto buildPartial()
.lang.Override com.google.ortools.sat.ConstraintProto getConstraints(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.CpObjectiveProtoOrBuilder getObjectiveOrBuilder()
java.util.List< com.google.ortools.sat.DecisionStrategyProto.Builder > getSearchStrategyBuilderList()
java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder > getSearchStrategyOrBuilderList()
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
.lang.Override final boolean isInitialized()
Builder setObjective(com.google.ortools.sat.CpObjectiveProto.Builder builderForValue)
Builder setConstraints(int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
static com.google.ortools.sat.CpModelProto parseFrom(byte[] data)
.lang.Override java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder > getConstraintsOrBuilderList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.ConstraintProto.Builder addConstraintsBuilder()
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override com.google.ortools.sat.PartialVariableAssignment buildPartial()
Builder setNameBytes(com.google.protobuf.ByteString value)
.lang.Override boolean hasSolutionHint()
static com.google.protobuf.Parser< ConstraintProto > parser()
static com.google.ortools.sat.CpModelProto parseDelimitedFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.CpModelProto getDefaultInstanceForType()
Builder setObjective(com.google.ortools.sat.CpObjectiveProto value)