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 class
General constraints.static enum
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.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields 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 MPGeneralConstraintProto
static 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.ByteString
The 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;
boolean
All variables in "and" constraints must be Boolean.int
hashCode()
boolean
.operations_research.MPIndicatorConstraint indicator_constraint = 2;
boolean
resultant_var = max(var_1, var_2, ..., constant)boolean
resultant_var = min(var_1, var_2, ..., constant)boolean
hasName()
The name of the constraint.boolean
All 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.FieldAccessorTable
final boolean
newBuilder
(MPGeneralConstraintProto prototype) protected MPGeneralConstraintProto.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static MPGeneralConstraintProto
parseDelimitedFrom
(InputStream input) static MPGeneralConstraintProto
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProto
parseFrom
(byte[] data) static MPGeneralConstraintProto
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProto
parseFrom
(com.google.protobuf.ByteString data) static MPGeneralConstraintProto
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProto
parseFrom
(com.google.protobuf.CodedInputStream input) static MPGeneralConstraintProto
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProto
parseFrom
(InputStream input) static MPGeneralConstraintProto
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MPGeneralConstraintProto
parseFrom
(ByteBuffer data) static MPGeneralConstraintProto
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<MPGeneralConstraintProto> parser()
void
writeTo
(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, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getGeneralConstraintCase
- Specified by:
getGeneralConstraintCase
in interfaceMPGeneralConstraintProtoOrBuilder
-
hasName
public boolean hasName()The name of the constraint.
optional string name = 1 [default = ""];
- Specified by:
hasName
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
The name of the constraint.
optional string name = 1 [default = ""];
- Specified by:
getName
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the constraint.
optional string name = 1 [default = ""];
- Specified by:
getNameBytes
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- The bytes for name.
-
hasIndicatorConstraint
public boolean hasIndicatorConstraint().operations_research.MPIndicatorConstraint indicator_constraint = 2;
- Specified by:
hasIndicatorConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- Whether the indicatorConstraint field is set.
-
getIndicatorConstraint
.operations_research.MPIndicatorConstraint indicator_constraint = 2;
- Specified by:
getIndicatorConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- The indicatorConstraint.
-
getIndicatorConstraintOrBuilder
.operations_research.MPIndicatorConstraint indicator_constraint = 2;
- Specified by:
getIndicatorConstraintOrBuilder
in interfaceMPGeneralConstraintProtoOrBuilder
-
hasSosConstraint
public boolean hasSosConstraint().operations_research.MPSosConstraint sos_constraint = 3;
- Specified by:
hasSosConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- Whether the sosConstraint field is set.
-
getSosConstraint
.operations_research.MPSosConstraint sos_constraint = 3;
- Specified by:
getSosConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- The sosConstraint.
-
getSosConstraintOrBuilder
.operations_research.MPSosConstraint sos_constraint = 3;
- Specified by:
getSosConstraintOrBuilder
in interfaceMPGeneralConstraintProtoOrBuilder
-
hasQuadraticConstraint
public boolean hasQuadraticConstraint().operations_research.MPQuadraticConstraint quadratic_constraint = 4;
- Specified by:
hasQuadraticConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- Whether the quadraticConstraint field is set.
-
getQuadraticConstraint
.operations_research.MPQuadraticConstraint quadratic_constraint = 4;
- Specified by:
getQuadraticConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- The quadraticConstraint.
-
getQuadraticConstraintOrBuilder
.operations_research.MPQuadraticConstraint quadratic_constraint = 4;
- Specified by:
getQuadraticConstraintOrBuilder
in interfaceMPGeneralConstraintProtoOrBuilder
-
hasAbsConstraint
public boolean hasAbsConstraint().operations_research.MPAbsConstraint abs_constraint = 5;
- Specified by:
hasAbsConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- Whether the absConstraint field is set.
-
getAbsConstraint
.operations_research.MPAbsConstraint abs_constraint = 5;
- Specified by:
getAbsConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- The absConstraint.
-
getAbsConstraintOrBuilder
.operations_research.MPAbsConstraint abs_constraint = 5;
- Specified by:
getAbsConstraintOrBuilder
in 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:
hasAndConstraint
in 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:
getAndConstraint
in 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:
getAndConstraintOrBuilder
in 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:
hasOrConstraint
in 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:
getOrConstraint
in 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:
getOrConstraintOrBuilder
in interfaceMPGeneralConstraintProtoOrBuilder
-
hasMinConstraint
public boolean hasMinConstraint()resultant_var = min(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;
- Specified by:
hasMinConstraint
in 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:
getMinConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- The minConstraint.
-
getMinConstraintOrBuilder
resultant_var = min(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint min_constraint = 8;
- Specified by:
getMinConstraintOrBuilder
in interfaceMPGeneralConstraintProtoOrBuilder
-
hasMaxConstraint
public boolean hasMaxConstraint()resultant_var = max(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;
- Specified by:
hasMaxConstraint
in 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:
getMaxConstraint
in interfaceMPGeneralConstraintProtoOrBuilder
- Returns:
- The maxConstraint.
-
getMaxConstraintOrBuilder
resultant_var = max(var_1, var_2, ..., constant)
.operations_research.MPArrayWithConstantConstraint max_constraint = 9;
- Specified by:
getMaxConstraintOrBuilder
in interfaceMPGeneralConstraintProtoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MPGeneralConstraintProto.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-