Class AnnotationValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotationValue.Builder>
com.google.cloud.visionai.v1.AnnotationValue.Builder
All Implemented Interfaces:
AnnotationValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AnnotationValue

public static final class AnnotationValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnnotationValue.Builder> implements AnnotationValueOrBuilder
 Value of annotation, including all types available in data schema.
 
Protobuf type google.cloud.visionai.v1.AnnotationValue
  • 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.Builder<AnnotationValue.Builder>
    • clear

      public AnnotationValue.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AnnotationValue.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AnnotationValue.Builder>
    • getDefaultInstanceForType

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

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

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

      public AnnotationValue.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotationValue.Builder>
    • mergeFrom

      public AnnotationValue.Builder mergeFrom(AnnotationValue other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AnnotationValue.Builder>
    • mergeFrom

      public AnnotationValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotationValue.Builder>
      Throws:
      IOException
    • getValueCase

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

      public AnnotationValue.Builder clearValue()
    • 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.
    • setIntValue

      public AnnotationValue.Builder setIntValue(long value)
       Value of int type annotation.
       
      int64 int_value = 1;
      Parameters:
      value - The intValue to set.
      Returns:
      This builder for chaining.
    • clearIntValue

      public AnnotationValue.Builder clearIntValue()
       Value of int type annotation.
       
      int64 int_value = 1;
      Returns:
      This builder for chaining.
    • 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.
    • setFloatValue

      public AnnotationValue.Builder setFloatValue(float value)
       Value of float type annotation.
       
      float float_value = 2;
      Parameters:
      value - The floatValue to set.
      Returns:
      This builder for chaining.
    • clearFloatValue

      public AnnotationValue.Builder clearFloatValue()
       Value of float type annotation.
       
      float float_value = 2;
      Returns:
      This builder for chaining.
    • 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.
    • setStrValue

      public AnnotationValue.Builder setStrValue(String value)
       Value of string type annotation.
       
      string str_value = 3;
      Parameters:
      value - The strValue to set.
      Returns:
      This builder for chaining.
    • clearStrValue

      public AnnotationValue.Builder clearStrValue()
       Value of string type annotation.
       
      string str_value = 3;
      Returns:
      This builder for chaining.
    • setStrValueBytes

      public AnnotationValue.Builder setStrValueBytes(com.google.protobuf.ByteString value)
       Value of string type annotation.
       
      string str_value = 3;
      Parameters:
      value - The bytes for strValue to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDatetimeValue

      public AnnotationValue.Builder setDatetimeValue(String value)
       Value of date time type annotation.
       
      string datetime_value = 5;
      Parameters:
      value - The datetimeValue to set.
      Returns:
      This builder for chaining.
    • clearDatetimeValue

      public AnnotationValue.Builder clearDatetimeValue()
       Value of date time type annotation.
       
      string datetime_value = 5;
      Returns:
      This builder for chaining.
    • setDatetimeValueBytes

      public AnnotationValue.Builder setDatetimeValueBytes(com.google.protobuf.ByteString value)
       Value of date time type annotation.
       
      string datetime_value = 5;
      Parameters:
      value - The bytes for datetimeValue to set.
      Returns:
      This builder for chaining.
    • 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.
    • setGeoCoordinate

      public AnnotationValue.Builder setGeoCoordinate(GeoCoordinate value)
       Value of geo coordinate type annotation.
       
      .google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;
    • setGeoCoordinate

      public AnnotationValue.Builder setGeoCoordinate(GeoCoordinate.Builder builderForValue)
       Value of geo coordinate type annotation.
       
      .google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;
    • mergeGeoCoordinate

      public AnnotationValue.Builder mergeGeoCoordinate(GeoCoordinate value)
       Value of geo coordinate type annotation.
       
      .google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;
    • clearGeoCoordinate

      public AnnotationValue.Builder clearGeoCoordinate()
       Value of geo coordinate type annotation.
       
      .google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;
    • getGeoCoordinateBuilder

      public GeoCoordinate.Builder getGeoCoordinateBuilder()
       Value of geo coordinate type annotation.
       
      .google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;
    • 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.
    • setProtoAnyValue

      public AnnotationValue.Builder setProtoAnyValue(com.google.protobuf.Any value)
       Value of any proto value.
       
      .google.protobuf.Any proto_any_value = 8;
    • setProtoAnyValue

      public AnnotationValue.Builder setProtoAnyValue(com.google.protobuf.Any.Builder builderForValue)
       Value of any proto value.
       
      .google.protobuf.Any proto_any_value = 8;
    • mergeProtoAnyValue

      public AnnotationValue.Builder mergeProtoAnyValue(com.google.protobuf.Any value)
       Value of any proto value.
       
      .google.protobuf.Any proto_any_value = 8;
    • clearProtoAnyValue

      public AnnotationValue.Builder clearProtoAnyValue()
       Value of any proto value.
       
      .google.protobuf.Any proto_any_value = 8;
    • getProtoAnyValueBuilder

      public com.google.protobuf.Any.Builder getProtoAnyValueBuilder()
       Value of any proto value.
       
      .google.protobuf.Any proto_any_value = 8;
    • 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.
    • setBoolValue

      public AnnotationValue.Builder setBoolValue(boolean value)
       Value of boolean type annotation.
       
      bool bool_value = 9;
      Parameters:
      value - The boolValue to set.
      Returns:
      This builder for chaining.
    • clearBoolValue

      public AnnotationValue.Builder clearBoolValue()
       Value of boolean type annotation.
       
      bool bool_value = 9;
      Returns:
      This builder for chaining.
    • 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.
    • setCustomizedStructDataValue

      public AnnotationValue.Builder setCustomizedStructDataValue(com.google.protobuf.Struct value)
       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;
    • setCustomizedStructDataValue

      public AnnotationValue.Builder setCustomizedStructDataValue(com.google.protobuf.Struct.Builder builderForValue)
       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;
    • mergeCustomizedStructDataValue

      public AnnotationValue.Builder mergeCustomizedStructDataValue(com.google.protobuf.Struct value)
       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;
    • clearCustomizedStructDataValue

      public AnnotationValue.Builder clearCustomizedStructDataValue()
       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;
    • getCustomizedStructDataValueBuilder

      public com.google.protobuf.Struct.Builder getCustomizedStructDataValueBuilder()
       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;
    • 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.
    • setListValue

      public AnnotationValue.Builder setListValue(AnnotationList value)
       Value of list type annotation.
       
      .google.cloud.visionai.v1.AnnotationList list_value = 11;
    • setListValue

      public AnnotationValue.Builder setListValue(AnnotationList.Builder builderForValue)
       Value of list type annotation.
       
      .google.cloud.visionai.v1.AnnotationList list_value = 11;
    • mergeListValue

      public AnnotationValue.Builder mergeListValue(AnnotationList value)
       Value of list type annotation.
       
      .google.cloud.visionai.v1.AnnotationList list_value = 11;
    • clearListValue

      public AnnotationValue.Builder clearListValue()
       Value of list type annotation.
       
      .google.cloud.visionai.v1.AnnotationList list_value = 11;
    • getListValueBuilder

      public AnnotationList.Builder getListValueBuilder()
       Value of list type annotation.
       
      .google.cloud.visionai.v1.AnnotationList list_value = 11;
    • 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.
    • setCustomizedStructValue

      public AnnotationValue.Builder setCustomizedStructValue(AnnotationCustomizedStruct value)
       Value of custom struct type annotation.
       
      .google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;
    • setCustomizedStructValue

      public AnnotationValue.Builder setCustomizedStructValue(AnnotationCustomizedStruct.Builder builderForValue)
       Value of custom struct type annotation.
       
      .google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;
    • mergeCustomizedStructValue

      public AnnotationValue.Builder mergeCustomizedStructValue(AnnotationCustomizedStruct value)
       Value of custom struct type annotation.
       
      .google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;
    • clearCustomizedStructValue

      public AnnotationValue.Builder clearCustomizedStructValue()
       Value of custom struct type annotation.
       
      .google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;
    • getCustomizedStructValueBuilder

      public AnnotationCustomizedStruct.Builder getCustomizedStructValueBuilder()
       Value of custom struct type annotation.
       
      .google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;
    • 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