4 instantiations of PrefixEnumType
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (4)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net11.0\Proto\Transcoding.cs (2)
4148private static readonly pb::MessageParser<PrefixEnumType> _parser = new pb::MessageParser<PrefixEnumType>(() => new PrefixEnumType()); 4184return new PrefixEnumType(this);
ConverterTests\JsonConverterWriteTests.cs (2)
500var dataTypes = new PrefixEnumType 516var dataTypes = new PrefixEnumType
42 references to PrefixEnumType
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (42)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net11.0\Proto\Transcoding.cs (20)
172new pbr::GeneratedClrTypeInfo(typeof(global::Transcoding.PrefixEnumType), global::Transcoding.PrefixEnumType.Parser, new[]{ "SingleEnum" }, null, new[]{ typeof(global::Transcoding.PrefixEnumType.Types.PrefixEnum) }, null, null), 4143public sealed partial class PrefixEnumType : pb::IMessage<PrefixEnumType> 4148private static readonly pb::MessageParser<PrefixEnumType> _parser = new pb::MessageParser<PrefixEnumType>(() => new PrefixEnumType()); 4152public static pb::MessageParser<PrefixEnumType> Parser { get { return _parser; } } 4176public PrefixEnumType(PrefixEnumType other) : this() { 4183public PrefixEnumType Clone() { 4189private global::Transcoding.PrefixEnumType.Types.PrefixEnum singleEnum_ = global::Transcoding.PrefixEnumType.Types.PrefixEnum.Unspecified; 4192public global::Transcoding.PrefixEnumType.Types.PrefixEnum SingleEnum { 4202return Equals(other as PrefixEnumType); 4207public bool Equals(PrefixEnumType other) { 4222if (SingleEnum != global::Transcoding.PrefixEnumType.Types.PrefixEnum.Unspecified) hash ^= SingleEnum.GetHashCode(); 4255if (SingleEnum != global::Transcoding.PrefixEnumType.Types.PrefixEnum.Unspecified) { 4269if (SingleEnum != global::Transcoding.PrefixEnumType.Types.PrefixEnum.Unspecified) { 4280public void MergeFrom(PrefixEnumType other) { 4284if (other.SingleEnum != global::Transcoding.PrefixEnumType.Types.PrefixEnum.Unspecified) { 4322SingleEnum = (global::Transcoding.PrefixEnumType.Types.PrefixEnum) input.ReadEnum();
ConverterTests\JsonConverterReadTests.cs (8)
282[InlineData("UNSPECIFIED", PrefixEnumType.Types.PrefixEnum.Unspecified)] 283[InlineData("PREFIX_ENUM_UNSPECIFIED", PrefixEnumType.Types.PrefixEnum.Unspecified)] 284[InlineData("FOO", PrefixEnumType.Types.PrefixEnum.Foo)] 285[InlineData("PREFIX_ENUM_FOO", PrefixEnumType.Types.PrefixEnum.Foo)] 286[InlineData("BAR", PrefixEnumType.Types.PrefixEnum.Bar)] 287public void Enum_RemovePrefix_ReadString(string value, PrefixEnumType.Types.PrefixEnum expectedValue) 294var result = AssertReadJson<PrefixEnumType>(json, descriptorRegistry: serviceDescriptorRegistry, serializeOld: false, settings: new GrpcJsonSettings { RemoveEnumPrefix = true });
ConverterTests\JsonConverterWriteTests.cs (14)
492[InlineData(PrefixEnumType.Types.PrefixEnum.Unspecified, @"""UNSPECIFIED""")] 493[InlineData(PrefixEnumType.Types.PrefixEnum.Foo, @"""FOO""")] 494[InlineData(PrefixEnumType.Types.PrefixEnum.Bar, @"""BAR""")] 495[InlineData(PrefixEnumType.Types.PrefixEnum.Baz, @"""BAZ""")] 496[InlineData(PrefixEnumType.Types.PrefixEnum._123, @"""_123""")] 497[InlineData((PrefixEnumType.Types.PrefixEnum)100, "100")] 498public void Enum_RemovePrefix(PrefixEnumType.Types.PrefixEnum value, string expectedString) 500var dataTypes = new PrefixEnumType 510[InlineData(PrefixEnumType.Types.PrefixEnum.Unspecified, @"""PREFIX_ENUM_UNSPECIFIED""")] 511[InlineData(PrefixEnumType.Types.PrefixEnum.Foo, @"""PREFIX_ENUM_FOO""")] 512[InlineData(PrefixEnumType.Types.PrefixEnum.Bar, @"""BAR""")] 513[InlineData(PrefixEnumType.Types.PrefixEnum._123, @"""PREFIX_ENUM_123""")] 514public void Enum_NoRemovePrefix(PrefixEnumType.Types.PrefixEnum value, string expectedString) 516var dataTypes = new PrefixEnumType