Class ReplaceCatalogAttributeRequest.Builder (2.42.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplaceCatalogAttributeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder
Overrides

build()

public ReplaceCatalogAttributeRequest build()
Returns
TypeDescription
ReplaceCatalogAttributeRequest

buildPartial()

public ReplaceCatalogAttributeRequest buildPartial()
Returns
TypeDescription
ReplaceCatalogAttributeRequest

clear()

public ReplaceCatalogAttributeRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReplaceCatalogAttributeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ReplaceCatalogAttributeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplaceCatalogAttributeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ReplaceCatalogAttributeRequest.Builder

clone()

public ReplaceCatalogAttributeRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CatalogAttribute.Builder

getCatalogAttributeOrBuilder()

public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()

Required. The updated CatalogAttribute.

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

Returns
TypeDescription
CatalogAttributeOrBuilder

getDefaultInstanceForType()

public ReplaceCatalogAttributeRequest getDefaultInstanceForType()
Returns
TypeDescription
ReplaceCatalogAttributeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

hasCatalogAttribute()

public boolean hasCatalogAttribute()

Required. The updated CatalogAttribute.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCatalogAttribute
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder

mergeFrom(ReplaceCatalogAttributeRequest other)

public ReplaceCatalogAttributeRequest.Builder mergeFrom(ReplaceCatalogAttributeRequest other)
Parameter
NameDescription
otherReplaceCatalogAttributeRequest
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplaceCatalogAttributeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReplaceCatalogAttributeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceCatalogAttributeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueString

The attributesConfig to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for attributesConfig to set.

Returns
TypeDescription
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
NameDescription
valueCatalogAttribute
Returns
TypeDescription
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
NameDescription
builderForValueCatalogAttribute.Builder
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReplaceCatalogAttributeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder
Overrides

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

public ReplaceCatalogAttributeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceCatalogAttributeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder