text: # coding: utf-8
  
  """
      OpenPerf API
  
      REST API interface for OpenPerf  # noqa: E501
  
      OpenAPI spec version: 1
      Contact: support@spirent.com
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  import pprint
  import re  # noqa: F401
  
  import six
  
  
  class TDigestConfig(object):
      """NOTE: This class is auto generated by the swagger code generator program.
  
      Do not edit the class manually.
      """
  
      """
      Attributes:
        swagger_types (dict): The key is attribute name
                              and the value is attribute type.
        attribute_map (dict): The key is attribute name
                              and the value is json key in definition.
      """
      swagger_types = {
          'id': 'str',
          'function': 'str',
          'stat_x': 'str',
          'stat_y': 'str',
          'compression': 'int'
      }
  
      attribute_map = {
          'id': 'id',
          'function': 'function',
          'stat_x': 'stat_x',
          'stat_y': 'stat_y',
          'compression': 'compression'
      }
  
      def __init__(self, id=None, function=None, stat_x=None, stat_y=None, compression=None):  # noqa: E501
          """TDigestConfig - a model defined in Swagger"""  # noqa: E501
  
          self._id = None
          self._function = None
          self._stat_x = None
          self._stat_y = None
          self._compression = None
          self.discriminator = None
  
          self.id = id
          self.function = function
          self.stat_x = stat_x
          if stat_y is not None:
              self.stat_y = stat_y
          self.compression = compression
  
      @property
      def id(self):
          """Gets the id of this TDigestConfig.  # noqa: E501
  
          T-Digest configuration unique identifier  # noqa: E501
  
          :return: The id of this TDigestConfig.  # noqa: E501
          :rtype: str
          """
          return self._id
  
      @id.setter
      def id(self, id):
          """Sets the id of this TDigestConfig.
  
          T-Digest configuration unique identifier  # noqa: E501
  
          :param id: The id of this TDigestConfig.  # noqa: E501
          :type: str
          """
          self._id = id
  
      @property
      def function(self):
          """Gets the function of this TDigestConfig.  # noqa: E501
  
          The function to apply to the statistic before evaluating  # noqa: E501
  
          :return: The function of this TDigestConfig.  # noqa: E501
          :rtype: str
          """
          return self._function
  
      @function.setter
      def function(self, function):
          """Sets the function of this TDigestConfig.
  
          The function to apply to the statistic before evaluating  # noqa: E501
  
          :param function: The function of this TDigestConfig.  # noqa: E501
          :type: str
          """
          self._function = function
  
      @property
      def stat_x(self):
          """Gets the stat_x of this TDigestConfig.  # noqa: E501
  
          The X statistic to track  # noqa: E501
  
          :return: The stat_x of this TDigestConfig.  # noqa: E501
          :rtype: str
          """
          return self._stat_x
  
      @stat_x.setter
      def stat_x(self, stat_x):
          """Sets the stat_x of this TDigestConfig.
  
          The X statistic to track  # noqa: E501
  
          :param stat_x: The stat_x of this TDigestConfig.  # noqa: E501
          :type: str
          """
          self._stat_x = stat_x
  
      @property
      def stat_y(self):
          """Gets the stat_y of this TDigestConfig.  # noqa: E501
  
          The Y statistic to track (when using DXDY function)  # noqa: E501
  
          :return: The stat_y of this TDigestConfig.  # noqa: E501
          :rtype: str
          """
          return self._stat_y
  
      @stat_y.setter
      def stat_y(self, stat_y):
          """Sets the stat_y of this TDigestConfig.
  
          The Y statistic to track (when using DXDY function)  # noqa: E501
  
          :param stat_y: The stat_y of this TDigestConfig.  # noqa: E501
          :type: str
          """
          self._stat_y = stat_y
  
      @property
      def compression(self):
          """Gets the compression of this TDigestConfig.  # noqa: E501
  
          The compression factor of T-Digest  # noqa: E501
  
          :return: The compression of this TDigestConfig.  # noqa: E501
          :rtype: int
          """
          return self._compression
  
      @compression.setter
      def compression(self, compression):
          """Sets the compression of this TDigestConfig.
  
          The compression factor of T-Digest  # noqa: E501
  
          :param compression: The compression of this TDigestConfig.  # noqa: E501
          :type: int
          """
          self._compression = compression
  
      def to_dict(self):
          """Returns the model properties as a dict"""
          result = {}
  
          for attr, _ in six.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
          if issubclass(TDigestConfig, dict):
              for key, value in self.items():
                  result[key] = value
  
          return result
  
      def to_str(self):
          """Returns the string representation of the model"""
          return pprint.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, TDigestConfig):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  