Cloud Document AI v1 API - Class DocumentProcessorServiceClientBuilder (3.4.0)

public sealed class DocumentProcessorServiceClientBuilder : ClientBuilderBase<DocumentProcessorServiceClient>

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

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

Inheritance

Object > ClientBuilderBase<DocumentProcessorServiceClient> > DocumentProcessorServiceClientBuilder

Namespace

Google.Cloud.DocumentAI.V1

Assembly

Google.Cloud.DocumentAI.V1.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
TypeDescription
DocumentProcessorServiceSettings

Methods

Build()

public override DocumentProcessorServiceClient Build()

Builds the resulting client.

Returns
TypeDescription
DocumentProcessorServiceClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.DocumentAI.V1.DocumentProcessorServiceClient>.Build()

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
Task<DocumentProcessorServiceClient>
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.DocumentAI.V1.DocumentProcessorServiceClient>.BuildAsync(System.Threading.CancellationToken)

GetChannelPool()

protected override ChannelPool GetChannelPool()

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

Returns
TypeDescription
ChannelPool
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.DocumentAI.V1.DocumentProcessorServiceClient>.GetChannelPool()