Package com.google.ortools.linearsolver
Class MPModelProto.Annotation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ortools.linearsolver.MPModelProto.Annotation
-
- All Implemented Interfaces:
MPModelProto.AnnotationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- MPModelProto
public static final class MPModelProto.Annotation extends com.google.protobuf.GeneratedMessageV3 implements MPModelProto.AnnotationOrBuilder
Annotations can be freely added by users who want to attach arbitrary payload to the model's variables or constraints.
Protobuf typeoperations_research.MPModelProto.Annotation- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMPModelProto.Annotation.BuilderAnnotations can be freely added by users who want to attach arbitrary payload to the model's variables or constraints.static classMPModelProto.Annotation.TargetTypeThe target of an Annotation is a single entity (e.g.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.protobuf.Parser<MPModelProto.Annotation>PARSERDeprecated.static intPAYLOAD_KEY_FIELD_NUMBERstatic intPAYLOAD_VALUE_FIELD_NUMBERstatic intTARGET_INDEX_FIELD_NUMBERstatic intTARGET_NAME_FIELD_NUMBERstatic intTARGET_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static MPModelProto.AnnotationgetDefaultInstance()MPModelProto.AnnotationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<MPModelProto.Annotation>getParserForType()java.lang.StringgetPayloadKey()The payload is a (key, value) string pair.com.google.protobuf.ByteStringgetPayloadKeyBytes()The payload is a (key, value) string pair.java.lang.StringgetPayloadValue()optional string payload_value = 5;com.google.protobuf.ByteStringgetPayloadValueBytes()optional string payload_value = 5;intgetSerializedSize()intgetTargetIndex()If both `target_index` and `target_name` are set, they must point to the same entity.java.lang.StringgetTargetName()Alternate to index.com.google.protobuf.ByteStringgetTargetNameBytes()Alternate to index.MPModelProto.Annotation.TargetTypegetTargetType()optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;inthashCode()booleanhasPayloadKey()The payload is a (key, value) string pair.booleanhasPayloadValue()optional string payload_value = 5;booleanhasTargetIndex()If both `target_index` and `target_name` are set, they must point to the same entity.booleanhasTargetName()Alternate to index.booleanhasTargetType()optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static MPModelProto.Annotation.BuildernewBuilder()static MPModelProto.Annotation.BuildernewBuilder(MPModelProto.Annotation prototype)MPModelProto.Annotation.BuildernewBuilderForType()protected MPModelProto.Annotation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MPModelProto.AnnotationparseDelimitedFrom(java.io.InputStream input)static MPModelProto.AnnotationparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MPModelProto.AnnotationparseFrom(byte[] data)static MPModelProto.AnnotationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MPModelProto.AnnotationparseFrom(com.google.protobuf.ByteString data)static MPModelProto.AnnotationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MPModelProto.AnnotationparseFrom(com.google.protobuf.CodedInputStream input)static MPModelProto.AnnotationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MPModelProto.AnnotationparseFrom(java.io.InputStream input)static MPModelProto.AnnotationparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MPModelProto.AnnotationparseFrom(java.nio.ByteBuffer data)static MPModelProto.AnnotationparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<MPModelProto.Annotation>parser()MPModelProto.Annotation.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TARGET_TYPE_FIELD_NUMBER
public static final int TARGET_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_INDEX_FIELD_NUMBER
public static final int TARGET_INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_NAME_FIELD_NUMBER
public static final int TARGET_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_KEY_FIELD_NUMBER
public static final int PAYLOAD_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_VALUE_FIELD_NUMBER
public static final int PAYLOAD_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<MPModelProto.Annotation> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasTargetType
public boolean hasTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;- Specified by:
hasTargetTypein interfaceMPModelProto.AnnotationOrBuilder- Returns:
- Whether the targetType field is set.
-
getTargetType
public MPModelProto.Annotation.TargetType getTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;- Specified by:
getTargetTypein interfaceMPModelProto.AnnotationOrBuilder- Returns:
- The targetType.
-
hasTargetIndex
public boolean hasTargetIndex()
If both `target_index` and `target_name` are set, they must point to the same entity.
optional int32 target_index = 2;- Specified by:
hasTargetIndexin interfaceMPModelProto.AnnotationOrBuilder- Returns:
- Whether the targetIndex field is set.
-
getTargetIndex
public int getTargetIndex()
If both `target_index` and `target_name` are set, they must point to the same entity.
optional int32 target_index = 2;- Specified by:
getTargetIndexin interfaceMPModelProto.AnnotationOrBuilder- Returns:
- The targetIndex.
-
hasTargetName
public boolean hasTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;- Specified by:
hasTargetNamein interfaceMPModelProto.AnnotationOrBuilder- Returns:
- Whether the targetName field is set.
-
getTargetName
public java.lang.String getTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;- Specified by:
getTargetNamein interfaceMPModelProto.AnnotationOrBuilder- Returns:
- The targetName.
-
getTargetNameBytes
public com.google.protobuf.ByteString getTargetNameBytes()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;- Specified by:
getTargetNameBytesin interfaceMPModelProto.AnnotationOrBuilder- Returns:
- The bytes for targetName.
-
hasPayloadKey
public boolean hasPayloadKey()
The payload is a (key, value) string pair. Depending on the use cases, one of the two may be omitted.
optional string payload_key = 4;- Specified by:
hasPayloadKeyin interfaceMPModelProto.AnnotationOrBuilder- Returns:
- Whether the payloadKey field is set.
-
getPayloadKey
public java.lang.String getPayloadKey()
The payload is a (key, value) string pair. Depending on the use cases, one of the two may be omitted.
optional string payload_key = 4;- Specified by:
getPayloadKeyin interfaceMPModelProto.AnnotationOrBuilder- Returns:
- The payloadKey.
-
getPayloadKeyBytes
public com.google.protobuf.ByteString getPayloadKeyBytes()
The payload is a (key, value) string pair. Depending on the use cases, one of the two may be omitted.
optional string payload_key = 4;- Specified by:
getPayloadKeyBytesin interfaceMPModelProto.AnnotationOrBuilder- Returns:
- The bytes for payloadKey.
-
hasPayloadValue
public boolean hasPayloadValue()
optional string payload_value = 5;- Specified by:
hasPayloadValuein interfaceMPModelProto.AnnotationOrBuilder- Returns:
- Whether the payloadValue field is set.
-
getPayloadValue
public java.lang.String getPayloadValue()
optional string payload_value = 5;- Specified by:
getPayloadValuein interfaceMPModelProto.AnnotationOrBuilder- Returns:
- The payloadValue.
-
getPayloadValueBytes
public com.google.protobuf.ByteString getPayloadValueBytes()
optional string payload_value = 5;- Specified by:
getPayloadValueBytesin interfaceMPModelProto.AnnotationOrBuilder- Returns:
- The bytes for payloadValue.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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 MPModelProto.Annotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPModelProto.Annotation parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPModelProto.Annotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPModelProto.Annotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPModelProto.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPModelProto.Annotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MPModelProto.Annotation parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static MPModelProto.Annotation parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static MPModelProto.Annotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static MPModelProto.Annotation parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static MPModelProto.Annotation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static MPModelProto.Annotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public MPModelProto.Annotation.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static MPModelProto.Annotation.Builder newBuilder()
-
newBuilder
public static MPModelProto.Annotation.Builder newBuilder(MPModelProto.Annotation prototype)
-
toBuilder
public MPModelProto.Annotation.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MPModelProto.Annotation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static MPModelProto.Annotation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<MPModelProto.Annotation> parser()
-
getParserForType
public com.google.protobuf.Parser<MPModelProto.Annotation> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public MPModelProto.Annotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-