Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart

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

Overview

Answer part with citation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart

Returns a new instance of GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart.



1504
1505
1506
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1504

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>)


1497
1498
1499
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1497

def supporting_indices
  @supporting_indices
end

#textString

Substring of the answer. Corresponds to the JSON property text

Returns:

  • (String)


1502
1503
1504
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1502

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1509
1510
1511
1512
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1509

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