923 lines
26 KiB
C#
923 lines
26 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using Google.Protobuf.Collections;
|
|
|
|
namespace Google.Protobuf.Reflection
|
|
{
|
|
// Token: 0x02000043 RID: 67
|
|
internal sealed class DescriptorProto : IMessage<DescriptorProto>, IMessage, IEquatable<DescriptorProto>, IDeepCloneable<DescriptorProto>
|
|
{
|
|
// Token: 0x170000D9 RID: 217
|
|
// (get) Token: 0x060003BE RID: 958 RVA: 0x0000E9CB File Offset: 0x0000CBCB
|
|
[DebuggerNonUserCode]
|
|
public static MessageParser<DescriptorProto> Parser
|
|
{
|
|
get
|
|
{
|
|
return DescriptorProto._parser;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000DA RID: 218
|
|
// (get) Token: 0x060003BF RID: 959 RVA: 0x0000E9D2 File Offset: 0x0000CBD2
|
|
[DebuggerNonUserCode]
|
|
public static MessageDescriptor Descriptor
|
|
{
|
|
get
|
|
{
|
|
return DescriptorReflection.Descriptor.MessageTypes[2];
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000DB RID: 219
|
|
// (get) Token: 0x060003C0 RID: 960 RVA: 0x0000E9E4 File Offset: 0x0000CBE4
|
|
[DebuggerNonUserCode]
|
|
MessageDescriptor IMessage.Descriptor
|
|
{
|
|
get
|
|
{
|
|
return DescriptorProto.Descriptor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060003C1 RID: 961 RVA: 0x0000E9EC File Offset: 0x0000CBEC
|
|
[DebuggerNonUserCode]
|
|
public DescriptorProto()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060003C2 RID: 962 RVA: 0x0000EA64 File Offset: 0x0000CC64
|
|
[DebuggerNonUserCode]
|
|
public DescriptorProto(DescriptorProto other)
|
|
: this()
|
|
{
|
|
this.name_ = other.name_;
|
|
this.field_ = other.field_.Clone();
|
|
this.extension_ = other.extension_.Clone();
|
|
this.nestedType_ = other.nestedType_.Clone();
|
|
this.enumType_ = other.enumType_.Clone();
|
|
this.extensionRange_ = other.extensionRange_.Clone();
|
|
this.oneofDecl_ = other.oneofDecl_.Clone();
|
|
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
|
|
this.reservedRange_ = other.reservedRange_.Clone();
|
|
this.reservedName_ = other.reservedName_.Clone();
|
|
}
|
|
|
|
// Token: 0x060003C3 RID: 963 RVA: 0x0000EB27 File Offset: 0x0000CD27
|
|
[DebuggerNonUserCode]
|
|
public DescriptorProto Clone()
|
|
{
|
|
return new DescriptorProto(this);
|
|
}
|
|
|
|
// Token: 0x170000DC RID: 220
|
|
// (get) Token: 0x060003C4 RID: 964 RVA: 0x0000EB2F File Offset: 0x0000CD2F
|
|
// (set) Token: 0x060003C5 RID: 965 RVA: 0x0000EB37 File Offset: 0x0000CD37
|
|
[DebuggerNonUserCode]
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
return this.name_;
|
|
}
|
|
set
|
|
{
|
|
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000DD RID: 221
|
|
// (get) Token: 0x060003C6 RID: 966 RVA: 0x0000EB4A File Offset: 0x0000CD4A
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<FieldDescriptorProto> Field
|
|
{
|
|
get
|
|
{
|
|
return this.field_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000DE RID: 222
|
|
// (get) Token: 0x060003C7 RID: 967 RVA: 0x0000EB52 File Offset: 0x0000CD52
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<FieldDescriptorProto> Extension
|
|
{
|
|
get
|
|
{
|
|
return this.extension_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000DF RID: 223
|
|
// (get) Token: 0x060003C8 RID: 968 RVA: 0x0000EB5A File Offset: 0x0000CD5A
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<DescriptorProto> NestedType
|
|
{
|
|
get
|
|
{
|
|
return this.nestedType_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000E0 RID: 224
|
|
// (get) Token: 0x060003C9 RID: 969 RVA: 0x0000EB62 File Offset: 0x0000CD62
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<EnumDescriptorProto> EnumType
|
|
{
|
|
get
|
|
{
|
|
return this.enumType_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000E1 RID: 225
|
|
// (get) Token: 0x060003CA RID: 970 RVA: 0x0000EB6A File Offset: 0x0000CD6A
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<DescriptorProto.Types.ExtensionRange> ExtensionRange
|
|
{
|
|
get
|
|
{
|
|
return this.extensionRange_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000E2 RID: 226
|
|
// (get) Token: 0x060003CB RID: 971 RVA: 0x0000EB72 File Offset: 0x0000CD72
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<OneofDescriptorProto> OneofDecl
|
|
{
|
|
get
|
|
{
|
|
return this.oneofDecl_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000E3 RID: 227
|
|
// (get) Token: 0x060003CC RID: 972 RVA: 0x0000EB7A File Offset: 0x0000CD7A
|
|
// (set) Token: 0x060003CD RID: 973 RVA: 0x0000EB82 File Offset: 0x0000CD82
|
|
[DebuggerNonUserCode]
|
|
public MessageOptions Options
|
|
{
|
|
get
|
|
{
|
|
return this.options_;
|
|
}
|
|
set
|
|
{
|
|
this.options_ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000E4 RID: 228
|
|
// (get) Token: 0x060003CE RID: 974 RVA: 0x0000EB8B File Offset: 0x0000CD8B
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<DescriptorProto.Types.ReservedRange> ReservedRange
|
|
{
|
|
get
|
|
{
|
|
return this.reservedRange_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000E5 RID: 229
|
|
// (get) Token: 0x060003CF RID: 975 RVA: 0x0000EB93 File Offset: 0x0000CD93
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<string> ReservedName
|
|
{
|
|
get
|
|
{
|
|
return this.reservedName_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060003D0 RID: 976 RVA: 0x0000EB9B File Offset: 0x0000CD9B
|
|
[DebuggerNonUserCode]
|
|
public override bool Equals(object other)
|
|
{
|
|
return this.Equals(other as DescriptorProto);
|
|
}
|
|
|
|
// Token: 0x060003D1 RID: 977 RVA: 0x0000EBAC File Offset: 0x0000CDAC
|
|
[DebuggerNonUserCode]
|
|
public bool Equals(DescriptorProto other)
|
|
{
|
|
return other != null && (other == this || (!(this.Name != other.Name) && this.field_.Equals(other.field_) && this.extension_.Equals(other.extension_) && this.nestedType_.Equals(other.nestedType_) && this.enumType_.Equals(other.enumType_) && this.extensionRange_.Equals(other.extensionRange_) && this.oneofDecl_.Equals(other.oneofDecl_) && object.Equals(this.Options, other.Options) && this.reservedRange_.Equals(other.reservedRange_) && this.reservedName_.Equals(other.reservedName_)));
|
|
}
|
|
|
|
// Token: 0x060003D2 RID: 978 RVA: 0x0000EC98 File Offset: 0x0000CE98
|
|
[DebuggerNonUserCode]
|
|
public override int GetHashCode()
|
|
{
|
|
int num = 1;
|
|
if (this.Name.Length != 0)
|
|
{
|
|
num ^= this.Name.GetHashCode();
|
|
}
|
|
num ^= this.field_.GetHashCode();
|
|
num ^= this.extension_.GetHashCode();
|
|
num ^= this.nestedType_.GetHashCode();
|
|
num ^= this.enumType_.GetHashCode();
|
|
num ^= this.extensionRange_.GetHashCode();
|
|
num ^= this.oneofDecl_.GetHashCode();
|
|
if (this.options_ != null)
|
|
{
|
|
num ^= this.Options.GetHashCode();
|
|
}
|
|
num ^= this.reservedRange_.GetHashCode();
|
|
return num ^ this.reservedName_.GetHashCode();
|
|
}
|
|
|
|
// Token: 0x060003D3 RID: 979 RVA: 0x00007C02 File Offset: 0x00005E02
|
|
[DebuggerNonUserCode]
|
|
public override string ToString()
|
|
{
|
|
return JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
// Token: 0x060003D4 RID: 980 RVA: 0x0000ED4C File Offset: 0x0000CF4C
|
|
[DebuggerNonUserCode]
|
|
public void WriteTo(CodedOutputStream output)
|
|
{
|
|
if (this.Name.Length != 0)
|
|
{
|
|
output.WriteRawTag(10);
|
|
output.WriteString(this.Name);
|
|
}
|
|
this.field_.WriteTo(output, DescriptorProto._repeated_field_codec);
|
|
this.nestedType_.WriteTo(output, DescriptorProto._repeated_nestedType_codec);
|
|
this.enumType_.WriteTo(output, DescriptorProto._repeated_enumType_codec);
|
|
this.extensionRange_.WriteTo(output, DescriptorProto._repeated_extensionRange_codec);
|
|
this.extension_.WriteTo(output, DescriptorProto._repeated_extension_codec);
|
|
if (this.options_ != null)
|
|
{
|
|
output.WriteRawTag(58);
|
|
output.WriteMessage(this.Options);
|
|
}
|
|
this.oneofDecl_.WriteTo(output, DescriptorProto._repeated_oneofDecl_codec);
|
|
this.reservedRange_.WriteTo(output, DescriptorProto._repeated_reservedRange_codec);
|
|
this.reservedName_.WriteTo(output, DescriptorProto._repeated_reservedName_codec);
|
|
}
|
|
|
|
// Token: 0x060003D5 RID: 981 RVA: 0x0000EE20 File Offset: 0x0000D020
|
|
[DebuggerNonUserCode]
|
|
public int CalculateSize()
|
|
{
|
|
int num = 0;
|
|
if (this.Name.Length != 0)
|
|
{
|
|
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
|
|
}
|
|
num += this.field_.CalculateSize(DescriptorProto._repeated_field_codec);
|
|
num += this.extension_.CalculateSize(DescriptorProto._repeated_extension_codec);
|
|
num += this.nestedType_.CalculateSize(DescriptorProto._repeated_nestedType_codec);
|
|
num += this.enumType_.CalculateSize(DescriptorProto._repeated_enumType_codec);
|
|
num += this.extensionRange_.CalculateSize(DescriptorProto._repeated_extensionRange_codec);
|
|
num += this.oneofDecl_.CalculateSize(DescriptorProto._repeated_oneofDecl_codec);
|
|
if (this.options_ != null)
|
|
{
|
|
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
|
|
}
|
|
num += this.reservedRange_.CalculateSize(DescriptorProto._repeated_reservedRange_codec);
|
|
return num + this.reservedName_.CalculateSize(DescriptorProto._repeated_reservedName_codec);
|
|
}
|
|
|
|
// Token: 0x060003D6 RID: 982 RVA: 0x0000EF00 File Offset: 0x0000D100
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(DescriptorProto other)
|
|
{
|
|
if (other == null)
|
|
{
|
|
return;
|
|
}
|
|
if (other.Name.Length != 0)
|
|
{
|
|
this.Name = other.Name;
|
|
}
|
|
this.field_.Add(other.field_);
|
|
this.extension_.Add(other.extension_);
|
|
this.nestedType_.Add(other.nestedType_);
|
|
this.enumType_.Add(other.enumType_);
|
|
this.extensionRange_.Add(other.extensionRange_);
|
|
this.oneofDecl_.Add(other.oneofDecl_);
|
|
if (other.options_ != null)
|
|
{
|
|
if (this.options_ == null)
|
|
{
|
|
this.options_ = new MessageOptions();
|
|
}
|
|
this.Options.MergeFrom(other.Options);
|
|
}
|
|
this.reservedRange_.Add(other.reservedRange_);
|
|
this.reservedName_.Add(other.reservedName_);
|
|
}
|
|
|
|
// Token: 0x060003D7 RID: 983 RVA: 0x0000EFE0 File Offset: 0x0000D1E0
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(CodedInputStream input)
|
|
{
|
|
uint num;
|
|
while ((num = input.ReadTag()) != 0U)
|
|
{
|
|
if (num <= 42U)
|
|
{
|
|
if (num <= 18U)
|
|
{
|
|
if (num == 10U)
|
|
{
|
|
this.Name = input.ReadString();
|
|
continue;
|
|
}
|
|
if (num == 18U)
|
|
{
|
|
this.field_.AddEntriesFrom(input, DescriptorProto._repeated_field_codec);
|
|
continue;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (num == 26U)
|
|
{
|
|
this.nestedType_.AddEntriesFrom(input, DescriptorProto._repeated_nestedType_codec);
|
|
continue;
|
|
}
|
|
if (num == 34U)
|
|
{
|
|
this.enumType_.AddEntriesFrom(input, DescriptorProto._repeated_enumType_codec);
|
|
continue;
|
|
}
|
|
if (num == 42U)
|
|
{
|
|
this.extensionRange_.AddEntriesFrom(input, DescriptorProto._repeated_extensionRange_codec);
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
else if (num <= 58U)
|
|
{
|
|
if (num == 50U)
|
|
{
|
|
this.extension_.AddEntriesFrom(input, DescriptorProto._repeated_extension_codec);
|
|
continue;
|
|
}
|
|
if (num == 58U)
|
|
{
|
|
if (this.options_ == null)
|
|
{
|
|
this.options_ = new MessageOptions();
|
|
}
|
|
input.ReadMessage(this.options_);
|
|
continue;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (num == 66U)
|
|
{
|
|
this.oneofDecl_.AddEntriesFrom(input, DescriptorProto._repeated_oneofDecl_codec);
|
|
continue;
|
|
}
|
|
if (num == 74U)
|
|
{
|
|
this.reservedRange_.AddEntriesFrom(input, DescriptorProto._repeated_reservedRange_codec);
|
|
continue;
|
|
}
|
|
if (num == 82U)
|
|
{
|
|
this.reservedName_.AddEntriesFrom(input, DescriptorProto._repeated_reservedName_codec);
|
|
continue;
|
|
}
|
|
}
|
|
input.SkipLastField();
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000139 RID: 313
|
|
private static readonly MessageParser<DescriptorProto> _parser = new MessageParser<DescriptorProto>(() => new DescriptorProto());
|
|
|
|
// Token: 0x0400013A RID: 314
|
|
public const int NameFieldNumber = 1;
|
|
|
|
// Token: 0x0400013B RID: 315
|
|
private string name_ = "";
|
|
|
|
// Token: 0x0400013C RID: 316
|
|
public const int FieldFieldNumber = 2;
|
|
|
|
// Token: 0x0400013D RID: 317
|
|
private static readonly FieldCodec<FieldDescriptorProto> _repeated_field_codec = FieldCodec.ForMessage<FieldDescriptorProto>(18U, FieldDescriptorProto.Parser);
|
|
|
|
// Token: 0x0400013E RID: 318
|
|
private readonly RepeatedField<FieldDescriptorProto> field_ = new RepeatedField<FieldDescriptorProto>();
|
|
|
|
// Token: 0x0400013F RID: 319
|
|
public const int ExtensionFieldNumber = 6;
|
|
|
|
// Token: 0x04000140 RID: 320
|
|
private static readonly FieldCodec<FieldDescriptorProto> _repeated_extension_codec = FieldCodec.ForMessage<FieldDescriptorProto>(50U, FieldDescriptorProto.Parser);
|
|
|
|
// Token: 0x04000141 RID: 321
|
|
private readonly RepeatedField<FieldDescriptorProto> extension_ = new RepeatedField<FieldDescriptorProto>();
|
|
|
|
// Token: 0x04000142 RID: 322
|
|
public const int NestedTypeFieldNumber = 3;
|
|
|
|
// Token: 0x04000143 RID: 323
|
|
private static readonly FieldCodec<DescriptorProto> _repeated_nestedType_codec = FieldCodec.ForMessage<DescriptorProto>(26U, DescriptorProto.Parser);
|
|
|
|
// Token: 0x04000144 RID: 324
|
|
private readonly RepeatedField<DescriptorProto> nestedType_ = new RepeatedField<DescriptorProto>();
|
|
|
|
// Token: 0x04000145 RID: 325
|
|
public const int EnumTypeFieldNumber = 4;
|
|
|
|
// Token: 0x04000146 RID: 326
|
|
private static readonly FieldCodec<EnumDescriptorProto> _repeated_enumType_codec = FieldCodec.ForMessage<EnumDescriptorProto>(34U, EnumDescriptorProto.Parser);
|
|
|
|
// Token: 0x04000147 RID: 327
|
|
private readonly RepeatedField<EnumDescriptorProto> enumType_ = new RepeatedField<EnumDescriptorProto>();
|
|
|
|
// Token: 0x04000148 RID: 328
|
|
public const int ExtensionRangeFieldNumber = 5;
|
|
|
|
// Token: 0x04000149 RID: 329
|
|
private static readonly FieldCodec<DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec = FieldCodec.ForMessage<DescriptorProto.Types.ExtensionRange>(42U, DescriptorProto.Types.ExtensionRange.Parser);
|
|
|
|
// Token: 0x0400014A RID: 330
|
|
private readonly RepeatedField<DescriptorProto.Types.ExtensionRange> extensionRange_ = new RepeatedField<DescriptorProto.Types.ExtensionRange>();
|
|
|
|
// Token: 0x0400014B RID: 331
|
|
public const int OneofDeclFieldNumber = 8;
|
|
|
|
// Token: 0x0400014C RID: 332
|
|
private static readonly FieldCodec<OneofDescriptorProto> _repeated_oneofDecl_codec = FieldCodec.ForMessage<OneofDescriptorProto>(66U, OneofDescriptorProto.Parser);
|
|
|
|
// Token: 0x0400014D RID: 333
|
|
private readonly RepeatedField<OneofDescriptorProto> oneofDecl_ = new RepeatedField<OneofDescriptorProto>();
|
|
|
|
// Token: 0x0400014E RID: 334
|
|
public const int OptionsFieldNumber = 7;
|
|
|
|
// Token: 0x0400014F RID: 335
|
|
private MessageOptions options_;
|
|
|
|
// Token: 0x04000150 RID: 336
|
|
public const int ReservedRangeFieldNumber = 9;
|
|
|
|
// Token: 0x04000151 RID: 337
|
|
private static readonly FieldCodec<DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec = FieldCodec.ForMessage<DescriptorProto.Types.ReservedRange>(74U, DescriptorProto.Types.ReservedRange.Parser);
|
|
|
|
// Token: 0x04000152 RID: 338
|
|
private readonly RepeatedField<DescriptorProto.Types.ReservedRange> reservedRange_ = new RepeatedField<DescriptorProto.Types.ReservedRange>();
|
|
|
|
// Token: 0x04000153 RID: 339
|
|
public const int ReservedNameFieldNumber = 10;
|
|
|
|
// Token: 0x04000154 RID: 340
|
|
private static readonly FieldCodec<string> _repeated_reservedName_codec = FieldCodec.ForString(82U);
|
|
|
|
// Token: 0x04000155 RID: 341
|
|
private readonly RepeatedField<string> reservedName_ = new RepeatedField<string>();
|
|
|
|
// Token: 0x020000A4 RID: 164
|
|
[DebuggerNonUserCode]
|
|
public static class Types
|
|
{
|
|
// Token: 0x020000D5 RID: 213
|
|
internal sealed class ExtensionRange : IMessage<DescriptorProto.Types.ExtensionRange>, IMessage, IEquatable<DescriptorProto.Types.ExtensionRange>, IDeepCloneable<DescriptorProto.Types.ExtensionRange>
|
|
{
|
|
// Token: 0x170001DF RID: 479
|
|
// (get) Token: 0x060007B3 RID: 1971 RVA: 0x00017D62 File Offset: 0x00015F62
|
|
[DebuggerNonUserCode]
|
|
public static MessageParser<DescriptorProto.Types.ExtensionRange> Parser
|
|
{
|
|
get
|
|
{
|
|
return DescriptorProto.Types.ExtensionRange._parser;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001E0 RID: 480
|
|
// (get) Token: 0x060007B4 RID: 1972 RVA: 0x00017D69 File Offset: 0x00015F69
|
|
[DebuggerNonUserCode]
|
|
public static MessageDescriptor Descriptor
|
|
{
|
|
get
|
|
{
|
|
return DescriptorProto.Descriptor.NestedTypes[0];
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001E1 RID: 481
|
|
// (get) Token: 0x060007B5 RID: 1973 RVA: 0x00017D7B File Offset: 0x00015F7B
|
|
[DebuggerNonUserCode]
|
|
MessageDescriptor IMessage.Descriptor
|
|
{
|
|
get
|
|
{
|
|
return DescriptorProto.Types.ExtensionRange.Descriptor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007B6 RID: 1974 RVA: 0x00007601 File Offset: 0x00005801
|
|
[DebuggerNonUserCode]
|
|
public ExtensionRange()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060007B7 RID: 1975 RVA: 0x00017D82 File Offset: 0x00015F82
|
|
[DebuggerNonUserCode]
|
|
public ExtensionRange(DescriptorProto.Types.ExtensionRange other)
|
|
: this()
|
|
{
|
|
this.start_ = other.start_;
|
|
this.end_ = other.end_;
|
|
}
|
|
|
|
// Token: 0x060007B8 RID: 1976 RVA: 0x00017DA2 File Offset: 0x00015FA2
|
|
[DebuggerNonUserCode]
|
|
public DescriptorProto.Types.ExtensionRange Clone()
|
|
{
|
|
return new DescriptorProto.Types.ExtensionRange(this);
|
|
}
|
|
|
|
// Token: 0x170001E2 RID: 482
|
|
// (get) Token: 0x060007B9 RID: 1977 RVA: 0x00017DAA File Offset: 0x00015FAA
|
|
// (set) Token: 0x060007BA RID: 1978 RVA: 0x00017DB2 File Offset: 0x00015FB2
|
|
[DebuggerNonUserCode]
|
|
public int Start
|
|
{
|
|
get
|
|
{
|
|
return this.start_;
|
|
}
|
|
set
|
|
{
|
|
this.start_ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001E3 RID: 483
|
|
// (get) Token: 0x060007BB RID: 1979 RVA: 0x00017DBB File Offset: 0x00015FBB
|
|
// (set) Token: 0x060007BC RID: 1980 RVA: 0x00017DC3 File Offset: 0x00015FC3
|
|
[DebuggerNonUserCode]
|
|
public int End
|
|
{
|
|
get
|
|
{
|
|
return this.end_;
|
|
}
|
|
set
|
|
{
|
|
this.end_ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007BD RID: 1981 RVA: 0x00017DCC File Offset: 0x00015FCC
|
|
[DebuggerNonUserCode]
|
|
public override bool Equals(object other)
|
|
{
|
|
return this.Equals(other as DescriptorProto.Types.ExtensionRange);
|
|
}
|
|
|
|
// Token: 0x060007BE RID: 1982 RVA: 0x00017DDA File Offset: 0x00015FDA
|
|
[DebuggerNonUserCode]
|
|
public bool Equals(DescriptorProto.Types.ExtensionRange other)
|
|
{
|
|
return other != null && (other == this || (this.Start == other.Start && this.End == other.End));
|
|
}
|
|
|
|
// Token: 0x060007BF RID: 1983 RVA: 0x00017E08 File Offset: 0x00016008
|
|
[DebuggerNonUserCode]
|
|
public override int GetHashCode()
|
|
{
|
|
int num = 1;
|
|
if (this.Start != 0)
|
|
{
|
|
num ^= this.Start.GetHashCode();
|
|
}
|
|
if (this.End != 0)
|
|
{
|
|
num ^= this.End.GetHashCode();
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x060007C0 RID: 1984 RVA: 0x00007C02 File Offset: 0x00005E02
|
|
[DebuggerNonUserCode]
|
|
public override string ToString()
|
|
{
|
|
return JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
// Token: 0x060007C1 RID: 1985 RVA: 0x00017E4A File Offset: 0x0001604A
|
|
[DebuggerNonUserCode]
|
|
public void WriteTo(CodedOutputStream output)
|
|
{
|
|
if (this.Start != 0)
|
|
{
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(this.Start);
|
|
}
|
|
if (this.End != 0)
|
|
{
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(this.End);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007C2 RID: 1986 RVA: 0x00017E84 File Offset: 0x00016084
|
|
[DebuggerNonUserCode]
|
|
public int CalculateSize()
|
|
{
|
|
int num = 0;
|
|
if (this.Start != 0)
|
|
{
|
|
num += 1 + CodedOutputStream.ComputeInt32Size(this.Start);
|
|
}
|
|
if (this.End != 0)
|
|
{
|
|
num += 1 + CodedOutputStream.ComputeInt32Size(this.End);
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x060007C3 RID: 1987 RVA: 0x00017EC4 File Offset: 0x000160C4
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(DescriptorProto.Types.ExtensionRange other)
|
|
{
|
|
if (other == null)
|
|
{
|
|
return;
|
|
}
|
|
if (other.Start != 0)
|
|
{
|
|
this.Start = other.Start;
|
|
}
|
|
if (other.End != 0)
|
|
{
|
|
this.End = other.End;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007C4 RID: 1988 RVA: 0x00017EF4 File Offset: 0x000160F4
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(CodedInputStream input)
|
|
{
|
|
uint num;
|
|
while ((num = input.ReadTag()) != 0U)
|
|
{
|
|
if (num != 8U)
|
|
{
|
|
if (num != 16U)
|
|
{
|
|
input.SkipLastField();
|
|
}
|
|
else
|
|
{
|
|
this.End = input.ReadInt32();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.Start = input.ReadInt32();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000344 RID: 836
|
|
private static readonly MessageParser<DescriptorProto.Types.ExtensionRange> _parser = new MessageParser<DescriptorProto.Types.ExtensionRange>(() => new DescriptorProto.Types.ExtensionRange());
|
|
|
|
// Token: 0x04000345 RID: 837
|
|
public const int StartFieldNumber = 1;
|
|
|
|
// Token: 0x04000346 RID: 838
|
|
private int start_;
|
|
|
|
// Token: 0x04000347 RID: 839
|
|
public const int EndFieldNumber = 2;
|
|
|
|
// Token: 0x04000348 RID: 840
|
|
private int end_;
|
|
}
|
|
|
|
// Token: 0x020000D6 RID: 214
|
|
internal sealed class ReservedRange : IMessage<DescriptorProto.Types.ReservedRange>, IMessage, IEquatable<DescriptorProto.Types.ReservedRange>, IDeepCloneable<DescriptorProto.Types.ReservedRange>
|
|
{
|
|
// Token: 0x170001E4 RID: 484
|
|
// (get) Token: 0x060007C6 RID: 1990 RVA: 0x00017F54 File Offset: 0x00016154
|
|
[DebuggerNonUserCode]
|
|
public static MessageParser<DescriptorProto.Types.ReservedRange> Parser
|
|
{
|
|
get
|
|
{
|
|
return DescriptorProto.Types.ReservedRange._parser;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001E5 RID: 485
|
|
// (get) Token: 0x060007C7 RID: 1991 RVA: 0x00017F5B File Offset: 0x0001615B
|
|
[DebuggerNonUserCode]
|
|
public static MessageDescriptor Descriptor
|
|
{
|
|
get
|
|
{
|
|
return DescriptorProto.Descriptor.NestedTypes[1];
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001E6 RID: 486
|
|
// (get) Token: 0x060007C8 RID: 1992 RVA: 0x00017F6D File Offset: 0x0001616D
|
|
[DebuggerNonUserCode]
|
|
MessageDescriptor IMessage.Descriptor
|
|
{
|
|
get
|
|
{
|
|
return DescriptorProto.Types.ReservedRange.Descriptor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007C9 RID: 1993 RVA: 0x00007601 File Offset: 0x00005801
|
|
[DebuggerNonUserCode]
|
|
public ReservedRange()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060007CA RID: 1994 RVA: 0x00017F74 File Offset: 0x00016174
|
|
[DebuggerNonUserCode]
|
|
public ReservedRange(DescriptorProto.Types.ReservedRange other)
|
|
: this()
|
|
{
|
|
this.start_ = other.start_;
|
|
this.end_ = other.end_;
|
|
}
|
|
|
|
// Token: 0x060007CB RID: 1995 RVA: 0x00017F94 File Offset: 0x00016194
|
|
[DebuggerNonUserCode]
|
|
public DescriptorProto.Types.ReservedRange Clone()
|
|
{
|
|
return new DescriptorProto.Types.ReservedRange(this);
|
|
}
|
|
|
|
// Token: 0x170001E7 RID: 487
|
|
// (get) Token: 0x060007CC RID: 1996 RVA: 0x00017F9C File Offset: 0x0001619C
|
|
// (set) Token: 0x060007CD RID: 1997 RVA: 0x00017FA4 File Offset: 0x000161A4
|
|
[DebuggerNonUserCode]
|
|
public int Start
|
|
{
|
|
get
|
|
{
|
|
return this.start_;
|
|
}
|
|
set
|
|
{
|
|
this.start_ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001E8 RID: 488
|
|
// (get) Token: 0x060007CE RID: 1998 RVA: 0x00017FAD File Offset: 0x000161AD
|
|
// (set) Token: 0x060007CF RID: 1999 RVA: 0x00017FB5 File Offset: 0x000161B5
|
|
[DebuggerNonUserCode]
|
|
public int End
|
|
{
|
|
get
|
|
{
|
|
return this.end_;
|
|
}
|
|
set
|
|
{
|
|
this.end_ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007D0 RID: 2000 RVA: 0x00017FBE File Offset: 0x000161BE
|
|
[DebuggerNonUserCode]
|
|
public override bool Equals(object other)
|
|
{
|
|
return this.Equals(other as DescriptorProto.Types.ReservedRange);
|
|
}
|
|
|
|
// Token: 0x060007D1 RID: 2001 RVA: 0x00017FCC File Offset: 0x000161CC
|
|
[DebuggerNonUserCode]
|
|
public bool Equals(DescriptorProto.Types.ReservedRange other)
|
|
{
|
|
return other != null && (other == this || (this.Start == other.Start && this.End == other.End));
|
|
}
|
|
|
|
// Token: 0x060007D2 RID: 2002 RVA: 0x00017FFC File Offset: 0x000161FC
|
|
[DebuggerNonUserCode]
|
|
public override int GetHashCode()
|
|
{
|
|
int num = 1;
|
|
if (this.Start != 0)
|
|
{
|
|
num ^= this.Start.GetHashCode();
|
|
}
|
|
if (this.End != 0)
|
|
{
|
|
num ^= this.End.GetHashCode();
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x060007D3 RID: 2003 RVA: 0x00007C02 File Offset: 0x00005E02
|
|
[DebuggerNonUserCode]
|
|
public override string ToString()
|
|
{
|
|
return JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
// Token: 0x060007D4 RID: 2004 RVA: 0x0001803E File Offset: 0x0001623E
|
|
[DebuggerNonUserCode]
|
|
public void WriteTo(CodedOutputStream output)
|
|
{
|
|
if (this.Start != 0)
|
|
{
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(this.Start);
|
|
}
|
|
if (this.End != 0)
|
|
{
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(this.End);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007D5 RID: 2005 RVA: 0x00018078 File Offset: 0x00016278
|
|
[DebuggerNonUserCode]
|
|
public int CalculateSize()
|
|
{
|
|
int num = 0;
|
|
if (this.Start != 0)
|
|
{
|
|
num += 1 + CodedOutputStream.ComputeInt32Size(this.Start);
|
|
}
|
|
if (this.End != 0)
|
|
{
|
|
num += 1 + CodedOutputStream.ComputeInt32Size(this.End);
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x060007D6 RID: 2006 RVA: 0x000180B8 File Offset: 0x000162B8
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(DescriptorProto.Types.ReservedRange other)
|
|
{
|
|
if (other == null)
|
|
{
|
|
return;
|
|
}
|
|
if (other.Start != 0)
|
|
{
|
|
this.Start = other.Start;
|
|
}
|
|
if (other.End != 0)
|
|
{
|
|
this.End = other.End;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007D7 RID: 2007 RVA: 0x000180E8 File Offset: 0x000162E8
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(CodedInputStream input)
|
|
{
|
|
uint num;
|
|
while ((num = input.ReadTag()) != 0U)
|
|
{
|
|
if (num != 8U)
|
|
{
|
|
if (num != 16U)
|
|
{
|
|
input.SkipLastField();
|
|
}
|
|
else
|
|
{
|
|
this.End = input.ReadInt32();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.Start = input.ReadInt32();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000349 RID: 841
|
|
private static readonly MessageParser<DescriptorProto.Types.ReservedRange> _parser = new MessageParser<DescriptorProto.Types.ReservedRange>(() => new DescriptorProto.Types.ReservedRange());
|
|
|
|
// Token: 0x0400034A RID: 842
|
|
public const int StartFieldNumber = 1;
|
|
|
|
// Token: 0x0400034B RID: 843
|
|
private int start_;
|
|
|
|
// Token: 0x0400034C RID: 844
|
|
public const int EndFieldNumber = 2;
|
|
|
|
// Token: 0x0400034D RID: 845
|
|
private int end_;
|
|
}
|
|
}
|
|
}
|
|
}
|