Java Reference

Java Reference

MPModelProto.java
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/linear_solver/linear_solver.proto
3 
4 package com.google.ortools.linearsolver;
5 
13 public final class MPModelProto extends
14  com.google.protobuf.GeneratedMessageV3 implements
15  // @@protoc_insertion_point(message_implements:operations_research.MPModelProto)
17 private static final long serialVersionUID = 0L;
18  // Use MPModelProto.newBuilder() to construct.
19  private MPModelProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
20  super(builder);
21  }
22  private MPModelProto() {
23  variable_ = java.util.Collections.emptyList();
24  constraint_ = java.util.Collections.emptyList();
25  generalConstraint_ = java.util.Collections.emptyList();
26  name_ = "";
27  }
28 
29  @java.lang.Override
30  @SuppressWarnings({"unused"})
31  protected java.lang.Object newInstance(
32  UnusedPrivateParameter unused) {
33  return new MPModelProto();
34  }
35 
36  @java.lang.Override
37  public final com.google.protobuf.UnknownFieldSet
39  return this.unknownFields;
40  }
41  private MPModelProto(
42  com.google.protobuf.CodedInputStream input,
43  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
44  throws com.google.protobuf.InvalidProtocolBufferException {
45  this();
46  if (extensionRegistry == null) {
47  throw new java.lang.NullPointerException();
48  }
49  int mutable_bitField0_ = 0;
50  com.google.protobuf.UnknownFieldSet.Builder unknownFields =
51  com.google.protobuf.UnknownFieldSet.newBuilder();
52  try {
53  boolean done = false;
54  while (!done) {
55  int tag = input.readTag();
56  switch (tag) {
57  case 0:
58  done = true;
59  break;
60  case 8: {
61  bitField0_ |= 0x00000001;
62  maximize_ = input.readBool();
63  break;
64  }
65  case 17: {
66  bitField0_ |= 0x00000002;
67  objectiveOffset_ = input.readDouble();
68  break;
69  }
70  case 26: {
71  if (!((mutable_bitField0_ & 0x00000001) != 0)) {
72  variable_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPVariableProto>();
73  mutable_bitField0_ |= 0x00000001;
74  }
75  variable_.add(
76  input.readMessage(com.google.ortools.linearsolver.MPVariableProto.PARSER, extensionRegistry));
77  break;
78  }
79  case 34: {
80  if (!((mutable_bitField0_ & 0x00000002) != 0)) {
81  constraint_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPConstraintProto>();
82  mutable_bitField0_ |= 0x00000002;
83  }
84  constraint_.add(
85  input.readMessage(com.google.ortools.linearsolver.MPConstraintProto.PARSER, extensionRegistry));
86  break;
87  }
88  case 42: {
89  com.google.protobuf.ByteString bs = input.readBytes();
90  bitField0_ |= 0x00000008;
91  name_ = bs;
92  break;
93  }
94  case 50: {
96  if (((bitField0_ & 0x00000010) != 0)) {
97  subBuilder = solutionHint_.toBuilder();
98  }
99  solutionHint_ = input.readMessage(com.google.ortools.linearsolver.PartialVariableAssignment.PARSER, extensionRegistry);
100  if (subBuilder != null) {
101  subBuilder.mergeFrom(solutionHint_);
102  solutionHint_ = subBuilder.buildPartial();
103  }
104  bitField0_ |= 0x00000010;
105  break;
106  }
107  case 58: {
108  if (!((mutable_bitField0_ & 0x00000004) != 0)) {
109  generalConstraint_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPGeneralConstraintProto>();
110  mutable_bitField0_ |= 0x00000004;
111  }
112  generalConstraint_.add(
113  input.readMessage(com.google.ortools.linearsolver.MPGeneralConstraintProto.PARSER, extensionRegistry));
114  break;
115  }
116  case 66: {
118  if (((bitField0_ & 0x00000004) != 0)) {
119  subBuilder = quadraticObjective_.toBuilder();
120  }
121  quadraticObjective_ = input.readMessage(com.google.ortools.linearsolver.MPQuadraticObjective.PARSER, extensionRegistry);
122  if (subBuilder != null) {
123  subBuilder.mergeFrom(quadraticObjective_);
124  quadraticObjective_ = subBuilder.buildPartial();
125  }
126  bitField0_ |= 0x00000004;
127  break;
128  }
129  default: {
130  if (!parseUnknownField(
131  input, unknownFields, extensionRegistry, tag)) {
132  done = true;
133  }
134  break;
135  }
136  }
137  }
138  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
139  throw e.setUnfinishedMessage(this);
140  } catch (java.io.IOException e) {
141  throw new com.google.protobuf.InvalidProtocolBufferException(
142  e).setUnfinishedMessage(this);
143  } finally {
144  if (((mutable_bitField0_ & 0x00000001) != 0)) {
145  variable_ = java.util.Collections.unmodifiableList(variable_);
146  }
147  if (((mutable_bitField0_ & 0x00000002) != 0)) {
148  constraint_ = java.util.Collections.unmodifiableList(constraint_);
149  }
150  if (((mutable_bitField0_ & 0x00000004) != 0)) {
151  generalConstraint_ = java.util.Collections.unmodifiableList(generalConstraint_);
152  }
153  this.unknownFields = unknownFields.build();
154  makeExtensionsImmutable();
155  }
156  }
157  public static final com.google.protobuf.Descriptors.Descriptor
159  return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
160  }
161 
162  @java.lang.Override
163  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
165  return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
166  .ensureFieldAccessorsInitialized(
168  }
169 
170  private int bitField0_;
171  public static final int VARIABLE_FIELD_NUMBER = 3;
172  private java.util.List<com.google.ortools.linearsolver.MPVariableProto> variable_;
181  return variable_;
182  }
190  public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
192  return variable_;
193  }
201  public int getVariableCount() {
202  return variable_.size();
203  }
212  return variable_.get(index);
213  }
222  int index) {
223  return variable_.get(index);
224  }
225 
226  public static final int CONSTRAINT_FIELD_NUMBER = 4;
227  private java.util.List<com.google.ortools.linearsolver.MPConstraintProto> constraint_;
236  return constraint_;
237  }
245  public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
247  return constraint_;
248  }
256  public int getConstraintCount() {
257  return constraint_.size();
258  }
267  return constraint_.get(index);
268  }
277  int index) {
278  return constraint_.get(index);
279  }
280 
281  public static final int GENERAL_CONSTRAINT_FIELD_NUMBER = 7;
282  private java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto> generalConstraint_;
292  return generalConstraint_;
293  }
302  public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
304  return generalConstraint_;
305  }
315  return generalConstraint_.size();
316  }
326  return generalConstraint_.get(index);
327  }
337  int index) {
338  return generalConstraint_.get(index);
339  }
340 
341  public static final int MAXIMIZE_FIELD_NUMBER = 1;
342  private boolean maximize_;
350  public boolean hasMaximize() {
351  return ((bitField0_ & 0x00000001) != 0);
352  }
360  public boolean getMaximize() {
361  return maximize_;
362  }
363 
364  public static final int OBJECTIVE_OFFSET_FIELD_NUMBER = 2;
365  private double objectiveOffset_;
373  public boolean hasObjectiveOffset() {
374  return ((bitField0_ & 0x00000002) != 0);
375  }
383  public double getObjectiveOffset() {
384  return objectiveOffset_;
385  }
386 
387  public static final int QUADRATIC_OBJECTIVE_FIELD_NUMBER = 8;
388  private com.google.ortools.linearsolver.MPQuadraticObjective quadraticObjective_;
397  public boolean hasQuadraticObjective() {
398  return ((bitField0_ & 0x00000004) != 0);
399  }
409  return quadraticObjective_ == null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
410  }
420  return quadraticObjective_ == null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
421  }
422 
423  public static final int NAME_FIELD_NUMBER = 5;
424  private volatile java.lang.Object name_;
432  public boolean hasName() {
433  return ((bitField0_ & 0x00000008) != 0);
434  }
442  public java.lang.String getName() {
443  java.lang.Object ref = name_;
444  if (ref instanceof java.lang.String) {
445  return (java.lang.String) ref;
446  } else {
447  com.google.protobuf.ByteString bs =
448  (com.google.protobuf.ByteString) ref;
449  java.lang.String s = bs.toStringUtf8();
450  if (bs.isValidUtf8()) {
451  name_ = s;
452  }
453  return s;
454  }
455  }
463  public com.google.protobuf.ByteString
465  java.lang.Object ref = name_;
466  if (ref instanceof java.lang.String) {
467  com.google.protobuf.ByteString b =
468  com.google.protobuf.ByteString.copyFromUtf8(
469  (java.lang.String) ref);
470  name_ = b;
471  return b;
472  } else {
473  return (com.google.protobuf.ByteString) ref;
474  }
475  }
476 
477  public static final int SOLUTION_HINT_FIELD_NUMBER = 6;
494  public boolean hasSolutionHint() {
495  return ((bitField0_ & 0x00000010) != 0);
496  }
513  return solutionHint_ == null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
514  }
531  return solutionHint_ == null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
532  }
533 
534  private byte memoizedIsInitialized = -1;
535  @java.lang.Override
536  public final boolean isInitialized() {
537  byte isInitialized = memoizedIsInitialized;
538  if (isInitialized == 1) return true;
539  if (isInitialized == 0) return false;
540 
541  memoizedIsInitialized = 1;
542  return true;
543  }
544 
545  @java.lang.Override
546  public void writeTo(com.google.protobuf.CodedOutputStream output)
547  throws java.io.IOException {
548  if (((bitField0_ & 0x00000001) != 0)) {
549  output.writeBool(1, maximize_);
550  }
551  if (((bitField0_ & 0x00000002) != 0)) {
552  output.writeDouble(2, objectiveOffset_);
553  }
554  for (int i = 0; i < variable_.size(); i++) {
555  output.writeMessage(3, variable_.get(i));
556  }
557  for (int i = 0; i < constraint_.size(); i++) {
558  output.writeMessage(4, constraint_.get(i));
559  }
560  if (((bitField0_ & 0x00000008) != 0)) {
561  com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
562  }
563  if (((bitField0_ & 0x00000010) != 0)) {
564  output.writeMessage(6, getSolutionHint());
565  }
566  for (int i = 0; i < generalConstraint_.size(); i++) {
567  output.writeMessage(7, generalConstraint_.get(i));
568  }
569  if (((bitField0_ & 0x00000004) != 0)) {
570  output.writeMessage(8, getQuadraticObjective());
571  }
572  unknownFields.writeTo(output);
573  }
574 
575  @java.lang.Override
576  public int getSerializedSize() {
577  int size = memoizedSize;
578  if (size != -1) return size;
579 
580  size = 0;
581  if (((bitField0_ & 0x00000001) != 0)) {
582  size += com.google.protobuf.CodedOutputStream
583  .computeBoolSize(1, maximize_);
584  }
585  if (((bitField0_ & 0x00000002) != 0)) {
586  size += com.google.protobuf.CodedOutputStream
587  .computeDoubleSize(2, objectiveOffset_);
588  }
589  for (int i = 0; i < variable_.size(); i++) {
590  size += com.google.protobuf.CodedOutputStream
591  .computeMessageSize(3, variable_.get(i));
592  }
593  for (int i = 0; i < constraint_.size(); i++) {
594  size += com.google.protobuf.CodedOutputStream
595  .computeMessageSize(4, constraint_.get(i));
596  }
597  if (((bitField0_ & 0x00000008) != 0)) {
598  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
599  }
600  if (((bitField0_ & 0x00000010) != 0)) {
601  size += com.google.protobuf.CodedOutputStream
602  .computeMessageSize(6, getSolutionHint());
603  }
604  for (int i = 0; i < generalConstraint_.size(); i++) {
605  size += com.google.protobuf.CodedOutputStream
606  .computeMessageSize(7, generalConstraint_.get(i));
607  }
608  if (((bitField0_ & 0x00000004) != 0)) {
609  size += com.google.protobuf.CodedOutputStream
610  .computeMessageSize(8, getQuadraticObjective());
611  }
612  size += unknownFields.getSerializedSize();
613  memoizedSize = size;
614  return size;
615  }
616 
617  @java.lang.Override
618  public boolean equals(final java.lang.Object obj) {
619  if (obj == this) {
620  return true;
621  }
622  if (!(obj instanceof com.google.ortools.linearsolver.MPModelProto)) {
623  return super.equals(obj);
624  }
626 
627  if (!getVariableList()
628  .equals(other.getVariableList())) return false;
629  if (!getConstraintList()
630  .equals(other.getConstraintList())) return false;
632  .equals(other.getGeneralConstraintList())) return false;
633  if (hasMaximize() != other.hasMaximize()) return false;
634  if (hasMaximize()) {
635  if (getMaximize()
636  != other.getMaximize()) return false;
637  }
638  if (hasObjectiveOffset() != other.hasObjectiveOffset()) return false;
639  if (hasObjectiveOffset()) {
640  if (java.lang.Double.doubleToLongBits(getObjectiveOffset())
641  != java.lang.Double.doubleToLongBits(
642  other.getObjectiveOffset())) return false;
643  }
644  if (hasQuadraticObjective() != other.hasQuadraticObjective()) return false;
645  if (hasQuadraticObjective()) {
646  if (!getQuadraticObjective()
647  .equals(other.getQuadraticObjective())) return false;
648  }
649  if (hasName() != other.hasName()) return false;
650  if (hasName()) {
651  if (!getName()
652  .equals(other.getName())) return false;
653  }
654  if (hasSolutionHint() != other.hasSolutionHint()) return false;
655  if (hasSolutionHint()) {
656  if (!getSolutionHint()
657  .equals(other.getSolutionHint())) return false;
658  }
659  if (!unknownFields.equals(other.unknownFields)) return false;
660  return true;
661  }
662 
663  @java.lang.Override
664  public int hashCode() {
665  if (memoizedHashCode != 0) {
666  return memoizedHashCode;
667  }
668  int hash = 41;
669  hash = (19 * hash) + getDescriptor().hashCode();
670  if (getVariableCount() > 0) {
671  hash = (37 * hash) + VARIABLE_FIELD_NUMBER;
672  hash = (53 * hash) + getVariableList().hashCode();
673  }
674  if (getConstraintCount() > 0) {
675  hash = (37 * hash) + CONSTRAINT_FIELD_NUMBER;
676  hash = (53 * hash) + getConstraintList().hashCode();
677  }
678  if (getGeneralConstraintCount() > 0) {
679  hash = (37 * hash) + GENERAL_CONSTRAINT_FIELD_NUMBER;
680  hash = (53 * hash) + getGeneralConstraintList().hashCode();
681  }
682  if (hasMaximize()) {
683  hash = (37 * hash) + MAXIMIZE_FIELD_NUMBER;
684  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
685  getMaximize());
686  }
687  if (hasObjectiveOffset()) {
688  hash = (37 * hash) + OBJECTIVE_OFFSET_FIELD_NUMBER;
689  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
690  java.lang.Double.doubleToLongBits(getObjectiveOffset()));
691  }
692  if (hasQuadraticObjective()) {
693  hash = (37 * hash) + QUADRATIC_OBJECTIVE_FIELD_NUMBER;
694  hash = (53 * hash) + getQuadraticObjective().hashCode();
695  }
696  if (hasName()) {
697  hash = (37 * hash) + NAME_FIELD_NUMBER;
698  hash = (53 * hash) + getName().hashCode();
699  }
700  if (hasSolutionHint()) {
701  hash = (37 * hash) + SOLUTION_HINT_FIELD_NUMBER;
702  hash = (53 * hash) + getSolutionHint().hashCode();
703  }
704  hash = (29 * hash) + unknownFields.hashCode();
705  memoizedHashCode = hash;
706  return hash;
707  }
708 
710  java.nio.ByteBuffer data)
711  throws com.google.protobuf.InvalidProtocolBufferException {
712  return PARSER.parseFrom(data);
713  }
715  java.nio.ByteBuffer data,
716  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
717  throws com.google.protobuf.InvalidProtocolBufferException {
718  return PARSER.parseFrom(data, extensionRegistry);
719  }
721  com.google.protobuf.ByteString data)
722  throws com.google.protobuf.InvalidProtocolBufferException {
723  return PARSER.parseFrom(data);
724  }
726  com.google.protobuf.ByteString data,
727  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
728  throws com.google.protobuf.InvalidProtocolBufferException {
729  return PARSER.parseFrom(data, extensionRegistry);
730  }
732  throws com.google.protobuf.InvalidProtocolBufferException {
733  return PARSER.parseFrom(data);
734  }
736  byte[] data,
737  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
738  throws com.google.protobuf.InvalidProtocolBufferException {
739  return PARSER.parseFrom(data, extensionRegistry);
740  }
741  public static com.google.ortools.linearsolver.MPModelProto parseFrom(java.io.InputStream input)
742  throws java.io.IOException {
743  return com.google.protobuf.GeneratedMessageV3
744  .parseWithIOException(PARSER, input);
745  }
747  java.io.InputStream input,
748  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
749  throws java.io.IOException {
750  return com.google.protobuf.GeneratedMessageV3
751  .parseWithIOException(PARSER, input, extensionRegistry);
752  }
753  public static com.google.ortools.linearsolver.MPModelProto parseDelimitedFrom(java.io.InputStream input)
754  throws java.io.IOException {
755  return com.google.protobuf.GeneratedMessageV3
756  .parseDelimitedWithIOException(PARSER, input);
757  }
759  java.io.InputStream input,
760  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
761  throws java.io.IOException {
762  return com.google.protobuf.GeneratedMessageV3
763  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
764  }
766  com.google.protobuf.CodedInputStream input)
767  throws java.io.IOException {
768  return com.google.protobuf.GeneratedMessageV3
769  .parseWithIOException(PARSER, input);
770  }
772  com.google.protobuf.CodedInputStream input,
773  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
774  throws java.io.IOException {
775  return com.google.protobuf.GeneratedMessageV3
776  .parseWithIOException(PARSER, input, extensionRegistry);
777  }
778 
779  @java.lang.Override
780  public Builder newBuilderForType() { return newBuilder(); }
781  public static Builder newBuilder() {
782  return DEFAULT_INSTANCE.toBuilder();
783  }
785  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
786  }
787  @java.lang.Override
788  public Builder toBuilder() {
789  return this == DEFAULT_INSTANCE
790  ? new Builder() : new Builder().mergeFrom(this);
791  }
792 
793  @java.lang.Override
795  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
796  Builder builder = new Builder(parent);
797  return builder;
798  }
806  public static final class Builder extends
807  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
808  // @@protoc_insertion_point(builder_implements:operations_research.MPModelProto)
809  com.google.ortools.linearsolver.MPModelProtoOrBuilder {
810  public static final com.google.protobuf.Descriptors.Descriptor
812  return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
813  }
814 
815  @java.lang.Override
816  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
818  return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
819  .ensureFieldAccessorsInitialized(
821  }
822 
823  // Construct using com.google.ortools.linearsolver.MPModelProto.newBuilder()
824  private Builder() {
825  maybeForceBuilderInitialization();
826  }
827 
828  private Builder(
829  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
830  super(parent);
831  maybeForceBuilderInitialization();
832  }
833  private void maybeForceBuilderInitialization() {
834  if (com.google.protobuf.GeneratedMessageV3
835  .alwaysUseFieldBuilders) {
836  getVariableFieldBuilder();
837  getConstraintFieldBuilder();
838  getGeneralConstraintFieldBuilder();
839  getQuadraticObjectiveFieldBuilder();
840  getSolutionHintFieldBuilder();
841  }
842  }
843  @java.lang.Override
844  public Builder clear() {
845  super.clear();
846  if (variableBuilder_ == null) {
847  variable_ = java.util.Collections.emptyList();
848  bitField0_ = (bitField0_ & ~0x00000001);
849  } else {
850  variableBuilder_.clear();
851  }
852  if (constraintBuilder_ == null) {
853  constraint_ = java.util.Collections.emptyList();
854  bitField0_ = (bitField0_ & ~0x00000002);
855  } else {
856  constraintBuilder_.clear();
857  }
858  if (generalConstraintBuilder_ == null) {
859  generalConstraint_ = java.util.Collections.emptyList();
860  bitField0_ = (bitField0_ & ~0x00000004);
861  } else {
862  generalConstraintBuilder_.clear();
863  }
864  maximize_ = false;
865  bitField0_ = (bitField0_ & ~0x00000008);
866  objectiveOffset_ = 0D;
867  bitField0_ = (bitField0_ & ~0x00000010);
868  if (quadraticObjectiveBuilder_ == null) {
869  quadraticObjective_ = null;
870  } else {
871  quadraticObjectiveBuilder_.clear();
872  }
873  bitField0_ = (bitField0_ & ~0x00000020);
874  name_ = "";
875  bitField0_ = (bitField0_ & ~0x00000040);
876  if (solutionHintBuilder_ == null) {
877  solutionHint_ = null;
878  } else {
879  solutionHintBuilder_.clear();
880  }
881  bitField0_ = (bitField0_ & ~0x00000080);
882  return this;
883  }
884 
885  @java.lang.Override
886  public com.google.protobuf.Descriptors.Descriptor
888  return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
889  }
890 
891  @java.lang.Override
894  }
895 
896  @java.lang.Override
899  if (!result.isInitialized()) {
900  throw newUninitializedMessageException(result);
901  }
902  return result;
903  }
904 
905  @java.lang.Override
908  int from_bitField0_ = bitField0_;
909  int to_bitField0_ = 0;
910  if (variableBuilder_ == null) {
911  if (((bitField0_ & 0x00000001) != 0)) {
912  variable_ = java.util.Collections.unmodifiableList(variable_);
913  bitField0_ = (bitField0_ & ~0x00000001);
914  }
915  result.variable_ = variable_;
916  } else {
917  result.variable_ = variableBuilder_.build();
918  }
919  if (constraintBuilder_ == null) {
920  if (((bitField0_ & 0x00000002) != 0)) {
921  constraint_ = java.util.Collections.unmodifiableList(constraint_);
922  bitField0_ = (bitField0_ & ~0x00000002);
923  }
924  result.constraint_ = constraint_;
925  } else {
926  result.constraint_ = constraintBuilder_.build();
927  }
928  if (generalConstraintBuilder_ == null) {
929  if (((bitField0_ & 0x00000004) != 0)) {
930  generalConstraint_ = java.util.Collections.unmodifiableList(generalConstraint_);
931  bitField0_ = (bitField0_ & ~0x00000004);
932  }
933  result.generalConstraint_ = generalConstraint_;
934  } else {
935  result.generalConstraint_ = generalConstraintBuilder_.build();
936  }
937  if (((from_bitField0_ & 0x00000008) != 0)) {
938  result.maximize_ = maximize_;
939  to_bitField0_ |= 0x00000001;
940  }
941  if (((from_bitField0_ & 0x00000010) != 0)) {
942  result.objectiveOffset_ = objectiveOffset_;
943  to_bitField0_ |= 0x00000002;
944  }
945  if (((from_bitField0_ & 0x00000020) != 0)) {
946  if (quadraticObjectiveBuilder_ == null) {
947  result.quadraticObjective_ = quadraticObjective_;
948  } else {
949  result.quadraticObjective_ = quadraticObjectiveBuilder_.build();
950  }
951  to_bitField0_ |= 0x00000004;
952  }
953  if (((from_bitField0_ & 0x00000040) != 0)) {
954  to_bitField0_ |= 0x00000008;
955  }
956  result.name_ = name_;
957  if (((from_bitField0_ & 0x00000080) != 0)) {
958  if (solutionHintBuilder_ == null) {
959  result.solutionHint_ = solutionHint_;
960  } else {
961  result.solutionHint_ = solutionHintBuilder_.build();
962  }
963  to_bitField0_ |= 0x00000010;
964  }
965  result.bitField0_ = to_bitField0_;
966  onBuilt();
967  return result;
968  }
969 
970  @java.lang.Override
971  public Builder clone() {
972  return super.clone();
973  }
974  @java.lang.Override
976  com.google.protobuf.Descriptors.FieldDescriptor field,
977  java.lang.Object value) {
978  return super.setField(field, value);
979  }
980  @java.lang.Override
982  com.google.protobuf.Descriptors.FieldDescriptor field) {
983  return super.clearField(field);
984  }
985  @java.lang.Override
987  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
988  return super.clearOneof(oneof);
989  }
990  @java.lang.Override
992  com.google.protobuf.Descriptors.FieldDescriptor field,
993  int index, java.lang.Object value) {
994  return super.setRepeatedField(field, index, value);
995  }
996  @java.lang.Override
998  com.google.protobuf.Descriptors.FieldDescriptor field,
999  java.lang.Object value) {
1000  return super.addRepeatedField(field, value);
1001  }
1002  @java.lang.Override
1003  public Builder mergeFrom(com.google.protobuf.Message other) {
1004  if (other instanceof com.google.ortools.linearsolver.MPModelProto) {
1006  } else {
1007  super.mergeFrom(other);
1008  return this;
1009  }
1010  }
1011 
1013  if (other == com.google.ortools.linearsolver.MPModelProto.getDefaultInstance()) return this;
1014  if (variableBuilder_ == null) {
1015  if (!other.variable_.isEmpty()) {
1016  if (variable_.isEmpty()) {
1017  variable_ = other.variable_;
1018  bitField0_ = (bitField0_ & ~0x00000001);
1019  } else {
1020  ensureVariableIsMutable();
1021  variable_.addAll(other.variable_);
1022  }
1023  onChanged();
1024  }
1025  } else {
1026  if (!other.variable_.isEmpty()) {
1027  if (variableBuilder_.isEmpty()) {
1028  variableBuilder_.dispose();
1029  variableBuilder_ = null;
1030  variable_ = other.variable_;
1031  bitField0_ = (bitField0_ & ~0x00000001);
1032  variableBuilder_ =
1033  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1034  getVariableFieldBuilder() : null;
1035  } else {
1036  variableBuilder_.addAllMessages(other.variable_);
1037  }
1038  }
1039  }
1040  if (constraintBuilder_ == null) {
1041  if (!other.constraint_.isEmpty()) {
1042  if (constraint_.isEmpty()) {
1043  constraint_ = other.constraint_;
1044  bitField0_ = (bitField0_ & ~0x00000002);
1045  } else {
1046  ensureConstraintIsMutable();
1047  constraint_.addAll(other.constraint_);
1048  }
1049  onChanged();
1050  }
1051  } else {
1052  if (!other.constraint_.isEmpty()) {
1053  if (constraintBuilder_.isEmpty()) {
1054  constraintBuilder_.dispose();
1055  constraintBuilder_ = null;
1056  constraint_ = other.constraint_;
1057  bitField0_ = (bitField0_ & ~0x00000002);
1058  constraintBuilder_ =
1059  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1060  getConstraintFieldBuilder() : null;
1061  } else {
1062  constraintBuilder_.addAllMessages(other.constraint_);
1063  }
1064  }
1065  }
1066  if (generalConstraintBuilder_ == null) {
1067  if (!other.generalConstraint_.isEmpty()) {
1068  if (generalConstraint_.isEmpty()) {
1069  generalConstraint_ = other.generalConstraint_;
1070  bitField0_ = (bitField0_ & ~0x00000004);
1071  } else {
1072  ensureGeneralConstraintIsMutable();
1073  generalConstraint_.addAll(other.generalConstraint_);
1074  }
1075  onChanged();
1076  }
1077  } else {
1078  if (!other.generalConstraint_.isEmpty()) {
1079  if (generalConstraintBuilder_.isEmpty()) {
1080  generalConstraintBuilder_.dispose();
1081  generalConstraintBuilder_ = null;
1082  generalConstraint_ = other.generalConstraint_;
1083  bitField0_ = (bitField0_ & ~0x00000004);
1084  generalConstraintBuilder_ =
1085  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1086  getGeneralConstraintFieldBuilder() : null;
1087  } else {
1088  generalConstraintBuilder_.addAllMessages(other.generalConstraint_);
1089  }
1090  }
1091  }
1092  if (other.hasMaximize()) {
1093  setMaximize(other.getMaximize());
1094  }
1095  if (other.hasObjectiveOffset()) {
1096  setObjectiveOffset(other.getObjectiveOffset());
1097  }
1098  if (other.hasQuadraticObjective()) {
1099  mergeQuadraticObjective(other.getQuadraticObjective());
1100  }
1101  if (other.hasName()) {
1102  bitField0_ |= 0x00000040;
1103  name_ = other.name_;
1104  onChanged();
1105  }
1106  if (other.hasSolutionHint()) {
1107  mergeSolutionHint(other.getSolutionHint());
1108  }
1109  this.mergeUnknownFields(other.unknownFields);
1110  onChanged();
1111  return this;
1112  }
1113 
1114  @java.lang.Override
1115  public final boolean isInitialized() {
1116  return true;
1117  }
1118 
1119  @java.lang.Override
1121  com.google.protobuf.CodedInputStream input,
1122  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1123  throws java.io.IOException {
1124  com.google.ortools.linearsolver.MPModelProto parsedMessage = null;
1125  try {
1126  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1127  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1128  parsedMessage = (com.google.ortools.linearsolver.MPModelProto) e.getUnfinishedMessage();
1129  throw e.unwrapIOException();
1130  } finally {
1131  if (parsedMessage != null) {
1132  mergeFrom(parsedMessage);
1133  }
1134  }
1135  return this;
1136  }
1137  private int bitField0_;
1138 
1139  private java.util.List<com.google.ortools.linearsolver.MPVariableProto> variable_ =
1140  java.util.Collections.emptyList();
1141  private void ensureVariableIsMutable() {
1142  if (!((bitField0_ & 0x00000001) != 0)) {
1143  variable_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPVariableProto>(variable_);
1144  bitField0_ |= 0x00000001;
1145  }
1146  }
1147 
1148  private com.google.protobuf.RepeatedFieldBuilderV3<
1150 
1159  if (variableBuilder_ == null) {
1160  return java.util.Collections.unmodifiableList(variable_);
1161  } else {
1162  return variableBuilder_.getMessageList();
1163  }
1164  }
1172  public int getVariableCount() {
1173  if (variableBuilder_ == null) {
1174  return variable_.size();
1175  } else {
1176  return variableBuilder_.getCount();
1177  }
1178  }
1187  if (variableBuilder_ == null) {
1188  return variable_.get(index);
1189  } else {
1190  return variableBuilder_.getMessage(index);
1191  }
1192  }
1201  int index, com.google.ortools.linearsolver.MPVariableProto value) {
1202  if (variableBuilder_ == null) {
1203  if (value == null) {
1204  throw new NullPointerException();
1205  }
1206  ensureVariableIsMutable();
1207  variable_.set(index, value);
1208  onChanged();
1209  } else {
1210  variableBuilder_.setMessage(index, value);
1211  }
1212  return this;
1213  }
1222  int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
1223  if (variableBuilder_ == null) {
1224  ensureVariableIsMutable();
1225  variable_.set(index, builderForValue.build());
1226  onChanged();
1227  } else {
1228  variableBuilder_.setMessage(index, builderForValue.build());
1229  }
1230  return this;
1231  }
1240  if (variableBuilder_ == null) {
1241  if (value == null) {
1242  throw new NullPointerException();
1243  }
1244  ensureVariableIsMutable();
1245  variable_.add(value);
1246  onChanged();
1247  } else {
1248  variableBuilder_.addMessage(value);
1249  }
1250  return this;
1251  }
1260  int index, com.google.ortools.linearsolver.MPVariableProto value) {
1261  if (variableBuilder_ == null) {
1262  if (value == null) {
1263  throw new NullPointerException();
1264  }
1265  ensureVariableIsMutable();
1266  variable_.add(index, value);
1267  onChanged();
1268  } else {
1269  variableBuilder_.addMessage(index, value);
1270  }
1271  return this;
1272  }
1282  if (variableBuilder_ == null) {
1283  ensureVariableIsMutable();
1284  variable_.add(builderForValue.build());
1285  onChanged();
1286  } else {
1287  variableBuilder_.addMessage(builderForValue.build());
1288  }
1289  return this;
1290  }
1299  int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
1300  if (variableBuilder_ == null) {
1301  ensureVariableIsMutable();
1302  variable_.add(index, builderForValue.build());
1303  onChanged();
1304  } else {
1305  variableBuilder_.addMessage(index, builderForValue.build());
1306  }
1307  return this;
1308  }
1317  java.lang.Iterable<? extends com.google.ortools.linearsolver.MPVariableProto> values) {
1318  if (variableBuilder_ == null) {
1319  ensureVariableIsMutable();
1320  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1321  values, variable_);
1322  onChanged();
1323  } else {
1324  variableBuilder_.addAllMessages(values);
1325  }
1326  return this;
1327  }
1336  if (variableBuilder_ == null) {
1337  variable_ = java.util.Collections.emptyList();
1338  bitField0_ = (bitField0_ & ~0x00000001);
1339  onChanged();
1340  } else {
1341  variableBuilder_.clear();
1342  }
1343  return this;
1344  }
1352  public Builder removeVariable(int index) {
1353  if (variableBuilder_ == null) {
1354  ensureVariableIsMutable();
1355  variable_.remove(index);
1356  onChanged();
1357  } else {
1358  variableBuilder_.remove(index);
1359  }
1360  return this;
1361  }
1370  int index) {
1371  return getVariableFieldBuilder().getBuilder(index);
1372  }
1381  int index) {
1382  if (variableBuilder_ == null) {
1383  return variable_.get(index); } else {
1384  return variableBuilder_.getMessageOrBuilder(index);
1385  }
1386  }
1394  public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
1396  if (variableBuilder_ != null) {
1397  return variableBuilder_.getMessageOrBuilderList();
1398  } else {
1399  return java.util.Collections.unmodifiableList(variable_);
1400  }
1401  }
1410  return getVariableFieldBuilder().addBuilder(
1412  }
1421  int index) {
1422  return getVariableFieldBuilder().addBuilder(
1424  }
1432  public java.util.List<com.google.ortools.linearsolver.MPVariableProto.Builder>
1434  return getVariableFieldBuilder().getBuilderList();
1435  }
1436  private com.google.protobuf.RepeatedFieldBuilderV3<
1438  getVariableFieldBuilder() {
1439  if (variableBuilder_ == null) {
1440  variableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1442  variable_,
1443  ((bitField0_ & 0x00000001) != 0),
1444  getParentForChildren(),
1445  isClean());
1446  variable_ = null;
1447  }
1448  return variableBuilder_;
1449  }
1450 
1451  private java.util.List<com.google.ortools.linearsolver.MPConstraintProto> constraint_ =
1452  java.util.Collections.emptyList();
1453  private void ensureConstraintIsMutable() {
1454  if (!((bitField0_ & 0x00000002) != 0)) {
1455  constraint_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPConstraintProto>(constraint_);
1456  bitField0_ |= 0x00000002;
1457  }
1458  }
1459 
1460  private com.google.protobuf.RepeatedFieldBuilderV3<
1462 
1471  if (constraintBuilder_ == null) {
1472  return java.util.Collections.unmodifiableList(constraint_);
1473  } else {
1474  return constraintBuilder_.getMessageList();
1475  }
1476  }
1484  public int getConstraintCount() {
1485  if (constraintBuilder_ == null) {
1486  return constraint_.size();
1487  } else {
1488  return constraintBuilder_.getCount();
1489  }
1490  }
1499  if (constraintBuilder_ == null) {
1500  return constraint_.get(index);
1501  } else {
1502  return constraintBuilder_.getMessage(index);
1503  }
1504  }
1513  int index, com.google.ortools.linearsolver.MPConstraintProto value) {
1514  if (constraintBuilder_ == null) {
1515  if (value == null) {
1516  throw new NullPointerException();
1517  }
1518  ensureConstraintIsMutable();
1519  constraint_.set(index, value);
1520  onChanged();
1521  } else {
1522  constraintBuilder_.setMessage(index, value);
1523  }
1524  return this;
1525  }
1534  int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
1535  if (constraintBuilder_ == null) {
1536  ensureConstraintIsMutable();
1537  constraint_.set(index, builderForValue.build());
1538  onChanged();
1539  } else {
1540  constraintBuilder_.setMessage(index, builderForValue.build());
1541  }
1542  return this;
1543  }
1552  if (constraintBuilder_ == null) {
1553  if (value == null) {
1554  throw new NullPointerException();
1555  }
1556  ensureConstraintIsMutable();
1557  constraint_.add(value);
1558  onChanged();
1559  } else {
1560  constraintBuilder_.addMessage(value);
1561  }
1562  return this;
1563  }
1572  int index, com.google.ortools.linearsolver.MPConstraintProto value) {
1573  if (constraintBuilder_ == null) {
1574  if (value == null) {
1575  throw new NullPointerException();
1576  }
1577  ensureConstraintIsMutable();
1578  constraint_.add(index, value);
1579  onChanged();
1580  } else {
1581  constraintBuilder_.addMessage(index, value);
1582  }
1583  return this;
1584  }
1594  if (constraintBuilder_ == null) {
1595  ensureConstraintIsMutable();
1596  constraint_.add(builderForValue.build());
1597  onChanged();
1598  } else {
1599  constraintBuilder_.addMessage(builderForValue.build());
1600  }
1601  return this;
1602  }
1611  int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
1612  if (constraintBuilder_ == null) {
1613  ensureConstraintIsMutable();
1614  constraint_.add(index, builderForValue.build());
1615  onChanged();
1616  } else {
1617  constraintBuilder_.addMessage(index, builderForValue.build());
1618  }
1619  return this;
1620  }
1629  java.lang.Iterable<? extends com.google.ortools.linearsolver.MPConstraintProto> values) {
1630  if (constraintBuilder_ == null) {
1631  ensureConstraintIsMutable();
1632  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1633  values, constraint_);
1634  onChanged();
1635  } else {
1636  constraintBuilder_.addAllMessages(values);
1637  }
1638  return this;
1639  }
1648  if (constraintBuilder_ == null) {
1649  constraint_ = java.util.Collections.emptyList();
1650  bitField0_ = (bitField0_ & ~0x00000002);
1651  onChanged();
1652  } else {
1653  constraintBuilder_.clear();
1654  }
1655  return this;
1656  }
1664  public Builder removeConstraint(int index) {
1665  if (constraintBuilder_ == null) {
1666  ensureConstraintIsMutable();
1667  constraint_.remove(index);
1668  onChanged();
1669  } else {
1670  constraintBuilder_.remove(index);
1671  }
1672  return this;
1673  }
1682  int index) {
1683  return getConstraintFieldBuilder().getBuilder(index);
1684  }
1693  int index) {
1694  if (constraintBuilder_ == null) {
1695  return constraint_.get(index); } else {
1696  return constraintBuilder_.getMessageOrBuilder(index);
1697  }
1698  }
1706  public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
1708  if (constraintBuilder_ != null) {
1709  return constraintBuilder_.getMessageOrBuilderList();
1710  } else {
1711  return java.util.Collections.unmodifiableList(constraint_);
1712  }
1713  }
1722  return getConstraintFieldBuilder().addBuilder(
1724  }
1733  int index) {
1734  return getConstraintFieldBuilder().addBuilder(
1736  }
1744  public java.util.List<com.google.ortools.linearsolver.MPConstraintProto.Builder>
1746  return getConstraintFieldBuilder().getBuilderList();
1747  }
1748  private com.google.protobuf.RepeatedFieldBuilderV3<
1750  getConstraintFieldBuilder() {
1751  if (constraintBuilder_ == null) {
1752  constraintBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1754  constraint_,
1755  ((bitField0_ & 0x00000002) != 0),
1756  getParentForChildren(),
1757  isClean());
1758  constraint_ = null;
1759  }
1760  return constraintBuilder_;
1761  }
1762 
1763  private java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto> generalConstraint_ =
1764  java.util.Collections.emptyList();
1765  private void ensureGeneralConstraintIsMutable() {
1766  if (!((bitField0_ & 0x00000004) != 0)) {
1767  generalConstraint_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPGeneralConstraintProto>(generalConstraint_);
1768  bitField0_ |= 0x00000004;
1769  }
1770  }
1771 
1772  private com.google.protobuf.RepeatedFieldBuilderV3<
1774 
1784  if (generalConstraintBuilder_ == null) {
1785  return java.util.Collections.unmodifiableList(generalConstraint_);
1786  } else {
1787  return generalConstraintBuilder_.getMessageList();
1788  }
1789  }
1799  if (generalConstraintBuilder_ == null) {
1800  return generalConstraint_.size();
1801  } else {
1802  return generalConstraintBuilder_.getCount();
1803  }
1804  }
1814  if (generalConstraintBuilder_ == null) {
1815  return generalConstraint_.get(index);
1816  } else {
1817  return generalConstraintBuilder_.getMessage(index);
1818  }
1819  }
1830  if (generalConstraintBuilder_ == null) {
1831  if (value == null) {
1832  throw new NullPointerException();
1833  }
1834  ensureGeneralConstraintIsMutable();
1835  generalConstraint_.set(index, value);
1836  onChanged();
1837  } else {
1838  generalConstraintBuilder_.setMessage(index, value);
1839  }
1840  return this;
1841  }
1851  int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
1852  if (generalConstraintBuilder_ == null) {
1853  ensureGeneralConstraintIsMutable();
1854  generalConstraint_.set(index, builderForValue.build());
1855  onChanged();
1856  } else {
1857  generalConstraintBuilder_.setMessage(index, builderForValue.build());
1858  }
1859  return this;
1860  }
1870  if (generalConstraintBuilder_ == null) {
1871  if (value == null) {
1872  throw new NullPointerException();
1873  }
1874  ensureGeneralConstraintIsMutable();
1875  generalConstraint_.add(value);
1876  onChanged();
1877  } else {
1878  generalConstraintBuilder_.addMessage(value);
1879  }
1880  return this;
1881  }
1892  if (generalConstraintBuilder_ == null) {
1893  if (value == null) {
1894  throw new NullPointerException();
1895  }
1896  ensureGeneralConstraintIsMutable();
1897  generalConstraint_.add(index, value);
1898  onChanged();
1899  } else {
1900  generalConstraintBuilder_.addMessage(index, value);
1901  }
1902  return this;
1903  }
1914  if (generalConstraintBuilder_ == null) {
1915  ensureGeneralConstraintIsMutable();
1916  generalConstraint_.add(builderForValue.build());
1917  onChanged();
1918  } else {
1919  generalConstraintBuilder_.addMessage(builderForValue.build());
1920  }
1921  return this;
1922  }
1932  int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
1933  if (generalConstraintBuilder_ == null) {
1934  ensureGeneralConstraintIsMutable();
1935  generalConstraint_.add(index, builderForValue.build());
1936  onChanged();
1937  } else {
1938  generalConstraintBuilder_.addMessage(index, builderForValue.build());
1939  }
1940  return this;
1941  }
1951  java.lang.Iterable<? extends com.google.ortools.linearsolver.MPGeneralConstraintProto> values) {
1952  if (generalConstraintBuilder_ == null) {
1953  ensureGeneralConstraintIsMutable();
1954  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1955  values, generalConstraint_);
1956  onChanged();
1957  } else {
1958  generalConstraintBuilder_.addAllMessages(values);
1959  }
1960  return this;
1961  }
1971  if (generalConstraintBuilder_ == null) {
1972  generalConstraint_ = java.util.Collections.emptyList();
1973  bitField0_ = (bitField0_ & ~0x00000004);
1974  onChanged();
1975  } else {
1976  generalConstraintBuilder_.clear();
1977  }
1978  return this;
1979  }
1988  public Builder removeGeneralConstraint(int index) {
1989  if (generalConstraintBuilder_ == null) {
1990  ensureGeneralConstraintIsMutable();
1991  generalConstraint_.remove(index);
1992  onChanged();
1993  } else {
1994  generalConstraintBuilder_.remove(index);
1995  }
1996  return this;
1997  }
2007  int index) {
2008  return getGeneralConstraintFieldBuilder().getBuilder(index);
2009  }
2019  int index) {
2020  if (generalConstraintBuilder_ == null) {
2021  return generalConstraint_.get(index); } else {
2022  return generalConstraintBuilder_.getMessageOrBuilder(index);
2023  }
2024  }
2033  public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
2035  if (generalConstraintBuilder_ != null) {
2036  return generalConstraintBuilder_.getMessageOrBuilderList();
2037  } else {
2038  return java.util.Collections.unmodifiableList(generalConstraint_);
2039  }
2040  }
2050  return getGeneralConstraintFieldBuilder().addBuilder(
2052  }
2062  int index) {
2063  return getGeneralConstraintFieldBuilder().addBuilder(
2065  }
2076  return getGeneralConstraintFieldBuilder().getBuilderList();
2077  }
2078  private com.google.protobuf.RepeatedFieldBuilderV3<
2080  getGeneralConstraintFieldBuilder() {
2081  if (generalConstraintBuilder_ == null) {
2082  generalConstraintBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2084  generalConstraint_,
2085  ((bitField0_ & 0x00000004) != 0),
2086  getParentForChildren(),
2087  isClean());
2088  generalConstraint_ = null;
2089  }
2090  return generalConstraintBuilder_;
2091  }
2092 
2093  private boolean maximize_ ;
2101  public boolean hasMaximize() {
2102  return ((bitField0_ & 0x00000008) != 0);
2103  }
2111  public boolean getMaximize() {
2112  return maximize_;
2113  }
2121  public Builder setMaximize(boolean value) {
2122  bitField0_ |= 0x00000008;
2123  maximize_ = value;
2124  onChanged();
2125  return this;
2126  }
2135  bitField0_ = (bitField0_ & ~0x00000008);
2136  maximize_ = false;
2137  onChanged();
2138  return this;
2139  }
2140 
2141  private double objectiveOffset_ ;
2149  public boolean hasObjectiveOffset() {
2150  return ((bitField0_ & 0x00000010) != 0);
2151  }
2159  public double getObjectiveOffset() {
2160  return objectiveOffset_;
2161  }
2169  public Builder setObjectiveOffset(double value) {
2170  bitField0_ |= 0x00000010;
2171  objectiveOffset_ = value;
2172  onChanged();
2173  return this;
2174  }
2183  bitField0_ = (bitField0_ & ~0x00000010);
2184  objectiveOffset_ = 0D;
2185  onChanged();
2186  return this;
2187  }
2188 
2189  private com.google.ortools.linearsolver.MPQuadraticObjective quadraticObjective_;
2190  private com.google.protobuf.SingleFieldBuilderV3<
2200  public boolean hasQuadraticObjective() {
2201  return ((bitField0_ & 0x00000020) != 0);
2202  }
2212  if (quadraticObjectiveBuilder_ == null) {
2213  return quadraticObjective_ == null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
2214  } else {
2215  return quadraticObjectiveBuilder_.getMessage();
2216  }
2217  }
2227  if (quadraticObjectiveBuilder_ == null) {
2228  if (value == null) {
2229  throw new NullPointerException();
2230  }
2231  quadraticObjective_ = value;
2232  onChanged();
2233  } else {
2234  quadraticObjectiveBuilder_.setMessage(value);
2235  }
2236  bitField0_ |= 0x00000020;
2237  return this;
2238  }
2249  if (quadraticObjectiveBuilder_ == null) {
2250  quadraticObjective_ = builderForValue.build();
2251  onChanged();
2252  } else {
2253  quadraticObjectiveBuilder_.setMessage(builderForValue.build());
2254  }
2255  bitField0_ |= 0x00000020;
2256  return this;
2257  }
2267  if (quadraticObjectiveBuilder_ == null) {
2268  if (((bitField0_ & 0x00000020) != 0) &&
2269  quadraticObjective_ != null &&
2271  quadraticObjective_ =
2273  } else {
2274  quadraticObjective_ = value;
2275  }
2276  onChanged();
2277  } else {
2278  quadraticObjectiveBuilder_.mergeFrom(value);
2279  }
2280  bitField0_ |= 0x00000020;
2281  return this;
2282  }
2292  if (quadraticObjectiveBuilder_ == null) {
2293  quadraticObjective_ = null;
2294  onChanged();
2295  } else {
2296  quadraticObjectiveBuilder_.clear();
2297  }
2298  bitField0_ = (bitField0_ & ~0x00000020);
2299  return this;
2300  }
2310  bitField0_ |= 0x00000020;
2311  onChanged();
2312  return getQuadraticObjectiveFieldBuilder().getBuilder();
2313  }
2323  if (quadraticObjectiveBuilder_ != null) {
2324  return quadraticObjectiveBuilder_.getMessageOrBuilder();
2325  } else {
2326  return quadraticObjective_ == null ?
2328  }
2329  }
2338  private com.google.protobuf.SingleFieldBuilderV3<
2340  getQuadraticObjectiveFieldBuilder() {
2341  if (quadraticObjectiveBuilder_ == null) {
2342  quadraticObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2345  getParentForChildren(),
2346  isClean());
2347  quadraticObjective_ = null;
2348  }
2349  return quadraticObjectiveBuilder_;
2350  }
2351 
2352  private java.lang.Object name_ = "";
2360  public boolean hasName() {
2361  return ((bitField0_ & 0x00000040) != 0);
2362  }
2370  public java.lang.String getName() {
2371  java.lang.Object ref = name_;
2372  if (!(ref instanceof java.lang.String)) {
2373  com.google.protobuf.ByteString bs =
2374  (com.google.protobuf.ByteString) ref;
2375  java.lang.String s = bs.toStringUtf8();
2376  if (bs.isValidUtf8()) {
2377  name_ = s;
2378  }
2379  return s;
2380  } else {
2381  return (java.lang.String) ref;
2382  }
2383  }
2391  public com.google.protobuf.ByteString
2393  java.lang.Object ref = name_;
2394  if (ref instanceof String) {
2395  com.google.protobuf.ByteString b =
2396  com.google.protobuf.ByteString.copyFromUtf8(
2397  (java.lang.String) ref);
2398  name_ = b;
2399  return b;
2400  } else {
2401  return (com.google.protobuf.ByteString) ref;
2402  }
2403  }
2412  java.lang.String value) {
2413  if (value == null) {
2414  throw new NullPointerException();
2415  }
2416  bitField0_ |= 0x00000040;
2417  name_ = value;
2418  onChanged();
2419  return this;
2420  }
2428  public Builder clearName() {
2429  bitField0_ = (bitField0_ & ~0x00000040);
2430  name_ = getDefaultInstance().getName();
2431  onChanged();
2432  return this;
2433  }
2442  com.google.protobuf.ByteString value) {
2443  if (value == null) {
2444  throw new NullPointerException();
2445  }
2446  bitField0_ |= 0x00000040;
2447  name_ = value;
2448  onChanged();
2449  return this;
2450  }
2451 
2453  private com.google.protobuf.SingleFieldBuilderV3<
2470  public boolean hasSolutionHint() {
2471  return ((bitField0_ & 0x00000080) != 0);
2472  }
2489  if (solutionHintBuilder_ == null) {
2490  return solutionHint_ == null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
2491  } else {
2492  return solutionHintBuilder_.getMessage();
2493  }
2494  }
2511  if (solutionHintBuilder_ == null) {
2512  if (value == null) {
2513  throw new NullPointerException();
2514  }
2515  solutionHint_ = value;
2516  onChanged();
2517  } else {
2518  solutionHintBuilder_.setMessage(value);
2519  }
2520  bitField0_ |= 0x00000080;
2521  return this;
2522  }
2540  if (solutionHintBuilder_ == null) {
2541  solutionHint_ = builderForValue.build();
2542  onChanged();
2543  } else {
2544  solutionHintBuilder_.setMessage(builderForValue.build());
2545  }
2546  bitField0_ |= 0x00000080;
2547  return this;
2548  }
2565  if (solutionHintBuilder_ == null) {
2566  if (((bitField0_ & 0x00000080) != 0) &&
2567  solutionHint_ != null &&
2569  solutionHint_ =
2571  } else {
2572  solutionHint_ = value;
2573  }
2574  onChanged();
2575  } else {
2576  solutionHintBuilder_.mergeFrom(value);
2577  }
2578  bitField0_ |= 0x00000080;
2579  return this;
2580  }
2597  if (solutionHintBuilder_ == null) {
2598  solutionHint_ = null;
2599  onChanged();
2600  } else {
2601  solutionHintBuilder_.clear();
2602  }
2603  bitField0_ = (bitField0_ & ~0x00000080);
2604  return this;
2605  }
2622  bitField0_ |= 0x00000080;
2623  onChanged();
2624  return getSolutionHintFieldBuilder().getBuilder();
2625  }
2642  if (solutionHintBuilder_ != null) {
2643  return solutionHintBuilder_.getMessageOrBuilder();
2644  } else {
2645  return solutionHint_ == null ?
2647  }
2648  }
2664  private com.google.protobuf.SingleFieldBuilderV3<
2666  getSolutionHintFieldBuilder() {
2667  if (solutionHintBuilder_ == null) {
2668  solutionHintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2670  getSolutionHint(),
2671  getParentForChildren(),
2672  isClean());
2673  solutionHint_ = null;
2674  }
2675  return solutionHintBuilder_;
2676  }
2677  @java.lang.Override
2679  final com.google.protobuf.UnknownFieldSet unknownFields) {
2680  return super.setUnknownFields(unknownFields);
2681  }
2682 
2683  @java.lang.Override
2685  final com.google.protobuf.UnknownFieldSet unknownFields) {
2686  return super.mergeUnknownFields(unknownFields);
2687  }
2688 
2689 
2690  // @@protoc_insertion_point(builder_scope:operations_research.MPModelProto)
2691  }
2692 
2693  // @@protoc_insertion_point(class_scope:operations_research.MPModelProto)
2694  private static final com.google.ortools.linearsolver.MPModelProto DEFAULT_INSTANCE;
2695  static {
2696  DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPModelProto();
2697  }
2698 
2700  return DEFAULT_INSTANCE;
2701  }
2702 
2703  @java.lang.Deprecated public static final com.google.protobuf.Parser<MPModelProto>
2704  PARSER = new com.google.protobuf.AbstractParser<MPModelProto>() {
2705  @java.lang.Override
2706  public MPModelProto parsePartialFrom(
2707  com.google.protobuf.CodedInputStream input,
2708  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2709  throws com.google.protobuf.InvalidProtocolBufferException {
2710  return new MPModelProto(input, extensionRegistry);
2711  }
2712  };
2713 
2714  public static com.google.protobuf.Parser<MPModelProto> parser() {
2715  return PARSER;
2716  }
2717 
2718  @java.lang.Override
2719  public com.google.protobuf.Parser<MPModelProto> getParserForType() {
2720  return PARSER;
2721  }
2722 
2723  @java.lang.Override
2725  return DEFAULT_INSTANCE;
2726  }
2727 
2728 }
2729 
boolean hasSolutionHint()
Builder addVariable(com.google.ortools.linearsolver.MPVariableProto value)
Builder setMaximize(boolean value)
com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder addGeneralConstraintBuilder(int index)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder setGeneralConstraint(int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value)
Builder clearVariable()
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
static com.google.ortools.linearsolver.MPQuadraticObjective getDefaultInstance()
.lang.Override boolean equals(final java.lang.Object obj)
static final int GENERAL_CONSTRAINT_FIELD_NUMBER
Builder setConstraint(int index, com.google.ortools.linearsolver.MPConstraintProto value)
Builder mergeSolutionHint(com.google.ortools.linearsolver.PartialVariableAssignment value)
boolean hasQuadraticObjective()
static com.google.ortools.linearsolver.MPModelProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.linearsolver.MPModelProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override Builder toBuilder()
int getVariableCount()
boolean hasMaximize()
.lang.Override com.google.ortools.linearsolver.MPModelProto build()
com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder addGeneralConstraintBuilder()
.lang.Override void writeTo(com.google.protobuf.CodedOutputStream output)
Builder addGeneralConstraint(com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue)
Builder setObjectiveOffset(double value)
int getVariableCount()
Builder clearObjectiveOffset()
.lang.Override Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
.lang.Override Builder toBuilder()
com.google.ortools.linearsolver.MPConstraintProto.Builder addConstraintBuilder()
java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder > getConstraintOrBuilderList()
static com.google.ortools.linearsolver.MPVariableProto getDefaultInstance()
com.google.ortools.linearsolver.MPConstraintProtoOrBuilder getConstraintOrBuilder(int index)
java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder > getGeneralConstraintOrBuilderList()
.lang.Override final boolean isInitialized()
Builder setVariable(int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue)
Builder setNameBytes(com.google.protobuf.ByteString value)
Builder addConstraint(int index, com.google.ortools.linearsolver.MPConstraintProto value)
java.util.List< com.google.ortools.linearsolver.MPVariableProto > getVariableList()
.lang.Deprecated static final com.google.protobuf.Parser< MPConstraintProto > PARSER
static com.google.ortools.linearsolver.MPGeneralConstraintProto getDefaultInstance()
com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder getQuadraticObjectiveOrBuilder()
static com.google.ortools.linearsolver.MPModelProto parseFrom(byte[] data)
com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder()
.lang.Override com.google.ortools.linearsolver.MPQuadraticObjective buildPartial()
com.google.ortools.linearsolver.PartialVariableAssignment getSolutionHint()
boolean getMaximize()
Builder addConstraint(com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue)
Builder addGeneralConstraint(com.google.ortools.linearsolver.MPGeneralConstraintProto value)
java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto > getGeneralConstraintList()
Builder setSolutionHint(com.google.ortools.linearsolver.PartialVariableAssignment.Builder builderForValue)
.lang.Override Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
static com.google.ortools.linearsolver.MPModelProto parseFrom(java.io.InputStream input)
.lang.Override com.google.ortools.linearsolver.MPModelProto getDefaultInstanceForType()
static com.google.ortools.linearsolver.PartialVariableAssignment getDefaultInstance()
Builder addGeneralConstraint(int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue)
static final int OBJECTIVE_OFFSET_FIELD_NUMBER
com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder getGeneralConstraintBuilder(int index)
com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder getGeneralConstraintOrBuilder(int index)
.lang.Override com.google.protobuf.Parser< MPModelProto > getParserForType()
.lang.Override Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
com.google.ortools.linearsolver.MPVariableProto.Builder addVariableBuilder(int index)
com.google.ortools.linearsolver.MPVariableProto.Builder getVariableBuilder(int index)
static com.google.ortools.linearsolver.MPModelProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder addVariable(com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue)
boolean hasQuadraticObjective()
Builder removeGeneralConstraint(int index)
.lang.Override com.google.ortools.linearsolver.MPModelProto getDefaultInstanceForType()
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Builder setVariable(int index, com.google.ortools.linearsolver.MPVariableProto value)
static final int SOLUTION_HINT_FIELD_NUMBER
java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder > getConstraintOrBuilderList()
static final int NAME_FIELD_NUMBER
com.google.ortools.linearsolver.MPVariableProto getVariable(int index)
boolean hasObjectiveOffset()
com.google.ortools.linearsolver.MPGeneralConstraintProto getGeneralConstraint(int index)
com.google.ortools.linearsolver.MPGeneralConstraintProto getGeneralConstraint(int index)
java.lang.String getName()
java.util.List< com.google.ortools.linearsolver.MPConstraintProto.Builder > getConstraintBuilderList()
.lang.Override final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
static final int VARIABLE_FIELD_NUMBER
static com.google.ortools.linearsolver.MPModelProto parseFrom(com.google.protobuf.ByteString data)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
boolean hasName()
com.google.ortools.linearsolver.PartialVariableAssignment.Builder getSolutionHintBuilder()
Builder setConstraint(int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue)
Builder removeVariable(int index)
static com.google.ortools.linearsolver.MPModelProto parseFrom(com.google.protobuf.CodedInputStream input)
.lang.Override int hashCode()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Builder removeConstraint(int index)
int getConstraintCount()
com.google.ortools.linearsolver.MPVariableProto.Builder addVariableBuilder()
Builder addVariable(int index, com.google.ortools.linearsolver.MPVariableProto value)
java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder > getVariableOrBuilderList()
java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder > getVariableOrBuilderList()
java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder > getGeneralConstraintBuilderList()
.lang.Deprecated static final com.google.protobuf.Parser< MPVariableProto > PARSER
boolean hasMaximize()
com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder getQuadraticObjectiveOrBuilder()
int getConstraintCount()
int getGeneralConstraintCount()
com.google.ortools.linearsolver.MPConstraintProto getConstraint(int index)
Builder setGeneralConstraint(int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue)
Builder addVariable(int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue)
Builder clearConstraint()
com.google.ortools.linearsolver.MPConstraintProtoOrBuilder getConstraintOrBuilder(int index)
static Builder newBuilder(com.google.ortools.linearsolver.MPModelProto prototype)
.lang.Deprecated static final com.google.protobuf.Parser< MPQuadraticObjective > PARSER
com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder()
Builder setName(java.lang.String value)
Builder addAllGeneralConstraint(java.lang.Iterable<? extends com.google.ortools.linearsolver.MPGeneralConstraintProto > values)
.lang.Override Builder mergeFrom(com.google.protobuf.Message other)
com.google.ortools.linearsolver.MPQuadraticObjective getQuadraticObjective()
Builder setSolutionHint(com.google.ortools.linearsolver.PartialVariableAssignment value)
Builder mergeQuadraticObjective(com.google.ortools.linearsolver.MPQuadraticObjective value)
com.google.ortools.linearsolver.MPVariableProtoOrBuilder getVariableOrBuilder(int index)
static com.google.ortools.linearsolver.MPModelProto parseDelimitedFrom(java.io.InputStream input)
Builder mergeFrom(com.google.ortools.linearsolver.MPModelProto other)
static com.google.ortools.linearsolver.MPModelProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder addConstraint(int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue)
boolean hasObjectiveOffset()
.lang.Override Builder newBuilderForType()
com.google.ortools.linearsolver.MPConstraintProto.Builder addConstraintBuilder(int index)
.lang.Override Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
static com.google.ortools.linearsolver.MPModelProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Builder addGeneralConstraint(int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value)
Builder clearMaximize()
Builder addConstraint(com.google.ortools.linearsolver.MPConstraintProto value)
java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder > getGeneralConstraintOrBuilderList()
.lang.Override int getSerializedSize()
static Builder newBuilder()
com.google.protobuf.ByteString getNameBytes()
.lang.Override int hashCode()
.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields()
static com.google.protobuf.Parser< MPModelProto > parser()
static com.google.ortools.linearsolver.MPModelProto getDefaultInstance()
com.google.ortools.linearsolver.MPQuadraticObjective.Builder getQuadraticObjectiveBuilder()
static Builder newBuilder()
.lang.Override Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
java.util.List< com.google.ortools.linearsolver.MPConstraintProto > getConstraintList()
static final int CONSTRAINT_FIELD_NUMBER
com.google.ortools.linearsolver.MPQuadraticObjective getQuadraticObjective()
static com.google.ortools.linearsolver.MPConstraintProto getDefaultInstance()
Builder clearName()
.lang.Override com.google.ortools.linearsolver.MPModelProto buildPartial()
com.google.ortools.linearsolver.MPConstraintProto getConstraint(int index)
.lang.Override Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
double getObjectiveOffset()
java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto > getGeneralConstraintList()
.lang.Override final boolean isInitialized()
static final int MAXIMIZE_FIELD_NUMBER
java.util.List< com.google.ortools.linearsolver.MPVariableProto > getVariableList()
static final int QUADRATIC_OBJECTIVE_FIELD_NUMBER
.lang.Override Builder clear()
Builder addAllVariable(java.lang.Iterable<? extends com.google.ortools.linearsolver.MPVariableProto > values)
boolean hasName()
java.util.List< com.google.ortools.linearsolver.MPConstraintProto > getConstraintList()
.lang.Override boolean equals(final java.lang.Object obj)
.lang.Override Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
static com.google.ortools.linearsolver.MPModelProto parseFrom(java.nio.ByteBuffer data)
Builder setQuadraticObjective(com.google.ortools.linearsolver.MPQuadraticObjective value)
.lang.Deprecated static final com.google.protobuf.Parser< PartialVariableAssignment > PARSER
static com.google.ortools.linearsolver.MPModelProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder getGeneralConstraintOrBuilder(int index)
boolean getMaximize()
Builder setQuadraticObjective(com.google.ortools.linearsolver.MPQuadraticObjective.Builder builderForValue)
.lang.Deprecated static final com.google.protobuf.Parser< MPModelProto > PARSER
.lang.Override int hashCode()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.linearsolver.PartialVariableAssignment getSolutionHint()
java.util.List< com.google.ortools.linearsolver.MPVariableProto.Builder > getVariableBuilderList()
.lang.Deprecated static final com.google.protobuf.Parser< MPGeneralConstraintProto > PARSER
int getGeneralConstraintCount()
.lang.Override java.lang.Object newInstance(UnusedPrivateParameter unused)
double getObjectiveOffset()
static Builder newBuilder()
.lang.Override com.google.ortools.linearsolver.PartialVariableAssignment buildPartial()
Builder clearGeneralConstraint()
Builder addAllConstraint(java.lang.Iterable<? extends com.google.ortools.linearsolver.MPConstraintProto > values)
Builder clearQuadraticObjective()
java.lang.String getName()
com.google.ortools.linearsolver.MPVariableProto getVariable(int index)
com.google.ortools.linearsolver.MPVariableProtoOrBuilder getVariableOrBuilder(int index)
com.google.ortools.linearsolver.MPConstraintProto.Builder getConstraintBuilder(int index)
.lang.Override Builder toBuilder()
boolean hasSolutionHint()
com.google.protobuf.ByteString getNameBytes()
Builder clearSolutionHint()
.lang.Override Builder clone()