Class HttpJsonDocumentProcessorServiceStub (2.48.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonDocumentProcessorServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDocumentProcessorServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonDocumentProcessorServiceStub
Exceptions
Type Description
IOException

create(DocumentProcessorServiceStubSettings settings)

public static final HttpJsonDocumentProcessorServiceStub create(DocumentProcessorServiceStubSettings settings)
Parameter
Name Description
settings DocumentProcessorServiceStubSettings
Returns
Type Description
HttpJsonDocumentProcessorServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings DocumentProcessorServiceStubSettings
clientContext ClientContext

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
Name Description
settings DocumentProcessorServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchProcessDocumentsCallable()

public UnaryCallable<BatchProcessRequest,Operation> batchProcessDocumentsCallable()
Returns
Type Description
UnaryCallable<BatchProcessRequest,Operation>
Overrides

batchProcessDocumentsOperationCallable()

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

close()

public final void close()
Overrides

createProcessorCallable()

public UnaryCallable<CreateProcessorRequest,Processor> createProcessorCallable()
Returns
Type Description
UnaryCallable<CreateProcessorRequest,Processor>
Overrides

deleteProcessorCallable()

public UnaryCallable<DeleteProcessorRequest,Operation> deleteProcessorCallable()
Returns
Type Description
UnaryCallable<DeleteProcessorRequest,Operation>
Overrides

deleteProcessorOperationCallable()

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

deleteProcessorVersionCallable()

public UnaryCallable<DeleteProcessorVersionRequest,Operation> deleteProcessorVersionCallable()
Returns
Type Description
UnaryCallable<DeleteProcessorVersionRequest,Operation>
Overrides

deleteProcessorVersionOperationCallable()

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

deployProcessorVersionCallable()

public UnaryCallable<DeployProcessorVersionRequest,Operation> deployProcessorVersionCallable()
Returns
Type Description
UnaryCallable<DeployProcessorVersionRequest,Operation>
Overrides

deployProcessorVersionOperationCallable()

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

disableProcessorCallable()

public UnaryCallable<DisableProcessorRequest,Operation> disableProcessorCallable()
Returns
Type Description
UnaryCallable<DisableProcessorRequest,Operation>
Overrides

disableProcessorOperationCallable()

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

enableProcessorCallable()

public UnaryCallable<EnableProcessorRequest,Operation> enableProcessorCallable()
Returns
Type Description
UnaryCallable<EnableProcessorRequest,Operation>
Overrides

enableProcessorOperationCallable()

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

evaluateProcessorVersionCallable()

public UnaryCallable<EvaluateProcessorVersionRequest,Operation> evaluateProcessorVersionCallable()
Returns
Type Description
UnaryCallable<EvaluateProcessorVersionRequest,Operation>
Overrides

evaluateProcessorVersionOperationCallable()

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

fetchProcessorTypesCallable()

public UnaryCallable<FetchProcessorTypesRequest,FetchProcessorTypesResponse> fetchProcessorTypesCallable()
Returns
Type Description
UnaryCallable<FetchProcessorTypesRequest,FetchProcessorTypesResponse>
Overrides

getEvaluationCallable()

public UnaryCallable<GetEvaluationRequest,Evaluation> getEvaluationCallable()
Returns
Type Description
UnaryCallable<GetEvaluationRequest,Evaluation>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getLocationCallable()

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

getProcessorCallable()

public UnaryCallable<GetProcessorRequest,Processor> getProcessorCallable()
Returns
Type Description
UnaryCallable<GetProcessorRequest,Processor>
Overrides

getProcessorTypeCallable()

public UnaryCallable<GetProcessorTypeRequest,ProcessorType> getProcessorTypeCallable()
Returns
Type Description
UnaryCallable<GetProcessorTypeRequest,ProcessorType>
Overrides

getProcessorVersionCallable()

public UnaryCallable<GetProcessorVersionRequest,ProcessorVersion> getProcessorVersionCallable()
Returns
Type Description
UnaryCallable<GetProcessorVersionRequest,ProcessorVersion>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listEvaluationsCallable()

public UnaryCallable<ListEvaluationsRequest,ListEvaluationsResponse> listEvaluationsCallable()
Returns
Type Description
UnaryCallable<ListEvaluationsRequest,ListEvaluationsResponse>
Overrides

listEvaluationsPagedCallable()

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

listLocationsCallable()

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

listLocationsPagedCallable()

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

listProcessorTypesCallable()

public UnaryCallable<ListProcessorTypesRequest,ListProcessorTypesResponse> listProcessorTypesCallable()
Returns
Type Description
UnaryCallable<ListProcessorTypesRequest,ListProcessorTypesResponse>
Overrides

listProcessorTypesPagedCallable()

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

listProcessorVersionsCallable()

public UnaryCallable<ListProcessorVersionsRequest,ListProcessorVersionsResponse> listProcessorVersionsCallable()
Returns
Type Description
UnaryCallable<ListProcessorVersionsRequest,ListProcessorVersionsResponse>
Overrides

listProcessorVersionsPagedCallable()

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

listProcessorsCallable()

public UnaryCallable<ListProcessorsRequest,ListProcessorsResponse> listProcessorsCallable()
Returns
Type Description
UnaryCallable<ListProcessorsRequest,ListProcessorsResponse>
Overrides

listProcessorsPagedCallable()

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

processDocumentCallable()

public UnaryCallable<ProcessRequest,ProcessResponse> processDocumentCallable()
Returns
Type Description
UnaryCallable<ProcessRequest,ProcessResponse>
Overrides

reviewDocumentCallable()

public UnaryCallable<ReviewDocumentRequest,Operation> reviewDocumentCallable()
Returns
Type Description
UnaryCallable<ReviewDocumentRequest,Operation>
Overrides

reviewDocumentOperationCallable()

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

setDefaultProcessorVersionCallable()

public UnaryCallable<SetDefaultProcessorVersionRequest,Operation> setDefaultProcessorVersionCallable()
Returns
Type Description
UnaryCallable<SetDefaultProcessorVersionRequest,Operation>
Overrides

setDefaultProcessorVersionOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

trainProcessorVersionCallable()

public UnaryCallable<TrainProcessorVersionRequest,Operation> trainProcessorVersionCallable()
Returns
Type Description
UnaryCallable<TrainProcessorVersionRequest,Operation>
Overrides

trainProcessorVersionOperationCallable()

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

undeployProcessorVersionCallable()

public UnaryCallable<UndeployProcessorVersionRequest,Operation> undeployProcessorVersionCallable()
Returns
Type Description
UnaryCallable<UndeployProcessorVersionRequest,Operation>
Overrides

undeployProcessorVersionOperationCallable()

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