Interface SearchRequest.ContentSearchSpecOrBuilder (0.18.0)

public static interface SearchRequest.ContentSearchSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSnippetSpec()

public abstract SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec()

If there is no snippet spec provided, there will be no snippet in the search result.

.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;

Returns
TypeDescription
SearchRequest.ContentSearchSpec.SnippetSpec

The snippetSpec.

getSnippetSpecOrBuilder()

public abstract SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder()

If there is no snippet spec provided, there will be no snippet in the search result.

.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;

Returns
TypeDescription
SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder

hasSnippetSpec()

public abstract boolean hasSnippetSpec()

If there is no snippet spec provided, there will be no snippet in the search result.

.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;

Returns
TypeDescription
boolean

Whether the snippetSpec field is set.