Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Rest::ServiceStub.
REST service stub for the ImageAnnotator service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#async_batch_annotate_files
def async_batch_annotate_files(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the async_batch_annotate_files REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::AsyncBatchAnnotateFilesRequest) — 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)
#batch_annotate_images
def batch_annotate_images(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::BatchAnnotateImagesResponse
Baseline implementation for the batch_annotate_images REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::BatchAnnotateImagesRequest) — 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::Vision::V1p3beta1::BatchAnnotateImagesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::BatchAnnotateImagesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub