OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:JsonValue
(Results
1 - 4
of
4
) sorted by null
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
extra_types_test.py
35
extra_types._ValidateJsonValue(extra_types.
JsonValue
())
38
extra_types.
JsonValue
(is_null=True, string_value='a'))
41
extra_types.
JsonValue
(integer_value=3, string_value='a'))
44
self.assertTranslations(None, extra_types.
JsonValue
(is_null=True))
47
seventeen = extra_types.
JsonValue
(integer_value=17)
52
json_pi = extra_types.
JsonValue
(double_value=math.pi)
60
extra_types.
JsonValue
(integer_value=3),
61
extra_types.
JsonValue
(string_value='four'),
62
extra_types.
JsonValue
(boolean_value=False),
71
value = encoding.JsonToMessage(extra_types.
JsonValue
, array_json
[
all
...]
extra_types.py
27
'
JsonValue
',
68
'Malformed
JsonValue
: %s' % json_value)
72
"""Convert the given
JsonValue
to a json string."""
73
util.Typecheck(json_value,
JsonValue
)
106
"""Convert the given python value to a
JsonValue
."""
108
return
JsonValue
(is_null=True)
110
return
JsonValue
(boolean_value=py_value)
112
return
JsonValue
(string_value=py_value)
116
return
JsonValue
(integer_value=py_value)
117
return
JsonValue
(double_value=float(py_value)
[
all
...]
encoding.py
690
"""Convert the provided list-as-
JsonValue
to a list."""
698
"""Return True if msg is a repeated value as a
JsonValue
."""
701
if isinstance(msg, extra_types.
JsonValue
) and msg.array_value:
707
if isinstance(msg, extra_types.
JsonValue
):
encoding_test.py
110
value = messages.MessageField(extra_types.
JsonValue
, 2, repeated=True)
Completed in 1308 milliseconds