Class: Google::Cloud::Translate::V3::DetectedLanguage

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/translate/v3/translation_service.rb

Overview

The response message for language detection.

Instance Attribute Summary collapse

Instance Attribute Details

#confidence::Float

Returns The confidence of the detection result for this language.

Returns:

  • (::Float)

    The confidence of the detection result for this language.



233
234
235
236
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 233

class DetectedLanguage
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#language_code::String

Returns The BCP-47 language code of source content in the request, detected automatically.

Returns:

  • (::String)

    The BCP-47 language code of source content in the request, detected automatically.



233
234
235
236
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 233

class DetectedLanguage
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end