# 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.Sheets.V4.Model.GridProperties do
  @moduledoc """
  Properties of a grid.

  ## Attributes

  *   `columnCount` (*type:* `integer()`, *default:* `nil`) - The number of columns in the grid.
  *   `columnGroupControlAfter` (*type:* `boolean()`, *default:* `nil`) - True if the column grouping control toggle is shown after the group.
  *   `frozenColumnCount` (*type:* `integer()`, *default:* `nil`) - The number of columns that are frozen in the grid.
  *   `frozenRowCount` (*type:* `integer()`, *default:* `nil`) - The number of rows that are frozen in the grid.
  *   `hideGridlines` (*type:* `boolean()`, *default:* `nil`) - True if the grid isn't showing gridlines in the UI.
  *   `rowCount` (*type:* `integer()`, *default:* `nil`) - The number of rows in the grid.
  *   `rowGroupControlAfter` (*type:* `boolean()`, *default:* `nil`) - True if the row grouping control toggle is shown after the group.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :columnCount => integer() | nil,
          :columnGroupControlAfter => boolean() | nil,
          :frozenColumnCount => integer() | nil,
          :frozenRowCount => integer() | nil,
          :hideGridlines => boolean() | nil,
          :rowCount => integer() | nil,
          :rowGroupControlAfter => boolean() | nil
        }

  field(:columnCount)
  field(:columnGroupControlAfter)
  field(:frozenColumnCount)
  field(:frozenRowCount)
  field(:hideGridlines)
  field(:rowCount)
  field(:rowGroupControlAfter)
end

defimpl Poison.Decoder, for: GoogleApi.Sheets.V4.Model.GridProperties do
  def decode(value, options) do
    GoogleApi.Sheets.V4.Model.GridProperties.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Sheets.V4.Model.GridProperties do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
