Class BatchRemoveCatalogAttributesResponse.Builder (2.50.0)

public static final class BatchRemoveCatalogAttributesResponse.Builder extends GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesResponse.Builder> implements BatchRemoveCatalogAttributesResponseOrBuilder

Response of the CatalogService.BatchRemoveCatalogAttributes.

Protobuf type google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesResponse

Static Methods

getDescriptor()

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

Methods

addAllDeletedCatalogAttributes(Iterable<String> values)

public BatchRemoveCatalogAttributesResponse.Builder addAllDeletedCatalogAttributes(Iterable<String> values)

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Parameter
Name Description
values Iterable<String>

The deletedCatalogAttributes to add.

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

addAllResetCatalogAttributes(Iterable<String> values)

public BatchRemoveCatalogAttributesResponse.Builder addAllResetCatalogAttributes(Iterable<String> values)

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Parameter
Name Description
values Iterable<String>

The resetCatalogAttributes to add.

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

addDeletedCatalogAttributes(String value)

public BatchRemoveCatalogAttributesResponse.Builder addDeletedCatalogAttributes(String value)

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Parameter
Name Description
value String

The deletedCatalogAttributes to add.

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

addDeletedCatalogAttributesBytes(ByteString value)

public BatchRemoveCatalogAttributesResponse.Builder addDeletedCatalogAttributesBytes(ByteString value)

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Parameter
Name Description
value ByteString

The bytes of the deletedCatalogAttributes to add.

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResetCatalogAttributes(String value)

public BatchRemoveCatalogAttributesResponse.Builder addResetCatalogAttributes(String value)

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Parameter
Name Description
value String

The resetCatalogAttributes to add.

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

addResetCatalogAttributesBytes(ByteString value)

public BatchRemoveCatalogAttributesResponse.Builder addResetCatalogAttributesBytes(ByteString value)

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Parameter
Name Description
value ByteString

The bytes of the resetCatalogAttributes to add.

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

build()

public BatchRemoveCatalogAttributesResponse build()
Returns
Type Description
BatchRemoveCatalogAttributesResponse

buildPartial()

public BatchRemoveCatalogAttributesResponse buildPartial()
Returns
Type Description
BatchRemoveCatalogAttributesResponse

clear()

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

clearDeletedCatalogAttributes()

public BatchRemoveCatalogAttributesResponse.Builder clearDeletedCatalogAttributes()

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResetCatalogAttributes()

public BatchRemoveCatalogAttributesResponse.Builder clearResetCatalogAttributes()

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

clone()

public BatchRemoveCatalogAttributesResponse.Builder clone()
Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder
Overrides

getDefaultInstanceForType()

public BatchRemoveCatalogAttributesResponse getDefaultInstanceForType()
Returns
Type Description
BatchRemoveCatalogAttributesResponse

getDeletedCatalogAttributes(int index)

public String getDeletedCatalogAttributes(int index)

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The deletedCatalogAttributes at the given index.

getDeletedCatalogAttributesBytes(int index)

public ByteString getDeletedCatalogAttributesBytes(int index)

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the deletedCatalogAttributes at the given index.

getDeletedCatalogAttributesCount()

public int getDeletedCatalogAttributesCount()

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Returns
Type Description
int

The count of deletedCatalogAttributes.

getDeletedCatalogAttributesList()

public ProtocolStringList getDeletedCatalogAttributesList()

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Returns
Type Description
ProtocolStringList

A list containing the deletedCatalogAttributes.

getDescriptorForType()

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

getResetCatalogAttributes(int index)

public String getResetCatalogAttributes(int index)

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The resetCatalogAttributes at the given index.

getResetCatalogAttributesBytes(int index)

public ByteString getResetCatalogAttributesBytes(int index)

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the resetCatalogAttributes at the given index.

getResetCatalogAttributesCount()

public int getResetCatalogAttributesCount()

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Returns
Type Description
int

The count of resetCatalogAttributes.

getResetCatalogAttributesList()

public ProtocolStringList getResetCatalogAttributesList()

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Returns
Type Description
ProtocolStringList

A list containing the resetCatalogAttributes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchRemoveCatalogAttributesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRemoveCatalogAttributesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder
Overrides

setDeletedCatalogAttributes(int index, String value)

public BatchRemoveCatalogAttributesResponse.Builder setDeletedCatalogAttributes(int index, String value)

Catalog attributes that were deleted. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted.

repeated string deleted_catalog_attributes = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The deletedCatalogAttributes to set.

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResetCatalogAttributes(int index, String value)

public BatchRemoveCatalogAttributesResponse.Builder setResetCatalogAttributes(int index, String value)

Catalog attributes that were reset. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request.

repeated string reset_catalog_attributes = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The resetCatalogAttributes to set.

Returns
Type Description
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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