Class GrpcDocumentServiceStub
- java.lang.Object
-
- com.google.cloud.documentai.v1beta3.stub.DocumentServiceStub
-
- com.google.cloud.documentai.v1beta3.stub.GrpcDocumentServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcDocumentServiceStub extends DocumentServiceStub
gRPC stub implementation for the DocumentService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDocumentServiceStub, using the given settings.protected
GrpcDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDocumentServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
com.google.api.gax.rpc.UnaryCallable<BatchDeleteDocumentsRequest,com.google.longrunning.Operation>
batchDeleteDocumentsCallable()
com.google.api.gax.rpc.OperationCallable<BatchDeleteDocumentsRequest,BatchDeleteDocumentsResponse,BatchDeleteDocumentsMetadata>
batchDeleteDocumentsOperationCallable()
void
close()
static GrpcDocumentServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcDocumentServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcDocumentServiceStub
create(DocumentServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<GetDatasetSchemaRequest,DatasetSchema>
getDatasetSchemaCallable()
com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,GetDocumentResponse>
getDocumentCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation>
importDocumentsCallable()
com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata>
importDocumentsOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
listLocationsCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DocumentServiceClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateDatasetRequest,com.google.longrunning.Operation>
updateDatasetCallable()
com.google.api.gax.rpc.OperationCallable<UpdateDatasetRequest,Dataset,UpdateDatasetOperationMetadata>
updateDatasetOperationCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateDatasetSchemaRequest,DatasetSchema>
updateDatasetSchemaCallable()
-
Methods inherited from class com.google.cloud.documentai.v1beta3.stub.DocumentServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcDocumentServiceStub
protected GrpcDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcDocumentServiceStub, 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.- Throws:
IOException
-
GrpcDocumentServiceStub
protected GrpcDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcDocumentServiceStub, 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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcDocumentServiceStub create(DocumentServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classDocumentServiceStub
-
updateDatasetCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDatasetRequest,com.google.longrunning.Operation> updateDatasetCallable()
- Overrides:
updateDatasetCallable
in classDocumentServiceStub
-
updateDatasetOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateDatasetRequest,Dataset,UpdateDatasetOperationMetadata> updateDatasetOperationCallable()
- Overrides:
updateDatasetOperationCallable
in classDocumentServiceStub
-
importDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation> importDocumentsCallable()
- Overrides:
importDocumentsCallable
in classDocumentServiceStub
-
importDocumentsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata> importDocumentsOperationCallable()
- Overrides:
importDocumentsOperationCallable
in classDocumentServiceStub
-
getDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,GetDocumentResponse> getDocumentCallable()
- Overrides:
getDocumentCallable
in classDocumentServiceStub
-
batchDeleteDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchDeleteDocumentsRequest,com.google.longrunning.Operation> batchDeleteDocumentsCallable()
- Overrides:
batchDeleteDocumentsCallable
in classDocumentServiceStub
-
batchDeleteDocumentsOperationCallable
public com.google.api.gax.rpc.OperationCallable<BatchDeleteDocumentsRequest,BatchDeleteDocumentsResponse,BatchDeleteDocumentsMetadata> batchDeleteDocumentsOperationCallable()
- Overrides:
batchDeleteDocumentsOperationCallable
in classDocumentServiceStub
-
getDatasetSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<GetDatasetSchemaRequest,DatasetSchema> getDatasetSchemaCallable()
- Overrides:
getDatasetSchemaCallable
in classDocumentServiceStub
-
updateDatasetSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDatasetSchemaRequest,DatasetSchema> updateDatasetSchemaCallable()
- Overrides:
updateDatasetSchemaCallable
in classDocumentServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classDocumentServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DocumentServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classDocumentServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classDocumentServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDocumentServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-