Class AnnotationValue.Builder (0.2.0)

public static final class AnnotationValue.Builder extends GeneratedMessageV3.Builder<AnnotationValue.Builder> implements AnnotationValueOrBuilder

Value of annotation, including all types available in data schema.

Protobuf type google.cloud.visionai.v1.AnnotationValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnnotationValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnnotationValue.Builder
Overrides

build()

public AnnotationValue build()
Returns
Type Description
AnnotationValue

buildPartial()

public AnnotationValue buildPartial()
Returns
Type Description
AnnotationValue

clear()

public AnnotationValue.Builder clear()
Returns
Type Description
AnnotationValue.Builder
Overrides

clearBoolValue()

public AnnotationValue.Builder clearBoolValue()

Value of boolean type annotation.

bool bool_value = 9;

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

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;

Returns
Type Description
AnnotationValue.Builder

clearCustomizedStructValue()

public AnnotationValue.Builder clearCustomizedStructValue()

Value of custom struct type annotation.

.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;

Returns
Type Description
AnnotationValue.Builder

clearDatetimeValue()

public AnnotationValue.Builder clearDatetimeValue()

Value of date time type annotation.

string datetime_value = 5;

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnnotationValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnnotationValue.Builder
Overrides

clearFloatValue()

public AnnotationValue.Builder clearFloatValue()

Value of float type annotation.

float float_value = 2;

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

clearGeoCoordinate()

public AnnotationValue.Builder clearGeoCoordinate()

Value of geo coordinate type annotation.

.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;

Returns
Type Description
AnnotationValue.Builder

clearIntValue()

public AnnotationValue.Builder clearIntValue()

Value of int type annotation.

int64 int_value = 1;

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

clearListValue()

public AnnotationValue.Builder clearListValue()

Value of list type annotation.

.google.cloud.visionai.v1.AnnotationList list_value = 11;

Returns
Type Description
AnnotationValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnnotationValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnnotationValue.Builder
Overrides

clearProtoAnyValue()

public AnnotationValue.Builder clearProtoAnyValue()

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Returns
Type Description
AnnotationValue.Builder

clearStrValue()

public AnnotationValue.Builder clearStrValue()

Value of string type annotation.

string str_value = 3;

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

clearValue()

public AnnotationValue.Builder clearValue()
Returns
Type Description
AnnotationValue.Builder

clone()

public AnnotationValue.Builder clone()
Returns
Type Description
AnnotationValue.Builder
Overrides

getBoolValue()

public boolean getBoolValue()

Value of boolean type annotation.

bool bool_value = 9;

Returns
Type Description
boolean

The boolValue.

getCustomizedStructDataValue()

public 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;

Returns
Type Description
Struct

The customizedStructDataValue.

getCustomizedStructDataValueBuilder()

public 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;

Returns
Type Description
Builder

getCustomizedStructDataValueOrBuilder()

public 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;

Returns
Type Description
StructOrBuilder

getCustomizedStructValue()

public AnnotationCustomizedStruct getCustomizedStructValue()

Value of custom struct type annotation.

.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;

Returns
Type Description
AnnotationCustomizedStruct

The customizedStructValue.

getCustomizedStructValueBuilder()

public AnnotationCustomizedStruct.Builder getCustomizedStructValueBuilder()

Value of custom struct type annotation.

.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;

Returns
Type Description
AnnotationCustomizedStruct.Builder

getCustomizedStructValueOrBuilder()

public AnnotationCustomizedStructOrBuilder getCustomizedStructValueOrBuilder()

Value of custom struct type annotation.

.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;

Returns
Type Description
AnnotationCustomizedStructOrBuilder

getDatetimeValue()

public String getDatetimeValue()

Value of date time type annotation.

string datetime_value = 5;

Returns
Type Description
String

The datetimeValue.

getDatetimeValueBytes()

public ByteString getDatetimeValueBytes()

Value of date time type annotation.

string datetime_value = 5;

Returns
Type Description
ByteString

The bytes for datetimeValue.

getDefaultInstanceForType()

public AnnotationValue getDefaultInstanceForType()
Returns
Type Description
AnnotationValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFloatValue()

public float getFloatValue()

Value of float type annotation.

float float_value = 2;

Returns
Type Description
float

The floatValue.

getGeoCoordinate()

public GeoCoordinate getGeoCoordinate()

Value of geo coordinate type annotation.

.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;

Returns
Type Description
GeoCoordinate

The geoCoordinate.

getGeoCoordinateBuilder()

public GeoCoordinate.Builder getGeoCoordinateBuilder()

Value of geo coordinate type annotation.

.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;

Returns
Type Description
GeoCoordinate.Builder

getGeoCoordinateOrBuilder()

public GeoCoordinateOrBuilder getGeoCoordinateOrBuilder()

