API Documentation¶
Nodes¶
- class pyprotobuf.nodes.ParseNode[source]¶
- children = None¶
Type: list[pyprotobuf.nodes.ParseNode]
- parent = None¶
- name = None¶
- comment = None¶
A comment associated with this node.
Type: pyprotobuf.nodes.CommentNode
- add_dependency(dep)[source]¶
Parameters: dep (pyprotobuf.nodes.ParseNode) – The node to add a dependency to.
- class pyprotobuf.nodes.FieldDescriptorNode[source]¶
- Properties:
- label: One of “repeated”, “optional” or “required”. number: The tag/number/id of the field. name: The name of the field. type: Can be a string (Enum of proto types), MessageNode or EnumNode.
- label = None¶
- number = None¶
- name = None¶
- type = None¶
- class pyprotobuf.nodes.ImportNode[source]¶
value: path
- value = None¶
- file_node = None¶
- public = False¶
- class pyprotobuf.nodes.Types[source]¶
- BOOL = 'bool'¶
- STRING = 'string'¶
- INT32 = 'int32'¶
- INT64 = 'int64'¶
- UINT32 = 'uint32'¶
- UINT64 = 'uint64'¶
- SINT32 = 'sint32'¶
- SINT64 = 'sint64'¶
- FIXED32 = 'fixed32'¶
- FIXED64 = 'fixed64'¶
- SFIXED32 = 'sfixed32'¶
- SFIXED64 = 'sfixed64'¶
- DOUBLE = 'double'¶
- FLOAT = 'float'¶
- BYTES = 'bytes'¶
- ENUM = 'enum'¶
- MESSAGE = 'messsage'¶
- GROUP = 'group'¶