Class MPGeneralConstraintProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ortools.linearsolver.MPGeneralConstraintProto
- All Implemented Interfaces:
MPGeneralConstraintProtoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class MPGeneralConstraintProto
extends com.google.protobuf.GeneratedMessage
implements MPGeneralConstraintProtoOrBuilder
General constraints. See each individual proto type for more information.Protobuf type
operations_research.MPGeneralConstraintProto- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classGeneral constraints.static enumNested 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 intstatic final intstatic final intstatic final intstatic 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 TypeMethodDescriptionboolean.operations_research.MPAbsConstraint abs_constraint = 5;.operations_research.MPAbsConstraint abs_constraint = 5;All variables in "and" constraints must be Boolean.All variables in "and" constraints must be Boolean.static MPGeneralConstraintProtostatic final com.google.protobuf.Descriptors.Descriptor.operations_research.MPIndicatorConstraint indicator_constraint = 2;.operations_research.MPIndicatorConstraint indicator_constraint = 2;resultant_var = max(var_1, var_2, ..., constant)resultant_var = max(var_1, var_2, ..., constant)resultant_var = min(var_1, var_2, ..., constant)resultant_var = min(var_1, var_2, ..., constant)getName()The name of the constraint.com.google.protobuf.ByteStringThe name of the constraint.All variables in "or" constraints must be Boolean.All variables in "or" constraints must be Boolean.com.google.protobuf.Parser<MPGeneralConstraintProto> .operations_research.MPQuadraticConstraint quadratic_constraint = 4;.operations_research.MPQuadraticConstraint quadratic_constraint = 4;int.operations_research.MPSosConstraint sos_constraint = 3;.operations_research.MPSosConstraint sos_constraint = 3;boolean.operations_research.MPAbsConstraint abs_constraint = 5;booleanAll variables in "and" constraints must be Boolean.inthashCode()boolean.operations_research.MPIndicatorConstraint indicator_constraint = 2;booleanresultant_var = max(var_1, var_2, ..., constant)booleanresultant_var = min(var_1, var_2, ..., constant)booleanhasName()The name of the constraint.booleanAll variables in "or" constraints must be Boolean.boolean.operations_research.MPQuadraticConstraint quadratic_constraint = 4;boolean.operations_research.MPSosConstraint sos_constraint = 3;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(MPGeneralConstraintProto prototype) protected MPGeneralConstraintProto.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MPGeneralConstraintProtoparseDelimitedFrom(InputStream input) static MPGeneralConstraintProtoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProtoparseFrom(byte[] data) static MPGeneralConstraintProtoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProtoparseFrom(com.google.protobuf.ByteString data) static MPGeneralConstraintProtoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProtoparseFrom(com.google.protobuf.CodedInputStream input) static MPGeneralConstraintProtoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProtoparseFrom(InputStream input) static MPGeneralConstraintProtoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProtoparseFrom(ByteBuffer data) static MPGeneralConstraintProtoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MPGeneralConstraintProto> 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, internalGetMapFieldReflection, 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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
INDICATOR_CONSTRAINT_FIELD_NUMBER
public static final int INDICATOR_CONSTRAINT_FIELD_NUMBER- See Also:
-
SOS_CONSTRAINT_FIELD_NUMBER
public static final int SOS_CONSTRAINT_FIELD_NUMBER- See Also:
-
QUADRATIC_CONSTRAINT_FIELD_NUMBER
public static final int QUADRATIC_CONSTRAINT_FIELD_NUMBER- See Also:
-
ABS_CONSTRAINT_FIELD_NUMBER
public static final int ABS_CONSTRAINT_FIELD_NUMBER- See Also:
-
AND_CONSTRAINT_FIELD_NUMBER
public static final int AND_CONSTRAINT_FIELD_NUMBER- See Also:
-
OR_CONSTRAINT_FIELD_NUMBER
public static final int OR_CONSTRAINT_FIELD_NUMBER- See Also:
-
MIN_CONSTRAINT_FIELD_NUMBER
public static final int MIN_CONSTRAINT_FIELD_NUMBER- See Also:
-
MAX_CONSTRAINT_FIELD_NUMBER
public static final int MAX_CONSTRAINT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getGeneralConstraintCase
- Specified by:
getGeneralConstraintCasein interfaceMPGeneralConstraintProtoOrBuilder
-
hasName
public boolean hasName()The name of the constraint.
optional string name = 1 [default = ""];- Specified by:
hasNamein interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name of the constraint.
optional string name = 1 [default = ""];- Specified by:
getNamein interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the constraint.
optional string name = 1 [default = ""];- Specified by:
getNameBytesin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The bytes for name.
-
hasIndicatorConstraint
public boolean hasIndicatorConstraint().operations_research.MPIndicatorConstraint indicator_constraint = 2;- Specified by:
hasIndicatorConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the indicatorConstraint field is set.
-
getIndicatorConstraint
.operations_research.MPIndicatorConstraint indicator_constraint = 2;- Specified by:
getIndicatorConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The indicatorConstraint.
-
getIndicatorConstraintOrBuilder
.operations_research.MPIndicatorConstraint indicator_constraint = 2;- Specified by:
getIndicatorConstraintOrBuilderin interfaceMPGeneralConstraintProtoOrBuilder
-
hasSosConstraint
public boolean hasSosConstraint().operations_research.MPSosConstraint sos_constraint = 3;- Specified by:
hasSosConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the sosConstraint field is set.
-
getSosConstraint
.operations_research.MPSosConstraint sos_constraint = 3;- Specified by:
getSosConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The sosConstraint.
-
getSosConstraintOrBuilder
.operations_research.MPSosConstraint sos_constraint = 3;- Specified by:
getSosConstraintOrBuilderin interfaceMPGeneralConstraintProtoOrBuilder
-
hasQuadraticConstraint
public boolean hasQuadraticConstraint().operations_research.MPQuadraticConstraint quadratic_constraint = 4;- Specified by:
hasQuadraticConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the quadraticConstraint field is set.
-
getQuadraticConstraint
.operations_research.MPQuadraticConstraint quadratic_constraint = 4;- Specified by:
getQuadraticConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The quadraticConstraint.
-
getQuadraticConstraintOrBuilder
.operations_research.MPQuadraticConstraint quadratic_constraint = 4;- Specified by:
getQuadraticConstraintOrBuilderin interfaceMPGeneralConstraintProtoOrBuilder
-
hasAbsConstraint
public boolean hasAbsConstraint().operations_research.MPAbsConstraint abs_constraint = 5;- Specified by:
hasAbsConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the absConstraint field is set.
-
getAbsConstraint
.operations_research.MPAbsConstraint abs_constraint = 5;- Specified by:
getAbsConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The absConstraint.
-
getAbsConstraintOrBuilder
.operations_research.MPAbsConstraint abs_constraint = 5;- Specified by:
getAbsConstraintOrBuilderin interfaceMPGeneralConstraintProtoOrBuilder
-
hasAndConstraint
public boolean hasAndConstraint()All variables in "and" constraints must be Boolean. resultant_var = and(var_1, var_2... var_n)
.operations_research.MPArrayConstraint and_constraint = 6;- Specified by:
hasAndConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the andConstraint field is set.
-
getAndConstraint
All variables in "and" constraints must be Boolean. resultant_var = and(var_1, var_2... var_n)
.operations_research.MPArrayConstraint and_constraint = 6;- Specified by:
getAndConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The andConstraint.
-
getAndConstraintOrBuilder
All variables in "and" constraints must be Boolean. resultant_var = and(var_1, var_2... var_n)
.operations_research.MPArrayConstraint and_constraint = 6;- Specified by:
getAndConstraintOrBuilderin interfaceMPGeneralConstraintProtoOrBuilder
-
hasOrConstraint
public boolean hasOrConstraint()All variables in "or" constraints must be Boolean. resultant_var = or(var_1, var_2... var_n)
.operations_research.MPArrayConstraint or_constraint = 7;- Specified by:
hasOrConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the orConstraint field is set.
-
getOrConstraint
All variables in "or" constraints must be Boolean. resultant_var = or(var_1, var_2... var_n)
.operations_research.MPArrayConstraint or_constraint = 7;- Specified by:
getOrConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The orConstraint.
-
getOrConstraintOrBuilder
All variables in "or" constraints must be Boolean. resultant_var = or(var_1, var_2... var_n)
.operations_research.MPArrayConstraint or_constraint = 7;- Specified by:
getOrConstraintOrBuilderin interfaceMPGeneralConstraintProtoOrBuilder
-
hasMinConstraint
public boolean hasMinConstraint()resultant_var = min(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;- Specified by:
hasMinConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the minConstraint field is set.
-
getMinConstraint
resultant_var = min(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;- Specified by:
getMinConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The minConstraint.
-
getMinConstraintOrBuilder
resultant_var = min(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;- Specified by:
getMinConstraintOrBuilderin interfaceMPGeneralConstraintProtoOrBuilder
-
hasMaxConstraint
public boolean hasMaxConstraint()resultant_var = max(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;- Specified by:
hasMaxConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- Whether the maxConstraint field is set.
-
getMaxConstraint
resultant_var = max(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;- Specified by:
getMaxConstraintin interfaceMPGeneralConstraintProtoOrBuilder- Returns:
- The maxConstraint.
-
getMaxConstraintOrBuilder
resultant_var = max(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;- Specified by:
getMaxConstraintOrBuilderin interfaceMPGeneralConstraintProtoOrBuilder
-
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 MPGeneralConstraintProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPGeneralConstraintProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPGeneralConstraintProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPGeneralConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPGeneralConstraintProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPGeneralConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MPGeneralConstraintProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MPGeneralConstraintProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MPGeneralConstraintProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MPGeneralConstraintProto 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 MPGeneralConstraintProto.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
-