Class Catalog.Builder (2.14.0)

public static final class Catalog.Builder extends GeneratedMessageV3.Builder<Catalog.Builder> implements CatalogOrBuilder

The catalog configuration.

Protobuf type google.cloud.retail.v2alpha.Catalog

Implements

CatalogOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Catalog build()
Returns
TypeDescription
Catalog

buildPartial()

public Catalog buildPartial()
Returns
TypeDescription
Catalog

clear()

public Catalog.Builder clear()
Returns
TypeDescription
Catalog.Builder
Overrides

clearDisplayName()

public Catalog.Builder clearDisplayName()

Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Catalog.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMerchantCenterLinkingConfig()

public Catalog.Builder clearMerchantCenterLinkingConfig()

The Merchant Center linking configuration. Once a link is added, the data stream from Merchant Center to Cloud Retail will be enabled automatically. The requester must have access to the merchant center account in order to make changes to this field.

.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;

Returns
TypeDescription
Catalog.Builder

clearName()

public Catalog.Builder clearName()

Required. Immutable. The fully qualified resource name of the catalog.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Catalog.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Catalog.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Catalog.Builder
Overrides

clearProductLevelConfig()

public Catalog.Builder clearProductLevelConfig()

Required. The product level configuration.

.google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Catalog.Builder

clone()

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

getDefaultInstanceForType()

public Catalog getDefaultInstanceForType()
Returns
TypeDescription
Catalog

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for displayName.

getMerchantCenterLinkingConfig()

public MerchantCenterLinkingConfig getMerchantCenterLinkingConfig()

The Merchant Center linking configuration. Once a link is added, the data stream from Merchant Center to Cloud Retail will be enabled automatically. The requester must have access to the merchant center account in order to make changes to this field.

.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;

Returns
TypeDescription
MerchantCenterLinkingConfig

The merchantCenterLinkingConfig.

getMerchantCenterLinkingConfigBuilder()

public MerchantCenterLinkingConfig.Builder getMerchantCenterLinkingConfigBuilder()

The Merchant Center linking configuration. Once a link is added, the data stream from Merchant Center to Cloud Retail will be enabled automatically. The requester must have access to the merchant center account in order to make changes to this field.

.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;

Returns
TypeDescription
MerchantCenterLinkingConfig.Builder

getMerchantCenterLinkingConfigOrBuilder()

public MerchantCenterLinkingConfigOrBuilder getMerchantCenterLinkingConfigOrBuilder()

The Merchant Center linking configuration. Once a link is added, the data stream from Merchant Center to Cloud Retail will be enabled automatically. The requester must have access to the merchant center account in order to make changes to this field.

.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;

Returns
TypeDescription
MerchantCenterLinkingConfigOrBuilder

getName()

public String getName()

Required. Immutable. The fully qualified resource name of the catalog.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Immutable. The fully qualified resource name of the catalog.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for name.

getProductLevelConfig()

public ProductLevelConfig getProductLevelConfig()

Required. The product level configuration.

.google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductLevelConfig

The productLevelConfig.

getProductLevelConfigBuilder()

public ProductLevelConfig.Builder getProductLevelConfigBuilder()

Required. The product level configuration.

.google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductLevelConfig.Builder

getProductLevelConfigOrBuilder()

public ProductLevelConfigOrBuilder getProductLevelConfigOrBuilder()

Required. The product level configuration.

.google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductLevelConfigOrBuilder

hasMerchantCenterLinkingConfig()

public boolean hasMerchantCenterLinkingConfig()

The Merchant Center linking configuration. Once a link is added, the data stream from Merchant Center to Cloud Retail will be enabled automatically. The requester must have access to the merchant center account in order to make changes to this field.

.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;

Returns
TypeDescription
boolean

Whether the merchantCenterLinkingConfig field is set.

hasProductLevelConfig()

public boolean hasProductLevelConfig()

Required. The product level configuration.

.google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the productLevelConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Catalog other)

public Catalog.Builder mergeFrom(Catalog other)
Parameter
NameDescription
otherCatalog
Returns
TypeDescription
Catalog.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMerchantCenterLinkingConfig(MerchantCenterLinkingConfig value)

public Catalog.Builder mergeMerchantCenterLinkingConfig(MerchantCenterLinkingConfig value)

The Merchant Center linking configuration. Once a link is added, the data stream from Merchant Center to Cloud Retail will be enabled automatically. The requester must have access to the merchant center account in order to make changes to this field.

.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;

Parameter
NameDescription
valueMerchantCenterLinkingConfig
Returns
TypeDescription
Catalog.Builder

mergeProductLevelConfig(ProductLevelConfig value)

public Catalog.Builder mergeProductLevelConfig(ProductLevelConfig value)

Required. The product level configuration.

.google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProductLevelConfig
Returns
TypeDescription
Catalog.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Catalog.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Catalog.Builder
Overrides

setDisplayName(String value)

public Catalog.Builder setDisplayName(String value)

Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Catalog.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Catalog.Builder setDisplayNameBytes(ByteString value)

Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Catalog.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMerchantCenterLinkingConfig(MerchantCenterLinkingConfig value)

public Catalog.Builder setMerchantCenterLinkingConfig(MerchantCenterLinkingConfig value)

The Merchant Center linking configuration. Once a link is added, the data stream from Merchant Center to Cloud Retail will be enabled automatically. The requester must have access to the merchant center account in order to make changes to this field.

.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;

Parameter
NameDescription
valueMerchantCenterLinkingConfig
Returns
TypeDescription
Catalog.Builder

setMerchantCenterLinkingConfig(MerchantCenterLinkingConfig.Builder builderForValue)

public Catalog.Builder setMerchantCenterLinkingConfig(MerchantCenterLinkingConfig.Builder builderForValue)

The Merchant Center linking configuration. Once a link is added, the data stream from Merchant Center to Cloud Retail will be enabled automatically. The requester must have access to the merchant center account in order to make changes to this field.

.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;

Parameter
NameDescription
builderForValueMerchantCenterLinkingConfig.Builder
Returns
TypeDescription
Catalog.Builder

setName(String value)

public Catalog.Builder setName(String value)

Required. Immutable. The fully qualified resource name of the catalog.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Catalog.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Catalog.Builder setNameBytes(ByteString value)

Required. Immutable. The fully qualified resource name of the catalog.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Catalog.Builder

This builder for chaining.

setProductLevelConfig(ProductLevelConfig value)

public Catalog.Builder setProductLevelConfig(ProductLevelConfig value)

Required. The product level configuration.

.google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProductLevelConfig
Returns
TypeDescription
Catalog.Builder

setProductLevelConfig(ProductLevelConfig.Builder builderForValue)

public Catalog.Builder setProductLevelConfig(ProductLevelConfig.Builder builderForValue)

Required. The product level configuration.

.google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueProductLevelConfig.Builder
Returns
TypeDescription
Catalog.Builder

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

public Catalog.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Catalog.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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