/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | UnknownEnumValueTest.java | 61 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getOptionalNestedEnum()); in testUnknownEnumValues() 62 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnum(0)); in testUnknownEnumValues() 63 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnumList().get(0)); in testUnknownEnumValues() 64 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getPackedNestedEnum(0)); in testUnknownEnumValues() 74 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getOptionalNestedEnum()); in testUnknownEnumValues() 75 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnum(0)); in testUnknownEnumValues() 76 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnumList().get(0)); in testUnknownEnumValues() 77 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getPackedNestedEnum(0)); in testUnknownEnumValues() 86 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, builder.getOptionalNestedEnum()); in testUnknownEnumValues() 87 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, builder.getRepeatedNestedEnum(0)); in testUnknownEnumValues() [all …]
|
D | Proto2UnknownEnumValueTest.java | 53 .addVarint(TestAllTypes.NestedEnum.BAR.getNumber()) in buildPayloadWithUnknownEnumValues() 59 .addVarint(TestAllTypes.NestedEnum.FOO.getNumber()) in buildPayloadWithUnknownEnumValues() 61 .addVarint(TestAllTypes.NestedEnum.BAZ.getNumber()) in buildPayloadWithUnknownEnumValues() 71 assertEquals(TestAllTypes.NestedEnum.BAR, message.getOptionalNestedEnum()); in testUnknownEnumValues() 73 assertEquals(TestAllTypes.NestedEnum.FOO, message.getRepeatedNestedEnum(0)); in testUnknownEnumValues() 74 assertEquals(TestAllTypes.NestedEnum.BAZ, message.getRepeatedNestedEnum(1)); in testUnknownEnumValues() 92 TestAllTypes.NestedEnum.BAR, in testExtensionUnknownEnumValues() 96 TestAllTypes.NestedEnum.FOO, in testExtensionUnknownEnumValues() 99 TestAllTypes.NestedEnum.BAZ, in testExtensionUnknownEnumValues()
|
D | GeneratedMessageTest.java | 481 builder.addRepeatedNestedEnum(TestAllTypes.NestedEnum.FOO); in testRepeatedSettersRejectNull() 482 builder.addRepeatedNestedEnum(TestAllTypes.NestedEnum.BAR); in testRepeatedSettersRejectNull() 888 .setNestedEnum(MessageWithNoOuter.NestedEnum.BAZ) in testMultipleFilesOption() 1077 assertEquals(TestAllTypes.NestedEnum.BAR_VALUE, TestAllTypes.NestedEnum.BAR.getNumber()); in testEnumValues() 1078 assertEquals(TestAllTypes.NestedEnum.BAZ_VALUE, TestAllTypes.NestedEnum.BAZ.getNumber()); in testEnumValues() 1079 assertEquals(TestAllTypes.NestedEnum.FOO_VALUE, TestAllTypes.NestedEnum.FOO.getNumber()); in testEnumValues() 1111 builder.setOptionalNestedEnum(TestAllTypes.NestedEnum.BAR); in testInvalidations() 1114 builder.addRepeatedNestedEnum(TestAllTypes.NestedEnum.BAR); in testInvalidations() 1129 builder.setOptionalNestedEnum(TestAllTypes.NestedEnum.BAZ); in testInvalidations() 1130 builder.setOptionalNestedEnum(TestAllTypes.NestedEnum.BAR); in testInvalidations() [all …]
|
D | UnknownFieldSetTest.java | 432 .addVarint(TestAllTypes.NestedEnum.BAR.getNumber()) in testParseUnknownEnumValue() 438 .addVarint(TestAllTypes.NestedEnum.FOO.getNumber()) in testParseUnknownEnumValue() 440 .addVarint(TestAllTypes.NestedEnum.BAZ.getNumber()) in testParseUnknownEnumValue() 448 assertEquals(TestAllTypes.NestedEnum.BAR, message.getOptionalNestedEnum()); in testParseUnknownEnumValue() 450 Arrays.asList(TestAllTypes.NestedEnum.FOO, TestAllTypes.NestedEnum.BAZ), in testParseUnknownEnumValue() 464 TestAllTypes.NestedEnum.BAR, in testParseUnknownEnumValue() 467 Arrays.asList(TestAllTypes.NestedEnum.FOO, TestAllTypes.NestedEnum.BAZ), in testParseUnknownEnumValue()
|
D | FieldPresenceTest.java | 134 TestProto3Optional.newBuilder().setOptionalNestedEnum(TestProto3Optional.NestedEnum.FOO); in testHasMethodForProto3Optional() 252 builder.setOptionalNestedEnum(TestAllTypes.NestedEnum.FOO); in testFieldPresence() 261 a.setOptionalNestedEnum(TestAllTypes.NestedEnum.BAR); in testFieldPresence() 266 b.setOptionalNestedEnum(TestAllTypes.NestedEnum.FOO); in testFieldPresence() 272 assertEquals(TestAllTypes.NestedEnum.BAR, message.getOptionalNestedEnum()); in testFieldPresence() 303 .setOptionalNestedEnum(TestAllTypes.NestedEnum.FOO) in testFieldPresenceByReflection() 317 .setOptionalNestedEnum(TestAllTypes.NestedEnum.BAR) in testFieldPresenceByReflection() 414 assertEquals(TestAllTypes.NestedEnum.FOO, message.getOptionalNestedEnum()); in testSerializeAndParse()
|
D | TestUtilLite.java | 201 builder.setOptionalNestedEnum(TestAllTypesLite.NestedEnum.BAZ); in setAllFields() 233 builder.addRepeatedNestedEnum(TestAllTypesLite.NestedEnum.BAR); in setAllFields() 264 builder.addRepeatedNestedEnum(TestAllTypesLite.NestedEnum.BAZ); in setAllFields() 289 builder.setDefaultNestedEnum(TestAllTypesLite.NestedEnum.FOO); in setAllFields() 359 message.setExtension(optionalNestedEnumExtensionLite, TestAllTypesLite.NestedEnum.BAZ); in setAllExtensions() 397 message.addExtension(repeatedNestedEnumExtensionLite, TestAllTypesLite.NestedEnum.BAR); in setAllExtensions() 434 message.addExtension(repeatedNestedEnumExtensionLite, TestAllTypesLite.NestedEnum.BAZ); in setAllExtensions() 459 message.setExtension(defaultNestedEnumExtensionLite, TestAllTypesLite.NestedEnum.FOO); in setAllExtensions() 512 message.setExtension(repeatedNestedEnumExtensionLite, 1, TestAllTypesLite.NestedEnum.FOO); in modifyRepeatedExtensions()
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | descriptor_pool_test1.proto | 39 enum NestedEnum { enum 44 optional NestedEnum nested_enum = 1 [default = BETA]; 47 enum NestedEnum { enum 51 optional NestedEnum nested_enum = 1 [default = ZETA]; 56 enum NestedEnum { enum 60 optional NestedEnum nested_enum = 1 [default = ETA]; 69 enum NestedEnum { enum 74 optional NestedEnum nested_enum = 1 [default = GAMMA]; 77 enum NestedEnum { enum 81 optional NestedEnum nested_enum = 1 [default = IOTA]; [all …]
|
D | missing_enum_values.proto | 37 enum NestedEnum { enum 41 optional NestedEnum optional_nested_enum = 1; 42 repeated NestedEnum repeated_nested_enum = 2; 43 repeated NestedEnum packed_nested_enum = 3 [packed = true]; 47 enum NestedEnum { enum 50 optional NestedEnum optional_nested_enum = 1; 51 repeated NestedEnum repeated_nested_enum = 2; 52 repeated NestedEnum packed_nested_enum = 3 [packed = true];
|
D | descriptor_pool_test2.proto | 45 enum NestedEnum { enum 50 optional NestedEnum nested_enum = 1 [default = XI]; 53 enum NestedEnum { enum 57 optional NestedEnum nested_enum = 1 [default = PI]; 62 enum NestedEnum { enum 66 optional NestedEnum nested_enum = 1 [default = RHO];
|
/third_party/protobuf/php/tests/proto/ |
D | test_php_namespace.proto | 12 NestedEnum nested_enum = 3; 17 enum NestedEnum { enum 23 NestedEnum nested_enum = 2; 27 enum NestedEnum { enum
|
D | test_include.proto | 11 NestedEnum enum = 2; 15 enum NestedEnum { enum
|
D | test_prefix.proto | 8 NestedEnum nested_enum = 3; 12 enum NestedEnum { enum
|
D | test_empty_php_namespace.proto | 12 NestedEnum nested_enum = 3; 16 enum NestedEnum { enum
|
D | test_no_namespace.proto | 10 NestedEnum nested_enum = 3; 14 enum NestedEnum { enum
|
/third_party/protobuf/java/core/src/test/proto/com/google/protobuf/ |
D | field_presence_test.proto | 41 enum NestedEnum { enum 53 NestedEnum optional_nested_enum = 4; 63 NestedEnum oneof_nested_enum = 15; 71 repeated NestedEnum repeated_nested_enum = 24; 74 repeated NestedEnum packed_nested_enum = 27 [packed = true]; 81 TestAllTypes.NestedEnum optional_nested_enum = 4; 91 repeated TestAllTypes.NestedEnum repeated_nested_enum = 24;
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | SampleMessages.cs | 66 SingleNestedEnum = TestProtos.TestAllTypes.Types.NestedEnum.Foo, in CreateFullTestAllTypes() 88 …tedNestedEnum = { TestProtos.TestAllTypes.Types.NestedEnum.Foo, TestProtos.TestAllTypes.Types.Nest… in CreateFullTestAllTypes() 118 OptionalNestedEnum = Proto2.TestAllTypes.Types.NestedEnum.Foo, in CreateFullTestAllTypesProto2() 141 …RepeatedNestedEnum = { Proto2.TestAllTypes.Types.NestedEnum.Foo, Proto2.TestAllTypes.Types.NestedE… in CreateFullTestAllTypesProto2() 170 … message.SetExtension(OptionalNestedEnumExtension, Proto2.TestAllTypes.Types.NestedEnum.Foo); in CreateFullTestAllExtensions() 193 …nsion).AddRange(new[] { Proto2.TestAllTypes.Types.NestedEnum.Foo, Proto2.TestAllTypes.Types.Nested… in CreateFullTestAllExtensions()
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | UnknownFieldSetTest.java | 282 .addVarint(TestAllTypes.NestedEnum.BAR.getNumber()) in testParseUnknownEnumValue() 287 .addVarint(TestAllTypes.NestedEnum.FOO.getNumber()) in testParseUnknownEnumValue() 289 .addVarint(TestAllTypes.NestedEnum.BAZ.getNumber()) in testParseUnknownEnumValue() 297 assertEquals(TestAllTypes.NestedEnum.BAR, in testParseUnknownEnumValue() 300 Arrays.asList(TestAllTypes.NestedEnum.FOO, TestAllTypes.NestedEnum.BAZ), in testParseUnknownEnumValue() 315 assertEquals(TestAllTypes.NestedEnum.BAR, in testParseUnknownEnumValue() 318 Arrays.asList(TestAllTypes.NestedEnum.FOO, TestAllTypes.NestedEnum.BAZ), in testParseUnknownEnumValue()
|
/third_party/protobuf/src/google/protobuf/ |
D | unittest_drop_unknown_fields.proto | 39 enum NestedEnum { enum 45 NestedEnum enum_value = 2; 49 enum NestedEnum { enum 56 NestedEnum enum_value = 2;
|
D | test_messages_proto2.proto | 62 enum NestedEnum { enum 89 optional NestedEnum optional_nested_enum = 21; 117 repeated NestedEnum repeated_nested_enum = 51; 137 repeated NestedEnum packed_nested_enum = 88 [packed = true]; 153 repeated NestedEnum unpacked_nested_enum = 102 [packed = false]; 173 map<string, NestedEnum> map_string_nested_enum = 73; 185 NestedEnum oneof_enum = 119;
|
D | unittest_proto3.proto | 49 enum NestedEnum { enum 83 NestedEnum optional_nested_enum = 21; 128 repeated NestedEnum repeated_nested_enum = 51; 183 repeated TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false]; 219 NestedEnum foo_enum = 6; 222 enum NestedEnum { enum
|
D | test_messages_proto3.proto | 70 enum NestedEnum { enum 108 NestedEnum optional_nested_enum = 21; 137 repeated NestedEnum repeated_nested_enum = 51; 157 repeated NestedEnum packed_nested_enum = 88 [packed = true]; 173 repeated NestedEnum unpacked_nested_enum = 102 [packed = false]; 193 map<string, NestedEnum> map_string_nested_enum = 73; 205 NestedEnum oneof_enum = 119;
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | SampleMessages.cs | 63 SingleNestedEnum = TestAllTypes.Types.NestedEnum.Foo, in CreateFullTestAllTypes() 85 … RepeatedNestedEnum = { TestAllTypes.Types.NestedEnum.Foo, TestAllTypes.Types.NestedEnum.Neg }, in CreateFullTestAllTypes()
|
/third_party/protobuf/php/tests/proto/empty/ |
D | echo.proto | 10 NestedEnum nested_enum = 3; 14 enum NestedEnum { enum
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/google/protobuf/ |
D | unittest_lite.proto | 49 enum NestedEnum { enum 81 optional NestedEnum optional_nested_enum = 21; 120 repeated NestedEnum repeated_nested_enum = 51; 146 optional NestedEnum default_nested_enum = 81 [default = BAR]; 215 optional TestAllTypesLite.NestedEnum optional_nested_enum_extension_lite = 21; 257 repeated TestAllTypesLite.NestedEnum repeated_nested_enum_extension_lite = 51; 286 optional TestAllTypesLite.NestedEnum
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/ |
D | unittest_lite.proto | 49 enum NestedEnum { enum 81 optional NestedEnum optional_nested_enum = 21; 120 repeated NestedEnum repeated_nested_enum = 51; 146 optional NestedEnum default_nested_enum = 81 [default = BAR]; 215 optional TestAllTypesLite.NestedEnum optional_nested_enum_extension_lite = 21; 257 repeated TestAllTypesLite.NestedEnum repeated_nested_enum_extension_lite = 51; 286 optional TestAllTypesLite.NestedEnum
|