Package com.google.cloud.retail.v2beta
Class SearchRequest.BoostSpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.Builder>
-
- com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.Builder
-
- All Implemented Interfaces:
SearchRequest.BoostSpecOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SearchRequest.BoostSpec
public static final class SearchRequest.BoostSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.Builder> implements SearchRequest.BoostSpecOrBuilder
Boost specification to boost certain items.
Protobuf typegoogle.cloud.retail.v2beta.SearchRequest.BoostSpec
-
-
Method Summary
-
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<SearchRequest.BoostSpec.Builder>
-
clear
public SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.Builder>
-
getDefaultInstanceForType
public SearchRequest.BoostSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchRequest.BoostSpec build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchRequest.BoostSpec buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.Builder>
-
setField
public SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.Builder>
-
clearField
public SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.Builder>
-
clearOneof
public SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.Builder>
-
setRepeatedField
public SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.Builder>
-
addRepeatedField
public SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.Builder>
-
mergeFrom
public SearchRequest.BoostSpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SearchRequest.BoostSpec.Builder>
-
mergeFrom
public SearchRequest.BoostSpec.Builder mergeFrom(SearchRequest.BoostSpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.Builder>
-
mergeFrom
public SearchRequest.BoostSpec.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<SearchRequest.BoostSpec.Builder>
- Throws:
IOException
-
getConditionBoostSpecsList
public List<SearchRequest.BoostSpec.ConditionBoostSpec> getConditionBoostSpecsList()
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
- Specified by:
getConditionBoostSpecsList
in interfaceSearchRequest.BoostSpecOrBuilder
-
getConditionBoostSpecsCount
public int getConditionBoostSpecsCount()
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
- Specified by:
getConditionBoostSpecsCount
in interfaceSearchRequest.BoostSpecOrBuilder
-
getConditionBoostSpecs
public SearchRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
- Specified by:
getConditionBoostSpecs
in interfaceSearchRequest.BoostSpecOrBuilder
-
setConditionBoostSpecs
public SearchRequest.BoostSpec.Builder setConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
setConditionBoostSpecs
public SearchRequest.BoostSpec.Builder setConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
addConditionBoostSpecs
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
addConditionBoostSpecs
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec value)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
addConditionBoostSpecs
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
addConditionBoostSpecs
public SearchRequest.BoostSpec.Builder addConditionBoostSpecs(int index, SearchRequest.BoostSpec.ConditionBoostSpec.Builder builderForValue)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
addAllConditionBoostSpecs
public SearchRequest.BoostSpec.Builder addAllConditionBoostSpecs(Iterable<? extends SearchRequest.BoostSpec.ConditionBoostSpec> values)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
clearConditionBoostSpecs
public SearchRequest.BoostSpec.Builder clearConditionBoostSpecs()
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
removeConditionBoostSpecs
public SearchRequest.BoostSpec.Builder removeConditionBoostSpecs(int index)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
getConditionBoostSpecsBuilder
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder(int index)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
getConditionBoostSpecsOrBuilder
public SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder(int index)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
- Specified by:
getConditionBoostSpecsOrBuilder
in interfaceSearchRequest.BoostSpecOrBuilder
-
getConditionBoostSpecsOrBuilderList
public List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsOrBuilderList()
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
- Specified by:
getConditionBoostSpecsOrBuilderList
in interfaceSearchRequest.BoostSpecOrBuilder
-
addConditionBoostSpecsBuilder
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder()
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
addConditionBoostSpecsBuilder
public SearchRequest.BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder(int index)
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
getConditionBoostSpecsBuilderList
public List<SearchRequest.BoostSpec.ConditionBoostSpec.Builder> getConditionBoostSpecsBuilderList()
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
-
hasSkipBoostSpecValidation
public boolean hasSkipBoostSpecValidation()
Whether to skip boostspec validation. If this field is set to true, invalid [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] will be ignored and valid [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] will still be applied.
optional bool skip_boost_spec_validation = 2;
- Specified by:
hasSkipBoostSpecValidation
in interfaceSearchRequest.BoostSpecOrBuilder
- Returns:
- Whether the skipBoostSpecValidation field is set.
-
getSkipBoostSpecValidation
public boolean getSkipBoostSpecValidation()
Whether to skip boostspec validation. If this field is set to true, invalid [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] will be ignored and valid [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] will still be applied.
optional bool skip_boost_spec_validation = 2;
- Specified by:
getSkipBoostSpecValidation
in interfaceSearchRequest.BoostSpecOrBuilder
- Returns:
- The skipBoostSpecValidation.
-
setSkipBoostSpecValidation
public SearchRequest.BoostSpec.Builder setSkipBoostSpecValidation(boolean value)
Whether to skip boostspec validation. If this field is set to true, invalid [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] will be ignored and valid [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] will still be applied.
optional bool skip_boost_spec_validation = 2;
- Parameters:
value
- The skipBoostSpecValidation to set.- Returns:
- This builder for chaining.
-
clearSkipBoostSpecValidation
public SearchRequest.BoostSpec.Builder clearSkipBoostSpecValidation()
Whether to skip boostspec validation. If this field is set to true, invalid [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] will be ignored and valid [BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] will still be applied.
optional bool skip_boost_spec_validation = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final SearchRequest.BoostSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.Builder>
-
mergeUnknownFields
public final SearchRequest.BoostSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.Builder>
-
-