Class: Google::Cloud::Vision::V1p3beta1::CreateProductRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1p3beta1/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.



157
158
159
160
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search_service.rb', line 157

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

#product::Google::Cloud::Vision::V1p3beta1::Product

Returns Required. The product to create.

Returns:



157
158
159
160
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search_service.rb', line 157

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 /.



157
158
159
160
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search_service.rb', line 157

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