Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart

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

Answer part with citation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart

Returns a new instance of GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart.



5682
5683
5684
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5682

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

Instance Attribute Details

#supporting_indicesArray<Fixnum>

Citations for this answer part. Indices of search_snippets. Corresponds to the JSON property supportingIndices

Returns:

  • (Array<Fixnum>)


5675
5676
5677
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5675

def supporting_indices
  @supporting_indices
end

#textString

Substring of the answer. Corresponds to the JSON property text

Returns:

  • (String)


5680
5681
5682
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5680

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5687
5688
5689
5690
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5687

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