# 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.DisplayVideo.V3.Model.Adloox do
  @moduledoc """
  Details of Adloox brand safety settings.

  ## Attributes

  *   `adultExplicitSexualContent` (*type:* `String.t`, *default:* `nil`) - Optional. Adult and Explicit Sexual Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `armsAmmunitionContent` (*type:* `String.t`, *default:* `nil`) - Optional. Arms and Ammunition Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `crimeHarmfulActsIndividualsSocietyHumanRightsViolationsContent` (*type:* `String.t`, *default:* `nil`) - Optional. Crime and Harmful Acts Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `deathInjuryMilitaryConflictContent` (*type:* `String.t`, *default:* `nil`) - Optional. Death, Injury, or Military Conflict Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `debatedSensitiveSocialIssueContent` (*type:* `String.t`, *default:* `nil`) - Optional. Debated Sensitive Social Issue Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `displayIabViewability` (*type:* `String.t`, *default:* `nil`) - Optional. IAB viewability threshold for display ads.
  *   `excludedAdlooxCategories` (*type:* `list(String.t)`, *default:* `nil`) - Adloox categories to exclude.
  *   `excludedFraudIvtMfaCategories` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Adloox's fraud IVT MFA categories to exclude.
  *   `hateSpeechActsAggressionContent` (*type:* `String.t`, *default:* `nil`) - Optional. Hate Speech and Acts of Aggression Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `illegalDrugsTobaccoEcigarettesVapingAlcoholContent` (*type:* `String.t`, *default:* `nil`) - Optional. Illegal Drugs/Alcohol Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `misinformationContent` (*type:* `String.t`, *default:* `nil`) - Optional. Misinformation Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `obscenityProfanityContent` (*type:* `String.t`, *default:* `nil`) - Optional. Obscenity and Profanity Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `onlinePiracyContent` (*type:* `String.t`, *default:* `nil`) - Optional. Online Piracy Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `spamHarmfulContent` (*type:* `String.t`, *default:* `nil`) - Optional. Spam or Harmful Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `terrorismContent` (*type:* `String.t`, *default:* `nil`) - Optional. Terrorism Content [GARM](https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude.
  *   `videoIabViewability` (*type:* `String.t`, *default:* `nil`) - Optional. IAB viewability threshold for video ads.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :adultExplicitSexualContent => String.t() | nil,
          :armsAmmunitionContent => String.t() | nil,
          :crimeHarmfulActsIndividualsSocietyHumanRightsViolationsContent => String.t() | nil,
          :deathInjuryMilitaryConflictContent => String.t() | nil,
          :debatedSensitiveSocialIssueContent => String.t() | nil,
          :displayIabViewability => String.t() | nil,
          :excludedAdlooxCategories => list(String.t()) | nil,
          :excludedFraudIvtMfaCategories => list(String.t()) | nil,
          :hateSpeechActsAggressionContent => String.t() | nil,
          :illegalDrugsTobaccoEcigarettesVapingAlcoholContent => String.t() | nil,
          :misinformationContent => String.t() | nil,
          :obscenityProfanityContent => String.t() | nil,
          :onlinePiracyContent => String.t() | nil,
          :spamHarmfulContent => String.t() | nil,
          :terrorismContent => String.t() | nil,
          :videoIabViewability => String.t() | nil
        }

  field(:adultExplicitSexualContent)
  field(:armsAmmunitionContent)
  field(:crimeHarmfulActsIndividualsSocietyHumanRightsViolationsContent)
  field(:deathInjuryMilitaryConflictContent)
  field(:debatedSensitiveSocialIssueContent)
  field(:displayIabViewability)
  field(:excludedAdlooxCategories, type: :list)
  field(:excludedFraudIvtMfaCategories, type: :list)
  field(:hateSpeechActsAggressionContent)
  field(:illegalDrugsTobaccoEcigarettesVapingAlcoholContent)
  field(:misinformationContent)
  field(:obscenityProfanityContent)
  field(:onlinePiracyContent)
  field(:spamHarmfulContent)
  field(:terrorismContent)
  field(:videoIabViewability)
end

defimpl Poison.Decoder, for: GoogleApi.DisplayVideo.V3.Model.Adloox do
  def decode(value, options) do
    GoogleApi.DisplayVideo.V3.Model.Adloox.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.DisplayVideo.V3.Model.Adloox do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
