Class HttpJsonDocumentServiceStub
- java.lang.Object
-
- com.google.cloud.documentai.v1beta3.stub.DocumentServiceStub
-
- com.google.cloud.documentai.v1beta3.stub.HttpJsonDocumentServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonDocumentServiceStub extends DocumentServiceStub
REST 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 protectedHttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonDocumentServiceStub, using the given settings.protectedHttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonDocumentServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(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()voidclose()static HttpJsonDocumentServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonDocumentServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonDocumentServiceStubcreate(DocumentServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<GetDatasetSchemaRequest,DatasetSchema>getDatasetSchemaCallable()com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,GetDocumentResponse>getDocumentCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation>importDocumentsCallable()com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata>importDocumentsOperationCallable()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonDocumentServiceStub
protected HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonDocumentServiceStub, 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
-
HttpJsonDocumentServiceStub
protected HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonDocumentServiceStub, 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 HttpJsonDocumentServiceStub create(DocumentServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDocumentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDocumentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classDocumentServiceStub
-
updateDatasetCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDatasetRequest,com.google.longrunning.Operation> updateDatasetCallable()
- Overrides:
updateDatasetCallablein classDocumentServiceStub
-
updateDatasetOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateDatasetRequest,Dataset,UpdateDatasetOperationMetadata> updateDatasetOperationCallable()
- Overrides:
updateDatasetOperationCallablein classDocumentServiceStub
-
importDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation> importDocumentsCallable()
- Overrides:
importDocumentsCallablein classDocumentServiceStub
-
importDocumentsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata> importDocumentsOperationCallable()
- Overrides:
importDocumentsOperationCallablein classDocumentServiceStub
-
getDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,GetDocumentResponse> getDocumentCallable()
- Overrides:
getDocumentCallablein classDocumentServiceStub
-
batchDeleteDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchDeleteDocumentsRequest,com.google.longrunning.Operation> batchDeleteDocumentsCallable()
- Overrides:
batchDeleteDocumentsCallablein classDocumentServiceStub
-
batchDeleteDocumentsOperationCallable
public com.google.api.gax.rpc.OperationCallable<BatchDeleteDocumentsRequest,BatchDeleteDocumentsResponse,BatchDeleteDocumentsMetadata> batchDeleteDocumentsOperationCallable()
- Overrides:
batchDeleteDocumentsOperationCallablein classDocumentServiceStub
-
getDatasetSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<GetDatasetSchemaRequest,DatasetSchema> getDatasetSchemaCallable()
- Overrides:
getDatasetSchemaCallablein classDocumentServiceStub
-
updateDatasetSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDatasetSchemaRequest,DatasetSchema> updateDatasetSchemaCallable()
- Overrides:
updateDatasetSchemaCallablein classDocumentServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classDocumentServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DocumentServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classDocumentServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classDocumentServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-