View Source GoogleApi.Language.V2.Model.AnalyzeSentimentRequest (google_api_language v0.15.0)

The sentiment analysis request message.

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 sentence offsets.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

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

Unwrap a decoded JSON object into its complex fields.