Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ArticleAnswer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ArticleAnswer

Returns a new instance of GoogleCloudDialogflowV2ArticleAnswer.



13424
13425
13426
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13424

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


13397
13398
13399
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13397

def answer_record
  @answer_record
end

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


13402
13403
13404
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13402

def confidence
  @confidence
end

#metadataHash<String,String>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


13407
13408
13409
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13407

def 
  @metadata
end

#snippetsArray<String>

Corresponds to the JSON property snippets

Returns:

  • (Array<String>)


13412
13413
13414
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13412

def snippets
  @snippets
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


13417
13418
13419
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13417

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


13422
13423
13424
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13422

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13429
13430
13431
13432
13433
13434
13435
13436
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13429

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