Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechWordInfo

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

Returns a new instance of GoogleCloudDialogflowV2SpeechWordInfo.



15699
15700
15701
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15699

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

Instance Attribute Details

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


15682
15683
15684
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15682

def confidence
  @confidence
end

#end_offsetString

Corresponds to the JSON property endOffset

Returns:

  • (String)


15687
15688
15689
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15687

def end_offset
  @end_offset
end

#start_offsetString

Corresponds to the JSON property startOffset

Returns:

  • (String)


15692
15693
15694
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15692

def start_offset
  @start_offset
end

#wordString

Corresponds to the JSON property word

Returns:

  • (String)


15697
15698
15699
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15697

def word
  @word
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15704
15705
15706
15707
15708
15709
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15704

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