Class UpdateAnnotationRequest.Builder (0.8.0)

public static final class UpdateAnnotationRequest.Builder extends GeneratedMessageV3.Builder<UpdateAnnotationRequest.Builder> implements UpdateAnnotationRequestOrBuilder

Request message for UpdateAnnotation API.

Protobuf type google.cloud.visionai.v1.UpdateAnnotationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAnnotationRequest build()
Returns
Type Description
UpdateAnnotationRequest

buildPartial()

public UpdateAnnotationRequest buildPartial()
Returns
Type Description
UpdateAnnotationRequest

clear()

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

clearAnnotation()

public UpdateAnnotationRequest.Builder clearAnnotation()

Required. The annotation to update. The annotation's name field is used to identify the annotation to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

.google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateAnnotationRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateAnnotationRequest.Builder clearUpdateMask()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateAnnotationRequest.Builder

clone()

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

getAnnotation()

public Annotation getAnnotation()

Required. The annotation to update. The annotation's name field is used to identify the annotation to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

.google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Annotation

The annotation.

getAnnotationBuilder()

public Annotation.Builder getAnnotationBuilder()

Required. The annotation to update. The annotation's name field is used to identify the annotation to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

.google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Annotation.Builder

getAnnotationOrBuilder()

public AnnotationOrBuilder getAnnotationOrBuilder()

Required. The annotation to update. The annotation's name field is used to identify the annotation to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

.google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnnotationOrBuilder

getDefaultInstanceForType()

public UpdateAnnotationRequest getDefaultInstanceForType()
Returns
Type Description
UpdateAnnotationRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasAnnotation()

public boolean hasAnnotation()

Required. The annotation to update. The annotation's name field is used to identify the annotation to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

.google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the annotation field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnnotation(Annotation value)

public UpdateAnnotationRequest.Builder mergeAnnotation(Annotation value)

Required. The annotation to update. The annotation's name field is used to identify the annotation to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

.google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Annotation
Returns
Type Description
UpdateAnnotationRequest.Builder

mergeFrom(UpdateAnnotationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateAnnotationRequest.Builder mergeUpdateMask(FieldMask value)

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateAnnotationRequest.Builder

setAnnotation(Annotation value)

public UpdateAnnotationRequest.Builder setAnnotation(Annotation value)

Required. The annotation to update. The annotation's name field is used to identify the annotation to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

.google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Annotation
Returns
Type Description
UpdateAnnotationRequest.Builder

setAnnotation(Annotation.Builder builderForValue)

public UpdateAnnotationRequest.Builder setAnnotation(Annotation.Builder builderForValue)

Required. The annotation to update. The annotation's name field is used to identify the annotation to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

.google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Annotation.Builder
Returns
Type Description
UpdateAnnotationRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateAnnotationRequest.Builder setUpdateMask(FieldMask value)

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateAnnotationRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateAnnotationRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateAnnotationRequest.Builder