Class: Google::Cloud::Vision::V1::CreateReferenceImageRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1/product_search_service.rb

Overview

Request message for the CreateReferenceImage method.

Instance Attribute Summary collapse

Instance Attribute Details

#parent::String

Returns Required. Resource name of the product in which to create the reference image.

Format is projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID.

Returns:

  • (::String)

    Required. Resource name of the product in which to create the reference image.

    Format is projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID.



346
347
348
349
# File 'proto_docs/google/cloud/vision/v1/product_search_service.rb', line 346

class CreateReferenceImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#reference_image::Google::Cloud::Vision::V1::ReferenceImage

Returns Required. The reference image to create. If an image ID is specified, it is ignored.

Returns:



346
347
348
349
# File 'proto_docs/google/cloud/vision/v1/product_search_service.rb', line 346

class CreateReferenceImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#reference_image_id::String

Returns A user-supplied resource id for the ReferenceImage to be added. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character /.

Returns:

  • (::String)

    A user-supplied resource id for the ReferenceImage to be added. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character /.



346
347
348
349
# File 'proto_docs/google/cloud/vision/v1/product_search_service.rb', line 346

class CreateReferenceImageRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end