Lines Matching refs:Proto2
34 using Proto2 = Google.Protobuf.TestProtos.Proto2; typedef
40 using static Google.Protobuf.TestProtos.Proto2.UnittestExtensions;
160 var message = new Proto2.TestAllTypes(); in HasValue_Proto2_Primitive()
161 …var accessor = ((IMessage) message).Descriptor.Fields[Proto2.TestAllTypes.OptionalInt64FieldNumber… in HasValue_Proto2_Primitive()
175 var message = new Proto2.TestAllTypes(); in HasValue_Proto2_Message()
176 …var field = ((IMessage) message).Descriptor.Fields[Proto2.TestAllTypes.OptionalForeignMessageField… in HasValue_Proto2_Message()
178 message.OptionalForeignMessage = new Proto2.ForeignMessage(); in HasValue_Proto2_Message()
187 var message = new Proto2.TestAllTypes(); in HasValue_Proto2_Oneof()
188 …var accessor = ((IMessage) message).Descriptor.Fields[Proto2.TestAllTypes.OneofStringFieldNumber].… in HasValue_Proto2_Oneof()
202 var message = new Proto2.TestAllTypes(); in HasValue_Proto2_Repeated()
203 …var accessor = ((IMessage) message).Descriptor.Fields[Proto2.TestAllTypes.RepeatedBoolFieldNumber]… in HasValue_Proto2_Repeated()
354 var message = new Proto2.TestAllTypes(); in Clear_Proto2_Oneof()
355 …var accessor = ((IMessage) message).Descriptor.Fields[Proto2.TestAllTypes.OneofUint32FieldNumber].… in Clear_Proto2_Oneof()
359 … Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in Clear_Proto2_Oneof()
361 … Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in Clear_Proto2_Oneof()
364 … Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.OneofUint32, message.OneofFieldCase); in Clear_Proto2_Oneof()
366 Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Clear_Proto2_Oneof()
392 …Assert.AreEqual(message.GetExtension(OptionalBoolExtension), Proto2.TestAllExtensions.Descriptor.F… in GetExtensionValue()
399 var message = new Proto2.TestAllExtensions(); in GetRepeatedExtensionValue()
402 …Assert.IsNotNull(Proto2.TestAllExtensions.Descriptor.FindFieldByNumber(RepeatedBoolExtension.Field… in GetRepeatedExtensionValue()
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()