Lines Matching defs:descriptor
53 #include <google/protobuf/descriptor.pb.h>
54 #include <google/protobuf/descriptor.h>
206 const Message* descriptor, ErrorLocation location,
251 const Message* descriptor, ErrorLocation location,
581 ExtractDebugString(protobuf_unittest::TestAllTypes::descriptor()->file(),
584 protobuf_unittest::TestMessageWithCustomOptions::descriptor()->file(),
586 ExtractDebugString(proto3_arena_unittest::TestAllTypes::descriptor()->file(),
605 const FileDescriptor* descriptor = pool.BuildFile(proto);
606 ASSERT_TRUE(descriptor != nullptr) << proto.DebugString();
607 EXPECT_EQ(content, descriptor->DebugString());
894 protobuf_unittest::Aggregate::descriptor()
901 protobuf_unittest::AggregateMessageSetElement::descriptor()
934 // Test generated descriptor.
935 const Descriptor* generated = protobuf_unittest::TestJsonName::descriptor();
2036 // Add "google/protobuf/descriptor.proto".
2037 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto);
2040 // import "google/protobuf/descriptor.proto";
2046 file_proto.add_dependency("google/protobuf/descriptor.proto");
2052 // import "google/protobuf/descriptor.proto";
2058 file_proto.add_dependency("google/protobuf/descriptor.proto");
2280 // Function which makes a field descriptor of the given type.
2869 // descriptor.proto.
2875 "dependency: \"google/protobuf/descriptor.proto\" "
2946 // it into the descriptor pool in the fallback database case: it just needs to
3000 protobuf_unittest::TestMessageWithCustomOptions::descriptor();
3036 &protobuf_unittest::CustomOptionMinIntegerValues::descriptor()->options();
3050 &protobuf_unittest::CustomOptionMaxIntegerValues::descriptor()->options();
3063 options = &protobuf_unittest::CustomOptionOtherValues::descriptor()->options();
3079 &protobuf_unittest::SettingRealsFromPositiveInts::descriptor()->options();
3084 &protobuf_unittest::SettingRealsFromNegativeInts::descriptor()->options();
3091 &protobuf_unittest::VariousComplexOptions::descriptor()->options();
3144 // defining the option; we do not also have to import descriptor.proto.
3148 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto);
3151 protobuf_unittest::TestMessageWithCustomOptions::descriptor()->file()->CopyTo(
3206 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto);
3209 protobuf_unittest::TestMessageWithCustomOptions::descriptor()->file()->CopyTo(
3283 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto);
3286 protobuf_unittest::TestMessageWithCustomOptions::descriptor()->file()->CopyTo(
3363 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto);
3366 protobuf_unittest::TestMessageWithCustomOptions::descriptor()->file()->CopyTo(
3443 const Descriptor* msg = protobuf_unittest::AggregateMessage::descriptor();
3485 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto);
3488 protobuf_unittest::TestMessageWithCustomOptions::descriptor()->file()->CopyTo(
3515 MessageOptions::descriptor()->file()->CopyTo(&file_proto);
3518 // Create a new file descriptor proto containing a subset of the
3523 file_proto.add_dependency("google/protobuf/descriptor.proto");
3527 protobuf_unittest::OldOptionType::descriptor()
3534 protobuf_unittest::TestMessageWithRequiredEnumOption::descriptor()->CopyTo(
3538 // OldOptionType, and add the descriptor of NewOptionType.
3541 protobuf_unittest::NewOptionType::descriptor()->CopyTo(new_option_type);
3555 // Adding the file descriptor to the pool should fail.
3564 MessageOptions::descriptor()->file()->CopyTo(&file_proto);
3568 // import "google/protobuf/descriptor.proto";
3579 "dependency: \"google/protobuf/descriptor.proto\" "
3602 // generated pool with custom descriptor pools when dealing with
3616 const FileDescriptor* descriptor = pool.BuildFile(file_proto);
3617 ASSERT_TRUE(descriptor != nullptr);
3619 EXPECT_EQ(2, descriptor->extension_count());
3624 "import \"google/protobuf/descriptor.proto\";\n"
3635 descriptor->DebugString());
3684 // Build descriptor.proto in our test pool. This allows us to extend it in
3687 BuildFileInTestPool(DescriptorProto::descriptor()->file());
5247 "dependency: \"google/protobuf/descriptor.proto\" "
5270 // import google/protobuf/descriptor.proto
5286 "dependency: \"google/protobuf/descriptor.proto\" "
5331 "dependency: \"google/protobuf/descriptor.proto\" "
5346 "dependency: \"google/protobuf/descriptor.proto\" "
5363 "dependency: \"google/protobuf/descriptor.proto\" "
5380 "dependency: \"google/protobuf/descriptor.proto\" "
5396 "dependency: \"google/protobuf/descriptor.proto\" "
5414 "dependency: \"google/protobuf/descriptor.proto\" "
5430 "dependency: \"google/protobuf/descriptor.proto\" "
5446 "dependency: \"google/protobuf/descriptor.proto\" "
5462 "dependency: \"google/protobuf/descriptor.proto\" "
5478 "dependency: \"google/protobuf/descriptor.proto\" "
5494 "dependency: \"google/protobuf/descriptor.proto\" "
5510 "dependency: \"google/protobuf/descriptor.proto\" "
5526 "dependency: \"google/protobuf/descriptor.proto\" "
5545 "dependency: \"google/protobuf/descriptor.proto\" "
5564 "dependency: \"google/protobuf/descriptor.proto\" "
5586 "dependency: \"google/protobuf/descriptor.proto\" "
5623 "dependency: \"google/protobuf/descriptor.proto\" "
5629 "dependency: \"google/protobuf/descriptor.proto\" "
5643 "dependency: \"google/protobuf/descriptor.proto\" "
5811 EXPECT_EQ("Invalid proto descriptor for file \"foo.proto\":", errors[0]);
6528 // Add "google/protobuf/descriptor.proto".
6529 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto);
6532 // import "google/protobuf/descriptor.proto";
6539 file_proto.add_dependency("google/protobuf/descriptor.proto");
6545 // Copy and change the package of the descriptor.proto
6888 // in the descriptor database but that have not not been built yet.
6918 protobuf_unittest::TestAllTypes::descriptor()->file();
6941 // Searching for a child of an existing descriptor should never fall back
7014 // build a descriptor for MessageN can require O(2^N) time.
7205 "import \"google/protobuf/descriptor.proto\";\n"
7242 // we need descriptor.proto to be accessible by the pool
7244 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto_);
7258 SimpleDescriptorDatabase simple_db_; // contains descriptor.proto
7883 // build the file where the message is defined, and get a valid descriptor
7907 // yet built will build the file and return a descriptor.
7917 // yet built will build the file and return a descriptor to the value.
8069 // Verify calling autogenerated function to get a descriptor in the base
8072 // the generated function "descriptor()" doesn't somehow subvert the laziness
8074 EXPECT_TRUE(protobuf_unittest::lazy_imports::ImportedMessage::descriptor() !=
8087 protobuf_unittest::lazy_imports::MessageCustomOption::descriptor()
8099 protobuf_unittest::lazy_imports::MessageCustomOption2::descriptor()