Class GrpcDocumentUnderstandingServiceStub (2.38.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

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,DocumentUnderstandingServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

processDocumentCallable()

public UnaryCallable<ProcessDocumentRequest,Document> processDocumentCallable()
Returns
TypeDescription
UnaryCallable<ProcessDocumentRequest,Document>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()