Class UserSpecifiedAnnotation (0.3.0)

public final class UserSpecifiedAnnotation extends GeneratedMessageV3 implements UserSpecifiedAnnotationOrBuilder

Annotation provided by users.

Protobuf type google.cloud.visionai.v1.UserSpecifiedAnnotation

Static Fields

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
Type Description
int

PARTITION_FIELD_NUMBER

public static final int PARTITION_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UserSpecifiedAnnotation getDefaultInstance()
Returns
Type Description
UserSpecifiedAnnotation

getDescriptor()

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

newBuilder()

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

newBuilder(UserSpecifiedAnnotation prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public UserSpecifiedAnnotation getDefaultInstanceForType()
Returns
Type Description
UserSpecifiedAnnotation

getKey()

public String getKey()

Required. Key of the annotation. The key must be set with type by CreateDataSchema.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. Key of the annotation. The key must be set with type by CreateDataSchema.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for key.

getParserForType()

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

getPartition()

public Partition getPartition()

Partition information in time and space for the sub-asset level annotation.

.google.cloud.visionai.v1.Partition partition = 3;

Returns
Type Description
Partition

The partition.

getPartitionOrBuilder()

public PartitionOrBuilder getPartitionOrBuilder()

Partition information in time and space for the sub-asset level annotation.

.google.cloud.visionai.v1.Partition partition = 3;

Returns
Type Description
PartitionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getValue()

public AnnotationValue getValue()

Value of the annotation. The value must be able to convert to the type according to the data schema.

.google.cloud.visionai.v1.AnnotationValue value = 2;

Returns
Type Description
AnnotationValue

The value.

getValueOrBuilder()

public AnnotationValueOrBuilder getValueOrBuilder()

Value of the annotation. The value must be able to convert to the type according to the data schema.

.google.cloud.visionai.v1.AnnotationValue value = 2;

Returns
Type Description
AnnotationValueOrBuilder

hasPartition()

public boolean hasPartition()

Partition information in time and space for the sub-asset level annotation.

.google.cloud.visionai.v1.Partition partition = 3;

Returns
Type Description
boolean

Whether the partition field is set.

hasValue()

public boolean hasValue()

Value of the annotation. The value must be able to convert to the type according to the data schema.

.google.cloud.visionai.v1.AnnotationValue value = 2;

Returns
Type Description
boolean

Whether the value 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 UserSpecifiedAnnotation.Builder newBuilderForType()
Returns
Type Description
UserSpecifiedAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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