public sealed class CollectionServiceClientImpl : CollectionServiceClientReference documentation and code samples for the Discovery Engine v1 API class CollectionServiceClientImpl.
CollectionService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Remarks
Service for managing [Collection][google.cloud.discoveryengine.v1.Collection]s.
Constructors
CollectionServiceClientImpl(CollectionServiceClient, CollectionServiceSettings, ILogger)
public CollectionServiceClientImpl(CollectionService.CollectionServiceClient grpcClient, CollectionServiceSettings settings, ILogger logger)Constructs a client wrapper for the CollectionService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
CollectionServiceCollectionServiceClientThe underlying gRPC client. |
settings |
CollectionServiceSettingsThe base CollectionServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
DeleteCollectionOperationsClient
public override OperationsClient DeleteCollectionOperationsClient { get; }The long-running operations client for DeleteCollection.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override CollectionService.CollectionServiceClient GrpcClient { get; }The underlying gRPC CollectionService client
| Property Value | |
|---|---|
| Type | Description |
CollectionServiceCollectionServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
DeleteCollection(DeleteCollectionRequest, CallSettings)
public override Operation<Empty, DeleteCollectionMetadata> DeleteCollection(DeleteCollectionRequest request, CallSettings callSettings = null)Deletes a [Collection][google.cloud.discoveryengine.v1.Collection].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyDeleteCollectionMetadata |
The RPC response. |
DeleteCollectionAsync(DeleteCollectionRequest, CallSettings)
public override Task<Operation<Empty, DeleteCollectionMetadata>> DeleteCollectionAsync(DeleteCollectionRequest request, CallSettings callSettings = null)Deletes a [Collection][google.cloud.discoveryengine.v1.Collection].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCollectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyDeleteCollectionMetadata |
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
[Collection][google.cloud.discoveryengine.v1.Collection]. 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
[Collection][google.cloud.discoveryengine.v1.Collection]. 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. |
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM access control policy for a
[Collection][google.cloud.discoveryengine.v1.Collection]. A NOT_FOUND
error is returned if the resource does not exist.
Important: When setting a policy directly on a Collection 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
[Collection][google.cloud.discoveryengine.v1.Collection]. A NOT_FOUND
error is returned if the resource does not exist.
Important: When setting a policy directly on a Collection 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. |