Package com.google.cloud.retail.v2beta
Class BatchRemoveCatalogAttributesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
- com.google.cloud.retail.v2beta.BatchRemoveCatalogAttributesRequest.Builder
-
- All Implemented Interfaces:
BatchRemoveCatalogAttributesRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BatchRemoveCatalogAttributesRequest
public static final class BatchRemoveCatalogAttributesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder> implements BatchRemoveCatalogAttributesRequestOrBuilder
Request for [CatalogService.BatchRemoveCatalogAttributes][google.cloud.retail.v2beta.CatalogService.BatchRemoveCatalogAttributes] method.
Protobuf typegoogle.cloud.retail.v2beta.BatchRemoveCatalogAttributesRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
clear
public BatchRemoveCatalogAttributesRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
getDefaultInstanceForType
public BatchRemoveCatalogAttributesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchRemoveCatalogAttributesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchRemoveCatalogAttributesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchRemoveCatalogAttributesRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
setField
public BatchRemoveCatalogAttributesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
clearField
public BatchRemoveCatalogAttributesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
clearOneof
public BatchRemoveCatalogAttributesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
setRepeatedField
public BatchRemoveCatalogAttributesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
addRepeatedField
public BatchRemoveCatalogAttributesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
mergeFrom
public BatchRemoveCatalogAttributesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
mergeFrom
public BatchRemoveCatalogAttributesRequest.Builder mergeFrom(BatchRemoveCatalogAttributesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
mergeFrom
public BatchRemoveCatalogAttributesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
- Throws:
IOException
-
getAttributesConfig
public String getAttributesConfig()
Required. The attributes config resource shared by all catalog attributes being deleted. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getAttributesConfig
in interfaceBatchRemoveCatalogAttributesRequestOrBuilder
- Returns:
- The attributesConfig.
-
getAttributesConfigBytes
public com.google.protobuf.ByteString getAttributesConfigBytes()
Required. The attributes config resource shared by all catalog attributes being deleted. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getAttributesConfigBytes
in interfaceBatchRemoveCatalogAttributesRequestOrBuilder
- Returns:
- The bytes for attributesConfig.
-
setAttributesConfig
public BatchRemoveCatalogAttributesRequest.Builder setAttributesConfig(String value)
Required. The attributes config resource shared by all catalog attributes being deleted. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The attributesConfig to set.- Returns:
- This builder for chaining.
-
clearAttributesConfig
public BatchRemoveCatalogAttributesRequest.Builder clearAttributesConfig()
Required. The attributes config resource shared by all catalog attributes being deleted. 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:
- This builder for chaining.
-
setAttributesConfigBytes
public BatchRemoveCatalogAttributesRequest.Builder setAttributesConfigBytes(com.google.protobuf.ByteString value)
Required. The attributes config resource shared by all catalog attributes being deleted. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for attributesConfig to set.- Returns:
- This builder for chaining.
-
getAttributeKeysList
public com.google.protobuf.ProtocolStringList getAttributeKeysList()
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAttributeKeysList
in interfaceBatchRemoveCatalogAttributesRequestOrBuilder
- Returns:
- A list containing the attributeKeys.
-
getAttributeKeysCount
public int getAttributeKeysCount()
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAttributeKeysCount
in interfaceBatchRemoveCatalogAttributesRequestOrBuilder
- Returns:
- The count of attributeKeys.
-
getAttributeKeys
public String getAttributeKeys(int index)
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAttributeKeys
in interfaceBatchRemoveCatalogAttributesRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The attributeKeys at the given index.
-
getAttributeKeysBytes
public com.google.protobuf.ByteString getAttributeKeysBytes(int index)
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAttributeKeysBytes
in interfaceBatchRemoveCatalogAttributesRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the attributeKeys at the given index.
-
setAttributeKeys
public BatchRemoveCatalogAttributesRequest.Builder setAttributeKeys(int index, String value)
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
index
- The index to set the value at.value
- The attributeKeys to set.- Returns:
- This builder for chaining.
-
addAttributeKeys
public BatchRemoveCatalogAttributesRequest.Builder addAttributeKeys(String value)
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The attributeKeys to add.- Returns:
- This builder for chaining.
-
addAllAttributeKeys
public BatchRemoveCatalogAttributesRequest.Builder addAllAttributeKeys(Iterable<String> values)
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
values
- The attributeKeys to add.- Returns:
- This builder for chaining.
-
clearAttributeKeys
public BatchRemoveCatalogAttributesRequest.Builder clearAttributeKeys()
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
addAttributeKeysBytes
public BatchRemoveCatalogAttributesRequest.Builder addAttributeKeysBytes(com.google.protobuf.ByteString value)
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s to delete. A maximum of 1000 catalog attributes can be deleted in a batch.
repeated string attribute_keys = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes of the attributeKeys to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchRemoveCatalogAttributesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
mergeUnknownFields
public final BatchRemoveCatalogAttributesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
-