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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AttributesConfig.Builder> implements AttributesConfigOrBuilder
Catalog level attribute config.
Protobuf typegoogle.cloud.retail.v2alpha.AttributesConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributesConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AttributesConfigbuild()AttributesConfigbuildPartial()AttributesConfig.Builderclear()AttributesConfig.BuilderclearAttributeConfigLevel()Output only.AttributesConfig.BuilderclearCatalogAttributes()AttributesConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AttributesConfig.BuilderclearName()Required.AttributesConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AttributesConfig.Builderclone()booleancontainsCatalogAttributes(String key)Enable attribute(s) config at catalog level.AttributeConfigLevelgetAttributeConfigLevel()Output only.intgetAttributeConfigLevelValue()Output only.Map<String,CatalogAttribute>getCatalogAttributes()Deprecated.intgetCatalogAttributesCount()Enable attribute(s) config at catalog level.Map<String,CatalogAttribute>getCatalogAttributesMap()Enable attribute(s) config at catalog level.CatalogAttributegetCatalogAttributesOrDefault(String key, CatalogAttribute defaultValue)Enable attribute(s) config at catalog level.CatalogAttributegetCatalogAttributesOrThrow(String key)Enable attribute(s) config at catalog level.AttributesConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,CatalogAttribute>getMutableCatalogAttributes()Deprecated.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()AttributesConfig.BuildermergeFrom(AttributesConfig other)AttributesConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AttributesConfig.BuildermergeFrom(com.google.protobuf.Message other)AttributesConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AttributesConfig.BuilderputAllCatalogAttributes(Map<String,CatalogAttribute> values)Enable attribute(s) config at catalog level.AttributesConfig.BuilderputCatalogAttributes(String key, CatalogAttribute value)Enable attribute(s) config at catalog level.AttributesConfig.BuilderremoveCatalogAttributes(String key)Enable attribute(s) config at catalog level.AttributesConfig.BuildersetAttributeConfigLevel(AttributeConfigLevel value)Output only.AttributesConfig.BuildersetAttributeConfigLevelValue(int value)Output only.AttributesConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AttributesConfig.BuildersetName(String value)Required.AttributesConfig.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.AttributesConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AttributesConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
clear
public AttributesConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
getDefaultInstanceForType
public AttributesConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AttributesConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AttributesConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AttributesConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
setField
public AttributesConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
clearField
public AttributesConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
clearOneof
public AttributesConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
setRepeatedField
public AttributesConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
addRepeatedField
public AttributesConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
mergeFrom
public AttributesConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributesConfig.Builder>
-
mergeFrom
public AttributesConfig.Builder mergeFrom(AttributesConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public 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];- 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
public 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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- 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
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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
containsCatalogAttributesin interfaceAttributesConfigOrBuilder
-
getCatalogAttributes
@Deprecated public Map<String,CatalogAttribute> getCatalogAttributes()
Deprecated.UsegetCatalogAttributesMap()instead.- Specified by:
getCatalogAttributesin interfaceAttributesConfigOrBuilder
-
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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
getCatalogAttributesMapin interfaceAttributesConfigOrBuilder
-
getCatalogAttributesOrDefault
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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
getCatalogAttributesOrDefaultin interfaceAttributesConfigOrBuilder
-
getCatalogAttributesOrThrow
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.v2alpha.CatalogAttribute> catalog_attributes = 2;- Specified by:
getCatalogAttributesOrThrowin interfaceAttributesConfigOrBuilder
-
clearCatalogAttributes
public AttributesConfig.Builder clearCatalogAttributes()
-
removeCatalogAttributes
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.v2alpha.CatalogAttribute> catalog_attributes = 2;
-
getMutableCatalogAttributes
@Deprecated public Map<String,CatalogAttribute> getMutableCatalogAttributes()
Deprecated.Use alternate mutation accessors instead.
-
putCatalogAttributes
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.v2alpha.CatalogAttribute> catalog_attributes = 2;
-
putAllCatalogAttributes
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.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
public AttributesConfig.Builder setAttributeConfigLevelValue(int value)
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
public AttributeConfigLevel 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
public AttributesConfig.Builder setAttributeConfigLevel(AttributeConfigLevel value)
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
public AttributesConfig.Builder 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.
-
setUnknownFields
public final AttributesConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
mergeUnknownFields
public final AttributesConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributesConfig.Builder>
-
-