Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SpeechWordInfo

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

Returns a new instance of GoogleCloudDialogflowV2SpeechWordInfo.



17932
17933
17934
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17932

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

Instance Attribute Details

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


17915
17916
17917
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17915

def confidence
  @confidence
end

#end_offsetString

Corresponds to the JSON property endOffset

Returns:

  • (String)


17920
17921
17922
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17920

def end_offset
  @end_offset
end

#start_offsetString

Corresponds to the JSON property startOffset

Returns:

  • (String)


17925
17926
17927
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17925

def start_offset
  @start_offset
end

#wordString

Corresponds to the JSON property word

Returns:

  • (String)


17930
17931
17932
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17930

def word
  @word
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17937
17938
17939
17940
17941
17942
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17937

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