View Source GoogleApi.Language.V2.Model.AnnotateTextRequest (google_api_language v0.14.0)

The request message for the text annotation API, which can perform multiple analysis types in one call.

Attributes

  • document (type: GoogleApi.Language.V2.Model.Document.t, default: nil) - Required. Input document.
  • encodingType (type: String.t, default: nil) - The encoding type used by the API to calculate offsets.
  • features (type: GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures.t, default: nil) - Required. The enabled features.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Language.V2.Model.AnnotateTextRequest{
  document: GoogleApi.Language.V2.Model.Document.t() | nil,
  encodingType: String.t() | nil,
  features: GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.