Class MPModelDeltaProto

  • All Implemented Interfaces:
    MPModelDeltaProtoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class MPModelDeltaProto
    extends com.google.protobuf.GeneratedMessageV3
    implements MPModelDeltaProtoOrBuilder
     Encodes a full MPModelProto by way of referencing to a "baseline"
     MPModelProto stored in a file, and a "delta" to apply to this model.
     
    Protobuf type operations_research.MPModelDeltaProto
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MPModelDeltaProto.Builder
      Encodes a full MPModelProto by way of referencing to a "baseline" MPModelProto stored in a file, and a "delta" to apply to this model.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • BASELINE_MODEL_FILE_PATH_FIELD_NUMBER

        public static final int BASELINE_MODEL_FILE_PATH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VARIABLE_OVERRIDES_FIELD_NUMBER

        public static final int VARIABLE_OVERRIDES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONSTRAINT_OVERRIDES_FIELD_NUMBER

        public static final int CONSTRAINT_OVERRIDES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARSER

        @Deprecated
        public static final com.google.protobuf.Parser<MPModelDeltaProto> PARSER
        Deprecated.
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasBaselineModelFilePath

        public boolean hasBaselineModelFilePath()
        optional string baseline_model_file_path = 1;
        Specified by:
        hasBaselineModelFilePath in interface MPModelDeltaProtoOrBuilder
        Returns:
        Whether the baselineModelFilePath field is set.
      • getBaselineModelFilePathBytes

        public com.google.protobuf.ByteString getBaselineModelFilePathBytes()
        optional string baseline_model_file_path = 1;
        Specified by:
        getBaselineModelFilePathBytes in interface MPModelDeltaProtoOrBuilder
        Returns:
        The bytes for baselineModelFilePath.
      • getVariableOverridesCount

        public int getVariableOverridesCount()
        Description copied from interface: MPModelDeltaProtoOrBuilder
         The variable protos listed here will override (via MergeFrom()) the ones
         in the baseline model: you only need to specify the fields that change.
         To add a new variable, add it with a new variable index (variable indices
         still need to span a dense integer interval).
         You can't "delete" a variable but you can "neutralize" it by fixing its
         value, setting its objective coefficient to zero, and by nullifying all
         the terms involving it in the constraints.
         
        map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
        Specified by:
        getVariableOverridesCount in interface MPModelDeltaProtoOrBuilder
      • containsVariableOverrides

        public boolean containsVariableOverrides​(int key)
         The variable protos listed here will override (via MergeFrom()) the ones
         in the baseline model: you only need to specify the fields that change.
         To add a new variable, add it with a new variable index (variable indices
         still need to span a dense integer interval).
         You can't "delete" a variable but you can "neutralize" it by fixing its
         value, setting its objective coefficient to zero, and by nullifying all
         the terms involving it in the constraints.
         
        map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
        Specified by:
        containsVariableOverrides in interface MPModelDeltaProtoOrBuilder
      • getVariableOverridesMap

        public java.util.Map<java.lang.Integer,​MPVariableProto> getVariableOverridesMap()
         The variable protos listed here will override (via MergeFrom()) the ones
         in the baseline model: you only need to specify the fields that change.
         To add a new variable, add it with a new variable index (variable indices
         still need to span a dense integer interval).
         You can't "delete" a variable but you can "neutralize" it by fixing its
         value, setting its objective coefficient to zero, and by nullifying all
         the terms involving it in the constraints.
         
        map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
        Specified by:
        getVariableOverridesMap in interface MPModelDeltaProtoOrBuilder
      • getVariableOverridesOrDefault

        public MPVariableProto getVariableOverridesOrDefault​(int key,
                                                             MPVariableProto defaultValue)
         The variable protos listed here will override (via MergeFrom()) the ones
         in the baseline model: you only need to specify the fields that change.
         To add a new variable, add it with a new variable index (variable indices
         still need to span a dense integer interval).
         You can't "delete" a variable but you can "neutralize" it by fixing its
         value, setting its objective coefficient to zero, and by nullifying all
         the terms involving it in the constraints.
         
        map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
        Specified by:
        getVariableOverridesOrDefault in interface MPModelDeltaProtoOrBuilder
      • getVariableOverridesOrThrow

        public MPVariableProto getVariableOverridesOrThrow​(int key)
         The variable protos listed here will override (via MergeFrom()) the ones
         in the baseline model: you only need to specify the fields that change.
         To add a new variable, add it with a new variable index (variable indices
         still need to span a dense integer interval).
         You can't "delete" a variable but you can "neutralize" it by fixing its
         value, setting its objective coefficient to zero, and by nullifying all
         the terms involving it in the constraints.
         
        map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
        Specified by:
        getVariableOverridesOrThrow in interface MPModelDeltaProtoOrBuilder
      • getConstraintOverridesCount

        public int getConstraintOverridesCount()
        Description copied from interface: MPModelDeltaProtoOrBuilder
         Constraints can be changed (or added) in the same way as variables, see
         above. It's mostly like applying MergeFrom(), except that:
         - the "var_index" and "coefficient" fields will be overridden like a map:
           if a key pre-exists, we overwrite its value, otherwise we add it.
         - if you set the lower bound to -inf and the upper bound to +inf, thus
           effectively neutralizing the constraint, the solver will implicitly
           remove all of the constraint's terms.
         
        map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
        Specified by:
        getConstraintOverridesCount in interface MPModelDeltaProtoOrBuilder
      • containsConstraintOverrides

        public boolean containsConstraintOverrides​(int key)
         Constraints can be changed (or added) in the same way as variables, see
         above. It's mostly like applying MergeFrom(), except that:
         - the "var_index" and "coefficient" fields will be overridden like a map:
           if a key pre-exists, we overwrite its value, otherwise we add it.
         - if you set the lower bound to -inf and the upper bound to +inf, thus
           effectively neutralizing the constraint, the solver will implicitly
           remove all of the constraint's terms.
         
        map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
        Specified by:
        containsConstraintOverrides in interface MPModelDeltaProtoOrBuilder
      • getConstraintOverridesMap

        public java.util.Map<java.lang.Integer,​MPConstraintProto> getConstraintOverridesMap()
         Constraints can be changed (or added) in the same way as variables, see
         above. It's mostly like applying MergeFrom(), except that:
         - the "var_index" and "coefficient" fields will be overridden like a map:
           if a key pre-exists, we overwrite its value, otherwise we add it.
         - if you set the lower bound to -inf and the upper bound to +inf, thus
           effectively neutralizing the constraint, the solver will implicitly
           remove all of the constraint's terms.
         
        map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
        Specified by:
        getConstraintOverridesMap in interface MPModelDeltaProtoOrBuilder
      • getConstraintOverridesOrDefault

        public MPConstraintProto getConstraintOverridesOrDefault​(int key,
                                                                 MPConstraintProto defaultValue)
         Constraints can be changed (or added) in the same way as variables, see
         above. It's mostly like applying MergeFrom(), except that:
         - the "var_index" and "coefficient" fields will be overridden like a map:
           if a key pre-exists, we overwrite its value, otherwise we add it.
         - if you set the lower bound to -inf and the upper bound to +inf, thus
           effectively neutralizing the constraint, the solver will implicitly
           remove all of the constraint's terms.
         
        map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
        Specified by:
        getConstraintOverridesOrDefault in interface MPModelDeltaProtoOrBuilder
      • getConstraintOverridesOrThrow

        public MPConstraintProto getConstraintOverridesOrThrow​(int key)
         Constraints can be changed (or added) in the same way as variables, see
         above. It's mostly like applying MergeFrom(), except that:
         - the "var_index" and "coefficient" fields will be overridden like a map:
           if a key pre-exists, we overwrite its value, otherwise we add it.
         - if you set the lower bound to -inf and the upper bound to +inf, thus
           effectively neutralizing the constraint, the solver will implicitly
           remove all of the constraint's terms.
         
        map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
        Specified by:
        getConstraintOverridesOrThrow in interface MPModelDeltaProtoOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MPModelDeltaProto parseFrom​(java.nio.ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(java.nio.ByteBuffer data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(com.google.protobuf.ByteString data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(com.google.protobuf.ByteString data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(byte[] data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(byte[] data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(java.io.InputStream input)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(java.io.InputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static MPModelDeltaProto parseDelimitedFrom​(java.io.InputStream input)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static MPModelDeltaProto parseDelimitedFrom​(java.io.InputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(com.google.protobuf.CodedInputStream input)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static MPModelDeltaProto parseFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public MPModelDeltaProto.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public MPModelDeltaProto.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected MPModelDeltaProto.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<MPModelDeltaProto> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MPModelDeltaProto getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder