Class RemoveCatalogAttributeRequest.Builder (2.15.0)

public static final class RemoveCatalogAttributeRequest.Builder extends GeneratedMessageV3.Builder<RemoveCatalogAttributeRequest.Builder> implements RemoveCatalogAttributeRequestOrBuilder

Request for CatalogService.RemoveCatalogAttribute method.

Protobuf type google.cloud.retail.v2.RemoveCatalogAttributeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RemoveCatalogAttributeRequest build()
Returns
TypeDescription
RemoveCatalogAttributeRequest

buildPartial()

public RemoveCatalogAttributeRequest buildPartial()
Returns
TypeDescription
RemoveCatalogAttributeRequest

clear()

public RemoveCatalogAttributeRequest.Builder clear()
Returns
TypeDescription
RemoveCatalogAttributeRequest.Builder
Overrides

clearAttributesConfig()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public RemoveCatalogAttributeRequest.Builder clearKey()

Required. The attribute name key of the CatalogAttribute to remove.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RemoveCatalogAttributeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RemoveCatalogAttributeRequest getDefaultInstanceForType()
Returns
TypeDescription
RemoveCatalogAttributeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

Required. The attribute name key of the CatalogAttribute to remove.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The attribute name key of the CatalogAttribute to remove.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for key.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RemoveCatalogAttributeRequest other)

public RemoveCatalogAttributeRequest.Builder mergeFrom(RemoveCatalogAttributeRequest other)
Parameter
NameDescription
otherRemoveCatalogAttributeRequest
Returns
TypeDescription
RemoveCatalogAttributeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RemoveCatalogAttributeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RemoveCatalogAttributeRequest.Builder
Overrides

setAttributesConfig(String value)

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

This builder for chaining.

setAttributesConfigBytes(ByteString value)

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

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public RemoveCatalogAttributeRequest.Builder setKey(String value)

Required. The attribute name key of the CatalogAttribute to remove.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
RemoveCatalogAttributeRequest.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public RemoveCatalogAttributeRequest.Builder setKeyBytes(ByteString value)

Required. The attribute name key of the CatalogAttribute to remove.

string key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
RemoveCatalogAttributeRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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