# Copyright 2017 Google Inc. # # 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 class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule GoogleApi.Gmail.V1.Model.Label do @moduledoc """ Labels are used to categorize messages and threads within the user's mailbox. ## Attributes - color (LabelColor): The color to assign to the label. Color is only available for labels that have their type set to user. Defaults to: `null`. - id (String.t): The immutable ID of the label. Defaults to: `null`. - labelListVisibility (String.t): The visibility of the label in the label list in the Gmail web interface. Defaults to: `null`. - Enum - one of [labelHide, labelShow, labelShowIfUnread] - messageListVisibility (String.t): The visibility of the label in the message list in the Gmail web interface. Defaults to: `null`. - Enum - one of [hide, show] - messagesTotal (integer()): The total number of messages with the label. Defaults to: `null`. - messagesUnread (integer()): The number of unread messages with the label. Defaults to: `null`. - name (String.t): The display name of the label. Defaults to: `null`. - threadsTotal (integer()): The total number of threads with the label. Defaults to: `null`. - threadsUnread (integer()): The number of unread threads with the label. Defaults to: `null`. - type (String.t): The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the INBOX and UNREAD labels from messages and threads, but cannot apply or remove the DRAFTS or SENT labels from messages or threads. Defaults to: `null`. - Enum - one of [system, user] """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :color => GoogleApi.Gmail.V1.Model.LabelColor.t(), :id => any(), :labelListVisibility => any(), :messageListVisibility => any(), :messagesTotal => any(), :messagesUnread => any(), :name => any(), :threadsTotal => any(), :threadsUnread => any(), :type => any() } field(:color, as: GoogleApi.Gmail.V1.Model.LabelColor) field(:id) field(:labelListVisibility) field(:messageListVisibility) field(:messagesTotal) field(:messagesUnread) field(:name) field(:threadsTotal) field(:threadsUnread) field(:type) end defimpl Poison.Decoder, for: GoogleApi.Gmail.V1.Model.Label do def decode(value, options) do GoogleApi.Gmail.V1.Model.Label.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Gmail.V1.Model.Label do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end