Home
last modified time | relevance | path

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

12

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DEnumTest.java35 import protobuf_unittest.UnittestProto.ForeignEnum;
43 ForeignEnum e = ForeignEnum.forNumber(ForeignEnum.FOREIGN_BAR.getNumber()); in testForNumber()
44 assertEquals(ForeignEnum.FOREIGN_BAR, e); in testForNumber()
46 e = ForeignEnum.forNumber(1000); in testForNumber()
DTestUtil.java225 import protobuf_unittest.UnittestProto.ForeignEnum;
345 message.setOptionalForeignEnum(ForeignEnum.FOREIGN_BAZ); in setAllFields()
381 message.addRepeatedForeignEnum(ForeignEnum.FOREIGN_BAR); in setAllFields()
416 message.addRepeatedForeignEnum(ForeignEnum.FOREIGN_BAZ); in setAllFields()
441 message.setDefaultForeignEnum(ForeignEnum.FOREIGN_FOO); in setAllFields()
489 message.setRepeatedForeignEnum(1, ForeignEnum.FOREIGN_FOO); in modifyRepeatedFields()
560 Assert.assertEquals(ForeignEnum.FOREIGN_BAZ, message.getOptionalForeignEnum()); in assertAllFieldsSet()
619 Assert.assertEquals(ForeignEnum.FOREIGN_BAR, message.getRepeatedForeignEnum(0)); in assertAllFieldsSet()
648 Assert.assertEquals(ForeignEnum.FOREIGN_BAZ, message.getRepeatedForeignEnum(1)); in assertAllFieldsSet()
696 Assert.assertEquals(ForeignEnum.FOREIGN_FOO, message.getDefaultForeignEnum()); in assertAllFieldsSet()
[all …]
DGeneratedMessageTest.java56 import protobuf_unittest.UnittestProto.ForeignEnum;
355 builder.addAllRepeatedForeignEnum(Arrays.asList(ForeignEnum.FOREIGN_BAZ)); in testRepeatedAppend()
364 Arrays.asList(ForeignEnum.FOREIGN_BAZ)); in testRepeatedAppend()
384 Arrays.asList(ForeignEnum.FOREIGN_BAZ, null)); in testRepeatedAppendRejectsNull()
573 Internal.EnumLiteMap<ForeignEnum> map = ForeignEnum.internalGetValueMap(); in testEnumMap()
575 for (ForeignEnum value : ForeignEnum.values()) { in testEnumMap()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs57 SingleForeignEnum = ForeignEnum.ForeignBar, in CreateFullTestAllTypes()
79 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in CreateFullTestAllTypes()
DJsonFormatterTest.cs78 SingleForeignEnum = ForeignEnum.ForeignBar, in AllSingleFields()
170 var message = new TestAllTypes { SingleForeignEnum = (ForeignEnum) 100 }; in UnknownEnumValueNumeric_SingleField()
177 …age = new TestAllTypes { RepeatedForeignEnum = { ForeignEnum.ForeignBaz, (ForeignEnum) 100, Foreig… in UnknownEnumValueNumeric_RepeatedField()
191 … var message = new TestAllTypes { RepeatedForeignEnum = { (ForeignEnum) 200, (ForeignEnum) 100 } }; in UnknownEnumValue_RepeatedField_AllEntriesUnknown()
DFieldCodecTest.cs60 new FieldCodecTestData<ForeignEnum>(
61 … FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
DJsonParserTest.cs900 [TestCase("\"FOREIGN_BAR\"", ForeignEnum.ForeignBar)]
901 [TestCase("5", ForeignEnum.ForeignBar)]
902 [TestCase("100", (ForeignEnum)100)]
903 public void EnumValid(string value, ForeignEnum expectedValue) in EnumValid()
DGeneratedMessageTest.cs69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues()
148 SingleForeignEnum = ForeignEnum.ForeignBar, in RoundTrip_SingleValues()
182 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in RoundTrip_RepeatedValues()
/external/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
/external/golang-protobuf/conformance/internal/conformance_proto/
Dconformance.pb.go61 type ForeignEnum int32 type
64 ForeignEnum_FOREIGN_FOO ForeignEnum = 0
65 ForeignEnum_FOREIGN_BAR ForeignEnum = 1
66 ForeignEnum_FOREIGN_BAZ ForeignEnum = 2
81 func (x ForeignEnum) String() string {
85 func (ForeignEnum) EnumDescriptor() ([]byte, []int) {
380 …OptionalForeignEnum ForeignEnum `protobuf:"varint,22,opt,name=optional_foreign_…
403 …RepeatedForeignEnum []ForeignEnum `protobuf:"varint,52,rep,packed,name=repeated…
425 …MapStringForeignEnum map[string]ForeignEnum `protobuf:"bytes,74,rep,name=map_st…
632 func (m *TestAllTypes) GetOptionalForeignEnum() ForeignEnum {
[all …]
Dconformance.proto154 ForeignEnum optional_foreign_enum = 22;
182 repeated ForeignEnum repeated_foreign_enum = 52;
206 map < string, ForeignEnum> map_string_foreign_enum = 74;
269 enum ForeignEnum { enum
/external/protobuf/js/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/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
Dunittest.proto103 optional ForeignEnum optional_foreign_enum = 22;
141 repeated ForeignEnum repeated_foreign_enum = 52;
167 optional ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
200 enum ForeignEnum { enum
243 optional ForeignEnum optional_foreign_enum_extension = 22;
283 repeated ForeignEnum repeated_foreign_enum_extension = 52;
312 optional ForeignEnum
494 optional ForeignEnum EnumField = 3;
501 repeated ForeignEnum RepeatedEnumField = 9;
716 repeated ForeignEnum packed_enum = 103 [packed = true];
[all …]
Dunittest_proto3.proto101 ForeignEnum single_foreign_enum = 22;
130 repeated ForeignEnum repeated_foreign_enum = 52;
162 enum ForeignEnum { enum
234 ForeignEnum EnumField = 3;
239 repeated ForeignEnum RepeatedEnumField = 9;
328 repeated ForeignEnum packed_enum = 103 [packed = true];
347 repeated ForeignEnum unpacked_enum = 103 [packed = false];
Dunittest_proto3_arena_lite.proto85 ForeignEnum optional_foreign_enum = 22;
128 repeated ForeignEnum repeated_foreign_enum = 52;
164 repeated ForeignEnum packed_enum = 103 [packed = true];
197 enum ForeignEnum { enum
Dunittest_proto3_lite.proto84 ForeignEnum optional_foreign_enum = 22;
127 repeated ForeignEnum repeated_foreign_enum = 52;
163 repeated ForeignEnum packed_enum = 103 [packed = true];
196 enum ForeignEnum { enum
Dunittest_proto3_arena.proto84 ForeignEnum optional_foreign_enum = 22;
127 repeated ForeignEnum repeated_foreign_enum = 52;
163 repeated ForeignEnum packed_enum = 103 [packed = true];
196 enum ForeignEnum { enum
Dunittest_no_arena.proto107 optional ForeignEnum optional_foreign_enum = 22;
145 repeated ForeignEnum repeated_foreign_enum = 52;
171 optional ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
194 enum ForeignEnum { enum
/external/tensorflow/tensorflow/tools/proto_text/
Dtest.proto46 ForeignEnum optional_foreign_enum = 22;
103 enum ForeignEnum { enum
/external/protobuf/conformance/
Dconformance.proto154 ForeignEnum optional_foreign_enum = 22;
182 repeated ForeignEnum repeated_foreign_enum = 52;
206 map < string, ForeignEnum> map_string_foreign_enum = 74;
269 enum ForeignEnum { enum
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestProto3.cs155 …:GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.ForeignEnum), typeof(global… in UnittestProto3Reflection()
195 public enum ForeignEnum { enum
518 private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = 0;
519 public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum {
725 …private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_r…
726 …pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);
727 …gle.Protobuf.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.…
728 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedForeignEnum {
1381 singleForeignEnum_ = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum(); in MergeFrom()
2796 private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = 0;
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Conformance/
DConformance.cs189 …[] {typeof(global::Conformance.WireFormat), typeof(global::Conformance.ForeignEnum), }, new pbr::G… in ConformanceReflection()
207 public enum ForeignEnum { enum
1057 private global::Conformance.ForeignEnum optionalForeignEnum_ = 0;
1058 public global::Conformance.ForeignEnum OptionalForeignEnum {
1262 …private static readonly pb::FieldCodec<global::Conformance.ForeignEnum> _repeated_repeatedForeignE…
1263 = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Conformance.ForeignEnum) x);
1264 …eatedField<global::Conformance.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::…
1265 public pbc::RepeatedField<global::Conformance.ForeignEnum> RepeatedForeignEnum {
1454 …private static readonly pbc::MapField<string, global::Conformance.ForeignEnum>.Codec _map_mapStrin…
1455 …:Conformance.ForeignEnum>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int…
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs131 …elds[TestAllTypes.SingleForeignEnumFieldNumber].Accessor.SetValue(message, ForeignEnum.ForeignFoo); in SetValue_SingleFields()
141 SingleForeignEnum = ForeignEnum.ForeignFoo, in SetValue_SingleFields()
/external/protobuf/python/google/protobuf/internal/
Dsymbol_database_test.py59 db.RegisterEnumDescriptor(unittest_pb2.ForeignEnum.DESCRIPTOR)

12