Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ArticleAnswer

Returns a new instance of GoogleCloudDialogflowV2ArticleAnswer.



7117
7118
7119
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7117

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


7090
7091
7092
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7090

def answer_record
  @answer_record
end

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


7095
7096
7097
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7095

def confidence
  @confidence
end

#metadataHash<String,String>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


7100
7101
7102
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7100

def 
  @metadata
end

#snippetsArray<String>

Corresponds to the JSON property snippets

Returns:

  • (Array<String>)


7105
7106
7107
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7105

def snippets
  @snippets
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


7110
7111
7112
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7110

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


7115
7116
7117
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7115

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7122
7123
7124
7125
7126
7127
7128
7129
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7122

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