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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<MPModelDeltaProto.Builder>
public MPModelDeltaProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MPModelDeltaProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MPModelDeltaProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MPModelDeltaProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MPModelDeltaProto.Builder>
java.io.IOException
public boolean hasBaselineModelFilePath()
optional string baseline_model_file_path = 1;
hasBaselineModelFilePath
in interface MPModelDeltaProtoOrBuilder
public java.lang.String getBaselineModelFilePath()
optional string baseline_model_file_path = 1;
getBaselineModelFilePath
in interface MPModelDeltaProtoOrBuilder
public com.google.protobuf.ByteString getBaselineModelFilePathBytes()
optional string baseline_model_file_path = 1;
getBaselineModelFilePathBytes
in interface MPModelDeltaProtoOrBuilder
public 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()
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;
getVariableOverridesCount
in interface MPModelDeltaProtoOrBuilder
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;
containsVariableOverrides
in interface MPModelDeltaProtoOrBuilder
@Deprecated public java.util.Map<java.lang.Integer,MPVariableProto> getVariableOverrides()
getVariableOverridesMap()
instead.getVariableOverrides
in interface MPModelDeltaProtoOrBuilder
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;
getVariableOverridesMap
in interface MPModelDeltaProtoOrBuilder
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;
getVariableOverridesOrDefault
in interface MPModelDeltaProtoOrBuilder
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;
getVariableOverridesOrThrow
in interface MPModelDeltaProtoOrBuilder
public 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()
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;
getConstraintOverridesCount
in interface MPModelDeltaProtoOrBuilder
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;
containsConstraintOverrides
in interface MPModelDeltaProtoOrBuilder
@Deprecated public java.util.Map<java.lang.Integer,MPConstraintProto> getConstraintOverrides()
getConstraintOverridesMap()
instead.getConstraintOverrides
in interface MPModelDeltaProtoOrBuilder
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;
getConstraintOverridesMap
in interface MPModelDeltaProtoOrBuilder
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;
getConstraintOverridesOrDefault
in interface MPModelDeltaProtoOrBuilder
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;
getConstraintOverridesOrThrow
in interface MPModelDeltaProtoOrBuilder
public 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 © 2025. All rights reserved.