Class AnswerQueryRequest.SearchSpec.SearchParams
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams
- All Implemented Interfaces:
AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- AnswerQueryRequest.SearchSpec
public static final class AnswerQueryRequest.SearchSpec.SearchParams
extends com.google.protobuf.GeneratedMessage
implements AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
Search parameters.Protobuf type
google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSearch parameters.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanBoost specification to boost certain documents in search results which may affect the answer query response.Boost specification to boost certain documents in search results which may affect the answer query response.getDataStoreSpecs(int index) Specs defining dataStores to filter on in a search call and configurations for those dataStores.intSpecs defining dataStores to filter on in a search call and configurations for those dataStores.Specs defining dataStores to filter on in a search call and configurations for those dataStores.getDataStoreSpecsOrBuilder(int index) Specs defining dataStores to filter on in a search call and configurations for those dataStores.List<? extends SearchRequest.DataStoreSpecOrBuilder>Specs defining dataStores to filter on in a search call and configurations for those dataStores.static final com.google.protobuf.Descriptors.DescriptorThe filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered.com.google.protobuf.ByteStringThe filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered.intNumber of search results to return.Optional.Optional.The order in which documents are returned.com.google.protobuf.ByteStringThe order in which documents are returned.com.google.protobuf.Parser<AnswerQueryRequest.SearchSpec.SearchParams>Specifies the search result mode.intSpecifies the search result mode.intbooleanBoost specification to boost certain documents in search results which may affect the answer query response.inthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AnswerQueryRequest.SearchSpec.SearchParams>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MAX_RETURN_RESULTS_FIELD_NUMBER
public static final int MAX_RETURN_RESULTS_FIELD_NUMBER- See Also:
-
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER- See Also:
-
BOOST_SPEC_FIELD_NUMBER
public static final int BOOST_SPEC_FIELD_NUMBER- See Also:
-
ORDER_BY_FIELD_NUMBER
public static final int ORDER_BY_FIELD_NUMBER- See Also:
-
SEARCH_RESULT_MODE_FIELD_NUMBER
public static final int SEARCH_RESULT_MODE_FIELD_NUMBER- See Also:
-
DATA_STORE_SPECS_FIELD_NUMBER
public static final int DATA_STORE_SPECS_FIELD_NUMBER- See Also:
-
NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER
public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER- See Also:
-
-
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
-
getMaxReturnResults
public int getMaxReturnResults()Number of search results to return. The default value is 10.
int32 max_return_results = 1;- Specified by:
getMaxReturnResultsin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The maxReturnResults.
-
getFilter
The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. This will be used to filter search results which may affect the Answer response. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customers might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)string filter = 2;- Specified by:
getFilterin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. This will be used to filter search results which may affect the Answer response. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customers might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)string filter = 2;- Specified by:
getFilterBytesin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The bytes for filter.
-
hasBoostSpec
public boolean hasBoostSpec()Boost specification to boost certain documents in search results which may affect the answer query response. For more information on boosting, see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;- Specified by:
hasBoostSpecin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- Whether the boostSpec field is set.
-
getBoostSpec
Boost specification to boost certain documents in search results which may affect the answer query response. For more information on boosting, see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;- Specified by:
getBoostSpecin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The boostSpec.
-
getBoostSpecOrBuilder
Boost specification to boost certain documents in search results which may affect the answer query response. For more information on boosting, see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;- Specified by:
getBoostSpecOrBuilderin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
-
getOrderBy
The order in which documents are returned. Documents can be ordered by a field in an [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
string order_by = 4;- Specified by:
getOrderByin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The orderBy.
-
getOrderByBytes
public com.google.protobuf.ByteString getOrderByBytes()The order in which documents are returned. Documents can be ordered by a field in an [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
string order_by = 4;- Specified by:
getOrderByBytesin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The bytes for orderBy.
-
getSearchResultModeValue
public int getSearchResultModeValue()Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. See [parse and chunk documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;- Specified by:
getSearchResultModeValuein interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The enum numeric value on the wire for searchResultMode.
-
getSearchResultMode
Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. See [parse and chunk documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;- Specified by:
getSearchResultModein interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The searchResultMode.
-
getDataStoreSpecsList
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;- Specified by:
getDataStoreSpecsListin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
-
getDataStoreSpecsOrBuilderList
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;- Specified by:
getDataStoreSpecsOrBuilderListin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
-
getDataStoreSpecsCount
public int getDataStoreSpecsCount()Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;- Specified by:
getDataStoreSpecsCountin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
-
getDataStoreSpecs
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;- Specified by:
getDataStoreSpecsin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
-
getDataStoreSpecsOrBuilder
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;- Specified by:
getDataStoreSpecsOrBuilderin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
-
hasNaturalLanguageQueryUnderstandingSpec
public boolean hasNaturalLanguageQueryUnderstandingSpec()Optional. Specification to enable natural language understanding capabilities for search requests.
.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasNaturalLanguageQueryUnderstandingSpecin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- Whether the naturalLanguageQueryUnderstandingSpec field is set.
-
getNaturalLanguageQueryUnderstandingSpec
public SearchRequest.NaturalLanguageQueryUnderstandingSpec getNaturalLanguageQueryUnderstandingSpec()Optional. Specification to enable natural language understanding capabilities for search requests.
.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNaturalLanguageQueryUnderstandingSpecin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder- Returns:
- The naturalLanguageQueryUnderstandingSpec.
-
getNaturalLanguageQueryUnderstandingSpecOrBuilder
public SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilder getNaturalLanguageQueryUnderstandingSpecOrBuilder()Optional. Specification to enable natural language understanding capabilities for search requests.
.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNaturalLanguageQueryUnderstandingSpecOrBuilderin interfaceAnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AnswerQueryRequest.SearchSpec.SearchParams parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static AnswerQueryRequest.SearchSpec.SearchParams.Builder newBuilder(AnswerQueryRequest.SearchSpec.SearchParams prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnswerQueryRequest.SearchSpec.SearchParams.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-