Home
last modified time | relevance | path

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

/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 …]