Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::ServiceStub.
REST service stub for the ProductSearch service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#add_product_to_product_set
def add_product_to_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the add_product_to_product_set REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_product
def create_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::Product
Baseline implementation for the create_product REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::CreateProductRequest) — 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::Product)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::Product) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_product_set
def create_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ProductSet
Baseline implementation for the create_product_set REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest) — 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::ProductSet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ProductSet) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_reference_image
def create_reference_image(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ReferenceImage
Baseline implementation for the create_reference_image REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest) — 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::ReferenceImage)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ReferenceImage) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_product
def delete_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_product REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::DeleteProductRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_product_set
def delete_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_product_set REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_reference_image
def delete_reference_image(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_reference_image REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_product
def get_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::Product
Baseline implementation for the get_product REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::GetProductRequest) — 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::Product)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::Product) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_product_set
def get_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ProductSet
Baseline implementation for the get_product_set REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::GetProductSetRequest) — 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::ProductSet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ProductSet) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_reference_image
def get_reference_image(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ReferenceImage
Baseline implementation for the get_reference_image REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest) — 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::ReferenceImage)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ReferenceImage) — A result object deserialized from the server's reply
- (::ArgumentError)
#import_product_sets
def import_product_sets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the import_product_sets REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest) — 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)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_product_sets
def list_product_sets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ListProductSetsResponse
Baseline implementation for the list_product_sets REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest) — 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::ListProductSetsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ListProductSetsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_products
def list_products(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ListProductsResponse
Baseline implementation for the list_products REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::ListProductsRequest) — 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::ListProductsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ListProductsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_products_in_product_set
def list_products_in_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetResponse
Baseline implementation for the list_products_in_product_set REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest) — 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::ListProductsInProductSetResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_reference_images
def list_reference_images(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesResponse
Baseline implementation for the list_reference_images REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest) — 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::ListReferenceImagesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#remove_product_from_product_set
def remove_product_from_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the remove_product_from_product_set REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_product
def update_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::Product
Baseline implementation for the update_product REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::UpdateProductRequest) — 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::Product)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::Product) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_product_set
def update_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p3beta1::ProductSet
Baseline implementation for the update_product_set REST call
- request_pb (::Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest) — 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::ProductSet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Vision::V1p3beta1::ProductSet) — A result object deserialized from the server's reply
- (::ArgumentError)