google_api_language v0.8.0 GoogleApi.Language.V1.Model.Document View Source

################################################################ #

Represents the input to API methods.

Attributes

  • content (type: String.t, default: nil) - The content of the input in string format. Cloud audit logging exempt since it is based on user data.
  • gcsContentUri (type: String.t, default: nil) - The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
  • language (type: String.t, default: nil) - The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.
    Language Support lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an INVALID_ARGUMENT error is returned.
  • type (type: String.t, default: nil) - Required. If the type is not set or is TYPE_UNSPECIFIED, returns an INVALID_ARGUMENT error.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Language.V1.Model.Document{
  content: String.t(),
  gcsContentUri: String.t(),
  language: String.t(),
  type: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.