public static final class AttributesConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder> implements AttributesConfigOrBuilder
Catalog level attribute config.Protobuf type
google.cloud.retail.v2.AttributesConfig| Modifier and Type | Method and Description |
|---|---|
AttributesConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributesConfig |
build() |
AttributesConfig |
buildPartial() |
AttributesConfig.Builder |
clear() |
AttributesConfig.Builder |
clearAttributeConfigLevel()
Output only.
|
AttributesConfig.Builder |
clearCatalogAttributes() |
AttributesConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttributesConfig.Builder |
clearName()
Required.
|
AttributesConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttributesConfig.Builder |
clone() |
boolean |
containsCatalogAttributes(String key)
Enable attribute(s) config at catalog level.
|
AttributeConfigLevel |
getAttributeConfigLevel()
Output only.
|
int |
getAttributeConfigLevelValue()
Output only.
|
Map<String,CatalogAttribute> |
getCatalogAttributes()
Deprecated.
|
int |
getCatalogAttributesCount()
Enable attribute(s) config at catalog level.
|
Map<String,CatalogAttribute> |
getCatalogAttributesMap()
Enable attribute(s) config at catalog level.
|
CatalogAttribute |
getCatalogAttributesOrDefault(String key,
CatalogAttribute defaultValue)
Enable attribute(s) config at catalog level.
|
CatalogAttribute |
getCatalogAttributesOrThrow(String key)
Enable attribute(s) config at catalog level.
|
AttributesConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,CatalogAttribute> |
getMutableCatalogAttributes()
Deprecated.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AttributesConfig.Builder |
mergeFrom(AttributesConfig other) |
AttributesConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttributesConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttributesConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttributesConfig.Builder |
putAllCatalogAttributes(Map<String,CatalogAttribute> values)
Enable attribute(s) config at catalog level.
|
AttributesConfig.Builder |
putCatalogAttributes(String key,
CatalogAttribute value)
Enable attribute(s) config at catalog level.
|
AttributesConfig.Builder |
removeCatalogAttributes(String key)
Enable attribute(s) config at catalog level.
|
AttributesConfig.Builder |
setAttributeConfigLevel(AttributeConfigLevel value)
Output only.
|
AttributesConfig.Builder |
setAttributeConfigLevelValue(int value)
Output only.
|
AttributesConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributesConfig.Builder |
setName(String value)
Required.
|
AttributesConfig.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
AttributesConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttributesConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttributesConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttributesConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttributesConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributesConfig.Builder>public AttributesConfig.Builder mergeFrom(AttributesConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public AttributesConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributesConfig.Builder>IOExceptionpublic String 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];
getName in interface AttributesConfigOrBuilderpublic com.google.protobuf.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];
getNameBytes in interface AttributesConfigOrBuilderpublic AttributesConfig.Builder setName(String value)
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];
value - The name to set.public AttributesConfig.Builder clearName()
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];
public AttributesConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
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];
value - The bytes for name to set.public int getCatalogAttributesCount()
AttributesConfigOrBuilderEnable 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.v2.CatalogAttribute> catalog_attributes = 2;
getCatalogAttributesCount in interface AttributesConfigOrBuilderpublic 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.v2.CatalogAttribute> catalog_attributes = 2;
containsCatalogAttributes in interface AttributesConfigOrBuilder@Deprecated public Map<String,CatalogAttribute> getCatalogAttributes()
getCatalogAttributesMap() instead.getCatalogAttributes in interface AttributesConfigOrBuilderpublic 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.v2.CatalogAttribute> catalog_attributes = 2;
getCatalogAttributesMap in interface AttributesConfigOrBuilderpublic 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.v2.CatalogAttribute> catalog_attributes = 2;
getCatalogAttributesOrDefault in interface AttributesConfigOrBuilderpublic 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.v2.CatalogAttribute> catalog_attributes = 2;
getCatalogAttributesOrThrow in interface AttributesConfigOrBuilderpublic AttributesConfig.Builder clearCatalogAttributes()
public AttributesConfig.Builder removeCatalogAttributes(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.v2.CatalogAttribute> catalog_attributes = 2;
@Deprecated public Map<String,CatalogAttribute> getMutableCatalogAttributes()
public AttributesConfig.Builder putCatalogAttributes(String key, CatalogAttribute value)
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.v2.CatalogAttribute> catalog_attributes = 2;
public AttributesConfig.Builder putAllCatalogAttributes(Map<String,CatalogAttribute> values)
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.v2.CatalogAttribute> catalog_attributes = 2;
public int getAttributeConfigLevelValue()
Output only. The [AttributeConfigLevel][google.cloud.retail.v2.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAttributeConfigLevelValue in interface AttributesConfigOrBuilderpublic AttributesConfig.Builder setAttributeConfigLevelValue(int value)
Output only. The [AttributeConfigLevel][google.cloud.retail.v2.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for attributeConfigLevel to set.public AttributeConfigLevel getAttributeConfigLevel()
Output only. The [AttributeConfigLevel][google.cloud.retail.v2.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAttributeConfigLevel in interface AttributesConfigOrBuilderpublic AttributesConfig.Builder setAttributeConfigLevel(AttributeConfigLevel value)
Output only. The [AttributeConfigLevel][google.cloud.retail.v2.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The attributeConfigLevel to set.public AttributesConfig.Builder clearAttributeConfigLevel()
Output only. The [AttributeConfigLevel][google.cloud.retail.v2.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final AttributesConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>public final AttributesConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.