Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2StreamingRecognitionResult

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

Returns a new instance of GoogleCloudDialogflowV2StreamingRecognitionResult.



15752
15753
15754
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15752

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

Instance Attribute Details

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


15719
15720
15721
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15719

def confidence
  @confidence
end

#is_finalBoolean Also known as: is_final?

Corresponds to the JSON property isFinal

Returns:

  • (Boolean)


15724
15725
15726
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15724

def is_final
  @is_final
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


15730
15731
15732
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15730

def language_code
  @language_code
end

#message_typeString

Corresponds to the JSON property messageType

Returns:

  • (String)


15735
15736
15737
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15735

def message_type
  @message_type
end

#speech_end_offsetString

Corresponds to the JSON property speechEndOffset

Returns:

  • (String)


15740
15741
15742
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15740

def speech_end_offset
  @speech_end_offset
end

#speech_word_infoArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechWordInfo>

Corresponds to the JSON property speechWordInfo



15745
15746
15747
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15745

def speech_word_info
  @speech_word_info
end

#transcriptString

Corresponds to the JSON property transcript

Returns:

  • (String)


15750
15751
15752
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15750

def transcript
  @transcript
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15757
15758
15759
15760
15761
15762
15763
15764
15765
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15757

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @is_final = args[:is_final] if args.key?(:is_final)
  @language_code = args[:language_code] if args.key?(:language_code)
  @message_type = args[:message_type] if args.key?(:message_type)
  @speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
  @speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
  @transcript = args[:transcript] if args.key?(:transcript)
end