Package com.google.cloud.retail.v2
Class CustomAttribute.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
- com.google.cloud.retail.v2.CustomAttribute.Builder
-
- All Implemented Interfaces:
CustomAttributeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CustomAttribute
public static final class CustomAttribute.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder> implements CustomAttributeOrBuilder
A custom attribute that is not explicitly modeled in [Product][google.cloud.retail.v2.Product].
Protobuf typegoogle.cloud.retail.v2.CustomAttribute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CustomAttribute.Builder
addAllNumbers(Iterable<? extends Double> values)
The numerical values of this custom attribute.CustomAttribute.Builder
addAllText(Iterable<String> values)
The textual values of this custom attribute.CustomAttribute.Builder
addNumbers(double value)
The numerical values of this custom attribute.CustomAttribute.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CustomAttribute.Builder
addText(String value)
The textual values of this custom attribute.CustomAttribute.Builder
addTextBytes(com.google.protobuf.ByteString value)
The textual values of this custom attribute.CustomAttribute
build()
CustomAttribute
buildPartial()
CustomAttribute.Builder
clear()
CustomAttribute.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CustomAttribute.Builder
clearIndexable()
Deprecated.google.cloud.retail.v2.CustomAttribute.indexable is deprecated.CustomAttribute.Builder
clearNumbers()
The numerical values of this custom attribute.CustomAttribute.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CustomAttribute.Builder
clearSearchable()
Deprecated.google.cloud.retail.v2.CustomAttribute.searchable is deprecated.CustomAttribute.Builder
clearText()
The textual values of this custom attribute.CustomAttribute.Builder
clone()
CustomAttribute
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getIndexable()
Deprecated.google.cloud.retail.v2.CustomAttribute.indexable is deprecated.double
getNumbers(int index)
The numerical values of this custom attribute.int
getNumbersCount()
The numerical values of this custom attribute.List<Double>
getNumbersList()
The numerical values of this custom attribute.boolean
getSearchable()
Deprecated.google.cloud.retail.v2.CustomAttribute.searchable is deprecated.String
getText(int index)
The textual values of this custom attribute.com.google.protobuf.ByteString
getTextBytes(int index)
The textual values of this custom attribute.int
getTextCount()
The textual values of this custom attribute.com.google.protobuf.ProtocolStringList
getTextList()
The textual values of this custom attribute.boolean
hasIndexable()
Deprecated.google.cloud.retail.v2.CustomAttribute.indexable is deprecated.boolean
hasSearchable()
Deprecated.google.cloud.retail.v2.CustomAttribute.searchable is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CustomAttribute.Builder
mergeFrom(CustomAttribute other)
CustomAttribute.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CustomAttribute.Builder
mergeFrom(com.google.protobuf.Message other)
CustomAttribute.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CustomAttribute.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CustomAttribute.Builder
setIndexable(boolean value)
Deprecated.google.cloud.retail.v2.CustomAttribute.indexable is deprecated.CustomAttribute.Builder
setNumbers(int index, double value)
The numerical values of this custom attribute.CustomAttribute.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CustomAttribute.Builder
setSearchable(boolean value)
Deprecated.google.cloud.retail.v2.CustomAttribute.searchable is deprecated.CustomAttribute.Builder
setText(int index, String value)
The textual values of this custom attribute.CustomAttribute.Builder
setUnknownFields(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, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
clear
public CustomAttribute.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
getDefaultInstanceForType
public CustomAttribute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomAttribute build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomAttribute buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CustomAttribute.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
setField
public CustomAttribute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
clearField
public CustomAttribute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
clearOneof
public CustomAttribute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
setRepeatedField
public CustomAttribute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
addRepeatedField
public CustomAttribute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.Builder mergeFrom(CustomAttribute other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
- Throws:
IOException
-
getTextList
public com.google.protobuf.ProtocolStringList getTextList()
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Specified by:
getTextList
in interfaceCustomAttributeOrBuilder
- Returns:
- A list containing the text.
-
getTextCount
public int getTextCount()
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Specified by:
getTextCount
in interfaceCustomAttributeOrBuilder
- Returns:
- The count of text.
-
getText
public String getText(int index)
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Specified by:
getText
in interfaceCustomAttributeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The text at the given index.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes(int index)
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Specified by:
getTextBytes
in interfaceCustomAttributeOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the text at the given index.
-
setText
public CustomAttribute.Builder setText(int index, String value)
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Parameters:
index
- The index to set the value at.value
- The text to set.- Returns:
- This builder for chaining.
-
addText
public CustomAttribute.Builder addText(String value)
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Parameters:
value
- The text to add.- Returns:
- This builder for chaining.
-
addAllText
public CustomAttribute.Builder addAllText(Iterable<String> values)
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Parameters:
values
- The text to add.- Returns:
- This builder for chaining.
-
clearText
public CustomAttribute.Builder clearText()
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Returns:
- This builder for chaining.
-
addTextBytes
public CustomAttribute.Builder addTextBytes(com.google.protobuf.ByteString value)
The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string text = 1;
- Parameters:
value
- The bytes of the text to add.- Returns:
- This builder for chaining.
-
getNumbersList
public List<Double> getNumbersList()
The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated double numbers = 2;
- Specified by:
getNumbersList
in interfaceCustomAttributeOrBuilder
- Returns:
- A list containing the numbers.
-
getNumbersCount
public int getNumbersCount()
The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated double numbers = 2;
- Specified by:
getNumbersCount
in interfaceCustomAttributeOrBuilder
- Returns:
- The count of numbers.
-
getNumbers
public double getNumbers(int index)
The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated double numbers = 2;
- Specified by:
getNumbers
in interfaceCustomAttributeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The numbers at the given index.
-
setNumbers
public CustomAttribute.Builder setNumbers(int index, double value)
The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated double numbers = 2;
- Parameters:
index
- The index to set the value at.value
- The numbers to set.- Returns:
- This builder for chaining.
-
addNumbers
public CustomAttribute.Builder addNumbers(double value)
The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated double numbers = 2;
- Parameters:
value
- The numbers to add.- Returns:
- This builder for chaining.
-
addAllNumbers
public CustomAttribute.Builder addAllNumbers(Iterable<? extends Double> values)
The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated double numbers = 2;
- Parameters:
values
- The numbers to add.- Returns:
- This builder for chaining.
-
clearNumbers
public CustomAttribute.Builder clearNumbers()
The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
repeated double numbers = 2;
- Returns:
- This builder for chaining.
-
hasSearchable
@Deprecated public boolean hasSearchable()
Deprecated.google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See google/cloud/retail/v2/common.proto;l=423This field is normally ignored unless [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] of the [Catalog][google.cloud.retail.v2.Catalog] is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are searchable by text queries in [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. This field is ignored in a [UserEvent][google.cloud.retail.v2.UserEvent]. Only set if type [text][google.cloud.retail.v2.CustomAttribute.text] is set. Otherwise, a INVALID_ARGUMENT error is returned.
optional bool searchable = 3 [deprecated = true];
- Specified by:
hasSearchable
in interfaceCustomAttributeOrBuilder
- Returns:
- Whether the searchable field is set.
-
getSearchable
@Deprecated public boolean getSearchable()
Deprecated.google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See google/cloud/retail/v2/common.proto;l=423This field is normally ignored unless [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] of the [Catalog][google.cloud.retail.v2.Catalog] is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are searchable by text queries in [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. This field is ignored in a [UserEvent][google.cloud.retail.v2.UserEvent]. Only set if type [text][google.cloud.retail.v2.CustomAttribute.text] is set. Otherwise, a INVALID_ARGUMENT error is returned.
optional bool searchable = 3 [deprecated = true];
- Specified by:
getSearchable
in interfaceCustomAttributeOrBuilder
- Returns:
- The searchable.
-
setSearchable
@Deprecated public CustomAttribute.Builder setSearchable(boolean value)
Deprecated.google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See google/cloud/retail/v2/common.proto;l=423This field is normally ignored unless [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] of the [Catalog][google.cloud.retail.v2.Catalog] is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are searchable by text queries in [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. This field is ignored in a [UserEvent][google.cloud.retail.v2.UserEvent]. Only set if type [text][google.cloud.retail.v2.CustomAttribute.text] is set. Otherwise, a INVALID_ARGUMENT error is returned.
optional bool searchable = 3 [deprecated = true];
- Parameters:
value
- The searchable to set.- Returns:
- This builder for chaining.
-
clearSearchable
@Deprecated public CustomAttribute.Builder clearSearchable()
Deprecated.google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See google/cloud/retail/v2/common.proto;l=423This field is normally ignored unless [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] of the [Catalog][google.cloud.retail.v2.Catalog] is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are searchable by text queries in [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. This field is ignored in a [UserEvent][google.cloud.retail.v2.UserEvent]. Only set if type [text][google.cloud.retail.v2.CustomAttribute.text] is set. Otherwise, a INVALID_ARGUMENT error is returned.
optional bool searchable = 3 [deprecated = true];
- Returns:
- This builder for chaining.
-
hasIndexable
@Deprecated public boolean hasIndexable()
Deprecated.google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See google/cloud/retail/v2/common.proto;l=442This field is normally ignored unless [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] of the [Catalog][google.cloud.retail.v2.Catalog] is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are indexed, so that they can be filtered, faceted or boosted in [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. This field is ignored in a [UserEvent][google.cloud.retail.v2.UserEvent]. See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter], [SearchRequest.facet_specs][google.cloud.retail.v2.SearchRequest.facet_specs] and [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec] for more details.
optional bool indexable = 4 [deprecated = true];
- Specified by:
hasIndexable
in interfaceCustomAttributeOrBuilder
- Returns:
- Whether the indexable field is set.
-
getIndexable
@Deprecated public boolean getIndexable()
Deprecated.google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See google/cloud/retail/v2/common.proto;l=442This field is normally ignored unless [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] of the [Catalog][google.cloud.retail.v2.Catalog] is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are indexed, so that they can be filtered, faceted or boosted in [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. This field is ignored in a [UserEvent][google.cloud.retail.v2.UserEvent]. See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter], [SearchRequest.facet_specs][google.cloud.retail.v2.SearchRequest.facet_specs] and [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec] for more details.
optional bool indexable = 4 [deprecated = true];
- Specified by:
getIndexable
in interfaceCustomAttributeOrBuilder
- Returns:
- The indexable.
-
setIndexable
@Deprecated public CustomAttribute.Builder setIndexable(boolean value)
Deprecated.google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See google/cloud/retail/v2/common.proto;l=442This field is normally ignored unless [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] of the [Catalog][google.cloud.retail.v2.Catalog] is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are indexed, so that they can be filtered, faceted or boosted in [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. This field is ignored in a [UserEvent][google.cloud.retail.v2.UserEvent]. See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter], [SearchRequest.facet_specs][google.cloud.retail.v2.SearchRequest.facet_specs] and [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec] for more details.
optional bool indexable = 4 [deprecated = true];
- Parameters:
value
- The indexable to set.- Returns:
- This builder for chaining.
-
clearIndexable
@Deprecated public CustomAttribute.Builder clearIndexable()
Deprecated.google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See google/cloud/retail/v2/common.proto;l=442This field is normally ignored unless [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] of the [Catalog][google.cloud.retail.v2.Catalog] is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are indexed, so that they can be filtered, faceted or boosted in [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. This field is ignored in a [UserEvent][google.cloud.retail.v2.UserEvent]. See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter], [SearchRequest.facet_specs][google.cloud.retail.v2.SearchRequest.facet_specs] and [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec] for more details.
optional bool indexable = 4 [deprecated = true];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CustomAttribute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
mergeUnknownFields
public final CustomAttribute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
-