text: # coding: utf-8
  
  """
      Gmail
  
      Access Gmail mailboxes including sending user email.
  
      OpenAPI spec version: v1
      
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  from pprint import pformat
  from six import iteritems
  import re
  
  
  class ListMessagesResponse(object):
      """
      NOTE: This class is auto generated by the swagger code generator program.
      Do not edit the class manually.
      """
      def __init__(self, messages=None, next_page_token=None, result_size_estimate=None):
          """
          ListMessagesResponse - a model defined in Swagger
  
          :param dict swaggerTypes: The key is attribute name
                                    and the value is attribute type.
          :param dict attributeMap: The key is attribute name
                                    and the value is json key in definition.
          """
          self.swagger_types = {
              'messages': 'list[Message]',
              'next_page_token': 'str',
              'result_size_estimate': 'int'
          }
  
          self.attribute_map = {
              'messages': 'messages',
              'next_page_token': 'nextPageToken',
              'result_size_estimate': 'resultSizeEstimate'
          }
  
          self._messages = messages
          self._next_page_token = next_page_token
          self._result_size_estimate = result_size_estimate
  
      @property
      def messages(self):
          """
          Gets the messages of this ListMessagesResponse.
          List of messages.
  
          :return: The messages of this ListMessagesResponse.
          :rtype: list[Message]
          """
          return self._messages
  
      @messages.setter
      def messages(self, messages):
          """
          Sets the messages of this ListMessagesResponse.
          List of messages.
  
          :param messages: The messages of this ListMessagesResponse.
          :type: list[Message]
          """
  
          self._messages = messages
  
      @property
      def next_page_token(self):
          """
          Gets the next_page_token of this ListMessagesResponse.
          Token to retrieve the next page of results in the list.
  
          :return: The next_page_token of this ListMessagesResponse.
          :rtype: str
          """
          return self._next_page_token
  
      @next_page_token.setter
      def next_page_token(self, next_page_token):
          """
          Sets the next_page_token of this ListMessagesResponse.
          Token to retrieve the next page of results in the list.
  
          :param next_page_token: The next_page_token of this ListMessagesResponse.
          :type: str
          """
  
          self._next_page_token = next_page_token
  
      @property
      def result_size_estimate(self):
          """
          Gets the result_size_estimate of this ListMessagesResponse.
          Estimated total number of results.
  
          :return: The result_size_estimate of this ListMessagesResponse.
          :rtype: int
          """
          return self._result_size_estimate
  
      @result_size_estimate.setter
      def result_size_estimate(self, result_size_estimate):
          """
          Sets the result_size_estimate of this ListMessagesResponse.
          Estimated total number of results.
  
          :param result_size_estimate: The result_size_estimate of this ListMessagesResponse.
          :type: int
          """
  
          self._result_size_estimate = result_size_estimate
  
      def to_dict(self):
          """
          Returns the model properties as a dict
          """
          result = {}
  
          for attr, _ in iteritems(self.swagger_types):
              value = getattr(self, attr)
              if isinstance(value, list):
                  result[attr] = list(map(
                      lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                      value
                  ))
              elif hasattr(value, "to_dict"):
                  result[attr] = value.to_dict()
              elif isinstance(value, dict):
                  result[attr] = dict(map(
                      lambda item: (item[0], item[1].to_dict())
                      if hasattr(item[1], "to_dict") else item,
                      value.items()
                  ))
              else:
                  result[attr] = value
  
          return result
  
      def to_str(self):
          """
          Returns the string representation of the model
          """
          return pformat(self.to_dict())
  
      def __repr__(self):
          """
          For `print` and `pprint`
          """
          return self.to_str()
  
      def __eq__(self, other):
          """
          Returns true if both objects are equal
          """
          if not isinstance(other, ListMessagesResponse):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """
          Returns true if both objects are not equal
          """
          return not self == other
  