Class AnnotationValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.AnnotationValue
All Implemented Interfaces:
AnnotationValueOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AnnotationValue extends com.google.protobuf.GeneratedMessage implements AnnotationValueOrBuilder
 Value of annotation, including all types available in data schema.
 
Protobuf type google.cloud.visionai.v1.AnnotationValue
See Also:
  • Field Details

    • INT_VALUE_FIELD_NUMBER

      public static final int INT_VALUE_FIELD_NUMBER
      See Also:
    • FLOAT_VALUE_FIELD_NUMBER

      public static final int FLOAT_VALUE_FIELD_NUMBER
      See Also:
    • STR_VALUE_FIELD_NUMBER

      public static final int STR_VALUE_FIELD_NUMBER
      See Also:
    • DATETIME_VALUE_FIELD_NUMBER

      public static final int DATETIME_VALUE_FIELD_NUMBER
      See Also:
    • GEO_COORDINATE_FIELD_NUMBER

      public static final int GEO_COORDINATE_FIELD_NUMBER
      See Also:
    • PROTO_ANY_VALUE_FIELD_NUMBER

      public static final int PROTO_ANY_VALUE_FIELD_NUMBER
      See Also:
    • BOOL_VALUE_FIELD_NUMBER

      public static final int BOOL_VALUE_FIELD_NUMBER
      See Also:
    • CUSTOMIZED_STRUCT_DATA_VALUE_FIELD_NUMBER

      public static final int CUSTOMIZED_STRUCT_DATA_VALUE_FIELD_NUMBER
      See Also:
    • LIST_VALUE_FIELD_NUMBER

      public static final int LIST_VALUE_FIELD_NUMBER
      See Also:
    • CUSTOMIZED_STRUCT_VALUE_FIELD_NUMBER

      public static final int CUSTOMIZED_STRUCT_VALUE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getValueCase

      public AnnotationValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface AnnotationValueOrBuilder
    • hasIntValue

      public boolean hasIntValue()
       Value of int type annotation.
       
      int64 int_value = 1;
      Specified by:
      hasIntValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the intValue field is set.
    • getIntValue

      public long getIntValue()
       Value of int type annotation.
       
      int64 int_value = 1;
      Specified by:
      getIntValue in interface AnnotationValueOrBuilder
      Returns:
      The intValue.
    • hasFloatValue

      public boolean hasFloatValue()
       Value of float type annotation.
       
      float float_value = 2;
      Specified by:
      hasFloatValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the floatValue field is set.
    • getFloatValue

      public float getFloatValue()
       Value of float type annotation.
       
      float float_value = 2;
      Specified by:
      getFloatValue in interface AnnotationValueOrBuilder
      Returns:
      The floatValue.
    • hasStrValue

      public boolean hasStrValue()
       Value of string type annotation.
       
      string str_value = 3;
      Specified by:
      hasStrValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the strValue field is set.
    • getStrValue

      public String getStrValue()
       Value of string type annotation.
       
      string str_value = 3;
      Specified by:
      getStrValue in interface AnnotationValueOrBuilder
      Returns:
      The strValue.
    • getStrValueBytes

      public com.google.protobuf.ByteString getStrValueBytes()
       Value of string type annotation.
       
      string str_value = 3;
      Specified by:
      getStrValueBytes in interface AnnotationValueOrBuilder
      Returns:
      The bytes for strValue.
    • hasDatetimeValue

      public boolean hasDatetimeValue()
       Value of date time type annotation.
       
      string datetime_value = 5;
      Specified by:
      hasDatetimeValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the datetimeValue field is set.
    • getDatetimeValue

      public String getDatetimeValue()
       Value of date time type annotation.
       
      string datetime_value = 5;
      Specified by:
      getDatetimeValue in interface AnnotationValueOrBuilder
      Returns:
      The datetimeValue.
    • getDatetimeValueBytes

      public com.google.protobuf.ByteString getDatetimeValueBytes()
       Value of date time type annotation.
       
      string datetime_value = 5;
      Specified by:
      getDatetimeValueBytes in interface AnnotationValueOrBuilder
      Returns:
      The bytes for datetimeValue.
    • hasGeoCoordinate

      public boolean hasGeoCoordinate()
       Value of geo coordinate type annotation.
       
      .google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;
      Specified by:
      hasGeoCoordinate in interface AnnotationValueOrBuilder
      Returns:
      Whether the geoCoordinate field is set.
    • getGeoCoordinate

      public GeoCoordinate getGeoCoordinate()
       Value of geo coordinate type annotation.
       
      .google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;
      Specified by:
      getGeoCoordinate in interface AnnotationValueOrBuilder
      Returns:
      The geoCoordinate.
    • getGeoCoordinateOrBuilder

      public GeoCoordinateOrBuilder getGeoCoordinateOrBuilder()
       Value of geo coordinate type annotation.
       
      .google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;
      Specified by:
      getGeoCoordinateOrBuilder in interface AnnotationValueOrBuilder
    • hasProtoAnyValue

      public boolean hasProtoAnyValue()
       Value of any proto value.
       
      .google.protobuf.Any proto_any_value = 8;
      Specified by:
      hasProtoAnyValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the protoAnyValue field is set.
    • getProtoAnyValue

      public com.google.protobuf.Any getProtoAnyValue()
       Value of any proto value.
       
      .google.protobuf.Any proto_any_value = 8;
      Specified by:
      getProtoAnyValue in interface AnnotationValueOrBuilder
      Returns:
      The protoAnyValue.
    • getProtoAnyValueOrBuilder

      public com.google.protobuf.AnyOrBuilder getProtoAnyValueOrBuilder()
       Value of any proto value.
       
      .google.protobuf.Any proto_any_value = 8;
      Specified by:
      getProtoAnyValueOrBuilder in interface AnnotationValueOrBuilder
    • hasBoolValue

      public boolean hasBoolValue()
       Value of boolean type annotation.
       
      bool bool_value = 9;
      Specified by:
      hasBoolValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       Value of boolean type annotation.
       
      bool bool_value = 9;
      Specified by:
      getBoolValue in interface AnnotationValueOrBuilder
      Returns:
      The boolValue.
    • hasCustomizedStructDataValue

      public boolean hasCustomizedStructDataValue()
       Value of customized struct annotation. This field does not have effects.
       Use customized_struct_value instead for customized struct annotation.
       
      .google.protobuf.Struct customized_struct_data_value = 10;
      Specified by:
      hasCustomizedStructDataValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the customizedStructDataValue field is set.
    • getCustomizedStructDataValue

      public com.google.protobuf.Struct getCustomizedStructDataValue()
       Value of customized struct annotation. This field does not have effects.
       Use customized_struct_value instead for customized struct annotation.
       
      .google.protobuf.Struct customized_struct_data_value = 10;
      Specified by:
      getCustomizedStructDataValue in interface AnnotationValueOrBuilder
      Returns:
      The customizedStructDataValue.
    • getCustomizedStructDataValueOrBuilder

      public com.google.protobuf.StructOrBuilder getCustomizedStructDataValueOrBuilder()
       Value of customized struct annotation. This field does not have effects.
       Use customized_struct_value instead for customized struct annotation.
       
      .google.protobuf.Struct customized_struct_data_value = 10;
      Specified by:
      getCustomizedStructDataValueOrBuilder in interface AnnotationValueOrBuilder
    • hasListValue

      public boolean hasListValue()
       Value of list type annotation.
       
      .google.cloud.visionai.v1.AnnotationList list_value = 11;
      Specified by:
      hasListValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the listValue field is set.
    • getListValue

      public AnnotationList getListValue()
       Value of list type annotation.
       
      .google.cloud.visionai.v1.AnnotationList list_value = 11;
      Specified by:
      getListValue in interface AnnotationValueOrBuilder
      Returns:
      The listValue.
    • getListValueOrBuilder

      public AnnotationListOrBuilder getListValueOrBuilder()
       Value of list type annotation.
       
      .google.cloud.visionai.v1.AnnotationList list_value = 11;
      Specified by:
      getListValueOrBuilder in interface AnnotationValueOrBuilder
    • hasCustomizedStructValue

      public boolean hasCustomizedStructValue()
       Value of custom struct type annotation.
       
      .google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;
      Specified by:
      hasCustomizedStructValue in interface AnnotationValueOrBuilder
      Returns:
      Whether the customizedStructValue field is set.
    • getCustomizedStructValue

      public AnnotationCustomizedStruct getCustomizedStructValue()
       Value of custom struct type annotation.
       
      .google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;
      Specified by:
      getCustomizedStructValue in interface AnnotationValueOrBuilder
      Returns:
      The customizedStructValue.
    • getCustomizedStructValueOrBuilder

      public AnnotationCustomizedStructOrBuilder getCustomizedStructValueOrBuilder()
       Value of custom struct type annotation.
       
      .google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;
      Specified by:
      getCustomizedStructValueOrBuilder in interface AnnotationValueOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AnnotationValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnnotationValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnnotationValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AnnotationValue.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AnnotationValue.Builder newBuilder()
    • newBuilder

      public static AnnotationValue.Builder newBuilder(AnnotationValue prototype)
    • toBuilder

      public AnnotationValue.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AnnotationValue.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AnnotationValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AnnotationValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<AnnotationValue> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AnnotationValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder