Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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.py81 _FieldDescriptor = descriptor_mod.FieldDescriptor variable
227 if not isinstance(extension_handle, _FieldDescriptor):
269 field.type == _FieldDescriptor.TYPE_MESSAGE and
270 field.label == _FieldDescriptor.LABEL_OPTIONAL)
274 return (field.type == _FieldDescriptor.TYPE_MESSAGE and
281 return value_type.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE
285 is_repeated = (field_descriptor.label == _FieldDescriptor.LABEL_REPEATED)
320 if (decode_type == _FieldDescriptor.TYPE_ENUM and
322 decode_type = _FieldDescriptor.TYPE_INT32
373 if field.label != _FieldDescriptor.LABEL_REPEATED:
[all …]