public static final class MPModelDeltaProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder> 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| Modifier and Type | Method and Description |
|---|---|
MPModelDeltaProto |
build() |
MPModelDeltaProto |
buildPartial() |
MPModelDeltaProto.Builder |
clear() |
MPModelDeltaProto.Builder |
clearBaselineModelFilePath()
optional string baseline_model_file_path = 1; |
MPModelDeltaProto.Builder |
clearConstraintOverrides() |
MPModelDeltaProto.Builder |
clearVariableOverrides() |
boolean |
containsConstraintOverrides(int key)
Constraints can be changed (or added) in the same way as variables, see
above.
|
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.
|
java.lang.String |
getBaselineModelFilePath()
optional string baseline_model_file_path = 1; |
com.google.protobuf.ByteString |
getBaselineModelFilePathBytes()
optional string baseline_model_file_path = 1; |
java.util.Map<java.lang.Integer,MPConstraintProto> |
getConstraintOverrides()
Deprecated.
|
int |
getConstraintOverridesCount()
Constraints can be changed (or added) in the same way as variables, see
above.
|
java.util.Map<java.lang.Integer,MPConstraintProto> |
getConstraintOverridesMap()
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPConstraintProto |
getConstraintOverridesOrDefault(int key,
MPConstraintProto defaultValue)
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPConstraintProto |
getConstraintOverridesOrThrow(int key)
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPModelDeltaProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.Integer,MPConstraintProto> |
getMutableConstraintOverrides()
Deprecated.
|
java.util.Map<java.lang.Integer,MPVariableProto> |
getMutableVariableOverrides()
Deprecated.
|
java.util.Map<java.lang.Integer,MPVariableProto> |
getVariableOverrides()
Deprecated.
|
int |
getVariableOverridesCount()
The variable protos listed here will override (via MergeFrom()) the ones
in the baseline model: you only need to specify the fields that change.
|
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.
|
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.
|
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.
|
boolean |
hasBaselineModelFilePath()
optional string baseline_model_file_path = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
MPModelDeltaProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MPModelDeltaProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
MPModelDeltaProto.Builder |
mergeFrom(MPModelDeltaProto other) |
MPModelDeltaProto.Builder |
putAllConstraintOverrides(java.util.Map<java.lang.Integer,MPConstraintProto> values)
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPModelDeltaProto.Builder |
putAllVariableOverrides(java.util.Map<java.lang.Integer,MPVariableProto> values)
The variable protos listed here will override (via MergeFrom()) the ones
in the baseline model: you only need to specify the fields that change.
|
MPModelDeltaProto.Builder |
putConstraintOverrides(int key,
MPConstraintProto value)
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPConstraintProto.Builder |
putConstraintOverridesBuilderIfAbsent(int key)
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPModelDeltaProto.Builder |
putVariableOverrides(int key,
MPVariableProto value)
The variable protos listed here will override (via MergeFrom()) the ones
in the baseline model: you only need to specify the fields that change.
|
MPVariableProto.Builder |
putVariableOverridesBuilderIfAbsent(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.
|
MPModelDeltaProto.Builder |
removeConstraintOverrides(int key)
Constraints can be changed (or added) in the same way as variables, see
above.
|
MPModelDeltaProto.Builder |
removeVariableOverrides(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.
|
MPModelDeltaProto.Builder |
setBaselineModelFilePath(java.lang.String value)
optional string baseline_model_file_path = 1; |
MPModelDeltaProto.Builder |
setBaselineModelFilePathBytes(com.google.protobuf.ByteString value)
optional string baseline_model_file_path = 1; |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder>public MPModelDeltaProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder>public MPModelDeltaProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MPModelDeltaProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MPModelDeltaProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MPModelDeltaProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPModelDeltaProto.Builder>public MPModelDeltaProto.Builder mergeFrom(MPModelDeltaProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder>public MPModelDeltaProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPModelDeltaProto.Builder>java.io.IOExceptionpublic boolean hasBaselineModelFilePath()
optional string baseline_model_file_path = 1;hasBaselineModelFilePath in interface MPModelDeltaProtoOrBuilderpublic java.lang.String getBaselineModelFilePath()
optional string baseline_model_file_path = 1;getBaselineModelFilePath in interface MPModelDeltaProtoOrBuilderpublic com.google.protobuf.ByteString getBaselineModelFilePathBytes()
optional string baseline_model_file_path = 1;getBaselineModelFilePathBytes in interface MPModelDeltaProtoOrBuilderpublic MPModelDeltaProto.Builder setBaselineModelFilePath(java.lang.String value)
optional string baseline_model_file_path = 1;value - The baselineModelFilePath to set.public MPModelDeltaProto.Builder clearBaselineModelFilePath()
optional string baseline_model_file_path = 1;public MPModelDeltaProto.Builder setBaselineModelFilePathBytes(com.google.protobuf.ByteString value)
optional string baseline_model_file_path = 1;value - The bytes for baselineModelFilePath to set.public int getVariableOverridesCount()
MPModelDeltaProtoOrBuilderThe 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;getVariableOverridesCount in interface MPModelDeltaProtoOrBuilderpublic 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;containsVariableOverrides in interface MPModelDeltaProtoOrBuilder@Deprecated public java.util.Map<java.lang.Integer,MPVariableProto> getVariableOverrides()
getVariableOverridesMap() instead.getVariableOverrides in interface MPModelDeltaProtoOrBuilderpublic 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;getVariableOverridesMap in interface MPModelDeltaProtoOrBuilderpublic 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;getVariableOverridesOrDefault in interface MPModelDeltaProtoOrBuilderpublic 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;getVariableOverridesOrThrow in interface MPModelDeltaProtoOrBuilderpublic MPModelDeltaProto.Builder clearVariableOverrides()
public MPModelDeltaProto.Builder removeVariableOverrides(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;@Deprecated public java.util.Map<java.lang.Integer,MPVariableProto> getMutableVariableOverrides()
public MPModelDeltaProto.Builder putVariableOverrides(int key, MPVariableProto value)
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;public MPModelDeltaProto.Builder putAllVariableOverrides(java.util.Map<java.lang.Integer,MPVariableProto> values)
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;public MPVariableProto.Builder putVariableOverridesBuilderIfAbsent(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;public int getConstraintOverridesCount()
MPModelDeltaProtoOrBuilderConstraints 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;getConstraintOverridesCount in interface MPModelDeltaProtoOrBuilderpublic 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;containsConstraintOverrides in interface MPModelDeltaProtoOrBuilder@Deprecated public java.util.Map<java.lang.Integer,MPConstraintProto> getConstraintOverrides()
getConstraintOverridesMap() instead.getConstraintOverrides in interface MPModelDeltaProtoOrBuilderpublic 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;getConstraintOverridesMap in interface MPModelDeltaProtoOrBuilderpublic 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;getConstraintOverridesOrDefault in interface MPModelDeltaProtoOrBuilderpublic 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;getConstraintOverridesOrThrow in interface MPModelDeltaProtoOrBuilderpublic MPModelDeltaProto.Builder clearConstraintOverrides()
public MPModelDeltaProto.Builder removeConstraintOverrides(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;@Deprecated public java.util.Map<java.lang.Integer,MPConstraintProto> getMutableConstraintOverrides()
public MPModelDeltaProto.Builder putConstraintOverrides(int key, MPConstraintProto value)
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;public MPModelDeltaProto.Builder putAllConstraintOverrides(java.util.Map<java.lang.Integer,MPConstraintProto> values)
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;public MPConstraintProto.Builder putConstraintOverridesBuilderIfAbsent(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;Copyright © 2024. All rights reserved.