Class HttpJsonDocumentProcessorServiceStub (2.32.0)

public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServiceStub

REST stub implementation for the DocumentProcessorService service API.

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

Inheritance

java.lang.Object > DocumentProcessorServiceStub > HttpJsonDocumentProcessorServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDocumentProcessorServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Exceptions
TypeDescription
IOException

create(DocumentProcessorServiceStubSettings settings)

public static final HttpJsonDocumentProcessorServiceStub create(DocumentProcessorServiceStubSettings settings)
Parameter
NameDescription
settingsDocumentProcessorServiceStubSettings
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonDocumentProcessorServiceStub(DocumentProcessorServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonDocumentProcessorServiceStub(DocumentProcessorServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDocumentProcessorServiceStub, 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
settingsDocumentProcessorServiceStubSettings
clientContextClientContext

HttpJsonDocumentProcessorServiceStub(DocumentProcessorServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDocumentProcessorServiceStub(DocumentProcessorServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDocumentProcessorServiceStub, 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
settingsDocumentProcessorServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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<BatchProcessRequest,Operation> batchProcessDocumentsCallable()
Overrides

batchProcessDocumentsOperationCallable()

public OperationCallable<BatchProcessRequest,BatchProcessResponse,BatchProcessMetadata> batchProcessDocumentsOperationCallable()
Overrides

close()

public final void close()
Overrides

createProcessorCallable()

public UnaryCallable<CreateProcessorRequest,Processor> createProcessorCallable()
Overrides

deleteProcessorCallable()

public UnaryCallable<DeleteProcessorRequest,Operation> deleteProcessorCallable()
Overrides

deleteProcessorOperationCallable()

public OperationCallable<DeleteProcessorRequest,Empty,DeleteProcessorMetadata> deleteProcessorOperationCallable()
Overrides

deleteProcessorVersionCallable()

public UnaryCallable<DeleteProcessorVersionRequest,Operation> deleteProcessorVersionCallable()
Overrides

deleteProcessorVersionOperationCallable()

public OperationCallable<DeleteProcessorVersionRequest,Empty,DeleteProcessorVersionMetadata> deleteProcessorVersionOperationCallable()
Overrides

deployProcessorVersionCallable()

public UnaryCallable<DeployProcessorVersionRequest,Operation> deployProcessorVersionCallable()
Overrides

deployProcessorVersionOperationCallable()

public OperationCallable<DeployProcessorVersionRequest,DeployProcessorVersionResponse,DeployProcessorVersionMetadata> deployProcessorVersionOperationCallable()
Overrides

disableProcessorCallable()

public UnaryCallable<DisableProcessorRequest,Operation> disableProcessorCallable()
Overrides

disableProcessorOperationCallable()

public OperationCallable<DisableProcessorRequest,DisableProcessorResponse,DisableProcessorMetadata> disableProcessorOperationCallable()
Overrides

enableProcessorCallable()

public UnaryCallable<EnableProcessorRequest,Operation> enableProcessorCallable()
Overrides

enableProcessorOperationCallable()

public OperationCallable<EnableProcessorRequest,EnableProcessorResponse,EnableProcessorMetadata> enableProcessorOperationCallable()
Overrides

evaluateProcessorVersionCallable()

public UnaryCallable<EvaluateProcessorVersionRequest,Operation> evaluateProcessorVersionCallable()
Overrides

evaluateProcessorVersionOperationCallable()

public OperationCallable<EvaluateProcessorVersionRequest,EvaluateProcessorVersionResponse,EvaluateProcessorVersionMetadata> evaluateProcessorVersionOperationCallable()
Overrides

fetchProcessorTypesCallable()

public UnaryCallable<FetchProcessorTypesRequest,FetchProcessorTypesResponse> fetchProcessorTypesCallable()
Overrides

getEvaluationCallable()

public UnaryCallable<GetEvaluationRequest,Evaluation> getEvaluationCallable()
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getLocationCallable()

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

getProcessorCallable()

public UnaryCallable<GetProcessorRequest,Processor> getProcessorCallable()
Overrides

getProcessorTypeCallable()

public UnaryCallable<GetProcessorTypeRequest,ProcessorType> getProcessorTypeCallable()
Overrides

getProcessorVersionCallable()

public UnaryCallable<GetProcessorVersionRequest,ProcessorVersion> getProcessorVersionCallable()
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listEvaluationsCallable()

public UnaryCallable<ListEvaluationsRequest,ListEvaluationsResponse> listEvaluationsCallable()
Overrides

listEvaluationsPagedCallable()

public UnaryCallable<ListEvaluationsRequest,DocumentProcessorServiceClient.ListEvaluationsPagedResponse> listEvaluationsPagedCallable()
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

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

listProcessorTypesCallable()

public UnaryCallable<ListProcessorTypesRequest,ListProcessorTypesResponse> listProcessorTypesCallable()
Overrides

listProcessorTypesPagedCallable()

public UnaryCallable<ListProcessorTypesRequest,DocumentProcessorServiceClient.ListProcessorTypesPagedResponse> listProcessorTypesPagedCallable()
Overrides

listProcessorVersionsCallable()

public UnaryCallable<ListProcessorVersionsRequest,ListProcessorVersionsResponse> listProcessorVersionsCallable()
Overrides

listProcessorVersionsPagedCallable()

public UnaryCallable<ListProcessorVersionsRequest,DocumentProcessorServiceClient.ListProcessorVersionsPagedResponse> listProcessorVersionsPagedCallable()
Overrides

listProcessorsCallable()

public UnaryCallable<ListProcessorsRequest,ListProcessorsResponse> listProcessorsCallable()
Overrides

listProcessorsPagedCallable()

public UnaryCallable<ListProcessorsRequest,DocumentProcessorServiceClient.ListProcessorsPagedResponse> listProcessorsPagedCallable()
Overrides

processDocumentCallable()

public UnaryCallable<ProcessRequest,ProcessResponse> processDocumentCallable()
Overrides

reviewDocumentCallable()

public UnaryCallable<ReviewDocumentRequest,Operation> reviewDocumentCallable()
Overrides

reviewDocumentOperationCallable()

public OperationCallable<ReviewDocumentRequest,ReviewDocumentResponse,ReviewDocumentOperationMetadata> reviewDocumentOperationCallable()
Overrides

setDefaultProcessorVersionCallable()

public UnaryCallable<SetDefaultProcessorVersionRequest,Operation> setDefaultProcessorVersionCallable()
Overrides

setDefaultProcessorVersionOperationCallable()

public OperationCallable<SetDefaultProcessorVersionRequest,SetDefaultProcessorVersionResponse,SetDefaultProcessorVersionMetadata> setDefaultProcessorVersionOperationCallable()
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

trainProcessorVersionCallable()

public UnaryCallable<TrainProcessorVersionRequest,Operation> trainProcessorVersionCallable()
Overrides

trainProcessorVersionOperationCallable()

public OperationCallable<TrainProcessorVersionRequest,TrainProcessorVersionResponse,TrainProcessorVersionMetadata> trainProcessorVersionOperationCallable()
Overrides

undeployProcessorVersionCallable()

public UnaryCallable<UndeployProcessorVersionRequest,Operation> undeployProcessorVersionCallable()
Overrides

undeployProcessorVersionOperationCallable()

public OperationCallable<UndeployProcessorVersionRequest,UndeployProcessorVersionResponse,UndeployProcessorVersionMetadata> undeployProcessorVersionOperationCallable()
Overrides