Interface MPModelProto.AnnotationOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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;
      • 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 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.