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: {
108  com.google.ortools.sat.PartialVariableAssignment.Builder subBuilder = null;
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  default: {
142  if (!parseUnknownField(
143  input, unknownFields, extensionRegistry, tag)) {
144  done = true;
145  }
146  break;
147  }
148  }
149  }
150  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
151  throw e.setUnfinishedMessage(this);
152  } catch (java.io.IOException e) {
153  throw new com.google.protobuf.InvalidProtocolBufferException(
154  e).setUnfinishedMessage(this);
155  } finally {
156  if (((mutable_bitField0_ & 0x00000001) != 0)) {
157  variables_ = java.util.Collections.unmodifiableList(variables_);
158  }
159  if (((mutable_bitField0_ & 0x00000002) != 0)) {
160  constraints_ = java.util.Collections.unmodifiableList(constraints_);
161  }
162  if (((mutable_bitField0_ & 0x00000004) != 0)) {
163  searchStrategy_ = java.util.Collections.unmodifiableList(searchStrategy_);
164  }
165  if (((mutable_bitField0_ & 0x00000008) != 0)) {
166  assumptions_.makeImmutable(); // C
167  }
168  this.unknownFields = unknownFields.build();
169  makeExtensionsImmutable();
170  }
171  }
172  public static final com.google.protobuf.Descriptors.Descriptor
174  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
175  }
176 
177  @java.lang.Override
178  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
180  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_fieldAccessorTable
181  .ensureFieldAccessorsInitialized(
182  com.google.ortools.sat.CpModelProto.class, com.google.ortools.sat.CpModelProto.Builder.class);
183  }
184 
185  public static final int NAME_FIELD_NUMBER = 1;
186  private volatile java.lang.Object name_;
195  @java.lang.Override
196  public java.lang.String getName() {
197  java.lang.Object ref = name_;
198  if (ref instanceof java.lang.String) {
199  return (java.lang.String) ref;
200  } else {
201  com.google.protobuf.ByteString bs =
202  (com.google.protobuf.ByteString) ref;
203  java.lang.String s = bs.toStringUtf8();
204  name_ = s;
205  return s;
206  }
207  }
216  @java.lang.Override
217  public com.google.protobuf.ByteString
219  java.lang.Object ref = name_;
220  if (ref instanceof java.lang.String) {
221  com.google.protobuf.ByteString b =
222  com.google.protobuf.ByteString.copyFromUtf8(
223  (java.lang.String) ref);
224  name_ = b;
225  return b;
226  } else {
227  return (com.google.protobuf.ByteString) ref;
228  }
229  }
230 
231  public static final int VARIABLES_FIELD_NUMBER = 2;
232  private java.util.List<com.google.ortools.sat.IntegerVariableProto> variables_;
240  @java.lang.Override
241  public java.util.List<com.google.ortools.sat.IntegerVariableProto> getVariablesList() {
242  return variables_;
243  }
251  @java.lang.Override
252  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
254  return variables_;
255  }
263  @java.lang.Override
264  public int getVariablesCount() {
265  return variables_.size();
266  }
274  @java.lang.Override
275  public com.google.ortools.sat.IntegerVariableProto getVariables(int index) {
276  return variables_.get(index);
277  }
285  @java.lang.Override
286  public com.google.ortools.sat.IntegerVariableProtoOrBuilder getVariablesOrBuilder(
287  int index) {
288  return variables_.get(index);
289  }
290 
291  public static final int CONSTRAINTS_FIELD_NUMBER = 3;
292  private java.util.List<com.google.ortools.sat.ConstraintProto> constraints_;
296  @java.lang.Override
297  public java.util.List<com.google.ortools.sat.ConstraintProto> getConstraintsList() {
298  return constraints_;
299  }
303  @java.lang.Override
304  public java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder>
306  return constraints_;
307  }
311  @java.lang.Override
312  public int getConstraintsCount() {
313  return constraints_.size();
314  }
318  @java.lang.Override
319  public com.google.ortools.sat.ConstraintProto getConstraints(int index) {
320  return constraints_.get(index);
321  }
325  @java.lang.Override
326  public com.google.ortools.sat.ConstraintProtoOrBuilder getConstraintsOrBuilder(
327  int index) {
328  return constraints_.get(index);
329  }
330 
331  public static final int OBJECTIVE_FIELD_NUMBER = 4;
332  private com.google.ortools.sat.CpObjectiveProto objective_;
341  @java.lang.Override
342  public boolean hasObjective() {
343  return objective_ != null;
344  }
353  @java.lang.Override
354  public com.google.ortools.sat.CpObjectiveProto getObjective() {
355  return objective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
356  }
364  @java.lang.Override
365  public com.google.ortools.sat.CpObjectiveProtoOrBuilder getObjectiveOrBuilder() {
366  return getObjective();
367  }
368 
369  public static final int SEARCH_STRATEGY_FIELD_NUMBER = 5;
370  private java.util.List<com.google.ortools.sat.DecisionStrategyProto> searchStrategy_;
386  @java.lang.Override
387  public java.util.List<com.google.ortools.sat.DecisionStrategyProto> getSearchStrategyList() {
388  return searchStrategy_;
389  }
405  @java.lang.Override
406  public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
408  return searchStrategy_;
409  }
425  @java.lang.Override
426  public int getSearchStrategyCount() {
427  return searchStrategy_.size();
428  }
444  @java.lang.Override
445  public com.google.ortools.sat.DecisionStrategyProto getSearchStrategy(int index) {
446  return searchStrategy_.get(index);
447  }
463  @java.lang.Override
464  public com.google.ortools.sat.DecisionStrategyProtoOrBuilder getSearchStrategyOrBuilder(
465  int index) {
466  return searchStrategy_.get(index);
467  }
468 
469  public static final int SOLUTION_HINT_FIELD_NUMBER = 6;
470  private com.google.ortools.sat.PartialVariableAssignment solutionHint_;
487  @java.lang.Override
488  public boolean hasSolutionHint() {
489  return solutionHint_ != null;
490  }
507  @java.lang.Override
508  public com.google.ortools.sat.PartialVariableAssignment getSolutionHint() {
509  return solutionHint_ == null ? com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
510  }
526  @java.lang.Override
527  public com.google.ortools.sat.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder() {
528  return getSolutionHint();
529  }
530 
531  public static final int ASSUMPTIONS_FIELD_NUMBER = 7;
532  private com.google.protobuf.Internal.IntList assumptions_;
551  @java.lang.Override
552  public java.util.List<java.lang.Integer>
554  return assumptions_;
555  }
574  public int getAssumptionsCount() {
575  return assumptions_.size();
576  }
596  public int getAssumptions(int index) {
597  return assumptions_.getInt(index);
598  }
599  private int assumptionsMemoizedSerializedSize = -1;
600 
601  private byte memoizedIsInitialized = -1;
602  @java.lang.Override
603  public final boolean isInitialized() {
604  byte isInitialized = memoizedIsInitialized;
605  if (isInitialized == 1) return true;
606  if (isInitialized == 0) return false;
607 
608  memoizedIsInitialized = 1;
609  return true;
610  }
611 
612  @java.lang.Override
613  public void writeTo(com.google.protobuf.CodedOutputStream output)
614  throws java.io.IOException {
616  if (!getNameBytes().isEmpty()) {
617  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
618  }
619  for (int i = 0; i < variables_.size(); i++) {
620  output.writeMessage(2, variables_.get(i));
621  }
622  for (int i = 0; i < constraints_.size(); i++) {
623  output.writeMessage(3, constraints_.get(i));
624  }
625  if (objective_ != null) {
626  output.writeMessage(4, getObjective());
627  }
628  for (int i = 0; i < searchStrategy_.size(); i++) {
629  output.writeMessage(5, searchStrategy_.get(i));
630  }
631  if (solutionHint_ != null) {
632  output.writeMessage(6, getSolutionHint());
633  }
634  if (getAssumptionsList().size() > 0) {
635  output.writeUInt32NoTag(58);
636  output.writeUInt32NoTag(assumptionsMemoizedSerializedSize);
637  }
638  for (int i = 0; i < assumptions_.size(); i++) {
639  output.writeInt32NoTag(assumptions_.getInt(i));
640  }
641  unknownFields.writeTo(output);
642  }
643 
644  @java.lang.Override
645  public int getSerializedSize() {
646  int size = memoizedSize;
647  if (size != -1) return size;
648 
649  size = 0;
650  if (!getNameBytes().isEmpty()) {
651  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
652  }
653  for (int i = 0; i < variables_.size(); i++) {
654  size += com.google.protobuf.CodedOutputStream
655  .computeMessageSize(2, variables_.get(i));
656  }
657  for (int i = 0; i < constraints_.size(); i++) {
658  size += com.google.protobuf.CodedOutputStream
659  .computeMessageSize(3, constraints_.get(i));
660  }
661  if (objective_ != null) {
662  size += com.google.protobuf.CodedOutputStream
663  .computeMessageSize(4, getObjective());
664  }
665  for (int i = 0; i < searchStrategy_.size(); i++) {
666  size += com.google.protobuf.CodedOutputStream
667  .computeMessageSize(5, searchStrategy_.get(i));
668  }
669  if (solutionHint_ != null) {
670  size += com.google.protobuf.CodedOutputStream
671  .computeMessageSize(6, getSolutionHint());
672  }
673  {
674  int dataSize = 0;
675  for (int i = 0; i < assumptions_.size(); i++) {
676  dataSize += com.google.protobuf.CodedOutputStream
677  .computeInt32SizeNoTag(assumptions_.getInt(i));
678  }
679  size += dataSize;
680  if (!getAssumptionsList().isEmpty()) {
681  size += 1;
682  size += com.google.protobuf.CodedOutputStream
683  .computeInt32SizeNoTag(dataSize);
684  }
685  assumptionsMemoizedSerializedSize = dataSize;
686  }
687  size += unknownFields.getSerializedSize();
688  memoizedSize = size;
689  return size;
690  }
691 
692  @java.lang.Override
693  public boolean equals(final java.lang.Object obj) {
694  if (obj == this) {
695  return true;
696  }
697  if (!(obj instanceof com.google.ortools.sat.CpModelProto)) {
698  return super.equals(obj);
699  }
700  com.google.ortools.sat.CpModelProto other = (com.google.ortools.sat.CpModelProto) obj;
701 
702  if (!getName()
703  .equals(other.getName())) return false;
704  if (!getVariablesList()
705  .equals(other.getVariablesList())) return false;
706  if (!getConstraintsList()
707  .equals(other.getConstraintsList())) return false;
708  if (hasObjective() != other.hasObjective()) return false;
709  if (hasObjective()) {
710  if (!getObjective()
711  .equals(other.getObjective())) return false;
712  }
713  if (!getSearchStrategyList()
714  .equals(other.getSearchStrategyList())) return false;
715  if (hasSolutionHint() != other.hasSolutionHint()) return false;
716  if (hasSolutionHint()) {
717  if (!getSolutionHint()
718  .equals(other.getSolutionHint())) return false;
719  }
720  if (!getAssumptionsList()
721  .equals(other.getAssumptionsList())) return false;
722  if (!unknownFields.equals(other.unknownFields)) return false;
723  return true;
724  }
725 
726  @java.lang.Override
727  public int hashCode() {
728  if (memoizedHashCode != 0) {
729  return memoizedHashCode;
730  }
731  int hash = 41;
732  hash = (19 * hash) + getDescriptor().hashCode();
733  hash = (37 * hash) + NAME_FIELD_NUMBER;
734  hash = (53 * hash) + getName().hashCode();
735  if (getVariablesCount() > 0) {
736  hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
737  hash = (53 * hash) + getVariablesList().hashCode();
738  }
739  if (getConstraintsCount() > 0) {
740  hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER;
741  hash = (53 * hash) + getConstraintsList().hashCode();
742  }
743  if (hasObjective()) {
744  hash = (37 * hash) + OBJECTIVE_FIELD_NUMBER;
745  hash = (53 * hash) + getObjective().hashCode();
746  }
747  if (getSearchStrategyCount() > 0) {
748  hash = (37 * hash) + SEARCH_STRATEGY_FIELD_NUMBER;
749  hash = (53 * hash) + getSearchStrategyList().hashCode();
750  }
751  if (hasSolutionHint()) {
752  hash = (37 * hash) + SOLUTION_HINT_FIELD_NUMBER;
753  hash = (53 * hash) + getSolutionHint().hashCode();
754  }
755  if (getAssumptionsCount() > 0) {
756  hash = (37 * hash) + ASSUMPTIONS_FIELD_NUMBER;
757  hash = (53 * hash) + getAssumptionsList().hashCode();
758  }
759  hash = (29 * hash) + unknownFields.hashCode();
760  memoizedHashCode = hash;
761  return hash;
762  }
763 
764  public static com.google.ortools.sat.CpModelProto parseFrom(
765  java.nio.ByteBuffer data)
766  throws com.google.protobuf.InvalidProtocolBufferException {
767  return PARSER.parseFrom(data);
768  }
769  public static com.google.ortools.sat.CpModelProto parseFrom(
770  java.nio.ByteBuffer data,
771  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
772  throws com.google.protobuf.InvalidProtocolBufferException {
773  return PARSER.parseFrom(data, extensionRegistry);
774  }
775  public static com.google.ortools.sat.CpModelProto parseFrom(
776  com.google.protobuf.ByteString data)
777  throws com.google.protobuf.InvalidProtocolBufferException {
778  return PARSER.parseFrom(data);
779  }
780  public static com.google.ortools.sat.CpModelProto parseFrom(
781  com.google.protobuf.ByteString data,
782  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
783  throws com.google.protobuf.InvalidProtocolBufferException {
784  return PARSER.parseFrom(data, extensionRegistry);
785  }
786  public static com.google.ortools.sat.CpModelProto parseFrom(byte[] data)
787  throws com.google.protobuf.InvalidProtocolBufferException {
788  return PARSER.parseFrom(data);
789  }
790  public static com.google.ortools.sat.CpModelProto parseFrom(
791  byte[] data,
792  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
793  throws com.google.protobuf.InvalidProtocolBufferException {
794  return PARSER.parseFrom(data, extensionRegistry);
795  }
796  public static com.google.ortools.sat.CpModelProto parseFrom(java.io.InputStream input)
797  throws java.io.IOException {
798  return com.google.protobuf.GeneratedMessageV3
799  .parseWithIOException(PARSER, input);
800  }
801  public static com.google.ortools.sat.CpModelProto parseFrom(
802  java.io.InputStream input,
803  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
804  throws java.io.IOException {
805  return com.google.protobuf.GeneratedMessageV3
806  .parseWithIOException(PARSER, input, extensionRegistry);
807  }
808  public static com.google.ortools.sat.CpModelProto parseDelimitedFrom(java.io.InputStream input)
809  throws java.io.IOException {
810  return com.google.protobuf.GeneratedMessageV3
811  .parseDelimitedWithIOException(PARSER, input);
812  }
813  public static com.google.ortools.sat.CpModelProto parseDelimitedFrom(
814  java.io.InputStream input,
815  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
816  throws java.io.IOException {
817  return com.google.protobuf.GeneratedMessageV3
818  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
819  }
820  public static com.google.ortools.sat.CpModelProto parseFrom(
821  com.google.protobuf.CodedInputStream input)
822  throws java.io.IOException {
823  return com.google.protobuf.GeneratedMessageV3
824  .parseWithIOException(PARSER, input);
825  }
826  public static com.google.ortools.sat.CpModelProto parseFrom(
827  com.google.protobuf.CodedInputStream input,
828  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
829  throws java.io.IOException {
830  return com.google.protobuf.GeneratedMessageV3
831  .parseWithIOException(PARSER, input, extensionRegistry);
832  }
833 
834  @java.lang.Override
835  public Builder newBuilderForType() { return newBuilder(); }
836  public static Builder newBuilder() {
837  return DEFAULT_INSTANCE.toBuilder();
838  }
839  public static Builder newBuilder(com.google.ortools.sat.CpModelProto prototype) {
840  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
841  }
842  @java.lang.Override
843  public Builder toBuilder() {
844  return this == DEFAULT_INSTANCE
845  ? new Builder() : new Builder().mergeFrom(this);
846  }
847 
848  @java.lang.Override
850  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
851  Builder builder = new Builder(parent);
852  return builder;
853  }
861  public static final class Builder extends
862  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
863  // @@protoc_insertion_point(builder_implements:operations_research.sat.CpModelProto)
864  com.google.ortools.sat.CpModelProtoOrBuilder {
865  public static final com.google.protobuf.Descriptors.Descriptor
867  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
868  }
869 
870  @java.lang.Override
871  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
873  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_fieldAccessorTable
874  .ensureFieldAccessorsInitialized(
875  com.google.ortools.sat.CpModelProto.class, com.google.ortools.sat.CpModelProto.Builder.class);
876  }
877 
878  // Construct using com.google.ortools.sat.CpModelProto.newBuilder()
879  private Builder() {
880  maybeForceBuilderInitialization();
881  }
882 
883  private Builder(
884  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
885  super(parent);
886  maybeForceBuilderInitialization();
887  }
888  private void maybeForceBuilderInitialization() {
889  if (com.google.protobuf.GeneratedMessageV3
890  .alwaysUseFieldBuilders) {
891  getVariablesFieldBuilder();
892  getConstraintsFieldBuilder();
893  getSearchStrategyFieldBuilder();
894  }
895  }
896  @java.lang.Override
897  public Builder clear() {
898  super.clear();
899  name_ = "";
900 
901  if (variablesBuilder_ == null) {
902  variables_ = java.util.Collections.emptyList();
903  bitField0_ = (bitField0_ & ~0x00000001);
904  } else {
905  variablesBuilder_.clear();
906  }
907  if (constraintsBuilder_ == null) {
908  constraints_ = java.util.Collections.emptyList();
909  bitField0_ = (bitField0_ & ~0x00000002);
910  } else {
911  constraintsBuilder_.clear();
912  }
913  if (objectiveBuilder_ == null) {
914  objective_ = null;
915  } else {
916  objective_ = null;
917  objectiveBuilder_ = null;
918  }
919  if (searchStrategyBuilder_ == null) {
920  searchStrategy_ = java.util.Collections.emptyList();
921  bitField0_ = (bitField0_ & ~0x00000004);
922  } else {
923  searchStrategyBuilder_.clear();
924  }
925  if (solutionHintBuilder_ == null) {
926  solutionHint_ = null;
927  } else {
928  solutionHint_ = null;
929  solutionHintBuilder_ = null;
930  }
931  assumptions_ = emptyIntList();
932  bitField0_ = (bitField0_ & ~0x00000008);
933  return this;
934  }
935 
936  @java.lang.Override
937  public com.google.protobuf.Descriptors.Descriptor
939  return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CpModelProto_descriptor;
940  }
941 
942  @java.lang.Override
943  public com.google.ortools.sat.CpModelProto getDefaultInstanceForType() {
944  return com.google.ortools.sat.CpModelProto.getDefaultInstance();
945  }
946 
947  @java.lang.Override
948  public com.google.ortools.sat.CpModelProto build() {
949  com.google.ortools.sat.CpModelProto result = buildPartial();
950  if (!result.isInitialized()) {
951  throw newUninitializedMessageException(result);
952  }
953  return result;
954  }
955 
956  @java.lang.Override
957  public com.google.ortools.sat.CpModelProto buildPartial() {
958  com.google.ortools.sat.CpModelProto result = new com.google.ortools.sat.CpModelProto(this);
959  int from_bitField0_ = bitField0_;
960  result.name_ = name_;
961  if (variablesBuilder_ == null) {
962  if (((bitField0_ & 0x00000001) != 0)) {
963  variables_ = java.util.Collections.unmodifiableList(variables_);
964  bitField0_ = (bitField0_ & ~0x00000001);
965  }
966  result.variables_ = variables_;
967  } else {
968  result.variables_ = variablesBuilder_.build();
969  }
970  if (constraintsBuilder_ == null) {
971  if (((bitField0_ & 0x00000002) != 0)) {
972  constraints_ = java.util.Collections.unmodifiableList(constraints_);
973  bitField0_ = (bitField0_ & ~0x00000002);
974  }
975  result.constraints_ = constraints_;
976  } else {
977  result.constraints_ = constraintsBuilder_.build();
978  }
979  if (objectiveBuilder_ == null) {
980  result.objective_ = objective_;
981  } else {
982  result.objective_ = objectiveBuilder_.build();
983  }
984  if (searchStrategyBuilder_ == null) {
985  if (((bitField0_ & 0x00000004) != 0)) {
986  searchStrategy_ = java.util.Collections.unmodifiableList(searchStrategy_);
987  bitField0_ = (bitField0_ & ~0x00000004);
988  }
989  result.searchStrategy_ = searchStrategy_;
990  } else {
991  result.searchStrategy_ = searchStrategyBuilder_.build();
992  }
993  if (solutionHintBuilder_ == null) {
994  result.solutionHint_ = solutionHint_;
995  } else {
996  result.solutionHint_ = solutionHintBuilder_.build();
997  }
998  if (((bitField0_ & 0x00000008) != 0)) {
999  assumptions_.makeImmutable();
1000  bitField0_ = (bitField0_ & ~0x00000008);
1001  }
1002  result.assumptions_ = assumptions_;
1003  onBuilt();
1004  return result;
1005  }
1006 
1007  @java.lang.Override
1008  public Builder clone() {
1009  return super.clone();
1010  }
1011  @java.lang.Override
1013  com.google.protobuf.Descriptors.FieldDescriptor field,
1014  java.lang.Object value) {
1015  return super.setField(field, value);
1016  }
1017  @java.lang.Override
1019  com.google.protobuf.Descriptors.FieldDescriptor field) {
1020  return super.clearField(field);
1021  }
1022  @java.lang.Override
1024  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1025  return super.clearOneof(oneof);
1026  }
1027  @java.lang.Override
1029  com.google.protobuf.Descriptors.FieldDescriptor field,
1030  int index, java.lang.Object value) {
1031  return super.setRepeatedField(field, index, value);
1032  }
1033  @java.lang.Override
1035  com.google.protobuf.Descriptors.FieldDescriptor field,
1036  java.lang.Object value) {
1037  return super.addRepeatedField(field, value);
1038  }
1039  @java.lang.Override
1040  public Builder mergeFrom(com.google.protobuf.Message other) {
1041  if (other instanceof com.google.ortools.sat.CpModelProto) {
1042  return mergeFrom((com.google.ortools.sat.CpModelProto)other);
1043  } else {
1044  super.mergeFrom(other);
1045  return this;
1046  }
1047  }
1048 
1049  public Builder mergeFrom(com.google.ortools.sat.CpModelProto other) {
1050  if (other == com.google.ortools.sat.CpModelProto.getDefaultInstance()) return this;
1051  if (!other.getName().isEmpty()) {
1052  name_ = other.name_;
1053  onChanged();
1054  }
1055  if (variablesBuilder_ == null) {
1056  if (!other.variables_.isEmpty()) {
1057  if (variables_.isEmpty()) {
1058  variables_ = other.variables_;
1059  bitField0_ = (bitField0_ & ~0x00000001);
1060  } else {
1061  ensureVariablesIsMutable();
1062  variables_.addAll(other.variables_);
1063  }
1064  onChanged();
1065  }
1066  } else {
1067  if (!other.variables_.isEmpty()) {
1068  if (variablesBuilder_.isEmpty()) {
1069  variablesBuilder_.dispose();
1070  variablesBuilder_ = null;
1071  variables_ = other.variables_;
1072  bitField0_ = (bitField0_ & ~0x00000001);
1073  variablesBuilder_ =
1074  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1075  getVariablesFieldBuilder() : null;
1076  } else {
1077  variablesBuilder_.addAllMessages(other.variables_);
1078  }
1079  }
1080  }
1081  if (constraintsBuilder_ == null) {
1082  if (!other.constraints_.isEmpty()) {
1083  if (constraints_.isEmpty()) {
1084  constraints_ = other.constraints_;
1085  bitField0_ = (bitField0_ & ~0x00000002);
1086  } else {
1087  ensureConstraintsIsMutable();
1088  constraints_.addAll(other.constraints_);
1089  }
1090  onChanged();
1091  }
1092  } else {
1093  if (!other.constraints_.isEmpty()) {
1094  if (constraintsBuilder_.isEmpty()) {
1095  constraintsBuilder_.dispose();
1096  constraintsBuilder_ = null;
1097  constraints_ = other.constraints_;
1098  bitField0_ = (bitField0_ & ~0x00000002);
1099  constraintsBuilder_ =
1100  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1101  getConstraintsFieldBuilder() : null;
1102  } else {
1103  constraintsBuilder_.addAllMessages(other.constraints_);
1104  }
1105  }
1106  }
1107  if (other.hasObjective()) {
1108  mergeObjective(other.getObjective());
1109  }
1110  if (searchStrategyBuilder_ == null) {
1111  if (!other.searchStrategy_.isEmpty()) {
1112  if (searchStrategy_.isEmpty()) {
1113  searchStrategy_ = other.searchStrategy_;
1114  bitField0_ = (bitField0_ & ~0x00000004);
1115  } else {
1116  ensureSearchStrategyIsMutable();
1117  searchStrategy_.addAll(other.searchStrategy_);
1118  }
1119  onChanged();
1120  }
1121  } else {
1122  if (!other.searchStrategy_.isEmpty()) {
1123  if (searchStrategyBuilder_.isEmpty()) {
1124  searchStrategyBuilder_.dispose();
1125  searchStrategyBuilder_ = null;
1126  searchStrategy_ = other.searchStrategy_;
1127  bitField0_ = (bitField0_ & ~0x00000004);
1128  searchStrategyBuilder_ =
1129  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1130  getSearchStrategyFieldBuilder() : null;
1131  } else {
1132  searchStrategyBuilder_.addAllMessages(other.searchStrategy_);
1133  }
1134  }
1135  }
1136  if (other.hasSolutionHint()) {
1137  mergeSolutionHint(other.getSolutionHint());
1138  }
1139  if (!other.assumptions_.isEmpty()) {
1140  if (assumptions_.isEmpty()) {
1141  assumptions_ = other.assumptions_;
1142  bitField0_ = (bitField0_ & ~0x00000008);
1143  } else {
1144  ensureAssumptionsIsMutable();
1145  assumptions_.addAll(other.assumptions_);
1146  }
1147  onChanged();
1148  }
1149  this.mergeUnknownFields(other.unknownFields);
1150  onChanged();
1151  return this;
1152  }
1153 
1154  @java.lang.Override
1155  public final boolean isInitialized() {
1156  return true;
1157  }
1158 
1159  @java.lang.Override
1161  com.google.protobuf.CodedInputStream input,
1162  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1163  throws java.io.IOException {
1164  com.google.ortools.sat.CpModelProto parsedMessage = null;
1165  try {
1166  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1167  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1168  parsedMessage = (com.google.ortools.sat.CpModelProto) e.getUnfinishedMessage();
1169  throw e.unwrapIOException();
1170  } finally {
1171  if (parsedMessage != null) {
1172  mergeFrom(parsedMessage);
1173  }
1174  }
1175  return this;
1176  }
1177  private int bitField0_;
1178 
1179  private java.lang.Object name_ = "";
1188  public java.lang.String getName() {
1189  java.lang.Object ref = name_;
1190  if (!(ref instanceof java.lang.String)) {
1191  com.google.protobuf.ByteString bs =
1192  (com.google.protobuf.ByteString) ref;
1193  java.lang.String s = bs.toStringUtf8();
1194  name_ = s;
1195  return s;
1196  } else {
1197  return (java.lang.String) ref;
1198  }
1199  }
1208  public com.google.protobuf.ByteString
1210  java.lang.Object ref = name_;
1211  if (ref instanceof String) {
1212  com.google.protobuf.ByteString b =
1213  com.google.protobuf.ByteString.copyFromUtf8(
1214  (java.lang.String) ref);
1215  name_ = b;
1216  return b;
1217  } else {
1218  return (com.google.protobuf.ByteString) ref;
1219  }
1220  }
1231  java.lang.String value) {
1232  if (value == null) {
1233  throw new NullPointerException();
1234  }
1235 
1236  name_ = value;
1237  onChanged();
1238  return this;
1239  }
1248  public Builder clearName() {
1249 
1250  name_ = getDefaultInstance().getName();
1251  onChanged();
1252  return this;
1253  }
1264  com.google.protobuf.ByteString value) {
1265  if (value == null) {
1266  throw new NullPointerException();
1267  }
1268  checkByteStringIsUtf8(value);
1269 
1270  name_ = value;
1271  onChanged();
1272  return this;
1273  }
1274 
1275  private java.util.List<com.google.ortools.sat.IntegerVariableProto> variables_ =
1276  java.util.Collections.emptyList();
1277  private void ensureVariablesIsMutable() {
1278  if (!((bitField0_ & 0x00000001) != 0)) {
1279  variables_ = new java.util.ArrayList<com.google.ortools.sat.IntegerVariableProto>(variables_);
1280  bitField0_ |= 0x00000001;
1281  }
1282  }
1283 
1284  private com.google.protobuf.RepeatedFieldBuilderV3<
1285  com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder> variablesBuilder_;
1286 
1294  public java.util.List<com.google.ortools.sat.IntegerVariableProto> getVariablesList() {
1295  if (variablesBuilder_ == null) {
1296  return java.util.Collections.unmodifiableList(variables_);
1297  } else {
1298  return variablesBuilder_.getMessageList();
1299  }
1300  }
1308  public int getVariablesCount() {
1309  if (variablesBuilder_ == null) {
1310  return variables_.size();
1311  } else {
1312  return variablesBuilder_.getCount();
1313  }
1314  }
1322  public com.google.ortools.sat.IntegerVariableProto getVariables(int index) {
1323  if (variablesBuilder_ == null) {
1324  return variables_.get(index);
1325  } else {
1326  return variablesBuilder_.getMessage(index);
1327  }
1328  }
1337  int index, com.google.ortools.sat.IntegerVariableProto value) {
1338  if (variablesBuilder_ == null) {
1339  if (value == null) {
1340  throw new NullPointerException();
1341  }
1342  ensureVariablesIsMutable();
1343  variables_.set(index, value);
1344  onChanged();
1345  } else {
1346  variablesBuilder_.setMessage(index, value);
1347  }
1348  return this;
1349  }
1358  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1359  if (variablesBuilder_ == null) {
1360  ensureVariablesIsMutable();
1361  variables_.set(index, builderForValue.build());
1362  onChanged();
1363  } else {
1364  variablesBuilder_.setMessage(index, builderForValue.build());
1365  }
1366  return this;
1367  }
1375  public Builder addVariables(com.google.ortools.sat.IntegerVariableProto value) {
1376  if (variablesBuilder_ == null) {
1377  if (value == null) {
1378  throw new NullPointerException();
1379  }
1380  ensureVariablesIsMutable();
1381  variables_.add(value);
1382  onChanged();
1383  } else {
1384  variablesBuilder_.addMessage(value);
1385  }
1386  return this;
1387  }
1396  int index, com.google.ortools.sat.IntegerVariableProto value) {
1397  if (variablesBuilder_ == null) {
1398  if (value == null) {
1399  throw new NullPointerException();
1400  }
1401  ensureVariablesIsMutable();
1402  variables_.add(index, value);
1403  onChanged();
1404  } else {
1405  variablesBuilder_.addMessage(index, value);
1406  }
1407  return this;
1408  }
1417  com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1418  if (variablesBuilder_ == null) {
1419  ensureVariablesIsMutable();
1420  variables_.add(builderForValue.build());
1421  onChanged();
1422  } else {
1423  variablesBuilder_.addMessage(builderForValue.build());
1424  }
1425  return this;
1426  }
1435  int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue) {
1436  if (variablesBuilder_ == null) {
1437  ensureVariablesIsMutable();
1438  variables_.add(index, builderForValue.build());
1439  onChanged();
1440  } else {
1441  variablesBuilder_.addMessage(index, builderForValue.build());
1442  }
1443  return this;
1444  }
1453  java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto> values) {
1454  if (variablesBuilder_ == null) {
1455  ensureVariablesIsMutable();
1456  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1457  values, variables_);
1458  onChanged();
1459  } else {
1460  variablesBuilder_.addAllMessages(values);
1461  }
1462  return this;
1463  }
1472  if (variablesBuilder_ == null) {
1473  variables_ = java.util.Collections.emptyList();
1474  bitField0_ = (bitField0_ & ~0x00000001);
1475  onChanged();
1476  } else {
1477  variablesBuilder_.clear();
1478  }
1479  return this;
1480  }
1488  public Builder removeVariables(int index) {
1489  if (variablesBuilder_ == null) {
1490  ensureVariablesIsMutable();
1491  variables_.remove(index);
1492  onChanged();
1493  } else {
1494  variablesBuilder_.remove(index);
1495  }
1496  return this;
1497  }
1505  public com.google.ortools.sat.IntegerVariableProto.Builder getVariablesBuilder(
1506  int index) {
1507  return getVariablesFieldBuilder().getBuilder(index);
1508  }
1516  public com.google.ortools.sat.IntegerVariableProtoOrBuilder getVariablesOrBuilder(
1517  int index) {
1518  if (variablesBuilder_ == null) {
1519  return variables_.get(index); } else {
1520  return variablesBuilder_.getMessageOrBuilder(index);
1521  }
1522  }
1530  public java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder>
1532  if (variablesBuilder_ != null) {
1533  return variablesBuilder_.getMessageOrBuilderList();
1534  } else {
1535  return java.util.Collections.unmodifiableList(variables_);
1536  }
1537  }
1545  public com.google.ortools.sat.IntegerVariableProto.Builder addVariablesBuilder() {
1546  return getVariablesFieldBuilder().addBuilder(
1547  com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
1548  }
1556  public com.google.ortools.sat.IntegerVariableProto.Builder addVariablesBuilder(
1557  int index) {
1558  return getVariablesFieldBuilder().addBuilder(
1559  index, com.google.ortools.sat.IntegerVariableProto.getDefaultInstance());
1560  }
1568  public java.util.List<com.google.ortools.sat.IntegerVariableProto.Builder>
1570  return getVariablesFieldBuilder().getBuilderList();
1571  }
1572  private com.google.protobuf.RepeatedFieldBuilderV3<
1573  com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>
1574  getVariablesFieldBuilder() {
1575  if (variablesBuilder_ == null) {
1576  variablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1577  com.google.ortools.sat.IntegerVariableProto, com.google.ortools.sat.IntegerVariableProto.Builder, com.google.ortools.sat.IntegerVariableProtoOrBuilder>(
1578  variables_,
1579  ((bitField0_ & 0x00000001) != 0),
1580  getParentForChildren(),
1581  isClean());
1582  variables_ = null;
1583  }
1584  return variablesBuilder_;
1585  }
1586 
1587  private java.util.List<com.google.ortools.sat.ConstraintProto> constraints_ =
1588  java.util.Collections.emptyList();
1589  private void ensureConstraintsIsMutable() {
1590  if (!((bitField0_ & 0x00000002) != 0)) {
1591  constraints_ = new java.util.ArrayList<com.google.ortools.sat.ConstraintProto>(constraints_);
1592  bitField0_ |= 0x00000002;
1593  }
1594  }
1595 
1596  private com.google.protobuf.RepeatedFieldBuilderV3<
1597  com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder> constraintsBuilder_;
1598 
1602  public java.util.List<com.google.ortools.sat.ConstraintProto> getConstraintsList() {
1603  if (constraintsBuilder_ == null) {
1604  return java.util.Collections.unmodifiableList(constraints_);
1605  } else {
1606  return constraintsBuilder_.getMessageList();
1607  }
1608  }
1612  public int getConstraintsCount() {
1613  if (constraintsBuilder_ == null) {
1614  return constraints_.size();
1615  } else {
1616  return constraintsBuilder_.getCount();
1617  }
1618  }
1622  public com.google.ortools.sat.ConstraintProto getConstraints(int index) {
1623  if (constraintsBuilder_ == null) {
1624  return constraints_.get(index);
1625  } else {
1626  return constraintsBuilder_.getMessage(index);
1627  }
1628  }
1633  int index, com.google.ortools.sat.ConstraintProto value) {
1634  if (constraintsBuilder_ == null) {
1635  if (value == null) {
1636  throw new NullPointerException();
1637  }
1638  ensureConstraintsIsMutable();
1639  constraints_.set(index, value);
1640  onChanged();
1641  } else {
1642  constraintsBuilder_.setMessage(index, value);
1643  }
1644  return this;
1645  }
1650  int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1651  if (constraintsBuilder_ == null) {
1652  ensureConstraintsIsMutable();
1653  constraints_.set(index, builderForValue.build());
1654  onChanged();
1655  } else {
1656  constraintsBuilder_.setMessage(index, builderForValue.build());
1657  }
1658  return this;
1659  }
1663  public Builder addConstraints(com.google.ortools.sat.ConstraintProto value) {
1664  if (constraintsBuilder_ == null) {
1665  if (value == null) {
1666  throw new NullPointerException();
1667  }
1668  ensureConstraintsIsMutable();
1669  constraints_.add(value);
1670  onChanged();
1671  } else {
1672  constraintsBuilder_.addMessage(value);
1673  }
1674  return this;
1675  }
1680  int index, com.google.ortools.sat.ConstraintProto value) {
1681  if (constraintsBuilder_ == null) {
1682  if (value == null) {
1683  throw new NullPointerException();
1684  }
1685  ensureConstraintsIsMutable();
1686  constraints_.add(index, value);
1687  onChanged();
1688  } else {
1689  constraintsBuilder_.addMessage(index, value);
1690  }
1691  return this;
1692  }
1697  com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1698  if (constraintsBuilder_ == null) {
1699  ensureConstraintsIsMutable();
1700  constraints_.add(builderForValue.build());
1701  onChanged();
1702  } else {
1703  constraintsBuilder_.addMessage(builderForValue.build());
1704  }
1705  return this;
1706  }
1711  int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue) {
1712  if (constraintsBuilder_ == null) {
1713  ensureConstraintsIsMutable();
1714  constraints_.add(index, builderForValue.build());
1715  onChanged();
1716  } else {
1717  constraintsBuilder_.addMessage(index, builderForValue.build());
1718  }
1719  return this;
1720  }
1725  java.lang.Iterable<? extends com.google.ortools.sat.ConstraintProto> values) {
1726  if (constraintsBuilder_ == null) {
1727  ensureConstraintsIsMutable();
1728  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1729  values, constraints_);
1730  onChanged();
1731  } else {
1732  constraintsBuilder_.addAllMessages(values);
1733  }
1734  return this;
1735  }
1740  if (constraintsBuilder_ == null) {
1741  constraints_ = java.util.Collections.emptyList();
1742  bitField0_ = (bitField0_ & ~0x00000002);
1743  onChanged();
1744  } else {
1745  constraintsBuilder_.clear();
1746  }
1747  return this;
1748  }
1752  public Builder removeConstraints(int index) {
1753  if (constraintsBuilder_ == null) {
1754  ensureConstraintsIsMutable();
1755  constraints_.remove(index);
1756  onChanged();
1757  } else {
1758  constraintsBuilder_.remove(index);
1759  }
1760  return this;
1761  }
1765  public com.google.ortools.sat.ConstraintProto.Builder getConstraintsBuilder(
1766  int index) {
1767  return getConstraintsFieldBuilder().getBuilder(index);
1768  }
1772  public com.google.ortools.sat.ConstraintProtoOrBuilder getConstraintsOrBuilder(
1773  int index) {
1774  if (constraintsBuilder_ == null) {
1775  return constraints_.get(index); } else {
1776  return constraintsBuilder_.getMessageOrBuilder(index);
1777  }
1778  }
1782  public java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder>
1784  if (constraintsBuilder_ != null) {
1785  return constraintsBuilder_.getMessageOrBuilderList();
1786  } else {
1787  return java.util.Collections.unmodifiableList(constraints_);
1788  }
1789  }
1793  public com.google.ortools.sat.ConstraintProto.Builder addConstraintsBuilder() {
1794  return getConstraintsFieldBuilder().addBuilder(
1795  com.google.ortools.sat.ConstraintProto.getDefaultInstance());
1796  }
1800  public com.google.ortools.sat.ConstraintProto.Builder addConstraintsBuilder(
1801  int index) {
1802  return getConstraintsFieldBuilder().addBuilder(
1803  index, com.google.ortools.sat.ConstraintProto.getDefaultInstance());
1804  }
1808  public java.util.List<com.google.ortools.sat.ConstraintProto.Builder>
1810  return getConstraintsFieldBuilder().getBuilderList();
1811  }
1812  private com.google.protobuf.RepeatedFieldBuilderV3<
1813  com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder>
1814  getConstraintsFieldBuilder() {
1815  if (constraintsBuilder_ == null) {
1816  constraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1817  com.google.ortools.sat.ConstraintProto, com.google.ortools.sat.ConstraintProto.Builder, com.google.ortools.sat.ConstraintProtoOrBuilder>(
1818  constraints_,
1819  ((bitField0_ & 0x00000002) != 0),
1820  getParentForChildren(),
1821  isClean());
1822  constraints_ = null;
1823  }
1824  return constraintsBuilder_;
1825  }
1826 
1827  private com.google.ortools.sat.CpObjectiveProto objective_;
1828  private com.google.protobuf.SingleFieldBuilderV3<
1829  com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder> objectiveBuilder_;
1838  public boolean hasObjective() {
1839  return objectiveBuilder_ != null || objective_ != null;
1840  }
1849  public com.google.ortools.sat.CpObjectiveProto getObjective() {
1850  if (objectiveBuilder_ == null) {
1851  return objective_ == null ? com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
1852  } else {
1853  return objectiveBuilder_.getMessage();
1854  }
1855  }
1863  public Builder setObjective(com.google.ortools.sat.CpObjectiveProto value) {
1864  if (objectiveBuilder_ == null) {
1865  if (value == null) {
1866  throw new NullPointerException();
1867  }
1868  objective_ = value;
1869  onChanged();
1870  } else {
1871  objectiveBuilder_.setMessage(value);
1872  }
1873 
1874  return this;
1875  }
1884  com.google.ortools.sat.CpObjectiveProto.Builder builderForValue) {
1885  if (objectiveBuilder_ == null) {
1886  objective_ = builderForValue.build();
1887  onChanged();
1888  } else {
1889  objectiveBuilder_.setMessage(builderForValue.build());
1890  }
1891 
1892  return this;
1893  }
1901  public Builder mergeObjective(com.google.ortools.sat.CpObjectiveProto value) {
1902  if (objectiveBuilder_ == null) {
1903  if (objective_ != null) {
1904  objective_ =
1905  com.google.ortools.sat.CpObjectiveProto.newBuilder(objective_).mergeFrom(value).buildPartial();
1906  } else {
1907  objective_ = value;
1908  }
1909  onChanged();
1910  } else {
1911  objectiveBuilder_.mergeFrom(value);
1912  }
1913 
1914  return this;
1915  }
1924  if (objectiveBuilder_ == null) {
1925  objective_ = null;
1926  onChanged();
1927  } else {
1928  objective_ = null;
1929  objectiveBuilder_ = null;
1930  }
1931 
1932  return this;
1933  }
1941  public com.google.ortools.sat.CpObjectiveProto.Builder getObjectiveBuilder() {
1942 
1943  onChanged();
1944  return getObjectiveFieldBuilder().getBuilder();
1945  }
1953  public com.google.ortools.sat.CpObjectiveProtoOrBuilder getObjectiveOrBuilder() {
1954  if (objectiveBuilder_ != null) {
1955  return objectiveBuilder_.getMessageOrBuilder();
1956  } else {
1957  return objective_ == null ?
1958  com.google.ortools.sat.CpObjectiveProto.getDefaultInstance() : objective_;
1959  }
1960  }
1968  private com.google.protobuf.SingleFieldBuilderV3<
1969  com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>
1970  getObjectiveFieldBuilder() {
1971  if (objectiveBuilder_ == null) {
1972  objectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
1973  com.google.ortools.sat.CpObjectiveProto, com.google.ortools.sat.CpObjectiveProto.Builder, com.google.ortools.sat.CpObjectiveProtoOrBuilder>(
1974  getObjective(),
1975  getParentForChildren(),
1976  isClean());
1977  objective_ = null;
1978  }
1979  return objectiveBuilder_;
1980  }
1981 
1982  private java.util.List<com.google.ortools.sat.DecisionStrategyProto> searchStrategy_ =
1983  java.util.Collections.emptyList();
1984  private void ensureSearchStrategyIsMutable() {
1985  if (!((bitField0_ & 0x00000004) != 0)) {
1986  searchStrategy_ = new java.util.ArrayList<com.google.ortools.sat.DecisionStrategyProto>(searchStrategy_);
1987  bitField0_ |= 0x00000004;
1988  }
1989  }
1990 
1991  private com.google.protobuf.RepeatedFieldBuilderV3<
1992  com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder> searchStrategyBuilder_;
1993 
2009  public java.util.List<com.google.ortools.sat.DecisionStrategyProto> getSearchStrategyList() {
2010  if (searchStrategyBuilder_ == null) {
2011  return java.util.Collections.unmodifiableList(searchStrategy_);
2012  } else {
2013  return searchStrategyBuilder_.getMessageList();
2014  }
2015  }
2031  public int getSearchStrategyCount() {
2032  if (searchStrategyBuilder_ == null) {
2033  return searchStrategy_.size();
2034  } else {
2035  return searchStrategyBuilder_.getCount();
2036  }
2037  }
2053  public com.google.ortools.sat.DecisionStrategyProto getSearchStrategy(int index) {
2054  if (searchStrategyBuilder_ == null) {
2055  return searchStrategy_.get(index);
2056  } else {
2057  return searchStrategyBuilder_.getMessage(index);
2058  }
2059  }
2076  int index, com.google.ortools.sat.DecisionStrategyProto value) {
2077  if (searchStrategyBuilder_ == null) {
2078  if (value == null) {
2079  throw new NullPointerException();
2080  }
2081  ensureSearchStrategyIsMutable();
2082  searchStrategy_.set(index, value);
2083  onChanged();
2084  } else {
2085  searchStrategyBuilder_.setMessage(index, value);
2086  }
2087  return this;
2088  }
2105  int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2106  if (searchStrategyBuilder_ == null) {
2107  ensureSearchStrategyIsMutable();
2108  searchStrategy_.set(index, builderForValue.build());
2109  onChanged();
2110  } else {
2111  searchStrategyBuilder_.setMessage(index, builderForValue.build());
2112  }
2113  return this;
2114  }
2130  public Builder addSearchStrategy(com.google.ortools.sat.DecisionStrategyProto value) {
2131  if (searchStrategyBuilder_ == null) {
2132  if (value == null) {
2133  throw new NullPointerException();
2134  }
2135  ensureSearchStrategyIsMutable();
2136  searchStrategy_.add(value);
2137  onChanged();
2138  } else {
2139  searchStrategyBuilder_.addMessage(value);
2140  }
2141  return this;
2142  }
2159  int index, com.google.ortools.sat.DecisionStrategyProto value) {
2160  if (searchStrategyBuilder_ == null) {
2161  if (value == null) {
2162  throw new NullPointerException();
2163  }
2164  ensureSearchStrategyIsMutable();
2165  searchStrategy_.add(index, value);
2166  onChanged();
2167  } else {
2168  searchStrategyBuilder_.addMessage(index, value);
2169  }
2170  return this;
2171  }
2188  com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2189  if (searchStrategyBuilder_ == null) {
2190  ensureSearchStrategyIsMutable();
2191  searchStrategy_.add(builderForValue.build());
2192  onChanged();
2193  } else {
2194  searchStrategyBuilder_.addMessage(builderForValue.build());
2195  }
2196  return this;
2197  }
2214  int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue) {
2215  if (searchStrategyBuilder_ == null) {
2216  ensureSearchStrategyIsMutable();
2217  searchStrategy_.add(index, builderForValue.build());
2218  onChanged();
2219  } else {
2220  searchStrategyBuilder_.addMessage(index, builderForValue.build());
2221  }
2222  return this;
2223  }
2240  java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto> values) {
2241  if (searchStrategyBuilder_ == null) {
2242  ensureSearchStrategyIsMutable();
2243  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2244  values, searchStrategy_);
2245  onChanged();
2246  } else {
2247  searchStrategyBuilder_.addAllMessages(values);
2248  }
2249  return this;
2250  }
2267  if (searchStrategyBuilder_ == null) {
2268  searchStrategy_ = java.util.Collections.emptyList();
2269  bitField0_ = (bitField0_ & ~0x00000004);
2270  onChanged();
2271  } else {
2272  searchStrategyBuilder_.clear();
2273  }
2274  return this;
2275  }
2291  public Builder removeSearchStrategy(int index) {
2292  if (searchStrategyBuilder_ == null) {
2293  ensureSearchStrategyIsMutable();
2294  searchStrategy_.remove(index);
2295  onChanged();
2296  } else {
2297  searchStrategyBuilder_.remove(index);
2298  }
2299  return this;
2300  }
2316  public com.google.ortools.sat.DecisionStrategyProto.Builder getSearchStrategyBuilder(
2317  int index) {
2318  return getSearchStrategyFieldBuilder().getBuilder(index);
2319  }
2335  public com.google.ortools.sat.DecisionStrategyProtoOrBuilder getSearchStrategyOrBuilder(
2336  int index) {
2337  if (searchStrategyBuilder_ == null) {
2338  return searchStrategy_.get(index); } else {
2339  return searchStrategyBuilder_.getMessageOrBuilder(index);
2340  }
2341  }
2357  public java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
2359  if (searchStrategyBuilder_ != null) {
2360  return searchStrategyBuilder_.getMessageOrBuilderList();
2361  } else {
2362  return java.util.Collections.unmodifiableList(searchStrategy_);
2363  }
2364  }
2380  public com.google.ortools.sat.DecisionStrategyProto.Builder addSearchStrategyBuilder() {
2381  return getSearchStrategyFieldBuilder().addBuilder(
2382  com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance());
2383  }
2399  public com.google.ortools.sat.DecisionStrategyProto.Builder addSearchStrategyBuilder(
2400  int index) {
2401  return getSearchStrategyFieldBuilder().addBuilder(
2402  index, com.google.ortools.sat.DecisionStrategyProto.getDefaultInstance());
2403  }
2419  public java.util.List<com.google.ortools.sat.DecisionStrategyProto.Builder>
2421  return getSearchStrategyFieldBuilder().getBuilderList();
2422  }
2423  private com.google.protobuf.RepeatedFieldBuilderV3<
2424  com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder>
2425  getSearchStrategyFieldBuilder() {
2426  if (searchStrategyBuilder_ == null) {
2427  searchStrategyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2428  com.google.ortools.sat.DecisionStrategyProto, com.google.ortools.sat.DecisionStrategyProto.Builder, com.google.ortools.sat.DecisionStrategyProtoOrBuilder>(
2429  searchStrategy_,
2430  ((bitField0_ & 0x00000004) != 0),
2431  getParentForChildren(),
2432  isClean());
2433  searchStrategy_ = null;
2434  }
2435  return searchStrategyBuilder_;
2436  }
2437 
2438  private com.google.ortools.sat.PartialVariableAssignment solutionHint_;
2439  private com.google.protobuf.SingleFieldBuilderV3<
2440  com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder> solutionHintBuilder_;
2457  public boolean hasSolutionHint() {
2458  return solutionHintBuilder_ != null || solutionHint_ != null;
2459  }
2476  public com.google.ortools.sat.PartialVariableAssignment getSolutionHint() {
2477  if (solutionHintBuilder_ == null) {
2478  return solutionHint_ == null ? com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
2479  } else {
2480  return solutionHintBuilder_.getMessage();
2481  }
2482  }
2498  public Builder setSolutionHint(com.google.ortools.sat.PartialVariableAssignment value) {
2499  if (solutionHintBuilder_ == null) {
2500  if (value == null) {
2501  throw new NullPointerException();
2502  }
2503  solutionHint_ = value;
2504  onChanged();
2505  } else {
2506  solutionHintBuilder_.setMessage(value);
2507  }
2508 
2509  return this;
2510  }
2527  com.google.ortools.sat.PartialVariableAssignment.Builder builderForValue) {
2528  if (solutionHintBuilder_ == null) {
2529  solutionHint_ = builderForValue.build();
2530  onChanged();
2531  } else {
2532  solutionHintBuilder_.setMessage(builderForValue.build());
2533  }
2534 
2535  return this;
2536  }
2552  public Builder mergeSolutionHint(com.google.ortools.sat.PartialVariableAssignment value) {
2553  if (solutionHintBuilder_ == null) {
2554  if (solutionHint_ != null) {
2555  solutionHint_ =
2556  com.google.ortools.sat.PartialVariableAssignment.newBuilder(solutionHint_).mergeFrom(value).buildPartial();
2557  } else {
2558  solutionHint_ = value;
2559  }
2560  onChanged();
2561  } else {
2562  solutionHintBuilder_.mergeFrom(value);
2563  }
2564 
2565  return this;
2566  }
2583  if (solutionHintBuilder_ == null) {
2584  solutionHint_ = null;
2585  onChanged();
2586  } else {
2587  solutionHint_ = null;
2588  solutionHintBuilder_ = null;
2589  }
2590 
2591  return this;
2592  }
2608  public com.google.ortools.sat.PartialVariableAssignment.Builder getSolutionHintBuilder() {
2609 
2610  onChanged();
2611  return getSolutionHintFieldBuilder().getBuilder();
2612  }
2628  public com.google.ortools.sat.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder() {
2629  if (solutionHintBuilder_ != null) {
2630  return solutionHintBuilder_.getMessageOrBuilder();
2631  } else {
2632  return solutionHint_ == null ?
2633  com.google.ortools.sat.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
2634  }
2635  }
2651  private com.google.protobuf.SingleFieldBuilderV3<
2652  com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder>
2653  getSolutionHintFieldBuilder() {
2654  if (solutionHintBuilder_ == null) {
2655  solutionHintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2656  com.google.ortools.sat.PartialVariableAssignment, com.google.ortools.sat.PartialVariableAssignment.Builder, com.google.ortools.sat.PartialVariableAssignmentOrBuilder>(
2657  getSolutionHint(),
2658  getParentForChildren(),
2659  isClean());
2660  solutionHint_ = null;
2661  }
2662  return solutionHintBuilder_;
2663  }
2664 
2665  private com.google.protobuf.Internal.IntList assumptions_ = emptyIntList();
2666  private void ensureAssumptionsIsMutable() {
2667  if (!((bitField0_ & 0x00000008) != 0)) {
2668  assumptions_ = mutableCopy(assumptions_);
2669  bitField0_ |= 0x00000008;
2670  }
2671  }
2690  public java.util.List<java.lang.Integer>
2692  return ((bitField0_ & 0x00000008) != 0) ?
2693  java.util.Collections.unmodifiableList(assumptions_) : assumptions_;
2694  }
2713  public int getAssumptionsCount() {
2714  return assumptions_.size();
2715  }
2735  public int getAssumptions(int index) {
2736  return assumptions_.getInt(index);
2737  }
2759  int index, int value) {
2760  ensureAssumptionsIsMutable();
2761  assumptions_.setInt(index, value);
2762  onChanged();
2763  return this;
2764  }
2784  public Builder addAssumptions(int value) {
2785  ensureAssumptionsIsMutable();
2786  assumptions_.addInt(value);
2787  onChanged();
2788  return this;
2789  }
2810  java.lang.Iterable<? extends java.lang.Integer> values) {
2811  ensureAssumptionsIsMutable();
2812  com.google.protobuf.AbstractMessageLite.Builder.addAll(
2813  values, assumptions_);
2814  onChanged();
2815  return this;
2816  }
2836  assumptions_ = emptyIntList();
2837  bitField0_ = (bitField0_ & ~0x00000008);
2838  onChanged();
2839  return this;
2840  }
2841  @java.lang.Override
2843  final com.google.protobuf.UnknownFieldSet unknownFields) {
2844  return super.setUnknownFields(unknownFields);
2845  }
2846 
2847  @java.lang.Override
2849  final com.google.protobuf.UnknownFieldSet unknownFields) {
2850  return super.mergeUnknownFields(unknownFields);
2851  }
2852 
2853 
2854  // @@protoc_insertion_point(builder_scope:operations_research.sat.CpModelProto)
2855  }
2856 
2857  // @@protoc_insertion_point(class_scope:operations_research.sat.CpModelProto)
2858  private static final com.google.ortools.sat.CpModelProto DEFAULT_INSTANCE;
2859  static {
2860  DEFAULT_INSTANCE = new com.google.ortools.sat.CpModelProto();
2861  }
2862 
2863  public static com.google.ortools.sat.CpModelProto getDefaultInstance() {
2864  return DEFAULT_INSTANCE;
2865  }
2866 
2867  private static final com.google.protobuf.Parser<CpModelProto>
2868  PARSER = new com.google.protobuf.AbstractParser<CpModelProto>() {
2869  @java.lang.Override
2870  public CpModelProto parsePartialFrom(
2871  com.google.protobuf.CodedInputStream input,
2872  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2873  throws com.google.protobuf.InvalidProtocolBufferException {
2874  return new CpModelProto(input, extensionRegistry);
2875  }
2876  };
2877 
2878  public static com.google.protobuf.Parser<CpModelProto> parser() {
2879  return PARSER;
2880  }
2881 
2882  @java.lang.Override
2883  public com.google.protobuf.Parser<CpModelProto> getParserForType() {
2884  return PARSER;
2885  }
2886 
2887  @java.lang.Override
2888  public com.google.ortools.sat.CpModelProto getDefaultInstanceForType() {
2889  return DEFAULT_INSTANCE;
2890  }
2891 
2892 }
2893 
Builder addConstraints(com.google.ortools.sat.ConstraintProto value)
repeated .operations_research.sat.ConstraintProto constraints = 3;
Builder setSearchStrategy(int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue)
java.util.List< com.google.ortools.sat.ConstraintProto.Builder > getConstraintsBuilderList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
Builder clearConstraints()
repeated .operations_research.sat.ConstraintProto constraints = 3;
Builder addSearchStrategy(int index, com.google.ortools.sat.DecisionStrategyProto value)
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getVariablesOrBuilderList()
com.google.ortools.sat.PartialVariableAssignment getSolutionHint()
java.util.List< com.google.ortools.sat.DecisionStrategyProto.Builder > getSearchStrategyBuilderList()
Builder mergeSolutionHint(com.google.ortools.sat.PartialVariableAssignment value)
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.ConstraintProtoOrBuilder getConstraintsOrBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
int getConstraintsCount()
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.CpObjectiveProtoOrBuilder getObjectiveOrBuilder()
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Builder addAllAssumptions(java.lang.Iterable<? extends java.lang.Integer > values)
Builder addSearchStrategy(com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue)
Builder addAllVariables(java.lang.Iterable<? extends com.google.ortools.sat.IntegerVariableProto > values)
com.google.ortools.sat.IntegerVariableProtoOrBuilder getVariablesOrBuilder(int index)
Builder addAllSearchStrategy(java.lang.Iterable<? extends com.google.ortools.sat.DecisionStrategyProto > values)
Builder setName(java.lang.String value)
java.util.List< com.google.ortools.sat.IntegerVariableProto.Builder > getVariablesBuilderList()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder addConstraints(int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
Builder setNameBytes(com.google.protobuf.ByteString value)
Builder addConstraints(com.google.ortools.sat.ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
com.google.ortools.sat.CpObjectiveProto getObjective()
java.util.List< com.google.ortools.sat.DecisionStrategyProto > getSearchStrategyList()
Builder addSearchStrategy(com.google.ortools.sat.DecisionStrategyProto value)
java.util.List< com.google.ortools.sat.ConstraintProto > getConstraintsList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override com.google.ortools.sat.CpModelProto getDefaultInstanceForType()
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder addSearchStrategy(int index, com.google.ortools.sat.DecisionStrategyProto.Builder builderForValue)
Builder addVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
com.google.ortools.sat.DecisionStrategyProto getSearchStrategy(int index)
Builder setObjective(com.google.ortools.sat.CpObjectiveProto.Builder builderForValue)
Builder setObjective(com.google.ortools.sat.CpObjectiveProto value)
Builder addVariables(com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
com.google.ortools.sat.DecisionStrategyProto.Builder addSearchStrategyBuilder()
Builder setSolutionHint(com.google.ortools.sat.PartialVariableAssignment.Builder builderForValue)
com.google.ortools.sat.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder()
Builder setAssumptions(int index, int value)
Builder setSearchStrategy(int index, com.google.ortools.sat.DecisionStrategyProto value)
Builder mergeFrom(com.google.ortools.sat.CpModelProto other)
Builder addVariables(com.google.ortools.sat.IntegerVariableProto value)
com.google.ortools.sat.IntegerVariableProto.Builder getVariablesBuilder(int index)
java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder > getConstraintsOrBuilderList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder > getSearchStrategyOrBuilderList()
com.google.ortools.sat.IntegerVariableProto.Builder addVariablesBuilder(int index)
Builder addConstraints(int index, com.google.ortools.sat.ConstraintProto value)
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
java.util.List< java.lang.Integer > getAssumptionsList()
.lang.Override final boolean isInitialized()
com.google.ortools.sat.ConstraintProto getConstraints(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
Builder setVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
com.google.ortools.sat.IntegerVariableProto getVariables(int index)
Builder addVariables(int index, com.google.ortools.sat.IntegerVariableProto.Builder builderForValue)
Builder setConstraints(int index, com.google.ortools.sat.ConstraintProto.Builder builderForValue)
repeated .operations_research.sat.ConstraintProto constraints = 3;
Builder removeConstraints(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.DecisionStrategyProto.Builder getSearchStrategyBuilder(int index)
Builder setVariables(int index, com.google.ortools.sat.IntegerVariableProto value)
.lang.Override com.google.ortools.sat.CpModelProto buildPartial()
.lang.Override com.google.ortools.sat.CpModelProto build()
Builder mergeObjective(com.google.ortools.sat.CpObjectiveProto value)
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
com.google.ortools.sat.DecisionStrategyProto.Builder addSearchStrategyBuilder(int index)
Builder addAllConstraints(java.lang.Iterable<? extends com.google.ortools.sat.ConstraintProto > values)
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.ortools.sat.DecisionStrategyProtoOrBuilder getSearchStrategyOrBuilder(int index)
Builder setSolutionHint(com.google.ortools.sat.PartialVariableAssignment value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
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;
java.util.List< com.google.ortools.sat.IntegerVariableProto > getVariablesList()
com.google.ortools.sat.ConstraintProto.Builder addConstraintsBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
com.google.protobuf.ByteString getNameBytes()
com.google.ortools.sat.CpObjectiveProto.Builder getObjectiveBuilder()
com.google.ortools.sat.PartialVariableAssignment.Builder getSolutionHintBuilder()
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
com.google.ortools.sat.IntegerVariableProto.Builder addVariablesBuilder()
com.google.ortools.sat.ConstraintProto.Builder addConstraintsBuilder()
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
static com.google.ortools.sat.CpModelProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.IntegerVariableProtoOrBuilder getVariablesOrBuilder(int index)
.lang.Override com.google.ortools.sat.ConstraintProto getConstraints(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
static com.google.ortools.sat.CpModelProto parseFrom(com.google.protobuf.ByteString data)
.lang.Override com.google.ortools.sat.CpObjectiveProtoOrBuilder getObjectiveOrBuilder()
.lang.Override java.util.List< java.lang.Integer > getAssumptionsList()
static Builder newBuilder(com.google.ortools.sat.CpModelProto prototype)
static com.google.ortools.sat.CpModelProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.Parser< CpModelProto > getParserForType()
.lang.Override com.google.ortools.sat.CpObjectiveProto getObjective()
.lang.Override int getConstraintsCount()
repeated .operations_research.sat.ConstraintProto constraints = 3;
static com.google.ortools.sat.CpModelProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static com.google.ortools.sat.CpModelProto getDefaultInstance()
.lang.Override java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > getVariablesOrBuilderList()
static com.google.ortools.sat.CpModelProto parseFrom(byte[] data)
.lang.Override java.lang.String getName()
.lang.Override com.google.ortools.sat.CpModelProto getDefaultInstanceForType()
.lang.Override java.util.List< com.google.ortools.sat.IntegerVariableProto > getVariablesList()
.lang.Override boolean hasSolutionHint()
static com.google.protobuf.Parser< CpModelProto > parser()
.lang.Override com.google.ortools.sat.ConstraintProtoOrBuilder getConstraintsOrBuilder(int index)
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override Builder toBuilder()
.lang.Override Builder newBuilderForType()
.lang.Override com.google.ortools.sat.PartialVariableAssignment getSolutionHint()
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
.lang.Override int getSerializedSize()
.lang.Override java.util.List< com.google.ortools.sat.DecisionStrategyProto > getSearchStrategyList()
.lang.Override int getVariablesCount()
static com.google.ortools.sat.CpModelProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder > getSearchStrategyOrBuilderList()
.lang.Override int getSearchStrategyCount()
static com.google.ortools.sat.CpModelProto parseDelimitedFrom(java.io.InputStream input, 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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
.lang.Override final boolean isInitialized()
.lang.Override com.google.ortools.sat.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder()
static com.google.ortools.sat.CpModelProto parseFrom(com.google.protobuf.CodedInputStream input)
static final int SEARCH_STRATEGY_FIELD_NUMBER
static com.google.ortools.sat.CpModelProto parseFrom(java.io.InputStream input)
.lang.Override com.google.ortools.sat.IntegerVariableProto getVariables(int index)
.lang.Override com.google.protobuf.ByteString getNameBytes()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
.lang.Override boolean equals(final java.lang.Object obj)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
.lang.Override boolean hasObjective()
static com.google.ortools.sat.CpModelProto parseFrom(java.nio.ByteBuffer data)
.lang.Override java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder > getConstraintsOrBuilderList()
repeated .operations_research.sat.ConstraintProto constraints = 3;
.lang.Override com.google.ortools.sat.DecisionStrategyProto getSearchStrategy(int index)
static com.google.ortools.sat.CpModelProto parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.sat.CpModelProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.ortools.sat.DecisionStrategyProtoOrBuilder getSearchStrategyOrBuilder(int index)
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override boolean equals(final java.lang.Object obj)