Home
last modified time | relevance | path

Searched refs:MessageToJson (Results 1 – 12 of 12) sorted by relevance

/external/protobuf/python/google/protobuf/internal/
Djson_format_test.py101 json_format.Parse(json_format.MessageToJson(message),
117 self.assertEqual(json_format.MessageToJson(message),
126 self.assertEqual(json.loads(json_format.MessageToJson(message)),
159 json.loads(json_format.MessageToJson(message)),
169 self.assertEqual(json_format.MessageToJson(message),
181 message_text = json_format.MessageToJson(
276 message_text = json_format.MessageToJson(
302 json_format.MessageToJson(message),
315 json.loads(json_format.MessageToJson(message, True)),
353 json.loads(json_format.MessageToJson(message, True)),
[all …]
/external/python/apitools/apitools/base/py/
Dencoding_test.py292 self.assertEqual(urlsafe_b64_msg, encoding.MessageToJson(msg))
299 self.assertEqual(enc_rep_msg, encoding.MessageToJson(rep_msg))
313 from_msg_json_data = encoding.MessageToJson(msg)
338 encoding.MessageToJson(msg))
358 encoding.MessageToJson(msg))
363 new_msg = encoding.MessageToJson(msg)
368 self.assertEqual('{}', encoding.MessageToJson(msg))
371 encoding.MessageToJson(msg, include_fields=['field']))
374 encoding.MessageToJson(msg, include_fields=['repfield']))
382 encoding.MessageToJson(msg, include_fields=['nested']))
[all …]
Dextra_types_test.py128 self.assertEqual(json_value, encoding.MessageToJson(value))
129 self.assertEqual(json_obj, encoding.MessageToJson(obj))
141 self.assertEqual(msg_json, encoding.MessageToJson(msg))
159 self.assertEqual(msg_dict, json.loads(encoding.MessageToJson(msg)))
175 return encoding.MessageToJson(msg)
Dencoding_helper.py112 return JsonToMessage(type(message), MessageToJson(message))
115 def MessageToJson(message, include_fields=None): function
134 return json.loads(MessageToJson(message))
157 return json.loads(MessageToJson(message))
Dbase_api.py440 return encoding.MessageToJson(
/external/perfetto/src/trace_processor/util/
Dproto_to_json.cc81 return MessageToJson( in FieldToJson()
252 return MessageToJson(*options, indent); in FieldOptionsToJson()
260 std::string MessageToJson(const google::protobuf::Message& message, in MessageToJson() function
Dproto_to_json.h26 std::string MessageToJson(const google::protobuf::Message& message,
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_DecodeJSONExample.pbtxt23 `tf.train.Example` (created with `json_format.MessageToJson`, following the
/external/tensorflow/tensorflow/tools/test/
Drun_and_gather_logs.py96 json_test_results = json_format.MessageToJson(test_results)
/external/protobuf/conformance/
Dconformance_python.py163 response.json_payload = json_format.MessageToJson(test_message)
/external/protobuf/python/google/protobuf/
Djson_format.py99 def MessageToJson( function
/external/tensorflow/tensorflow/python/kernel_tests/
Dparsing_ops_test.py2368 [json_format.MessageToJson(m) for m in examples.flatten()],