Cloud Vision V1 API - Class Google::Cloud::Vision::V1::ProductSearch::Rest::ServiceStub (v0.11.1)

Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_product

def create_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::Product

Baseline implementation for the create_product REST call

Parameters
  • request_pb (::Google::Cloud::Vision::V1::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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_product_set

def create_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ProductSet

Baseline implementation for the create_product_set REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_reference_image

def create_reference_image(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ReferenceImage

Baseline implementation for the create_reference_image REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_product

def delete_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_product REST call

Parameters
  • request_pb (::Google::Cloud::Vision::V1::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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_product

def get_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::Product

Baseline implementation for the get_product REST call

Parameters
  • request_pb (::Google::Cloud::Vision::V1::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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_product_set

def get_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ProductSet

Baseline implementation for the get_product_set REST call

Parameters
  • request_pb (::Google::Cloud::Vision::V1::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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_reference_image

def get_reference_image(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ReferenceImage

Baseline implementation for the get_reference_image REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_product_sets

def list_product_sets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ListProductSetsResponse

Baseline implementation for the list_product_sets REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_products

def list_products(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ListProductsResponse

Baseline implementation for the list_products REST call

Parameters
  • request_pb (::Google::Cloud::Vision::V1::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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_products_in_product_set

def list_products_in_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ListProductsInProductSetResponse

Baseline implementation for the list_products_in_product_set REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_reference_images

def list_reference_images(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ListReferenceImagesResponse

Baseline implementation for the list_reference_images REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#purge_products

def purge_products(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the purge_products REST call

Parameters
  • request_pb (::Google::Cloud::Vision::V1::PurgeProductsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_product

def update_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::Product

Baseline implementation for the update_product REST call

Parameters
  • request_pb (::Google::Cloud::Vision::V1::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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_product_set

def update_product_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::ProductSet

Baseline implementation for the update_product_set REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)