65 lines
1.5 KiB
C#
65 lines
1.5 KiB
C#
using System;
|
|
|
|
namespace Google.Protobuf.Reflection
|
|
{
|
|
// Token: 0x0200005A RID: 90
|
|
public sealed class EnumValueDescriptor : DescriptorBase
|
|
{
|
|
// Token: 0x0600057D RID: 1405 RVA: 0x00013AE8 File Offset: 0x00011CE8
|
|
internal EnumValueDescriptor(EnumValueDescriptorProto proto, FileDescriptor file, EnumDescriptor parent, int index)
|
|
: base(file, parent.FullName + "." + proto.Name, index)
|
|
{
|
|
this.proto = proto;
|
|
this.enumDescriptor = parent;
|
|
file.DescriptorPool.AddSymbol(this);
|
|
file.DescriptorPool.AddEnumValueByNumber(this);
|
|
}
|
|
|
|
// Token: 0x1700016D RID: 365
|
|
// (get) Token: 0x0600057E RID: 1406 RVA: 0x00013B3A File Offset: 0x00011D3A
|
|
internal EnumValueDescriptorProto Proto
|
|
{
|
|
get
|
|
{
|
|
return this.proto;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700016E RID: 366
|
|
// (get) Token: 0x0600057F RID: 1407 RVA: 0x00013B42 File Offset: 0x00011D42
|
|
public override string Name
|
|
{
|
|
get
|
|
{
|
|
return this.proto.Name;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700016F RID: 367
|
|
// (get) Token: 0x06000580 RID: 1408 RVA: 0x00013B4F File Offset: 0x00011D4F
|
|
public int Number
|
|
{
|
|
get
|
|
{
|
|
return this.Proto.Number;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000170 RID: 368
|
|
// (get) Token: 0x06000581 RID: 1409 RVA: 0x00013B5C File Offset: 0x00011D5C
|
|
public EnumDescriptor EnumDescriptor
|
|
{
|
|
get
|
|
{
|
|
return this.enumDescriptor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000214 RID: 532
|
|
private readonly EnumDescriptor enumDescriptor;
|
|
|
|
// Token: 0x04000215 RID: 533
|
|
private readonly EnumValueDescriptorProto proto;
|
|
}
|
|
}
|