Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::RankingRecord (v1.0.2)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::RankingRecord.

Record message for RankService.Rank method.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#content

def content() -> ::String
Returns
  • (::String) — The content of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.

#content=

def content=(value) -> ::String
Parameter
  • value (::String) — The content of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.
Returns
  • (::String) — The content of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.

#id

def id() -> ::String
Returns
  • (::String) — The unique ID to represent the record.

#id=

def id=(value) -> ::String
Parameter
  • value (::String) — The unique ID to represent the record.
Returns
  • (::String) — The unique ID to represent the record.

#score

def score() -> ::Float
Returns
  • (::Float) — The score of this record based on the given query and selected model.

#score=

def score=(value) -> ::Float
Parameter
  • value (::Float) — The score of this record based on the given query and selected model.
Returns
  • (::Float) — The score of this record based on the given query and selected model.

#title

def title() -> ::String
Returns
  • (::String) — The title of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.

#title=

def title=(value) -> ::String
Parameter
  • value (::String) — The title of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.
Returns
  • (::String) — The title of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown.