Lines Matching refs:fields
47 var fields = TestAllTypes.Descriptor.Fields; in GetValue()
48 …Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue()
49 …Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue()
50 …Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue()
51 …Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue()
52 …Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue()
53 …Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue()
54 …Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue()
55 …Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue()
56 …Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue()
57 …Assert.AreEqual(message.SingleImportMessage, fields[TestAllTypes.SingleImportMessageFieldNumber].A… in GetValue()
58 …Assert.AreEqual(message.SingleInt32, fields[TestAllTypes.SingleInt32FieldNumber].Accessor.GetValue… in GetValue()
59 …Assert.AreEqual(message.SingleInt64, fields[TestAllTypes.SingleInt64FieldNumber].Accessor.GetValue… in GetValue()
60 …Assert.AreEqual(message.SingleNestedEnum, fields[TestAllTypes.SingleNestedEnumFieldNumber].Accesso… in GetValue()
61 …Assert.AreEqual(message.SingleNestedMessage, fields[TestAllTypes.SingleNestedMessageFieldNumber].A… in GetValue()
62 …Assert.AreEqual(message.SinglePublicImportMessage, fields[TestAllTypes.SinglePublicImportMessageFi… in GetValue()
63 …Assert.AreEqual(message.SingleSint32, fields[TestAllTypes.SingleSint32FieldNumber].Accessor.GetVal… in GetValue()
64 …Assert.AreEqual(message.SingleSint64, fields[TestAllTypes.SingleSint64FieldNumber].Accessor.GetVal… in GetValue()
65 …Assert.AreEqual(message.SingleString, fields[TestAllTypes.SingleStringFieldNumber].Accessor.GetVal… in GetValue()
66 …Assert.AreEqual(message.SingleSfixed32, fields[TestAllTypes.SingleSfixed32FieldNumber].Accessor.Ge… in GetValue()
67 …Assert.AreEqual(message.SingleSfixed64, fields[TestAllTypes.SingleSfixed64FieldNumber].Accessor.Ge… in GetValue()
68 …Assert.AreEqual(message.SingleUint32, fields[TestAllTypes.SingleUint32FieldNumber].Accessor.GetVal… in GetValue()
69 …Assert.AreEqual(message.SingleUint64, fields[TestAllTypes.SingleUint64FieldNumber].Accessor.GetVal… in GetValue()
70 …Assert.AreEqual(message.OneofBytes, fields[TestAllTypes.OneofBytesFieldNumber].Accessor.GetValue(m… in GetValue()
71 …Assert.AreEqual(message.OneofString, fields[TestAllTypes.OneofStringFieldNumber].Accessor.GetValue… in GetValue()
72 …Assert.AreEqual(message.OneofNestedMessage, fields[TestAllTypes.OneofNestedMessageFieldNumber].Acc… in GetValue()
73 …Assert.AreEqual(message.OneofUint32, fields[TestAllTypes.OneofUint32FieldNumber].Accessor.GetValue… in GetValue()
76 … var list = (IList) fields[TestAllTypes.RepeatedInt32FieldNumber].Accessor.GetValue(message); in GetValue()
82 fields = TestMap.Descriptor.Fields; in GetValue()
83 …var dictionary = (IDictionary) fields[TestMap.MapStringStringFieldNumber].Accessor.GetValue(mapMes… in GetValue()
92 var fields = TestAllTypes.Descriptor.Fields; in Clear()
93 fields[TestAllTypes.SingleBoolFieldNumber].Accessor.Clear(message); in Clear()
94 fields[TestAllTypes.SingleInt32FieldNumber].Accessor.Clear(message); in Clear()
95 fields[TestAllTypes.SingleStringFieldNumber].Accessor.Clear(message); in Clear()
96 fields[TestAllTypes.SingleBytesFieldNumber].Accessor.Clear(message); in Clear()
97 fields[TestAllTypes.SingleForeignEnumFieldNumber].Accessor.Clear(message); in Clear()
98 fields[TestAllTypes.SingleForeignMessageFieldNumber].Accessor.Clear(message); in Clear()
99 fields[TestAllTypes.RepeatedDoubleFieldNumber].Accessor.Clear(message); in Clear()
116 fields = TestMap.Descriptor.Fields; in Clear()
117 fields[TestMap.MapStringStringFieldNumber].Accessor.Clear(mapMessage); in Clear()
126 var fields = TestAllTypes.Descriptor.Fields; in SetValue_SingleFields()
127 fields[TestAllTypes.SingleBoolFieldNumber].Accessor.SetValue(message, false); in SetValue_SingleFields()
128 fields[TestAllTypes.SingleInt32FieldNumber].Accessor.SetValue(message, 500); in SetValue_SingleFields()
129 … fields[TestAllTypes.SingleStringFieldNumber].Accessor.SetValue(message, "It's a string"); in SetValue_SingleFields()
130 …fields[TestAllTypes.SingleBytesFieldNumber].Accessor.SetValue(message, ByteString.CopyFrom(99, 98,… in SetValue_SingleFields()
131 …fields[TestAllTypes.SingleForeignEnumFieldNumber].Accessor.SetValue(message, ForeignEnum.ForeignFo… in SetValue_SingleFields()
132 …fields[TestAllTypes.SingleForeignMessageFieldNumber].Accessor.SetValue(message, new ForeignMessage… in SetValue_SingleFields()
133 fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.SetValue(message, 20150701.5); in SetValue_SingleFields()
153 var fields = message.Descriptor.Fields; in SetValue_SingleFields_WrongType()
154 …Assert.Throws<InvalidCastException>(() => fields[TestAllTypes.SingleBoolFieldNumber].Accessor.SetV… in SetValue_SingleFields_WrongType()
161 var fields = message.Descriptor.Fields; in SetValue_MapFields()
162 …Assert.Throws<InvalidOperationException>(() => fields[TestMap.MapStringStringFieldNumber].Accessor… in SetValue_MapFields()
169 var fields = message.Descriptor.Fields; in SetValue_RepeatedFields()
170 …Assert.Throws<InvalidOperationException>(() => fields[TestAllTypes.RepeatedDoubleFieldNumber].Acce… in SetValue_RepeatedFields()
177 var fields = message.Descriptor.Fields; in GetValue_IncorrectType()
178 …Assert.Throws<InvalidCastException>(() => fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetV… in GetValue_IncorrectType()