public static final class Rule.RemoveFacetAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.Builder> implements Rule.RemoveFacetActionOrBuilder
Removes an attribute/facet in the request if is present. * Rule Condition: Must specify non-empty [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] (for search only) or [Condition.page_categories][google.cloud.retail.v2.Condition.page_categories] (for browse only), but can't specify both. * Action Input: attribute name * Action Result: Will remove the attribute (as a facet) from the request if it is present. Example: Suppose the query is "shoes", the [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] is "shoes" and the attribute name "size", then facet key "size" will be removed from the request (if it is present).Protobuf type
google.cloud.retail.v2.Rule.RemoveFacetAction| Modifier and Type | Method and Description |
|---|---|
Rule.RemoveFacetAction.Builder |
addAllAttributeNames(Iterable<String> values)
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
Rule.RemoveFacetAction.Builder |
addAttributeNames(String value)
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
Rule.RemoveFacetAction.Builder |
addAttributeNamesBytes(com.google.protobuf.ByteString value)
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
Rule.RemoveFacetAction.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Rule.RemoveFacetAction |
build() |
Rule.RemoveFacetAction |
buildPartial() |
Rule.RemoveFacetAction.Builder |
clear() |
Rule.RemoveFacetAction.Builder |
clearAttributeNames()
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
Rule.RemoveFacetAction.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Rule.RemoveFacetAction.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Rule.RemoveFacetAction.Builder |
clone() |
String |
getAttributeNames(int index)
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
com.google.protobuf.ByteString |
getAttributeNamesBytes(int index)
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
int |
getAttributeNamesCount()
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
com.google.protobuf.ProtocolStringList |
getAttributeNamesList()
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
Rule.RemoveFacetAction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Rule.RemoveFacetAction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Rule.RemoveFacetAction.Builder |
mergeFrom(com.google.protobuf.Message other) |
Rule.RemoveFacetAction.Builder |
mergeFrom(Rule.RemoveFacetAction other) |
Rule.RemoveFacetAction.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Rule.RemoveFacetAction.Builder |
setAttributeNames(int index,
String value)
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request).
|
Rule.RemoveFacetAction.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Rule.RemoveFacetAction.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Rule.RemoveFacetAction.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Rule.RemoveFacetAction build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Rule.RemoveFacetAction buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Rule.RemoveFacetAction.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.Builder mergeFrom(Rule.RemoveFacetAction other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.Builder>public Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getAttributeNamesList()
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;getAttributeNamesList in interface Rule.RemoveFacetActionOrBuilderpublic int getAttributeNamesCount()
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;getAttributeNamesCount in interface Rule.RemoveFacetActionOrBuilderpublic String getAttributeNames(int index)
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;getAttributeNames in interface Rule.RemoveFacetActionOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAttributeNamesBytes(int index)
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;getAttributeNamesBytes in interface Rule.RemoveFacetActionOrBuilderindex - The index of the value to return.public Rule.RemoveFacetAction.Builder setAttributeNames(int index, String value)
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;index - The index to set the value at.value - The attributeNames to set.public Rule.RemoveFacetAction.Builder addAttributeNames(String value)
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;value - The attributeNames to add.public Rule.RemoveFacetAction.Builder addAllAttributeNames(Iterable<String> values)
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;values - The attributeNames to add.public Rule.RemoveFacetAction.Builder clearAttributeNames()
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;public Rule.RemoveFacetAction.Builder addAttributeNamesBytes(com.google.protobuf.ByteString value)
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can't be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
repeated string attribute_names = 1;value - The bytes of the attributeNames to add.public final Rule.RemoveFacetAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.Builder>public final Rule.RemoveFacetAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.RemoveFacetAction.Builder>Copyright © 2025 Google LLC. All rights reserved.