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

    Modifier and Type
    Method
    Description
    The payload is a (key, value) string pair.
    com.google.protobuf.ByteString
    The payload is a (key, value) string pair.
    optional string payload_value = 5;
    com.google.protobuf.ByteString
    optional string payload_value = 5;
    int
    If both `target_index` and `target_name` are set, they must point to the same entity.
    Alternate to index.
    com.google.protobuf.ByteString
    Alternate to index.
    optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
    boolean
    The payload is a (key, value) string pair.
    boolean
    optional string payload_value = 5;
    boolean
    If both `target_index` and `target_name` are set, they must point to the same entity.
    boolean
    Alternate to index.
    boolean
    optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasTargetType

      boolean hasTargetType()
      optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
      Returns:
      Whether the targetType field is set.
    • 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

      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

      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

      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.