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_;
351  public boolean hasMaximize() {
352  return ((bitField0_ & 0x00000001) != 0);
353  }
362  public boolean getMaximize() {
363  return maximize_;
364  }
365 
366  public static final int OBJECTIVE_OFFSET_FIELD_NUMBER = 2;
367  private double objectiveOffset_;
376  public boolean hasObjectiveOffset() {
377  return ((bitField0_ & 0x00000002) != 0);
378  }
387  public double getObjectiveOffset() {
388  return objectiveOffset_;
389  }
390 
391  public static final int QUADRATIC_OBJECTIVE_FIELD_NUMBER = 8;
392  private com.google.ortools.linearsolver.MPQuadraticObjective quadraticObjective_;
402  public boolean hasQuadraticObjective() {
403  return ((bitField0_ & 0x00000004) != 0);
404  }
415  return quadraticObjective_ == null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
416  }
426  return quadraticObjective_ == null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
427  }
428 
429  public static final int NAME_FIELD_NUMBER = 5;
430  private volatile java.lang.Object name_;
439  public boolean hasName() {
440  return ((bitField0_ & 0x00000008) != 0);
441  }
450  public java.lang.String getName() {
451  java.lang.Object ref = name_;
452  if (ref instanceof java.lang.String) {
453  return (java.lang.String) ref;
454  } else {
455  com.google.protobuf.ByteString bs =
456  (com.google.protobuf.ByteString) ref;
457  java.lang.String s = bs.toStringUtf8();
458  if (bs.isValidUtf8()) {
459  name_ = s;
460  }
461  return s;
462  }
463  }
472  public com.google.protobuf.ByteString
474  java.lang.Object ref = name_;
475  if (ref instanceof java.lang.String) {
476  com.google.protobuf.ByteString b =
477  com.google.protobuf.ByteString.copyFromUtf8(
478  (java.lang.String) ref);
479  name_ = b;
480  return b;
481  } else {
482  return (com.google.protobuf.ByteString) ref;
483  }
484  }
485 
486  public static final int SOLUTION_HINT_FIELD_NUMBER = 6;
504  public boolean hasSolutionHint() {
505  return ((bitField0_ & 0x00000010) != 0);
506  }
524  return solutionHint_ == null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
525  }
542  return solutionHint_ == null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
543  }
544 
545  private byte memoizedIsInitialized = -1;
546  @java.lang.Override
547  public final boolean isInitialized() {
548  byte isInitialized = memoizedIsInitialized;
549  if (isInitialized == 1) return true;
550  if (isInitialized == 0) return false;
551 
552  memoizedIsInitialized = 1;
553  return true;
554  }
555 
556  @java.lang.Override
557  public void writeTo(com.google.protobuf.CodedOutputStream output)
558  throws java.io.IOException {
559  if (((bitField0_ & 0x00000001) != 0)) {
560  output.writeBool(1, maximize_);
561  }
562  if (((bitField0_ & 0x00000002) != 0)) {
563  output.writeDouble(2, objectiveOffset_);
564  }
565  for (int i = 0; i < variable_.size(); i++) {
566  output.writeMessage(3, variable_.get(i));
567  }
568  for (int i = 0; i < constraint_.size(); i++) {
569  output.writeMessage(4, constraint_.get(i));
570  }
571  if (((bitField0_ & 0x00000008) != 0)) {
572  com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
573  }
574  if (((bitField0_ & 0x00000010) != 0)) {
575  output.writeMessage(6, getSolutionHint());
576  }
577  for (int i = 0; i < generalConstraint_.size(); i++) {
578  output.writeMessage(7, generalConstraint_.get(i));
579  }
580  if (((bitField0_ & 0x00000004) != 0)) {
581  output.writeMessage(8, getQuadraticObjective());
582  }
583  unknownFields.writeTo(output);
584  }
585 
586  @java.lang.Override
587  public int getSerializedSize() {
588  int size = memoizedSize;
589  if (size != -1) return size;
590 
591  size = 0;
592  if (((bitField0_ & 0x00000001) != 0)) {
593  size += com.google.protobuf.CodedOutputStream
594  .computeBoolSize(1, maximize_);
595  }
596  if (((bitField0_ & 0x00000002) != 0)) {
597  size += com.google.protobuf.CodedOutputStream
598  .computeDoubleSize(2, objectiveOffset_);
599  }
600  for (int i = 0; i < variable_.size(); i++) {
601  size += com.google.protobuf.CodedOutputStream
602  .computeMessageSize(3, variable_.get(i));
603  }
604  for (int i = 0; i < constraint_.size(); i++) {
605  size += com.google.protobuf.CodedOutputStream
606  .computeMessageSize(4, constraint_.get(i));
607  }
608  if (((bitField0_ & 0x00000008) != 0)) {
609  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
610  }
611  if (((bitField0_ & 0x00000010) != 0)) {
612  size += com.google.protobuf.CodedOutputStream
613  .computeMessageSize(6, getSolutionHint());
614  }
615  for (int i = 0; i < generalConstraint_.size(); i++) {
616  size += com.google.protobuf.CodedOutputStream
617  .computeMessageSize(7, generalConstraint_.get(i));
618  }
619  if (((bitField0_ & 0x00000004) != 0)) {
620  size += com.google.protobuf.CodedOutputStream
621  .computeMessageSize(8, getQuadraticObjective());
622  }
623  size += unknownFields.getSerializedSize();
624  memoizedSize = size;
625  return size;
626  }
627 
628  @java.lang.Override
629  public boolean equals(final java.lang.Object obj) {
630  if (obj == this) {
631  return true;
632  }
633  if (!(obj instanceof com.google.ortools.linearsolver.MPModelProto)) {
634  return super.equals(obj);
635  }
637 
638  if (!getVariableList()
639  .equals(other.getVariableList())) return false;
640  if (!getConstraintList()
641  .equals(other.getConstraintList())) return false;
643  .equals(other.getGeneralConstraintList())) return false;
644  if (hasMaximize() != other.hasMaximize()) return false;
645  if (hasMaximize()) {
646  if (getMaximize()
647  != other.getMaximize()) return false;
648  }
649  if (hasObjectiveOffset() != other.hasObjectiveOffset()) return false;
650  if (hasObjectiveOffset()) {
651  if (java.lang.Double.doubleToLongBits(getObjectiveOffset())
652  != java.lang.Double.doubleToLongBits(
653  other.getObjectiveOffset())) return false;
654  }
655  if (hasQuadraticObjective() != other.hasQuadraticObjective()) return false;
656  if (hasQuadraticObjective()) {
657  if (!getQuadraticObjective()
658  .equals(other.getQuadraticObjective())) return false;
659  }
660  if (hasName() != other.hasName()) return false;
661  if (hasName()) {
662  if (!getName()
663  .equals(other.getName())) return false;
664  }
665  if (hasSolutionHint() != other.hasSolutionHint()) return false;
666  if (hasSolutionHint()) {
667  if (!getSolutionHint()
668  .equals(other.getSolutionHint())) return false;
669  }
670  if (!unknownFields.equals(other.unknownFields)) return false;
671  return true;
672  }
673 
674  @java.lang.Override
675  public int hashCode() {
676  if (memoizedHashCode != 0) {
677  return memoizedHashCode;
678  }
679  int hash = 41;
680  hash = (19 * hash) + getDescriptor().hashCode();
681  if (getVariableCount() > 0) {
682  hash = (37 * hash) + VARIABLE_FIELD_NUMBER;
683  hash = (53 * hash) + getVariableList().hashCode();
684  }
685  if (getConstraintCount() > 0) {
686  hash = (37 * hash) + CONSTRAINT_FIELD_NUMBER;
687  hash = (53 * hash) + getConstraintList().hashCode();
688  }
689  if (getGeneralConstraintCount() > 0) {
690  hash = (37 * hash) + GENERAL_CONSTRAINT_FIELD_NUMBER;
691  hash = (53 * hash) + getGeneralConstraintList().hashCode();
692  }
693  if (hasMaximize()) {
694  hash = (37 * hash) + MAXIMIZE_FIELD_NUMBER;
695  hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
696  getMaximize());
697  }
698  if (hasObjectiveOffset()) {
699  hash = (37 * hash) + OBJECTIVE_OFFSET_FIELD_NUMBER;
700  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
701  java.lang.Double.doubleToLongBits(getObjectiveOffset()));
702  }
703  if (hasQuadraticObjective()) {
704  hash = (37 * hash) + QUADRATIC_OBJECTIVE_FIELD_NUMBER;
705  hash = (53 * hash) + getQuadraticObjective().hashCode();
706  }
707  if (hasName()) {
708  hash = (37 * hash) + NAME_FIELD_NUMBER;
709  hash = (53 * hash) + getName().hashCode();
710  }
711  if (hasSolutionHint()) {
712  hash = (37 * hash) + SOLUTION_HINT_FIELD_NUMBER;
713  hash = (53 * hash) + getSolutionHint().hashCode();
714  }
715  hash = (29 * hash) + unknownFields.hashCode();
716  memoizedHashCode = hash;
717  return hash;
718  }
719 
721  java.nio.ByteBuffer data)
722  throws com.google.protobuf.InvalidProtocolBufferException {
723  return PARSER.parseFrom(data);
724  }
726  java.nio.ByteBuffer data,
727  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
728  throws com.google.protobuf.InvalidProtocolBufferException {
729  return PARSER.parseFrom(data, extensionRegistry);
730  }
732  com.google.protobuf.ByteString data)
733  throws com.google.protobuf.InvalidProtocolBufferException {
734  return PARSER.parseFrom(data);
735  }
737  com.google.protobuf.ByteString data,
738  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
739  throws com.google.protobuf.InvalidProtocolBufferException {
740  return PARSER.parseFrom(data, extensionRegistry);
741  }
743  throws com.google.protobuf.InvalidProtocolBufferException {
744  return PARSER.parseFrom(data);
745  }
747  byte[] data,
748  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
749  throws com.google.protobuf.InvalidProtocolBufferException {
750  return PARSER.parseFrom(data, extensionRegistry);
751  }
752  public static com.google.ortools.linearsolver.MPModelProto parseFrom(java.io.InputStream input)
753  throws java.io.IOException {
754  return com.google.protobuf.GeneratedMessageV3
755  .parseWithIOException(PARSER, input);
756  }
758  java.io.InputStream input,
759  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
760  throws java.io.IOException {
761  return com.google.protobuf.GeneratedMessageV3
762  .parseWithIOException(PARSER, input, extensionRegistry);
763  }
764  public static com.google.ortools.linearsolver.MPModelProto parseDelimitedFrom(java.io.InputStream input)
765  throws java.io.IOException {
766  return com.google.protobuf.GeneratedMessageV3
767  .parseDelimitedWithIOException(PARSER, input);
768  }
770  java.io.InputStream input,
771  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
772  throws java.io.IOException {
773  return com.google.protobuf.GeneratedMessageV3
774  .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
775  }
777  com.google.protobuf.CodedInputStream input)
778  throws java.io.IOException {
779  return com.google.protobuf.GeneratedMessageV3
780  .parseWithIOException(PARSER, input);
781  }
783  com.google.protobuf.CodedInputStream input,
784  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
785  throws java.io.IOException {
786  return com.google.protobuf.GeneratedMessageV3
787  .parseWithIOException(PARSER, input, extensionRegistry);
788  }
789 
790  @java.lang.Override
791  public Builder newBuilderForType() { return newBuilder(); }
792  public static Builder newBuilder() {
793  return DEFAULT_INSTANCE.toBuilder();
794  }
796  return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
797  }
798  @java.lang.Override
799  public Builder toBuilder() {
800  return this == DEFAULT_INSTANCE
801  ? new Builder() : new Builder().mergeFrom(this);
802  }
803 
804  @java.lang.Override
806  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
807  Builder builder = new Builder(parent);
808  return builder;
809  }
817  public static final class Builder extends
818  com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
819  // @@protoc_insertion_point(builder_implements:operations_research.MPModelProto)
820  com.google.ortools.linearsolver.MPModelProtoOrBuilder {
821  public static final com.google.protobuf.Descriptors.Descriptor
823  return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
824  }
825 
826  @java.lang.Override
827  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
829  return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_fieldAccessorTable
830  .ensureFieldAccessorsInitialized(
832  }
833 
834  // Construct using com.google.ortools.linearsolver.MPModelProto.newBuilder()
835  private Builder() {
836  maybeForceBuilderInitialization();
837  }
838 
839  private Builder(
840  com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
841  super(parent);
842  maybeForceBuilderInitialization();
843  }
844  private void maybeForceBuilderInitialization() {
845  if (com.google.protobuf.GeneratedMessageV3
846  .alwaysUseFieldBuilders) {
847  getVariableFieldBuilder();
848  getConstraintFieldBuilder();
849  getGeneralConstraintFieldBuilder();
850  getQuadraticObjectiveFieldBuilder();
851  getSolutionHintFieldBuilder();
852  }
853  }
854  @java.lang.Override
855  public Builder clear() {
856  super.clear();
857  if (variableBuilder_ == null) {
858  variable_ = java.util.Collections.emptyList();
859  bitField0_ = (bitField0_ & ~0x00000001);
860  } else {
861  variableBuilder_.clear();
862  }
863  if (constraintBuilder_ == null) {
864  constraint_ = java.util.Collections.emptyList();
865  bitField0_ = (bitField0_ & ~0x00000002);
866  } else {
867  constraintBuilder_.clear();
868  }
869  if (generalConstraintBuilder_ == null) {
870  generalConstraint_ = java.util.Collections.emptyList();
871  bitField0_ = (bitField0_ & ~0x00000004);
872  } else {
873  generalConstraintBuilder_.clear();
874  }
875  maximize_ = false;
876  bitField0_ = (bitField0_ & ~0x00000008);
877  objectiveOffset_ = 0D;
878  bitField0_ = (bitField0_ & ~0x00000010);
879  if (quadraticObjectiveBuilder_ == null) {
880  quadraticObjective_ = null;
881  } else {
882  quadraticObjectiveBuilder_.clear();
883  }
884  bitField0_ = (bitField0_ & ~0x00000020);
885  name_ = "";
886  bitField0_ = (bitField0_ & ~0x00000040);
887  if (solutionHintBuilder_ == null) {
888  solutionHint_ = null;
889  } else {
890  solutionHintBuilder_.clear();
891  }
892  bitField0_ = (bitField0_ & ~0x00000080);
893  return this;
894  }
895 
896  @java.lang.Override
897  public com.google.protobuf.Descriptors.Descriptor
899  return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPModelProto_descriptor;
900  }
901 
902  @java.lang.Override
905  }
906 
907  @java.lang.Override
910  if (!result.isInitialized()) {
911  throw newUninitializedMessageException(result);
912  }
913  return result;
914  }
915 
916  @java.lang.Override
919  int from_bitField0_ = bitField0_;
920  int to_bitField0_ = 0;
921  if (variableBuilder_ == null) {
922  if (((bitField0_ & 0x00000001) != 0)) {
923  variable_ = java.util.Collections.unmodifiableList(variable_);
924  bitField0_ = (bitField0_ & ~0x00000001);
925  }
926  result.variable_ = variable_;
927  } else {
928  result.variable_ = variableBuilder_.build();
929  }
930  if (constraintBuilder_ == null) {
931  if (((bitField0_ & 0x00000002) != 0)) {
932  constraint_ = java.util.Collections.unmodifiableList(constraint_);
933  bitField0_ = (bitField0_ & ~0x00000002);
934  }
935  result.constraint_ = constraint_;
936  } else {
937  result.constraint_ = constraintBuilder_.build();
938  }
939  if (generalConstraintBuilder_ == null) {
940  if (((bitField0_ & 0x00000004) != 0)) {
941  generalConstraint_ = java.util.Collections.unmodifiableList(generalConstraint_);
942  bitField0_ = (bitField0_ & ~0x00000004);
943  }
944  result.generalConstraint_ = generalConstraint_;
945  } else {
946  result.generalConstraint_ = generalConstraintBuilder_.build();
947  }
948  if (((from_bitField0_ & 0x00000008) != 0)) {
949  result.maximize_ = maximize_;
950  to_bitField0_ |= 0x00000001;
951  }
952  if (((from_bitField0_ & 0x00000010) != 0)) {
953  result.objectiveOffset_ = objectiveOffset_;
954  to_bitField0_ |= 0x00000002;
955  }
956  if (((from_bitField0_ & 0x00000020) != 0)) {
957  if (quadraticObjectiveBuilder_ == null) {
958  result.quadraticObjective_ = quadraticObjective_;
959  } else {
960  result.quadraticObjective_ = quadraticObjectiveBuilder_.build();
961  }
962  to_bitField0_ |= 0x00000004;
963  }
964  if (((from_bitField0_ & 0x00000040) != 0)) {
965  to_bitField0_ |= 0x00000008;
966  }
967  result.name_ = name_;
968  if (((from_bitField0_ & 0x00000080) != 0)) {
969  if (solutionHintBuilder_ == null) {
970  result.solutionHint_ = solutionHint_;
971  } else {
972  result.solutionHint_ = solutionHintBuilder_.build();
973  }
974  to_bitField0_ |= 0x00000010;
975  }
976  result.bitField0_ = to_bitField0_;
977  onBuilt();
978  return result;
979  }
980 
981  @java.lang.Override
982  public Builder clone() {
983  return super.clone();
984  }
985  @java.lang.Override
987  com.google.protobuf.Descriptors.FieldDescriptor field,
988  java.lang.Object value) {
989  return super.setField(field, value);
990  }
991  @java.lang.Override
993  com.google.protobuf.Descriptors.FieldDescriptor field) {
994  return super.clearField(field);
995  }
996  @java.lang.Override
998  com.google.protobuf.Descriptors.OneofDescriptor oneof) {
999  return super.clearOneof(oneof);
1000  }
1001  @java.lang.Override
1003  com.google.protobuf.Descriptors.FieldDescriptor field,
1004  int index, java.lang.Object value) {
1005  return super.setRepeatedField(field, index, value);
1006  }
1007  @java.lang.Override
1009  com.google.protobuf.Descriptors.FieldDescriptor field,
1010  java.lang.Object value) {
1011  return super.addRepeatedField(field, value);
1012  }
1013  @java.lang.Override
1014  public Builder mergeFrom(com.google.protobuf.Message other) {
1015  if (other instanceof com.google.ortools.linearsolver.MPModelProto) {
1017  } else {
1018  super.mergeFrom(other);
1019  return this;
1020  }
1021  }
1022 
1024  if (other == com.google.ortools.linearsolver.MPModelProto.getDefaultInstance()) return this;
1025  if (variableBuilder_ == null) {
1026  if (!other.variable_.isEmpty()) {
1027  if (variable_.isEmpty()) {
1028  variable_ = other.variable_;
1029  bitField0_ = (bitField0_ & ~0x00000001);
1030  } else {
1031  ensureVariableIsMutable();
1032  variable_.addAll(other.variable_);
1033  }
1034  onChanged();
1035  }
1036  } else {
1037  if (!other.variable_.isEmpty()) {
1038  if (variableBuilder_.isEmpty()) {
1039  variableBuilder_.dispose();
1040  variableBuilder_ = null;
1041  variable_ = other.variable_;
1042  bitField0_ = (bitField0_ & ~0x00000001);
1043  variableBuilder_ =
1044  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1045  getVariableFieldBuilder() : null;
1046  } else {
1047  variableBuilder_.addAllMessages(other.variable_);
1048  }
1049  }
1050  }
1051  if (constraintBuilder_ == null) {
1052  if (!other.constraint_.isEmpty()) {
1053  if (constraint_.isEmpty()) {
1054  constraint_ = other.constraint_;
1055  bitField0_ = (bitField0_ & ~0x00000002);
1056  } else {
1057  ensureConstraintIsMutable();
1058  constraint_.addAll(other.constraint_);
1059  }
1060  onChanged();
1061  }
1062  } else {
1063  if (!other.constraint_.isEmpty()) {
1064  if (constraintBuilder_.isEmpty()) {
1065  constraintBuilder_.dispose();
1066  constraintBuilder_ = null;
1067  constraint_ = other.constraint_;
1068  bitField0_ = (bitField0_ & ~0x00000002);
1069  constraintBuilder_ =
1070  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1071  getConstraintFieldBuilder() : null;
1072  } else {
1073  constraintBuilder_.addAllMessages(other.constraint_);
1074  }
1075  }
1076  }
1077  if (generalConstraintBuilder_ == null) {
1078  if (!other.generalConstraint_.isEmpty()) {
1079  if (generalConstraint_.isEmpty()) {
1080  generalConstraint_ = other.generalConstraint_;
1081  bitField0_ = (bitField0_ & ~0x00000004);
1082  } else {
1083  ensureGeneralConstraintIsMutable();
1084  generalConstraint_.addAll(other.generalConstraint_);
1085  }
1086  onChanged();
1087  }
1088  } else {
1089  if (!other.generalConstraint_.isEmpty()) {
1090  if (generalConstraintBuilder_.isEmpty()) {
1091  generalConstraintBuilder_.dispose();
1092  generalConstraintBuilder_ = null;
1093  generalConstraint_ = other.generalConstraint_;
1094  bitField0_ = (bitField0_ & ~0x00000004);
1095  generalConstraintBuilder_ =
1096  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1097  getGeneralConstraintFieldBuilder() : null;
1098  } else {
1099  generalConstraintBuilder_.addAllMessages(other.generalConstraint_);
1100  }
1101  }
1102  }
1103  if (other.hasMaximize()) {
1104  setMaximize(other.getMaximize());
1105  }
1106  if (other.hasObjectiveOffset()) {
1107  setObjectiveOffset(other.getObjectiveOffset());
1108  }
1109  if (other.hasQuadraticObjective()) {
1110  mergeQuadraticObjective(other.getQuadraticObjective());
1111  }
1112  if (other.hasName()) {
1113  bitField0_ |= 0x00000040;
1114  name_ = other.name_;
1115  onChanged();
1116  }
1117  if (other.hasSolutionHint()) {
1118  mergeSolutionHint(other.getSolutionHint());
1119  }
1120  this.mergeUnknownFields(other.unknownFields);
1121  onChanged();
1122  return this;
1123  }
1124 
1125  @java.lang.Override
1126  public final boolean isInitialized() {
1127  return true;
1128  }
1129 
1130  @java.lang.Override
1132  com.google.protobuf.CodedInputStream input,
1133  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1134  throws java.io.IOException {
1135  com.google.ortools.linearsolver.MPModelProto parsedMessage = null;
1136  try {
1137  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1138  } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1139  parsedMessage = (com.google.ortools.linearsolver.MPModelProto) e.getUnfinishedMessage();
1140  throw e.unwrapIOException();
1141  } finally {
1142  if (parsedMessage != null) {
1143  mergeFrom(parsedMessage);
1144  }
1145  }
1146  return this;
1147  }
1148  private int bitField0_;
1149 
1150  private java.util.List<com.google.ortools.linearsolver.MPVariableProto> variable_ =
1151  java.util.Collections.emptyList();
1152  private void ensureVariableIsMutable() {
1153  if (!((bitField0_ & 0x00000001) != 0)) {
1154  variable_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPVariableProto>(variable_);
1155  bitField0_ |= 0x00000001;
1156  }
1157  }
1158 
1159  private com.google.protobuf.RepeatedFieldBuilderV3<
1161 
1170  if (variableBuilder_ == null) {
1171  return java.util.Collections.unmodifiableList(variable_);
1172  } else {
1173  return variableBuilder_.getMessageList();
1174  }
1175  }
1183  public int getVariableCount() {
1184  if (variableBuilder_ == null) {
1185  return variable_.size();
1186  } else {
1187  return variableBuilder_.getCount();
1188  }
1189  }
1198  if (variableBuilder_ == null) {
1199  return variable_.get(index);
1200  } else {
1201  return variableBuilder_.getMessage(index);
1202  }
1203  }
1212  int index, com.google.ortools.linearsolver.MPVariableProto value) {
1213  if (variableBuilder_ == null) {
1214  if (value == null) {
1215  throw new NullPointerException();
1216  }
1217  ensureVariableIsMutable();
1218  variable_.set(index, value);
1219  onChanged();
1220  } else {
1221  variableBuilder_.setMessage(index, value);
1222  }
1223  return this;
1224  }
1233  int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
1234  if (variableBuilder_ == null) {
1235  ensureVariableIsMutable();
1236  variable_.set(index, builderForValue.build());
1237  onChanged();
1238  } else {
1239  variableBuilder_.setMessage(index, builderForValue.build());
1240  }
1241  return this;
1242  }
1251  if (variableBuilder_ == null) {
1252  if (value == null) {
1253  throw new NullPointerException();
1254  }
1255  ensureVariableIsMutable();
1256  variable_.add(value);
1257  onChanged();
1258  } else {
1259  variableBuilder_.addMessage(value);
1260  }
1261  return this;
1262  }
1271  int index, com.google.ortools.linearsolver.MPVariableProto value) {
1272  if (variableBuilder_ == null) {
1273  if (value == null) {
1274  throw new NullPointerException();
1275  }
1276  ensureVariableIsMutable();
1277  variable_.add(index, value);
1278  onChanged();
1279  } else {
1280  variableBuilder_.addMessage(index, value);
1281  }
1282  return this;
1283  }
1293  if (variableBuilder_ == null) {
1294  ensureVariableIsMutable();
1295  variable_.add(builderForValue.build());
1296  onChanged();
1297  } else {
1298  variableBuilder_.addMessage(builderForValue.build());
1299  }
1300  return this;
1301  }
1310  int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue) {
1311  if (variableBuilder_ == null) {
1312  ensureVariableIsMutable();
1313  variable_.add(index, builderForValue.build());
1314  onChanged();
1315  } else {
1316  variableBuilder_.addMessage(index, builderForValue.build());
1317  }
1318  return this;
1319  }
1328  java.lang.Iterable<? extends com.google.ortools.linearsolver.MPVariableProto> values) {
1329  if (variableBuilder_ == null) {
1330  ensureVariableIsMutable();
1331  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1332  values, variable_);
1333  onChanged();
1334  } else {
1335  variableBuilder_.addAllMessages(values);
1336  }
1337  return this;
1338  }
1347  if (variableBuilder_ == null) {
1348  variable_ = java.util.Collections.emptyList();
1349  bitField0_ = (bitField0_ & ~0x00000001);
1350  onChanged();
1351  } else {
1352  variableBuilder_.clear();
1353  }
1354  return this;
1355  }
1363  public Builder removeVariable(int index) {
1364  if (variableBuilder_ == null) {
1365  ensureVariableIsMutable();
1366  variable_.remove(index);
1367  onChanged();
1368  } else {
1369  variableBuilder_.remove(index);
1370  }
1371  return this;
1372  }
1381  int index) {
1382  return getVariableFieldBuilder().getBuilder(index);
1383  }
1392  int index) {
1393  if (variableBuilder_ == null) {
1394  return variable_.get(index); } else {
1395  return variableBuilder_.getMessageOrBuilder(index);
1396  }
1397  }
1405  public java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder>
1407  if (variableBuilder_ != null) {
1408  return variableBuilder_.getMessageOrBuilderList();
1409  } else {
1410  return java.util.Collections.unmodifiableList(variable_);
1411  }
1412  }
1421  return getVariableFieldBuilder().addBuilder(
1423  }
1432  int index) {
1433  return getVariableFieldBuilder().addBuilder(
1435  }
1443  public java.util.List<com.google.ortools.linearsolver.MPVariableProto.Builder>
1445  return getVariableFieldBuilder().getBuilderList();
1446  }
1447  private com.google.protobuf.RepeatedFieldBuilderV3<
1449  getVariableFieldBuilder() {
1450  if (variableBuilder_ == null) {
1451  variableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1453  variable_,
1454  ((bitField0_ & 0x00000001) != 0),
1455  getParentForChildren(),
1456  isClean());
1457  variable_ = null;
1458  }
1459  return variableBuilder_;
1460  }
1461 
1462  private java.util.List<com.google.ortools.linearsolver.MPConstraintProto> constraint_ =
1463  java.util.Collections.emptyList();
1464  private void ensureConstraintIsMutable() {
1465  if (!((bitField0_ & 0x00000002) != 0)) {
1466  constraint_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPConstraintProto>(constraint_);
1467  bitField0_ |= 0x00000002;
1468  }
1469  }
1470 
1471  private com.google.protobuf.RepeatedFieldBuilderV3<
1473 
1482  if (constraintBuilder_ == null) {
1483  return java.util.Collections.unmodifiableList(constraint_);
1484  } else {
1485  return constraintBuilder_.getMessageList();
1486  }
1487  }
1495  public int getConstraintCount() {
1496  if (constraintBuilder_ == null) {
1497  return constraint_.size();
1498  } else {
1499  return constraintBuilder_.getCount();
1500  }
1501  }
1510  if (constraintBuilder_ == null) {
1511  return constraint_.get(index);
1512  } else {
1513  return constraintBuilder_.getMessage(index);
1514  }
1515  }
1524  int index, com.google.ortools.linearsolver.MPConstraintProto value) {
1525  if (constraintBuilder_ == null) {
1526  if (value == null) {
1527  throw new NullPointerException();
1528  }
1529  ensureConstraintIsMutable();
1530  constraint_.set(index, value);
1531  onChanged();
1532  } else {
1533  constraintBuilder_.setMessage(index, value);
1534  }
1535  return this;
1536  }
1545  int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
1546  if (constraintBuilder_ == null) {
1547  ensureConstraintIsMutable();
1548  constraint_.set(index, builderForValue.build());
1549  onChanged();
1550  } else {
1551  constraintBuilder_.setMessage(index, builderForValue.build());
1552  }
1553  return this;
1554  }
1563  if (constraintBuilder_ == null) {
1564  if (value == null) {
1565  throw new NullPointerException();
1566  }
1567  ensureConstraintIsMutable();
1568  constraint_.add(value);
1569  onChanged();
1570  } else {
1571  constraintBuilder_.addMessage(value);
1572  }
1573  return this;
1574  }
1583  int index, com.google.ortools.linearsolver.MPConstraintProto value) {
1584  if (constraintBuilder_ == null) {
1585  if (value == null) {
1586  throw new NullPointerException();
1587  }
1588  ensureConstraintIsMutable();
1589  constraint_.add(index, value);
1590  onChanged();
1591  } else {
1592  constraintBuilder_.addMessage(index, value);
1593  }
1594  return this;
1595  }
1605  if (constraintBuilder_ == null) {
1606  ensureConstraintIsMutable();
1607  constraint_.add(builderForValue.build());
1608  onChanged();
1609  } else {
1610  constraintBuilder_.addMessage(builderForValue.build());
1611  }
1612  return this;
1613  }
1622  int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue) {
1623  if (constraintBuilder_ == null) {
1624  ensureConstraintIsMutable();
1625  constraint_.add(index, builderForValue.build());
1626  onChanged();
1627  } else {
1628  constraintBuilder_.addMessage(index, builderForValue.build());
1629  }
1630  return this;
1631  }
1640  java.lang.Iterable<? extends com.google.ortools.linearsolver.MPConstraintProto> values) {
1641  if (constraintBuilder_ == null) {
1642  ensureConstraintIsMutable();
1643  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1644  values, constraint_);
1645  onChanged();
1646  } else {
1647  constraintBuilder_.addAllMessages(values);
1648  }
1649  return this;
1650  }
1659  if (constraintBuilder_ == null) {
1660  constraint_ = java.util.Collections.emptyList();
1661  bitField0_ = (bitField0_ & ~0x00000002);
1662  onChanged();
1663  } else {
1664  constraintBuilder_.clear();
1665  }
1666  return this;
1667  }
1675  public Builder removeConstraint(int index) {
1676  if (constraintBuilder_ == null) {
1677  ensureConstraintIsMutable();
1678  constraint_.remove(index);
1679  onChanged();
1680  } else {
1681  constraintBuilder_.remove(index);
1682  }
1683  return this;
1684  }
1693  int index) {
1694  return getConstraintFieldBuilder().getBuilder(index);
1695  }
1704  int index) {
1705  if (constraintBuilder_ == null) {
1706  return constraint_.get(index); } else {
1707  return constraintBuilder_.getMessageOrBuilder(index);
1708  }
1709  }
1717  public java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder>
1719  if (constraintBuilder_ != null) {
1720  return constraintBuilder_.getMessageOrBuilderList();
1721  } else {
1722  return java.util.Collections.unmodifiableList(constraint_);
1723  }
1724  }
1733  return getConstraintFieldBuilder().addBuilder(
1735  }
1744  int index) {
1745  return getConstraintFieldBuilder().addBuilder(
1747  }
1755  public java.util.List<com.google.ortools.linearsolver.MPConstraintProto.Builder>
1757  return getConstraintFieldBuilder().getBuilderList();
1758  }
1759  private com.google.protobuf.RepeatedFieldBuilderV3<
1761  getConstraintFieldBuilder() {
1762  if (constraintBuilder_ == null) {
1763  constraintBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
1765  constraint_,
1766  ((bitField0_ & 0x00000002) != 0),
1767  getParentForChildren(),
1768  isClean());
1769  constraint_ = null;
1770  }
1771  return constraintBuilder_;
1772  }
1773 
1774  private java.util.List<com.google.ortools.linearsolver.MPGeneralConstraintProto> generalConstraint_ =
1775  java.util.Collections.emptyList();
1776  private void ensureGeneralConstraintIsMutable() {
1777  if (!((bitField0_ & 0x00000004) != 0)) {
1778  generalConstraint_ = new java.util.ArrayList<com.google.ortools.linearsolver.MPGeneralConstraintProto>(generalConstraint_);
1779  bitField0_ |= 0x00000004;
1780  }
1781  }
1782 
1783  private com.google.protobuf.RepeatedFieldBuilderV3<
1785 
1795  if (generalConstraintBuilder_ == null) {
1796  return java.util.Collections.unmodifiableList(generalConstraint_);
1797  } else {
1798  return generalConstraintBuilder_.getMessageList();
1799  }
1800  }
1810  if (generalConstraintBuilder_ == null) {
1811  return generalConstraint_.size();
1812  } else {
1813  return generalConstraintBuilder_.getCount();
1814  }
1815  }
1825  if (generalConstraintBuilder_ == null) {
1826  return generalConstraint_.get(index);
1827  } else {
1828  return generalConstraintBuilder_.getMessage(index);
1829  }
1830  }
1841  if (generalConstraintBuilder_ == null) {
1842  if (value == null) {
1843  throw new NullPointerException();
1844  }
1845  ensureGeneralConstraintIsMutable();
1846  generalConstraint_.set(index, value);
1847  onChanged();
1848  } else {
1849  generalConstraintBuilder_.setMessage(index, value);
1850  }
1851  return this;
1852  }
1862  int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
1863  if (generalConstraintBuilder_ == null) {
1864  ensureGeneralConstraintIsMutable();
1865  generalConstraint_.set(index, builderForValue.build());
1866  onChanged();
1867  } else {
1868  generalConstraintBuilder_.setMessage(index, builderForValue.build());
1869  }
1870  return this;
1871  }
1881  if (generalConstraintBuilder_ == null) {
1882  if (value == null) {
1883  throw new NullPointerException();
1884  }
1885  ensureGeneralConstraintIsMutable();
1886  generalConstraint_.add(value);
1887  onChanged();
1888  } else {
1889  generalConstraintBuilder_.addMessage(value);
1890  }
1891  return this;
1892  }
1903  if (generalConstraintBuilder_ == null) {
1904  if (value == null) {
1905  throw new NullPointerException();
1906  }
1907  ensureGeneralConstraintIsMutable();
1908  generalConstraint_.add(index, value);
1909  onChanged();
1910  } else {
1911  generalConstraintBuilder_.addMessage(index, value);
1912  }
1913  return this;
1914  }
1925  if (generalConstraintBuilder_ == null) {
1926  ensureGeneralConstraintIsMutable();
1927  generalConstraint_.add(builderForValue.build());
1928  onChanged();
1929  } else {
1930  generalConstraintBuilder_.addMessage(builderForValue.build());
1931  }
1932  return this;
1933  }
1943  int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue) {
1944  if (generalConstraintBuilder_ == null) {
1945  ensureGeneralConstraintIsMutable();
1946  generalConstraint_.add(index, builderForValue.build());
1947  onChanged();
1948  } else {
1949  generalConstraintBuilder_.addMessage(index, builderForValue.build());
1950  }
1951  return this;
1952  }
1962  java.lang.Iterable<? extends com.google.ortools.linearsolver.MPGeneralConstraintProto> values) {
1963  if (generalConstraintBuilder_ == null) {
1964  ensureGeneralConstraintIsMutable();
1965  com.google.protobuf.AbstractMessageLite.Builder.addAll(
1966  values, generalConstraint_);
1967  onChanged();
1968  } else {
1969  generalConstraintBuilder_.addAllMessages(values);
1970  }
1971  return this;
1972  }
1982  if (generalConstraintBuilder_ == null) {
1983  generalConstraint_ = java.util.Collections.emptyList();
1984  bitField0_ = (bitField0_ & ~0x00000004);
1985  onChanged();
1986  } else {
1987  generalConstraintBuilder_.clear();
1988  }
1989  return this;
1990  }
1999  public Builder removeGeneralConstraint(int index) {
2000  if (generalConstraintBuilder_ == null) {
2001  ensureGeneralConstraintIsMutable();
2002  generalConstraint_.remove(index);
2003  onChanged();
2004  } else {
2005  generalConstraintBuilder_.remove(index);
2006  }
2007  return this;
2008  }
2018  int index) {
2019  return getGeneralConstraintFieldBuilder().getBuilder(index);
2020  }
2030  int index) {
2031  if (generalConstraintBuilder_ == null) {
2032  return generalConstraint_.get(index); } else {
2033  return generalConstraintBuilder_.getMessageOrBuilder(index);
2034  }
2035  }
2044  public java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder>
2046  if (generalConstraintBuilder_ != null) {
2047  return generalConstraintBuilder_.getMessageOrBuilderList();
2048  } else {
2049  return java.util.Collections.unmodifiableList(generalConstraint_);
2050  }
2051  }
2061  return getGeneralConstraintFieldBuilder().addBuilder(
2063  }
2073  int index) {
2074  return getGeneralConstraintFieldBuilder().addBuilder(
2076  }
2087  return getGeneralConstraintFieldBuilder().getBuilderList();
2088  }
2089  private com.google.protobuf.RepeatedFieldBuilderV3<
2091  getGeneralConstraintFieldBuilder() {
2092  if (generalConstraintBuilder_ == null) {
2093  generalConstraintBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2095  generalConstraint_,
2096  ((bitField0_ & 0x00000004) != 0),
2097  getParentForChildren(),
2098  isClean());
2099  generalConstraint_ = null;
2100  }
2101  return generalConstraintBuilder_;
2102  }
2103 
2104  private boolean maximize_ ;
2113  public boolean hasMaximize() {
2114  return ((bitField0_ & 0x00000008) != 0);
2115  }
2124  public boolean getMaximize() {
2125  return maximize_;
2126  }
2136  public Builder setMaximize(boolean value) {
2137  bitField0_ |= 0x00000008;
2138  maximize_ = value;
2139  onChanged();
2140  return this;
2141  }
2151  bitField0_ = (bitField0_ & ~0x00000008);
2152  maximize_ = false;
2153  onChanged();
2154  return this;
2155  }
2156 
2157  private double objectiveOffset_ ;
2166  public boolean hasObjectiveOffset() {
2167  return ((bitField0_ & 0x00000010) != 0);
2168  }
2177  public double getObjectiveOffset() {
2178  return objectiveOffset_;
2179  }
2189  public Builder setObjectiveOffset(double value) {
2190  bitField0_ |= 0x00000010;
2191  objectiveOffset_ = value;
2192  onChanged();
2193  return this;
2194  }
2204  bitField0_ = (bitField0_ & ~0x00000010);
2205  objectiveOffset_ = 0D;
2206  onChanged();
2207  return this;
2208  }
2209 
2210  private com.google.ortools.linearsolver.MPQuadraticObjective quadraticObjective_;
2211  private com.google.protobuf.SingleFieldBuilderV3<
2222  public boolean hasQuadraticObjective() {
2223  return ((bitField0_ & 0x00000020) != 0);
2224  }
2235  if (quadraticObjectiveBuilder_ == null) {
2236  return quadraticObjective_ == null ? com.google.ortools.linearsolver.MPQuadraticObjective.getDefaultInstance() : quadraticObjective_;
2237  } else {
2238  return quadraticObjectiveBuilder_.getMessage();
2239  }
2240  }
2250  if (quadraticObjectiveBuilder_ == null) {
2251  if (value == null) {
2252  throw new NullPointerException();
2253  }
2254  quadraticObjective_ = value;
2255  onChanged();
2256  } else {
2257  quadraticObjectiveBuilder_.setMessage(value);
2258  }
2259  bitField0_ |= 0x00000020;
2260  return this;
2261  }
2272  if (quadraticObjectiveBuilder_ == null) {
2273  quadraticObjective_ = builderForValue.build();
2274  onChanged();
2275  } else {
2276  quadraticObjectiveBuilder_.setMessage(builderForValue.build());
2277  }
2278  bitField0_ |= 0x00000020;
2279  return this;
2280  }
2290  if (quadraticObjectiveBuilder_ == null) {
2291  if (((bitField0_ & 0x00000020) != 0) &&
2292  quadraticObjective_ != null &&
2294  quadraticObjective_ =
2296  } else {
2297  quadraticObjective_ = value;
2298  }
2299  onChanged();
2300  } else {
2301  quadraticObjectiveBuilder_.mergeFrom(value);
2302  }
2303  bitField0_ |= 0x00000020;
2304  return this;
2305  }
2315  if (quadraticObjectiveBuilder_ == null) {
2316  quadraticObjective_ = null;
2317  onChanged();
2318  } else {
2319  quadraticObjectiveBuilder_.clear();
2320  }
2321  bitField0_ = (bitField0_ & ~0x00000020);
2322  return this;
2323  }
2333  bitField0_ |= 0x00000020;
2334  onChanged();
2335  return getQuadraticObjectiveFieldBuilder().getBuilder();
2336  }
2346  if (quadraticObjectiveBuilder_ != null) {
2347  return quadraticObjectiveBuilder_.getMessageOrBuilder();
2348  } else {
2349  return quadraticObjective_ == null ?
2351  }
2352  }
2361  private com.google.protobuf.SingleFieldBuilderV3<
2363  getQuadraticObjectiveFieldBuilder() {
2364  if (quadraticObjectiveBuilder_ == null) {
2365  quadraticObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2368  getParentForChildren(),
2369  isClean());
2370  quadraticObjective_ = null;
2371  }
2372  return quadraticObjectiveBuilder_;
2373  }
2374 
2375  private java.lang.Object name_ = "";
2384  public boolean hasName() {
2385  return ((bitField0_ & 0x00000040) != 0);
2386  }
2395  public java.lang.String getName() {
2396  java.lang.Object ref = name_;
2397  if (!(ref instanceof java.lang.String)) {
2398  com.google.protobuf.ByteString bs =
2399  (com.google.protobuf.ByteString) ref;
2400  java.lang.String s = bs.toStringUtf8();
2401  if (bs.isValidUtf8()) {
2402  name_ = s;
2403  }
2404  return s;
2405  } else {
2406  return (java.lang.String) ref;
2407  }
2408  }
2417  public com.google.protobuf.ByteString
2419  java.lang.Object ref = name_;
2420  if (ref instanceof String) {
2421  com.google.protobuf.ByteString b =
2422  com.google.protobuf.ByteString.copyFromUtf8(
2423  (java.lang.String) ref);
2424  name_ = b;
2425  return b;
2426  } else {
2427  return (com.google.protobuf.ByteString) ref;
2428  }
2429  }
2440  java.lang.String value) {
2441  if (value == null) {
2442  throw new NullPointerException();
2443  }
2444  bitField0_ |= 0x00000040;
2445  name_ = value;
2446  onChanged();
2447  return this;
2448  }
2457  public Builder clearName() {
2458  bitField0_ = (bitField0_ & ~0x00000040);
2459  name_ = getDefaultInstance().getName();
2460  onChanged();
2461  return this;
2462  }
2473  com.google.protobuf.ByteString value) {
2474  if (value == null) {
2475  throw new NullPointerException();
2476  }
2477  bitField0_ |= 0x00000040;
2478  name_ = value;
2479  onChanged();
2480  return this;
2481  }
2482 
2484  private com.google.protobuf.SingleFieldBuilderV3<
2502  public boolean hasSolutionHint() {
2503  return ((bitField0_ & 0x00000080) != 0);
2504  }
2522  if (solutionHintBuilder_ == null) {
2523  return solutionHint_ == null ? com.google.ortools.linearsolver.PartialVariableAssignment.getDefaultInstance() : solutionHint_;
2524  } else {
2525  return solutionHintBuilder_.getMessage();
2526  }
2527  }
2544  if (solutionHintBuilder_ == null) {
2545  if (value == null) {
2546  throw new NullPointerException();
2547  }
2548  solutionHint_ = value;
2549  onChanged();
2550  } else {
2551  solutionHintBuilder_.setMessage(value);
2552  }
2553  bitField0_ |= 0x00000080;
2554  return this;
2555  }
2573  if (solutionHintBuilder_ == null) {
2574  solutionHint_ = builderForValue.build();
2575  onChanged();
2576  } else {
2577  solutionHintBuilder_.setMessage(builderForValue.build());
2578  }
2579  bitField0_ |= 0x00000080;
2580  return this;
2581  }
2598  if (solutionHintBuilder_ == null) {
2599  if (((bitField0_ & 0x00000080) != 0) &&
2600  solutionHint_ != null &&
2602  solutionHint_ =
2604  } else {
2605  solutionHint_ = value;
2606  }
2607  onChanged();
2608  } else {
2609  solutionHintBuilder_.mergeFrom(value);
2610  }
2611  bitField0_ |= 0x00000080;
2612  return this;
2613  }
2630  if (solutionHintBuilder_ == null) {
2631  solutionHint_ = null;
2632  onChanged();
2633  } else {
2634  solutionHintBuilder_.clear();
2635  }
2636  bitField0_ = (bitField0_ & ~0x00000080);
2637  return this;
2638  }
2655  bitField0_ |= 0x00000080;
2656  onChanged();
2657  return getSolutionHintFieldBuilder().getBuilder();
2658  }
2675  if (solutionHintBuilder_ != null) {
2676  return solutionHintBuilder_.getMessageOrBuilder();
2677  } else {
2678  return solutionHint_ == null ?
2680  }
2681  }
2697  private com.google.protobuf.SingleFieldBuilderV3<
2699  getSolutionHintFieldBuilder() {
2700  if (solutionHintBuilder_ == null) {
2701  solutionHintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2703  getSolutionHint(),
2704  getParentForChildren(),
2705  isClean());
2706  solutionHint_ = null;
2707  }
2708  return solutionHintBuilder_;
2709  }
2710  @java.lang.Override
2712  final com.google.protobuf.UnknownFieldSet unknownFields) {
2713  return super.setUnknownFields(unknownFields);
2714  }
2715 
2716  @java.lang.Override
2718  final com.google.protobuf.UnknownFieldSet unknownFields) {
2719  return super.mergeUnknownFields(unknownFields);
2720  }
2721 
2722 
2723  // @@protoc_insertion_point(builder_scope:operations_research.MPModelProto)
2724  }
2725 
2726  // @@protoc_insertion_point(class_scope:operations_research.MPModelProto)
2727  private static final com.google.ortools.linearsolver.MPModelProto DEFAULT_INSTANCE;
2728  static {
2729  DEFAULT_INSTANCE = new com.google.ortools.linearsolver.MPModelProto();
2730  }
2731 
2733  return DEFAULT_INSTANCE;
2734  }
2735 
2736  @java.lang.Deprecated public static final com.google.protobuf.Parser<MPModelProto>
2737  PARSER = new com.google.protobuf.AbstractParser<MPModelProto>() {
2738  @java.lang.Override
2739  public MPModelProto parsePartialFrom(
2740  com.google.protobuf.CodedInputStream input,
2741  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2742  throws com.google.protobuf.InvalidProtocolBufferException {
2743  return new MPModelProto(input, extensionRegistry);
2744  }
2745  };
2746 
2747  public static com.google.protobuf.Parser<MPModelProto> parser() {
2748  return PARSER;
2749  }
2750 
2751  @java.lang.Override
2752  public com.google.protobuf.Parser<MPModelProto> getParserForType() {
2753  return PARSER;
2754  }
2755 
2756  @java.lang.Override
2758  return DEFAULT_INSTANCE;
2759  }
2760 
2761 }
2762 
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()