Lines Matching refs:proto
173 // // in "foo.proto"
179 // // in "bar.proto"
186 // Also, we have an empty file "baz.proto". This file's purpose is to
187 // make sure that even though it has the same package as foo.proto,
188 // searching it for members of foo.proto won't work.
191 foo_file.set_name("foo.proto");
200 bar_file.set_name("bar.proto");
202 bar_file.add_dependency("foo.proto");
211 baz_file.set_name("baz.proto");
266 EXPECT_EQ("foo.proto", foo_file_->name());
267 EXPECT_EQ("bar.proto", bar_file_->name());
268 EXPECT_EQ("baz.proto", baz_file_->name());
369 // // in "foo.proto"
380 // // in "bar.proto"
399 foo_file.set_name("foo.proto");
421 bar_file.set_name("bar.proto");
651 file.set_name("foo.proto");
835 // // in "foo.proto"
841 // // in "bar.proto"
854 foo_file.set_name("foo.proto");
862 bar_file.set_name("bar.proto");
985 // // in "foo.proto"
998 // // in "bar.proto"
1006 foo_file.set_name("foo.proto");
1020 bar_file.set_name("bar.proto");
1022 bar_file.add_dependency("foo.proto");
1147 // // in "foo.proto"
1155 // // in "bar.proto"
1172 foo_file.set_name("foo.proto");
1183 bar_file.set_name("bar.proto");
1377 foo_file.set_name("foo.proto");
1525 file_proto.set_name("foo.proto");
1582 file_proto.set_name("foo.proto");
1706 file_proto.set_name("foo.proto");
1751 "name: 'foo.proto'"
1752 "dependency: 'bar.proto'"
1753 "dependency: 'baz.proto'"
1774 "name: 'bar.proto'"
1813 EXPECT_EQ("baz.proto", baz_file->name());
1829 EXPECT_EQ("Baz.placeholder.proto", baz_type->file()->name());
1836 EXPECT_EQ("corge.Qux.placeholder.proto", qux_type->file()->name());
1847 FieldDescriptorProto proto;
1850 bar_field_->CopyTo(&proto);
1851 EXPECT_EQ(".Bar", proto.type_name());
1852 EXPECT_EQ(FieldDescriptorProto::TYPE_MESSAGE, proto.type());
1855 proto.Clear();
1856 baz_field_->CopyTo(&proto);
1857 EXPECT_EQ("Baz", proto.type_name());
1858 EXPECT_FALSE(proto.has_type());
1861 proto.Clear();
1862 qux_field_->CopyTo(&proto);
1863 EXPECT_EQ(".corge.Qux", proto.type_name());
1864 EXPECT_EQ(FieldDescriptorProto::TYPE_ENUM, proto.type());
1883 "name: 'extension.proto'"
1901 // descriptor.proto.
1906 "name: \"unknown_custom_options.proto\" "
1907 "dependency: \"google/protobuf/descriptor.proto\" "
2084 // defining the option; we do not also have to import descriptor.proto.
2096 "name: \"custom_options_import.proto\" "
2098 "dependency: \"google/protobuf/unittest_custom_options.proto\" "
2156 // import "google/protobuf/unittest_custom_options.proto"
2164 "name: \"custom_options_import.proto\" "
2166 "dependency: \"google/protobuf/unittest_custom_options.proto\" "
2285 // Build descriptor.proto in our test pool. This allows us to extend it in
2296 "name: \"foo.proto\" "
2300 "foo.proto: Foo: NAME: \"Foo\" is already defined.\n");
2305 "name: \"foo.proto\" "
2310 "foo.proto: foo.bar.Foo: NAME: \"Foo\" is already defined in "
2316 "name: \"foo.proto\" "
2320 "name: \"bar.proto\" "
2323 "bar.proto: Foo: NAME: \"Foo\" is already defined in file "
2324 "\"foo.proto\".\n");
2329 "name: \"foo.proto\" "
2332 "name: \"bar.proto\" "
2335 "bar.proto: foo: NAME: \"foo\" is already defined (as something other "
2336 "than a package) in file \"foo.proto\".\n");
2341 "name: \"foo.proto\" "
2345 "foo.proto: FOO: NAME: \"FOO\" is already defined.\n"
2346 "foo.proto: FOO: NAME: Note that enum values use C++ scoping rules, "
2354 "name: \"foo.proto\" "
2359 "foo.proto: pkg.FOO: NAME: \"FOO\" is already defined in \"pkg\".\n"
2360 "foo.proto: pkg.FOO: NAME: Note that enum values use C++ scoping rules, "
2368 "name: \"foo.proto\" "
2371 "foo.proto: : NAME: Missing name.\n");
2376 "name: \"foo.proto\" "
2379 "foo.proto: $: NAME: \"$\" is not a valid identifier.\n");
2384 "name: \"foo.proto\" "
2387 "foo.proto: foo.$: NAME: \"$\" is not a valid identifier.\n");
2398 BuildFile("name: \"foo.proto\"");
2400 "name: \"bar.proto\" "
2401 "dependency: \"foo.proto\" "
2402 "dependency: \"foo.proto\" ",
2404 "bar.proto: bar.proto: OTHER: Import \"foo.proto\" was listed twice.\n");
2409 "name: \"bar.proto\" "
2410 "dependency: \"foo.proto\" ",
2412 "bar.proto: bar.proto: OTHER: Import \"foo.proto\" has not been loaded.\n");
2422 "name: 'foo.proto' "
2425 "name: 'bar.proto' "
2426 "dependency: 'baz.proto' "
2433 "bar.proto: bar.proto: OTHER: Import \"baz.proto\" has not been loaded.\n"
2434 "bar.proto: outer.bar.Bar.bar: TYPE: \"outer.foo\" seems to be defined in "
2435 "\"foo.proto\", which is not imported by \"bar.proto\". To use it here, "
2441 "name: \"foo.proto\" "
2446 "name: \"foo.proto\" "
2452 "foo.proto: foo.proto: OTHER: A file with this name is already in the "
2458 "name: \"foo.proto\" "
2468 "foo.proto: Foo.bar: NUMBER: Extension range 10 to 19 includes field "
2470 "foo.proto: Foo.baz: NUMBER: Extension range 10 to 19 includes field "
2476 "name: \"foo.proto\" "
2484 "foo.proto: Foo: NUMBER: Extension range 19 to 20 overlaps with "
2486 "foo.proto: Foo: NUMBER: Extension range 19 to 20 overlaps with "
2492 "name: \"foo.proto\" "
2522 "foo.proto: Foo.foo: DEFAULT_VALUE: Couldn't parse default value.\n"
2523 "foo.proto: Foo.bar: DEFAULT_VALUE: Couldn't parse default value.\n"
2524 "foo.proto: Foo.baz: DEFAULT_VALUE: Boolean default must be true or "
2526 "foo.proto: Foo.qux: DEFAULT_VALUE: Messages can't have default values.\n"
2527 "foo.proto: Foo.corge: DEFAULT_VALUE: Repeated fields can't have default "
2531 "foo.proto: Foo.quux: DEFAULT_VALUE: Messages can't have default "
2537 "name: \"foo.proto\" "
2543 "foo.proto: Foo.foo: NUMBER: Field numbers must be positive integers.\n");
2548 "name: \"foo.proto\" "
2555 "foo.proto: Foo.foo: NUMBER: Field numbers cannot be greater than "
2561 "name: \"foo.proto\" "
2570 "foo.proto: Foo.bar: NUMBER: Field numbers 19000 through 19999 are "
2572 "foo.proto: Foo.baz: NUMBER: Field numbers 19000 through 19999 are "
2578 "name: \"foo.proto\" "
2585 "foo.proto: Foo.foo: EXTENDEE: FieldDescriptorProto.extendee not set for "
2591 "name: \"foo.proto\" "
2602 "foo.proto: Foo.foo: EXTENDEE: FieldDescriptorProto.extendee set for "
2608 "name: \"foo.proto\" "
2615 "foo.proto: Foo.bar: NUMBER: Field number 1 has already been used in "
2621 "name: \"foo.proto\" "
2633 "foo.proto
2639 "name: \"foo.proto\" "
2651 "foo.proto: Foo.foo: TYPE: Extensions of MessageSets must be optional "
2657 "name: \"foo.proto\" "
2664 "foo.proto: Foo.foo: NAME: MessageSets cannot have fields, only "
2670 "name: \"foo.proto\" "
2676 "foo.proto: Foo: NUMBER: Extension numbers must be positive integers.\n");
2681 "name: \"foo.proto\" "
2687 "foo.proto: Foo: NUMBER: Extension numbers cannot be greater than "
2693 "name: \"foo.proto\" "
2700 "foo.proto: Foo: NUMBER: Extension range end number must be greater than "
2702 "foo.proto: Foo: NUMBER: Extension range end number must be greater than "
2708 "name: \"foo.proto\" "
2720 "foo.proto: Foo: NAME: Enums must contain at least one value.\n"
2721 "foo.proto: Bar.bar: DEFAULT_VALUE: Enum type \"Foo\" has no value named "
2727 "name: \"foo.proto\" "
2734 "foo.proto: Foo.foo: EXTENDEE: \"Bar\" is not defined.\n");
2739 "name: \"foo.proto\" "
2747 "foo.proto: Foo.foo: EXTENDEE: \"Bar\" is not a message type.\n");
2752 "name: \"foo.proto\" "
2762 "foo.proto: Foo.foo: NUMBER: \"Bar\" does not declare 1 as an extension "
2768 "name: \"foo.proto\" "
2774 "foo.proto: Foo.foo: TYPE: \"Bar\" is not defined.\n");
2779 "name: \"bar.proto\" "
2783 "name: \"foo.proto\" "
2788 "foo.proto: Foo.foo: TYPE: \"Bar\" seems to be defined in \"bar.proto\", "
2789 "which is not imported by \"foo.proto\". To use it here, please add the "
2808 "name: \"foo.proto\" "
2820 "foo.proto: Foo.baz: TYPE: \"Bar.Baz\" is not defined.\n");
2828 "name: \"foo.proto\" "
2844 // foo.proto:
2846 // bar.proto:
2848 // import "foo.proto";
2850 // baz.proto:
2852 // import "bar.proto"
2855 // When validating baz.proto, we will look up "bar.Bar". As part of this
2858 // defined in foo.proto, which is not a direct dependency of baz.proto. The
2864 "name: \"foo.proto\" "
2867 "name: \"bar.proto\" "
2869 "dependency: \"foo.proto\" "
2872 "name: \"baz.proto\" "
2874 "dependency: \"bar.proto\" "
2884 "name: \"foo.proto\" "
2892 "foo.proto: Foo.foo: TYPE: \".Foo.bar\" is not a type.\n");
2897 "name: \"foo.proto\" "
2907 "foo.proto: Foo.foo: TYPE: \"Bar.Baz\" is not a type.\n");
2912 "name: \"foo.proto\" "
2924 "name: \"foo.proto\" "
2932 "foo.proto: Foo.foo: TYPE: \"Bar\" is not an enum type.\n");
2937 "name: \"foo.proto\" "
2945 "foo.proto: Foo.foo: TYPE: \"Bar\" is not a message type.\n");
2950 "name: \"foo.proto\" "
2958 "foo.proto: Foo.foo: DEFAULT_VALUE: Enum type \"Bar\" has no value named "
2964 "name: \"foo.proto\" "
2971 "foo.proto: Foo.foo: TYPE: Field with primitive type has type_name.\n");
2976 "name: \"foo.proto\" "
2982 "foo.proto: Foo.foo: TYPE: Field with message or enum type missing "
2988 "name: \"foo.proto\" "
2995 "foo.proto: TestService.A: INPUT_TYPE: \"Bar\" is not defined.\n");
3000 "name: \"foo.proto\" "
3008 "foo.proto: TestService.A: INPUT_TYPE: \"Bar\" is not a message type.\n");
3013 "name: \"foo.proto\" "
3020 "foo.proto: TestService.A: OUTPUT_TYPE: \"Bar\" is not defined.\n");
3025 "name: \"foo.proto\" "
3033 "foo.proto: TestService.A: OUTPUT_TYPE: \"Bar\" is not a message type.\n");
3038 "name: \"foo.proto\" "
3058 "foo.proto: Foo.packed_string: TYPE: [packed = true] can only be "
3060 "foo.proto: Foo.packed_message: TYPE: [packed = true] can only be "
3062 "foo.proto: Foo.optional_int32: TYPE: [packed = true] can only be "
3069 "name: \"foo.proto\" "
3080 "foo.proto: TestMessage.foo: OPTION_VALUE: Value must be identifier for "
3086 "name: \"foo.proto\" "
3099 "foo.proto: TestMessage.foo: OPTION_NAME: Option \"ctype\" is an "
3105 "name: \"foo.proto\" "
3119 "foo.proto: TestMessage.foo: OPTION_NAME: Option \"ctype\" was "
3125 "name: \"foo.proto\" "
3138 "foo.proto: TestMessage.foo: OPTION_NAME: Option must not use "
3146 "name: \"foo.proto\" "
3147 "dependency: \"google/protobuf/descriptor.proto\" "
3154 "foo.proto: foo.proto: OPTION_NAME: Option field \"(foo)\" is repeated. "
3162 "name: \"foo.proto\" "
3163 "dependency: \"google/protobuf/descriptor.proto\" "
3169 "foo.proto: foo2: NUMBER: Extension number 7672757 has already been used "
3177 "name: \"foo.proto\" "
3178 "dependency: \"google/protobuf/descriptor.proto\" "
3186 "foo.proto: foo.proto: OPTION_VALUE: Value out of range "
3194 "name: \"foo.proto\" "
3195 "dependency: \"google/protobuf/descriptor.proto\" "
3203 "foo.proto: foo.proto: OPTION_VALUE: Value out of range "
3211 "name: \"foo.proto\" "
3212 "dependency: \"google/protobuf/descriptor.proto\" "
3219 "foo.proto: foo.proto: OPTION_VALUE: Value must be integer "
3227 "name: \"foo.proto\" "
3228 "dependency: \"google/protobuf/descriptor.proto\" "
3236 "foo.proto: foo.proto: OPTION_VALUE: Value out of range "
3244 "name: \"foo.proto\" "
3245 "dependency: \"google/protobuf/descriptor.proto\" "
3252 "foo.proto: foo.proto: OPTION_VALUE: Value must be integer "
3260 "name: \"foo.proto\" "
3261 "dependency: \"google/protobuf/descriptor.proto\" "
3268 "foo.proto: foo.proto: OPTION_VALUE: Value out of range "
3276 "name: \"foo.proto\" "
3277 "dependency: \"google/protobuf/descriptor.proto\" "
3284 "foo.proto: foo.proto: OPTION_VALUE: Value must be non-negative integer "
3292 "name: \"foo.proto\" "
3293 "dependency: \"google/protobuf/descriptor.proto\" "
3300 "foo.proto: foo.proto: OPTION_VALUE: Value must be non-negative integer "
3308 "name: \"foo.proto\" "
3309 "dependency: \"google/protobuf/descriptor.proto\" "
3316 "foo.proto: foo.proto: OPTION_VALUE: Value must be number "
3324 "name: \"foo.proto\" "
3325 "dependency: \"google/protobuf/descriptor.proto\" "
3332 "foo.proto: foo.proto: OPTION_VALUE: Value must be number "
3340 "name: \"foo.proto\" "
3341 "dependency: \"google/protobuf/descriptor.proto\" "
3348 "foo.proto: foo.proto: OPTION_VALUE: Value must be \"true\" or \"false\" "
3356 "name: \"foo.proto\" "
3357 "dependency: \"google/protobuf/descriptor.proto\" "
3367 "foo.proto: foo.proto: OPTION_VALUE: Value must be identifier for "
3375 "name: \"foo.proto\" "
3376 "dependency: \"google/protobuf/descriptor.proto\" "
3386 "foo.proto: foo.proto: OPTION_VALUE: Enum type \"FooEnum\" has no value "
3394 "name: \"foo.proto\" "
3395 "dependency: \"google/protobuf/descriptor.proto\" "
3407 "foo.proto: foo.proto: OPTION_VALUE: Enum type \"FooEnum1\" has no value "
3416 "name: \"foo.proto\" "
3417 "dependency: \"google/protobuf/descriptor.proto\" "
3424 "foo.proto: foo.proto: OPTION_VALUE: Value must be quoted string for "
3432 "name: \"foo.proto\" "
3433 "dependency: \"google/protobuf/descriptor.proto\" "
3445 "foo.proto: foo.proto: OPTION_NAME: Option field \"(bar)\" cannot be of "
3451 "name: \"bar.proto\" "
3455 "name: \"foo.proto\" "
3456 "dependency: \"bar.proto\" ",
3458 "foo.proto: foo.proto: OTHER: Files that do not use optimize_for = "
3460 "is not lite, but it imports \"bar.proto\" which is.\n");
3465 "name: \"bar.proto\" "
3472 "name: \"foo.proto\" "
3473 "dependency: \"bar.proto\" "
3478 "foo.proto: ext: EXTENDEE: Extensions to non-lite types can only be "
3485 "name: \"foo.proto\" "
3489 "foo.proto: Foo: NAME: Files with optimize_for = LITE_RUNTIME cannot "
3499 "name: \"foo.proto\" "
3517 "foo.proto: TestService.Baz: INPUT_TYPE: \"NoSuchType\" is not defined.\n");
3524 "name: \"foo.proto\" "
3547 "name: \"foo.proto\" "
3562 EXPECT_EQ("Invalid proto descriptor for file \"foo.proto\":", errors[0]);
3584 "name: \"foo.proto\" "
3589 "name: \"bar.proto\" "
3590 "dependency: \"foo.proto\" "
3606 // error.proto and error2.proto cyclically import each other.
3607 if (filename == "error.proto") {
3609 output->set_name("error.proto");
3610 output->add_dependency("error2.proto");
3612 } else if (filename == "error2.proto") {
3614 output->set_name("error2.proto");
3615 output->add_dependency("error.proto");
3670 // A DescriptorDatabase which falsely always returns foo.proto when searching
3672 // DescriptorPool to reload foo.proto if it is already loaded.
3688 return FindFileByName("foo.proto", output);
3693 return FindFileByName("foo.proto", output);
3701 const FileDescriptor* foo = pool.FindFileByName("foo.proto");
3703 EXPECT_EQ("foo.proto", foo->name());
3707 EXPECT_EQ(foo, pool.FindFileByName("foo.proto"));
3709 EXPECT_TRUE(pool.FindFileByName("no_such_file.proto") == NULL);
3715 const FileDescriptor* foo = pool.FindFileByName("foo.proto");
3717 EXPECT_EQ("foo.proto", foo->name());
3721 const FileDescriptor* bar = pool.FindFileByName("bar.proto");
3723 EXPECT_EQ("bar.proto", bar->name());
3734 const FileDescriptor* bar = pool.FindFileByName("bar.proto");
3736 EXPECT_EQ("bar.proto", bar->name());
3740 const FileDescriptor* foo = pool.FindFileByName("foo.proto");
3742 EXPECT_EQ("foo.proto", foo->name());
3755 EXPECT_EQ("foo.proto", file->name());
3756 EXPECT_EQ(file, pool.FindFileByName("foo.proto"));
3767 EXPECT_EQ(type->file(), pool.FindFileByName("foo.proto"));
3781 EXPECT_EQ(extension->file(), pool.FindFileByName("bar.proto"));
3809 EXPECT_TRUE(pool.FindFileByName("error.proto") == NULL);
3821 EXPECT_TRUE(pool.FindFileByName("error.proto") == NULL);
3823 "error.proto: error.proto: OTHER: File recursively imports itself: "
3824 "error.proto -> error2.proto -> error.proto\n"
3825 "error2.proto: error2.proto: OTHER: Import \"error.proto\" was not "
3827 "error.proto: error.proto: OTHER: Import \"error2.proto\" was not "
3833 // Try to load all of unittest.proto from a DescriptorDatabase. This should
3863 const FileDescriptor* file = pool.FindFileByName("foo.proto");
3899 // First make sure foo.proto is loaded.
3907 // No errors should have been reported. (If foo.proto was incorrectly
3917 EXPECT_TRUE(pool.FindFileByName("error.proto") == NULL);
3919 EXPECT_TRUE(pool.FindFileByName("error.proto") == NULL);
3930 const FileDescriptor* file = pool.FindFileByName("foo.proto");