Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Defines the parameters of the query's expected outcome.
Instance Attribute Summary collapse
-
#page_numbers ⇒ Array<Fixnum>
Expected page numbers of the target.
-
#score ⇒ Float
Relevance score of the target.
-
#uri ⇒ String
Expected uri of the target.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget
Returns a new instance of GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget.
17147 17148 17149 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#page_numbers ⇒ Array<Fixnum>
Expected page numbers of the target. Each page number must be non negative.
Corresponds to the JSON property pageNumbers
17133 17134 17135 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17133 def page_numbers @page_numbers end |
#score ⇒ Float
Relevance score of the target.
Corresponds to the JSON property score
17138 17139 17140 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17138 def score @score end |
#uri ⇒ 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.
Corresponds to the JSON property uri
17145 17146 17147 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17145 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17152 17153 17154 17155 17156 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17152 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 |