Class UserSpecifiedAnnotation.Builder (0.12.0)

public static final class UserSpecifiedAnnotation.Builder extends GeneratedMessageV3.Builder<UserSpecifiedAnnotation.Builder> implements UserSpecifiedAnnotationOrBuilder

Annotation provided by users.

Protobuf type google.cloud.visionai.v1.UserSpecifiedAnnotation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserSpecifiedAnnotation build()
Returns
Type Description
UserSpecifiedAnnotation

buildPartial()

public UserSpecifiedAnnotation buildPartial()
Returns
Type Description
UserSpecifiedAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public UserSpecifiedAnnotation.Builder clearKey()

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
UserSpecifiedAnnotation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartition()

public UserSpecifiedAnnotation.Builder clearPartition()

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

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

Returns
Type Description
UserSpecifiedAnnotation.Builder

clearValue()

public UserSpecifiedAnnotation.Builder clearValue()

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
UserSpecifiedAnnotation.Builder

clone()

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

getDefaultInstanceForType()

public UserSpecifiedAnnotation getDefaultInstanceForType()
Returns
Type Description
UserSpecifiedAnnotation

getDescriptorForType()

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

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.

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.

getPartitionBuilder()

public Partition.Builder getPartitionBuilder()

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

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

Returns
Type Description
Partition.Builder

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

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.

getValueBuilder()

public AnnotationValue.Builder getValueBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserSpecifiedAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePartition(Partition value)

public UserSpecifiedAnnotation.Builder mergePartition(Partition value)

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

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

Parameter
Name Description
value Partition
Returns
Type Description
UserSpecifiedAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeValue(AnnotationValue value)

public UserSpecifiedAnnotation.Builder mergeValue(AnnotationValue value)

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;

Parameter
Name Description
value AnnotationValue
Returns
Type Description
UserSpecifiedAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public UserSpecifiedAnnotation.Builder setKey(String value)

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

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

Parameter
Name Description
value String

The key to set.

Returns
Type Description
UserSpecifiedAnnotation.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public UserSpecifiedAnnotation.Builder setKeyBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
UserSpecifiedAnnotation.Builder

This builder for chaining.

setPartition(Partition value)

public UserSpecifiedAnnotation.Builder setPartition(Partition value)

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

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

Parameter
Name Description
value Partition
Returns
Type Description
UserSpecifiedAnnotation.Builder

setPartition(Partition.Builder builderForValue)

public UserSpecifiedAnnotation.Builder setPartition(Partition.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Partition.Builder
Returns
Type Description
UserSpecifiedAnnotation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(AnnotationValue value)

public UserSpecifiedAnnotation.Builder setValue(AnnotationValue value)

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;

Parameter
Name Description
value AnnotationValue
Returns
Type Description
UserSpecifiedAnnotation.Builder

setValue(AnnotationValue.Builder builderForValue)

public UserSpecifiedAnnotation.Builder setValue(AnnotationValue.Builder builderForValue)

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;

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