1.0.0-beta25 (latest) 1.0.0-beta24

    public sealed class ProjectServiceClientImpl : ProjectServiceClient

Reference documentation and code samples for the Discovery Engine v1beta API class ProjectServiceClientImpl.

ProjectService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ProjectServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient) \> ProjectServiceClientImpl

## Inherited Members

[ProjectServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_DefaultEndpoint) [ProjectServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_DefaultScopes) [ProjectServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ServiceMetadata) [ProjectServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_CreateAsync_System_Threading_CancellationToken_) [ProjectServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_Create) [ProjectServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ShutdownDefaultChannelsAsync) [ProjectServiceClient.ProvisionProjectAsync(ProvisionProjectRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProjectAsync_Google_Cloud_DiscoveryEngine_V1Beta_ProvisionProjectRequest_System_Threading_CancellationToken_) [ProjectServiceClient.PollOnceProvisionProject(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_PollOnceProvisionProject_System_String_Google_Api_Gax_Grpc_CallSettings_) [ProjectServiceClient.PollOnceProvisionProjectAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_PollOnceProvisionProjectAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ProjectServiceClient.ProvisionProject(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProject_System_String_Google_Api_Gax_Grpc_CallSettings_) [ProjectServiceClient.ProvisionProjectAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProjectAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ProjectServiceClient.ProvisionProjectAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProjectAsync_System_String_System_Threading_CancellationToken_) [ProjectServiceClient.ProvisionProject(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProject_Google_Cloud_DiscoveryEngine_V1Beta_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [ProjectServiceClient.ProvisionProjectAsync(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProjectAsync_Google_Cloud_DiscoveryEngine_V1Beta_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [ProjectServiceClient.ProvisionProjectAsync(ProjectName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProjectAsync_Google_Cloud_DiscoveryEngine_V1Beta_ProjectName_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Remarks

Service for operations on the
\[Project\]\[google.cloud.discoveryengine.v1beta.Project\].

## Constructors

### ProjectServiceClientImpl(ProjectServiceClient, ProjectServiceSettings, ILogger)

    public ProjectServiceClientImpl(ProjectService.ProjectServiceClient grpcClient, ProjectServiceSettings settings, ILogger logger)

Constructs a client wrapper for the ProjectService service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectService.ProjectServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceSettings` The base [ProjectServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override ProjectService.ProjectServiceClient GrpcClient { get; }

The underlying gRPC ProjectService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectService.ProjectServiceClient` |   |

**Overrides** [ProjectServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [ProjectServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_LocationsClient)

### ProvisionProjectOperationsClient

    public override OperationsClient ProvisionProjectOperationsClient { get; }

The long-running operations client for `ProvisionProject`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [ProjectServiceClient.ProvisionProjectOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProjectOperationsClient)

## Methods

### ProvisionProject(ProvisionProjectRequest, CallSettings)

    public override Operation<Project, ProvisionProjectMetadata> ProvisionProject(ProvisionProjectRequest request, CallSettings callSettings = null)

Provisions the project resource. During the
process, related systems will get prepared and initialized.

Caller must read the [Terms for data
use](https://cloud.google.com/retail/data-use-terms), and optionally
specify in request to provide consent to that service terms.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProvisionProjectRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Projecthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProvisionProjectMetadata` | The RPC response. |

**Overrides** [ProjectServiceClient.ProvisionProject(ProvisionProjectRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProject_Google_Cloud_DiscoveryEngine_V1Beta_ProvisionProjectRequest_Google_Api_Gax_Grpc_CallSettings_)

### ProvisionProjectAsync(ProvisionProjectRequest, CallSettings)

    public override Task<Operation<Project, ProvisionProjectMetadata>> ProvisionProjectAsync(ProvisionProjectRequest request, CallSettings callSettings = null)

Provisions the project resource. During the
process, related systems will get prepared and initialized.

Caller must read the [Terms for data
use](https://cloud.google.com/retail/data-use-terms), and optionally
specify in request to provide consent to that service terms.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProvisionProjectRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Projecthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProvisionProjectMetadata` | A Task containing the RPC response. |

**Overrides** [ProjectServiceClient.ProvisionProjectAsync(ProvisionProjectRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ProjectServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_ProjectServiceClient_ProvisionProjectAsync_Google_Cloud_DiscoveryEngine_V1Beta_ProvisionProjectRequest_Google_Api_Gax_Grpc_CallSettings_)