Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::DetectLanguageResponse.
The response message for language detection.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#languages
def languages() -> ::Array<::Google::Cloud::Translate::V3::DetectedLanguage>
Returns
- (::Array<::Google::Cloud::Translate::V3::DetectedLanguage>) — The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.
#languages=
def languages=(value) -> ::Array<::Google::Cloud::Translate::V3::DetectedLanguage>
Parameter
- value (::Array<::Google::Cloud::Translate::V3::DetectedLanguage>) — The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.
Returns
- (::Array<::Google::Cloud::Translate::V3::DetectedLanguage>) — The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.