Package com.google.ortools.linearsolver
Interface MPModelProto.AnnotationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MPModelProto.Annotation,MPModelProto.Annotation.Builder
- Enclosing class:
- MPModelProto
public static interface MPModelProto.AnnotationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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;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;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;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasTargetType
boolean hasTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;- Returns:
- Whether the targetType field is set.
-
getTargetType
MPModelProto.Annotation.TargetType getTargetType()
optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;- Returns:
- The targetType.
-
hasTargetIndex
boolean hasTargetIndex()
If both `target_index` and `target_name` are set, they must point to the same entity.
optional int32 target_index = 2;- Returns:
- Whether the targetIndex field is set.
-
getTargetIndex
int getTargetIndex()
If both `target_index` and `target_name` are set, they must point to the same entity.
optional int32 target_index = 2;- Returns:
- The targetIndex.
-
hasTargetName
boolean hasTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;- Returns:
- Whether the targetName field is set.
-
getTargetName
java.lang.String getTargetName()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;- Returns:
- The targetName.
-
getTargetNameBytes
com.google.protobuf.ByteString getTargetNameBytes()
Alternate to index. Assumes uniqueness.
optional string target_name = 3;- Returns:
- The bytes for targetName.
-
hasPayloadKey
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;- Returns:
- Whether the payloadKey field is set.
-
getPayloadKey
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;- Returns:
- The payloadKey.
-
getPayloadKeyBytes
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;- Returns:
- The bytes for payloadKey.
-
hasPayloadValue
boolean hasPayloadValue()
optional string payload_value = 5;- Returns:
- Whether the payloadValue field is set.
-
getPayloadValue
java.lang.String getPayloadValue()
optional string payload_value = 5;- Returns:
- The payloadValue.
-
getPayloadValueBytes
com.google.protobuf.ByteString getPayloadValueBytes()
optional string payload_value = 5;- Returns:
- The bytes for payloadValue.
-
-