• Home
  • Raw
  • Download

Lines Matching refs:fields

51             var fields = TestProtos.TestAllTypes.Descriptor.Fields;  in GetValue()
52 …Assert.AreEqual(message.SingleBool, fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].Accessor… in GetValue()
53 …Assert.AreEqual(message.SingleBytes, fields[TestProtos.TestAllTypes.SingleBytesFieldNumber].Access… in GetValue()
54 …Assert.AreEqual(message.SingleDouble, fields[TestProtos.TestAllTypes.SingleDoubleFieldNumber].Acce… in GetValue()
55 …Assert.AreEqual(message.SingleFixed32, fields[TestProtos.TestAllTypes.SingleFixed32FieldNumber].Ac… in GetValue()
56 …Assert.AreEqual(message.SingleFixed64, fields[TestProtos.TestAllTypes.SingleFixed64FieldNumber].Ac… in GetValue()
57 …Assert.AreEqual(message.SingleFloat, fields[TestProtos.TestAllTypes.SingleFloatFieldNumber].Access… in GetValue()
58 …Assert.AreEqual(message.SingleForeignEnum, fields[TestProtos.TestAllTypes.SingleForeignEnumFieldNu… in GetValue()
59 …Assert.AreEqual(message.SingleForeignMessage, fields[TestProtos.TestAllTypes.SingleForeignMessageF… in GetValue()
60 …Assert.AreEqual(message.SingleImportEnum, fields[TestProtos.TestAllTypes.SingleImportEnumFieldNumb… in GetValue()
61 …Assert.AreEqual(message.SingleImportMessage, fields[TestProtos.TestAllTypes.SingleImportMessageFie… in GetValue()
62 …Assert.AreEqual(message.SingleInt32, fields[TestProtos.TestAllTypes.SingleInt32FieldNumber].Access… in GetValue()
63 …Assert.AreEqual(message.SingleInt64, fields[TestProtos.TestAllTypes.SingleInt64FieldNumber].Access… in GetValue()
64 …Assert.AreEqual(message.SingleNestedEnum, fields[TestProtos.TestAllTypes.SingleNestedEnumFieldNumb… in GetValue()
65 …Assert.AreEqual(message.SingleNestedMessage, fields[TestProtos.TestAllTypes.SingleNestedMessageFie… in GetValue()
66 …Assert.AreEqual(message.SinglePublicImportMessage, fields[TestProtos.TestAllTypes.SinglePublicImpo… in GetValue()
67 …Assert.AreEqual(message.SingleSint32, fields[TestProtos.TestAllTypes.SingleSint32FieldNumber].Acce… in GetValue()
68 …Assert.AreEqual(message.SingleSint64, fields[TestProtos.TestAllTypes.SingleSint64FieldNumber].Acce… in GetValue()
69 …Assert.AreEqual(message.SingleString, fields[TestProtos.TestAllTypes.SingleStringFieldNumber].Acce… in GetValue()
70 …Assert.AreEqual(message.SingleSfixed32, fields[TestProtos.TestAllTypes.SingleSfixed32FieldNumber].… in GetValue()
71 …Assert.AreEqual(message.SingleSfixed64, fields[TestProtos.TestAllTypes.SingleSfixed64FieldNumber].… in GetValue()
72 …Assert.AreEqual(message.SingleUint32, fields[TestProtos.TestAllTypes.SingleUint32FieldNumber].Acce… in GetValue()
73 …Assert.AreEqual(message.SingleUint64, fields[TestProtos.TestAllTypes.SingleUint64FieldNumber].Acce… in GetValue()
74 …Assert.AreEqual(message.OneofBytes, fields[TestProtos.TestAllTypes.OneofBytesFieldNumber].Accessor… in GetValue()
75 …Assert.AreEqual(message.OneofString, fields[TestProtos.TestAllTypes.OneofStringFieldNumber].Access… in GetValue()
76 …Assert.AreEqual(message.OneofNestedMessage, fields[TestProtos.TestAllTypes.OneofNestedMessageField… in GetValue()
77 …Assert.AreEqual(message.OneofUint32, fields[TestProtos.TestAllTypes.OneofUint32FieldNumber].Access… in GetValue()
80 …var list = (IList) fields[TestProtos.TestAllTypes.RepeatedInt32FieldNumber].Accessor.GetValue(mess… in GetValue()
86 fields = TestMap.Descriptor.Fields; in GetValue()
87 …var dictionary = (IDictionary) fields[TestMap.MapStringStringFieldNumber].Accessor.GetValue(mapMes… in GetValue()
96 var fields = message.Descriptor.Fields; in GetValue_IncorrectType()
97 …Assert.Throws<InvalidCastException>(() => fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].Ac… in GetValue_IncorrectType()
145 var fields = message.Descriptor.Fields; in HasValue_Proto3_Primitive_NotOptional()
146 …Assert.Throws<InvalidOperationException>(() => fields[TestProtos.TestAllTypes.SingleBoolFieldNumbe… in HasValue_Proto3_Primitive_NotOptional()
212 var fields = TestProtos.TestAllTypes.Descriptor.Fields; in SetValue_SingleFields()
213 fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].Accessor.SetValue(message, false); in SetValue_SingleFields()
214 fields[TestProtos.TestAllTypes.SingleInt32FieldNumber].Accessor.SetValue(message, 500); in SetValue_SingleFields()
215fields[TestProtos.TestAllTypes.SingleStringFieldNumber].Accessor.SetValue(message, "It's a string"… in SetValue_SingleFields()
216fields[TestProtos.TestAllTypes.SingleBytesFieldNumber].Accessor.SetValue(message, ByteString.CopyF… in SetValue_SingleFields()
217fields[TestProtos.TestAllTypes.SingleForeignEnumFieldNumber].Accessor.SetValue(message, ForeignEnu… in SetValue_SingleFields()
218fields[TestProtos.TestAllTypes.SingleForeignMessageFieldNumber].Accessor.SetValue(message, new For… in SetValue_SingleFields()
219fields[TestProtos.TestAllTypes.SingleDoubleFieldNumber].Accessor.SetValue(message, 20150701.5); in SetValue_SingleFields()
239 var fields = message.Descriptor.Fields; in SetValue_SingleFields_WrongType()
240 …Assert.Throws<InvalidCastException>(() => fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].Ac… in SetValue_SingleFields_WrongType()
247 var fields = message.Descriptor.Fields; in SetValue_MapFields()
248 …Assert.Throws<InvalidOperationException>(() => fields[TestMap.MapStringStringFieldNumber].Accessor… in SetValue_MapFields()
255 var fields = message.Descriptor.Fields; in SetValue_RepeatedFields()
256 …Assert.Throws<InvalidOperationException>(() => fields[TestProtos.TestAllTypes.RepeatedDoubleFieldN… in SetValue_RepeatedFields()
283 var fields = TestProtos.TestAllTypes.Descriptor.Fields; in Clear()
284 fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].Accessor.Clear(message); in Clear()
285 fields[TestProtos.TestAllTypes.SingleInt32FieldNumber].Accessor.Clear(message); in Clear()
286 fields[TestProtos.TestAllTypes.SingleStringFieldNumber].Accessor.Clear(message); in Clear()
287 fields[TestProtos.TestAllTypes.SingleBytesFieldNumber].Accessor.Clear(message); in Clear()
288 fields[TestProtos.TestAllTypes.SingleForeignEnumFieldNumber].Accessor.Clear(message); in Clear()
289 fields[TestProtos.TestAllTypes.SingleForeignMessageFieldNumber].Accessor.Clear(message); in Clear()
290 fields[TestProtos.TestAllTypes.RepeatedDoubleFieldNumber].Accessor.Clear(message); in Clear()
307 fields = TestMap.Descriptor.Fields; in Clear()
308 fields[TestMap.MapStringStringFieldNumber].Accessor.Clear(mapMessage); in Clear()
413 var fields = TestProtos.TestAllTypes.Descriptor.Fields; in HasPresence()
414 Assert.IsFalse(fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].HasPresence); in HasPresence()
415 Assert.IsTrue(fields[TestProtos.TestAllTypes.OneofBytesFieldNumber].HasPresence); in HasPresence()
416 … Assert.IsTrue(fields[TestProtos.TestAllTypes.SingleForeignMessageFieldNumber].HasPresence); in HasPresence()
417 Assert.IsFalse(fields[TestProtos.TestAllTypes.RepeatedBoolFieldNumber].HasPresence); in HasPresence()
419 fields = TestMap.Descriptor.Fields; in HasPresence()
420 Assert.IsFalse(fields[TestMap.MapBoolBoolFieldNumber].HasPresence); in HasPresence()
422 fields = TestProto3Optional.Descriptor.Fields; in HasPresence()
423 Assert.IsTrue(fields[TestProto3Optional.OptionalBoolFieldNumber].HasPresence); in HasPresence()
426 fields = Proto2.TestAllTypes.Descriptor.Fields; in HasPresence()
427 Assert.IsTrue(fields[Proto2.TestAllTypes.OptionalBoolFieldNumber].HasPresence); in HasPresence()
428 Assert.IsTrue(fields[Proto2.TestAllTypes.OneofBytesFieldNumber].HasPresence); in HasPresence()
429 … Assert.IsTrue(fields[Proto2.TestAllTypes.OptionalForeignMessageFieldNumber].HasPresence); in HasPresence()
430 Assert.IsFalse(fields[Proto2.TestAllTypes.RepeatedBoolFieldNumber].HasPresence); in HasPresence()
432 fields = Proto2.TestRequired.Descriptor.Fields; in HasPresence()
433 Assert.IsTrue(fields[Proto2.TestRequired.AFieldNumber].HasPresence); in HasPresence()