Cloud Vision V1p4beta1 API - Class Google::Cloud::Vision::V1p4beta1::ProductSearch::Rest::ServiceStub (v0.7.2)

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

Baseline implementation for the create_product REST call

Parameters
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::V1p4beta1::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::V1p4beta1::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
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)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_product

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

Baseline implementation for the get_product REST call

Parameters
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::V1p4beta1::ProductSet

Baseline implementation for the get_product_set REST call

Parameters
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::V1p4beta1::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:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#list_product_sets

def list_product_sets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1p4beta1::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::V1p4beta1::ListProductsResponse

Baseline implementation for the list_products REST call

Parameters
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::V1p4beta1::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::V1p4beta1::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
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)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_product

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

Baseline implementation for the update_product REST call

Parameters
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::V1p4beta1::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)