public sealed class DataStoreServiceClientImpl : DataStoreServiceClientReference documentation and code samples for the Discovery Engine v1 API class DataStoreServiceClientImpl.
DataStoreService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Remarks
Service for managing [DataStore][google.cloud.discoveryengine.v1.DataStore] configuration.
Constructors
DataStoreServiceClientImpl(DataStoreServiceClient, DataStoreServiceSettings, ILogger)
public DataStoreServiceClientImpl(DataStoreService.DataStoreServiceClient grpcClient, DataStoreServiceSettings settings, ILogger logger)Constructs a client wrapper for the DataStoreService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
DataStoreServiceDataStoreServiceClientThe underlying gRPC client. |
settings |
DataStoreServiceSettingsThe base DataStoreServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
CreateDataStoreOperationsClient
public override OperationsClient CreateDataStoreOperationsClient { get; }The long-running operations client for CreateDataStore.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteDataStoreOperationsClient
public override OperationsClient DeleteDataStoreOperationsClient { get; }The long-running operations client for DeleteDataStore.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override DataStoreService.DataStoreServiceClient GrpcClient { get; }The underlying gRPC DataStoreService client
| Property Value | |
|---|---|
| Type | Description |
DataStoreServiceDataStoreServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CreateDataStore(CreateDataStoreRequest, CallSettings)
public override Operation<DataStore, CreateDataStoreMetadata> CreateDataStore(CreateDataStoreRequest request, CallSettings callSettings = null)Creates a [DataStore][google.cloud.discoveryengine.v1.DataStore].
DataStore is for storing [Documents][google.cloud.discoveryengine.v1.Document]. To serve these documents for Search, or Recommendation use case, an [Engine][google.cloud.discoveryengine.v1.Engine] needs to be created separately.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDataStoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataStoreCreateDataStoreMetadata |
The RPC response. |
CreateDataStoreAsync(CreateDataStoreRequest, CallSettings)
public override Task<Operation<DataStore, CreateDataStoreMetadata>> CreateDataStoreAsync(CreateDataStoreRequest request, CallSettings callSettings = null)Creates a [DataStore][google.cloud.discoveryengine.v1.DataStore].
DataStore is for storing [Documents][google.cloud.discoveryengine.v1.Document]. To serve these documents for Search, or Recommendation use case, an [Engine][google.cloud.discoveryengine.v1.Engine] needs to be created separately.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDataStoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataStoreCreateDataStoreMetadata |
A Task containing the RPC response. |
DeleteDataStore(DeleteDataStoreRequest, CallSettings)
public override Operation<Empty, DeleteDataStoreMetadata> DeleteDataStore(DeleteDataStoreRequest request, CallSettings callSettings = null)Deletes a [DataStore][google.cloud.discoveryengine.v1.DataStore].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDataStoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteDataStoreMetadata |
The RPC response. |
DeleteDataStoreAsync(DeleteDataStoreRequest, CallSettings)
public override Task<Operation<Empty, DeleteDataStoreMetadata>> DeleteDataStoreAsync(DeleteDataStoreRequest request, CallSettings callSettings = null)Deletes a [DataStore][google.cloud.discoveryengine.v1.DataStore].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDataStoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteDataStoreMetadata |
A Task containing the RPC response. |
GetDataStore(GetDataStoreRequest, CallSettings)
public override DataStore GetDataStore(GetDataStoreRequest request, CallSettings callSettings = null)Gets a [DataStore][google.cloud.discoveryengine.v1.DataStore].
| Parameters | |
|---|---|
| Name | Description |
request |
GetDataStoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataStore |
The RPC response. |
GetDataStoreAsync(GetDataStoreRequest, CallSettings)
public override Task<DataStore> GetDataStoreAsync(GetDataStoreRequest request, CallSettings callSettings = null)Gets a [DataStore][google.cloud.discoveryengine.v1.DataStore].
| Parameters | |
|---|---|
| Name | Description |
request |
GetDataStoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataStore |
A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)Gets the IAM access control policy for a
[DataStore][google.cloud.discoveryengine.v1.DataStore]. A NOT_FOUND error
is returned if the resource does not exist. An empty policy is returned if
the resource exists but does not have a policy set on it.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)Gets the IAM access control policy for a
[DataStore][google.cloud.discoveryengine.v1.DataStore]. A NOT_FOUND error
is returned if the resource does not exist. An empty policy is returned if
the resource exists but does not have a policy set on it.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
ListDataStores(ListDataStoresRequest, CallSettings)
public override PagedEnumerable<ListDataStoresResponse, DataStore> ListDataStores(ListDataStoresRequest request, CallSettings callSettings = null)Lists all the [DataStore][google.cloud.discoveryengine.v1.DataStore]s associated with the project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDataStoresRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDataStoresResponseDataStore |
A pageable sequence of DataStore resources. |
ListDataStoresAsync(ListDataStoresRequest, CallSettings)
public override PagedAsyncEnumerable<ListDataStoresResponse, DataStore> ListDataStoresAsync(ListDataStoresRequest request, CallSettings callSettings = null)Lists all the [DataStore][google.cloud.discoveryengine.v1.DataStore]s associated with the project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDataStoresRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDataStoresResponseDataStore |
A pageable asynchronous sequence of DataStore resources. |
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM access control policy for a
[DataStore][google.cloud.discoveryengine.v1.DataStore]. A NOT_FOUND error
is returned if the resource does not exist.
Important: When setting a policy directly on a DataStore resource,
the only recommended roles in the bindings are:
roles/discoveryengine.admin
roles/discoveryengine.agentspaceAdmin
roles/discoveryengine.viewer
roles/discoveryengine.agentspaceViewer
roles/discoveryengine.user
roles/discoveryengine.agentspaceUser
Attempting to grant any other role will result in a warning in logging.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM access control policy for a
[DataStore][google.cloud.discoveryengine.v1.DataStore]. A NOT_FOUND error
is returned if the resource does not exist.
Important: When setting a policy directly on a DataStore resource,
the only recommended roles in the bindings are:
roles/discoveryengine.admin
roles/discoveryengine.agentspaceAdmin
roles/discoveryengine.viewer
roles/discoveryengine.agentspaceViewer
roles/discoveryengine.user
roles/discoveryengine.agentspaceUser
Attempting to grant any other role will result in a warning in logging.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
UpdateDataStore(UpdateDataStoreRequest, CallSettings)
public override DataStore UpdateDataStore(UpdateDataStoreRequest request, CallSettings callSettings = null)Updates a [DataStore][google.cloud.discoveryengine.v1.DataStore]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDataStoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataStore |
The RPC response. |
UpdateDataStoreAsync(UpdateDataStoreRequest, CallSettings)
public override Task<DataStore> UpdateDataStoreAsync(UpdateDataStoreRequest request, CallSettings callSettings = null)Updates a [DataStore][google.cloud.discoveryengine.v1.DataStore]
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDataStoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataStore |
A Task containing the RPC response. |