public sealed class SearchServiceClientImpl : SearchServiceClient
Reference documentation and code samples for the Discovery Engine v1beta API class SearchServiceClientImpl.
SearchService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Remarks
Service for search.
Constructors
SearchServiceClientImpl(SearchServiceClient, SearchServiceSettings, ILogger)
public SearchServiceClientImpl(SearchService.SearchServiceClient grpcClient, SearchServiceSettings settings, ILogger logger)
Constructs a client wrapper for the SearchService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
SearchServiceSearchServiceClient The underlying gRPC client. |
settings |
SearchServiceSettings The base SearchServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override SearchService.SearchServiceClient GrpcClient { get; }
The underlying gRPC SearchService client
Property Value | |
---|---|
Type | Description |
SearchServiceSearchServiceClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
Search(SearchRequest, CallSettings)
public override PagedEnumerable<SearchResponse, SearchResponse.Types.SearchResult> Search(SearchRequest request, CallSettings callSettings = null)
Performs a search.
Parameters | |
---|---|
Name | Description |
request |
SearchRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableSearchResponseSearchResponseTypesSearchResult |
A pageable sequence of SearchResponse.Types.SearchResult resources. |
SearchAsync(SearchRequest, CallSettings)
public override PagedAsyncEnumerable<SearchResponse, SearchResponse.Types.SearchResult> SearchAsync(SearchRequest request, CallSettings callSettings = null)
Performs a search.
Parameters | |
---|---|
Name | Description |
request |
SearchRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableSearchResponseSearchResponseTypesSearchResult |
A pageable asynchronous sequence of SearchResponse.Types.SearchResult resources. |
SearchLite(SearchRequest, CallSettings)
public override PagedEnumerable<SearchResponse, SearchResponse.Types.SearchResult> SearchLite(SearchRequest request, CallSettings callSettings = null)
Performs a search. Similar to the [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required.
Only public website search is supported by this method. If data stores and
engines not associated with public website search are specified, a
FAILED_PRECONDITION
error is returned.
This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] instead with required OAuth and IAM checks to provide better data security.
Parameters | |
---|---|
Name | Description |
request |
SearchRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableSearchResponseSearchResponseTypesSearchResult |
A pageable sequence of SearchResponse.Types.SearchResult resources. |
SearchLiteAsync(SearchRequest, CallSettings)
public override PagedAsyncEnumerable<SearchResponse, SearchResponse.Types.SearchResult> SearchLiteAsync(SearchRequest request, CallSettings callSettings = null)
Performs a search. Similar to the [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required.
Only public website search is supported by this method. If data stores and
engines not associated with public website search are specified, a
FAILED_PRECONDITION
error is returned.
This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] instead with required OAuth and IAM checks to provide better data security.
Parameters | |
---|---|
Name | Description |
request |
SearchRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableSearchResponseSearchResponseTypesSearchResult |
A pageable asynchronous sequence of SearchResponse.Types.SearchResult resources. |