ɗ d Z dZddlZddlmZ ddlZddlZddlmZ ddl Z ddl Z ddlmZ ddl mZ ddl mZ dd l mZ d Z eej j ej j ej j ej j g Z eej j ej j g Z eej j ej j g ZdZdZd Z e j d Z! e j d Z" G d de# Z$ G d de$ Z% G d de$ Z& d5dZ' d6dZ(d Z) G d de* Z+d Z,d Z-d Z. d7d"Z/ d7d#Z0e1e2fZ3 G d$ d%e* Z4d8d&Z5d' Z6d( Z7d) Z8d*d+gd,d-gd,d-gd.d/gd0d1gd,d-gd2d3gd4Z9dS )9at Contains routines for printing protocol messages in JSON format. Simple usage example: # Create a proto object and serialize it to a json format string. message = my_proto_pb2.MyMessage(foo='bar') json_string = json_format.MessageToJson(message) # Parse a json format string to proto object. message = json_format.Parse(json_string, my_proto_pb2.MyMessage()) zjieluo@google.com (Jie Luo) N)OrderedDict)methodcaller) type_checkers) descriptor)message_factory)symbol_databasez%Y-%m-%dT%H:%M:%SInfinityz -InfinityNaNu. [-](?![-])|(?