Class MPSolution.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MPSolution.Builder>
com.google.protobuf.GeneratedMessage.Builder<MPSolution.Builder>
com.google.ortools.linearsolver.MPSolution.Builder
All Implemented Interfaces:
MPSolutionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MPSolution

public static final class MPSolution.Builder extends com.google.protobuf.GeneratedMessage.Builder<MPSolution.Builder> implements MPSolutionOrBuilder
Protobuf type operations_research.MPSolution
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllVariableValue(Iterable<? extends Double> values)
    repeated double variable_value = 2 [packed = true];
    addVariableValue(double value)
    repeated double variable_value = 2 [packed = true];
     
     
     
    optional double objective_value = 1;
    repeated double variable_value = 2 [packed = true];
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    double
    optional double objective_value = 1;
    double
    getVariableValue(int index)
    repeated double variable_value = 2 [packed = true];
    int
    repeated double variable_value = 2 [packed = true];
    repeated double variable_value = 2 [packed = true];
    boolean
    optional double objective_value = 1;
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setObjectiveValue(double value)
    optional double objective_value = 1;
    setVariableValue(int index, double value)
    repeated double variable_value = 2 [packed = true];

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MPSolution.Builder>
    • clear

      public MPSolution.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<MPSolution.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MPSolution.Builder>
    • getDefaultInstanceForType

      public MPSolution getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MPSolution build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MPSolution buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MPSolution.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPSolution.Builder>
    • mergeFrom

      public MPSolution.Builder mergeFrom(MPSolution other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MPSolution.Builder>
    • mergeFrom

      public MPSolution.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPSolution.Builder>
      Throws:
      IOException
    • hasObjectiveValue

      public boolean hasObjectiveValue()
      optional double objective_value = 1;
      Specified by:
      hasObjectiveValue in interface MPSolutionOrBuilder
      Returns:
      Whether the objectiveValue field is set.
    • getObjectiveValue

      public double getObjectiveValue()
      optional double objective_value = 1;
      Specified by:
      getObjectiveValue in interface MPSolutionOrBuilder
      Returns:
      The objectiveValue.
    • setObjectiveValue

      public MPSolution.Builder setObjectiveValue(double value)
      optional double objective_value = 1;
      Parameters:
      value - The objectiveValue to set.
      Returns:
      This builder for chaining.
    • clearObjectiveValue

      public MPSolution.Builder clearObjectiveValue()
      optional double objective_value = 1;
      Returns:
      This builder for chaining.
    • getVariableValueList

      public List<Double> getVariableValueList()
      repeated double variable_value = 2 [packed = true];
      Specified by:
      getVariableValueList in interface MPSolutionOrBuilder
      Returns:
      A list containing the variableValue.
    • getVariableValueCount

      public int getVariableValueCount()
      repeated double variable_value = 2 [packed = true];
      Specified by:
      getVariableValueCount in interface MPSolutionOrBuilder
      Returns:
      The count of variableValue.
    • getVariableValue

      public double getVariableValue(int index)
      repeated double variable_value = 2 [packed = true];
      Specified by:
      getVariableValue in interface MPSolutionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The variableValue at the given index.
    • setVariableValue

      public MPSolution.Builder setVariableValue(int index, double value)
      repeated double variable_value = 2 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The variableValue to set.
      Returns:
      This builder for chaining.
    • addVariableValue

      public MPSolution.Builder addVariableValue(double value)
      repeated double variable_value = 2 [packed = true];
      Parameters:
      value - The variableValue to add.
      Returns:
      This builder for chaining.
    • addAllVariableValue

      public MPSolution.Builder addAllVariableValue(Iterable<? extends Double> values)
      repeated double variable_value = 2 [packed = true];
      Parameters:
      values - The variableValue to add.
      Returns:
      This builder for chaining.
    • clearVariableValue

      public MPSolution.Builder clearVariableValue()
      repeated double variable_value = 2 [packed = true];
      Returns:
      This builder for chaining.