Package com.google.cloud.retail.v2alpha
Class Rule.ForceReturnFacetAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Rule.ForceReturnFacetAction.Builder>
com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.Builder
- All Implemented Interfaces:
Rule.ForceReturnFacetActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Rule.ForceReturnFacetAction
public static final class Rule.ForceReturnFacetAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Rule.ForceReturnFacetAction.Builder>
implements Rule.ForceReturnFacetActionOrBuilder
Force returns an attribute/facet in the request around a certain position or above. * 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 Inputs: attribute name, position * Action Result: Will force return a facet key around a certain position or above if the condition is satisfied. Example: Suppose the query is "shoes", the [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] is "shoes", the [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name] is "size" and the [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position] is 8. Two cases: a) The facet key "size" is not already in the top 8 slots, then the facet "size" will appear at a position close to 8. b) The facet key "size" in among the top 8 positions in the request, then it will stay at its current rank.Protobuf type
google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllFacetPositionAdjustments(Iterable<? extends Rule.ForceReturnFacetAction.FacetPositionAdjustment> values) Each instance corresponds to a force return attribute for the given condition.Each instance corresponds to a force return attribute for the given condition.addFacetPositionAdjustments(int index, Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder builderForValue) Each instance corresponds to a force return attribute for the given condition.Each instance corresponds to a force return attribute for the given condition.addFacetPositionAdjustments(Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder builderForValue) Each instance corresponds to a force return attribute for the given condition.Each instance corresponds to a force return attribute for the given condition.addFacetPositionAdjustmentsBuilder(int index) Each instance corresponds to a force return attribute for the given condition.build()clear()Each instance corresponds to a force return attribute for the given condition.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFacetPositionAdjustments(int index) Each instance corresponds to a force return attribute for the given condition.getFacetPositionAdjustmentsBuilder(int index) Each instance corresponds to a force return attribute for the given condition.Each instance corresponds to a force return attribute for the given condition.intEach instance corresponds to a force return attribute for the given condition.Each instance corresponds to a force return attribute for the given condition.getFacetPositionAdjustmentsOrBuilder(int index) Each instance corresponds to a force return attribute for the given condition.Each instance corresponds to a force return attribute for the given condition.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeFacetPositionAdjustments(int index) Each instance corresponds to a force return attribute for the given condition.Each instance corresponds to a force return attribute for the given condition.setFacetPositionAdjustments(int index, Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder builderForValue) Each instance corresponds to a force return attribute for the given condition.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.ForceReturnFacetAction.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.ForceReturnFacetAction.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.ForceReturnFacetAction.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.ForceReturnFacetAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Rule.ForceReturnFacetAction.Builder>
-
mergeFrom
public Rule.ForceReturnFacetAction.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.ForceReturnFacetAction.Builder>- Throws:
IOException
-
getFacetPositionAdjustmentsList
Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1;- Specified by:
getFacetPositionAdjustmentsListin interfaceRule.ForceReturnFacetActionOrBuilder
-
getFacetPositionAdjustmentsCount
public int getFacetPositionAdjustmentsCount()Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1;- Specified by:
getFacetPositionAdjustmentsCountin interfaceRule.ForceReturnFacetActionOrBuilder
-
getFacetPositionAdjustments
Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1;- Specified by:
getFacetPositionAdjustmentsin interfaceRule.ForceReturnFacetActionOrBuilder
-
setFacetPositionAdjustments
public Rule.ForceReturnFacetAction.Builder setFacetPositionAdjustments(int index, Rule.ForceReturnFacetAction.FacetPositionAdjustment value) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
setFacetPositionAdjustments
public Rule.ForceReturnFacetAction.Builder setFacetPositionAdjustments(int index, Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder builderForValue) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
addFacetPositionAdjustments
public Rule.ForceReturnFacetAction.Builder addFacetPositionAdjustments(Rule.ForceReturnFacetAction.FacetPositionAdjustment value) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
addFacetPositionAdjustments
public Rule.ForceReturnFacetAction.Builder addFacetPositionAdjustments(int index, Rule.ForceReturnFacetAction.FacetPositionAdjustment value) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
addFacetPositionAdjustments
public Rule.ForceReturnFacetAction.Builder addFacetPositionAdjustments(Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder builderForValue) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
addFacetPositionAdjustments
public Rule.ForceReturnFacetAction.Builder addFacetPositionAdjustments(int index, Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder builderForValue) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
addAllFacetPositionAdjustments
public Rule.ForceReturnFacetAction.Builder addAllFacetPositionAdjustments(Iterable<? extends Rule.ForceReturnFacetAction.FacetPositionAdjustment> values) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
clearFacetPositionAdjustments
Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
removeFacetPositionAdjustments
Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
getFacetPositionAdjustmentsBuilder
public Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder getFacetPositionAdjustmentsBuilder(int index) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
getFacetPositionAdjustmentsOrBuilder
public Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder getFacetPositionAdjustmentsOrBuilder(int index) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1;- Specified by:
getFacetPositionAdjustmentsOrBuilderin interfaceRule.ForceReturnFacetActionOrBuilder
-
getFacetPositionAdjustmentsOrBuilderList
public List<? extends Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder> getFacetPositionAdjustmentsOrBuilderList()Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1;- Specified by:
getFacetPositionAdjustmentsOrBuilderListin interfaceRule.ForceReturnFacetActionOrBuilder
-
addFacetPositionAdjustmentsBuilder
public Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder addFacetPositionAdjustmentsBuilder()Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
addFacetPositionAdjustmentsBuilder
public Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder addFacetPositionAdjustmentsBuilder(int index) Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; -
getFacetPositionAdjustmentsBuilderList
public List<Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder> getFacetPositionAdjustmentsBuilderList()Each instance corresponds to a force return attribute for the given condition. There can't be more 15 instances here.
repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1;
-