# 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.Books.V1.Model.Layersummary do
  @moduledoc """


  ## Attributes

  *   `annotationCount` (*type:* `integer()`, *default:* `nil`) - The number of annotations for this layer.
  *   `annotationTypes` (*type:* `list(String.t)`, *default:* `nil`) - The list of annotation types contained for this layer.
  *   `annotationsDataLink` (*type:* `String.t`, *default:* `nil`) - Link to get data for this annotation.
  *   `annotationsLink` (*type:* `String.t`, *default:* `nil`) - The link to get the annotations for this layer.
  *   `contentVersion` (*type:* `String.t`, *default:* `nil`) - The content version this resource is for.
  *   `dataCount` (*type:* `integer()`, *default:* `nil`) - The number of data items for this layer.
  *   `id` (*type:* `String.t`, *default:* `nil`) - Unique id of this layer summary.
  *   `kind` (*type:* `String.t`, *default:* `nil`) - Resource Type
  *   `layerId` (*type:* `String.t`, *default:* `nil`) - The layer id for this summary.
  *   `selfLink` (*type:* `String.t`, *default:* `nil`) - URL to this resource.
  *   `updated` (*type:* `String.t`, *default:* `nil`) - Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC date-time format).
  *   `volumeAnnotationsVersion` (*type:* `String.t`, *default:* `nil`) - The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
  *   `volumeId` (*type:* `String.t`, *default:* `nil`) - The volume id this resource is for.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :annotationCount => integer() | nil,
          :annotationTypes => list(String.t()) | nil,
          :annotationsDataLink => String.t() | nil,
          :annotationsLink => String.t() | nil,
          :contentVersion => String.t() | nil,
          :dataCount => integer() | nil,
          :id => String.t() | nil,
          :kind => String.t() | nil,
          :layerId => String.t() | nil,
          :selfLink => String.t() | nil,
          :updated => String.t() | nil,
          :volumeAnnotationsVersion => String.t() | nil,
          :volumeId => String.t() | nil
        }

  field(:annotationCount)
  field(:annotationTypes, type: :list)
  field(:annotationsDataLink)
  field(:annotationsLink)
  field(:contentVersion)
  field(:dataCount)
  field(:id)
  field(:kind)
  field(:layerId)
  field(:selfLink)
  field(:updated)
  field(:volumeAnnotationsVersion)
  field(:volumeId)
end

defimpl Poison.Decoder, for: GoogleApi.Books.V1.Model.Layersummary do
  def decode(value, options) do
    GoogleApi.Books.V1.Model.Layersummary.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Books.V1.Model.Layersummary do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
