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 __init__ (self, including_default_value_fields=False, preserving_proto_field_name=False, use_integers_for_enums=False, descriptor_pool=None, float_precision=None)
 
def ToJsonString (self, message, indent, sort_keys)
 
def ToJsonString (self, message, indent, sort_keys)
 

Public Attributes

 descriptor_pool
 
 float_format
 
 including_default_value_fields
 
 preserving_proto_field_name
 
 use_integers_for_enums
 

Private Member Functions

def _AnyMessageToJsonObject (self, message)
 
def _AnyMessageToJsonObject (self, message)
 
def _FieldToJsonObject (self, field, value)
 
def _FieldToJsonObject (self, field, value)
 
def _GenericMessageToJsonObject (self, message)
 
def _GenericMessageToJsonObject (self, message)
 
def _ListValueMessageToJsonObject (self, message)
 
def _ListValueMessageToJsonObject (self, message)
 
def _MessageToJsonObject (self, message)
 
def _MessageToJsonObject (self, message)
 
def _RegularMessageToJsonObject (self, message, js)
 
def _RegularMessageToJsonObject (self, message, js)
 
def _StructMessageToJsonObject (self, message)
 
def _StructMessageToJsonObject (self, message)
 
def _ValueMessageToJsonObject (self, message)
 
def _ValueMessageToJsonObject (self, message)
 
def _WrapperMessageToJsonObject (self, message)
 
def _WrapperMessageToJsonObject (self, message)
 

Detailed Description

JSON format printer for protocol message.

Definition at line 177 of file bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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 
)

◆ __init__() [2/2]

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,
  float_precision = None 
)

Member Function Documentation

◆ _AnyMessageToJsonObject() [1/2]

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

Definition at line 306 of file bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

◆ _AnyMessageToJsonObject() [2/2]

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

Definition at line 315 of file protobuf/python/google/protobuf/json_format.py.

◆ _FieldToJsonObject() [1/2]

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 bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

◆ _FieldToJsonObject() [2/2]

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

Definition at line 272 of file protobuf/python/google/protobuf/json_format.py.

◆ _GenericMessageToJsonObject() [1/2]

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

Definition at line 327 of file bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

◆ _GenericMessageToJsonObject() [2/2]

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

Definition at line 336 of file protobuf/python/google/protobuf/json_format.py.

◆ _ListValueMessageToJsonObject() [1/2]

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

Definition at line 349 of file bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

◆ _ListValueMessageToJsonObject() [2/2]

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

Definition at line 358 of file protobuf/python/google/protobuf/json_format.py.

◆ _MessageToJsonObject() [1/2]

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 bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

◆ _MessageToJsonObject() [2/2]

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

Definition at line 197 of file protobuf/python/google/protobuf/json_format.py.

◆ _RegularMessageToJsonObject() [1/2]

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 bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

◆ _RegularMessageToJsonObject() [2/2]

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

Definition at line 208 of file protobuf/python/google/protobuf/json_format.py.

◆ _StructMessageToJsonObject() [1/2]

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

Definition at line 354 of file bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

◆ _StructMessageToJsonObject() [2/2]

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

Definition at line 363 of file protobuf/python/google/protobuf/json_format.py.

◆ _ValueMessageToJsonObject() [1/2]

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

Definition at line 333 of file bloaty/third_party/protobuf/python/google/protobuf/json_format.py.

◆ _ValueMessageToJsonObject() [2/2]

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

Definition at line 342 of file protobuf/python/google/protobuf/json_format.py.

◆ _WrapperMessageToJsonObject() [1/2]

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

◆ _WrapperMessageToJsonObject() [2/2]

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

◆ ToJsonString() [1/2]

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

◆ ToJsonString() [2/2]

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

Member Data Documentation

◆ descriptor_pool

google.protobuf.json_format._Printer.descriptor_pool

◆ float_format

google.protobuf.json_format._Printer.float_format

◆ including_default_value_fields

google.protobuf.json_format._Printer.including_default_value_fields

◆ preserving_proto_field_name

google.protobuf.json_format._Printer.preserving_proto_field_name

◆ use_integers_for_enums

google.protobuf.json_format._Printer.use_integers_for_enums

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:28