Package google :: Package protobuf :: Module json_format :: Class _Printer
[hide private]
[frames] | no frames]

Class _Printer

source code

object --+
         |
        _Printer

JSON format printer for protocol message.

Instance Methods [hide private]
 
__init__(self, including_default_value_fields=False, preserving_proto_field_name=False, use_integers_for_enums=False, descriptor_pool=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
ToJsonString(self, message, indent, sort_keys) source code
 
_MessageToJsonObject(self, message)
Converts message to an object according to Proto3 JSON Specification.
source code
 
_RegularMessageToJsonObject(self, message, js)
Converts normal message according to Proto3 JSON Specification.
source code
 
_FieldToJsonObject(self, field, value)
Converts field value according to Proto3 JSON Specification.
source code
 
_AnyMessageToJsonObject(self, message)
Converts Any message according to Proto3 JSON Specification.
source code
 
_GenericMessageToJsonObject(self, message)
Converts message according to Proto3 JSON Specification.
source code
 
_ValueMessageToJsonObject(self, message)
Converts Value message according to Proto3 JSON Specification.
source code
 
_ListValueMessageToJsonObject(self, message)
Converts ListValue message according to Proto3 JSON Specification.
source code
 
_StructMessageToJsonObject(self, message)
Converts Struct message according to Proto3 JSON Specification.
source code
 
_WrapperMessageToJsonObject(self, message) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, including_default_value_fields=False, preserving_proto_field_name=False, use_integers_for_enums=False, descriptor_pool=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)