Class: Google::Cloud::Translate::V3::DetectLanguageRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V3::DetectLanguageRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/translate/v3/translation_service.rb
Overview
The request message for language detection.
Defined Under Namespace
Classes: LabelsEntry
Instance Attribute Summary collapse
-
#content ⇒ ::String
The content of the input stored as a string.
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#mime_type ⇒ ::String
Optional.
-
#model ⇒ ::String
Optional.
-
#parent ⇒ ::String
Required.
Instance Attribute Details
#content ⇒ ::String
Returns The content of the input stored as a string.
267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 267 class DetectLanguageRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
See https://cloud.google.com/translate/docs/advanced/labels for more information.
267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 267 class DetectLanguageRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#mime_type ⇒ ::String
Returns Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 267 class DetectLanguageRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#model ⇒ ::String
Returns Optional. The language detection model to be used.
Format:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}
Only one language detection model is currently supported:
projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default
.
If not specified, the default model is used.
267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 267 class DetectLanguageRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#parent ⇒ ::String
Returns Required. Project or location to make a call. Must refer to a caller's project.
Format: projects/{project-number-or-id}/locations/{location-id}
or
projects/{project-number-or-id}
.
For global calls, use projects/{project-number-or-id}/locations/global
or
projects/{project-number-or-id}
.
Only models within the same region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 267 class DetectLanguageRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |