Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::DocumentInfo.
Detailed document information associated with a user event.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#id
def id() -> ::String
- (::String) — Required. The Document resource ID.
#id=
def id=(value) -> ::String
- value (::String) — Required. The Document resource ID.
- (::String) — Required. The Document resource ID.
#name
def name() -> ::String
-
(::String) — Required. The Document resource full name, of the form:
projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}
#name=
def name=(value) -> ::String
-
value (::String) — Required. The Document resource full name, of the form:
projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}
-
(::String) — Required. The Document resource full name, of the form:
projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}
#promotion_ids
def promotion_ids() -> ::Array<::String>
- (::Array<::String>) — The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
#promotion_ids=
def promotion_ids=(value) -> ::Array<::String>
- value (::Array<::String>) — The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
- (::Array<::String>) — The promotion IDs associated with this Document. Currently, this field is restricted to at most one ID.
#quantity
def quantity() -> ::Integer
-
(::Integer) —
Quantity of the Document associated with the user event. Defaults to 1.
For example, this field will be 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=
def quantity=(value) -> ::Integer
-
value (::Integer) —
Quantity of the Document associated with the user event. Defaults to 1.
For example, this field will be 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
-
(::Integer) —
Quantity of the Document associated with the user event. Defaults to 1.
For example, this field will be 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