Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntryTarget

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Defines the parameters of the query's expected outcome.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntryTarget

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntryTarget.



14449
14450
14451
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14449

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#page_numbersArray<Fixnum>

Expected page numbers of the target. Each page number must be non negative. Corresponds to the JSON property pageNumbers

Returns:

  • (Array<Fixnum>)


14435
14436
14437
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14435

def page_numbers
  @page_numbers
end

#scoreFloat

Relevance score of the target. Corresponds to the JSON property score

Returns:

  • (Float)


14440
14441
14442
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14440

def score
  @score
end

#uriString

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. Corresponds to the JSON property uri

Returns:

  • (String)


14447
14448
14449
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14447

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14454
14455
14456
14457
14458
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14454

def update!(**args)
  @page_numbers = args[:page_numbers] if args.key?(:page_numbers)
  @score = args[:score] if args.key?(:score)
  @uri = args[:uri] if args.key?(:uri)
end