4 instantiations of PrefixEnumType
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (4)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net11.0\Proto\Transcoding.cs (2)
4148
private static readonly pb::MessageParser<PrefixEnumType> _parser = new pb::MessageParser<PrefixEnumType>(() => new
PrefixEnumType
());
4184
return new
PrefixEnumType
(this);
ConverterTests\JsonConverterWriteTests.cs (2)
500
var dataTypes = new
PrefixEnumType
516
var 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)
172
new pbr::GeneratedClrTypeInfo(typeof(global::Transcoding.
PrefixEnumType
), global::Transcoding.
PrefixEnumType
.Parser, new[]{ "SingleEnum" }, null, new[]{ typeof(global::Transcoding.
PrefixEnumType
.Types.PrefixEnum) }, null, null),
4143
public sealed partial class PrefixEnumType : pb::IMessage<
PrefixEnumType
>
4148
private static readonly pb::MessageParser<
PrefixEnumType
> _parser = new pb::MessageParser<
PrefixEnumType
>(() => new PrefixEnumType());
4152
public static pb::MessageParser<
PrefixEnumType
> Parser { get { return _parser; } }
4176
public PrefixEnumType(
PrefixEnumType
other) : this() {
4183
public
PrefixEnumType
Clone() {
4189
private global::Transcoding.
PrefixEnumType
.Types.PrefixEnum singleEnum_ = global::Transcoding.
PrefixEnumType
.Types.PrefixEnum.Unspecified;
4192
public global::Transcoding.
PrefixEnumType
.Types.PrefixEnum SingleEnum {
4202
return Equals(other as
PrefixEnumType
);
4207
public bool Equals(
PrefixEnumType
other) {
4222
if (SingleEnum != global::Transcoding.
PrefixEnumType
.Types.PrefixEnum.Unspecified) hash ^= SingleEnum.GetHashCode();
4255
if (SingleEnum != global::Transcoding.
PrefixEnumType
.Types.PrefixEnum.Unspecified) {
4269
if (SingleEnum != global::Transcoding.
PrefixEnumType
.Types.PrefixEnum.Unspecified) {
4280
public void MergeFrom(
PrefixEnumType
other) {
4284
if (other.SingleEnum != global::Transcoding.
PrefixEnumType
.Types.PrefixEnum.Unspecified) {
4322
SingleEnum = (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)]
287
public void Enum_RemovePrefix_ReadString(string value,
PrefixEnumType
.Types.PrefixEnum expectedValue)
294
var
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")]
498
public void Enum_RemovePrefix(
PrefixEnumType
.Types.PrefixEnum value, string expectedString)
500
var
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""")]
514
public void Enum_NoRemovePrefix(
PrefixEnumType
.Types.PrefixEnum value, string expectedString)
516
var
dataTypes = new PrefixEnumType