Lines Matching defs:option
2835 // Qux should still have the uninterpreted option attached.
2837 const UninterpretedOption& option =
2839 ASSERT_EQ(1, option.name_size());
2840 EXPECT_EQ("grault", option.name(0).name_part());
2868 // Test that we can use a custom option without having parsed
3016 EXPECT_EQ(42, // Check that we get the default for an option we don't set.
3143 // Test that to use a custom option, we only need to import the file
3144 // defining the option; we do not also have to import descriptor.proto.
3167 // Test a non-extension option too. (At one point this failed due to a
3199 // bug occurred when you defined a custom option with message type and then
3200 // set three fields of that option on a single definition (see the example
3218 // option (complex_opt1).foo = 1234;
3219 // option (complex_opt1).foo2 = 1234;
3220 // option (complex_opt1).foo3 = 1234;
3276 // given multiple values by repeating the option with a different value.
3279 // when they are merged into the final option value.
3295 // option (complex_opt1).foo4 = 12;
3296 // option (complex_opt1).foo4 = 34;
3297 // option (complex_opt1).foo4 = 56;
3356 // given multiple values by repeating the option with a different value.
3359 // when they are merged into the final option value.
3375 // option (complex_opt2).barney = {waldo: 1};
3376 // option (complex_opt2).barney = {waldo: 10};
3377 // option (complex_opt2).barney = {waldo: 100};
3532 // Add a test message that uses the "required_enum_opt" option.
3543 // Replace the value of the "required_enum_opt" option used in the
3570 // option (protobuf_unittest.cc_option1) = 1;
3571 // option (protobuf_unittest.cc_option2) = 2;
3627 "option (.protobuf_unittest.cc_option1) = 1;\n"
3628 "option (.protobuf_unittest.cc_option2) = 2;\n"
5181 "enum-valued option \"google.protobuf.FieldOptions.ctype\".\n");
5276 // option (baz.bar).foo = 1;
5323 "option.\n");
5355 "for int32 option \"foo\".\n");
5372 "for int32 option \"foo\".\n");
5388 "for int32 option \"foo\".\n");
5406 "for int64 option \"foo\".\n");
5422 "for int64 option \"foo\".\n");
5438 "for uint32 option \"foo\".\n");
5454 "for uint32 option \"foo\".\n");
5470 "for uint64 option \"foo\".\n");
5486 "for float option \"foo\".\n");
5502 "for double option \"foo\".\n");
5518 "for boolean option \"foo\".\n");
5537 "enum-valued option \"foo\".\n");
5556 "named \"QUUX\" for option \"foo\".\n");
5577 "named \"QUUX\" for option \"foo\". This appears to be a value from a "
5595 "string option \"foo\".\n");
5614 "foo.proto: foo.value: OPTION_NAME: option json_name is not allowed on "
5670 "foo.proto: foo.proto: OPTION_VALUE: Error while parsing option "
5679 "foo.proto: foo.proto: OPTION_VALUE: Error while parsing option "
5693 "LITE_RUNTIME cannot import files which do use this option. This file "
5825 "If this is intended, set 'option allow_alias = true;' to the enum "
7159 "option java_package = \"com.foo.bar\";\n"
7160 "option (test_file_opt) = \"foobar\";\n"
7162 " option (test_msg_opt) = \"foobar\";\n"
7168 " option (test_oneof_opt) = \"foobar\";\n"
7175 " option (test_enum_opt) = 21;\n"
7176 " option (test_enum_opt) = 42;\n"
7177 " option (test_enum_opt) = 63;\n"
7183 " option (test_svc_opt) = {a:100};\n"
7184 " option (test_svc_opt) = {a:200};\n"
7185 " option (test_svc_opt) = {a:300};\n"
7190 " option deprecated = true;\n"
7191 " option (test_method_opt) = \"foobar\";\n"
7271 // TODO(adonovan): implement support for option fields and for
7327 // This one's a doozy. It checks every kind of option, including
7332 // any info for corresponding uninterpreted option path.
7366 // Message option
7382 // Field option
7405 // Nested message option
7429 // One-of option
7450 // Enum option, repeated options
7496 // option w/ message type that directly sets field
7540 // Service option, repeated options
7678 // Field option on extension
8084 // and that a non-default value of a custom option doesn't load the file