Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest

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

Overview

The request message for Conversations.SearchKnowledge.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeRequest

Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeRequest.



16552
16553
16554
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16552

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

Instance Attribute Details

#conversationString

Optional. The conversation (between human agent and end user) where the search request is triggered. Format: projects//locations//conversations/. Corresponds to the JSON property conversation

Returns:

  • (String)


16491
16492
16493
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16491

def conversation
  @conversation
end

#conversation_profileString

Required. The conversation profile used to configure the search. Format: projects//locations//conversationProfiles/. Corresponds to the JSON property conversationProfile

Returns:

  • (String)


16497
16498
16499
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16497

def conversation_profile
  @conversation_profile
end

#end_user_metadataHash<String,Object>

Optional. Information about the end-user to improve the relevance and accuracy of generative answers. This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure. Example: json ` "subscription plan": "Business Premium Plus", " devices owned": [ `"model": "Google Pixel 7"`, `"model": "Google Pixel Tablet"` ] ` Corresponds to the JSON property endUserMetadata

Returns:

  • (Hash<String,Object>)


16507
16508
16509
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16507

def 
  @end_user_metadata
end

#exact_searchBoolean Also known as: exact_search?

Optional. Whether to search the query exactly without query rewrite. Corresponds to the JSON property exactSearch

Returns:

  • (Boolean)


16512
16513
16514
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16512

def exact_search
  @exact_search
end

#latest_messageString

Optional. The name of the latest conversation message when the request is triggered. Format: projects//locations//conversations//messages/. Corresponds to the JSON property latestMessage

Returns:

  • (String)


16519
16520
16521
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16519

def latest_message
  @latest_message
end

#parentString

Required. The parent resource contains the conversation profile Format: ' projects/' or projects//locations/. Corresponds to the JSON property parent

Returns:

  • (String)


16525
16526
16527
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16525

def parent
  @parent
end

#queryGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput

Auxiliary proto messages. Represents the natural language text to be processed. Corresponds to the JSON property query



16530
16531
16532
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16530

def query
  @query
end

#query_sourceString

Optional. The source of the query in the request. Corresponds to the JSON property querySource

Returns:

  • (String)


16535
16536
16537
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16535

def query_source
  @query_source
end

#search_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfig

Configuration specific to search queries with data stores. Corresponds to the JSON property searchConfig



16540
16541
16542
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16540

def search_config
  @search_config
end

#session_idString

Required. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate Session ID. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters. Corresponds to the JSON property sessionId

Returns:

  • (String)


16550
16551
16552
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16550

def session_id
  @session_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16557

def update!(**args)
  @conversation = args[:conversation] if args.key?(:conversation)
  @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
  @end_user_metadata = args[:end_user_metadata] if args.key?(:end_user_metadata)
  @exact_search = args[:exact_search] if args.key?(:exact_search)
  @latest_message = args[:latest_message] if args.key?(:latest_message)
  @parent = args[:parent] if args.key?(:parent)
  @query = args[:query] if args.key?(:query)
  @query_source = args[:query_source] if args.key?(:query_source)
  @search_config = args[:search_config] if args.key?(:search_config)
  @session_id = args[:session_id] if args.key?(:session_id)
end