# 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.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType do
  @moduledoc """


  ## Attributes

  *   `baseFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction.t`, *default:* `nil`) - LINT.IfChange
  *   `booleanArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction.t`, *default:* `nil`) - 
  *   `booleanFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction.t`, *default:* `nil`) - 
  *   `doubleArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction.t`, *default:* `nil`) - 
  *   `doubleFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction.t`, *default:* `nil`) - 
  *   `intArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction.t`, *default:* `nil`) - 
  *   `intFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction.t`, *default:* `nil`) - 
  *   `jsonFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/alkali/apps/integrationplatform/client/workflow_editor/utils/transform_function.ts)
  *   `protoArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction.t`, *default:* `nil`) - 
  *   `protoFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction.t`, *default:* `nil`) - 
  *   `stringArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction.t`, *default:* `nil`) - 
  *   `stringFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction.t`, *default:* `nil`) - 
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :baseFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction.t() | nil,
          :booleanArrayFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction.t()
            | nil,
          :booleanFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction.t()
            | nil,
          :doubleArrayFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction.t()
            | nil,
          :doubleFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction.t()
            | nil,
          :intArrayFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction.t()
            | nil,
          :intFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction.t() | nil,
          :jsonFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction.t() | nil,
          :protoArrayFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction.t()
            | nil,
          :protoFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction.t() | nil,
          :stringArrayFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction.t()
            | nil,
          :stringFunction =>
            GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction.t()
            | nil
        }

  field(:baseFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction
  )

  field(:booleanArrayFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction
  )

  field(:booleanFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction
  )

  field(:doubleArrayFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction
  )

  field(:doubleFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction
  )

  field(:intArrayFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction
  )

  field(:intFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction
  )

  field(:jsonFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction
  )

  field(:protoArrayFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction
  )

  field(:protoFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction
  )

  field(:stringArrayFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction
  )

  field(:stringFunction,
    as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction
  )
end

defimpl Poison.Decoder,
  for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType do
  def decode(value, options) do
    GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
