Cloud Document AI v1beta3 API - Class DocumentService.DocumentServiceClient (2.0.0-beta11)

public class DocumentService.DocumentServiceClient : ClientBase<DocumentService.DocumentServiceClient>

Reference documentation and code samples for the Cloud Document AI v1beta3 API class DocumentService.DocumentServiceClient.

Client for DocumentService

Inheritance

object > ClientBase > ClientBaseDocumentServiceDocumentServiceClient > DocumentService.DocumentServiceClient

Namespace

Google.Cloud.DocumentAI.V1Beta3

Assembly

Google.Cloud.DocumentAI.V1Beta3.dll

Constructors

DocumentServiceClient()

protected DocumentServiceClient()

Protected parameterless constructor to allow creation of test doubles.

DocumentServiceClient(CallInvoker)

public DocumentServiceClient(CallInvoker callInvoker)

Creates a new client for DocumentService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

DocumentServiceClient(ChannelBase)

public DocumentServiceClient(ChannelBase channel)

Creates a new client for DocumentService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

DocumentServiceClient(ClientBaseConfiguration)

protected DocumentServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The 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
TypeDescription
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
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

GetDatasetSchema(GetDatasetSchemaRequest, CallOptions)

public virtual DatasetSchema GetDatasetSchema(GetDatasetSchemaRequest request, CallOptions options)

Gets the DatasetSchema of a Dataset.

Parameters
NameDescription
requestGetDatasetSchemaRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
DatasetSchema

The response received from the server.

GetDatasetSchema(GetDatasetSchemaRequest, Metadata, DateTime?, CancellationToken)

public virtual DatasetSchema GetDatasetSchema(GetDatasetSchemaRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the DatasetSchema of a Dataset.

Parameters
NameDescription
requestGetDatasetSchemaRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
DatasetSchema

The response received from the server.

GetDatasetSchemaAsync(GetDatasetSchemaRequest, CallOptions)

public virtual AsyncUnaryCall<DatasetSchema> GetDatasetSchemaAsync(GetDatasetSchemaRequest request, CallOptions options)

Gets the DatasetSchema of a Dataset.

Parameters
NameDescription
requestGetDatasetSchemaRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallDatasetSchema

The call object.

GetDatasetSchemaAsync(GetDatasetSchemaRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<DatasetSchema> GetDatasetSchemaAsync(GetDatasetSchemaRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the DatasetSchema of a Dataset.

Parameters
NameDescription
requestGetDatasetSchemaRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallDatasetSchema

The call object.

NewInstance(ClientBaseConfiguration)

protected override DocumentService.DocumentServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
DocumentServiceDocumentServiceClient
Overrides

UpdateDataset(UpdateDatasetRequest, CallOptions)

public virtual Operation UpdateDataset(UpdateDatasetRequest request, CallOptions options)

Updates metadata associated with a dataset.

Parameters
NameDescription
requestUpdateDatasetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UpdateDataset(UpdateDatasetRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation UpdateDataset(UpdateDatasetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates metadata associated with a dataset.

Parameters
NameDescription
requestUpdateDatasetRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

UpdateDatasetAsync(UpdateDatasetRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateDatasetAsync(UpdateDatasetRequest request, CallOptions options)

Updates metadata associated with a dataset.

Parameters
NameDescription
requestUpdateDatasetRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpdateDatasetAsync(UpdateDatasetRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdateDatasetAsync(UpdateDatasetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates metadata associated with a dataset.

Parameters
NameDescription
requestUpdateDatasetRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpdateDatasetSchema(UpdateDatasetSchemaRequest, CallOptions)

public virtual DatasetSchema UpdateDatasetSchema(UpdateDatasetSchemaRequest request, CallOptions options)

Updates a DatasetSchema.

Parameters
NameDescription
requestUpdateDatasetSchemaRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
DatasetSchema

The response received from the server.

UpdateDatasetSchema(UpdateDatasetSchemaRequest, Metadata, DateTime?, CancellationToken)

public virtual DatasetSchema UpdateDatasetSchema(UpdateDatasetSchemaRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a DatasetSchema.

Parameters
NameDescription
requestUpdateDatasetSchemaRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
DatasetSchema

The response received from the server.

UpdateDatasetSchemaAsync(UpdateDatasetSchemaRequest, CallOptions)

public virtual AsyncUnaryCall<DatasetSchema> UpdateDatasetSchemaAsync(UpdateDatasetSchemaRequest request, CallOptions options)

Updates a DatasetSchema.

Parameters
NameDescription
requestUpdateDatasetSchemaRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallDatasetSchema

The call object.

UpdateDatasetSchemaAsync(UpdateDatasetSchemaRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<DatasetSchema> UpdateDatasetSchemaAsync(UpdateDatasetSchemaRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a DatasetSchema.

Parameters
NameDescription
requestUpdateDatasetSchemaRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallDatasetSchema

The call object.