Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SpeechWordInfo

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

Returns a new instance of GoogleCloudDialogflowV2beta1SpeechWordInfo.



20949
20950
20951
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20949

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

Instance Attribute Details

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


20932
20933
20934
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20932

def confidence
  @confidence
end

#end_offsetString

Corresponds to the JSON property endOffset

Returns:

  • (String)


20937
20938
20939
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20937

def end_offset
  @end_offset
end

#start_offsetString

Corresponds to the JSON property startOffset

Returns:

  • (String)


20942
20943
20944
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20942

def start_offset
  @start_offset
end

#wordString

Corresponds to the JSON property word

Returns:

  • (String)


20947
20948
20949
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20947

def word
  @word
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20954
20955
20956
20957
20958
20959
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20954

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @end_offset = args[:end_offset] if args.key?(:end_offset)
  @start_offset = args[:start_offset] if args.key?(:start_offset)
  @word = args[:word] if args.key?(:word)
end