Searched refs:cpp_type (Results 1 – 25 of 52) sorted by relevance
123
169 field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE) or191 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 …]
351 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
497 def __new__(cls, name, full_name, index, number, type, cpp_type, label, argument507 def __init__(self, name, full_name, index, number, type, cpp_type, label, argument525 self.cpp_type = cpp_type
68 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()
138 switch (field->cpp_type()) { in MakeGenerator()157 switch (field->cpp_type()) { in MakeGenerator()172 switch (field->cpp_type()) { in MakeGenerator()
224 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()
63 (*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()
139 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 …]
68 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()
134 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()
445 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 …]
67 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()
144 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()
113 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 …]
98 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 =
74 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()
123 " 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 …]
192 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()
128 inline FieldDescriptor::CppType cpp_type(FieldType type) { in cpp_type() function142 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()
286 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()
332 key_.SetType(field->message_type()->FindFieldByName("key")->cpp_type()); in MapIterator()333 value_.SetType(field->message_type()->FindFieldByName("value")->cpp_type()); in MapIterator()
281 return value_type.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE413 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:428 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:500 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE: # Composite514 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 …]
74 if (field.cpp_type == _FieldDescriptor.CPPTYPE_STRING and77 if field.cpp_type == _FieldDescriptor.CPPTYPE_ENUM:83 return _VALUE_CHECKERS[field.cpp_type]
289 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 …]
131 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()