public final class AttributesConfig extends GeneratedMessageV3 implements AttributesConfigOrBuilder
Catalog level attribute config.
Protobuf type google.cloud.retail.v2beta.AttributesConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ATTRIBUTE_CONFIG_LEVEL_FIELD_NUMBER
public static final int ATTRIBUTE_CONFIG_LEVEL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CATALOG_ATTRIBUTES_FIELD_NUMBER
public static final int CATALOG_ATTRIBUTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static AttributesConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AttributesConfig.Builder newBuilder()
newBuilder(AttributesConfig prototype)
public static AttributesConfig.Builder newBuilder(AttributesConfig prototype)
public static AttributesConfig parseDelimitedFrom(InputStream input)
public static AttributesConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AttributesConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AttributesConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AttributesConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AttributesConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AttributesConfig parseFrom(CodedInputStream input)
public static AttributesConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AttributesConfig parseFrom(InputStream input)
public static AttributesConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AttributesConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AttributesConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AttributesConfig> parser()
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 |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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];
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() (deprecated)
public Map<String,CatalogAttribute> getCatalogAttributes()
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 |
---|
Type | Description |
int | |
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;
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;
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 |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public AttributesConfig getDefaultInstanceForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<AttributesConfig> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AttributesConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AttributesConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public AttributesConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides