/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | EnumTest.java | 35 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()
|
D | TestUtil.java | 225 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 …]
|
D | GeneratedMessageTest.java | 56 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/ |
D | SampleMessages.cs | 57 SingleForeignEnum = ForeignEnum.ForeignBar, in CreateFullTestAllTypes() 79 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in CreateFullTestAllTypes()
|
D | JsonFormatterTest.cs | 78 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()
|
D | FieldCodecTest.cs | 60 new FieldCodecTestData<ForeignEnum>( 61 … FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
|
D | JsonParserTest.cs | 900 [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()
|
D | GeneratedMessageTest.cs | 69 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/ |
D | testbinary.proto | 62 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/ |
D | conformance.pb.go | 61 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 …]
|
D | conformance.proto | 154 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/ |
D | proto_test.js | 125 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/ |
D | unittest_no_field_presence.proto | 77 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
|
D | unittest.proto | 103 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 …]
|
D | unittest_proto3.proto | 101 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];
|
D | unittest_proto3_arena_lite.proto | 85 ForeignEnum optional_foreign_enum = 22; 128 repeated ForeignEnum repeated_foreign_enum = 52; 164 repeated ForeignEnum packed_enum = 103 [packed = true]; 197 enum ForeignEnum { enum
|
D | unittest_proto3_lite.proto | 84 ForeignEnum optional_foreign_enum = 22; 127 repeated ForeignEnum repeated_foreign_enum = 52; 163 repeated ForeignEnum packed_enum = 103 [packed = true]; 196 enum ForeignEnum { enum
|
D | unittest_proto3_arena.proto | 84 ForeignEnum optional_foreign_enum = 22; 127 repeated ForeignEnum repeated_foreign_enum = 52; 163 repeated ForeignEnum packed_enum = 103 [packed = true]; 196 enum ForeignEnum { enum
|
D | unittest_no_arena.proto | 107 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/ |
D | test.proto | 46 ForeignEnum optional_foreign_enum = 22; 103 enum ForeignEnum { enum
|
/external/protobuf/conformance/ |
D | conformance.proto | 154 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/ |
D | UnittestProto3.cs | 155 …: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/ |
D | Conformance.cs | 189 …[] {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/ |
D | FieldAccessTest.cs | 131 …elds[TestAllTypes.SingleForeignEnumFieldNumber].Accessor.SetValue(message, ForeignEnum.ForeignFoo); in SetValue_SingleFields() 141 SingleForeignEnum = ForeignEnum.ForeignFoo, in SetValue_SingleFields()
|
/external/protobuf/python/google/protobuf/internal/ |
D | symbol_database_test.py | 59 db.RegisterEnumDescriptor(unittest_pb2.ForeignEnum.DESCRIPTOR)
|