Class AddCatalogAttributeRequest.Builder (2.43.0)

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

Request for CatalogService.AddCatalogAttribute method.

Protobuf type google.cloud.retail.v2beta.AddCatalogAttributeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AddCatalogAttributeRequest build()
Returns
TypeDescription
AddCatalogAttributeRequest

buildPartial()

public AddCatalogAttributeRequest buildPartial()
Returns
TypeDescription
AddCatalogAttributeRequest

clear()

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

This builder for chaining.

clearCatalogAttribute()

public AddCatalogAttributeRequest.Builder clearCatalogAttribute()

Required. The CatalogAttribute to add.

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

Returns
TypeDescription
AddCatalogAttributeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AddCatalogAttributeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AddCatalogAttributeRequest.Builder
Overrides

clone()

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

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

Returns
TypeDescription
CatalogAttribute

The catalogAttribute.

getCatalogAttributeBuilder()

public CatalogAttribute.Builder getCatalogAttributeBuilder()

Required. The CatalogAttribute to add.

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

Returns
TypeDescription
CatalogAttribute.Builder

getCatalogAttributeOrBuilder()

public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()

Required. The CatalogAttribute to add.

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

Returns
TypeDescription
CatalogAttributeOrBuilder

getDefaultInstanceForType()

public AddCatalogAttributeRequest getDefaultInstanceForType()
Returns
TypeDescription
AddCatalogAttributeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasCatalogAttribute()

public boolean hasCatalogAttribute()

Required. The CatalogAttribute to add.

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

Returns
TypeDescription
boolean

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

Required. The CatalogAttribute to add.

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

Parameter
NameDescription
valueCatalogAttribute
Returns
TypeDescription
AddCatalogAttributeRequest.Builder

mergeFrom(AddCatalogAttributeRequest other)

public AddCatalogAttributeRequest.Builder mergeFrom(AddCatalogAttributeRequest other)
Parameter
NameDescription
otherAddCatalogAttributeRequest
Returns
TypeDescription
AddCatalogAttributeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The attributesConfig to set.

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

The bytes for attributesConfig to set.

Returns
TypeDescription
AddCatalogAttributeRequest.Builder

This builder for chaining.

setCatalogAttribute(CatalogAttribute value)

public AddCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute value)

Required. The CatalogAttribute to add.

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

Parameter
NameDescription
valueCatalogAttribute
Returns
TypeDescription
AddCatalogAttributeRequest.Builder

setCatalogAttribute(CatalogAttribute.Builder builderForValue)

public AddCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute.Builder builderForValue)

Required. The CatalogAttribute to add.

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

Parameter
NameDescription
builderForValueCatalogAttribute.Builder
Returns
TypeDescription
AddCatalogAttributeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AddCatalogAttributeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AddCatalogAttributeRequest.Builder
Overrides