Home
last modified time | relevance | path

Searched refs:NestedEnum (Results 1 - 25 of 42) sorted by relevance

12

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DUnknownEnumValueTest.java61 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 in testUnknownEnumValues()
[all...]
H A DProto2UnknownEnumValueTest.java53 .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()
H A DGeneratedMessageTest.java481 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 in testInvalidations()
[all...]
H A DUnknownFieldSetTest.java432 .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()
H A DFieldPresenceTest.java134 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()
H A DTestUtilLite.java201 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()
H A DPackedFieldTest.java34 import com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum;
221 .addRepeatedNestedEnum(NestedEnum.BAR) in testPackedSerialization()
H A DTestUtil.java347 message.setOptionalNestedEnum(TestAllTypes.NestedEnum.BAZ); in setAllFields()
378 message.addRepeatedNestedEnum(TestAllTypes.NestedEnum.BAR); in setAllFields()
408 message.addRepeatedNestedEnum(TestAllTypes.NestedEnum.BAZ); in setAllFields()
433 message.setDefaultNestedEnum(TestAllTypes.NestedEnum.FOO); in setAllFields()
475 message.setRepeatedNestedEnum(1, TestAllTypes.NestedEnum.FOO); in modifyRepeatedFields()
546 Assert.assertEquals(TestAllTypes.NestedEnum.BAZ, message.getOptionalNestedEnum()); in assertAllFieldsSet()
605 Assert.assertEquals(TestAllTypes.NestedEnum.BAR, message.getRepeatedNestedEnum(0)); in assertAllFieldsSet()
634 Assert.assertEquals(TestAllTypes.NestedEnum.BAZ, message.getRepeatedNestedEnum(1)); in assertAllFieldsSet()
682 Assert.assertEquals(TestAllTypes.NestedEnum.FOO, message.getDefaultNestedEnum()); in assertAllFieldsSet()
766 Assert.assertEquals(TestAllTypes.NestedEnum in assertClear()
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DSampleMessages.cs66 SingleNestedEnum = TestProtos.TestAllTypes.Types.NestedEnum.Foo, in CreateFullTestAllTypes()
88 RepeatedNestedEnum = { TestProtos.TestAllTypes.Types.NestedEnum.Foo, TestProtos.TestAllTypes.Types.NestedEnum.Neg }, in CreateFullTestAllTypes()
118 OptionalNestedEnum = Proto2.TestAllTypes.Types.NestedEnum.Foo, in CreateFullTestAllTypesProto2()
141 RepeatedNestedEnum = { Proto2.TestAllTypes.Types.NestedEnum.Foo, Proto2.TestAllTypes.Types.NestedEnum.Neg }, in CreateFullTestAllTypesProto2()
170 message.SetExtension(OptionalNestedEnumExtension, Proto2.TestAllTypes.Types.NestedEnum.Foo); in CreateFullTestAllExtensions()
193 message.GetOrInitializeExtension(RepeatedNestedEnumExtension).AddRange(new[] { Proto2.TestAllTypes.Types.NestedEnum.Foo, Proto2.TestAllTypes.Types.NestedEnum.Neg }); in CreateFullTestAllExtensions()
H A DGeneratedMessageTest.cs76 Assert.AreEqual(TestAllTypes.Types.NestedEnum.Unspecified, message.SingleNestedEnum); in DefaultValues()
157 SingleNestedEnum = TestAllTypes.Types.NestedEnum.Foo, in RoundTrip_SingleValues()
191 RepeatedNestedEnum = { TestAllTypes.Types.NestedEnum.Foo, TestAllTypes.Types.NestedEnum.Neg }, in RoundTrip_RepeatedValues()
498 SingleNestedEnum = TestAllTypes.Types.NestedEnum.Foo, in CloneSingleNonMessageValues()
528 RepeatedNestedEnum = { TestAllTypes.Types.NestedEnum.Foo, TestAllTypes.Types.NestedEnum.Neg }, in CloneRepeatedNonMessageValues()
H A DGeneratedMessageTest.Proto2.cs30 Assert.AreEqual(Proto2.TestAllTypes.Types.NestedEnum.Foo, message.OptionalNestedEnum); in DefaultProto2Values()
80 Assert.AreEqual(Proto2.TestAllTypes.Types.NestedEnum.Bar, message.DefaultNestedEnum); in DefaultProto2Values()
128 Assert.AreEqual(Proto2.TestAllTypes.Types.NestedEnum.Foo, message.GetExtension(OptionalNestedEnumExtension)); in DefaultExtensionValues()
177 Assert.AreEqual(Proto2.TestAllTypes.Types.NestedEnum.Bar, message.GetExtension(DefaultNestedEnumExtension)); in DefaultExtensionValues()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
H A DUnknownFieldSetTest.java282 .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()
H A DGeneratedMessageTest.java319 builder.addRepeatedNestedEnum(TestAllTypes.NestedEnum.FOO); in testRepeatedSettersRejectNull()
320 builder.addRepeatedNestedEnum(TestAllTypes.NestedEnum.BAR); in testRepeatedSettersRejectNull()
622 .setNestedEnum(MessageWithNoOuter.NestedEnum.BAZ) in testMultipleFilesOption()
753 TestAllTypes.NestedEnum.BAR.getNumber(), in testEnumValues()
754 TestAllTypes.NestedEnum.BAR_VALUE); in testEnumValues()
756 TestAllTypes.NestedEnum.BAZ.getNumber(), in testEnumValues()
757 TestAllTypes.NestedEnum.BAZ_VALUE); in testEnumValues()
759 TestAllTypes.NestedEnum.FOO.getNumber(), in testEnumValues()
760 TestAllTypes.NestedEnum.FOO_VALUE); in testEnumValues()
H A DTestUtil.java256 message.setOptionalNestedEnum (TestAllTypes.NestedEnum.BAZ); in setAllFields()
292 message.addRepeatedNestedEnum (TestAllTypes.NestedEnum.BAR); in setAllFields()
327 message.addRepeatedNestedEnum (TestAllTypes.NestedEnum.BAZ); in setAllFields()
352 message.setDefaultNestedEnum (TestAllTypes.NestedEnum.FOO); in setAllFields()
394 message.setRepeatedNestedEnum (1, TestAllTypes.NestedEnum.FOO); in modifyRepeatedFields()
465 Assert.assertEquals(TestAllTypes.NestedEnum.BAZ, message.getOptionalNestedEnum()); in assertAllFieldsSet()
524 Assert.assertEquals(TestAllTypes.NestedEnum.BAR, message.getRepeatedNestedEnum (0)); in assertAllFieldsSet()
553 Assert.assertEquals(TestAllTypes.NestedEnum.BAZ, message.getRepeatedNestedEnum (1)); in assertAllFieldsSet()
601 Assert.assertEquals(TestAllTypes.NestedEnum.FOO, message.getDefaultNestedEnum ()); in assertAllFieldsSet()
678 Assert.assertEquals(TestAllTypes.NestedEnum in assertClear()
[all...]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
H A DSampleMessages.cs63 SingleNestedEnum = TestAllTypes.Types.NestedEnum.Foo, in CreateFullTestAllTypes()
85 RepeatedNestedEnum = { TestAllTypes.Types.NestedEnum.Foo, TestAllTypes.Types.NestedEnum.Neg }, in CreateFullTestAllTypes()
H A DGeneratedMessageTest.cs75 Assert.AreEqual(TestAllTypes.Types.NestedEnum.Unspecified, message.SingleNestedEnum); in DefaultValues()
154 SingleNestedEnum = TestAllTypes.Types.NestedEnum.Foo, in RoundTrip_SingleValues()
188 RepeatedNestedEnum = { TestAllTypes.Types.NestedEnum.Foo, TestAllTypes.Types.NestedEnum.Neg }, in RoundTrip_RepeatedValues()
452 SingleNestedEnum = TestAllTypes.Types.NestedEnum.Foo, in CloneSingleNonMessageValues()
482 RepeatedNestedEnum = { TestAllTypes.Types.NestedEnum.Foo, TestAllTypes.Types.NestedEnum.Neg }, in CloneRepeatedNonMessageValues()
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
H A DTestMessagesProto3.cs235 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto3.TestAllTypesProto3), global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalAliasedEnum", "OptionalStringPiece", "OptionalCord", "RecursiveMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedStringPiece", "RepeatedCord", "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedNestedEnum", "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedNestedEnum", "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapStringBytes", "MapStringNestedMessage", "MapStringForeignMessage", "MapStringNestedEnum", "MapStringForeignEnum", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofBool", "OneofUint64", "OneofFloat", "OneofDouble", "OneofEnum", "OptionalBoolWrapper", "OptionalInt32Wrapper", "OptionalInt64Wrapper", "OptionalUint32Wrapper", "OptionalUint64Wrapper", "OptionalFloatWrapper", "OptionalDoubleWrapper", "OptionalStringWrapper", "OptionalBytesWrapper", "RepeatedBoolWrapper", "RepeatedInt32Wrapper", "RepeatedInt64Wrapper", "RepeatedUint32Wrapper", "RepeatedUint64Wrapper", "RepeatedFloatWrapper", "RepeatedDoubleWrapper", "RepeatedStringWrapper", "RepeatedBytesWrapper", "OptionalDuration", "OptionalTimestamp", "OptionalFieldMask", "OptionalStruct", "OptionalAny", "OptionalValue", "RepeatedDuration", "RepeatedTimestamp", "RepeatedFieldmask", "RepeatedStruct", "RepeatedAny", "RepeatedValue", "RepeatedListValue", "Fieldname1", "FieldName2", "FieldName3", "FieldName4", "Field0Name5", "Field0Name6", "FieldName7", "FieldName8", "FieldName9", "FieldName10", "FIELDNAME11", "FIELDName12", "FieldName13", "FieldName14", "FieldName15", "FieldName16", "FieldName17", "FieldName18" }, new[]{ "OneofField" }, new[]{ typeof(global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum), typeof(global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.AliasedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage), global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null, null), in TestMessagesProto3Reflection()
661 private global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum optionalNestedEnum_ = global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum.Foo;
663 public global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum OptionalNestedEnum {
900 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
901 = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum) x);
902 private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum>();
904 public pbc::RepeatedField<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> RepeatedNestedEnum {
1073 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum> _repeated_packedNestedEnum_code
5168 public enum NestedEnum { global() enum in ProtobufTestMessages.Proto3.TestAllTypesProto3.Types
[all...]
H A DUnittestProto3Optional.cs63 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufUnittest.TestProto3Optional), global::ProtobufUnittest.TestProto3Optional.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalCord", "OptionalNestedMessage", "LazyNestedMessage", "OptionalNestedEnum", "SingularInt32", "SingularInt64" }, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalCord", "OptionalNestedMessage", "LazyNestedMessage", "OptionalNestedEnum" }, new[]{ typeof(global::ProtobufUnittest.TestProto3Optional.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufUnittest.TestProto3Optional.Types.NestedMessage), global::ProtobufUnittest.TestProto3Optional.Types.NestedMessage.Parser, new[]{ "Bb" }, new[]{ "Bb" }, null, null, null)}) in UnittestProto3OptionalReflection()
506 private global::ProtobufUnittest.TestProto3Optional.Types.NestedEnum optionalNestedEnum_;
508 public global::ProtobufUnittest.TestProto3Optional.Types.NestedEnum OptionalNestedEnum {
509 get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return global::ProtobufUnittest.TestProto3Optional.Types.NestedEnum.Unspecified; } }
1050 OptionalNestedEnum = (global::ProtobufUnittest.TestProto3Optional.Types.NestedEnum) input.ReadEnum(); in MergeFrom()
1154 OptionalNestedEnum = (global::ProtobufUnittest.TestProto3Optional.Types.NestedEnum) input.ReadEnum(); in IBufferMessage.InternalMergeFrom()
1174 public enum NestedEnum { enum in ProtobufUnittest.TestProto3Optional.Types
H A DTestMessagesProto2.cs210 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalStringPiece", "OptionalCord", "RecursiveMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedStringPiece", "RepeatedCord", "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedNestedEnum", "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedNestedEnum", "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapStringBytes", "MapStringNestedMessage", "MapStringForeignMessage", "MapStringNestedEnum", "MapStringForeignEnum", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofBool", "OneofUint64", "OneofFloat", "OneofDouble", "OneofEnum", "Data", "Fieldname1", "FieldName2", "FieldName3", "FieldName4", "Field0Name5", "Field0Name6", "FieldName7", "FieldName8", "FieldName9", "FieldName10", "FIELDNAME11", "FIELDName12", "FieldName13", "FieldName14", "FieldName15", "FieldName16", "FieldName17", "FieldName18" }, new[]{ "OneofField" }, new[]{ typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null, null), in TestMessagesProto2Reflection()
815 private readonly static global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnumDefaultValue = global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo;
817 private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum optionalNestedEnum_;
819 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnum {
1093 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
1094 = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x);
1095 private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>();
1097 public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> RepeatedNestedEnu
4727 public enum NestedEnum { global() enum in ProtobufTestMessages.Proto2.TestAllTypesProto2.Types
[all...]
/third_party/protobuf/php/tests/
H A DGeneratedClassTest.php20 use Foo\TestMessage\NestedEnum;
284 $m->setOptionalNestedEnum(NestedEnum::ZERO);
297 $this->legacyEnum(new TestLegacyMessage\NestedEnum);
760 $m->setOptionalNestedEnum(TestMessage\NestedEnum::ZERO);
762 $this->assertSame(TestMessage\NestedEnum::ZERO, $m->getOptionalNestedEnum());
788 $m->setNestedEnum(TestNamespace\NestedEnum::ZERO);
790 $this->assertSame(TestNamespace\NestedEnum::ZERO, $m->getNestedEnum());
798 $m->setNestedEnum(TestEmptyNamespace\NestedEnum::ZERO);
800 $this->assertSame(TestEmptyNamespace\NestedEnum::ZERO, $m->getNestedEnum());
808 $m->setNestedEnum(NoNamespaceMessage\NestedEnum
[all...]
/third_party/protobuf/src/google/protobuf/
H A Drepeated_field_reflection_unittest.cc450 const RepeatedFieldRef<TestAllTypes::NestedEnum> enum_ref = in TEST()
451 refl->GetRepeatedFieldRef<TestAllTypes::NestedEnum>( in TEST()
453 const MutableRepeatedFieldRef<TestAllTypes::NestedEnum> mutable_enum_ref = in TEST()
454 refl->GetMutableRepeatedFieldRef<TestAllTypes::NestedEnum>( in TEST()
606 const MutableRepeatedFieldRef<TestAllTypes::NestedEnum> mrf_nested_enum = in TEST()
607 refl->GetMutableRepeatedFieldRef<TestAllTypes::NestedEnum>( in TEST()
618 mrf_nested_enum.CopyFrom(refl->GetRepeatedFieldRef<TestAllTypes::NestedEnum>( in TEST()
636 mrf_nested_enum.MergeFrom(refl->GetRepeatedFieldRef<TestAllTypes::NestedEnum>( in TEST()
657 refl->GetMutableRepeatedFieldRef<TestAllTypes::NestedEnum>( in TEST()
/third_party/protobuf/python/google/protobuf/internal/
H A Dreflection_test.py542 proto.NestedEnum.Name(proto.FOO))
544 message_module.TestAllTypes.NestedEnum.Name(proto.FOO))
546 proto.NestedEnum.Name(proto.BAR))
548 message_module.TestAllTypes.NestedEnum.Name(proto.BAR))
550 proto.NestedEnum.Name(proto.BAZ))
552 message_module.TestAllTypes.NestedEnum.Name(proto.BAZ))
554 proto.NestedEnum.Name, 11312)
556 message_module.TestAllTypes.NestedEnum.Name, 11312)
559 self.assertRaises(TypeError, message_module.TestAllTypes.NestedEnum.Name,
561 self.assertRaises(TypeError, message_module.TestAllTypes.NestedEnum
[all...]
H A Dsymbol_database_test.py62 db.RegisterEnumDescriptor(unittest_pb2.TestAllTypes.NestedEnum.DESCRIPTOR)
99 'protobuf_unittest.TestAllTypes.NestedEnum',
101 'protobuf_unittest.TestAllTypes.NestedEnum').full_name)
124 'protobuf_unittest.TestAllTypes.NestedEnum').name)
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
H A DJsonFormatTest.java56 import com.google.protobuf.util.proto.JsonTestProto.TestAllTypes.NestedEnum;
103 builder.setOptionalNestedEnum(NestedEnum.BAR); in setAllFields()
121 builder.addRepeatedNestedEnum(NestedEnum.BAR); in setAllFields()
139 builder.addRepeatedNestedEnum(NestedEnum.BAZ); in setAllFields()
576 builder.putInt32ToEnumMap(9, NestedEnum.BAR); in testMapFields()
1290 assertEquals(NestedEnum.FOO, builder.getInt32ToEnumMapMap().get(2)); in testUnknownEnumMap()
1300 assertEquals(NestedEnum.FOO, builder.getRepeatedNestedEnum(0)); in testRepeatedUnknownEnum()
1301 assertEquals(NestedEnum.BAR, builder.getRepeatedNestedEnum(1)); in testRepeatedUnknownEnum()
1302 assertEquals(NestedEnum.BAZ, builder.getRepeatedNestedEnum(2)); in testRepeatedUnknownEnum()
1310 TestAllTypes expected = TestAllTypes.newBuilder().setOptionalNestedEnum(NestedEnum in testParserIntegerEnumValue()
[all...]
/third_party/protobuf/java/lite/src/test/java/com/google/protobuf/
H A DLiteTest.java43 import com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum;
121 // 0 is not a valid enum value for NestedEnum in testLite_unknownEnumAtListBoundary()
138 .setExtension(UnittestLite.optionalNestedEnumExtensionLite, NestedEnum.BAZ) in testLiteExtensions()
154 NestedEnum.BAZ, message2.getExtension(UnittestLite.optionalNestedEnumExtensionLite)); in testLiteExtensions()
1378 .setOptionalNestedEnum(NestedEnum.BAZ) in testToStringPrimitives()
1381 "optional_bool: true\noptional_nested_enum: " + NestedEnum.BAZ.toString(), proto); in testToStringPrimitives()
1448 .setExtension(UnittestLite.optionalNestedEnumExtensionLite, NestedEnum.BAZ) in testToStringExtensions()
1463 .setExtension(UnittestLite.optionalNestedEnumExtensionLite, NestedEnum.BAZ) in testToStringUnknownFields()
1687 oneFieldSet = TestAllTypesLite.newBuilder().setDefaultNestedEnum(NestedEnum.BAR).build(); in testEquals_notEqual()
1784 oneFieldSet = TestAllTypesLite.newBuilder().addRepeatedNestedEnum(NestedEnum in testEquals_notEqual()
[all...]

Completed in 32 milliseconds

12