Public Member Functions | Public Attributes | Private Member Functions | List of all members
google.protobuf.json_format._Printer Class Reference
Inheritance diagram for google.protobuf.json_format._Printer:
Inheritance graph
[legend]

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)
 

Detailed Description

JSON format printer for protocol message.

Definition at line 177 of file json_format.py.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ _AnyMessageToJsonObject()

def google.protobuf.json_format._Printer._AnyMessageToJsonObject (   self,
  message 
)
private
Converts Any message according to Proto3 JSON Specification.

Definition at line 306 of file json_format.py.

◆ _FieldToJsonObject()

def google.protobuf.json_format._Printer._FieldToJsonObject (   self,
  field,
  value 
)
private
Converts field value according to Proto3 JSON Specification.

Definition at line 271 of file json_format.py.

◆ _GenericMessageToJsonObject()

def google.protobuf.json_format._Printer._GenericMessageToJsonObject (   self,
  message 
)
private
Converts message according to Proto3 JSON Specification.

Definition at line 327 of file json_format.py.

◆ _ListValueMessageToJsonObject()

def google.protobuf.json_format._Printer._ListValueMessageToJsonObject (   self,
  message 
)
private
Converts ListValue message according to Proto3 JSON Specification.

Definition at line 349 of file json_format.py.

◆ _MessageToJsonObject()

def google.protobuf.json_format._Printer._MessageToJsonObject (   self,
  message 
)
private
Converts message to an object according to Proto3 JSON Specification.

Definition at line 195 of file json_format.py.

◆ _RegularMessageToJsonObject()

def google.protobuf.json_format._Printer._RegularMessageToJsonObject (   self,
  message,
  js 
)
private
Converts normal message according to Proto3 JSON Specification.

Definition at line 206 of file json_format.py.

◆ _StructMessageToJsonObject()

def google.protobuf.json_format._Printer._StructMessageToJsonObject (   self,
  message 
)
private
Converts Struct message according to Proto3 JSON Specification.

Definition at line 354 of file json_format.py.

◆ _ValueMessageToJsonObject()

def google.protobuf.json_format._Printer._ValueMessageToJsonObject (   self,
  message 
)
private
Converts Value message according to Proto3 JSON Specification.

Definition at line 333 of file json_format.py.

◆ _WrapperMessageToJsonObject()

def google.protobuf.json_format._Printer._WrapperMessageToJsonObject (   self,
  message 
)
private

Definition at line 362 of file json_format.py.

◆ ToJsonString()

def google.protobuf.json_format._Printer.ToJsonString (   self,
  message,
  indent,
  sort_keys 
)

Definition at line 191 of file json_format.py.

Member Data Documentation

◆ descriptor_pool

google.protobuf.json_format._Printer.descriptor_pool

Definition at line 184 of file json_format.py.

◆ including_default_value_fields

google.protobuf.json_format._Printer.including_default_value_fields

Definition at line 181 of file json_format.py.

◆ preserving_proto_field_name

google.protobuf.json_format._Printer.preserving_proto_field_name

Definition at line 182 of file json_format.py.

◆ use_integers_for_enums

google.protobuf.json_format._Printer.use_integers_for_enums

Definition at line 183 of file json_format.py.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10