Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::ProductSet.
A ProductSet contains Products. A ProductSet can contain a maximum of 1
million reference images. If the limit is exceeded, periodic indexing will
fail.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#display_name
defdisplay_name()->::String
Returns
(::String) — The user-provided name for this ProductSet. Must not be empty. Must be at
most 4096 characters long.
#display_name=
defdisplay_name=(value)->::String
Parameter
value (::String) — The user-provided name for this ProductSet. Must not be empty. Must be at
most 4096 characters long.
Returns
(::String) — The user-provided name for this ProductSet. Must not be empty. Must be at
most 4096 characters long.
#index_error
defindex_error()->::Google::Rpc::Status
Returns
(::Google::Rpc::Status) — Output only. If there was an error with indexing the product set, the field
is populated.
This field is ignored when creating a ProductSet.
#index_time
defindex_time()->::Google::Protobuf::Timestamp
Returns
(::Google::Protobuf::Timestamp) — Output only. The time at which this ProductSet was last indexed. Query
results will reflect all updates before this time. If this ProductSet has
never been indexed, this timestamp is the default value
"1970-01-01T00:00:00Z".
This field is ignored when creating a ProductSet.
#name
defname()->::String
Returns
(::String) — The resource name of the ProductSet.
Format is:
projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID.
This field is ignored when creating a ProductSet.
#name=
defname=(value)->::String
Parameter
value (::String) — The resource name of the ProductSet.
Format is:
projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID.
This field is ignored when creating a ProductSet.
Returns
(::String) — The resource name of the ProductSet.
Format is:
projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::ProductSet (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ProductSet)\n- [1.3.0](/ruby/docs/reference/google-cloud-vision-v1/1.3.0/Google-Cloud-Vision-V1-ProductSet)\n- [1.2.1](/ruby/docs/reference/google-cloud-vision-v1/1.2.1/Google-Cloud-Vision-V1-ProductSet)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision-v1/1.1.0/Google-Cloud-Vision-V1-ProductSet)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision-v1/1.0.1/Google-Cloud-Vision-V1-ProductSet)\n- [0.15.0](/ruby/docs/reference/google-cloud-vision-v1/0.15.0/Google-Cloud-Vision-V1-ProductSet)\n- [0.14.0](/ruby/docs/reference/google-cloud-vision-v1/0.14.0/Google-Cloud-Vision-V1-ProductSet)\n- [0.13.2](/ruby/docs/reference/google-cloud-vision-v1/0.13.2/Google-Cloud-Vision-V1-ProductSet)\n- [0.12.0](/ruby/docs/reference/google-cloud-vision-v1/0.12.0/Google-Cloud-Vision-V1-ProductSet)\n- [0.11.1](/ruby/docs/reference/google-cloud-vision-v1/0.11.1/Google-Cloud-Vision-V1-ProductSet)\n- [0.10.0](/ruby/docs/reference/google-cloud-vision-v1/0.10.0/Google-Cloud-Vision-V1-ProductSet)\n- [0.9.0](/ruby/docs/reference/google-cloud-vision-v1/0.9.0/Google-Cloud-Vision-V1-ProductSet)\n- [0.8.0](/ruby/docs/reference/google-cloud-vision-v1/0.8.0/Google-Cloud-Vision-V1-ProductSet)\n- [0.7.0](/ruby/docs/reference/google-cloud-vision-v1/0.7.0/Google-Cloud-Vision-V1-ProductSet)\n- [0.6.4](/ruby/docs/reference/google-cloud-vision-v1/0.6.4/Google-Cloud-Vision-V1-ProductSet) \nReference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::ProductSet.\n\nA ProductSet contains Products. A ProductSet can contain a maximum of 1\nmillion reference images. If the limit is exceeded, periodic indexing will\nfail. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long. \n**Returns**\n\n- (::String) --- The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.\n\n### #index_error\n\n def index_error() -\u003e ::Google::Rpc::Status\n\n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Output only. If there was an error with indexing the product set, the field is populated.\n\n\n This field is ignored when creating a ProductSet.\n\n### #index_time\n\n def index_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value \"1970-01-01T00:00:00Z\".\n\n\n This field is ignored when creating a ProductSet.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The resource name of the ProductSet.\n\n Format is:\n `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.\n\n This field is ignored when creating a ProductSet.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The resource name of the ProductSet.\n\n\n Format is:\n `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.\n\nThis field is ignored when creating a ProductSet. \n**Returns**\n\n- (::String) --- The resource name of the ProductSet.\n\n Format is:\n `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.\n\n This field is ignored when creating a ProductSet."]]