Note: The following fields are mutually exclusive: id, name, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: id, name, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: id, name, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#joined
defjoined()->::Boolean
Returns
(::Boolean) — Output only. Whether the referenced Document can be found in the data
store.
#name
defname()->::String
Returns
(::String) — The Document resource
full name, of the form:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}
Note: The following fields are mutually exclusive: name, id, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#name=
defname=(value)->::String
Parameter
value (::String) — The Document resource
full name, of the form:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}
Note: The following fields are mutually exclusive: name, id, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — The Document resource
full name, of the form:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}
Note: The following fields are mutually exclusive: name, id, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#promotion_ids
defpromotion_ids()->::Array<::String>
Returns
(::Array<::String>) — The promotion IDs associated with this Document.
Currently, this field is restricted to at most one ID.
#promotion_ids=
defpromotion_ids=(value)->::Array<::String>
Parameter
value (::Array<::String>) — The promotion IDs associated with this Document.
Currently, this field is restricted to at most one ID.
Returns
(::Array<::String>) — The promotion IDs associated with this Document.
Currently, this field is restricted to at most one ID.
#quantity
defquantity()->::Integer
Returns
(::Integer) —
Quantity of the Document associated with the user event. Defaults to 1.
For example, this field is 2 if two quantities of the same Document
are involved in a add-to-cart event.
Required for events of the following event types:
add-to-cart
purchase
#quantity=
defquantity=(value)->::Integer
Parameter
value (::Integer) —
Quantity of the Document associated with the user event. Defaults to 1.
For example, this field is 2 if two quantities of the same Document
are involved in a add-to-cart event.
Required for events of the following event types:
add-to-cart
purchase
Returns
(::Integer) —
Quantity of the Document associated with the user event. Defaults to 1.
For example, this field is 2 if two quantities of the same Document
are involved in a add-to-cart event.
Required for events of the following event types:
add-to-cart
purchase
#uri
defuri()->::String
Returns
(::String) — The Document URI - only
allowed for website data stores.
Note: The following fields are mutually exclusive: uri, id, name. If a field in that set is populated, all other fields in the set will automatically be cleared.
#uri=
defuri=(value)->::String
Parameter
value (::String) — The Document URI - only
allowed for website data stores.
Note: The following fields are mutually exclusive: uri, id, name. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — The Document URI - only
allowed for website data stores.
Note: The following fields are mutually exclusive: uri, id, name. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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-04 UTC."],[],[],null,["# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::DocumentInfo (v0.21.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.21.0 (latest)](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.20.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.20.1/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.19.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.19.1/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.18.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.18.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.17.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.17.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.16.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.16.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.15.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.15.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.14.2](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.14.2/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.13.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.13.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.12.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.12.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.11.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.11.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.10.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.10.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.9.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.9.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.8.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.8.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.7.2](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.7.2/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.6.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.6.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.5.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.5.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.4.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.4.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.3.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.3.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.2.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.2.1/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo)\n- [0.1.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.1.0/Google-Cloud-DiscoveryEngine-V1beta-DocumentInfo) \nReference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::DocumentInfo.\n\nDetailed document information associated with a user event. \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### #id\n\n def id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") resource ID.\n\n\n Note: The following fields are mutually exclusive: `id`, `name`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #id=\n\n def id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") resource ID.\n\n\nNote: The following fields are mutually exclusive: `id`, `name`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") resource ID.\n\n\n Note: The following fields are mutually exclusive: `id`, `name`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #joined\n\n def joined() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Output only. Whether the referenced Document can be found in the data store.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") resource full name, of the form: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`\n\n\n Note: The following fields are mutually exclusive: `name`, `id`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") resource full name, of the form: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`\n\n\nNote: The following fields are mutually exclusive: `name`, `id`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") resource full name, of the form: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`\n\n\n Note: The following fields are mutually exclusive: `name`, `id`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #promotion_ids\n\n def promotion_ids() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.\n\n### #promotion_ids=\n\n def promotion_ids=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.\n\n### #quantity\n\n def quantity() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Quantity of the Document associated with the user event. Defaults to 1.\n\n For example, this field is 2 if two quantities of the same Document\n are involved in a `add-to-cart` event.\n\n Required for events of the following event types:\n - `add-to-cart`\n - `purchase`\n\n### #quantity=\n\n def quantity=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) ---\n\n Quantity of the Document associated with the user event. Defaults to 1.\n\n For example, this field is 2 if two quantities of the same Document\n are involved in a `add-to-cart` event.\n\n Required for events of the following event types:\n - `add-to-cart`\n- `purchase` \n**Returns**\n\n- (::Integer) --- Quantity of the Document associated with the user event. Defaults to 1.\n\n For example, this field is 2 if two quantities of the same Document\n are involved in a `add-to-cart` event.\n\n Required for events of the following event types:\n - `add-to-cart`\n - `purchase`\n\n### #uri\n\n def uri() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") URI - only allowed for website data stores.\n\n\n Note: The following fields are mutually exclusive: `uri`, `id`, `name`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #uri=\n\n def uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") URI - only allowed for website data stores.\n\n\nNote: The following fields are mutually exclusive: `uri`, `id`, `name`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- The [Document](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document \"Google::Cloud::DiscoveryEngine::V1beta::Document (class)\") URI - only allowed for website data stores.\n\n\n Note: The following fields are mutually exclusive: `uri`, `id`, `name`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]