Class MPArrayWithConstantConstraint.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MPArrayWithConstantConstraint.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.GeneratedMessageV3.Builder<MPArrayWithConstantConstraint.Builder>
      • getDefaultInstanceForType

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

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

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

        public MPArrayWithConstantConstraint.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                      int index,
                                                                      java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MPArrayWithConstantConstraint.Builder>
      • addRepeatedField

        public MPArrayWithConstantConstraint.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                      java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MPArrayWithConstantConstraint.Builder>
      • isInitialized

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

        public MPArrayWithConstantConstraint.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.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<MPArrayWithConstantConstraint.Builder>
        Throws:
        java.io.IOException
      • getVarIndexList

        public java.util.List<java.lang.Integer> getVarIndexList()
         Variable indices are relative to the "variable" field in MPModelProto.
         resultant_var = f(var_1, var_2, ..., constant)
         
        repeated int32 var_index = 1;
        Specified by:
        getVarIndexList in interface MPArrayWithConstantConstraintOrBuilder
        Returns:
        A list containing the varIndex.
      • getVarIndexCount

        public int getVarIndexCount()
         Variable indices are relative to the "variable" field in MPModelProto.
         resultant_var = f(var_1, var_2, ..., constant)
         
        repeated int32 var_index = 1;
        Specified by:
        getVarIndexCount in interface MPArrayWithConstantConstraintOrBuilder
        Returns:
        The count of varIndex.
      • getVarIndex

        public int getVarIndex​(int index)
         Variable indices are relative to the "variable" field in MPModelProto.
         resultant_var = f(var_1, var_2, ..., constant)
         
        repeated int32 var_index = 1;
        Specified by:
        getVarIndex in interface MPArrayWithConstantConstraintOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The varIndex at the given index.
      • setVarIndex

        public MPArrayWithConstantConstraint.Builder setVarIndex​(int index,
                                                                 int value)
         Variable indices are relative to the "variable" field in MPModelProto.
         resultant_var = f(var_1, var_2, ..., constant)
         
        repeated int32 var_index = 1;
        Parameters:
        index - The index to set the value at.
        value - The varIndex to set.
        Returns:
        This builder for chaining.
      • addVarIndex

        public MPArrayWithConstantConstraint.Builder addVarIndex​(int value)
         Variable indices are relative to the "variable" field in MPModelProto.
         resultant_var = f(var_1, var_2, ..., constant)
         
        repeated int32 var_index = 1;
        Parameters:
        value - The varIndex to add.
        Returns:
        This builder for chaining.
      • addAllVarIndex

        public MPArrayWithConstantConstraint.Builder addAllVarIndex​(java.lang.Iterable<? extends java.lang.Integer> values)
         Variable indices are relative to the "variable" field in MPModelProto.
         resultant_var = f(var_1, var_2, ..., constant)
         
        repeated int32 var_index = 1;
        Parameters:
        values - The varIndex to add.
        Returns:
        This builder for chaining.
      • clearVarIndex

        public MPArrayWithConstantConstraint.Builder clearVarIndex()
         Variable indices are relative to the "variable" field in MPModelProto.
         resultant_var = f(var_1, var_2, ..., constant)
         
        repeated int32 var_index = 1;
        Returns:
        This builder for chaining.
      • setConstant

        public MPArrayWithConstantConstraint.Builder setConstant​(double value)
        optional double constant = 2;
        Parameters:
        value - The constant to set.
        Returns:
        This builder for chaining.
      • setResultantVarIndex

        public MPArrayWithConstantConstraint.Builder setResultantVarIndex​(int value)
        optional int32 resultant_var_index = 3;
        Parameters:
        value - The resultantVarIndex to set.
        Returns:
        This builder for chaining.