Searched refs:MessageToJson (Results 1 – 10 of 10) sorted by relevance
/external/protobuf/python/google/protobuf/internal/ |
D | json_format_test.py | 97 json_format.Parse(json_format.MessageToJson(message), 113 self.assertEqual(json_format.MessageToJson(message), 122 self.assertEqual(json.loads(json_format.MessageToJson(message)), 155 json.loads(json_format.MessageToJson(message)), 169 json_format.MessageToJson(message), 182 json.loads(json_format.MessageToJson(message, True)), 223 json.loads(json_format.MessageToJson(message, True)), 239 json_format.MessageToJson(message, True), 243 json_format.MessageToJson(message, True), 267 json.loads(json_format.MessageToJson(message, True)), [all …]
|
/external/python/apitools/apitools/base/py/ |
D | encoding_test.py | 171 self.assertEqual(urlsafe_b64_msg, encoding.MessageToJson(msg)) 178 self.assertEqual(enc_rep_msg, encoding.MessageToJson(rep_msg)) 182 self.assertEqual('{}', encoding.MessageToJson(msg)) 185 encoding.MessageToJson(msg, include_fields=['field'])) 188 encoding.MessageToJson(msg, include_fields=['repfield'])) 196 encoding.MessageToJson(msg, include_fields=['nested'])) 199 encoding.MessageToJson( 204 encoding.MessageToJson(msg, include_fields=['nested.nested'])) 208 encoding.MessageToJson(msg, include_fields=['nested.nested_list']), 213 encoding.MessageToJson( [all …]
|
D | extra_types_test.py | 129 self.assertEqual(json_value, encoding.MessageToJson(value)) 130 self.assertEqual(json_obj, encoding.MessageToJson(obj)) 142 self.assertEqual(msg_json, encoding.MessageToJson(msg)) 160 self.assertEqual(msg_dict, json.loads(encoding.MessageToJson(msg))) 176 return encoding.MessageToJson(msg)
|
D | base_cli.py | 51 'json': encoding.MessageToJson,
|
D | encoding.py | 99 def MessageToJson(message, include_fields=None): function 118 return json.loads(MessageToJson(message)) 140 return json.loads(MessageToJson(message))
|
D | base_api.py | 436 return encoding.MessageToJson(
|
/external/protobuf/conformance/ |
D | conformance_python.py | 84 response.json_payload = json_format.MessageToJson(test_message)
|
/external/tensorflow/tensorflow/tools/test/ |
D | run_and_gather_logs.py | 94 json_test_results = json_format.MessageToJson(test_results)
|
/external/protobuf/python/google/protobuf/ |
D | json_format.py | 80 def MessageToJson(message, including_default_value_fields=False): function
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | parsing_ops_test.py | 1626 [json_format.MessageToJson(m) for m in examples.flatten()],
|