Class UpdateCatalogRequest.Builder (2.46.0)

public static final class UpdateCatalogRequest.Builder extends GeneratedMessageV3.Builder<UpdateCatalogRequest.Builder> implements UpdateCatalogRequestOrBuilder

Request for CatalogService.UpdateCatalog method.

Protobuf type google.cloud.retail.v2beta.UpdateCatalogRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCatalogRequest build()
Returns
Type Description
UpdateCatalogRequest

buildPartial()

public UpdateCatalogRequest buildPartial()
Returns
Type Description
UpdateCatalogRequest

clear()

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

clearCatalog()

public UpdateCatalogRequest.Builder clearCatalog()

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Catalog to update does not exist, a NOT_FOUND error is returned.

.google.cloud.retail.v2beta.Catalog catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCatalogRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateCatalogRequest.Builder clearUpdateMask()

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateCatalogRequest.Builder

clone()

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

getCatalog()

public Catalog getCatalog()

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Catalog to update does not exist, a NOT_FOUND error is returned.

.google.cloud.retail.v2beta.Catalog catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Catalog

The catalog.

getCatalogBuilder()

public Catalog.Builder getCatalogBuilder()

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Catalog to update does not exist, a NOT_FOUND error is returned.

.google.cloud.retail.v2beta.Catalog catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Catalog.Builder

getCatalogOrBuilder()

public CatalogOrBuilder getCatalogOrBuilder()

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Catalog to update does not exist, a NOT_FOUND error is returned.

.google.cloud.retail.v2beta.Catalog catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CatalogOrBuilder

getDefaultInstanceForType()

public UpdateCatalogRequest getDefaultInstanceForType()
Returns
Type Description
UpdateCatalogRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasCatalog()

public boolean hasCatalog()

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Catalog to update does not exist, a NOT_FOUND error is returned.

.google.cloud.retail.v2beta.Catalog catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the catalog field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

.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

mergeCatalog(Catalog value)

public UpdateCatalogRequest.Builder mergeCatalog(Catalog value)

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Catalog to update does not exist, a NOT_FOUND error is returned.

.google.cloud.retail.v2beta.Catalog catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Catalog
Returns
Type Description
UpdateCatalogRequest.Builder

mergeFrom(UpdateCatalogRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateCatalogRequest.Builder mergeUpdateMask(FieldMask value)

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCatalogRequest.Builder

setCatalog(Catalog value)

public UpdateCatalogRequest.Builder setCatalog(Catalog value)

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Catalog to update does not exist, a NOT_FOUND error is returned.

.google.cloud.retail.v2beta.Catalog catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Catalog
Returns
Type Description
UpdateCatalogRequest.Builder

setCatalog(Catalog.Builder builderForValue)

public UpdateCatalogRequest.Builder setCatalog(Catalog.Builder builderForValue)

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Catalog to update does not exist, a NOT_FOUND error is returned.

.google.cloud.retail.v2beta.Catalog catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Catalog.Builder
Returns
Type Description
UpdateCatalogRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateCatalogRequest.Builder setUpdateMask(FieldMask value)

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCatalogRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCatalogRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateCatalogRequest.Builder