Public Member Functions | |
def | __init__ (self, including_default_value_fields=False, preserving_proto_field_name=False, use_integers_for_enums=False, descriptor_pool=None) |
def | ToJsonString (self, message, indent, sort_keys) |
Public Attributes | |
descriptor_pool | |
including_default_value_fields | |
preserving_proto_field_name | |
use_integers_for_enums | |
Private Member Functions | |
def | _AnyMessageToJsonObject (self, message) |
def | _FieldToJsonObject (self, field, value) |
def | _GenericMessageToJsonObject (self, message) |
def | _ListValueMessageToJsonObject (self, message) |
def | _MessageToJsonObject (self, message) |
def | _RegularMessageToJsonObject (self, message, js) |
def | _StructMessageToJsonObject (self, message) |
def | _ValueMessageToJsonObject (self, message) |
def | _WrapperMessageToJsonObject (self, message) |
JSON format printer for protocol message.
Definition at line 177 of file json_format.py.
def google.protobuf.json_format._Printer.__init__ | ( | self, | |
including_default_value_fields = False , |
|||
preserving_proto_field_name = False , |
|||
use_integers_for_enums = False , |
|||
descriptor_pool = None |
|||
) |
Definition at line 180 of file json_format.py.
|
private |
Converts Any message according to Proto3 JSON Specification.
Definition at line 306 of file json_format.py.
|
private |
Converts field value according to Proto3 JSON Specification.
Definition at line 271 of file json_format.py.
|
private |
Converts message according to Proto3 JSON Specification.
Definition at line 327 of file json_format.py.
|
private |
Converts ListValue message according to Proto3 JSON Specification.
Definition at line 349 of file json_format.py.
|
private |
Converts message to an object according to Proto3 JSON Specification.
Definition at line 195 of file json_format.py.
|
private |
Converts normal message according to Proto3 JSON Specification.
Definition at line 206 of file json_format.py.
|
private |
Converts Struct message according to Proto3 JSON Specification.
Definition at line 354 of file json_format.py.
|
private |
Converts Value message according to Proto3 JSON Specification.
Definition at line 333 of file json_format.py.
|
private |
Definition at line 362 of file json_format.py.
def google.protobuf.json_format._Printer.ToJsonString | ( | self, | |
message, | |||
indent, | |||
sort_keys | |||
) |
Definition at line 191 of file json_format.py.
google.protobuf.json_format._Printer.descriptor_pool |
Definition at line 184 of file json_format.py.
google.protobuf.json_format._Printer.including_default_value_fields |
Definition at line 181 of file json_format.py.
google.protobuf.json_format._Printer.preserving_proto_field_name |
Definition at line 182 of file json_format.py.
google.protobuf.json_format._Printer.use_integers_for_enums |
Definition at line 183 of file json_format.py.