# coding: utf-8 """ api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class V1Node(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 = { 'type': 'V1NodeType', 'line_break_node': 'V1LineBreakNode', 'paragraph_node': 'V1ParagraphNode', 'code_block_node': 'V1CodeBlockNode', 'heading_node': 'V1HeadingNode', 'horizontal_rule_node': 'V1HorizontalRuleNode', 'blockquote_node': 'V1BlockquoteNode', 'ordered_list_node': 'V1OrderedListNode', 'unordered_list_node': 'V1UnorderedListNode', 'task_list_node': 'V1TaskListNode', 'math_block_node': 'V1MathBlockNode', 'table_node': 'V1TableNode', 'embedded_content_node': 'V1EmbeddedContentNode', 'text_node': 'V1TextNode', 'bold_node': 'V1BoldNode', 'italic_node': 'V1ItalicNode', 'bold_italic_node': 'V1BoldItalicNode', 'code_node': 'V1CodeNode', 'image_node': 'V1ImageNode', 'link_node': 'V1LinkNode', 'auto_link_node': 'V1AutoLinkNode', 'tag_node': 'V1TagNode', 'strikethrough_node': 'V1StrikethroughNode', 'escaping_character_node': 'V1EscapingCharacterNode', 'math_node': 'V1MathNode', 'highlight_node': 'V1HighlightNode', 'subscript_node': 'V1SubscriptNode', 'superscript_node': 'V1SuperscriptNode', 'referenced_content_node': 'V1ReferencedContentNode', 'spoiler_node': 'V1SpoilerNode' } attribute_map = { 'type': 'type', 'line_break_node': 'lineBreakNode', 'paragraph_node': 'paragraphNode', 'code_block_node': 'codeBlockNode', 'heading_node': 'headingNode', 'horizontal_rule_node': 'horizontalRuleNode', 'blockquote_node': 'blockquoteNode', 'ordered_list_node': 'orderedListNode', 'unordered_list_node': 'unorderedListNode', 'task_list_node': 'taskListNode', 'math_block_node': 'mathBlockNode', 'table_node': 'tableNode', 'embedded_content_node': 'embeddedContentNode', 'text_node': 'textNode', 'bold_node': 'boldNode', 'italic_node': 'italicNode', 'bold_italic_node': 'boldItalicNode', 'code_node': 'codeNode', 'image_node': 'imageNode', 'link_node': 'linkNode', 'auto_link_node': 'autoLinkNode', 'tag_node': 'tagNode', 'strikethrough_node': 'strikethroughNode', 'escaping_character_node': 'escapingCharacterNode', 'math_node': 'mathNode', 'highlight_node': 'highlightNode', 'subscript_node': 'subscriptNode', 'superscript_node': 'superscriptNode', 'referenced_content_node': 'referencedContentNode', 'spoiler_node': 'spoilerNode' } def __init__(self, type=None, line_break_node=None, paragraph_node=None, code_block_node=None, heading_node=None, horizontal_rule_node=None, blockquote_node=None, ordered_list_node=None, unordered_list_node=None, task_list_node=None, math_block_node=None, table_node=None, embedded_content_node=None, text_node=None, bold_node=None, italic_node=None, bold_italic_node=None, code_node=None, image_node=None, link_node=None, auto_link_node=None, tag_node=None, strikethrough_node=None, escaping_character_node=None, math_node=None, highlight_node=None, subscript_node=None, superscript_node=None, referenced_content_node=None, spoiler_node=None): # noqa: E501 """V1Node - a model defined in Swagger""" # noqa: E501 self._type = None self._line_break_node = None self._paragraph_node = None self._code_block_node = None self._heading_node = None self._horizontal_rule_node = None self._blockquote_node = None self._ordered_list_node = None self._unordered_list_node = None self._task_list_node = None self._math_block_node = None self._table_node = None self._embedded_content_node = None self._text_node = None self._bold_node = None self._italic_node = None self._bold_italic_node = None self._code_node = None self._image_node = None self._link_node = None self._auto_link_node = None self._tag_node = None self._strikethrough_node = None self._escaping_character_node = None self._math_node = None self._highlight_node = None self._subscript_node = None self._superscript_node = None self._referenced_content_node = None self._spoiler_node = None self.discriminator = None if type is not None: self.type = type if line_break_node is not None: self.line_break_node = line_break_node if paragraph_node is not None: self.paragraph_node = paragraph_node if code_block_node is not None: self.code_block_node = code_block_node if heading_node is not None: self.heading_node = heading_node if horizontal_rule_node is not None: self.horizontal_rule_node = horizontal_rule_node if blockquote_node is not None: self.blockquote_node = blockquote_node if ordered_list_node is not None: self.ordered_list_node = ordered_list_node if unordered_list_node is not None: self.unordered_list_node = unordered_list_node if task_list_node is not None: self.task_list_node = task_list_node if math_block_node is not None: self.math_block_node = math_block_node if table_node is not None: self.table_node = table_node if embedded_content_node is not None: self.embedded_content_node = embedded_content_node if text_node is not None: self.text_node = text_node if bold_node is not None: self.bold_node = bold_node if italic_node is not None: self.italic_node = italic_node if bold_italic_node is not None: self.bold_italic_node = bold_italic_node if code_node is not None: self.code_node = code_node if image_node is not None: self.image_node = image_node if link_node is not None: self.link_node = link_node if auto_link_node is not None: self.auto_link_node = auto_link_node if tag_node is not None: self.tag_node = tag_node if strikethrough_node is not None: self.strikethrough_node = strikethrough_node if escaping_character_node is not None: self.escaping_character_node = escaping_character_node if math_node is not None: self.math_node = math_node if highlight_node is not None: self.highlight_node = highlight_node if subscript_node is not None: self.subscript_node = subscript_node if superscript_node is not None: self.superscript_node = superscript_node if referenced_content_node is not None: self.referenced_content_node = referenced_content_node if spoiler_node is not None: self.spoiler_node = spoiler_node @property def type(self): """Gets the type of this V1Node. # noqa: E501 :return: The type of this V1Node. # noqa: E501 :rtype: V1NodeType """ return self._type @type.setter def type(self, type): """Sets the type of this V1Node. :param type: The type of this V1Node. # noqa: E501 :type: V1NodeType """ self._type = type @property def line_break_node(self): """Gets the line_break_node of this V1Node. # noqa: E501 :return: The line_break_node of this V1Node. # noqa: E501 :rtype: V1LineBreakNode """ return self._line_break_node @line_break_node.setter def line_break_node(self, line_break_node): """Sets the line_break_node of this V1Node. :param line_break_node: The line_break_node of this V1Node. # noqa: E501 :type: V1LineBreakNode """ self._line_break_node = line_break_node @property def paragraph_node(self): """Gets the paragraph_node of this V1Node. # noqa: E501 :return: The paragraph_node of this V1Node. # noqa: E501 :rtype: V1ParagraphNode """ return self._paragraph_node @paragraph_node.setter def paragraph_node(self, paragraph_node): """Sets the paragraph_node of this V1Node. :param paragraph_node: The paragraph_node of this V1Node. # noqa: E501 :type: V1ParagraphNode """ self._paragraph_node = paragraph_node @property def code_block_node(self): """Gets the code_block_node of this V1Node. # noqa: E501 :return: The code_block_node of this V1Node. # noqa: E501 :rtype: V1CodeBlockNode """ return self._code_block_node @code_block_node.setter def code_block_node(self, code_block_node): """Sets the code_block_node of this V1Node. :param code_block_node: The code_block_node of this V1Node. # noqa: E501 :type: V1CodeBlockNode """ self._code_block_node = code_block_node @property def heading_node(self): """Gets the heading_node of this V1Node. # noqa: E501 :return: The heading_node of this V1Node. # noqa: E501 :rtype: V1HeadingNode """ return self._heading_node @heading_node.setter def heading_node(self, heading_node): """Sets the heading_node of this V1Node. :param heading_node: The heading_node of this V1Node. # noqa: E501 :type: V1HeadingNode """ self._heading_node = heading_node @property def horizontal_rule_node(self): """Gets the horizontal_rule_node of this V1Node. # noqa: E501 :return: The horizontal_rule_node of this V1Node. # noqa: E501 :rtype: V1HorizontalRuleNode """ return self._horizontal_rule_node @horizontal_rule_node.setter def horizontal_rule_node(self, horizontal_rule_node): """Sets the horizontal_rule_node of this V1Node. :param horizontal_rule_node: The horizontal_rule_node of this V1Node. # noqa: E501 :type: V1HorizontalRuleNode """ self._horizontal_rule_node = horizontal_rule_node @property def blockquote_node(self): """Gets the blockquote_node of this V1Node. # noqa: E501 :return: The blockquote_node of this V1Node. # noqa: E501 :rtype: V1BlockquoteNode """ return self._blockquote_node @blockquote_node.setter def blockquote_node(self, blockquote_node): """Sets the blockquote_node of this V1Node. :param blockquote_node: The blockquote_node of this V1Node. # noqa: E501 :type: V1BlockquoteNode """ self._blockquote_node = blockquote_node @property def ordered_list_node(self): """Gets the ordered_list_node of this V1Node. # noqa: E501 :return: The ordered_list_node of this V1Node. # noqa: E501 :rtype: V1OrderedListNode """ return self._ordered_list_node @ordered_list_node.setter def ordered_list_node(self, ordered_list_node): """Sets the ordered_list_node of this V1Node. :param ordered_list_node: The ordered_list_node of this V1Node. # noqa: E501 :type: V1OrderedListNode """ self._ordered_list_node = ordered_list_node @property def unordered_list_node(self): """Gets the unordered_list_node of this V1Node. # noqa: E501 :return: The unordered_list_node of this V1Node. # noqa: E501 :rtype: V1UnorderedListNode """ return self._unordered_list_node @unordered_list_node.setter def unordered_list_node(self, unordered_list_node): """Sets the unordered_list_node of this V1Node. :param unordered_list_node: The unordered_list_node of this V1Node. # noqa: E501 :type: V1UnorderedListNode """ self._unordered_list_node = unordered_list_node @property def task_list_node(self): """Gets the task_list_node of this V1Node. # noqa: E501 :return: The task_list_node of this V1Node. # noqa: E501 :rtype: V1TaskListNode """ return self._task_list_node @task_list_node.setter def task_list_node(self, task_list_node): """Sets the task_list_node of this V1Node. :param task_list_node: The task_list_node of this V1Node. # noqa: E501 :type: V1TaskListNode """ self._task_list_node = task_list_node @property def math_block_node(self): """Gets the math_block_node of this V1Node. # noqa: E501 :return: The math_block_node of this V1Node. # noqa: E501 :rtype: V1MathBlockNode """ return self._math_block_node @math_block_node.setter def math_block_node(self, math_block_node): """Sets the math_block_node of this V1Node. :param math_block_node: The math_block_node of this V1Node. # noqa: E501 :type: V1MathBlockNode """ self._math_block_node = math_block_node @property def table_node(self): """Gets the table_node of this V1Node. # noqa: E501 :return: The table_node of this V1Node. # noqa: E501 :rtype: V1TableNode """ return self._table_node @table_node.setter def table_node(self, table_node): """Sets the table_node of this V1Node. :param table_node: The table_node of this V1Node. # noqa: E501 :type: V1TableNode """ self._table_node = table_node @property def embedded_content_node(self): """Gets the embedded_content_node of this V1Node. # noqa: E501 :return: The embedded_content_node of this V1Node. # noqa: E501 :rtype: V1EmbeddedContentNode """ return self._embedded_content_node @embedded_content_node.setter def embedded_content_node(self, embedded_content_node): """Sets the embedded_content_node of this V1Node. :param embedded_content_node: The embedded_content_node of this V1Node. # noqa: E501 :type: V1EmbeddedContentNode """ self._embedded_content_node = embedded_content_node @property def text_node(self): """Gets the text_node of this V1Node. # noqa: E501 :return: The text_node of this V1Node. # noqa: E501 :rtype: V1TextNode """ return self._text_node @text_node.setter def text_node(self, text_node): """Sets the text_node of this V1Node. :param text_node: The text_node of this V1Node. # noqa: E501 :type: V1TextNode """ self._text_node = text_node @property def bold_node(self): """Gets the bold_node of this V1Node. # noqa: E501 :return: The bold_node of this V1Node. # noqa: E501 :rtype: V1BoldNode """ return self._bold_node @bold_node.setter def bold_node(self, bold_node): """Sets the bold_node of this V1Node. :param bold_node: The bold_node of this V1Node. # noqa: E501 :type: V1BoldNode """ self._bold_node = bold_node @property def italic_node(self): """Gets the italic_node of this V1Node. # noqa: E501 :return: The italic_node of this V1Node. # noqa: E501 :rtype: V1ItalicNode """ return self._italic_node @italic_node.setter def italic_node(self, italic_node): """Sets the italic_node of this V1Node. :param italic_node: The italic_node of this V1Node. # noqa: E501 :type: V1ItalicNode """ self._italic_node = italic_node @property def bold_italic_node(self): """Gets the bold_italic_node of this V1Node. # noqa: E501 :return: The bold_italic_node of this V1Node. # noqa: E501 :rtype: V1BoldItalicNode """ return self._bold_italic_node @bold_italic_node.setter def bold_italic_node(self, bold_italic_node): """Sets the bold_italic_node of this V1Node. :param bold_italic_node: The bold_italic_node of this V1Node. # noqa: E501 :type: V1BoldItalicNode """ self._bold_italic_node = bold_italic_node @property def code_node(self): """Gets the code_node of this V1Node. # noqa: E501 :return: The code_node of this V1Node. # noqa: E501 :rtype: V1CodeNode """ return self._code_node @code_node.setter def code_node(self, code_node): """Sets the code_node of this V1Node. :param code_node: The code_node of this V1Node. # noqa: E501 :type: V1CodeNode """ self._code_node = code_node @property def image_node(self): """Gets the image_node of this V1Node. # noqa: E501 :return: The image_node of this V1Node. # noqa: E501 :rtype: V1ImageNode """ return self._image_node @image_node.setter def image_node(self, image_node): """Sets the image_node of this V1Node. :param image_node: The image_node of this V1Node. # noqa: E501 :type: V1ImageNode """ self._image_node = image_node @property def link_node(self): """Gets the link_node of this V1Node. # noqa: E501 :return: The link_node of this V1Node. # noqa: E501 :rtype: V1LinkNode """ return self._link_node @link_node.setter def link_node(self, link_node): """Sets the link_node of this V1Node. :param link_node: The link_node of this V1Node. # noqa: E501 :type: V1LinkNode """ self._link_node = link_node @property def auto_link_node(self): """Gets the auto_link_node of this V1Node. # noqa: E501 :return: The auto_link_node of this V1Node. # noqa: E501 :rtype: V1AutoLinkNode """ return self._auto_link_node @auto_link_node.setter def auto_link_node(self, auto_link_node): """Sets the auto_link_node of this V1Node. :param auto_link_node: The auto_link_node of this V1Node. # noqa: E501 :type: V1AutoLinkNode """ self._auto_link_node = auto_link_node @property def tag_node(self): """Gets the tag_node of this V1Node. # noqa: E501 :return: The tag_node of this V1Node. # noqa: E501 :rtype: V1TagNode """ return self._tag_node @tag_node.setter def tag_node(self, tag_node): """Sets the tag_node of this V1Node. :param tag_node: The tag_node of this V1Node. # noqa: E501 :type: V1TagNode """ self._tag_node = tag_node @property def strikethrough_node(self): """Gets the strikethrough_node of this V1Node. # noqa: E501 :return: The strikethrough_node of this V1Node. # noqa: E501 :rtype: V1StrikethroughNode """ return self._strikethrough_node @strikethrough_node.setter def strikethrough_node(self, strikethrough_node): """Sets the strikethrough_node of this V1Node. :param strikethrough_node: The strikethrough_node of this V1Node. # noqa: E501 :type: V1StrikethroughNode """ self._strikethrough_node = strikethrough_node @property def escaping_character_node(self): """Gets the escaping_character_node of this V1Node. # noqa: E501 :return: The escaping_character_node of this V1Node. # noqa: E501 :rtype: V1EscapingCharacterNode """ return self._escaping_character_node @escaping_character_node.setter def escaping_character_node(self, escaping_character_node): """Sets the escaping_character_node of this V1Node. :param escaping_character_node: The escaping_character_node of this V1Node. # noqa: E501 :type: V1EscapingCharacterNode """ self._escaping_character_node = escaping_character_node @property def math_node(self): """Gets the math_node of this V1Node. # noqa: E501 :return: The math_node of this V1Node. # noqa: E501 :rtype: V1MathNode """ return self._math_node @math_node.setter def math_node(self, math_node): """Sets the math_node of this V1Node. :param math_node: The math_node of this V1Node. # noqa: E501 :type: V1MathNode """ self._math_node = math_node @property def highlight_node(self): """Gets the highlight_node of this V1Node. # noqa: E501 :return: The highlight_node of this V1Node. # noqa: E501 :rtype: V1HighlightNode """ return self._highlight_node @highlight_node.setter def highlight_node(self, highlight_node): """Sets the highlight_node of this V1Node. :param highlight_node: The highlight_node of this V1Node. # noqa: E501 :type: V1HighlightNode """ self._highlight_node = highlight_node @property def subscript_node(self): """Gets the subscript_node of this V1Node. # noqa: E501 :return: The subscript_node of this V1Node. # noqa: E501 :rtype: V1SubscriptNode """ return self._subscript_node @subscript_node.setter def subscript_node(self, subscript_node): """Sets the subscript_node of this V1Node. :param subscript_node: The subscript_node of this V1Node. # noqa: E501 :type: V1SubscriptNode """ self._subscript_node = subscript_node @property def superscript_node(self): """Gets the superscript_node of this V1Node. # noqa: E501 :return: The superscript_node of this V1Node. # noqa: E501 :rtype: V1SuperscriptNode """ return self._superscript_node @superscript_node.setter def superscript_node(self, superscript_node): """Sets the superscript_node of this V1Node. :param superscript_node: The superscript_node of this V1Node. # noqa: E501 :type: V1SuperscriptNode """ self._superscript_node = superscript_node @property def referenced_content_node(self): """Gets the referenced_content_node of this V1Node. # noqa: E501 :return: The referenced_content_node of this V1Node. # noqa: E501 :rtype: V1ReferencedContentNode """ return self._referenced_content_node @referenced_content_node.setter def referenced_content_node(self, referenced_content_node): """Sets the referenced_content_node of this V1Node. :param referenced_content_node: The referenced_content_node of this V1Node. # noqa: E501 :type: V1ReferencedContentNode """ self._referenced_content_node = referenced_content_node @property def spoiler_node(self): """Gets the spoiler_node of this V1Node. # noqa: E501 :return: The spoiler_node of this V1Node. # noqa: E501 :rtype: V1SpoilerNode """ return self._spoiler_node @spoiler_node.setter def spoiler_node(self, spoiler_node): """Sets the spoiler_node of this V1Node. :param spoiler_node: The spoiler_node of this V1Node. # noqa: E501 :type: V1SpoilerNode """ self._spoiler_node = spoiler_node 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(V1Node, 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, V1Node): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other