Package com.google.cloud.retail.v2alpha
Class BatchRemoveCatalogAttributesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
com.google.cloud.retail.v2alpha.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.GeneratedMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
implements BatchRemoveCatalogAttributesRequestOrBuilder
Request for [CatalogService.BatchRemoveCatalogAttributes][google.cloud.retail.v2alpha.CatalogService.BatchRemoveCatalogAttributes] method.Protobuf type
google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributeKeys(Iterable<String> values) Required.addAttributeKeys(String value) Required.addAttributeKeysBytes(com.google.protobuf.ByteString value) Required.build()clear()Required.Required.getAttributeKeys(int index) Required.com.google.protobuf.ByteStringgetAttributeKeysBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAttributeKeys(int index, String value) Required.setAttributesConfig(String value) Required.setAttributesConfigBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
mergeFrom
public BatchRemoveCatalogAttributesRequest.Builder mergeFrom(BatchRemoveCatalogAttributesRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>
-
mergeFrom
public BatchRemoveCatalogAttributesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchRemoveCatalogAttributesRequest.Builder>- Throws:
IOException
-
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:
getAttributesConfigin 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:
getAttributesConfigBytesin interfaceBatchRemoveCatalogAttributesRequestOrBuilder- Returns:
- The bytes for attributesConfig.
-
setAttributesConfig
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
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.v2alpha.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:
getAttributeKeysListin interfaceBatchRemoveCatalogAttributesRequestOrBuilder- Returns:
- A list containing the attributeKeys.
-
getAttributeKeysCount
public int getAttributeKeysCount()Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2alpha.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:
getAttributeKeysCountin interfaceBatchRemoveCatalogAttributesRequestOrBuilder- Returns:
- The count of attributeKeys.
-
getAttributeKeys
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2alpha.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:
getAttributeKeysin 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.v2alpha.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:
getAttributeKeysBytesin interfaceBatchRemoveCatalogAttributesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the attributeKeys at the given index.
-
setAttributeKeys
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2alpha.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
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2alpha.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
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2alpha.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
Required. The attribute name keys of the [CatalogAttribute][google.cloud.retail.v2alpha.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.v2alpha.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.
-