Value of geo coordinate type annotation.

.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;

Returns
Type Description
GeoCoordinateOrBuilder

getIntValue()

public long getIntValue()

Value of int type annotation.

int64 int_value = 1;

Returns
Type Description
long

The intValue.

getListValue()

public AnnotationList getListValue()

Value of list type annotation.

.google.cloud.visionai.v1.AnnotationList list_value = 11;

Returns
Type Description
AnnotationList

The listValue.

getListValueBuilder()

public AnnotationList.Builder getListValueBuilder()

Value of list type annotation.

.google.cloud.visionai.v1.AnnotationList list_value = 11;

Returns
Type Description
AnnotationList.Builder

getListValueOrBuilder()

public AnnotationListOrBuilder getListValueOrBuilder()

Value of list type annotation.

.google.cloud.visionai.v1.AnnotationList list_value = 11;

Returns
Type Description
AnnotationListOrBuilder

getProtoAnyValue()

public Any getProtoAnyValue()

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Returns
Type Description
Any

The protoAnyValue.

getProtoAnyValueBuilder()

public Any.Builder getProtoAnyValueBuilder()

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Returns
Type Description
Builder

getProtoAnyValueOrBuilder()

public AnyOrBuilder getProtoAnyValueOrBuilder()

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Returns
Type Description
AnyOrBuilder

getStrValue()

public String getStrValue()

Value of string type annotation.

string str_value = 3;

Returns
Type Description
String

The strValue.

getStrValueBytes()

public ByteString getStrValueBytes()

Value of string type annotation.

string str_value = 3;

Returns
Type Description
ByteString

The bytes for strValue.

getValueCase()

public AnnotationValue.ValueCase getValueCase()
Returns
Type Description
AnnotationValue.ValueCase

hasBoolValue()

public boolean hasBoolValue()

Value of boolean type annotation.

bool bool_value = 9;

Returns
Type Description
boolean

Whether the boolValue field is set.

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;

Returns
Type Description
boolean

Whether the customizedStructDataValue field is set.

hasCustomizedStructValue()

public boolean hasCustomizedStructValue()

Value of custom struct type annotation.

.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;

Returns
Type Description
boolean

Whether the customizedStructValue field is set.

hasDatetimeValue()

public boolean hasDatetimeValue()

Value of date time type annotation.

string datetime_value = 5;

Returns
Type Description
boolean

Whether the datetimeValue field is set.

hasFloatValue()

public boolean hasFloatValue()

Value of float type annotation.

float float_value = 2;

Returns
Type Description
boolean

Whether the floatValue field is set.

hasGeoCoordinate()

public boolean hasGeoCoordinate()

Value of geo coordinate type annotation.

.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;

Returns
Type Description
boolean

Whether the geoCoordinate field is set.

hasIntValue()

public boolean hasIntValue()

Value of int type annotation.

int64 int_value = 1;

Returns
Type Description
boolean

Whether the intValue field is set.

hasListValue()

public boolean hasListValue()

Value of list type annotation.

.google.cloud.visionai.v1.AnnotationList list_value = 11;

Returns
Type Description
boolean

Whether the listValue field is set.

hasProtoAnyValue()

public boolean hasProtoAnyValue()

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Returns
Type Description
boolean

Whether the protoAnyValue field is set.

hasStrValue()

public boolean hasStrValue()

Value of string type annotation.

string str_value = 3;

Returns
Type Description
boolean

Whether the strValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomizedStructDataValue(Struct value)

