# coding: utf-8

"""
    Onshape REST API

    The Onshape REST API consumed by all clients.  # noqa: E501

    The version of the OpenAPI document: 1.104
    Contact: api-support@onshape.zendesk.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class BTLocationInfo(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'from_node': 'BTPNode',
        'element_microversion': 'str',
        'document': 'str',
        'top_level': 'str',
        'module_ids': 'BTDocumentVersionElementIds',
        'language_version': 'int',
        'column': 'int',
        'end_line': 'int',
        'end_column': 'int',
        'line': 'int',
        'version': 'str',
        'character': 'int',
        'parse_node_id': 'str',
        'end_character': 'int',
        'parse_node_id_raw': 'BTObjectId',
        'node_id': 'str'
    }

    attribute_map = {
        'from_node': 'fromNode',
        'element_microversion': 'elementMicroversion',
        'document': 'document',
        'top_level': 'topLevel',
        'module_ids': 'moduleIds',
        'language_version': 'languageVersion',
        'column': 'column',
        'end_line': 'endLine',
        'end_column': 'endColumn',
        'line': 'line',
        'version': 'version',
        'character': 'character',
        'parse_node_id': 'parseNodeId',
        'end_character': 'endCharacter',
        'parse_node_id_raw': 'parseNodeIdRaw',
        'node_id': 'nodeId'
    }

    def __init__(self, from_node=None, element_microversion=None, document=None, top_level=None, module_ids=None, language_version=None, column=None, end_line=None, end_column=None, line=None, version=None, character=None, parse_node_id=None, end_character=None, parse_node_id_raw=None, node_id=None):  # noqa: E501
        """BTLocationInfo - a model defined in OpenAPI"""  # noqa: E501

        self._from_node = None
        self._element_microversion = None
        self._document = None
        self._top_level = None
        self._module_ids = None
        self._language_version = None
        self._column = None
        self._end_line = None
        self._end_column = None
        self._line = None
        self._version = None
        self._character = None
        self._parse_node_id = None
        self._end_character = None
        self._parse_node_id_raw = None
        self._node_id = None
        self.discriminator = None

        if from_node is not None:
            self.from_node = from_node
        if element_microversion is not None:
            self.element_microversion = element_microversion
        if document is not None:
            self.document = document
        if top_level is not None:
            self.top_level = top_level
        if module_ids is not None:
            self.module_ids = module_ids
        if language_version is not None:
            self.language_version = language_version
        if column is not None:
            self.column = column
        if end_line is not None:
            self.end_line = end_line
        if end_column is not None:
            self.end_column = end_column
        if line is not None:
            self.line = line
        if version is not None:
            self.version = version
        if character is not None:
            self.character = character
        if parse_node_id is not None:
            self.parse_node_id = parse_node_id
        if end_character is not None:
            self.end_character = end_character
        if parse_node_id_raw is not None:
            self.parse_node_id_raw = parse_node_id_raw
        if node_id is not None:
            self.node_id = node_id

    @property
    def from_node(self):
        """Gets the from_node of this BTLocationInfo.  # noqa: E501


        :return: The from_node of this BTLocationInfo.  # noqa: E501
        :rtype: BTPNode
        """
        return self._from_node

    @from_node.setter
    def from_node(self, from_node):
        """Sets the from_node of this BTLocationInfo.


        :param from_node: The from_node of this BTLocationInfo.  # noqa: E501
        :type: BTPNode
        """

        self._from_node = from_node

    @property
    def element_microversion(self):
        """Gets the element_microversion of this BTLocationInfo.  # noqa: E501


        :return: The element_microversion of this BTLocationInfo.  # noqa: E501
        :rtype: str
        """
        return self._element_microversion

    @element_microversion.setter
    def element_microversion(self, element_microversion):
        """Sets the element_microversion of this BTLocationInfo.


        :param element_microversion: The element_microversion of this BTLocationInfo.  # noqa: E501
        :type: str
        """

        self._element_microversion = element_microversion

    @property
    def document(self):
        """Gets the document of this BTLocationInfo.  # noqa: E501


        :return: The document of this BTLocationInfo.  # noqa: E501
        :rtype: str
        """
        return self._document

    @document.setter
    def document(self, document):
        """Sets the document of this BTLocationInfo.


        :param document: The document of this BTLocationInfo.  # noqa: E501
        :type: str
        """

        self._document = document

    @property
    def top_level(self):
        """Gets the top_level of this BTLocationInfo.  # noqa: E501


        :return: The top_level of this BTLocationInfo.  # noqa: E501
        :rtype: str
        """
        return self._top_level

    @top_level.setter
    def top_level(self, top_level):
        """Sets the top_level of this BTLocationInfo.


        :param top_level: The top_level of this BTLocationInfo.  # noqa: E501
        :type: str
        """

        self._top_level = top_level

    @property
    def module_ids(self):
        """Gets the module_ids of this BTLocationInfo.  # noqa: E501


        :return: The module_ids of this BTLocationInfo.  # noqa: E501
        :rtype: BTDocumentVersionElementIds
        """
        return self._module_ids

    @module_ids.setter
    def module_ids(self, module_ids):
        """Sets the module_ids of this BTLocationInfo.


        :param module_ids: The module_ids of this BTLocationInfo.  # noqa: E501
        :type: BTDocumentVersionElementIds
        """

        self._module_ids = module_ids

    @property
    def language_version(self):
        """Gets the language_version of this BTLocationInfo.  # noqa: E501


        :return: The language_version of this BTLocationInfo.  # noqa: E501
        :rtype: int
        """
        return self._language_version

    @language_version.setter
    def language_version(self, language_version):
        """Sets the language_version of this BTLocationInfo.


        :param language_version: The language_version of this BTLocationInfo.  # noqa: E501
        :type: int
        """

        self._language_version = language_version

    @property
    def column(self):
        """Gets the column of this BTLocationInfo.  # noqa: E501


        :return: The column of this BTLocationInfo.  # noqa: E501
        :rtype: int
        """
        return self._column

    @column.setter
    def column(self, column):
        """Sets the column of this BTLocationInfo.


        :param column: The column of this BTLocationInfo.  # noqa: E501
        :type: int
        """

        self._column = column

    @property
    def end_line(self):
        """Gets the end_line of this BTLocationInfo.  # noqa: E501


        :return: The end_line of this BTLocationInfo.  # noqa: E501
        :rtype: int
        """
        return self._end_line

    @end_line.setter
    def end_line(self, end_line):
        """Sets the end_line of this BTLocationInfo.


        :param end_line: The end_line of this BTLocationInfo.  # noqa: E501
        :type: int
        """

        self._end_line = end_line

    @property
    def end_column(self):
        """Gets the end_column of this BTLocationInfo.  # noqa: E501


        :return: The end_column of this BTLocationInfo.  # noqa: E501
        :rtype: int
        """
        return self._end_column

    @end_column.setter
    def end_column(self, end_column):
        """Sets the end_column of this BTLocationInfo.


        :param end_column: The end_column of this BTLocationInfo.  # noqa: E501
        :type: int
        """

        self._end_column = end_column

    @property
    def line(self):
        """Gets the line of this BTLocationInfo.  # noqa: E501


        :return: The line of this BTLocationInfo.  # noqa: E501
        :rtype: int
        """
        return self._line

    @line.setter
    def line(self, line):
        """Sets the line of this BTLocationInfo.


        :param line: The line of this BTLocationInfo.  # noqa: E501
        :type: int
        """

        self._line = line

    @property
    def version(self):
        """Gets the version of this BTLocationInfo.  # noqa: E501


        :return: The version of this BTLocationInfo.  # noqa: E501
        :rtype: str
        """
        return self._version

    @version.setter
    def version(self, version):
        """Sets the version of this BTLocationInfo.


        :param version: The version of this BTLocationInfo.  # noqa: E501
        :type: str
        """

        self._version = version

    @property
    def character(self):
        """Gets the character of this BTLocationInfo.  # noqa: E501


        :return: The character of this BTLocationInfo.  # noqa: E501
        :rtype: int
        """
        return self._character

    @character.setter
    def character(self, character):
        """Sets the character of this BTLocationInfo.


        :param character: The character of this BTLocationInfo.  # noqa: E501
        :type: int
        """

        self._character = character

    @property
    def parse_node_id(self):
        """Gets the parse_node_id of this BTLocationInfo.  # noqa: E501


        :return: The parse_node_id of this BTLocationInfo.  # noqa: E501
        :rtype: str
        """
        return self._parse_node_id

    @parse_node_id.setter
    def parse_node_id(self, parse_node_id):
        """Sets the parse_node_id of this BTLocationInfo.


        :param parse_node_id: The parse_node_id of this BTLocationInfo.  # noqa: E501
        :type: str
        """

        self._parse_node_id = parse_node_id

    @property
    def end_character(self):
        """Gets the end_character of this BTLocationInfo.  # noqa: E501


        :return: The end_character of this BTLocationInfo.  # noqa: E501
        :rtype: int
        """
        return self._end_character

    @end_character.setter
    def end_character(self, end_character):
        """Sets the end_character of this BTLocationInfo.


        :param end_character: The end_character of this BTLocationInfo.  # noqa: E501
        :type: int
        """

        self._end_character = end_character

    @property
    def parse_node_id_raw(self):
        """Gets the parse_node_id_raw of this BTLocationInfo.  # noqa: E501


        :return: The parse_node_id_raw of this BTLocationInfo.  # noqa: E501
        :rtype: BTObjectId
        """
        return self._parse_node_id_raw

    @parse_node_id_raw.setter
    def parse_node_id_raw(self, parse_node_id_raw):
        """Sets the parse_node_id_raw of this BTLocationInfo.


        :param parse_node_id_raw: The parse_node_id_raw of this BTLocationInfo.  # noqa: E501
        :type: BTObjectId
        """

        self._parse_node_id_raw = parse_node_id_raw

    @property
    def node_id(self):
        """Gets the node_id of this BTLocationInfo.  # noqa: E501


        :return: The node_id of this BTLocationInfo.  # noqa: E501
        :rtype: str
        """
        return self._node_id

    @node_id.setter
    def node_id(self, node_id):
        """Sets the node_id of this BTLocationInfo.


        :param node_id: The node_id of this BTLocationInfo.  # noqa: E501
        :type: str
        """

        self._node_id = node_id

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_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 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, BTLocationInfo):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
