Class AnnotationValue (0.5.0)

public final class AnnotationValue extends GeneratedMessageV3 implements AnnotationValueOrBuilder

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

Protobuf type google.cloud.visionai.v1.AnnotationValue

Static Fields

BOOL_VALUE_FIELD_NUMBER

public static final int BOOL_VALUE_FIELD_NUMBER
Field Value
Type Description
int

CUSTOMIZED_STRUCT_DATA_VALUE_FIELD_NUMBER

public static final int CUSTOMIZED_STRUCT_DATA_VALUE_FIELD_NUMBER
Field Value
Type Description
int

CUSTOMIZED_STRUCT_VALUE_FIELD_NUMBER

public static final int CUSTOMIZED_STRUCT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

DATETIME_VALUE_FIELD_NUMBER

public static final int DATETIME_VALUE_FIELD_NUMBER
Field Value
Type Description
int

FLOAT_VALUE_FIELD_NUMBER

public static final int FLOAT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

GEO_COORDINATE_FIELD_NUMBER

public static final int GEO_COORDINATE_FIELD_NUMBER
Field Value
Type Description
int

INT_VALUE_FIELD_NUMBER

public static final int INT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

LIST_VALUE_FIELD_NUMBER

public static final int LIST_VALUE_FIELD_NUMBER
Field Value
Type Description
int

PROTO_ANY_VALUE_FIELD_NUMBER

public static final int PROTO_ANY_VALUE_FIELD_NUMBER
Field Value
Type Description
int

STR_VALUE_FIELD_NUMBER

public static final int STR_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AnnotationValue getDefaultInstance()
Returns
Type Description
AnnotationValue

getDescriptor()

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

newBuilder()

public static AnnotationValue.Builder newBuilder()
Returns
Type Description
AnnotationValue.Builder

newBuilder(AnnotationValue prototype)

public static AnnotationValue.Builder newBuilder(AnnotationValue prototype)
Parameter
Name Description
prototype AnnotationValue
Returns
Type Description
AnnotationValue.Builder

parseDelimitedFrom(InputStream input)

public static AnnotationValue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AnnotationValue parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnnotationValue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnnotationValue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AnnotationValue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AnnotationValue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AnnotationValue> parser()
Returns
Type Description
Parser<AnnotationValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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.

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

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.

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.

getListValueOrBuilder()

public AnnotationListOrBuilder getListValueOrBuilder()

Value of list type annotation.

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

Returns
Type Description
AnnotationListOrBuilder

getParserForType()

public Parser<AnnotationValue> getParserForType()
Returns
Type Description
Parser<AnnotationValue>
Overrides

getProtoAnyValue()

public Any getProtoAnyValue()

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Returns
Type Description
Any

The protoAnyValue.

getProtoAnyValueOrBuilder()

public AnyOrBuilder getProtoAnyValueOrBuilder()

Value of any proto value.

.google.protobuf.Any proto_any_value = 8;

Returns
Type Description
AnyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnnotationValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnnotationValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException