Class DetectLanguageRequest
The request message for language detection.
Implements
Inherited Members
Namespace: Google.Apis.Translate.v3beta1.Data
Assembly: Google.Apis.Translate.v3beta1.dll
Syntax
public class DetectLanguageRequest : IDirectResponseSchema
Properties
Content
The content of the input stored as a string.
Declaration
[JsonProperty("content")]
public virtual string Content { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
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/labels for more information.
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
MimeType
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
Declaration
[JsonProperty("mimeType")]
public virtual string MimeType { get; set; }
Property Value
Type | Description |
---|---|
string |
Model
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.
Declaration
[JsonProperty("model")]
public virtual string Model { get; set; }
Property Value
Type | Description |
---|---|
string |