Class BatchRemoveCatalogAttributesResponse.Builder (2.39.0)

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

Response of the CatalogService.BatchRemoveCatalogAttributes.

Protobuf type google.cloud.retail.v2beta.BatchRemoveCatalogAttributesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The deletedCatalogAttributes to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The resetCatalogAttributes to add.

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

The deletedCatalogAttributes to add.

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

The bytes of the deletedCatalogAttributes to add.

Returns
TypeDescription
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchRemoveCatalogAttributesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resetCatalogAttributes to add.

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

The bytes of the resetCatalogAttributes to add.

Returns
TypeDescription
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

build()

public BatchRemoveCatalogAttributesResponse build()
Returns
TypeDescription
BatchRemoveCatalogAttributesResponse

buildPartial()

public BatchRemoveCatalogAttributesResponse buildPartial()
Returns
TypeDescription
BatchRemoveCatalogAttributesResponse

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchRemoveCatalogAttributesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

clone()

public BatchRemoveCatalogAttributesResponse.Builder clone()
Returns
TypeDescription
BatchRemoveCatalogAttributesResponse.Builder
Overrides

getDefaultInstanceForType()

public BatchRemoveCatalogAttributesResponse getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the deletedCatalogAttributes.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the resetCatalogAttributes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchRemoveCatalogAttributesResponse other)

public BatchRemoveCatalogAttributesResponse.Builder mergeFrom(BatchRemoveCatalogAttributesResponse other)
Parameter
NameDescription
otherBatchRemoveCatalogAttributesResponse
Returns
TypeDescription
BatchRemoveCatalogAttributesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The deletedCatalogAttributes to set.

Returns
TypeDescription
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchRemoveCatalogAttributesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The resetCatalogAttributes to set.

Returns
TypeDescription
BatchRemoveCatalogAttributesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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