Class AddCatalogAttributeRequest.Builder (2.85.0)

public static final class AddCatalogAttributeRequest.Builder extends GeneratedMessage.Builder<AddCatalogAttributeRequest.Builder> implements AddCatalogAttributeRequestOrBuilder

Request for CatalogService.AddCatalogAttribute method.

Protobuf type google.cloud.retail.v2.AddCatalogAttributeRequest

Static Methods

getDescriptor()

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

Methods

build()

public AddCatalogAttributeRequest build()
Returns
Type Description
AddCatalogAttributeRequest

buildPartial()

public AddCatalogAttributeRequest buildPartial()
Returns
Type Description
AddCatalogAttributeRequest

clear()

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

clearAttributesConfig()

public AddCatalogAttributeRequest.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
AddCatalogAttributeRequest.Builder

This builder for chaining.

clearCatalogAttribute()

public AddCatalogAttributeRequest.Builder clearCatalogAttribute()

Required. The CatalogAttribute to add.

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

Returns
Type Description
AddCatalogAttributeRequest.Builder

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 CatalogAttribute to add.

.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 CatalogAttribute to add.

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

Returns
Type Description
CatalogAttribute.Builder

getCatalogAttributeOrBuilder()

public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()

Required. The CatalogAttribute to add.

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

Returns
Type Description
CatalogAttributeOrBuilder

getDefaultInstanceForType()

public AddCatalogAttributeRequest getDefaultInstanceForType()
Returns
Type Description
AddCatalogAttributeRequest

getDescriptorForType()

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

hasCatalogAttribute()

public boolean hasCatalogAttribute()

Required. The CatalogAttribute to add.

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

Returns
Type Description
boolean

Whether the catalogAttribute field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCatalogAttribute(CatalogAttribute value)

public AddCatalogAttributeRequest.Builder mergeCatalogAttribute(CatalogAttribute value)

Required. The CatalogAttribute to add.

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

Parameter
Name Description
value CatalogAttribute
Returns
Type Description
AddCatalogAttributeRequest.Builder

mergeFrom(AddCatalogAttributeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAttributesConfig(String value)

public AddCatalogAttributeRequest.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
AddCatalogAttributeRequest.Builder

This builder for chaining.

setAttributesConfigBytes(ByteString value)

public AddCatalogAttributeRequest.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
AddCatalogAttributeRequest.Builder

This builder for chaining.

setCatalogAttribute(CatalogAttribute value)

public AddCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute value)

Required. The CatalogAttribute to add.

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

Parameter
Name Description
value CatalogAttribute
Returns
Type Description
AddCatalogAttributeRequest.Builder

setCatalogAttribute(CatalogAttribute.Builder builderForValue)

public AddCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute.Builder builderForValue)

Required. The CatalogAttribute to add.

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

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