Home
last modified time | relevance | path

Searched refs:_FieldDescriptor (Results 1 – 5 of 5) sorted by relevance

/external/nanopb-c/generator/google/protobuf/internal/
Dtype_checkers.py53 _FieldDescriptor = descriptor.FieldDescriptor variable
67 if (cpp_type == _FieldDescriptor.CPPTYPE_STRING and
68 field_type == _FieldDescriptor.TYPE_STRING):
155 _FieldDescriptor.CPPTYPE_INT32: Int32ValueChecker(),
156 _FieldDescriptor.CPPTYPE_INT64: Int64ValueChecker(),
157 _FieldDescriptor.CPPTYPE_UINT32: Uint32ValueChecker(),
158 _FieldDescriptor.CPPTYPE_UINT64: Uint64ValueChecker(),
159 _FieldDescriptor.CPPTYPE_DOUBLE: TypeChecker(
161 _FieldDescriptor.CPPTYPE_FLOAT: TypeChecker(
163 _FieldDescriptor.CPPTYPE_BOOL: TypeChecker(bool, int),
[all …]
Dpython_message.py73 _FieldDescriptor = descriptor_mod.FieldDescriptor variable
145 if not isinstance(extension_handle, _FieldDescriptor):
186 field.type == _FieldDescriptor.TYPE_MESSAGE and
188 field.label == _FieldDescriptor.LABEL_OPTIONAL)
192 is_repeated = (field_descriptor.label == _FieldDescriptor.LABEL_REPEATED)
262 if field.label == _FieldDescriptor.LABEL_REPEATED:
266 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
281 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
315 if field.label == _FieldDescriptor.LABEL_REPEATED:
317 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE: # Composite
[all …]
/external/protobuf/python/google/protobuf/internal/
Dtype_checkers.py59 _FieldDescriptor = descriptor.FieldDescriptor variable
74 if (field.cpp_type == _FieldDescriptor.CPPTYPE_STRING and
75 field.type == _FieldDescriptor.TYPE_STRING):
77 if field.cpp_type == _FieldDescriptor.CPPTYPE_ENUM:
80 return _VALUE_CHECKERS[_FieldDescriptor.CPPTYPE_INT32]
221 _FieldDescriptor.CPPTYPE_INT32: Int32ValueChecker(),
222 _FieldDescriptor.CPPTYPE_INT64: Int64ValueChecker(),
223 _FieldDescriptor.CPPTYPE_UINT32: Uint32ValueChecker(),
224 _FieldDescriptor.CPPTYPE_UINT64: Uint64ValueChecker(),
225 _FieldDescriptor.CPPTYPE_DOUBLE: TypeCheckerWithDefault(
[all …]
Dpython_message.py82 _FieldDescriptor = descriptor_mod.FieldDescriptor variable
232 if not isinstance(extension_handle, _FieldDescriptor):
274 field.type == _FieldDescriptor.TYPE_MESSAGE and
275 field.label == _FieldDescriptor.LABEL_OPTIONAL)
279 return (field.type == _FieldDescriptor.TYPE_MESSAGE and
286 return value_type.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE
290 is_repeated = (field_descriptor.label == _FieldDescriptor.LABEL_REPEATED)
325 if (decode_type == _FieldDescriptor.TYPE_ENUM and
327 decode_type = _FieldDescriptor.TYPE_INT32
378 if field.label != _FieldDescriptor.LABEL_REPEATED:
[all …]
/external/nanopb-c/generator/google/protobuf/
Dreflection.py55 _FieldDescriptor = descriptor_mod.FieldDescriptor variable