# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AnalyzeContentRequest do
  @moduledoc """
  The request message for Participants.AnalyzeContent.

  ## Attributes

  *   `assistQueryParams` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AssistQueryParameters.t`, *default:* `nil`) - Parameters for a human assist query.
  *   `audioInput` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput.t`, *default:* `nil`) - The natural language speech audio to be processed.
  *   `cxParameters` (*type:* `map()`, *default:* `nil`) - Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
  *   `eventInput` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2EventInput.t`, *default:* `nil`) - An input event to send to Dialogflow.
  *   `queryParams` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryParameters.t`, *default:* `nil`) - Parameters for a Dialogflow virtual-agent query.
  *   `replyAudioConfig` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2OutputAudioConfig.t`, *default:* `nil`) - Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling AnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
  *   `requestId` (*type:* `String.t`, *default:* `nil`) - A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if a `request_id` is provided.
  *   `suggestionInput` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SuggestionInput.t`, *default:* `nil`) - An input representing the selection of a suggestion.
  *   `textInput` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2TextInput.t`, *default:* `nil`) - The natural language text to be processed.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :assistQueryParams =>
            GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AssistQueryParameters.t() | nil,
          :audioInput =>
            GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput.t() | nil,
          :cxParameters => map() | nil,
          :eventInput =>
            GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2EventInput.t() | nil,
          :queryParams =>
            GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryParameters.t() | nil,
          :replyAudioConfig =>
            GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2OutputAudioConfig.t() | nil,
          :requestId => String.t() | nil,
          :suggestionInput =>
            GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SuggestionInput.t() | nil,
          :textInput => GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2TextInput.t() | nil
        }

  field(:assistQueryParams,
    as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AssistQueryParameters
  )

  field(:audioInput, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput)
  field(:cxParameters, type: :map)
  field(:eventInput, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2EventInput)
  field(:queryParams, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryParameters)

  field(:replyAudioConfig,
    as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2OutputAudioConfig
  )

  field(:requestId)

  field(:suggestionInput, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SuggestionInput)

  field(:textInput, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2TextInput)
end

defimpl Poison.Decoder,
  for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AnalyzeContentRequest do
  def decode(value, options) do
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AnalyzeContentRequest.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AnalyzeContentRequest do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
