Class DeleteAnnotationRequest.Builder (0.9.0)

public static final class DeleteAnnotationRequest.Builder extends GeneratedMessageV3.Builder<DeleteAnnotationRequest.Builder> implements DeleteAnnotationRequestOrBuilder

Request message for DeleteAnnotation API.

Protobuf type google.cloud.visionai.v1.DeleteAnnotationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteAnnotationRequest build()
Returns
Type Description
DeleteAnnotationRequest

buildPartial()

public DeleteAnnotationRequest buildPartial()
Returns
Type Description
DeleteAnnotationRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DeleteAnnotationRequest.Builder clearName()

Required. The name of the annotation to delete. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeleteAnnotationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteAnnotationRequest getDefaultInstanceForType()
Returns
Type Description
DeleteAnnotationRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the annotation to delete. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the annotation to delete. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteAnnotationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DeleteAnnotationRequest.Builder setName(String value)

Required. The name of the annotation to delete. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteAnnotationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteAnnotationRequest.Builder setNameBytes(ByteString value)

Required. The name of the annotation to delete. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeleteAnnotationRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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