public AnnotationValue.Builder mergeCustomizedStructDataValue(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;

Parameter
Name Description
value Struct
Returns
Type Description
AnnotationValue.Builder

mergeCustomizedStructValue(AnnotationCustomizedStruct value)

public AnnotationValue.Builder mergeCustomizedStructValue(AnnotationCustomizedStruct value)

Value of custom struct type annotation.

.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;

Parameter
Name Description
value AnnotationCustomizedStruct
Returns
Type Description
AnnotationValue.Builder

mergeFrom(AnnotationValue other)

public AnnotationValue.Builder mergeFrom(AnnotationValue other)
Parameter
Name Description
other AnnotationValue
Returns
Type Description
AnnotationValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnnotationValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnnotationValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnnotationValue.Builder
Overrides

mergeGeoCoordinate(GeoCoordinate value)

public AnnotationValue.Builder mergeGeoCoordinate(GeoCoordinate value)

Value of geo coordinate type annotation.

.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;

Parameter
Name Description
value GeoCoordinate
Returns
Type Description
AnnotationValue.Builder

mergeListValue(AnnotationList value)

public AnnotationValue.Builder mergeListValue(AnnotationList value)

Value of list type annotation.

.google.cloud.visionai.v1.AnnotationList list_value = 11;

Parameter
Name Description
value AnnotationList
Returns
Type Description
AnnotationValue.Builder

mergeProtoAnyValue(Any value)

public AnnotationValue.Builder mergeProtoAnyValue(Any value)

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Parameter
Name Description
value Any
Returns
Type Description
AnnotationValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnnotationValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnnotationValue.Builder
Overrides

setBoolValue(boolean value)

public AnnotationValue.Builder setBoolValue(boolean value)

Value of boolean type annotation.

bool bool_value = 9;

Parameter
Name Description
value boolean

The boolValue to set.

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

setCustomizedStructDataValue(Struct value)

public AnnotationValue.Builder setCustomizedStructDataValue(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;

Parameter
Name Description
value Struct
Returns
Type Description
AnnotationValue.Builder

setCustomizedStructDataValue(Struct.Builder builderForValue)

public AnnotationValue.Builder setCustomizedStructDataValue(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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AnnotationValue.Builder

setCustomizedStructValue(AnnotationCustomizedStruct value)

public AnnotationValue.Builder setCustomizedStructValue(AnnotationCustomizedStruct value)

Value of custom struct type annotation.

.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;

Parameter
Name Description
value AnnotationCustomizedStruct
Returns
Type Description
AnnotationValue.Builder

setCustomizedStructValue(AnnotationCustomizedStruct.Builder builderForValue)

public AnnotationValue.Builder setCustomizedStructValue(AnnotationCustomizedStruct.Builder builderForValue)

Value of custom struct type annotation.

.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;

Parameter
Name Description
builderForValue AnnotationCustomizedStruct.Builder
Returns
Type Description
AnnotationValue.Builder

setDatetimeValue(String value)

public AnnotationValue.Builder setDatetimeValue(String value)

Value of date time type annotation.

string datetime_value = 5;

Parameter
Name Description
value String

The datetimeValue to set.

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

setDatetimeValueBytes(ByteString value)

public AnnotationValue.Builder setDatetimeValueBytes(ByteString value)

Value of date time type annotation.

string datetime_value = 5;

Parameter
Name Description
value ByteString

The bytes for datetimeValue to set.

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotationValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnnotationValue.Builder
Overrides

setFloatValue(float value)

public AnnotationValue.Builder setFloatValue(float value)

Value of float type annotation.

float float_value = 2;

Parameter
Name Description
value float

The floatValue to set.

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

setGeoCoordinate(GeoCoordinate value)

public AnnotationValue.Builder setGeoCoordinate(GeoCoordinate value)

Value of geo coordinate type annotation.

.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;

Parameter
Name Description
value GeoCoordinate
Returns
Type Description
AnnotationValue.Builder

setGeoCoordinate(GeoCoordinate.Builder builderForValue)

public AnnotationValue.Builder setGeoCoordinate(GeoCoordinate.Builder builderForValue)

Value of geo coordinate type annotation.

.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;

Parameter
Name Description
builderForValue GeoCoordinate.Builder
Returns
Type Description
AnnotationValue.Builder

setIntValue(long value)

public AnnotationValue.Builder setIntValue(long value)

Value of int type annotation.

int64 int_value = 1;

Parameter
Name Description
value long

The intValue to set.

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

setListValue(AnnotationList value)

public AnnotationValue.Builder setListValue(AnnotationList value)

Value of list type annotation.

.google.cloud.visionai.v1.AnnotationList list_value = 11;

Parameter
Name Description
value AnnotationList
Returns
Type Description
AnnotationValue.Builder

setListValue(AnnotationList.Builder builderForValue)

public AnnotationValue.Builder setListValue(AnnotationList.Builder builderForValue)

Value of list type annotation.

.google.cloud.visionai.v1.AnnotationList list_value = 11;

Parameter
Name Description
builderForValue AnnotationList.Builder
Returns
Type Description
AnnotationValue.Builder

setProtoAnyValue(Any value)

public AnnotationValue.Builder setProtoAnyValue(Any value)

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Parameter
Name Description
value Any
Returns
Type Description
AnnotationValue.Builder

setProtoAnyValue(Any.Builder builderForValue)

public AnnotationValue.Builder setProtoAnyValue(Any.Builder builderForValue)

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AnnotationValue.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnnotationValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnnotationValue.Builder
Overrides

setStrValue(String value)

public AnnotationValue.Builder setStrValue(String value)

Value of string type annotation.

string str_value = 3;

Parameter
Name Description
value String

The strValue to set.

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

setStrValueBytes(ByteString value)

public AnnotationValue.Builder setStrValueBytes(ByteString value)

Value of string type annotation.

string str_value = 3;

Parameter
Name Description
value ByteString

The bytes for strValue to set.

Returns
Type Description
AnnotationValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AnnotationValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnnotationValue.Builder
Overrides