public static final class MPModelProto.Annotation extends com.google.protobuf.GeneratedMessage implements MPModelProto.AnnotationOrBuilder
Annotations can be freely added by users who want to attach arbitrary payload to the model's variables or constraints.Protobuf type
operations_research.MPModelProto.Annotation| Modifier and Type | Class and Description |
|---|---|
static class |
MPModelProto.Annotation.Builder
Annotations can be freely added by users who want to attach arbitrary
payload to the model's variables or constraints.
|
static class |
MPModelProto.Annotation.TargetType
The target of an Annotation is a single entity (e.g.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
PAYLOAD_KEY_FIELD_NUMBER |
static int |
PAYLOAD_VALUE_FIELD_NUMBER |
static int |
TARGET_INDEX_FIELD_NUMBER |
static int |
TARGET_NAME_FIELD_NUMBER |
static int |
TARGET_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static MPModelProto.Annotation |
getDefaultInstance() |
MPModelProto.Annotation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<MPModelProto.Annotation> |
getParserForType() |
java.lang.String |
getPayloadKey()
The payload is a (key, value) string pair.
|
com.google.protobuf.ByteString |
getPayloadKeyBytes()
The payload is a (key, value) string pair.
|
java.lang.String |
getPayloadValue()
optional string payload_value = 5; |
com.google.protobuf.ByteString |
getPayloadValueBytes()
optional string payload_value = 5; |
int |
getSerializedSize() |
int |
getTargetIndex()
If both `target_index` and `target_name` are set, they must point to the
same entity.
|
java.lang.String |
getTargetName()
Alternate to index.
|
com.google.protobuf.ByteString |
getTargetNameBytes()
Alternate to index.
|
MPModelProto.Annotation.TargetType |
getTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1; |
int |
hashCode() |
boolean |
hasPayloadKey()
The payload is a (key, value) string pair.
|
boolean |
hasPayloadValue()
optional string payload_value = 5; |
boolean |
hasTargetIndex()
If both `target_index` and `target_name` are set, they must point to the
same entity.
|
boolean |
hasTargetName()
Alternate to index.
|
boolean |
hasTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MPModelProto.Annotation.Builder |
newBuilder() |
static MPModelProto.Annotation.Builder |
newBuilder(MPModelProto.Annotation prototype) |
MPModelProto.Annotation.Builder |
newBuilderForType() |
protected MPModelProto.Annotation.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static MPModelProto.Annotation |
parseDelimitedFrom(java.io.InputStream input) |
static MPModelProto.Annotation |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelProto.Annotation |
parseFrom(byte[] data) |
static MPModelProto.Annotation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelProto.Annotation |
parseFrom(java.nio.ByteBuffer data) |
static MPModelProto.Annotation |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelProto.Annotation |
parseFrom(com.google.protobuf.ByteString data) |
static MPModelProto.Annotation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelProto.Annotation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MPModelProto.Annotation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPModelProto.Annotation |
parseFrom(java.io.InputStream input) |
static MPModelProto.Annotation |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MPModelProto.Annotation> |
parser() |
MPModelProto.Annotation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TARGET_TYPE_FIELD_NUMBER
public static final int TARGET_INDEX_FIELD_NUMBER
public static final int TARGET_NAME_FIELD_NUMBER
public static final int PAYLOAD_KEY_FIELD_NUMBER
public static final int PAYLOAD_VALUE_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;hasTargetType in interface MPModelProto.AnnotationOrBuilderpublic MPModelProto.Annotation.TargetType getTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;getTargetType in interface MPModelProto.AnnotationOrBuilderpublic boolean hasTargetIndex()
If both `target_index` and `target_name` are set, they must point to the same entity.
optional int32 target_index = 2;hasTargetIndex in interface MPModelProto.AnnotationOrBuilderpublic int getTargetIndex()
If both `target_index` and `target_name` are set, they must point to the same entity.
optional int32 target_index = 2;getTargetIndex in interface MPModelProto.AnnotationOrBuilderpublic boolean hasTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;hasTargetName in interface MPModelProto.AnnotationOrBuilderpublic java.lang.String getTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;getTargetName in interface MPModelProto.AnnotationOrBuilderpublic com.google.protobuf.ByteString getTargetNameBytes()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;getTargetNameBytes in interface MPModelProto.AnnotationOrBuilderpublic 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;hasPayloadKey in interface MPModelProto.AnnotationOrBuilderpublic 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;getPayloadKey in interface MPModelProto.AnnotationOrBuilderpublic 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;getPayloadKeyBytes in interface MPModelProto.AnnotationOrBuilderpublic boolean hasPayloadValue()
optional string payload_value = 5;hasPayloadValue in interface MPModelProto.AnnotationOrBuilderpublic java.lang.String getPayloadValue()
optional string payload_value = 5;getPayloadValue in interface MPModelProto.AnnotationOrBuilderpublic com.google.protobuf.ByteString getPayloadValueBytes()
optional string payload_value = 5;getPayloadValueBytes in interface MPModelProto.AnnotationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MPModelProto.Annotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelProto.Annotation parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelProto.Annotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelProto.Annotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelProto.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelProto.Annotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPModelProto.Annotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPModelProto.Annotation parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MPModelProto.Annotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPModelProto.Annotation parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MPModelProto.Annotation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPModelProto.Annotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MPModelProto.Annotation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MPModelProto.Annotation.Builder newBuilder()
public static MPModelProto.Annotation.Builder newBuilder(MPModelProto.Annotation prototype)
public MPModelProto.Annotation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MPModelProto.Annotation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static MPModelProto.Annotation getDefaultInstance()
public static com.google.protobuf.Parser<MPModelProto.Annotation> parser()
public com.google.protobuf.Parser<MPModelProto.Annotation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic MPModelProto.Annotation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.