Interface SearchRequest.ContentSearchSpecOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchRequest.ContentSearchSpec,SearchRequest.ContentSearchSpec.Builder
- Enclosing class:
- SearchRequest
public static interface SearchRequest.ContentSearchSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the chunk spec to be returned from the search response.Specifies the chunk spec to be returned from the search response.If there is no extractive_content_spec provided, there will be no extractive answer in the search response.If there is no extractive_content_spec provided, there will be no extractive answer in the search response.Specifies the search result mode.intSpecifies the search result mode.If `snippetSpec` is not specified, snippets are not included in the search response.If `snippetSpec` is not specified, snippets are not included in the search response.If `summarySpec` is not specified, summaries are not included in the search response.If `summarySpec` is not specified, summaries are not included in the search response.booleanSpecifies the chunk spec to be returned from the search response.booleanIf there is no extractive_content_spec provided, there will be no extractive answer in the search response.booleanIf `snippetSpec` is not specified, snippets are not included in the search response.booleanIf `summarySpec` is not specified, summaries are not included in the search response.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasSnippetSpec
boolean hasSnippetSpec()If `snippetSpec` is not specified, snippets are not included in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;- Returns:
- Whether the snippetSpec field is set.
-
getSnippetSpec
SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec()If `snippetSpec` is not specified, snippets are not included in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;- Returns:
- The snippetSpec.
-
getSnippetSpecOrBuilder
SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder()If `snippetSpec` is not specified, snippets are not included in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; -
hasSummarySpec
boolean hasSummarySpec()If `summarySpec` is not specified, summaries are not included in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;- Returns:
- Whether the summarySpec field is set.
-
getSummarySpec
SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec()If `summarySpec` is not specified, summaries are not included in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;- Returns:
- The summarySpec.
-
getSummarySpecOrBuilder
SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder()If `summarySpec` is not specified, summaries are not included in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; -
hasExtractiveContentSpec
boolean hasExtractiveContentSpec()If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;- Returns:
- Whether the extractiveContentSpec field is set.
-
getExtractiveContentSpec
SearchRequest.ContentSearchSpec.ExtractiveContentSpec getExtractiveContentSpec()If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;- Returns:
- The extractiveContentSpec.
-
getExtractiveContentSpecOrBuilder
SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder()If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; -
getSearchResultModeValue
int getSearchResultModeValue()Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4;- Returns:
- The enum numeric value on the wire for searchResultMode.
-
getSearchResultMode
SearchRequest.ContentSearchSpec.SearchResultMode getSearchResultMode()Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4;- Returns:
- The searchResultMode.
-
hasChunkSpec
boolean hasChunkSpec()Specifies the chunk spec to be returned from the search response. Only available if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5;- Returns:
- Whether the chunkSpec field is set.
-
getChunkSpec
SearchRequest.ContentSearchSpec.ChunkSpec getChunkSpec()Specifies the chunk spec to be returned from the search response. Only available if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5;- Returns:
- The chunkSpec.
-
getChunkSpecOrBuilder
SearchRequest.ContentSearchSpec.ChunkSpecOrBuilder getChunkSpecOrBuilder()Specifies the chunk spec to be returned from the search response. Only available if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5;
-