Class MPModelDeltaProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ortools.linearsolver.MPModelDeltaProto
- All Implemented Interfaces:
MPModelDeltaProtoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class MPModelDeltaProto
extends com.google.protobuf.GeneratedMessage
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEncodes 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.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsConstraintOverrides(int key) Constraints can be changed (or added) in the same way as variables, see above.booleancontainsVariableOverrides(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.booleanoptional string baseline_model_file_path = 1;com.google.protobuf.ByteStringoptional string baseline_model_file_path = 1;Deprecated.intConstraints can be changed (or added) in the same way as variables, see above.Constraints can be changed (or added) in the same way as variables, see above.getConstraintOverridesOrDefault(int key, MPConstraintProto defaultValue) Constraints can be changed (or added) in the same way as variables, see above.getConstraintOverridesOrThrow(int key) Constraints can be changed (or added) in the same way as variables, see above.static MPModelDeltaProtostatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<MPModelDeltaProto> intDeprecated.intThe variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you only need to specify the fields that change.The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you only need to specify the fields that change.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.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.booleanoptional string baseline_model_file_path = 1;inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic MPModelDeltaProto.Builderstatic MPModelDeltaProto.BuildernewBuilder(MPModelDeltaProto prototype) protected MPModelDeltaProto.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MPModelDeltaProtoparseDelimitedFrom(InputStream input) static MPModelDeltaProtoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelDeltaProtoparseFrom(byte[] data) static MPModelDeltaProtoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelDeltaProtoparseFrom(com.google.protobuf.ByteString data) static MPModelDeltaProtoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelDeltaProtoparseFrom(com.google.protobuf.CodedInputStream input) static MPModelDeltaProtoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelDeltaProtoparseFrom(InputStream input) static MPModelDeltaProtoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPModelDeltaProtoparseFrom(ByteBuffer data) static MPModelDeltaProtoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MPModelDeltaProto> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
BASELINE_MODEL_FILE_PATH_FIELD_NUMBER
public static final int BASELINE_MODEL_FILE_PATH_FIELD_NUMBER- See Also:
-
VARIABLE_OVERRIDES_FIELD_NUMBER
public static final int VARIABLE_OVERRIDES_FIELD_NUMBER- See Also:
-
CONSTRAINT_OVERRIDES_FIELD_NUMBER
public static final int CONSTRAINT_OVERRIDES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasBaselineModelFilePath
public boolean hasBaselineModelFilePath()optional string baseline_model_file_path = 1;- Specified by:
hasBaselineModelFilePathin interfaceMPModelDeltaProtoOrBuilder- Returns:
- Whether the baselineModelFilePath field is set.
-
getBaselineModelFilePath
optional string baseline_model_file_path = 1;- Specified by:
getBaselineModelFilePathin interfaceMPModelDeltaProtoOrBuilder- Returns:
- The baselineModelFilePath.
-
getBaselineModelFilePathBytes
public com.google.protobuf.ByteString getBaselineModelFilePathBytes()optional string baseline_model_file_path = 1;- Specified by:
getBaselineModelFilePathBytesin interfaceMPModelDeltaProtoOrBuilder- Returns:
- The bytes for baselineModelFilePath.
-
getVariableOverridesCount
public int getVariableOverridesCount()Description copied from interface: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;- Specified by:
getVariableOverridesCountin interfaceMPModelDeltaProtoOrBuilder
-
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:
containsVariableOverridesin interfaceMPModelDeltaProtoOrBuilder
-
getVariableOverrides
Deprecated.UsegetVariableOverridesMap()instead.- Specified by:
getVariableOverridesin interfaceMPModelDeltaProtoOrBuilder
-
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:
getVariableOverridesMapin interfaceMPModelDeltaProtoOrBuilder
-
getVariableOverridesOrDefault
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:
getVariableOverridesOrDefaultin interfaceMPModelDeltaProtoOrBuilder
-
getVariableOverridesOrThrow
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:
getVariableOverridesOrThrowin interfaceMPModelDeltaProtoOrBuilder
-
getConstraintOverridesCount
public int getConstraintOverridesCount()Description copied from interface: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;- Specified by:
getConstraintOverridesCountin interfaceMPModelDeltaProtoOrBuilder
-
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:
containsConstraintOverridesin interfaceMPModelDeltaProtoOrBuilder
-
getConstraintOverrides
Deprecated.UsegetConstraintOverridesMap()instead.- Specified by:
getConstraintOverridesin interfaceMPModelDeltaProtoOrBuilder
-
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:
getConstraintOverridesMapin interfaceMPModelDeltaProtoOrBuilder
-
getConstraintOverridesOrDefault
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:
getConstraintOverridesOrDefaultin interfaceMPModelDeltaProtoOrBuilder
-
getConstraintOverridesOrThrow
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:
getConstraintOverridesOrThrowin interfaceMPModelDeltaProtoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static MPModelDeltaProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPModelDeltaProto parseFrom(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
- Throws:
IOException
-
parseFrom
public static MPModelDeltaProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MPModelDeltaProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MPModelDeltaProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MPModelDeltaProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MPModelDeltaProto.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-