public static final class MPModelProto.Annotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<MPModelProto.Annotation.Builder> 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 | Method and Description |
|---|---|
MPModelProto.Annotation |
build() |
MPModelProto.Annotation |
buildPartial() |
MPModelProto.Annotation.Builder |
clear() |
MPModelProto.Annotation.Builder |
clearPayloadKey()
The payload is a (key, value) string pair.
|
MPModelProto.Annotation.Builder |
clearPayloadValue()
optional string payload_value = 5; |
MPModelProto.Annotation.Builder |
clearTargetIndex()
If both `target_index` and `target_name` are set, they must point to the
same entity.
|
MPModelProto.Annotation.Builder |
clearTargetName()
Alternate to index.
|
MPModelProto.Annotation.Builder |
clearTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1; |
MPModelProto.Annotation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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 |
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; |
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() |
MPModelProto.Annotation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MPModelProto.Annotation.Builder |
mergeFrom(com.google.protobuf.Message other) |
MPModelProto.Annotation.Builder |
mergeFrom(MPModelProto.Annotation other) |
MPModelProto.Annotation.Builder |
setPayloadKey(java.lang.String value)
The payload is a (key, value) string pair.
|
MPModelProto.Annotation.Builder |
setPayloadKeyBytes(com.google.protobuf.ByteString value)
The payload is a (key, value) string pair.
|
MPModelProto.Annotation.Builder |
setPayloadValue(java.lang.String value)
optional string payload_value = 5; |
MPModelProto.Annotation.Builder |
setPayloadValueBytes(com.google.protobuf.ByteString value)
optional string payload_value = 5; |
MPModelProto.Annotation.Builder |
setTargetIndex(int value)
If both `target_index` and `target_name` are set, they must point to the
same entity.
|
MPModelProto.Annotation.Builder |
setTargetName(java.lang.String value)
Alternate to index.
|
MPModelProto.Annotation.Builder |
setTargetNameBytes(com.google.protobuf.ByteString value)
Alternate to index.
|
MPModelProto.Annotation.Builder |
setTargetType(MPModelProto.Annotation.TargetType value)
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1; |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MPModelProto.Annotation.Builder>public MPModelProto.Annotation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<MPModelProto.Annotation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MPModelProto.Annotation.Builder>public MPModelProto.Annotation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MPModelProto.Annotation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MPModelProto.Annotation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MPModelProto.Annotation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPModelProto.Annotation.Builder>public MPModelProto.Annotation.Builder mergeFrom(MPModelProto.Annotation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<MPModelProto.Annotation.Builder>public MPModelProto.Annotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPModelProto.Annotation.Builder>java.io.IOExceptionpublic 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 MPModelProto.Annotation.Builder setTargetType(MPModelProto.Annotation.TargetType value)
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;value - The targetType to set.public MPModelProto.Annotation.Builder clearTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;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.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 MPModelProto.Annotation.Builder setTargetIndex(int value)
If both `target_index` and `target_name` are set, they must point to the same entity.
optional int32 target_index = 2;value - The targetIndex to set.public MPModelProto.Annotation.Builder clearTargetIndex()
If both `target_index` and `target_name` are set, they must point to the same entity.
optional int32 target_index = 2;public 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 MPModelProto.Annotation.Builder setTargetName(java.lang.String value)
Alternate to index. Assumes uniqueness.
optional string target_name = 3;value - The targetName to set.public MPModelProto.Annotation.Builder clearTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;public MPModelProto.Annotation.Builder setTargetNameBytes(com.google.protobuf.ByteString value)
Alternate to index. Assumes uniqueness.
optional string target_name = 3;value - The bytes for targetName to set.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.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 MPModelProto.Annotation.Builder setPayloadKey(java.lang.String value)
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;value - The payloadKey to set.public MPModelProto.Annotation.Builder clearPayloadKey()
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;public MPModelProto.Annotation.Builder setPayloadKeyBytes(com.google.protobuf.ByteString value)
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;value - The bytes for payloadKey to set.public 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 MPModelProto.Annotation.Builder setPayloadValue(java.lang.String value)
optional string payload_value = 5;value - The payloadValue to set.public MPModelProto.Annotation.Builder clearPayloadValue()
optional string payload_value = 5;public MPModelProto.Annotation.Builder setPayloadValueBytes(com.google.protobuf.ByteString value)
optional string payload_value = 5;value - The bytes for payloadValue to set.Copyright © 2024. All rights reserved.