Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet

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

Overview

Snippet cited by the answer generation model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet

Returns a new instance of GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet.



5166
5167
5168
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5166

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

Instance Attribute Details

#search_snippetGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet

Search snippet details. Corresponds to the JSON property searchSnippet



5159
5160
5161
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5159

def search_snippet
  @search_snippet
end

#snippet_indexFixnum

Index of the snippet in search_snippets field. Corresponds to the JSON property snippetIndex

Returns:

  • (Fixnum)


5164
5165
5166
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5164

def snippet_index
  @snippet_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5171
5172
5173
5174
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5171

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