Class AddCatalogAttributeRequest.Builder (2.57.0)

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

Request for CatalogService.AddCatalogAttribute method.

Protobuf type google.cloud.retail.v2alpha.AddCatalogAttributeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddCatalogAttributeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AddCatalogAttributeRequest.Builder clone()
Returns
Type Description
AddCatalogAttributeRequest.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 CatalogAttribute to add.

.google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the catalogAttribute 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 AddCatalogAttributeRequest.Builder mergeCatalogAttribute(CatalogAttribute value)

Required. The CatalogAttribute to add.

.google.cloud.retail.v2alpha.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AddCatalogAttributeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.v2alpha.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.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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