public static final class AddCatalogAttributeRequest.Builder extends GeneratedMessageV3.Builder<AddCatalogAttributeRequest.Builder> implements AddCatalogAttributeRequestOrBuilder
Request for
CatalogService.AddCatalogAttribute
method.
Protobuf type google.cloud.retail.v2beta.AddCatalogAttributeRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AddCatalogAttributeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AddCatalogAttributeRequest build()
Returns
buildPartial()
public AddCatalogAttributeRequest buildPartial()
Returns
clear()
public AddCatalogAttributeRequest.Builder clear()
Returns
Overrides
clearAttributesConfig()
public AddCatalogAttributeRequest.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
clearCatalogAttribute()
public AddCatalogAttributeRequest.Builder clearCatalogAttribute()
Required. The
CatalogAttribute to add.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public AddCatalogAttributeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AddCatalogAttributeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AddCatalogAttributeRequest.Builder clone()
Returns
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
Type | Description |
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
Type | Description |
ByteString | The bytes for attributesConfig.
|
getCatalogAttribute()
public CatalogAttribute getCatalogAttribute()
Required. The
CatalogAttribute to add.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getCatalogAttributeBuilder()
public CatalogAttribute.Builder getCatalogAttributeBuilder()
Required. The
CatalogAttribute to add.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getCatalogAttributeOrBuilder()
public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()
Required. The
CatalogAttribute to add.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public AddCatalogAttributeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
hasCatalogAttribute()
public boolean hasCatalogAttribute()
Required. The
CatalogAttribute to add.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the catalogAttribute field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeCatalogAttribute(CatalogAttribute value)
public AddCatalogAttributeRequest.Builder mergeCatalogAttribute(CatalogAttribute value)
Required. The
CatalogAttribute to add.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(AddCatalogAttributeRequest other)
public AddCatalogAttributeRequest.Builder mergeFrom(AddCatalogAttributeRequest other)
Parameter
Returns
public AddCatalogAttributeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AddCatalogAttributeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AddCatalogAttributeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAttributesConfig(String value)
public AddCatalogAttributeRequest.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
Name | Description |
value | String
The attributesConfig to set.
|
Returns
setAttributesConfigBytes(ByteString value)
public AddCatalogAttributeRequest.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
Name | Description |
value | ByteString
The bytes for attributesConfig to set.
|
Returns
setCatalogAttribute(CatalogAttribute value)
public AddCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute value)
Required. The
CatalogAttribute to add.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setCatalogAttribute(CatalogAttribute.Builder builderForValue)
public AddCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute.Builder builderForValue)
Required. The
CatalogAttribute to add.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AddCatalogAttributeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AddCatalogAttributeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AddCatalogAttributeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides