public class ServingConfigService.ServingConfigServiceClient : ClientBase<ServingConfigService.ServingConfigServiceClient>Reference documentation and code samples for the Discovery Engine v1 API class ServingConfigService.ServingConfigServiceClient.
Client for ServingConfigService
Inheritance
object > ClientBase > ClientBaseServingConfigServiceServingConfigServiceClient > ServingConfigService.ServingConfigServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
ServingConfigServiceClient()
protected ServingConfigServiceClient()Protected parameterless constructor to allow creation of test doubles.
ServingConfigServiceClient(CallInvoker)
public ServingConfigServiceClient(CallInvoker callInvoker)Creates a new client for ServingConfigService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description | 
| callInvoker | CallInvokerThe callInvoker to use to make remote calls. | 
ServingConfigServiceClient(ChannelBase)
public ServingConfigServiceClient(ChannelBase channel)Creates a new client for ServingConfigService
| Parameter | |
|---|---|
| Name | Description | 
| channel | ChannelBaseThe channel to use to make remote calls. | 
ServingConfigServiceClient(ClientBaseConfiguration)
protected ServingConfigServiceClient(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. | 
NewInstance(ClientBaseConfiguration)
protected override ServingConfigService.ServingConfigServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description | 
| configuration | ClientBaseClientBaseConfiguration | 
| Returns | |
|---|---|
| Type | Description | 
| ServingConfigServiceServingConfigServiceClient | |
UpdateServingConfig(UpdateServingConfigRequest, CallOptions)
public virtual ServingConfig UpdateServingConfig(UpdateServingConfigRequest request, CallOptions options)Updates a ServingConfig.
Returns a NOT_FOUND error if the ServingConfig does not exist.
| Parameters | |
|---|---|
| Name | Description | 
| request | UpdateServingConfigRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| ServingConfig | The response received from the server. | 
UpdateServingConfig(UpdateServingConfigRequest, Metadata, DateTime?, CancellationToken)
public virtual ServingConfig UpdateServingConfig(UpdateServingConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Updates a ServingConfig.
Returns a NOT_FOUND error if the ServingConfig does not exist.
| Parameters | |
|---|---|
| Name | Description | 
| request | UpdateServingConfigRequestThe 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 | 
| ServingConfig | The response received from the server. | 
UpdateServingConfigAsync(UpdateServingConfigRequest, CallOptions)
public virtual AsyncUnaryCall<ServingConfig> UpdateServingConfigAsync(UpdateServingConfigRequest request, CallOptions options)Updates a ServingConfig.
Returns a NOT_FOUND error if the ServingConfig does not exist.
| Parameters | |
|---|---|
| Name | Description | 
| request | UpdateServingConfigRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCallServingConfig | The call object. | 
UpdateServingConfigAsync(UpdateServingConfigRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ServingConfig> UpdateServingConfigAsync(UpdateServingConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Updates a ServingConfig.
Returns a NOT_FOUND error if the ServingConfig does not exist.
| Parameters | |
|---|---|
| Name | Description | 
| request | UpdateServingConfigRequestThe 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 | 
| AsyncUnaryCallServingConfig | The call object. |