public static final class UpdateCollectionRequest.Builder extends GeneratedMessageV3.Builder<UpdateCollectionRequest.Builder> implements UpdateCollectionRequestOrBuilder
Request message for UpdateCollectionRequest.
Protobuf type google.cloud.visionai.v1.UpdateCollectionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateCollectionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UpdateCollectionRequest build()
buildPartial()
public UpdateCollectionRequest buildPartial()
clear()
public UpdateCollectionRequest.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public UpdateCollectionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateCollectionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public UpdateCollectionRequest.Builder clone()
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];
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];
getDefaultInstanceForType()
public UpdateCollectionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(UpdateCollectionRequest other)
public UpdateCollectionRequest.Builder mergeFrom(UpdateCollectionRequest other)
public UpdateCollectionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateCollectionRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateCollectionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateCollectionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateCollectionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateCollectionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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
|