Class UpdateCollectionRequest.Builder (0.10.0)

public static final class UpdateCollectionRequest.Builder extends GeneratedMessageV3.Builder<UpdateCollectionRequest.Builder> implements UpdateCollectionRequestOrBuilder

Request message for UpdateCollectionRequest.

Protobuf type google.cloud.visionai.v1.UpdateCollectionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCollectionRequest build()
Returns
Type Description
UpdateCollectionRequest

buildPartial()

public UpdateCollectionRequest buildPartial()
Returns
Type Description
UpdateCollectionRequest

clear()

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

clearCollection()

public UpdateCollectionRequest.Builder clearCollection()

Required. The collection to update.

The collection's name field is used to identify the collection to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

.google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCollectionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateCollectionRequest.Builder clearUpdateMask()

The list of fields to be updated.

  • Unset update_mask or set update_mask to be a single "*" only will update all updatable fields with the value provided in collection.
  • To update display_name value to empty string, set it in the collection to empty string, and set update_mask with "display_name". Same applies to other updatable string fields in the collection.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateCollectionRequest.Builder

clone()

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

getCollection()

public Collection getCollection()

Required. The collection to update.

The collection's name field is used to identify the collection to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

.google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Collection

The collection.

getCollectionBuilder()

public Collection.Builder getCollectionBuilder()

Required. The collection to update.

The collection's name field is used to identify the collection to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

.google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Collection.Builder

getCollectionOrBuilder()

public CollectionOrBuilder getCollectionOrBuilder()

Required. The collection to update.

The collection's name field is used to identify the collection to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

.google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CollectionOrBuilder

getDefaultInstanceForType()

public UpdateCollectionRequest getDefaultInstanceForType()
Returns
Type Description
UpdateCollectionRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

The list of fields to be updated.

  • Unset update_mask or set update_mask to be a single "*" only will update all updatable fields with the value provided in collection.
  • To update display_name value to empty string, set it in the collection to empty string, and set update_mask with "display_name". Same applies to other updatable string fields in the collection.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The list of fields to be updated.

  • Unset update_mask or set update_mask to be a single "*" only will update all updatable fields with the value provided in collection.
  • To update display_name value to empty string, set it in the collection to empty string, and set update_mask with "display_name". Same applies to other updatable string fields in the collection.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The list of fields to be updated.

  • Unset update_mask or set update_mask to be a single "*" only will update all updatable fields with the value provided in collection.
  • To update display_name value to empty string, set it in the collection to empty string, and set update_mask with "display_name". Same applies to other updatable string fields in the collection.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasCollection()

public boolean hasCollection()

Required. The collection to update.

The collection's name field is used to identify the collection to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

.google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the collection field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The list of fields to be updated.

  • Unset update_mask or set update_mask to be a single "*" only will update all updatable fields with the value provided in collection.
  • To update display_name value to empty string, set it in the collection to empty string, and set update_mask with "display_name". Same applies to other updatable string fields in the collection.

.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

mergeCollection(Collection value)

public UpdateCollectionRequest.Builder mergeCollection(Collection value)

Required. The collection to update.

The collection's name field is used to identify the collection to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

.google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Collection
Returns
Type Description
UpdateCollectionRequest.Builder

mergeFrom(UpdateCollectionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateCollectionRequest.Builder mergeUpdateMask(FieldMask value)

The list of fields to be updated.

  • Unset update_mask or set update_mask to be a single "*" only will update all updatable fields with the value provided in collection.
  • To update display_name value to empty string, set it in the collection to empty string, and set update_mask with "display_name". Same applies to other updatable string fields in the collection.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCollectionRequest.Builder

setCollection(Collection value)

public UpdateCollectionRequest.Builder setCollection(Collection value)

Required. The collection to update.

The collection's name field is used to identify the collection to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

.google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Collection
Returns
Type Description
UpdateCollectionRequest.Builder

setCollection(Collection.Builder builderForValue)

public UpdateCollectionRequest.Builder setCollection(Collection.Builder builderForValue)

Required. The collection to update.

The collection's name field is used to identify the collection to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

.google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Collection.Builder
Returns
Type Description
UpdateCollectionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateCollectionRequest.Builder setUpdateMask(FieldMask value)

The list of fields to be updated.

  • Unset update_mask or set update_mask to be a single "*" only will update all updatable fields with the value provided in collection.
  • To update display_name value to empty string, set it in the collection to empty string, and set update_mask with "display_name". Same applies to other updatable string fields in the collection.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCollectionRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCollectionRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The list of fields to be updated.

  • Unset update_mask or set update_mask to be a single "*" only will update all updatable fields with the value provided in collection.
  • To update display_name value to empty string, set it in the collection to empty string, and set update_mask with "display_name". Same applies to other updatable string fields in the collection.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateCollectionRequest.Builder