Class: Google::Cloud::DiscoveryEngine::V1::DocumentInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/user_event.rb

Overview

Detailed document information associated with a user event.

Instance Attribute Summary collapse

Instance Attribute Details

#id::String

Returns The Document resource ID.

Returns:

  • (::String)

    The Document resource ID.



424
425
426
427
# File 'proto_docs/google/cloud/discoveryengine/v1/user_event.rb', line 424

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

#name::String

Returns 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}.

Returns:

  • (::String)

    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}



424
425
426
427
# File 'proto_docs/google/cloud/discoveryengine/v1/user_event.rb', line 424

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

#promotion_ids::Array<::String>

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



424
425
426
427
# File 'proto_docs/google/cloud/discoveryengine/v1/user_event.rb', line 424

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

#quantity::Integer

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

Returns:

  • (::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


424
425
426
427
# File 'proto_docs/google/cloud/discoveryengine/v1/user_event.rb', line 424

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

#uri::String

Returns The Document URI - only allowed for website data stores.

Returns:

  • (::String)

    The Document URI - only allowed for website data stores.



424
425
426
427
# File 'proto_docs/google/cloud/discoveryengine/v1/user_event.rb', line 424

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