Cloud Document AI v1beta3 API - Class DocumentProcessorServiceClientBuilder (2.0.0-beta21)

public sealed class DocumentProcessorServiceClientBuilder : ClientBuilderBase<DocumentProcessorServiceClient>

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

Builder class for DocumentProcessorServiceClient to provide simple configuration of credentials, endpoint etc.

Inheritance

object > ClientBuilderBaseDocumentProcessorServiceClient > DocumentProcessorServiceClientBuilder

Namespace

Google.Cloud.DocumentAI.V1Beta3

Assembly

Google.Cloud.DocumentAI.V1Beta3.dll

Constructors

DocumentProcessorServiceClientBuilder()

public DocumentProcessorServiceClientBuilder()

Creates a new builder with default settings.

Properties

Settings

public DocumentProcessorServiceSettings Settings { get; set; }

The settings to use for RPCs, or null for the default settings.

Property Value
Type Description
DocumentProcessorServiceSettings

Methods

Build()

public override DocumentProcessorServiceClient Build()

Builds the resulting client.

Returns
Type Description
DocumentProcessorServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.DocumentAI.V1Beta3.DocumentProcessorServiceClient>.Build()

BuildAsync(CancellationToken)

public override Task<DocumentProcessorServiceClient> BuildAsync(CancellationToken cancellationToken = default)

Builds the resulting client asynchronously.

Parameter
Name Description
cancellationToken CancellationToken
Returns
Type Description
TaskDocumentProcessorServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.DocumentAI.V1Beta3.DocumentProcessorServiceClient>.BuildAsync(System.Threading.CancellationToken)

GetChannelPool()

protected override ChannelPool GetChannelPool()

Returns the channel pool to use when no other options are specified.

Returns
Type Description
ChannelPool
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.DocumentAI.V1Beta3.DocumentProcessorServiceClient>.GetChannelPool()