Package com.google.cloud.retail.v2alpha
Class Rule.RemoveFacetAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Rule.RemoveFacetAction.Builder>
com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.Builder
- All Implemented Interfaces:
Rule.RemoveFacetActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Rule.RemoveFacetAction
public static final class Rule.RemoveFacetAction.Builder
extends com.google.protobuf.GeneratedMessage.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.v2alpha.Condition.query_terms] (for search only) or [Condition.page_categories][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.Rule.RemoveFacetAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributeNames(Iterable<String> values) The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).addAttributeNames(String value) The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).addAttributeNamesBytes(com.google.protobuf.ByteString value) The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).build()clear()The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).getAttributeNames(int index) The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).com.google.protobuf.ByteStringgetAttributeNamesBytes(int index) The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).intThe attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).com.google.protobuf.ProtocolStringListThe attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Rule.RemoveFacetAction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAttributeNames(int index, String value) The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request).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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Rule.RemoveFacetAction.Builder>
-
mergeFrom
public Rule.RemoveFacetAction.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<Rule.RemoveFacetAction.Builder>- Throws:
IOException
-
getAttributeNamesList
public 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;- Specified by:
getAttributeNamesListin interfaceRule.RemoveFacetActionOrBuilder- Returns:
- A list containing the attributeNames.
-
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;- Specified by:
getAttributeNamesCountin interfaceRule.RemoveFacetActionOrBuilder- Returns:
- The count of attributeNames.
-
getAttributeNames
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;- Specified by:
getAttributeNamesin interfaceRule.RemoveFacetActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The attributeNames at the given index.
-
getAttributeNamesBytes
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;- Specified by:
getAttributeNamesBytesin interfaceRule.RemoveFacetActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the attributeNames at the given index.
-
setAttributeNames
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:
index- The index to set the value at.value- The attributeNames to set.- Returns:
- This builder for chaining.
-
addAttributeNames
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:
value- The attributeNames to add.- Returns:
- This builder for chaining.
-
addAllAttributeNames
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:
values- The attributeNames to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addAttributeNamesBytes
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:
value- The bytes of the attributeNames to add.- Returns:
- This builder for chaining.
-