/external/protobuf/python/google/protobuf/ |
D | reflection.py | 330 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 …]
|
D | text_format.py | 94 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:
|
D | descriptor.py | 373 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/ |
D | cpp_extension.cc | 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()
|
D | cpp_field.cc | 95 switch (field->cpp_type()) { in MakeGenerator() 110 switch (field->cpp_type()) { in MakeGenerator()
|
D | cpp_message.cc | 131 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()
|
D | cpp_primitive_field.cc | 85 (*variables)["type"] = PrimitiveTypeName(descriptor->cpp_type()); in SetPrimitiveVariables()
|
D | cpp_helpers.cc | 244 switch (field->cpp_type()) { in DefaultValue()
|
/external/protobuf/src/google/protobuf/ |
D | dynamic_message.cc | 97 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()
|
D | extension_set_heavy.cc | 101 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()
|
D | reflection_ops.cc | 68 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()
|
D | extension_set.cc | 57 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 …]
|
D | generated_message_reflection.cc | 119 " 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 …]
|
D | text_format.cc | 157 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()
|
D | descriptor.cc | 1292 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 …]
|
D | descriptor.h | 392 CppType cpp_type() const; // C++ type of this field. 1345 inline FieldDescriptor::CppType FieldDescriptor::cpp_type() const { in cpp_type() function
|
D | wire_format.cc | 745 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in SerializeFieldWithCachedSizes() 911 field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in FieldByteSize()
|
D | descriptor_unittest.cc | 1547 return file->message_type(0)->field(0)->cpp_type(); in GetCppTypeForFieldType()
|
/external/protobuf/python/google/protobuf/internal/ |
D | type_checkers.py | 56 def GetTypeChecker(cpp_type, field_type): argument 67 if (cpp_type == _FieldDescriptor.CPPTYPE_STRING and 70 return _VALUE_CHECKERS[cpp_type]
|
D | descriptor_test.py | 78 type=5, cpp_type=1, label=1,
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_message.cc | 122 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in HasRequiredFields() 419 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in GenerateIsInitialized()
|
D | javamicro_file.cc | 65 if (fields[i]->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in UsesExtensions()
|
D | javamicro_helpers.cc | 336 switch (field->cpp_type()) { in DefaultValue()
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_helpers.cc | 264 switch (field->cpp_type()) { in DefaultValue()
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 159 switch (field.cpp_type()) { in StringifyDefaultValue() 848 m["cpp_type"] = SimpleItoa(field.cpp_type()); in PrintFieldDescriptor()
|