Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::SampleQuery::QueryEntry::Target (v0.14.2)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::SampleQuery::QueryEntry::Target.

Defines the parameters of the query's expected outcome.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#page_numbers

def page_numbers() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — Expected page numbers of the target.

    Each page number must be non negative.

#page_numbers=

def page_numbers=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — Expected page numbers of the target.

    Each page number must be non negative.

Returns
  • (::Array<::Integer>) — Expected page numbers of the target.

    Each page number must be non negative.

#score

def score() -> ::Float
Returns
  • (::Float) — Relevance score of the target.

#score=

def score=(value) -> ::Float
Parameter
  • value (::Float) — Relevance score of the target.
Returns
  • (::Float) — Relevance score of the target.

#uri

def uri() -> ::String
Returns
  • (::String) — Expected uri of the target.

    This field must be a UTF-8 encoded string with a length limit of 2048 characters.

    Example of valid uris: https://example.com/abc, gcs://example/example.pdf.

#uri=

def uri=(value) -> ::String
Parameter
  • value (::String) — Expected uri of the target.

    This field must be a UTF-8 encoded string with a length limit of 2048 characters.

    Example of valid uris: https://example.com/abc, gcs://example/example.pdf.

Returns
  • (::String) — Expected uri of the target.

    This field must be a UTF-8 encoded string with a length limit of 2048 characters.

    Example of valid uris: https://example.com/abc, gcs://example/example.pdf.