Class GrpcDocumentUnderstandingServiceStub (2.15.0)

public class GrpcDocumentUnderstandingServiceStub extends DocumentUnderstandingServiceStub

gRPC stub implementation for the DocumentUnderstandingService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > DocumentUnderstandingServiceStub > GrpcDocumentUnderstandingServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDocumentUnderstandingServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcDocumentUnderstandingServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDocumentUnderstandingServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcDocumentUnderstandingServiceStub
Exceptions
TypeDescription
IOException

create(DocumentUnderstandingServiceStubSettings settings)

public static final GrpcDocumentUnderstandingServiceStub create(DocumentUnderstandingServiceStubSettings settings)
Parameter
NameDescription
settingsDocumentUnderstandingServiceStubSettings
Returns
TypeDescription
GrpcDocumentUnderstandingServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcDocumentUnderstandingServiceStub(DocumentUnderstandingServiceStubSettings settings, ClientContext clientContext)

protected GrpcDocumentUnderstandingServiceStub(DocumentUnderstandingServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDocumentUnderstandingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsDocumentUnderstandingServiceStubSettings
clientContextClientContext

GrpcDocumentUnderstandingServiceStub(DocumentUnderstandingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDocumentUnderstandingServiceStub(DocumentUnderstandingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDocumentUnderstandingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsDocumentUnderstandingServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchProcessDocumentsCallable()

public UnaryCallable<BatchProcessDocumentsRequest,Operation> batchProcessDocumentsCallable()
Returns
TypeDescription
UnaryCallable<BatchProcessDocumentsRequest,Operation>
Overrides

batchProcessDocumentsOperationCallable()

public OperationCallable<BatchProcessDocumentsRequest,BatchProcessDocumentsResponse,OperationMetadata> batchProcessDocumentsOperationCallable()
Returns
TypeDescription
OperationCallable<BatchProcessDocumentsRequest,BatchProcessDocumentsResponse,OperationMetadata>
Overrides

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()