Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::ServiceStub.
REST service stub for the DocumentProcessorService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#batch_process_documents
def batch_process_documents(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the batch_process_documents REST call
- request_pb (::Google::Cloud::DocumentAI::V1::BatchProcessRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_processor
def create_processor(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::Processor
Baseline implementation for the create_processor REST call
- request_pb (::Google::Cloud::DocumentAI::V1::CreateProcessorRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::Processor)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::Processor) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_processor
def delete_processor(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the delete_processor REST call
- request_pb (::Google::Cloud::DocumentAI::V1::DeleteProcessorRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_processor_version
def delete_processor_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the delete_processor_version REST call
- request_pb (::Google::Cloud::DocumentAI::V1::DeleteProcessorVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#deploy_processor_version
def deploy_processor_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the deploy_processor_version REST call
- request_pb (::Google::Cloud::DocumentAI::V1::DeployProcessorVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#disable_processor
def disable_processor(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the disable_processor REST call
- request_pb (::Google::Cloud::DocumentAI::V1::DisableProcessorRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#enable_processor
def enable_processor(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the enable_processor REST call
- request_pb (::Google::Cloud::DocumentAI::V1::EnableProcessorRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#evaluate_processor_version
def evaluate_processor_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the evaluate_processor_version REST call
- request_pb (::Google::Cloud::DocumentAI::V1::EvaluateProcessorVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#fetch_processor_types
def fetch_processor_types(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::FetchProcessorTypesResponse
Baseline implementation for the fetch_processor_types REST call
- request_pb (::Google::Cloud::DocumentAI::V1::FetchProcessorTypesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::FetchProcessorTypesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::FetchProcessorTypesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_evaluation
def get_evaluation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::Evaluation
Baseline implementation for the get_evaluation REST call
- request_pb (::Google::Cloud::DocumentAI::V1::GetEvaluationRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::Evaluation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::Evaluation) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_processor
def get_processor(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::Processor
Baseline implementation for the get_processor REST call
- request_pb (::Google::Cloud::DocumentAI::V1::GetProcessorRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::Processor)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::Processor) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_processor_type
def get_processor_type(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::ProcessorType
Baseline implementation for the get_processor_type REST call
- request_pb (::Google::Cloud::DocumentAI::V1::GetProcessorTypeRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::ProcessorType)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::ProcessorType) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_processor_version
def get_processor_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::ProcessorVersion
Baseline implementation for the get_processor_version REST call
- request_pb (::Google::Cloud::DocumentAI::V1::GetProcessorVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::ProcessorVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::ProcessorVersion) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_evaluations
def list_evaluations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::ListEvaluationsResponse
Baseline implementation for the list_evaluations REST call
- request_pb (::Google::Cloud::DocumentAI::V1::ListEvaluationsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::ListEvaluationsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::ListEvaluationsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_processor_types
def list_processor_types(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::ListProcessorTypesResponse
Baseline implementation for the list_processor_types REST call
- request_pb (::Google::Cloud::DocumentAI::V1::ListProcessorTypesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::ListProcessorTypesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::ListProcessorTypesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_processor_versions
def list_processor_versions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::ListProcessorVersionsResponse
Baseline implementation for the list_processor_versions REST call
- request_pb (::Google::Cloud::DocumentAI::V1::ListProcessorVersionsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::ListProcessorVersionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::ListProcessorVersionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_processors
def list_processors(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::ListProcessorsResponse
Baseline implementation for the list_processors REST call
- request_pb (::Google::Cloud::DocumentAI::V1::ListProcessorsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::ListProcessorsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::ListProcessorsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#process_document
def process_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DocumentAI::V1::ProcessResponse
Baseline implementation for the process_document REST call
- request_pb (::Google::Cloud::DocumentAI::V1::ProcessRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DocumentAI::V1::ProcessResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DocumentAI::V1::ProcessResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#review_document
def review_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the review_document REST call
- request_pb (::Google::Cloud::DocumentAI::V1::ReviewDocumentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_default_processor_version
def set_default_processor_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the set_default_processor_version REST call
- request_pb (::Google::Cloud::DocumentAI::V1::SetDefaultProcessorVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#train_processor_version
def train_processor_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the train_processor_version REST call
- request_pb (::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#undeploy_processor_version
def undeploy_processor_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the undeploy_processor_version REST call
- request_pb (::Google::Cloud::DocumentAI::V1::UndeployProcessorVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)