public static final class SearchRequest.BoostSpec extends com.google.protobuf.GeneratedMessageV3 implements SearchRequest.BoostSpecOrBuilder
Boost specification to boost certain items.Protobuf type
google.cloud.retail.v2.SearchRequest.BoostSpec| Modifier and Type | Class and Description |
|---|---|
static class |
SearchRequest.BoostSpec.Builder
Boost specification to boost certain items.
|
static class |
SearchRequest.BoostSpec.ConditionBoostSpec
Boost applies to products which match a condition.
|
static interface |
SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONDITION_BOOST_SPECS_FIELD_NUMBER |
static int |
SKIP_BOOST_SPEC_VALIDATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SearchRequest.BoostSpec.ConditionBoostSpec |
getConditionBoostSpecs(int index)
Condition boost specifications.
|
int |
getConditionBoostSpecsCount()
Condition boost specifications.
|
List<SearchRequest.BoostSpec.ConditionBoostSpec> |
getConditionBoostSpecsList()
Condition boost specifications.
|
SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder |
getConditionBoostSpecsOrBuilder(int index)
Condition boost specifications.
|
List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> |
getConditionBoostSpecsOrBuilderList()
Condition boost specifications.
|
static SearchRequest.BoostSpec |
getDefaultInstance() |
SearchRequest.BoostSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<SearchRequest.BoostSpec> |
getParserForType() |
int |
getSerializedSize() |
boolean |
getSkipBoostSpecValidation()
Whether to skip boostspec validation.
|
int |
hashCode() |
boolean |
hasSkipBoostSpecValidation()
Whether to skip boostspec validation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchRequest.BoostSpec.Builder |
newBuilder() |
static SearchRequest.BoostSpec.Builder |
newBuilder(SearchRequest.BoostSpec prototype) |
SearchRequest.BoostSpec.Builder |
newBuilderForType() |
protected SearchRequest.BoostSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SearchRequest.BoostSpec |
parseDelimitedFrom(InputStream input) |
static SearchRequest.BoostSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.BoostSpec |
parseFrom(byte[] data) |
static SearchRequest.BoostSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.BoostSpec |
parseFrom(ByteBuffer data) |
static SearchRequest.BoostSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.BoostSpec |
parseFrom(com.google.protobuf.ByteString data) |
static SearchRequest.BoostSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.BoostSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchRequest.BoostSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.BoostSpec |
parseFrom(InputStream input) |
static SearchRequest.BoostSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchRequest.BoostSpec> |
parser() |
SearchRequest.BoostSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CONDITION_BOOST_SPECS_FIELD_NUMBER
public static final int SKIP_BOOST_SPEC_VALIDATION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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.v2.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
getConditionBoostSpecsList in interface SearchRequest.BoostSpecOrBuilderpublic 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.v2.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
getConditionBoostSpecsOrBuilderList in interface SearchRequest.BoostSpecOrBuilderpublic 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.v2.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
getConditionBoostSpecsCount in interface SearchRequest.BoostSpecOrBuilderpublic 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.v2.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
getConditionBoostSpecs in interface SearchRequest.BoostSpecOrBuilderpublic 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.v2.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
getConditionBoostSpecsOrBuilder in interface SearchRequest.BoostSpecOrBuilderpublic boolean hasSkipBoostSpecValidation()
Whether to skip boostspec validation. If this field is set to true, invalid [BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] will be ignored and valid [BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] will still be applied.
optional bool skip_boost_spec_validation = 2;hasSkipBoostSpecValidation in interface SearchRequest.BoostSpecOrBuilderpublic boolean getSkipBoostSpecValidation()
Whether to skip boostspec validation. If this field is set to true, invalid [BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] will be ignored and valid [BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] will still be applied.
optional bool skip_boost_spec_validation = 2;getSkipBoostSpecValidation in interface SearchRequest.BoostSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SearchRequest.BoostSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchRequest.BoostSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchRequest.BoostSpec.Builder newBuilder()
public static SearchRequest.BoostSpec.Builder newBuilder(SearchRequest.BoostSpec prototype)
public SearchRequest.BoostSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchRequest.BoostSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchRequest.BoostSpec getDefaultInstance()
public static com.google.protobuf.Parser<SearchRequest.BoostSpec> parser()
public com.google.protobuf.Parser<SearchRequest.BoostSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchRequest.BoostSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.