Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SpeechWordInfo

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

Returns a new instance of GoogleCloudDialogflowV2SpeechWordInfo.



16602
16603
16604
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16602

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

Instance Attribute Details

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


16585
16586
16587
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16585

def confidence
  @confidence
end

#end_offsetString

Corresponds to the JSON property endOffset

Returns:

  • (String)


16590
16591
16592
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16590

def end_offset
  @end_offset
end

#start_offsetString

Corresponds to the JSON property startOffset

Returns:

  • (String)


16595
16596
16597
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16595

def start_offset
  @start_offset
end

#wordString

Corresponds to the JSON property word

Returns:

  • (String)


16600
16601
16602
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16600

def word
  @word
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16607
16608
16609
16610
16611
16612
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16607

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