public final class AttributesConfig extends GeneratedMessageV3 implements AttributesConfigOrBuilder
Catalog level attribute config.
Protobuf type google.cloud.retail.v2beta.AttributesConfig
Static Fields
ATTRIBUTE_CONFIG_LEVEL_FIELD_NUMBER
public static final int ATTRIBUTE_CONFIG_LEVEL_FIELD_NUMBER
Field Value
CATALOG_ATTRIBUTES_FIELD_NUMBER
public static final int CATALOG_ATTRIBUTES_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AttributesConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AttributesConfig.Builder newBuilder()
Returns
newBuilder(AttributesConfig prototype)
public static AttributesConfig.Builder newBuilder(AttributesConfig prototype)
Parameter
Returns
public static AttributesConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AttributesConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AttributesConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AttributesConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AttributesConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AttributesConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AttributesConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AttributesConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AttributesConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AttributesConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AttributesConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AttributesConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AttributesConfig> parser()
Returns
Methods
containsCatalogAttributes(String key)
public boolean containsCatalogAttributes(String key)
Enable attribute(s) config at catalog level.
For example, indexable, dynamic_facetable, or searchable for each
attribute.
The key is catalog attribute's name.
For example: color
, brands
, attributes.custom_attribute
, such as
attributes.xyz
.
The maximum number of catalog attributes allowed in a request is 1000.
map<string, .google.cloud.retail.v2beta.CatalogAttribute> catalog_attributes = 2;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAttributeConfigLevel()
public AttributeConfigLevel getAttributeConfigLevel()
Output only. The
AttributeConfigLevel
used for this catalog.
.google.cloud.retail.v2beta.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getAttributeConfigLevelValue()
public int getAttributeConfigLevelValue()
Output only. The
AttributeConfigLevel
used for this catalog.
.google.cloud.retail.v2beta.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The enum numeric value on the wire for attributeConfigLevel.
|
getCatalogAttributes()
public Map<String,CatalogAttribute> getCatalogAttributes()
Returns
getCatalogAttributesCount()
public int getCatalogAttributesCount()
Enable attribute(s) config at catalog level.
For example, indexable, dynamic_facetable, or searchable for each
attribute.
The key is catalog attribute's name.
For example: color
, brands
, attributes.custom_attribute
, such as
attributes.xyz
.
The maximum number of catalog attributes allowed in a request is 1000.
map<string, .google.cloud.retail.v2beta.CatalogAttribute> catalog_attributes = 2;
Returns
getCatalogAttributesMap()
public Map<String,CatalogAttribute> getCatalogAttributesMap()
Enable attribute(s) config at catalog level.
For example, indexable, dynamic_facetable, or searchable for each
attribute.
The key is catalog attribute's name.
For example: color
, brands
, attributes.custom_attribute
, such as
attributes.xyz
.
The maximum number of catalog attributes allowed in a request is 1000.
map<string, .google.cloud.retail.v2beta.CatalogAttribute> catalog_attributes = 2;
Returns
getCatalogAttributesOrDefault(String key, CatalogAttribute defaultValue)
public CatalogAttribute getCatalogAttributesOrDefault(String key, CatalogAttribute defaultValue)
Enable attribute(s) config at catalog level.
For example, indexable, dynamic_facetable, or searchable for each
attribute.
The key is catalog attribute's name.
For example: color
, brands
, attributes.custom_attribute
, such as
attributes.xyz
.
The maximum number of catalog attributes allowed in a request is 1000.
map<string, .google.cloud.retail.v2beta.CatalogAttribute> catalog_attributes = 2;
Parameters
Returns
getCatalogAttributesOrThrow(String key)
public CatalogAttribute getCatalogAttributesOrThrow(String key)
Enable attribute(s) config at catalog level.
For example, indexable, dynamic_facetable, or searchable for each
attribute.
The key is catalog attribute's name.
For example: color
, brands
, attributes.custom_attribute
, such as
attributes.xyz
.
The maximum number of catalog attributes allowed in a request is 1000.
map<string, .google.cloud.retail.v2beta.CatalogAttribute> catalog_attributes = 2;
Parameter
Returns
getDefaultInstanceForType()
public AttributesConfig getDefaultInstanceForType()
Returns
getName()
Required. Immutable. The fully qualified resource name of the attribute
config. Format: projects/*/locations/*/catalogs/*/attributesConfig
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 attribute
config. Format: projects/*/locations/*/catalogs/*/attributesConfig
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns
getParserForType()
public Parser<AttributesConfig> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AttributesConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AttributesConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AttributesConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions