Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQuery

Inherits:
Object
  • Object
show all
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 a user inputed query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaQuery

Returns a new instance of GoogleCloudDiscoveryengineV1betaQuery.



28439
28440
28441
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 28439

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

Instance Attribute Details

#query_idString

Output only. Unique Id for the query. Corresponds to the JSON property queryId

Returns:

  • (String)


28432
28433
28434
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 28432

def query_id
  @query_id
end

#textString

Plain text. Corresponds to the JSON property text

Returns:

  • (String)


28437
28438
28439
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 28437

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28444
28445
28446
28447
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 28444

def update!(**args)
  @query_id = args[:query_id] if args.key?(:query_id)
  @text = args[:text] if args.key?(:text)
end