JSON format printer for protocol message.
|
__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
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|