Home
last modified time | relevance | path

Searched refs:ForeignEnum (Results 1 – 25 of 98) sorted by relevance

1234

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DEnumTest.java37 import protobuf_unittest.UnittestProto.ForeignEnum;
48 ForeignEnum e = ForeignEnum.forNumber(ForeignEnum.FOREIGN_BAR.getNumber()); in testForNumber()
49 assertThat(e).isEqualTo(ForeignEnum.FOREIGN_BAR); in testForNumber()
51 e = ForeignEnum.forNumber(1000); in testForNumber()
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DEnumTest.java37 import protobuf_unittest.UnittestProto.ForeignEnum;
48 ForeignEnum e = ForeignEnum.forNumber(ForeignEnum.FOREIGN_BAR.getNumber()); in testForNumber()
49 assertThat(e).isEqualTo(ForeignEnum.FOREIGN_BAR); in testForNumber()
51 e = ForeignEnum.forNumber(1000); in testForNumber()
/external/golang-protobuf/internal/testprotos/test3/
Dtest.pb.go17 type ForeignEnum int32 type
20 ForeignEnum_FOREIGN_ZERO ForeignEnum = 0
21 ForeignEnum_FOREIGN_FOO ForeignEnum = 4
22 ForeignEnum_FOREIGN_BAR ForeignEnum = 5
23 ForeignEnum_FOREIGN_BAZ ForeignEnum = 6
42 func (x ForeignEnum) Enum() *ForeignEnum {
43 p := new(ForeignEnum)
48 func (x ForeignEnum) String() string {
52 func (ForeignEnum) Descriptor() protoreflect.EnumDescriptor {
56 func (ForeignEnum) Type() protoreflect.EnumType {
[all …]
Dtest.proto45 ForeignEnum singular_foreign_enum = 102;
67 optional ForeignEnum optional_foreign_enum = 22; field
89 repeated ForeignEnum repeated_foreign_enum = 52;
128 enum ForeignEnum { enum
/external/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs60 SingleForeignEnum = ForeignEnum.ForeignBar, in CreateFullTestAllTypes()
82 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in CreateFullTestAllTypes()
112 OptionalForeignEnum = Proto2.ForeignEnum.ForeignBar, in CreateFullTestAllTypesProto2()
135 … RepeatedForeignEnum = { Proto2.ForeignEnum.ForeignFoo, Proto2.ForeignEnum.ForeignBar }, in CreateFullTestAllTypesProto2()
164 message.SetExtension(OptionalForeignEnumExtension, Proto2.ForeignEnum.ForeignBar); in CreateFullTestAllExtensions()
187 …(RepeatedForeignEnumExtension).AddRange(new[] { Proto2.ForeignEnum.ForeignFoo, Proto2.ForeignEnum.… in CreateFullTestAllExtensions()
DJsonFormatterTest.cs87 SingleForeignEnum = ForeignEnum.ForeignBar, in EnumAsInt()
88 … RepeatedForeignEnum = { ForeignEnum.ForeignBaz, (ForeignEnum) 100, ForeignEnum.ForeignFoo } in EnumAsInt()
110 SingleForeignEnum = ForeignEnum.ForeignBar, in AllSingleFields()
266 var message = new TestAllTypes { SingleForeignEnum = (ForeignEnum) 100 }; in UnknownEnumValueNumeric_SingleField()
273 …age = new TestAllTypes { RepeatedForeignEnum = { ForeignEnum.ForeignBaz, (ForeignEnum) 100, Foreig… in UnknownEnumValueNumeric_RepeatedField()
287 … var message = new TestAllTypes { RepeatedForeignEnum = { (ForeignEnum) 200, (ForeignEnum) 100 } }; in UnknownEnumValue_RepeatedField_AllEntriesUnknown()
645 [TestCase(ForeignEnum.ForeignBar, "'FOREIGN_BAR'")]
DFieldCodecTest.cs61 new FieldCodecTestData<ForeignEnum>(
62 … FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs60 SingleForeignEnum = ForeignEnum.ForeignBar, in CreateFullTestAllTypes()
82 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in CreateFullTestAllTypes()
112 OptionalForeignEnum = Proto2.ForeignEnum.ForeignBar, in CreateFullTestAllTypesProto2()
135 … RepeatedForeignEnum = { Proto2.ForeignEnum.ForeignFoo, Proto2.ForeignEnum.ForeignBar }, in CreateFullTestAllTypesProto2()
164 message.SetExtension(OptionalForeignEnumExtension, Proto2.ForeignEnum.ForeignBar); in CreateFullTestAllExtensions()
187 …(RepeatedForeignEnumExtension).AddRange(new[] { Proto2.ForeignEnum.ForeignFoo, Proto2.ForeignEnum.… in CreateFullTestAllExtensions()
DJsonFormatterTest.cs87 SingleForeignEnum = ForeignEnum.ForeignBar, in EnumAsInt()
88 … RepeatedForeignEnum = { ForeignEnum.ForeignBaz, (ForeignEnum) 100, ForeignEnum.ForeignFoo } in EnumAsInt()
110 SingleForeignEnum = ForeignEnum.ForeignBar, in AllSingleFields()
266 var message = new TestAllTypes { SingleForeignEnum = (ForeignEnum) 100 }; in UnknownEnumValueNumeric_SingleField()
273 …age = new TestAllTypes { RepeatedForeignEnum = { ForeignEnum.ForeignBaz, (ForeignEnum) 100, Foreig… in UnknownEnumValueNumeric_RepeatedField()
287 … var message = new TestAllTypes { RepeatedForeignEnum = { (ForeignEnum) 200, (ForeignEnum) 100 } }; in UnknownEnumValue_RepeatedField_AllEntriesUnknown()
645 [TestCase(ForeignEnum.ForeignBar, "'FOREIGN_BAR'")]
DFieldCodecTest.cs61 new FieldCodecTestData<ForeignEnum>(
62 … FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DSampleMessages.cs57 SingleForeignEnum = ForeignEnum.ForeignBar, in CreateFullTestAllTypes()
79 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in CreateFullTestAllTypes()
DFieldCodecTest.cs61 new FieldCodecTestData<ForeignEnum>(
62 … FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DSampleMessages.cs57 SingleForeignEnum = ForeignEnum.ForeignBar, in CreateFullTestAllTypes()
79 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in CreateFullTestAllTypes()
DFieldCodecTest.cs61 new FieldCodecTestData<ForeignEnum>(
62 … FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
/external/golang-protobuf/internal/testprotos/conformance/
Dtest_messages_proto3.pb.go56 type ForeignEnum int32 type
59 ForeignEnum_FOREIGN_FOO ForeignEnum = 0
60 ForeignEnum_FOREIGN_BAR ForeignEnum = 1
61 ForeignEnum_FOREIGN_BAZ ForeignEnum = 2
78 func (x ForeignEnum) Enum() *ForeignEnum {
79 p := new(ForeignEnum)
84 func (x ForeignEnum) String() string {
88 func (ForeignEnum) Descriptor() protoreflect.EnumDescriptor {
92 func (ForeignEnum) Type() protoreflect.EnumType {
96 func (x ForeignEnum) Number() protoreflect.EnumNumber {
[all …]
/external/cronet/third_party/protobuf/js/compatibility_tests/v3.1.0/
Dtestbinary.proto62 optional ForeignEnum optional_foreign_enum = 22;
86 repeated ForeignEnum repeated_foreign_enum = 52;
116 enum ForeignEnum { enum
150 optional ForeignEnum extend_optional_foreign_enum = 22;
167 repeated ForeignEnum extend_repeated_foreign_enum = 52;
182 repeated ForeignEnum extend_packed_repeated_foreign_enum = 82
/external/cronet/third_party/protobuf/js/compatibility_tests/v3.0.0/
Dtestbinary.proto62 optional ForeignEnum optional_foreign_enum = 22;
86 repeated ForeignEnum repeated_foreign_enum = 52;
116 enum ForeignEnum { enum
150 optional ForeignEnum extend_optional_foreign_enum = 22;
167 repeated ForeignEnum extend_repeated_foreign_enum = 52;
182 repeated ForeignEnum extend_packed_repeated_foreign_enum = 82
/external/golang-protobuf/internal/testprotos/test/
Dtest.proto54 optional ForeignEnum optional_foreign_enum = 22;
80 repeated ForeignEnum repeated_foreign_enum = 52;
118 optional ForeignEnum default_foreign_enum = 97 [default = FOREIGN_BAR];
159 enum ForeignEnum { enum
304 repeated ForeignEnum packed_enum = 103 [packed = true];
321 repeated ForeignEnum unpacked_enum = 103 [packed = false];
342 repeated ForeignEnum packed_enum = 103 [packed = true];
363 repeated ForeignEnum unpacked_enum = 103 [packed = false];
/external/cronet/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Dproto_test.js125 msg.setOptionalForeignEnum(proto.jspb.test.ForeignEnum.FOREIGN_FOO);
149 msg.setRepeatedForeignEnumList([proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
221 proto.jspb.test.ForeignEnum.FOREIGN_FOO);
253 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
369 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
413 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
545 proto.jspb.test.ForeignEnum.FOREIGN_FOO);
582 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
613 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
/external/cronet/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Dproto_test.js125 msg.setOptionalForeignEnum(proto.jspb.test.ForeignEnum.FOREIGN_FOO);
149 msg.setRepeatedForeignEnumList([proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
221 proto.jspb.test.ForeignEnum.FOREIGN_FOO);
253 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
369 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
413 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
545 proto.jspb.test.ForeignEnum.FOREIGN_FOO);
582 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
613 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
/external/cronet/third_party/protobuf/src/google/protobuf/
Dunittest_no_field_presence.proto77 ForeignEnum optional_foreign_enum = 22;
80 //optional protobuf_unittest.ForeignEnum optional_proto2_enum = 23;
109 repeated ForeignEnum repeated_foreign_enum = 52;
134 enum ForeignEnum { enum
/external/protobuf/src/google/protobuf/
Dunittest_no_field_presence.proto77 ForeignEnum optional_foreign_enum = 22;
80 //optional protobuf_unittest.ForeignEnum optional_proto2_enum = 23;
109 repeated ForeignEnum repeated_foreign_enum = 52;
134 enum ForeignEnum { enum
/external/cronet/third_party/protobuf/js/
Dtestbinary.proto62 optional ForeignEnum optional_foreign_enum = 22;
86 repeated ForeignEnum repeated_foreign_enum = 52;
116 enum ForeignEnum { enum
150 optional ForeignEnum extend_optional_foreign_enum = 22;
167 repeated ForeignEnum extend_repeated_foreign_enum = 52;
182 repeated ForeignEnum extend_packed_repeated_foreign_enum = 82 [packed = true];
/external/cronet/third_party/protobuf/js/binary/
Dproto_test.js129 msg.setOptionalForeignEnum(proto.jspb.test.ForeignEnum.FOREIGN_FOO);
153 msg.setRepeatedForeignEnumList([proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
223 proto.jspb.test.ForeignEnum.FOREIGN_FOO);
255 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
373 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
417 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
548 proto.jspb.test.ForeignEnum.FOREIGN_FOO);
585 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
616 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
/external/cronet/third_party/protobuf/csharp/protos/
Dunittest.proto105 optional ForeignEnum optional_foreign_enum = 22;
143 repeated ForeignEnum repeated_foreign_enum = 52;
169 optional ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
210 enum ForeignEnum { enum
253 optional ForeignEnum optional_foreign_enum_extension = 22;
293 repeated ForeignEnum repeated_foreign_enum_extension = 52;
322 optional ForeignEnum
342 optional ForeignEnum optional_foreign_enum = 22;
363 optional ForeignEnum optional_foreign_enum_extension = 22;
544 optional ForeignEnum EnumField = 3;
[all …]

1234