Home
last modified time | relevance | path

Searched refs:cpp_type (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Djson_format.py169 field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE) or
191 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
193 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM:
200 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_STRING:
206 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_BOOL:
208 elif field.cpp_type in _INT64_TYPES:
210 elif field.cpp_type in _FLOAT_TYPES:
414 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
432 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
536 if value_field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
[all …]
Dtext_format.py351 if field.cpp_type != descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
391 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
393 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM:
399 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_STRING:
412 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_BOOL:
417 elif field.cpp_type in _FLOAT_TYPES and self.float_format is not None:
659 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
769 value_cpptype = field.message_type.fields_by_name['value'].cpp_type
Ddescriptor.py497 def __new__(cls, name, full_name, index, number, type, cpp_type, label, argument
507 def __init__(self, name, full_name, index, number, type, cpp_type, label, argument
525 self.cpp_type = cpp_type
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_extension.cc68 switch (descriptor_->cpp_type()) { in ExtensionGenerator()
86 type_traits_.append(PrimitiveTypeName(descriptor_->cpp_type())); in ExtensionGenerator()
141 if (descriptor_->cpp_type() == FieldDescriptor::CPPTYPE_STRING) { in GenerateDefinition()
179 switch (descriptor_->cpp_type()) { in GenerateRegistration()
Dcpp_field.cc138 switch (field->cpp_type()) { in MakeGenerator()
157 switch (field->cpp_type()) { in MakeGenerator()
172 switch (field->cpp_type()) { in MakeGenerator()
Dcpp_helpers.cc224 field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) { in IsFieldDependent()
236 if (field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in IsFieldDependent()
363 switch (field->cpp_type()) { in DefaultValue()
574 switch (field->cpp_type()) { in IsStringOrMessage()
594 GOOGLE_DCHECK(field->cpp_type() == FieldDescriptor::CPPTYPE_STRING); in EffectiveStringCType()
Dcpp_map_field.cc63 (*variables)["key_cpp"] = PrimitiveTypeName(key->cpp_type()); in SetMessageVariables()
64 switch (val->cpp_type()) { in SetMessageVariables()
74 (*variables)["val_cpp"] = PrimitiveTypeName(val->cpp_type()); in SetMessageVariables()
Dcpp_message.cc139 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in HasRequiredFields()
162 switch (field->cpp_type()) { in EstimateAlignmentSize()
300 if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) { in EmitFieldNonDefaultCondition()
305 } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in EmitFieldNonDefaultCondition()
337 return field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE; in HasHasMethod()
346 (*variables)["key"] = PrimitiveTypeName(key->cpp_type()); in CollectMapInfo()
347 switch (val->cpp_type()) { in CollectMapInfo()
355 (*variables)["val"] = PrimitiveTypeName(val->cpp_type()); in CollectMapInfo()
503 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in GenerateFieldAccessorDeclarations()
638 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in GenerateSingularFieldHasBits()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Dextension_dict.cc68 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ReleaseExtension()
81 } else if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ReleaseExtension()
102 descriptor->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in subscript()
121 descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in subscript()
132 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in subscript()
170 descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ass_subscript()
Dmap_container.cc134 switch (field_descriptor->cpp_type()) { in PythonToMapKey()
171 field_descriptor->cpp_type()); in PythonToMapKey()
179 switch (field_descriptor->cpp_type()) { in MapKeyToPython()
195 field_descriptor->cpp_type()); in MapKeyToPython()
204 switch (field_descriptor->cpp_type()) { in MapValueRefToPython()
226 field_descriptor->cpp_type()); in MapValueRefToPython()
237 switch (field_descriptor->cpp_type()) { in PythonToMapValueRef()
303 field_descriptor->cpp_type()); in PythonToMapValueRef()
Dmessage.cc445 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in VisitCompositeField()
463 } else if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in VisitCompositeField()
782 if (existing_field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in CheckAndGetInteger()
1077 if (value_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in CheckAndGetInteger()
1106 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in CheckAndGetInteger()
1135 } else if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in CheckAndGetInteger()
1168 } else if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in CheckAndGetInteger()
1186 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in CheckAndGetInteger()
1398 if (field_descriptor->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in CheckAndGetInteger()
1445 field_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in CheckAndGetInteger()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dfield_comparator.cc67 switch (field->cpp_type()) { in Compare()
128 << " of CppType = " << field->cpp_type(); in Compare()
142 GOOGLE_CHECK(FieldDescriptor::CPPTYPE_FLOAT == field->cpp_type() || in SetFractionAndMargin()
143 FieldDescriptor::CPPTYPE_DOUBLE == field->cpp_type()) in SetFractionAndMargin()
Dfield_mask_util.cc144 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in InternalIsValidPath()
369 field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in MergeMessage()
381 switch (field->cpp_type()) { in MergeMessage()
417 switch (field->cpp_type()) { in MergeMessage()
462 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in TrimMessage()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Ddynamic_message.cc113 switch (field->cpp_type()) { in FieldSpaceUsed()
138 switch (field->cpp_type()) { in FieldSpaceUsed()
169 switch (field->cpp_type()) { in OneofFieldSpaceUsed()
352 switch (field->cpp_type()) { in SharedCtor()
448 if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) { in ~DynamicMessage()
463 } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ~DynamicMessage()
472 switch (field->cpp_type()) { in ~DynamicMessage()
509 } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) { in ~DynamicMessage()
522 } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ~DynamicMessage()
549 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in CrossLinkPrototypes()
[all …]
Dreflection.h98 internal::RefTypeTraits<T>::cpp_type, NULL); in RepeatedFieldRef()
163 message, field, internal::RefTypeTraits<T>::cpp_type, NULL); in MutableRepeatedFieldRef()
220 internal::RefTypeTraits<T>::cpp_type, in RepeatedFieldRef()
295 message, field, internal::RefTypeTraits<T>::cpp_type, in MutableRepeatedFieldRef()
511 static const FieldDescriptor::CppType cpp_type = \
531 static const FieldDescriptor::CppType cpp_type =
532 PrimitiveTraits<T>::cpp_type;
547 static const FieldDescriptor::CppType cpp_type =
562 static const FieldDescriptor::CppType cpp_type =
590 static const FieldDescriptor::CppType cpp_type =
Dreflection_ops.cc74 switch (field->cpp_type()) { in Merge()
99 switch (field->cpp_type()) { in Merge()
159 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in IsInitialized()
190 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in DiscardUnknownFields()
245 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in FindInitializationErrors()
Dgenerated_message_reflection.cc123 " Field type: " << cpptype_names_[field->cpp_type()]; in ReportReflectionUsageTypeError()
148 if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
294 switch (field->cpp_type()) { in SpaceUsed()
339 switch (field->cpp_type()) { in SpaceUsed()
397 switch (field->cpp_type()) { in SwapField()
439 GOOGLE_LOG(FATAL) << "Unimplemented type: " << field->cpp_type(); in SwapField()
442 switch (field->cpp_type()) { in SwapField()
508 GOOGLE_LOG(FATAL) << "Unimplemented type: " << field->cpp_type(); in SwapField()
536 switch (field1->cpp_type()) { in SwapOneofField()
560 GOOGLE_LOG(FATAL) << "Unimplemented type: " << field1->cpp_type(); in SwapOneofField()
[all …]
Dmap_field.cc192 map_val.SetType(val_des->cpp_type()); in InsertOrLookupMapValue()
195 switch (val_des->cpp_type()) { in InsertOrLookupMapValue()
285 switch (key_des->cpp_type()) { in SyncRepeatedFieldWithMapNoLock()
312 switch (val_des->cpp_type()) { in SyncRepeatedFieldWithMapNoLock()
367 switch (key_des->cpp_type()) { in SyncMapWithRepeatedFieldNoLock()
394 map_val.SetType(val_des->cpp_type()); in SyncMapWithRepeatedFieldNoLock()
395 switch (val_des->cpp_type()) { in SyncMapWithRepeatedFieldNoLock()
Dextension_set_heavy.cc128 inline FieldDescriptor::CppType cpp_type(FieldType type) { in cpp_type() function
142 GOOGLE_DCHECK_EQ(cpp_type((EXTENSION).type), FieldDescriptor::CPPTYPE_##CPPTYPE)
167 GOOGLE_DCHECK_EQ(cpp_type(extension->type), FieldDescriptor::CPPTYPE_MESSAGE); in MutableMessage()
243 GOOGLE_DCHECK_EQ(cpp_type(extension->type), FieldDescriptor::CPPTYPE_MESSAGE); in MaybeNewRepeatedExtension()
297 if (extension->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in Find()
303 } else if (extension->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in Find()
362 switch (cpp_type(type)) { in SpaceUsedExcludingSelf()
390 switch (cpp_type(type)) { in SpaceUsedExcludingSelf()
Dtext_format.cc286 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ParseField()
509 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ConsumeField()
520 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ConsumeField()
531 } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ConsumeField()
635 switch(field->cpp_type()) { in ConsumeFieldValue()
1635 switch (field_->cpp_type()) { in operator ()()
1682 field->cpp_type() != FieldDescriptor::CPPTYPE_STRING && in PrintField()
1683 field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in PrintField()
1716 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in PrintField()
1797 switch (field->cpp_type()) { in PrintFieldValue()
Dmap_field.h332 key_.SetType(field->message_type()->FindFieldByName("key")->cpp_type()); in MapIterator()
333 value_.SetType(field->message_type()->FindFieldByName("value")->cpp_type()); in MapIterator()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dpython_message.py281 return value_type.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE
413 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
428 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
500 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE: # Composite
514 if field.cpp_type == _FieldDescriptor.CPPTYPE_ENUM:
519 elif field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
530 if field.cpp_type == _FieldDescriptor.CPPTYPE_ENUM:
588 elif field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
786 elif item[0].cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
816 if (is_proto3 and field.cpp_type != _FieldDescriptor.CPPTYPE_MESSAGE and
[all …]
Dtype_checkers.py74 if (field.cpp_type == _FieldDescriptor.CPPTYPE_STRING and
77 if field.cpp_type == _FieldDescriptor.CPPTYPE_ENUM:
83 return _VALUE_CHECKERS[field.cpp_type]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/js/
Djs_generator.cc289 GOOGLE_CHECK(field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE); in SubmessageTypeRef()
771 switch (field->cpp_type()) { in JSFieldDefault()
886 switch (field->cpp_type()) { in JSTypeName()
921 (field->cpp_type() != FieldDescriptor::CPPTYPE_ENUM && in JSFieldTypeAnnotation()
922 field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE && in JSFieldTypeAnnotation()
1082 assert(field->cpp_type() == FieldDescriptor::CPPTYPE_ENUM || in RelativeTypeName()
1083 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE); in RelativeTypeName()
1088 string type = (field->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) ? in RelativeTypeName()
1174 if (field->cpp_type() == FieldDescriptor::CPPTYPE_BOOL) { in FieldComments()
1265 (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) || in HasFieldPresence()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/ruby/
Druby_generator.cc131 if (value_field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in GenerateField()
135 } else if (value_field->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in GenerateField()
153 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in GenerateField()
157 } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in GenerateField()
380 if ((field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in UsesTypeFromFile()

123