Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2ArticleAnswer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ArticleAnswer

Returns a new instance of GoogleCloudDialogflowV2ArticleAnswer.



14847
14848
14849
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14847

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


14820
14821
14822
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14820

def answer_record
  @answer_record
end

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


14825
14826
14827
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14825

def confidence
  @confidence
end

#metadataHash<String,String>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


14830
14831
14832
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14830

def 
  @metadata
end

#snippetsArray<String>

Corresponds to the JSON property snippets

Returns:

  • (Array<String>)


14835
14836
14837
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14835

def snippets
  @snippets
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


14840
14841
14842
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14840

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


14845
14846
14847
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14845

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14852
14853
14854
14855
14856
14857
14858
14859
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 14852

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