public static final class Rule.RemoveFacetAction.Builder extends 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
(for search only) or
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 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllAttributeNames(Iterable<String> values)
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;
Parameter |
Name |
Description |
values |
Iterable<String>
The attributeNames to add.
|
addAttributeNames(String value)
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;
Parameter |
Name |
Description |
value |
String
The attributeNames to add.
|
addAttributeNamesBytes(ByteString value)
public Rule.RemoveFacetAction.Builder addAttributeNamesBytes(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;
Parameter |
Name |
Description |
value |
ByteString
The bytes of the attributeNames to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Rule.RemoveFacetAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Rule.RemoveFacetAction build()
buildPartial()
public Rule.RemoveFacetAction buildPartial()
clear()
public Rule.RemoveFacetAction.Builder clear()
Overrides
clearAttributeNames()
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;
clearField(Descriptors.FieldDescriptor field)
public Rule.RemoveFacetAction.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Rule.RemoveFacetAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Rule.RemoveFacetAction.Builder clone()
Overrides
getAttributeNames(int index)
public 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;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The attributeNames at the given index.
|
getAttributeNamesBytes(int index)
public 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;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the attributeNames at the given index.
|
getAttributeNamesCount()
public 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;
Returns |
Type |
Description |
int |
The count of attributeNames.
|
getAttributeNamesList()
public 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;
getDefaultInstanceForType()
public Rule.RemoveFacetAction getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Rule.RemoveFacetAction other)
public Rule.RemoveFacetAction.Builder mergeFrom(Rule.RemoveFacetAction other)
public Rule.RemoveFacetAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Rule.RemoveFacetAction.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Rule.RemoveFacetAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAttributeNames(int index, String value)
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;
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
String
The attributeNames to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Rule.RemoveFacetAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Rule.RemoveFacetAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Rule.RemoveFacetAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides