Class: Google::Cloud::Vision::V1::CreateProductRequest

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 CreateProduct method.

Instance Attribute Summary collapse

Instance Attribute Details

#parent::String

Returns Required. The project in which the Product should be created.

Format is projects/PROJECT_ID/locations/LOC_ID.

Returns:

  • (::String)

    Required. The project in which the Product should be created.

    Format is projects/PROJECT_ID/locations/LOC_ID.



162
163
164
165
# File 'proto_docs/google/cloud/vision/v1/product_search_service.rb', line 162

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

#product::Google::Cloud::Vision::V1::Product

Returns Required. The product to create.

Returns:



162
163
164
165
# File 'proto_docs/google/cloud/vision/v1/product_search_service.rb', line 162

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

#product_id::String

Returns A user-supplied resource id for this Product. 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 this Product. 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 /.



162
163
164
165
# File 'proto_docs/google/cloud/vision/v1/product_search_service.rb', line 162

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