Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SpeechWordInfo

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

Returns a new instance of GoogleCloudDialogflowV2beta1SpeechWordInfo.



21729
21730
21731
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21729

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

Instance Attribute Details

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


21712
21713
21714
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21712

def confidence
  @confidence
end

#end_offsetString

Corresponds to the JSON property endOffset

Returns:

  • (String)


21717
21718
21719
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21717

def end_offset
  @end_offset
end

#start_offsetString

Corresponds to the JSON property startOffset

Returns:

  • (String)


21722
21723
21724
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21722

def start_offset
  @start_offset
end

#wordString

Corresponds to the JSON property word

Returns:

  • (String)


21727
21728
21729
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21727

def word
  @word
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21734
21735
21736
21737
21738
21739
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21734

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