Package com.google.cloud.retail.v2alpha
Class AttributesConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AttributesConfig.Builder>
com.google.cloud.retail.v2alpha.AttributesConfig.Builder
- All Implemented Interfaces:
AttributesConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AttributesConfig
public static final class AttributesConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AttributesConfig.Builder>
implements AttributesConfigOrBuilder
Catalog level attribute config.Protobuf type
google.cloud.retail.v2alpha.AttributesConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Required.booleanEnable attribute(s) config at catalog level.Output only.intOutput only.Deprecated.intEnable attribute(s) config at catalog level.Enable attribute(s) config at catalog level.getCatalogAttributesOrDefault(String key, CatalogAttribute defaultValue) Enable attribute(s) config at catalog level.Enable attribute(s) config at catalog level.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.getName()Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(AttributesConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllCatalogAttributes(Map<String, CatalogAttribute> values) Enable attribute(s) config at catalog level.putCatalogAttributes(String key, CatalogAttribute value) Enable attribute(s) config at catalog level.Enable attribute(s) config at catalog level.Enable attribute(s) config at catalog level.Output only.setAttributeConfigLevelValue(int value) Output only.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AttributesConfig.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AttributesConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AttributesConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AttributesConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AttributesConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributesConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AttributesConfig.Builder>
-
mergeFrom
public AttributesConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributesConfig.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceAttributesConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceAttributesConfigOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCatalogAttributesCount
public int getCatalogAttributesCount()Description copied from interface: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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
getCatalogAttributesCountin interfaceAttributesConfigOrBuilder
-
containsCatalogAttributes
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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
containsCatalogAttributesin interfaceAttributesConfigOrBuilder
-
getCatalogAttributes
Deprecated.UsegetCatalogAttributesMap()instead.- Specified by:
getCatalogAttributesin interfaceAttributesConfigOrBuilder
-
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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
getCatalogAttributesMapin interfaceAttributesConfigOrBuilder
-
getCatalogAttributesOrDefault
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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
getCatalogAttributesOrDefaultin interfaceAttributesConfigOrBuilder
-
getCatalogAttributesOrThrow
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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
getCatalogAttributesOrThrowin interfaceAttributesConfigOrBuilder
-
clearCatalogAttributes
-
removeCatalogAttributes
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.v2alpha.CatalogAttribute> catalog_attributes = 2; -
getMutableCatalogAttributes
Deprecated.Use alternate mutation accessors instead. -
putCatalogAttributes
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.v2alpha.CatalogAttribute> catalog_attributes = 2; -
putAllCatalogAttributes
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.v2alpha.CatalogAttribute> catalog_attributes = 2; -
putCatalogAttributesBuilderIfAbsent
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.v2alpha.CatalogAttribute> catalog_attributes = 2; -
getAttributeConfigLevelValue
public int getAttributeConfigLevelValue()Output only. The [AttributeConfigLevel][google.cloud.retail.v2alpha.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2alpha.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAttributeConfigLevelValuein interfaceAttributesConfigOrBuilder- Returns:
- The enum numeric value on the wire for attributeConfigLevel.
-
setAttributeConfigLevelValue
Output only. The [AttributeConfigLevel][google.cloud.retail.v2alpha.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2alpha.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for attributeConfigLevel to set.- Returns:
- This builder for chaining.
-
getAttributeConfigLevel
Output only. The [AttributeConfigLevel][google.cloud.retail.v2alpha.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2alpha.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAttributeConfigLevelin interfaceAttributesConfigOrBuilder- Returns:
- The attributeConfigLevel.
-
setAttributeConfigLevel
Output only. The [AttributeConfigLevel][google.cloud.retail.v2alpha.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2alpha.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The attributeConfigLevel to set.- Returns:
- This builder for chaining.
-
clearAttributeConfigLevel
Output only. The [AttributeConfigLevel][google.cloud.retail.v2alpha.AttributeConfigLevel] used for this catalog.
.google.cloud.retail.v2alpha.AttributeConfigLevel attribute_config_level = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-