Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ArticleAnswer

Returns a new instance of GoogleCloudDialogflowV2ArticleAnswer.



7607
7608
7609
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7607

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


7580
7581
7582
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7580

def answer_record
  @answer_record
end

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


7585
7586
7587
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7585

def confidence
  @confidence
end

#metadataHash<String,String>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


7590
7591
7592
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7590

def 
  @metadata
end

#snippetsArray<String>

Corresponds to the JSON property snippets

Returns:

  • (Array<String>)


7595
7596
7597
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7595

def snippets
  @snippets
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


7600
7601
7602
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7600

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


7605
7606
7607
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7605

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7612
7613
7614
7615
7616
7617
7618
7619
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7612

def update!(**args)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @confidence = args[:confidence] if args.key?(:confidence)
  @metadata = args[:metadata] if args.key?(:metadata)
  @snippets = args[:snippets] if args.key?(:snippets)
  @title = args[:title] if args.key?(:title)
  @uri = args[:uri] if args.key?(:uri)
end