public class ProjectService.ProjectServiceClient : ClientBase<ProjectService.ProjectServiceClient>Reference documentation and code samples for the Discovery Engine v1 API class ProjectService.ProjectServiceClient.
Client for ProjectService
Inheritance
object > ClientBase > ClientBaseProjectServiceProjectServiceClient > ProjectService.ProjectServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
ProjectServiceClient()
protected ProjectServiceClient()Protected parameterless constructor to allow creation of test doubles.
ProjectServiceClient(CallInvoker)
public ProjectServiceClient(CallInvoker callInvoker)Creates a new client for ProjectService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
ProjectServiceClient(ChannelBase)
public ProjectServiceClient(ChannelBase channel)Creates a new client for ProjectService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
ProjectServiceClient(ClientBaseConfiguration)
protected ProjectServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
CreateLocationsClient()
public virtual Locations.LocationsClient CreateLocationsClient()Creates a new instance of Locations.LocationsClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient for the same target as this client. |
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()Creates a new instance of Operations.OperationsClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description |
OperationsOperationsClient |
A new Operations client for the same target as this client. |
NewInstance(ClientBaseConfiguration)
protected override ProjectService.ProjectServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
ProjectServiceProjectServiceClient |
|
ProvisionProject(ProvisionProjectRequest, CallOptions)
public virtual Operation ProvisionProject(ProvisionProjectRequest request, CallOptions options)Provisions the project resource. During the process, related systems will get prepared and initialized.
Caller must read the Terms for data use, and optionally specify in request to provide consent to that service terms.
| Parameters | |
|---|---|
| Name | Description |
request |
ProvisionProjectRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
ProvisionProject(ProvisionProjectRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation ProvisionProject(ProvisionProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Provisions the project resource. During the process, related systems will get prepared and initialized.
Caller must read the Terms for data use, and optionally specify in request to provide consent to that service terms.
| Parameters | |
|---|---|
| Name | Description |
request |
ProvisionProjectRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
ProvisionProjectAsync(ProvisionProjectRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> ProvisionProjectAsync(ProvisionProjectRequest request, CallOptions options)Provisions the project resource. During the process, related systems will get prepared and initialized.
Caller must read the Terms for data use, and optionally specify in request to provide consent to that service terms.
| Parameters | |
|---|---|
| Name | Description |
request |
ProvisionProjectRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
The call object. |
ProvisionProjectAsync(ProvisionProjectRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> ProvisionProjectAsync(ProvisionProjectRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Provisions the project resource. During the process, related systems will get prepared and initialized.
Caller must read the Terms for data use, and optionally specify in request to provide consent to that service terms.
| Parameters | |
|---|---|
| Name | Description |
request |
ProvisionProjectRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
The call object. |