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. a variable).
|
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessage
public boolean hasTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
hasTargetType
in interface MPModelProto.AnnotationOrBuilder
public MPModelProto.Annotation.TargetType getTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
getTargetType
in interface MPModelProto.AnnotationOrBuilder
public 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.AnnotationOrBuilder
public 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.AnnotationOrBuilder
public boolean hasTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;
hasTargetName
in interface MPModelProto.AnnotationOrBuilder
public java.lang.String getTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;
getTargetName
in interface MPModelProto.AnnotationOrBuilder
public com.google.protobuf.ByteString getTargetNameBytes()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;
getTargetNameBytes
in interface MPModelProto.AnnotationOrBuilder
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;
hasPayloadKey
in interface MPModelProto.AnnotationOrBuilder
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;
getPayloadKey
in interface MPModelProto.AnnotationOrBuilder
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;
getPayloadKeyBytes
in interface MPModelProto.AnnotationOrBuilder
public boolean hasPayloadValue()
optional string payload_value = 5;
hasPayloadValue
in interface MPModelProto.AnnotationOrBuilder
public java.lang.String getPayloadValue()
optional string payload_value = 5;
getPayloadValue
in interface MPModelProto.AnnotationOrBuilder
public com.google.protobuf.ByteString getPayloadValueBytes()
optional string payload_value = 5;
getPayloadValueBytes
in interface MPModelProto.AnnotationOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static MPModelProto.Annotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelProto.Annotation parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelProto.Annotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelProto.Annotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelProto.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelProto.Annotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPModelProto.Annotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MPModelProto.Annotation parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MPModelProto.Annotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MPModelProto.Annotation parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MPModelProto.Annotation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static MPModelProto.Annotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public MPModelProto.Annotation.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected MPModelProto.Annotation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public MPModelProto.Annotation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2025. All rights reserved.