Class ReplaceCatalogAttributeRequest.Builder (2.56.0)

public static final class ReplaceCatalogAttributeRequest.Builder extends GeneratedMessageV3.Builder<ReplaceCatalogAttributeRequest.Builder> implements ReplaceCatalogAttributeRequestOrBuilder

Request for CatalogService.ReplaceCatalogAttribute method.

Protobuf type google.cloud.retail.v2.ReplaceCatalogAttributeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReplaceCatalogAttributeRequest build()
Returns
Type Description
ReplaceCatalogAttributeRequest

buildPartial()

public ReplaceCatalogAttributeRequest buildPartial()
Returns
Type Description
ReplaceCatalogAttributeRequest

clear()

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

clearAttributesConfig()

public ReplaceCatalogAttributeRequest.Builder clearAttributesConfig()

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

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

Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

This builder for chaining.

clearCatalogAttribute()

public ReplaceCatalogAttributeRequest.Builder clearCatalogAttribute()

Required. The updated CatalogAttribute.

.google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public ReplaceCatalogAttributeRequest.Builder clearUpdateMask()

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

clone()

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

getAttributesConfig()

public String getAttributesConfig()

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

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

Returns
Type Description
String

The attributesConfig.

getAttributesConfigBytes()

public ByteString getAttributesConfigBytes()

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

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

Returns
Type Description
ByteString

The bytes for attributesConfig.

getCatalogAttribute()

public CatalogAttribute getCatalogAttribute()

Required. The updated CatalogAttribute.

.google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CatalogAttribute

The catalogAttribute.

getCatalogAttributeBuilder()

public CatalogAttribute.Builder getCatalogAttributeBuilder()

Required. The updated CatalogAttribute.

.google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CatalogAttribute.Builder

getCatalogAttributeOrBuilder()

public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()

Required. The updated CatalogAttribute.

.google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CatalogAttributeOrBuilder

getDefaultInstanceForType()

public ReplaceCatalogAttributeRequest getDefaultInstanceForType()
Returns
Type Description
ReplaceCatalogAttributeRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMaskOrBuilder

hasCatalogAttribute()

public boolean hasCatalogAttribute()

Required. The updated CatalogAttribute.

.google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the catalogAttribute field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

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

mergeCatalogAttribute(CatalogAttribute value)

public ReplaceCatalogAttributeRequest.Builder mergeCatalogAttribute(CatalogAttribute value)

Required. The updated CatalogAttribute.

.google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CatalogAttribute
Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

mergeFrom(ReplaceCatalogAttributeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public ReplaceCatalogAttributeRequest.Builder mergeUpdateMask(FieldMask value)

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

setAttributesConfig(String value)

public ReplaceCatalogAttributeRequest.Builder setAttributesConfig(String value)

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

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

Parameter
Name Description
value String

The attributesConfig to set.

Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

This builder for chaining.

setAttributesConfigBytes(ByteString value)

public ReplaceCatalogAttributeRequest.Builder setAttributesConfigBytes(ByteString value)

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

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

Parameter
Name Description
value ByteString

The bytes for attributesConfig to set.

Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

This builder for chaining.

setCatalogAttribute(CatalogAttribute value)

public ReplaceCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute value)

Required. The updated CatalogAttribute.

.google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CatalogAttribute
Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

setCatalogAttribute(CatalogAttribute.Builder builderForValue)

public ReplaceCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute.Builder builderForValue)

Required. The updated CatalogAttribute.

.google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CatalogAttribute.Builder
Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public ReplaceCatalogAttributeRequest.Builder setUpdateMask(FieldMask value)

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
ReplaceCatalogAttributeRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public ReplaceCatalogAttributeRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReplaceCatalogAttributeRequest.Builder