public static final class ReplaceCatalogAttributeRequest.Builder extends GeneratedMessageV3.Builder<ReplaceCatalogAttributeRequest.Builder> implements ReplaceCatalogAttributeRequestOrBuilder
Request for
CatalogService.ReplaceCatalogAttribute
method.
Protobuf type google.cloud.retail.v2beta.ReplaceCatalogAttributeRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReplaceCatalogAttributeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ReplaceCatalogAttributeRequest build()
Returns
buildPartial()
public ReplaceCatalogAttributeRequest buildPartial()
Returns
clear()
public ReplaceCatalogAttributeRequest.Builder clear()
Returns
Overrides
clearAttributesConfig()
public ReplaceCatalogAttributeRequest.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 ReplaceCatalogAttributeRequest.Builder clearCatalogAttribute()
Required. The updated
CatalogAttribute.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public ReplaceCatalogAttributeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ReplaceCatalogAttributeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearUpdateMask()
public ReplaceCatalogAttributeRequest.Builder clearUpdateMask()
Indicates which fields in the provided
CatalogAttribute to update.
The following are NOT supported:
- CatalogAttribute.key
If not set, all supported fields are updated.
.google.protobuf.FieldMask update_mask = 3;
Returns
clone()
public ReplaceCatalogAttributeRequest.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 updated
CatalogAttribute.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getCatalogAttributeBuilder()
public CatalogAttribute.Builder getCatalogAttributeBuilder()
Required. The updated
CatalogAttribute.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getCatalogAttributeOrBuilder()
public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()
Required. The updated
CatalogAttribute.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public ReplaceCatalogAttributeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getUpdateMask()
public FieldMask getUpdateMask()
Indicates which fields in the provided
CatalogAttribute to update.
The following are NOT supported:
- CatalogAttribute.key
If not set, all supported fields are updated.
.google.protobuf.FieldMask update_mask = 3;
Returns
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()
Indicates which fields in the provided
CatalogAttribute to update.
The following are NOT supported:
- CatalogAttribute.key
If not set, all supported fields are updated.
.google.protobuf.FieldMask update_mask = 3;
Returns
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
Indicates which fields in the provided
CatalogAttribute to update.
The following are NOT supported:
- CatalogAttribute.key
If not set, all supported fields are updated.
.google.protobuf.FieldMask update_mask = 3;
Returns
hasCatalogAttribute()
public boolean hasCatalogAttribute()
Required. The updated
CatalogAttribute.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the catalogAttribute field is set.
|
hasUpdateMask()
public boolean hasUpdateMask()
Indicates which fields in the provided
CatalogAttribute to update.
The following are NOT supported:
- CatalogAttribute.key
If not set, all supported fields are updated.
.google.protobuf.FieldMask update_mask = 3;
Returns
Type | Description |
boolean | Whether the updateMask field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeCatalogAttribute(CatalogAttribute value)
public ReplaceCatalogAttributeRequest.Builder mergeCatalogAttribute(CatalogAttribute value)
Required. The updated
CatalogAttribute.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(ReplaceCatalogAttributeRequest other)
public ReplaceCatalogAttributeRequest.Builder mergeFrom(ReplaceCatalogAttributeRequest other)
Parameter
Returns
public ReplaceCatalogAttributeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ReplaceCatalogAttributeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReplaceCatalogAttributeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeUpdateMask(FieldMask value)
public ReplaceCatalogAttributeRequest.Builder mergeUpdateMask(FieldMask value)
Indicates which fields in the provided
CatalogAttribute to update.
The following are NOT supported:
- CatalogAttribute.key
If not set, all supported fields are updated.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Returns
setAttributesConfig(String value)
public ReplaceCatalogAttributeRequest.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 ReplaceCatalogAttributeRequest.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 ReplaceCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute value)
Required. The updated
CatalogAttribute.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setCatalogAttribute(CatalogAttribute.Builder builderForValue)
public ReplaceCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute.Builder builderForValue)
Required. The updated
CatalogAttribute.
.google.cloud.retail.v2beta.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ReplaceCatalogAttributeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReplaceCatalogAttributeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ReplaceCatalogAttributeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUpdateMask(FieldMask value)
public ReplaceCatalogAttributeRequest.Builder setUpdateMask(FieldMask value)
Indicates which fields in the provided
CatalogAttribute to update.
The following are NOT supported:
- CatalogAttribute.key
If not set, all supported fields are updated.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Returns
setUpdateMask(FieldMask.Builder builderForValue)
public ReplaceCatalogAttributeRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
Indicates which fields in the provided
CatalogAttribute to update.
The following are NOT supported:
- CatalogAttribute.key
If not set, all supported fields are updated.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Name | Description |
builderForValue | Builder
|
Returns