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 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

       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

       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

       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

       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

       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

       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

       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

       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

       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;