Class Catalog.Builder (2.85.0)

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

The catalog configuration.

Protobuf type google.cloud.retail.v2.Catalog

Implements

CatalogOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Catalog build()
Returns
Type Description
Catalog

buildPartial()

public Catalog buildPartial()
Returns
Type Description
Catalog

clear()

public Catalog.Builder clear()
Returns
Type Description
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
Type Description
Catalog.Builder

This builder for chaining.

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
Type Description
Catalog.Builder

This builder for chaining.

clearProductLevelConfig()

public Catalog.Builder clearProductLevelConfig()

Required. The product level configuration.

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

Returns
Type Description
Catalog.Builder

getDefaultInstanceForType()

public Catalog getDefaultInstanceForType()
Returns
Type Description
Catalog

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for displayName.

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
Type Description
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
Type Description
ByteString

The bytes for name.

getProductLevelConfig()

public ProductLevelConfig getProductLevelConfig()

Required. The product level configuration.

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

Returns
Type Description
ProductLevelConfig

The productLevelConfig.

getProductLevelConfigBuilder()

public ProductLevelConfig.Builder getProductLevelConfigBuilder()

Required. The product level configuration.

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

Returns
Type Description
ProductLevelConfig.Builder

getProductLevelConfigOrBuilder()

public ProductLevelConfigOrBuilder getProductLevelConfigOrBuilder()

Required. The product level configuration.

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

Returns
Type Description
ProductLevelConfigOrBuilder

hasProductLevelConfig()

public boolean hasProductLevelConfig()

Required. The product level configuration.

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

Returns
Type Description
boolean

Whether the productLevelConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Catalog other)

public Catalog.Builder mergeFrom(Catalog other)
Parameter
Name Description
other Catalog
Returns
Type Description
Catalog.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Catalog.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Catalog.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Catalog.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Catalog.Builder
Overrides

mergeProductLevelConfig(ProductLevelConfig value)

public Catalog.Builder mergeProductLevelConfig(ProductLevelConfig value)

Required. The product level configuration.

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

Parameter
Name Description
value ProductLevelConfig
Returns
Type Description
Catalog.Builder

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
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Catalog.Builder

This builder for chaining.

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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Catalog.Builder

This builder for chaining.

setProductLevelConfig(ProductLevelConfig value)

public Catalog.Builder setProductLevelConfig(ProductLevelConfig value)

Required. The product level configuration.

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

Parameter
Name Description
value ProductLevelConfig
Returns
Type Description
Catalog.Builder

setProductLevelConfig(ProductLevelConfig.Builder builderForValue)

public Catalog.Builder setProductLevelConfig(ProductLevelConfig.Builder builderForValue)

Required. The product level configuration.

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

Parameter
Name Description
builderForValue ProductLevelConfig.Builder
Returns
Type Description
Catalog.Builder