public sealed class SampleQueryServiceClientImpl : SampleQueryServiceClient
Reference documentation and code samples for the Discovery Engine v1beta API class SampleQueryServiceClientImpl.
SampleQueryService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Remarks
Service for managing [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s,
Constructors
SampleQueryServiceClientImpl(SampleQueryServiceClient, SampleQueryServiceSettings, ILogger)
public SampleQueryServiceClientImpl(SampleQueryService.SampleQueryServiceClient grpcClient, SampleQueryServiceSettings settings, ILogger logger)
Constructs a client wrapper for the SampleQueryService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
SampleQueryServiceSampleQueryServiceClient The underlying gRPC client. |
settings |
SampleQueryServiceSettings The base SampleQueryServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override SampleQueryService.SampleQueryServiceClient GrpcClient { get; }
The underlying gRPC SampleQueryService client
Property Value | |
---|---|
Type | Description |
SampleQueryServiceSampleQueryServiceClient |
ImportSampleQueriesOperationsClient
public override OperationsClient ImportSampleQueriesOperationsClient { get; }
The long-running operations client for ImportSampleQueries
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
CreateSampleQuery(CreateSampleQueryRequest, CallSettings)
public override SampleQuery CreateSampleQuery(CreateSampleQueryRequest request, CallSettings callSettings = null)
Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
Parameters | |
---|---|
Name | Description |
request |
CreateSampleQueryRequest 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 |
SampleQuery |
The RPC response. |
CreateSampleQueryAsync(CreateSampleQueryRequest, CallSettings)
public override Task<SampleQuery> CreateSampleQueryAsync(CreateSampleQueryRequest request, CallSettings callSettings = null)
Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]
Parameters | |
---|---|
Name | Description |
request |
CreateSampleQueryRequest 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 |
TaskSampleQuery |
A Task containing the RPC response. |
DeleteSampleQuery(DeleteSampleQueryRequest, CallSettings)
public override void DeleteSampleQuery(DeleteSampleQueryRequest request, CallSettings callSettings = null)
Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
Parameters | |
---|---|
Name | Description |
request |
DeleteSampleQueryRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
DeleteSampleQueryAsync(DeleteSampleQueryRequest, CallSettings)
public override Task DeleteSampleQueryAsync(DeleteSampleQueryRequest request, CallSettings callSettings = null)
Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
Parameters | |
---|---|
Name | Description |
request |
DeleteSampleQueryRequest 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 |
Task |
A Task containing the RPC response. |
GetSampleQuery(GetSampleQueryRequest, CallSettings)
public override SampleQuery GetSampleQuery(GetSampleQueryRequest request, CallSettings callSettings = null)
Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
Parameters | |
---|---|
Name | Description |
request |
GetSampleQueryRequest 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 |
SampleQuery |
The RPC response. |
GetSampleQueryAsync(GetSampleQueryRequest, CallSettings)
public override Task<SampleQuery> GetSampleQueryAsync(GetSampleQueryRequest request, CallSettings callSettings = null)
Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
Parameters | |
---|---|
Name | Description |
request |
GetSampleQueryRequest 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 |
TaskSampleQuery |
A Task containing the RPC response. |
ImportSampleQueries(ImportSampleQueriesRequest, CallSettings)
public override Operation<ImportSampleQueriesResponse, ImportSampleQueriesMetadata> ImportSampleQueries(ImportSampleQueriesRequest request, CallSettings callSettings = null)
Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample queries that already exist may be deleted.
Note: It is possible for a subset of the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be successfully imported.
Parameters | |
---|---|
Name | Description |
request |
ImportSampleQueriesRequest 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 |
OperationImportSampleQueriesResponseImportSampleQueriesMetadata |
The RPC response. |
ImportSampleQueriesAsync(ImportSampleQueriesRequest, CallSettings)
public override Task<Operation<ImportSampleQueriesResponse, ImportSampleQueriesMetadata>> ImportSampleQueriesAsync(ImportSampleQueriesRequest request, CallSettings callSettings = null)
Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample queries that already exist may be deleted.
Note: It is possible for a subset of the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be successfully imported.
Parameters | |
---|---|
Name | Description |
request |
ImportSampleQueriesRequest 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 |
TaskOperationImportSampleQueriesResponseImportSampleQueriesMetadata |
A Task containing the RPC response. |
ListSampleQueries(ListSampleQueriesRequest, CallSettings)
public override PagedEnumerable<ListSampleQueriesResponse, SampleQuery> ListSampleQueries(ListSampleQueriesRequest request, CallSettings callSettings = null)
Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
Parameters | |
---|---|
Name | Description |
request |
ListSampleQueriesRequest 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 |
PagedEnumerableListSampleQueriesResponseSampleQuery |
A pageable sequence of SampleQuery resources. |
ListSampleQueriesAsync(ListSampleQueriesRequest, CallSettings)
public override PagedAsyncEnumerable<ListSampleQueriesResponse, SampleQuery> ListSampleQueriesAsync(ListSampleQueriesRequest request, CallSettings callSettings = null)
Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
Parameters | |
---|---|
Name | Description |
request |
ListSampleQueriesRequest 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 |
PagedAsyncEnumerableListSampleQueriesResponseSampleQuery |
A pageable asynchronous sequence of SampleQuery resources. |
UpdateSampleQuery(UpdateSampleQueryRequest, CallSettings)
public override SampleQuery UpdateSampleQuery(UpdateSampleQueryRequest request, CallSettings callSettings = null)
Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
Parameters | |
---|---|
Name | Description |
request |
UpdateSampleQueryRequest 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 |
SampleQuery |
The RPC response. |
UpdateSampleQueryAsync(UpdateSampleQueryRequest, CallSettings)
public override Task<SampleQuery> UpdateSampleQueryAsync(UpdateSampleQueryRequest request, CallSettings callSettings = null)
Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
Parameters | |
---|---|
Name | Description |
request |
UpdateSampleQueryRequest 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 |
TaskSampleQuery |
A Task containing the RPC response. |