Home
last modified time | relevance | path

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

12

/external/protobuf/python/google/protobuf/
Dreflection.py330 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
339 type_checker = type_checkers.GetTypeChecker(field.cpp_type, field.type)
345 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
376 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE: # Composite
382 elif field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
439 elif field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
502 type_checker = type_checkers.GetTypeChecker(field.cpp_type, field.type)
618 elif item[0].cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
650 if field.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
708 if extension_handle.cpp_type == _FieldDescriptor.CPPTYPE_MESSAGE:
[all …]
Dtext_format.py94 if field.cpp_type != descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
107 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
111 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM:
113 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_STRING:
117 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_BOOL:
192 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
Ddescriptor.py373 def __init__(self, name, full_name, index, number, type, cpp_type, label, argument
390 self.cpp_type = cpp_type
/external/protobuf/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.cc95 switch (field->cpp_type()) { in MakeGenerator()
110 switch (field->cpp_type()) { in MakeGenerator()
Dcpp_message.cc131 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in HasRequiredFields()
831 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in GenerateSharedDestructorCode()
872 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in GenerateStructors()
988 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE || in GenerateClear()
989 field->cpp_type() == FieldDescriptor::CPPTYPE_STRING; in GenerateClear()
1736 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in GenerateIsInitialized()
Dcpp_primitive_field.cc85 (*variables)["type"] = PrimitiveTypeName(descriptor->cpp_type()); in SetPrimitiveVariables()
Dcpp_helpers.cc244 switch (field->cpp_type()) { in DefaultValue()
/external/protobuf/src/google/protobuf/
Ddynamic_message.cc97 switch (field->cpp_type()) { in FieldSpaceUsed()
117 switch (field->cpp_type()) { in FieldSpaceUsed()
245 switch (field->cpp_type()) { in DynamicMessage()
327 switch (field->cpp_type()) { in ~DynamicMessage()
360 } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) { in ~DynamicMessage()
371 } else if ((field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) && in ~DynamicMessage()
393 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in CrossLinkPrototypes()
Dextension_set_heavy.cc101 inline FieldDescriptor::CppType cpp_type(FieldType type) { in cpp_type() function
110 GOOGLE_DCHECK_EQ(cpp_type((EXTENSION).type), FieldDescriptor::CPPTYPE_##CPPTYPE)
130 GOOGLE_DCHECK_EQ(cpp_type(extension->type), FieldDescriptor::CPPTYPE_MESSAGE); in MutableMessage()
149 GOOGLE_DCHECK_EQ(cpp_type(extension->type), FieldDescriptor::CPPTYPE_MESSAGE); in AddMessage()
190 if (extension->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in Find()
196 } else if (extension->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in Find()
255 switch (cpp_type(type)) { in SpaceUsedExcludingSelf()
283 switch (cpp_type(type)) { in SpaceUsedExcludingSelf()
Dreflection_ops.cc68 switch (field->cpp_type()) { in Merge()
93 switch (field->cpp_type()) { in Merge()
153 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in IsInitialized()
183 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in DiscardUnknownFields()
238 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in FindInitializationErrors()
Dextension_set.cc57 inline WireFormatLite::CppType cpp_type(FieldType type) { in cpp_type() function
209 GOOGLE_DCHECK_EQ(cpp_type((EXTENSION).type), WireFormatLite::CPPTYPE_##CPPTYPE)
233 GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_##UPPERCASE); \
263 GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_##UPPERCASE); \
303 GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_ENUM); in SetEnum()
332 GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_ENUM); in AddEnum()
363 GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_STRING); in MutableString()
392 GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_STRING); in AddString()
428 GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_MESSAGE); in MutableMessage()
464 GOOGLE_DCHECK_EQ(cpp_type(extension->type), WireFormatLite::CPPTYPE_MESSAGE); in AddMessage()
[all …]
Dgenerated_message_reflection.cc119 " Field type: " << cpptype_names_[field->cpp_type()]; in ReportReflectionUsageTypeError()
144 if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
224 switch (field->cpp_type()) { in SpaceUsed()
260 switch (field->cpp_type()) { in SpaceUsed()
344 switch (field->cpp_type()) { in Swap()
368 GOOGLE_LOG(FATAL) << "Unimplemented type: " << field->cpp_type(); in Swap()
371 switch (field->cpp_type()) { in Swap()
400 GOOGLE_LOG(FATAL) << "Unimplemented type: " << field->cpp_type(); in Swap()
434 switch (field->cpp_type()) { in FieldSize()
470 switch (field->cpp_type()) { in ClearField()
[all …]
Dtext_format.cc157 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ParseField()
298 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ConsumeField()
349 switch(field->cpp_type()) { in ConsumeFieldValue()
930 field->cpp_type() != FieldDescriptor::CPPTYPE_STRING && in PrintField()
931 field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in PrintField()
947 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in PrintField()
966 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in PrintField()
1038 switch (field->cpp_type()) { in PrintFieldValue()
Ddescriptor.cc1292 switch (cpp_type()) { in DefaultValueAsString()
1408 if (cpp_type() == CPPTYPE_MESSAGE) { in CopyTo()
1419 } else if (cpp_type() == CPPTYPE_ENUM) { in CopyTo()
1498 if (fields[i]->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in RetrieveOptions()
2986 switch (result->cpp_type()) { in BuildFieldOrExtension()
3071 switch (result->cpp_type()) { in BuildFieldOrExtension()
3454 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in CrossLinkField()
3468 } else if (field->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in CrossLinkField()
3511 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE || in CrossLinkField()
3512 field->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) { in CrossLinkField()
[all …]
Ddescriptor.h392 CppType cpp_type() const; // C++ type of this field.
1345 inline FieldDescriptor::CppType FieldDescriptor::cpp_type() const { in cpp_type() function
Dwire_format.cc745 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in SerializeFieldWithCachedSizes()
911 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in FieldByteSize()
Ddescriptor_unittest.cc1547 return file->message_type(0)->field(0)->cpp_type(); in GetCppTypeForFieldType()
/external/protobuf/python/google/protobuf/internal/
Dtype_checkers.py56 def GetTypeChecker(cpp_type, field_type): argument
67 if (cpp_type == _FieldDescriptor.CPPTYPE_STRING and
70 return _VALUE_CHECKERS[cpp_type]
Ddescriptor_test.py78 type=5, cpp_type=1, label=1,
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_message.cc122 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in HasRequiredFields()
419 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in GenerateIsInitialized()
Djavamicro_file.cc65 if (fields[i]->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in UsesExtensions()
Djavamicro_helpers.cc336 switch (field->cpp_type()) { in DefaultValue()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.cc264 switch (field->cpp_type()) { in DefaultValue()
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc159 switch (field.cpp_type()) { in StringifyDefaultValue()
848 m["cpp_type"] = SimpleItoa(field.cpp_type()); in PrintFieldDescriptor()

12