Home
last modified time | relevance | path

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

/external/protobuf/python/google/protobuf/internal/
Djson_format_test.py97 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/
Dencoding_test.py171 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 …]
Dextra_types_test.py129 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)
Dbase_cli.py51 'json': encoding.MessageToJson,
Dencoding.py99 def MessageToJson(message, include_fields=None): function
118 return json.loads(MessageToJson(message))
140 return json.loads(MessageToJson(message))
Dbase_api.py436 return encoding.MessageToJson(
/external/protobuf/conformance/
Dconformance_python.py84 response.json_payload = json_format.MessageToJson(test_message)
/external/tensorflow/tensorflow/tools/test/
Drun_and_gather_logs.py94 json_test_results = json_format.MessageToJson(test_results)
/external/protobuf/python/google/protobuf/
Djson_format.py80 def MessageToJson(message, including_default_value_fields=False): function
/external/tensorflow/tensorflow/python/kernel_tests/
Dparsing_ops_test.py1626 [json_format.MessageToJson(m) for m in examples.flatten()],