scripts
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000055 RID: 85
|
||||
public abstract class DescriptorBase : IDescriptor
|
||||
{
|
||||
// Token: 0x0600055F RID: 1375 RVA: 0x00013384 File Offset: 0x00011584
|
||||
internal DescriptorBase(FileDescriptor file, string fullName, int index)
|
||||
{
|
||||
this.file = file;
|
||||
this.fullName = fullName;
|
||||
this.index = index;
|
||||
}
|
||||
|
||||
// Token: 0x17000162 RID: 354
|
||||
// (get) Token: 0x06000560 RID: 1376 RVA: 0x000133A1 File Offset: 0x000115A1
|
||||
public int Index
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.index;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000163 RID: 355
|
||||
// (get) Token: 0x06000561 RID: 1377
|
||||
public abstract string Name { get; }
|
||||
|
||||
// Token: 0x17000164 RID: 356
|
||||
// (get) Token: 0x06000562 RID: 1378 RVA: 0x000133A9 File Offset: 0x000115A9
|
||||
public string FullName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.fullName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000165 RID: 357
|
||||
// (get) Token: 0x06000563 RID: 1379 RVA: 0x000133B1 File Offset: 0x000115B1
|
||||
public FileDescriptor File
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.file;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000206 RID: 518
|
||||
private readonly FileDescriptor file;
|
||||
|
||||
// Token: 0x04000207 RID: 519
|
||||
private readonly string fullName;
|
||||
|
||||
// Token: 0x04000208 RID: 520
|
||||
private readonly int index;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,291 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000056 RID: 86
|
||||
internal sealed class DescriptorPool
|
||||
{
|
||||
// Token: 0x06000564 RID: 1380 RVA: 0x000133BC File Offset: 0x000115BC
|
||||
internal DescriptorPool(FileDescriptor[] dependencyFiles)
|
||||
{
|
||||
this.dependencies = new HashSet<FileDescriptor>();
|
||||
for (int i = 0; i < dependencyFiles.Length; i++)
|
||||
{
|
||||
this.dependencies.Add(dependencyFiles[i]);
|
||||
this.ImportPublicDependencies(dependencyFiles[i]);
|
||||
}
|
||||
foreach (FileDescriptor fileDescriptor in dependencyFiles)
|
||||
{
|
||||
this.AddPackage(fileDescriptor.Package, fileDescriptor);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000565 RID: 1381 RVA: 0x00013444 File Offset: 0x00011644
|
||||
private void ImportPublicDependencies(FileDescriptor file)
|
||||
{
|
||||
foreach (FileDescriptor fileDescriptor in file.PublicDependencies)
|
||||
{
|
||||
if (this.dependencies.Add(fileDescriptor))
|
||||
{
|
||||
this.ImportPublicDependencies(fileDescriptor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000566 RID: 1382 RVA: 0x000134A0 File Offset: 0x000116A0
|
||||
internal T FindSymbol<T>(string fullName) where T : class
|
||||
{
|
||||
IDescriptor descriptor;
|
||||
this.descriptorsByName.TryGetValue(fullName, out descriptor);
|
||||
T t = descriptor as T;
|
||||
if (t != null)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
foreach (FileDescriptor fileDescriptor in this.dependencies)
|
||||
{
|
||||
fileDescriptor.DescriptorPool.descriptorsByName.TryGetValue(fullName, out descriptor);
|
||||
t = descriptor as T;
|
||||
if (t != null)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
}
|
||||
return default(T);
|
||||
}
|
||||
|
||||
// Token: 0x06000567 RID: 1383 RVA: 0x00013548 File Offset: 0x00011748
|
||||
internal void AddPackage(string fullName, FileDescriptor file)
|
||||
{
|
||||
int num = fullName.LastIndexOf('.');
|
||||
string text;
|
||||
if (num != -1)
|
||||
{
|
||||
this.AddPackage(fullName.Substring(0, num), file);
|
||||
text = fullName.Substring(num + 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
text = fullName;
|
||||
}
|
||||
IDescriptor descriptor;
|
||||
if (this.descriptorsByName.TryGetValue(fullName, out descriptor) && !(descriptor is PackageDescriptor))
|
||||
{
|
||||
throw new DescriptorValidationException(file, string.Concat(new string[]
|
||||
{
|
||||
"\"",
|
||||
text,
|
||||
"\" is already defined (as something other than a package) in file \"",
|
||||
descriptor.File.Name,
|
||||
"\"."
|
||||
}));
|
||||
}
|
||||
this.descriptorsByName[fullName] = new PackageDescriptor(text, fullName, file);
|
||||
}
|
||||
|
||||
// Token: 0x06000568 RID: 1384 RVA: 0x000135E8 File Offset: 0x000117E8
|
||||
internal void AddSymbol(IDescriptor descriptor)
|
||||
{
|
||||
DescriptorPool.ValidateSymbolName(descriptor);
|
||||
string fullName = descriptor.FullName;
|
||||
IDescriptor descriptor2;
|
||||
if (this.descriptorsByName.TryGetValue(fullName, out descriptor2))
|
||||
{
|
||||
int num = fullName.LastIndexOf('.');
|
||||
string text;
|
||||
if (descriptor.File == descriptor2.File)
|
||||
{
|
||||
if (num == -1)
|
||||
{
|
||||
text = "\"" + fullName + "\" is already defined.";
|
||||
}
|
||||
else
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"\"",
|
||||
fullName.Substring(num + 1),
|
||||
"\" is already defined in \"",
|
||||
fullName.Substring(0, num),
|
||||
"\"."
|
||||
});
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
text = string.Concat(new string[]
|
||||
{
|
||||
"\"",
|
||||
fullName,
|
||||
"\" is already defined in file \"",
|
||||
descriptor2.File.Name,
|
||||
"\"."
|
||||
});
|
||||
}
|
||||
throw new DescriptorValidationException(descriptor, text);
|
||||
}
|
||||
this.descriptorsByName[fullName] = descriptor;
|
||||
}
|
||||
|
||||
// Token: 0x06000569 RID: 1385 RVA: 0x000136CC File Offset: 0x000118CC
|
||||
private static void ValidateSymbolName(IDescriptor descriptor)
|
||||
{
|
||||
if (descriptor.Name == "")
|
||||
{
|
||||
throw new DescriptorValidationException(descriptor, "Missing name.");
|
||||
}
|
||||
if (!DescriptorPool.ValidationRegex.IsMatch(descriptor.Name))
|
||||
{
|
||||
throw new DescriptorValidationException(descriptor, "\"" + descriptor.Name + "\" is not a valid identifier.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600056A RID: 1386 RVA: 0x00013728 File Offset: 0x00011928
|
||||
internal FieldDescriptor FindFieldByNumber(MessageDescriptor messageDescriptor, int number)
|
||||
{
|
||||
FieldDescriptor fieldDescriptor;
|
||||
this.fieldsByNumber.TryGetValue(new DescriptorPool.DescriptorIntPair(messageDescriptor, number), out fieldDescriptor);
|
||||
return fieldDescriptor;
|
||||
}
|
||||
|
||||
// Token: 0x0600056B RID: 1387 RVA: 0x0001374C File Offset: 0x0001194C
|
||||
internal EnumValueDescriptor FindEnumValueByNumber(EnumDescriptor enumDescriptor, int number)
|
||||
{
|
||||
EnumValueDescriptor enumValueDescriptor;
|
||||
this.enumValuesByNumber.TryGetValue(new DescriptorPool.DescriptorIntPair(enumDescriptor, number), out enumValueDescriptor);
|
||||
return enumValueDescriptor;
|
||||
}
|
||||
|
||||
// Token: 0x0600056C RID: 1388 RVA: 0x00013770 File Offset: 0x00011970
|
||||
internal void AddFieldByNumber(FieldDescriptor field)
|
||||
{
|
||||
DescriptorPool.DescriptorIntPair descriptorIntPair = new DescriptorPool.DescriptorIntPair(field.ContainingType, field.FieldNumber);
|
||||
FieldDescriptor fieldDescriptor;
|
||||
if (this.fieldsByNumber.TryGetValue(descriptorIntPair, out fieldDescriptor))
|
||||
{
|
||||
throw new DescriptorValidationException(field, string.Concat(new object[]
|
||||
{
|
||||
"Field number ",
|
||||
field.FieldNumber,
|
||||
"has already been used in \"",
|
||||
field.ContainingType.FullName,
|
||||
"\" by field \"",
|
||||
fieldDescriptor.Name,
|
||||
"\"."
|
||||
}));
|
||||
}
|
||||
this.fieldsByNumber[descriptorIntPair] = field;
|
||||
}
|
||||
|
||||
// Token: 0x0600056D RID: 1389 RVA: 0x00013804 File Offset: 0x00011A04
|
||||
internal void AddEnumValueByNumber(EnumValueDescriptor enumValue)
|
||||
{
|
||||
DescriptorPool.DescriptorIntPair descriptorIntPair = new DescriptorPool.DescriptorIntPair(enumValue.EnumDescriptor, enumValue.Number);
|
||||
if (!this.enumValuesByNumber.ContainsKey(descriptorIntPair))
|
||||
{
|
||||
this.enumValuesByNumber[descriptorIntPair] = enumValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600056E RID: 1390 RVA: 0x00013840 File Offset: 0x00011A40
|
||||
internal IDescriptor LookupSymbol(string name, IDescriptor relativeTo)
|
||||
{
|
||||
IDescriptor descriptor;
|
||||
if (name.StartsWith("."))
|
||||
{
|
||||
descriptor = this.FindSymbol<IDescriptor>(name.Substring(1));
|
||||
}
|
||||
else
|
||||
{
|
||||
int num = name.IndexOf('.');
|
||||
string text = ((num == -1) ? name : name.Substring(0, num));
|
||||
StringBuilder stringBuilder = new StringBuilder(relativeTo.FullName);
|
||||
for (;;)
|
||||
{
|
||||
int num2 = stringBuilder.ToString().LastIndexOf(".");
|
||||
if (num2 == -1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
stringBuilder.Length = num2 + 1;
|
||||
stringBuilder.Append(text);
|
||||
descriptor = this.FindSymbol<IDescriptor>(stringBuilder.ToString());
|
||||
if (descriptor != null)
|
||||
{
|
||||
goto Block_4;
|
||||
}
|
||||
stringBuilder.Length = num2;
|
||||
}
|
||||
descriptor = this.FindSymbol<IDescriptor>(name);
|
||||
goto IL_B7;
|
||||
Block_4:
|
||||
if (num != -1)
|
||||
{
|
||||
int num2;
|
||||
stringBuilder.Length = num2 + 1;
|
||||
stringBuilder.Append(name);
|
||||
descriptor = this.FindSymbol<IDescriptor>(stringBuilder.ToString());
|
||||
}
|
||||
}
|
||||
IL_B7:
|
||||
if (descriptor == null)
|
||||
{
|
||||
throw new DescriptorValidationException(relativeTo, "\"" + name + "\" is not defined.");
|
||||
}
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
// Token: 0x04000209 RID: 521
|
||||
private readonly IDictionary<string, IDescriptor> descriptorsByName = new Dictionary<string, IDescriptor>();
|
||||
|
||||
// Token: 0x0400020A RID: 522
|
||||
private readonly IDictionary<DescriptorPool.DescriptorIntPair, FieldDescriptor> fieldsByNumber = new Dictionary<DescriptorPool.DescriptorIntPair, FieldDescriptor>();
|
||||
|
||||
// Token: 0x0400020B RID: 523
|
||||
private readonly IDictionary<DescriptorPool.DescriptorIntPair, EnumValueDescriptor> enumValuesByNumber = new Dictionary<DescriptorPool.DescriptorIntPair, EnumValueDescriptor>();
|
||||
|
||||
// Token: 0x0400020C RID: 524
|
||||
private readonly HashSet<FileDescriptor> dependencies;
|
||||
|
||||
// Token: 0x0400020D RID: 525
|
||||
private static readonly Regex ValidationRegex = new Regex("^[_A-Za-z][_A-Za-z0-9]*$", FrameworkPortability.CompiledRegexWhereAvailable);
|
||||
|
||||
// Token: 0x020000BD RID: 189
|
||||
private struct DescriptorIntPair : IEquatable<DescriptorPool.DescriptorIntPair>
|
||||
{
|
||||
// Token: 0x06000761 RID: 1889 RVA: 0x00017616 File Offset: 0x00015816
|
||||
internal DescriptorIntPair(IDescriptor descriptor, int number)
|
||||
{
|
||||
this.number = number;
|
||||
this.descriptor = descriptor;
|
||||
}
|
||||
|
||||
// Token: 0x06000762 RID: 1890 RVA: 0x00017626 File Offset: 0x00015826
|
||||
public bool Equals(DescriptorPool.DescriptorIntPair other)
|
||||
{
|
||||
return this.descriptor == other.descriptor && this.number == other.number;
|
||||
}
|
||||
|
||||
// Token: 0x06000763 RID: 1891 RVA: 0x00017646 File Offset: 0x00015846
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return obj is DescriptorPool.DescriptorIntPair && this.Equals((DescriptorPool.DescriptorIntPair)obj);
|
||||
}
|
||||
|
||||
// Token: 0x06000764 RID: 1892 RVA: 0x0001765E File Offset: 0x0001585E
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return this.descriptor.GetHashCode() * 65535 + this.number;
|
||||
}
|
||||
|
||||
// Token: 0x040002F1 RID: 753
|
||||
private readonly int number;
|
||||
|
||||
// Token: 0x040002F2 RID: 754
|
||||
private readonly IDescriptor descriptor;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,922 @@
|
||||
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_;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000040 RID: 64
|
||||
internal static class DescriptorReflection
|
||||
{
|
||||
// Token: 0x170000C5 RID: 197
|
||||
// (get) Token: 0x0600038C RID: 908 RVA: 0x0000D30A File Offset: 0x0000B50A
|
||||
public static FileDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000114 RID: 276
|
||||
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[]
|
||||
{
|
||||
"CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy", "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n", "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLbAwoTRmlsZURl", "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS", "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo", "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg", "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt", "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ", "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp", "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl",
|
||||
"LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB", "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv", "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m", "bxIOCgZzeW50YXgYDCABKAki8AQKD0Rlc2NyaXB0b3JQcm90bxIMCgRuYW1l", "GAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxk", "RGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMoCzIlLmdvb2dsZS5w", "cm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1CgtuZXN0ZWRfdHlwZRgD", "IAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8SNwoJZW51", "bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9y", "UHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8uZ29vZ2xlLnByb3Rv",
|
||||
"YnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5nZRI5CgpvbmVvZl9k", "ZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclBy", "b3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJvdG9idWYuTWVzc2Fn", "ZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsyLi5nb29nbGUucHJv", "dG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFuZ2USFQoNcmVzZXJ2", "ZWRfbmFtZRgKIAMoCRosCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgBIAEo", "BRILCgNlbmQYAiABKAUaKwoNUmVzZXJ2ZWRSYW5nZRINCgVzdGFydBgBIAEo", "BRILCgNlbmQYAiABKAUivAUKFEZpZWxkRGVzY3JpcHRvclByb3RvEgwKBG5h", "bWUYASABKAkSDgoGbnVtYmVyGAMgASgFEjoKBWxhYmVsGAQgASgOMisuZ29v", "Z2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLkxhYmVsEjgKBHR5",
|
||||
"cGUYBSABKA4yKi5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJv", "dG8uVHlwZRIRCgl0eXBlX25hbWUYBiABKAkSEAoIZXh0ZW5kZWUYAiABKAkS", "FQoNZGVmYXVsdF92YWx1ZRgHIAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIR", "Cglqc29uX25hbWUYCiABKAkSLgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5w", "cm90b2J1Zi5GaWVsZE9wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQ", "ARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlO", "VDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZ", "UEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkS", "DgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllU", "RVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVf",
|
||||
"U0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQ", "ERIPCgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFM", "EAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIlQK", "FE9uZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSLgoHb3B0aW9u", "cxgCIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5PbmVvZk9wdGlvbnMijAEKE0Vu", "dW1EZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMo", "CzIpLmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8S", "LQoHb3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9u", "cyJsChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIO", "CgZudW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90",
|
||||
"b2J1Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclBy", "b3RvEgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnBy", "b3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgL", "Mh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2RE", "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIg", "ASgJEhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5n", "b29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFt", "aW5nGAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVm", "YWxzZSKEBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwK", "FGphdmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVf",
|
||||
"ZmlsZXMYCiABKAg6BWZhbHNlEikKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2Fu", "ZF9oYXNoGBQgASgIQgIYARIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg", "ASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJv", "dG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRBISCgpnb19w", "YWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZh", "bHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoT", "cHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRl", "ZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFs", "c2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVz", "cGFjZRglIAEoCRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5n",
|
||||
"b29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRpbWl6", "ZU1vZGUSCQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JVTlRJ", "TUUQAyoJCOgHEICAgIACSgQIJhAnIuwBCg5NZXNzYWdlT3B0aW9ucxImChdt", "ZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9fc3Rh", "bmRhcmRfZGVzY3JpcHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoKZGVw", "cmVjYXRlZBgDIAEoCDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEkMKFHVu", "aW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5V", "bmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAJKBAgIEAkingMKDEZpZWxk", "T3B0aW9ucxI6CgVjdHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVs", "ZE9wdGlvbnMuQ1R5cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSPwoGanN0",
|
||||
"eXBlGAYgASgOMiQuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5KU1R5", "cGU6CUpTX05PUk1BTBITCgRsYXp5GAUgASgIOgVmYWxzZRIZCgpkZXByZWNh", "dGVkGAMgASgIOgVmYWxzZRITCgR3ZWFrGAogASgIOgVmYWxzZRJDChR1bmlu", "dGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5p", "bnRlcnByZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JE", "EAESEAoMU1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAA", "Eg0KCUpTX1NUUklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAJKBAgE", "EAUiXgoMT25lb2ZPcHRpb25zEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcH", "IAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI", "6AcQgICAgAIijQEKC0VudW1PcHRpb25zEhMKC2FsbG93X2FsaWFzGAIgASgI",
|
||||
"EhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRf", "b3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVk", "T3B0aW9uKgkI6AcQgICAgAIifQoQRW51bVZhbHVlT3B0aW9ucxIZCgpkZXBy", "ZWNhdGVkGAEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlvbhjn", "ByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJ", "COgHEICAgIACInsKDlNlcnZpY2VPcHRpb25zEhkKCmRlcHJlY2F0ZWQYISAB", "KAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdv", "b2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIi", "egoNTWV0aG9kT3B0aW9ucxIZCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJD", "ChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9i",
|
||||
"dWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACIp4CChNVbmludGVy", "cHJldGVkT3B0aW9uEjsKBG5hbWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYu", "VW5pbnRlcnByZXRlZE9wdGlvbi5OYW1lUGFydBIYChBpZGVudGlmaWVyX3Zh", "bHVlGAMgASgJEhoKEnBvc2l0aXZlX2ludF92YWx1ZRgEIAEoBBIaChJuZWdh", "dGl2ZV9pbnRfdmFsdWUYBSABKAMSFAoMZG91YmxlX3ZhbHVlGAYgASgBEhQK", "DHN0cmluZ192YWx1ZRgHIAEoDBIXCg9hZ2dyZWdhdGVfdmFsdWUYCCABKAka", "MwoITmFtZVBhcnQSEQoJbmFtZV9wYXJ0GAEgAigJEhQKDGlzX2V4dGVuc2lv", "bhgCIAIoCCLVAQoOU291cmNlQ29kZUluZm8SOgoIbG9jYXRpb24YASADKAsy", "KC5nb29nbGUucHJvdG9idWYuU291cmNlQ29kZUluZm8uTG9jYXRpb24ahgEK", "CExvY2F0aW9uEhAKBHBhdGgYASADKAVCAhABEhAKBHNwYW4YAiADKAVCAhAB",
|
||||
"EhgKEGxlYWRpbmdfY29tbWVudHMYAyABKAkSGQoRdHJhaWxpbmdfY29tbWVu", "dHMYBCABKAkSIQoZbGVhZGluZ19kZXRhY2hlZF9jb21tZW50cxgGIAMoCSKn", "AQoRR2VuZXJhdGVkQ29kZUluZm8SQQoKYW5ub3RhdGlvbhgBIAMoCzItLmdv", "b2dsZS5wcm90b2J1Zi5HZW5lcmF0ZWRDb2RlSW5mby5Bbm5vdGF0aW9uGk8K", "CkFubm90YXRpb24SEAoEcGF0aBgBIAMoBUICEAESEwoLc291cmNlX2ZpbGUY", "AiABKAkSDQoFYmVnaW4YAyABKAUSCwoDZW5kGAQgASgFQlgKE2NvbS5nb29n", "bGUucHJvdG9idWZCEERlc2NyaXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqIC", "A0dQQqoCGkdvb2dsZS5Qcm90b2J1Zi5SZWZsZWN0aW9u"
|
||||
})), new FileDescriptor[0], new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
|
||||
{
|
||||
new GeneratedClrTypeInfo(typeof(FileDescriptorSet), FileDescriptorSet.Parser, new string[] { "File" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(FileDescriptorProto), FileDescriptorProto.Parser, new string[]
|
||||
{
|
||||
"Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options",
|
||||
"SourceCodeInfo", "Syntax"
|
||||
}, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(DescriptorProto), DescriptorProto.Parser, new string[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new GeneratedClrTypeInfo[]
|
||||
{
|
||||
new GeneratedClrTypeInfo(typeof(DescriptorProto.Types.ExtensionRange), DescriptorProto.Types.ExtensionRange.Parser, new string[] { "Start", "End" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(DescriptorProto.Types.ReservedRange), DescriptorProto.Types.ReservedRange.Parser, new string[] { "Start", "End" }, null, null, null)
|
||||
}),
|
||||
new GeneratedClrTypeInfo(typeof(FieldDescriptorProto), FieldDescriptorProto.Parser, new string[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options" }, null, new Type[]
|
||||
{
|
||||
typeof(FieldDescriptorProto.Types.Type),
|
||||
typeof(FieldDescriptorProto.Types.Label)
|
||||
}, null),
|
||||
new GeneratedClrTypeInfo(typeof(OneofDescriptorProto), OneofDescriptorProto.Parser, new string[] { "Name", "Options" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(EnumDescriptorProto), EnumDescriptorProto.Parser, new string[] { "Name", "Value", "Options" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(EnumValueDescriptorProto), EnumValueDescriptorProto.Parser, new string[] { "Name", "Number", "Options" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(ServiceDescriptorProto), ServiceDescriptorProto.Parser, new string[] { "Name", "Method", "Options" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(MethodDescriptorProto), MethodDescriptorProto.Parser, new string[] { "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(FileOptions), FileOptions.Parser, new string[]
|
||||
{
|
||||
"JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices",
|
||||
"Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "UninterpretedOption"
|
||||
}, null, new Type[] { typeof(FileOptions.Types.OptimizeMode) }, null),
|
||||
new GeneratedClrTypeInfo(typeof(MessageOptions), MessageOptions.Parser, new string[] { "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(FieldOptions), FieldOptions.Parser, new string[] { "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new Type[]
|
||||
{
|
||||
typeof(FieldOptions.Types.CType),
|
||||
typeof(FieldOptions.Types.JSType)
|
||||
}, null),
|
||||
new GeneratedClrTypeInfo(typeof(OneofOptions), OneofOptions.Parser, new string[] { "UninterpretedOption" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(EnumOptions), EnumOptions.Parser, new string[] { "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(EnumValueOptions), EnumValueOptions.Parser, new string[] { "Deprecated", "UninterpretedOption" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(ServiceOptions), ServiceOptions.Parser, new string[] { "Deprecated", "UninterpretedOption" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(MethodOptions), MethodOptions.Parser, new string[] { "Deprecated", "UninterpretedOption" }, null, null, null),
|
||||
new GeneratedClrTypeInfo(typeof(UninterpretedOption), UninterpretedOption.Parser, new string[] { "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new GeneratedClrTypeInfo[]
|
||||
{
|
||||
new GeneratedClrTypeInfo(typeof(UninterpretedOption.Types.NamePart), UninterpretedOption.Types.NamePart.Parser, new string[] { "NamePart_", "IsExtension" }, null, null, null)
|
||||
}),
|
||||
new GeneratedClrTypeInfo(typeof(SourceCodeInfo), SourceCodeInfo.Parser, new string[] { "Location" }, null, null, new GeneratedClrTypeInfo[]
|
||||
{
|
||||
new GeneratedClrTypeInfo(typeof(SourceCodeInfo.Types.Location), SourceCodeInfo.Types.Location.Parser, new string[] { "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null)
|
||||
}),
|
||||
new GeneratedClrTypeInfo(typeof(GeneratedCodeInfo), GeneratedCodeInfo.Parser, new string[] { "Annotation" }, null, null, new GeneratedClrTypeInfo[]
|
||||
{
|
||||
new GeneratedClrTypeInfo(typeof(GeneratedCodeInfo.Types.Annotation), GeneratedCodeInfo.Types.Annotation.Parser, new string[] { "Path", "SourceFile", "Begin", "End" }, null, null, null)
|
||||
})
|
||||
}));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000057 RID: 87
|
||||
internal static class DescriptorUtil
|
||||
{
|
||||
// Token: 0x06000570 RID: 1392 RVA: 0x00013938 File Offset: 0x00011B38
|
||||
internal static IList<TOutput> ConvertAndMakeReadOnly<TInput, TOutput>(IList<TInput> input, DescriptorUtil.IndexedConverter<TInput, TOutput> converter)
|
||||
{
|
||||
TOutput[] array = new TOutput[input.Count];
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
array[i] = converter(input[i], i);
|
||||
}
|
||||
return new ReadOnlyCollection<TOutput>(array);
|
||||
}
|
||||
|
||||
// Token: 0x020000BE RID: 190
|
||||
// (Invoke) Token: 0x06000766 RID: 1894
|
||||
internal delegate TOutput IndexedConverter<TInput, TOutput>(TInput element, int index);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000058 RID: 88
|
||||
public sealed class DescriptorValidationException : Exception
|
||||
{
|
||||
// Token: 0x17000166 RID: 358
|
||||
// (get) Token: 0x06000571 RID: 1393 RVA: 0x0001397A File Offset: 0x00011B7A
|
||||
public string ProblemSymbolName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000167 RID: 359
|
||||
// (get) Token: 0x06000572 RID: 1394 RVA: 0x00013982 File Offset: 0x00011B82
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.description;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000573 RID: 1395 RVA: 0x0001398A File Offset: 0x00011B8A
|
||||
internal DescriptorValidationException(IDescriptor problemDescriptor, string description)
|
||||
: base(problemDescriptor.FullName + ": " + description)
|
||||
{
|
||||
this.name = problemDescriptor.FullName;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
// Token: 0x06000574 RID: 1396 RVA: 0x000139B6 File Offset: 0x00011BB6
|
||||
internal DescriptorValidationException(IDescriptor problemDescriptor, string description, Exception cause)
|
||||
: base(problemDescriptor.FullName + ": " + description, cause)
|
||||
{
|
||||
this.name = problemDescriptor.FullName;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
// Token: 0x0400020E RID: 526
|
||||
private readonly string name;
|
||||
|
||||
// Token: 0x0400020F RID: 527
|
||||
private readonly string description;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000059 RID: 89
|
||||
public sealed class EnumDescriptor : DescriptorBase
|
||||
{
|
||||
// Token: 0x06000575 RID: 1397 RVA: 0x000139E4 File Offset: 0x00011BE4
|
||||
internal EnumDescriptor(EnumDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, int index, Type clrType)
|
||||
: base(file, file.ComputeFullName(parent, proto.Name), index)
|
||||
{
|
||||
EnumDescriptor <>4__this = this;
|
||||
this.proto = proto;
|
||||
this.clrType = clrType;
|
||||
this.containingType = parent;
|
||||
if (proto.Value.Count == 0)
|
||||
{
|
||||
throw new DescriptorValidationException(this, "Enums must contain at least one value.");
|
||||
}
|
||||
this.values = DescriptorUtil.ConvertAndMakeReadOnly<EnumValueDescriptorProto, EnumValueDescriptor>(proto.Value, (EnumValueDescriptorProto value, int i) => new EnumValueDescriptor(value, file, <>4__this, i));
|
||||
base.File.DescriptorPool.AddSymbol(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000168 RID: 360
|
||||
// (get) Token: 0x06000576 RID: 1398 RVA: 0x00013A82 File Offset: 0x00011C82
|
||||
internal EnumDescriptorProto Proto
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000169 RID: 361
|
||||
// (get) Token: 0x06000577 RID: 1399 RVA: 0x00013A8A File Offset: 0x00011C8A
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto.Name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700016A RID: 362
|
||||
// (get) Token: 0x06000578 RID: 1400 RVA: 0x00013A97 File Offset: 0x00011C97
|
||||
public Type ClrType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.clrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700016B RID: 363
|
||||
// (get) Token: 0x06000579 RID: 1401 RVA: 0x00013A9F File Offset: 0x00011C9F
|
||||
public MessageDescriptor ContainingType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.containingType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700016C RID: 364
|
||||
// (get) Token: 0x0600057A RID: 1402 RVA: 0x00013AA7 File Offset: 0x00011CA7
|
||||
public IList<EnumValueDescriptor> Values
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.values;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600057B RID: 1403 RVA: 0x00013AAF File Offset: 0x00011CAF
|
||||
public EnumValueDescriptor FindValueByNumber(int number)
|
||||
{
|
||||
return base.File.DescriptorPool.FindEnumValueByNumber(this, number);
|
||||
}
|
||||
|
||||
// Token: 0x0600057C RID: 1404 RVA: 0x00013AC3 File Offset: 0x00011CC3
|
||||
public EnumValueDescriptor FindValueByName(string name)
|
||||
{
|
||||
return base.File.DescriptorPool.FindSymbol<EnumValueDescriptor>(base.FullName + "." + name);
|
||||
}
|
||||
|
||||
// Token: 0x04000210 RID: 528
|
||||
private readonly EnumDescriptorProto proto;
|
||||
|
||||
// Token: 0x04000211 RID: 529
|
||||
private readonly MessageDescriptor containingType;
|
||||
|
||||
// Token: 0x04000212 RID: 530
|
||||
private readonly IList<EnumValueDescriptor> values;
|
||||
|
||||
// Token: 0x04000213 RID: 531
|
||||
private readonly Type clrType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,264 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000046 RID: 70
|
||||
internal sealed class EnumDescriptorProto : IMessage<EnumDescriptorProto>, IMessage, IEquatable<EnumDescriptorProto>, IDeepCloneable<EnumDescriptorProto>
|
||||
{
|
||||
// Token: 0x170000F8 RID: 248
|
||||
// (get) Token: 0x06000410 RID: 1040 RVA: 0x0000FCF8 File Offset: 0x0000DEF8
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<EnumDescriptorProto> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return EnumDescriptorProto._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000F9 RID: 249
|
||||
// (get) Token: 0x06000411 RID: 1041 RVA: 0x0000FCFF File Offset: 0x0000DEFF
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[5];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000FA RID: 250
|
||||
// (get) Token: 0x06000412 RID: 1042 RVA: 0x0000FD11 File Offset: 0x0000DF11
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return EnumDescriptorProto.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000413 RID: 1043 RVA: 0x0000FD18 File Offset: 0x0000DF18
|
||||
[DebuggerNonUserCode]
|
||||
public EnumDescriptorProto()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000414 RID: 1044 RVA: 0x0000FD38 File Offset: 0x0000DF38
|
||||
[DebuggerNonUserCode]
|
||||
public EnumDescriptorProto(EnumDescriptorProto other)
|
||||
: this()
|
||||
{
|
||||
this.name_ = other.name_;
|
||||
this.value_ = other.value_.Clone();
|
||||
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
|
||||
}
|
||||
|
||||
// Token: 0x06000415 RID: 1045 RVA: 0x0000FD84 File Offset: 0x0000DF84
|
||||
[DebuggerNonUserCode]
|
||||
public EnumDescriptorProto Clone()
|
||||
{
|
||||
return new EnumDescriptorProto(this);
|
||||
}
|
||||
|
||||
// Token: 0x170000FB RID: 251
|
||||
// (get) Token: 0x06000416 RID: 1046 RVA: 0x0000FD8C File Offset: 0x0000DF8C
|
||||
// (set) Token: 0x06000417 RID: 1047 RVA: 0x0000FD94 File Offset: 0x0000DF94
|
||||
[DebuggerNonUserCode]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000FC RID: 252
|
||||
// (get) Token: 0x06000418 RID: 1048 RVA: 0x0000FDA7 File Offset: 0x0000DFA7
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<EnumValueDescriptorProto> Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.value_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000FD RID: 253
|
||||
// (get) Token: 0x06000419 RID: 1049 RVA: 0x0000FDAF File Offset: 0x0000DFAF
|
||||
// (set) Token: 0x0600041A RID: 1050 RVA: 0x0000FDB7 File Offset: 0x0000DFB7
|
||||
[DebuggerNonUserCode]
|
||||
public EnumOptions Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.options_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.options_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600041B RID: 1051 RVA: 0x0000FDC0 File Offset: 0x0000DFC0
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as EnumDescriptorProto);
|
||||
}
|
||||
|
||||
// Token: 0x0600041C RID: 1052 RVA: 0x0000FDD0 File Offset: 0x0000DFD0
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(EnumDescriptorProto other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.Name != other.Name) && this.value_.Equals(other.value_) && object.Equals(this.Options, other.Options)));
|
||||
}
|
||||
|
||||
// Token: 0x0600041D RID: 1053 RVA: 0x0000FE28 File Offset: 0x0000E028
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num ^= this.Name.GetHashCode();
|
||||
}
|
||||
num ^= this.value_.GetHashCode();
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num ^= this.Options.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600041E RID: 1054 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600041F RID: 1055 RVA: 0x0000FE78 File Offset: 0x0000E078
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.Name);
|
||||
}
|
||||
this.value_.WriteTo(output, EnumDescriptorProto._repeated_value_codec);
|
||||
if (this.options_ != null)
|
||||
{
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(this.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000420 RID: 1056 RVA: 0x0000FED4 File Offset: 0x0000E0D4
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
|
||||
}
|
||||
num += this.value_.CalculateSize(EnumDescriptorProto._repeated_value_codec);
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000421 RID: 1057 RVA: 0x0000FF2C File Offset: 0x0000E12C
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(EnumDescriptorProto other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0)
|
||||
{
|
||||
this.Name = other.Name;
|
||||
}
|
||||
this.value_.Add(other.value_);
|
||||
if (other.options_ != null)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new EnumOptions();
|
||||
}
|
||||
this.Options.MergeFrom(other.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000422 RID: 1058 RVA: 0x0000FF94 File Offset: 0x0000E194
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
if (num != 18U)
|
||||
{
|
||||
if (num != 26U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new EnumOptions();
|
||||
}
|
||||
input.ReadMessage(this.options_);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.value_.AddEntriesFrom(input, EnumDescriptorProto._repeated_value_codec);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = input.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000170 RID: 368
|
||||
private static readonly MessageParser<EnumDescriptorProto> _parser = new MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
|
||||
|
||||
// Token: 0x04000171 RID: 369
|
||||
public const int NameFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000172 RID: 370
|
||||
private string name_ = "";
|
||||
|
||||
// Token: 0x04000173 RID: 371
|
||||
public const int ValueFieldNumber = 2;
|
||||
|
||||
// Token: 0x04000174 RID: 372
|
||||
private static readonly FieldCodec<EnumValueDescriptorProto> _repeated_value_codec = FieldCodec.ForMessage<EnumValueDescriptorProto>(18U, EnumValueDescriptorProto.Parser);
|
||||
|
||||
// Token: 0x04000175 RID: 373
|
||||
private readonly RepeatedField<EnumValueDescriptorProto> value_ = new RepeatedField<EnumValueDescriptorProto>();
|
||||
|
||||
// Token: 0x04000176 RID: 374
|
||||
public const int OptionsFieldNumber = 3;
|
||||
|
||||
// Token: 0x04000177 RID: 375
|
||||
private EnumOptions options_;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,254 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200004E RID: 78
|
||||
internal sealed class EnumOptions : IMessage<EnumOptions>, IMessage, IEquatable<EnumOptions>, IDeepCloneable<EnumOptions>
|
||||
{
|
||||
// Token: 0x1700013B RID: 315
|
||||
// (get) Token: 0x060004D9 RID: 1241 RVA: 0x0001224A File Offset: 0x0001044A
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<EnumOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return EnumOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700013C RID: 316
|
||||
// (get) Token: 0x060004DA RID: 1242 RVA: 0x00012251 File Offset: 0x00010451
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[13];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700013D RID: 317
|
||||
// (get) Token: 0x060004DB RID: 1243 RVA: 0x00012264 File Offset: 0x00010464
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return EnumOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004DC RID: 1244 RVA: 0x0001226B File Offset: 0x0001046B
|
||||
[DebuggerNonUserCode]
|
||||
public EnumOptions()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060004DD RID: 1245 RVA: 0x0001227E File Offset: 0x0001047E
|
||||
[DebuggerNonUserCode]
|
||||
public EnumOptions(EnumOptions other)
|
||||
: this()
|
||||
{
|
||||
this.allowAlias_ = other.allowAlias_;
|
||||
this.deprecated_ = other.deprecated_;
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x060004DE RID: 1246 RVA: 0x000122AF File Offset: 0x000104AF
|
||||
[DebuggerNonUserCode]
|
||||
public EnumOptions Clone()
|
||||
{
|
||||
return new EnumOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x1700013E RID: 318
|
||||
// (get) Token: 0x060004DF RID: 1247 RVA: 0x000122B7 File Offset: 0x000104B7
|
||||
// (set) Token: 0x060004E0 RID: 1248 RVA: 0x000122BF File Offset: 0x000104BF
|
||||
[DebuggerNonUserCode]
|
||||
public bool AllowAlias
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.allowAlias_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.allowAlias_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700013F RID: 319
|
||||
// (get) Token: 0x060004E1 RID: 1249 RVA: 0x000122C8 File Offset: 0x000104C8
|
||||
// (set) Token: 0x060004E2 RID: 1250 RVA: 0x000122D0 File Offset: 0x000104D0
|
||||
[DebuggerNonUserCode]
|
||||
public bool Deprecated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.deprecated_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.deprecated_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000140 RID: 320
|
||||
// (get) Token: 0x060004E3 RID: 1251 RVA: 0x000122D9 File Offset: 0x000104D9
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004E4 RID: 1252 RVA: 0x000122E1 File Offset: 0x000104E1
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as EnumOptions);
|
||||
}
|
||||
|
||||
// Token: 0x060004E5 RID: 1253 RVA: 0x000122F0 File Offset: 0x000104F0
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(EnumOptions other)
|
||||
{
|
||||
return other != null && (other == this || (this.AllowAlias == other.AllowAlias && this.Deprecated == other.Deprecated && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
||||
}
|
||||
|
||||
// Token: 0x060004E6 RID: 1254 RVA: 0x00012340 File Offset: 0x00010540
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.AllowAlias)
|
||||
{
|
||||
num ^= this.AllowAlias.GetHashCode();
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num ^= this.Deprecated.GetHashCode();
|
||||
}
|
||||
return num ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060004E7 RID: 1255 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060004E8 RID: 1256 RVA: 0x00012390 File Offset: 0x00010590
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.AllowAlias)
|
||||
{
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(this.AllowAlias);
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(this.Deprecated);
|
||||
}
|
||||
this.uninterpretedOption_.WriteTo(output, EnumOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004E9 RID: 1257 RVA: 0x000123E8 File Offset: 0x000105E8
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.AllowAlias)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
return num + this.uninterpretedOption_.CalculateSize(EnumOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004EA RID: 1258 RVA: 0x00012423 File Offset: 0x00010623
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(EnumOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.AllowAlias)
|
||||
{
|
||||
this.AllowAlias = other.AllowAlias;
|
||||
}
|
||||
if (other.Deprecated)
|
||||
{
|
||||
this.Deprecated = other.Deprecated;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x060004EB RID: 1259 RVA: 0x00012464 File Offset: 0x00010664
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 16U)
|
||||
{
|
||||
if (num != 24U)
|
||||
{
|
||||
if (num != 7994U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, EnumOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Deprecated = input.ReadBool();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.AllowAlias = input.ReadBool();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001D4 RID: 468
|
||||
private static readonly MessageParser<EnumOptions> _parser = new MessageParser<EnumOptions>(() => new EnumOptions());
|
||||
|
||||
// Token: 0x040001D5 RID: 469
|
||||
public const int AllowAliasFieldNumber = 2;
|
||||
|
||||
// Token: 0x040001D6 RID: 470
|
||||
private bool allowAlias_;
|
||||
|
||||
// Token: 0x040001D7 RID: 471
|
||||
public const int DeprecatedFieldNumber = 3;
|
||||
|
||||
// Token: 0x040001D8 RID: 472
|
||||
private bool deprecated_;
|
||||
|
||||
// Token: 0x040001D9 RID: 473
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001DA RID: 474
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001DB RID: 475
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,278 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000047 RID: 71
|
||||
internal sealed class EnumValueDescriptorProto : IMessage<EnumValueDescriptorProto>, IMessage, IEquatable<EnumValueDescriptorProto>, IDeepCloneable<EnumValueDescriptorProto>
|
||||
{
|
||||
// Token: 0x170000FE RID: 254
|
||||
// (get) Token: 0x06000424 RID: 1060 RVA: 0x00010031 File Offset: 0x0000E231
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<EnumValueDescriptorProto> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return EnumValueDescriptorProto._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000FF RID: 255
|
||||
// (get) Token: 0x06000425 RID: 1061 RVA: 0x00010038 File Offset: 0x0000E238
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[6];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000100 RID: 256
|
||||
// (get) Token: 0x06000426 RID: 1062 RVA: 0x0001004A File Offset: 0x0000E24A
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return EnumValueDescriptorProto.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000427 RID: 1063 RVA: 0x00010051 File Offset: 0x0000E251
|
||||
[DebuggerNonUserCode]
|
||||
public EnumValueDescriptorProto()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000428 RID: 1064 RVA: 0x00010064 File Offset: 0x0000E264
|
||||
[DebuggerNonUserCode]
|
||||
public EnumValueDescriptorProto(EnumValueDescriptorProto other)
|
||||
: this()
|
||||
{
|
||||
this.name_ = other.name_;
|
||||
this.number_ = other.number_;
|
||||
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
|
||||
}
|
||||
|
||||
// Token: 0x06000429 RID: 1065 RVA: 0x000100A0 File Offset: 0x0000E2A0
|
||||
[DebuggerNonUserCode]
|
||||
public EnumValueDescriptorProto Clone()
|
||||
{
|
||||
return new EnumValueDescriptorProto(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000101 RID: 257
|
||||
// (get) Token: 0x0600042A RID: 1066 RVA: 0x000100A8 File Offset: 0x0000E2A8
|
||||
// (set) Token: 0x0600042B RID: 1067 RVA: 0x000100B0 File Offset: 0x0000E2B0
|
||||
[DebuggerNonUserCode]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000102 RID: 258
|
||||
// (get) Token: 0x0600042C RID: 1068 RVA: 0x000100C3 File Offset: 0x0000E2C3
|
||||
// (set) Token: 0x0600042D RID: 1069 RVA: 0x000100CB File Offset: 0x0000E2CB
|
||||
[DebuggerNonUserCode]
|
||||
public int Number
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.number_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.number_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000103 RID: 259
|
||||
// (get) Token: 0x0600042E RID: 1070 RVA: 0x000100D4 File Offset: 0x0000E2D4
|
||||
// (set) Token: 0x0600042F RID: 1071 RVA: 0x000100DC File Offset: 0x0000E2DC
|
||||
[DebuggerNonUserCode]
|
||||
public EnumValueOptions Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.options_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.options_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000430 RID: 1072 RVA: 0x000100E5 File Offset: 0x0000E2E5
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as EnumValueDescriptorProto);
|
||||
}
|
||||
|
||||
// Token: 0x06000431 RID: 1073 RVA: 0x000100F4 File Offset: 0x0000E2F4
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(EnumValueDescriptorProto other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.Name != other.Name) && this.Number == other.Number && object.Equals(this.Options, other.Options)));
|
||||
}
|
||||
|
||||
// Token: 0x06000432 RID: 1074 RVA: 0x00010148 File Offset: 0x0000E348
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num ^= this.Name.GetHashCode();
|
||||
}
|
||||
if (this.Number != 0)
|
||||
{
|
||||
num ^= this.Number.GetHashCode();
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num ^= this.Options.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000433 RID: 1075 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x06000434 RID: 1076 RVA: 0x000101A4 File Offset: 0x0000E3A4
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.Name);
|
||||
}
|
||||
if (this.Number != 0)
|
||||
{
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(this.Number);
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(this.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000435 RID: 1077 RVA: 0x0001020C File Offset: 0x0000E40C
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
|
||||
}
|
||||
if (this.Number != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeInt32Size(this.Number);
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000436 RID: 1078 RVA: 0x0001026C File Offset: 0x0000E46C
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(EnumValueDescriptorProto other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0)
|
||||
{
|
||||
this.Name = other.Name;
|
||||
}
|
||||
if (other.Number != 0)
|
||||
{
|
||||
this.Number = other.Number;
|
||||
}
|
||||
if (other.options_ != null)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new EnumValueOptions();
|
||||
}
|
||||
this.Options.MergeFrom(other.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000437 RID: 1079 RVA: 0x000102D8 File Offset: 0x0000E4D8
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
if (num != 16U)
|
||||
{
|
||||
if (num != 26U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new EnumValueOptions();
|
||||
}
|
||||
input.ReadMessage(this.options_);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Number = input.ReadInt32();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = input.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000178 RID: 376
|
||||
private static readonly MessageParser<EnumValueDescriptorProto> _parser = new MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
|
||||
|
||||
// Token: 0x04000179 RID: 377
|
||||
public const int NameFieldNumber = 1;
|
||||
|
||||
// Token: 0x0400017A RID: 378
|
||||
private string name_ = "";
|
||||
|
||||
// Token: 0x0400017B RID: 379
|
||||
public const int NumberFieldNumber = 2;
|
||||
|
||||
// Token: 0x0400017C RID: 380
|
||||
private int number_;
|
||||
|
||||
// Token: 0x0400017D RID: 381
|
||||
public const int OptionsFieldNumber = 3;
|
||||
|
||||
// Token: 0x0400017E RID: 382
|
||||
private EnumValueOptions options_;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200004F RID: 79
|
||||
internal sealed class EnumValueOptions : IMessage<EnumValueOptions>, IMessage, IEquatable<EnumValueOptions>, IDeepCloneable<EnumValueOptions>
|
||||
{
|
||||
// Token: 0x17000141 RID: 321
|
||||
// (get) Token: 0x060004ED RID: 1261 RVA: 0x000124F4 File Offset: 0x000106F4
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<EnumValueOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return EnumValueOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000142 RID: 322
|
||||
// (get) Token: 0x060004EE RID: 1262 RVA: 0x000124FB File Offset: 0x000106FB
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[14];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000143 RID: 323
|
||||
// (get) Token: 0x060004EF RID: 1263 RVA: 0x0001250E File Offset: 0x0001070E
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return EnumValueOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004F0 RID: 1264 RVA: 0x00012515 File Offset: 0x00010715
|
||||
[DebuggerNonUserCode]
|
||||
public EnumValueOptions()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060004F1 RID: 1265 RVA: 0x00012528 File Offset: 0x00010728
|
||||
[DebuggerNonUserCode]
|
||||
public EnumValueOptions(EnumValueOptions other)
|
||||
: this()
|
||||
{
|
||||
this.deprecated_ = other.deprecated_;
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x060004F2 RID: 1266 RVA: 0x0001254D File Offset: 0x0001074D
|
||||
[DebuggerNonUserCode]
|
||||
public EnumValueOptions Clone()
|
||||
{
|
||||
return new EnumValueOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000144 RID: 324
|
||||
// (get) Token: 0x060004F3 RID: 1267 RVA: 0x00012555 File Offset: 0x00010755
|
||||
// (set) Token: 0x060004F4 RID: 1268 RVA: 0x0001255D File Offset: 0x0001075D
|
||||
[DebuggerNonUserCode]
|
||||
public bool Deprecated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.deprecated_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.deprecated_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000145 RID: 325
|
||||
// (get) Token: 0x060004F5 RID: 1269 RVA: 0x00012566 File Offset: 0x00010766
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004F6 RID: 1270 RVA: 0x0001256E File Offset: 0x0001076E
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as EnumValueOptions);
|
||||
}
|
||||
|
||||
// Token: 0x060004F7 RID: 1271 RVA: 0x0001257C File Offset: 0x0001077C
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(EnumValueOptions other)
|
||||
{
|
||||
return other != null && (other == this || (this.Deprecated == other.Deprecated && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
||||
}
|
||||
|
||||
// Token: 0x060004F8 RID: 1272 RVA: 0x000125B0 File Offset: 0x000107B0
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num ^= this.Deprecated.GetHashCode();
|
||||
}
|
||||
return num ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060004F9 RID: 1273 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060004FA RID: 1274 RVA: 0x000125E7 File Offset: 0x000107E7
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Deprecated)
|
||||
{
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(this.Deprecated);
|
||||
}
|
||||
this.uninterpretedOption_.WriteTo(output, EnumValueOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004FB RID: 1275 RVA: 0x00012618 File Offset: 0x00010818
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
return num + this.uninterpretedOption_.CalculateSize(EnumValueOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004FC RID: 1276 RVA: 0x00012647 File Offset: 0x00010847
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(EnumValueOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Deprecated)
|
||||
{
|
||||
this.Deprecated = other.Deprecated;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x060004FD RID: 1277 RVA: 0x00012674 File Offset: 0x00010874
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 8U)
|
||||
{
|
||||
if (num != 7994U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, EnumValueOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Deprecated = input.ReadBool();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001DC RID: 476
|
||||
private static readonly MessageParser<EnumValueOptions> _parser = new MessageParser<EnumValueOptions>(() => new EnumValueOptions());
|
||||
|
||||
// Token: 0x040001DD RID: 477
|
||||
public const int DeprecatedFieldNumber = 1;
|
||||
|
||||
// Token: 0x040001DE RID: 478
|
||||
private bool deprecated_;
|
||||
|
||||
// Token: 0x040001DF RID: 479
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001E0 RID: 480
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001E1 RID: 481
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200005B RID: 91
|
||||
internal abstract class FieldAccessorBase : IFieldAccessor
|
||||
{
|
||||
// Token: 0x06000582 RID: 1410 RVA: 0x00013B64 File Offset: 0x00011D64
|
||||
internal FieldAccessorBase(PropertyInfo property, FieldDescriptor descriptor)
|
||||
{
|
||||
this.descriptor = descriptor;
|
||||
this.getValueDelegate = ReflectionUtil.CreateFuncIMessageObject(property.GetGetMethod());
|
||||
}
|
||||
|
||||
// Token: 0x17000171 RID: 369
|
||||
// (get) Token: 0x06000583 RID: 1411 RVA: 0x00013B84 File Offset: 0x00011D84
|
||||
public FieldDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000584 RID: 1412 RVA: 0x00013B8C File Offset: 0x00011D8C
|
||||
public object GetValue(IMessage message)
|
||||
{
|
||||
return this.getValueDelegate(message);
|
||||
}
|
||||
|
||||
// Token: 0x06000585 RID: 1413
|
||||
public abstract void Clear(IMessage message);
|
||||
|
||||
// Token: 0x06000586 RID: 1414
|
||||
public abstract void SetValue(IMessage message, object value);
|
||||
|
||||
// Token: 0x04000216 RID: 534
|
||||
private readonly Func<IMessage, object> getValueDelegate;
|
||||
|
||||
// Token: 0x04000217 RID: 535
|
||||
private readonly FieldDescriptor descriptor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,302 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200005C RID: 92
|
||||
public sealed class FieldDescriptor : DescriptorBase, IComparable<FieldDescriptor>
|
||||
{
|
||||
// Token: 0x17000172 RID: 370
|
||||
// (get) Token: 0x06000587 RID: 1415 RVA: 0x00013B9A File Offset: 0x00011D9A
|
||||
public MessageDescriptor ContainingType { get; }
|
||||
|
||||
// Token: 0x17000173 RID: 371
|
||||
// (get) Token: 0x06000588 RID: 1416 RVA: 0x00013BA2 File Offset: 0x00011DA2
|
||||
public OneofDescriptor ContainingOneof { get; }
|
||||
|
||||
// Token: 0x17000174 RID: 372
|
||||
// (get) Token: 0x06000589 RID: 1417 RVA: 0x00013BAA File Offset: 0x00011DAA
|
||||
public string JsonName { get; }
|
||||
|
||||
// Token: 0x17000175 RID: 373
|
||||
// (get) Token: 0x0600058A RID: 1418 RVA: 0x00013BB2 File Offset: 0x00011DB2
|
||||
internal FieldDescriptorProto Proto { get; }
|
||||
|
||||
// Token: 0x0600058B RID: 1419 RVA: 0x00013BBC File Offset: 0x00011DBC
|
||||
internal FieldDescriptor(FieldDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, int index, string propertyName)
|
||||
: base(file, file.ComputeFullName(parent, proto.Name), index)
|
||||
{
|
||||
this.Proto = proto;
|
||||
if (proto.Type != (FieldDescriptorProto.Types.Type)0)
|
||||
{
|
||||
this.fieldType = FieldDescriptor.GetFieldTypeFromProtoType(proto.Type);
|
||||
}
|
||||
if (this.FieldNumber <= 0)
|
||||
{
|
||||
throw new DescriptorValidationException(this, "Field numbers must be positive integers.");
|
||||
}
|
||||
this.ContainingType = parent;
|
||||
if (proto.OneofIndex != -1)
|
||||
{
|
||||
if (proto.OneofIndex < 0 || proto.OneofIndex >= parent.Proto.OneofDecl.Count)
|
||||
{
|
||||
throw new DescriptorValidationException(this, string.Format("FieldDescriptorProto.oneof_index is out of range for type {0}", parent.Name));
|
||||
}
|
||||
this.ContainingOneof = parent.Oneofs[proto.OneofIndex];
|
||||
}
|
||||
file.DescriptorPool.AddSymbol(this);
|
||||
this.propertyName = propertyName;
|
||||
this.JsonName = ((this.Proto.JsonName == "") ? JsonFormatter.ToCamelCase(this.Proto.Name) : this.Proto.JsonName);
|
||||
}
|
||||
|
||||
// Token: 0x17000176 RID: 374
|
||||
// (get) Token: 0x0600058C RID: 1420 RVA: 0x00013CC1 File Offset: 0x00011EC1
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Proto.Name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000177 RID: 375
|
||||
// (get) Token: 0x0600058D RID: 1421 RVA: 0x00013CCE File Offset: 0x00011ECE
|
||||
public IFieldAccessor Accessor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.accessor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600058E RID: 1422 RVA: 0x00013CD8 File Offset: 0x00011ED8
|
||||
private static FieldType GetFieldTypeFromProtoType(FieldDescriptorProto.Types.Type type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case FieldDescriptorProto.Types.Type.Double:
|
||||
return FieldType.Double;
|
||||
case FieldDescriptorProto.Types.Type.Float:
|
||||
return FieldType.Float;
|
||||
case FieldDescriptorProto.Types.Type.Int64:
|
||||
return FieldType.Int64;
|
||||
case FieldDescriptorProto.Types.Type.Uint64:
|
||||
return FieldType.UInt64;
|
||||
case FieldDescriptorProto.Types.Type.Int32:
|
||||
return FieldType.Int32;
|
||||
case FieldDescriptorProto.Types.Type.Fixed64:
|
||||
return FieldType.Fixed64;
|
||||
case FieldDescriptorProto.Types.Type.Fixed32:
|
||||
return FieldType.Fixed32;
|
||||
case FieldDescriptorProto.Types.Type.Bool:
|
||||
return FieldType.Bool;
|
||||
case FieldDescriptorProto.Types.Type.String:
|
||||
return FieldType.String;
|
||||
case FieldDescriptorProto.Types.Type.Group:
|
||||
return FieldType.Group;
|
||||
case FieldDescriptorProto.Types.Type.Message:
|
||||
return FieldType.Message;
|
||||
case FieldDescriptorProto.Types.Type.Bytes:
|
||||
return FieldType.Bytes;
|
||||
case FieldDescriptorProto.Types.Type.Uint32:
|
||||
return FieldType.UInt32;
|
||||
case FieldDescriptorProto.Types.Type.Enum:
|
||||
return FieldType.Enum;
|
||||
case FieldDescriptorProto.Types.Type.Sfixed32:
|
||||
return FieldType.SFixed32;
|
||||
case FieldDescriptorProto.Types.Type.Sfixed64:
|
||||
return FieldType.SFixed64;
|
||||
case FieldDescriptorProto.Types.Type.Sint32:
|
||||
return FieldType.SInt32;
|
||||
case FieldDescriptorProto.Types.Type.Sint64:
|
||||
return FieldType.SInt64;
|
||||
default:
|
||||
throw new ArgumentException("Invalid type specified");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000178 RID: 376
|
||||
// (get) Token: 0x0600058F RID: 1423 RVA: 0x00013D6E File Offset: 0x00011F6E
|
||||
public bool IsRepeated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Proto.Label == FieldDescriptorProto.Types.Label.Repeated;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000179 RID: 377
|
||||
// (get) Token: 0x06000590 RID: 1424 RVA: 0x00013D7E File Offset: 0x00011F7E
|
||||
public bool IsMap
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.fieldType == FieldType.Message && this.messageType.Proto.Options != null && this.messageType.Proto.Options.MapEntry;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700017A RID: 378
|
||||
// (get) Token: 0x06000591 RID: 1425 RVA: 0x00013DB3 File Offset: 0x00011FB3
|
||||
public bool IsPacked
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Proto.Options == null || this.Proto.Options.Packed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700017B RID: 379
|
||||
// (get) Token: 0x06000592 RID: 1426 RVA: 0x00013DD4 File Offset: 0x00011FD4
|
||||
public FieldType FieldType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.fieldType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700017C RID: 380
|
||||
// (get) Token: 0x06000593 RID: 1427 RVA: 0x00013DDC File Offset: 0x00011FDC
|
||||
public int FieldNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Proto.Number;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000594 RID: 1428 RVA: 0x00013DE9 File Offset: 0x00011FE9
|
||||
public int CompareTo(FieldDescriptor other)
|
||||
{
|
||||
if (other.ContainingType != this.ContainingType)
|
||||
{
|
||||
throw new ArgumentException("FieldDescriptors can only be compared to other FieldDescriptors for fields of the same message type.");
|
||||
}
|
||||
return this.FieldNumber - other.FieldNumber;
|
||||
}
|
||||
|
||||
// Token: 0x1700017D RID: 381
|
||||
// (get) Token: 0x06000595 RID: 1429 RVA: 0x00013E11 File Offset: 0x00012011
|
||||
public EnumDescriptor EnumType
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.fieldType != FieldType.Enum)
|
||||
{
|
||||
throw new InvalidOperationException("EnumType is only valid for enum fields.");
|
||||
}
|
||||
return this.enumType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700017E RID: 382
|
||||
// (get) Token: 0x06000596 RID: 1430 RVA: 0x00013E2E File Offset: 0x0001202E
|
||||
public MessageDescriptor MessageType
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.fieldType != FieldType.Message)
|
||||
{
|
||||
throw new InvalidOperationException("MessageType is only valid for message fields.");
|
||||
}
|
||||
return this.messageType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000597 RID: 1431 RVA: 0x00013E4C File Offset: 0x0001204C
|
||||
internal void CrossLink()
|
||||
{
|
||||
if (this.Proto.TypeName != "")
|
||||
{
|
||||
IDescriptor descriptor = base.File.DescriptorPool.LookupSymbol(this.Proto.TypeName, this);
|
||||
if (this.Proto.Type != (FieldDescriptorProto.Types.Type)0)
|
||||
{
|
||||
if (descriptor is MessageDescriptor)
|
||||
{
|
||||
this.fieldType = FieldType.Message;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!(descriptor is EnumDescriptor))
|
||||
{
|
||||
throw new DescriptorValidationException(this, string.Format("\"{0}\" is not a type.", this.Proto.TypeName));
|
||||
}
|
||||
this.fieldType = FieldType.Enum;
|
||||
}
|
||||
}
|
||||
if (this.fieldType == FieldType.Message)
|
||||
{
|
||||
if (!(descriptor is MessageDescriptor))
|
||||
{
|
||||
throw new DescriptorValidationException(this, string.Format("\"{0}\" is not a message type.", this.Proto.TypeName));
|
||||
}
|
||||
this.messageType = (MessageDescriptor)descriptor;
|
||||
if (this.Proto.DefaultValue != "")
|
||||
{
|
||||
throw new DescriptorValidationException(this, "Messages can't have default values.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.fieldType != FieldType.Enum)
|
||||
{
|
||||
throw new DescriptorValidationException(this, "Field with primitive type has type_name.");
|
||||
}
|
||||
if (!(descriptor is EnumDescriptor))
|
||||
{
|
||||
throw new DescriptorValidationException(this, string.Format("\"{0}\" is not an enum type.", this.Proto.TypeName));
|
||||
}
|
||||
this.enumType = (EnumDescriptor)descriptor;
|
||||
}
|
||||
}
|
||||
else if (this.fieldType == FieldType.Message || this.fieldType == FieldType.Enum)
|
||||
{
|
||||
throw new DescriptorValidationException(this, "Field with message or enum type missing type_name.");
|
||||
}
|
||||
base.File.DescriptorPool.AddFieldByNumber(this);
|
||||
if (this.ContainingType != null && this.ContainingType.Proto.Options != null && this.ContainingType.Proto.Options.MessageSetWireFormat)
|
||||
{
|
||||
throw new DescriptorValidationException(this, "MessageSet format is not supported.");
|
||||
}
|
||||
this.accessor = this.CreateAccessor();
|
||||
}
|
||||
|
||||
// Token: 0x06000598 RID: 1432 RVA: 0x00013FFC File Offset: 0x000121FC
|
||||
private IFieldAccessor CreateAccessor()
|
||||
{
|
||||
if (this.propertyName == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
PropertyInfo property = this.ContainingType.ClrType.GetProperty(this.propertyName);
|
||||
if (property == null)
|
||||
{
|
||||
throw new DescriptorValidationException(this, string.Format("Property {0} not found in {1}", this.propertyName, this.ContainingType.ClrType));
|
||||
}
|
||||
if (this.IsMap)
|
||||
{
|
||||
return new MapFieldAccessor(property, this);
|
||||
}
|
||||
if (!this.IsRepeated)
|
||||
{
|
||||
return new SingleFieldAccessor(property, this);
|
||||
}
|
||||
return new RepeatedFieldAccessor(property, this);
|
||||
}
|
||||
|
||||
// Token: 0x04000218 RID: 536
|
||||
private EnumDescriptor enumType;
|
||||
|
||||
// Token: 0x04000219 RID: 537
|
||||
private MessageDescriptor messageType;
|
||||
|
||||
// Token: 0x0400021A RID: 538
|
||||
private FieldType fieldType;
|
||||
|
||||
// Token: 0x0400021B RID: 539
|
||||
private readonly string propertyName;
|
||||
|
||||
// Token: 0x0400021C RID: 540
|
||||
private IFieldAccessor accessor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,687 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000044 RID: 68
|
||||
internal sealed class FieldDescriptorProto : IMessage<FieldDescriptorProto>, IMessage, IEquatable<FieldDescriptorProto>, IDeepCloneable<FieldDescriptorProto>
|
||||
{
|
||||
// Token: 0x170000E6 RID: 230
|
||||
// (get) Token: 0x060003D9 RID: 985 RVA: 0x0000F1DE File Offset: 0x0000D3DE
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<FieldDescriptorProto> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return FieldDescriptorProto._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000E7 RID: 231
|
||||
// (get) Token: 0x060003DA RID: 986 RVA: 0x0000F1E5 File Offset: 0x0000D3E5
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[3];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000E8 RID: 232
|
||||
// (get) Token: 0x060003DB RID: 987 RVA: 0x0000F1F7 File Offset: 0x0000D3F7
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return FieldDescriptorProto.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060003DC RID: 988 RVA: 0x0000F200 File Offset: 0x0000D400
|
||||
[DebuggerNonUserCode]
|
||||
public FieldDescriptorProto()
|
||||
{
|
||||
this.OnConstruction();
|
||||
}
|
||||
|
||||
// Token: 0x060003DD RID: 989 RVA: 0x0000F250 File Offset: 0x0000D450
|
||||
private void OnConstruction()
|
||||
{
|
||||
this.OneofIndex = -1;
|
||||
}
|
||||
|
||||
// Token: 0x060003DE RID: 990 RVA: 0x0000F25C File Offset: 0x0000D45C
|
||||
[DebuggerNonUserCode]
|
||||
public FieldDescriptorProto(FieldDescriptorProto other)
|
||||
: this()
|
||||
{
|
||||
this.name_ = other.name_;
|
||||
this.number_ = other.number_;
|
||||
this.label_ = other.label_;
|
||||
this.type_ = other.type_;
|
||||
this.typeName_ = other.typeName_;
|
||||
this.extendee_ = other.extendee_;
|
||||
this.defaultValue_ = other.defaultValue_;
|
||||
this.oneofIndex_ = other.oneofIndex_;
|
||||
this.jsonName_ = other.jsonName_;
|
||||
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
|
||||
}
|
||||
|
||||
// Token: 0x060003DF RID: 991 RVA: 0x0000F2F7 File Offset: 0x0000D4F7
|
||||
[DebuggerNonUserCode]
|
||||
public FieldDescriptorProto Clone()
|
||||
{
|
||||
return new FieldDescriptorProto(this);
|
||||
}
|
||||
|
||||
// Token: 0x170000E9 RID: 233
|
||||
// (get) Token: 0x060003E0 RID: 992 RVA: 0x0000F2FF File Offset: 0x0000D4FF
|
||||
// (set) Token: 0x060003E1 RID: 993 RVA: 0x0000F307 File Offset: 0x0000D507
|
||||
[DebuggerNonUserCode]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000EA RID: 234
|
||||
// (get) Token: 0x060003E2 RID: 994 RVA: 0x0000F31A File Offset: 0x0000D51A
|
||||
// (set) Token: 0x060003E3 RID: 995 RVA: 0x0000F322 File Offset: 0x0000D522
|
||||
[DebuggerNonUserCode]
|
||||
public int Number
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.number_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.number_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000EB RID: 235
|
||||
// (get) Token: 0x060003E4 RID: 996 RVA: 0x0000F32B File Offset: 0x0000D52B
|
||||
// (set) Token: 0x060003E5 RID: 997 RVA: 0x0000F333 File Offset: 0x0000D533
|
||||
[DebuggerNonUserCode]
|
||||
public FieldDescriptorProto.Types.Label Label
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.label_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.label_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000EC RID: 236
|
||||
// (get) Token: 0x060003E6 RID: 998 RVA: 0x0000F33C File Offset: 0x0000D53C
|
||||
// (set) Token: 0x060003E7 RID: 999 RVA: 0x0000F344 File Offset: 0x0000D544
|
||||
[DebuggerNonUserCode]
|
||||
public FieldDescriptorProto.Types.Type Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.type_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.type_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000ED RID: 237
|
||||
// (get) Token: 0x060003E8 RID: 1000 RVA: 0x0000F34D File Offset: 0x0000D54D
|
||||
// (set) Token: 0x060003E9 RID: 1001 RVA: 0x0000F355 File Offset: 0x0000D555
|
||||
[DebuggerNonUserCode]
|
||||
public string TypeName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.typeName_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.typeName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000EE RID: 238
|
||||
// (get) Token: 0x060003EA RID: 1002 RVA: 0x0000F368 File Offset: 0x0000D568
|
||||
// (set) Token: 0x060003EB RID: 1003 RVA: 0x0000F370 File Offset: 0x0000D570
|
||||
[DebuggerNonUserCode]
|
||||
public string Extendee
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.extendee_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.extendee_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000EF RID: 239
|
||||
// (get) Token: 0x060003EC RID: 1004 RVA: 0x0000F383 File Offset: 0x0000D583
|
||||
// (set) Token: 0x060003ED RID: 1005 RVA: 0x0000F38B File Offset: 0x0000D58B
|
||||
[DebuggerNonUserCode]
|
||||
public string DefaultValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.defaultValue_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.defaultValue_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000F0 RID: 240
|
||||
// (get) Token: 0x060003EE RID: 1006 RVA: 0x0000F39E File Offset: 0x0000D59E
|
||||
// (set) Token: 0x060003EF RID: 1007 RVA: 0x0000F3A6 File Offset: 0x0000D5A6
|
||||
[DebuggerNonUserCode]
|
||||
public int OneofIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.oneofIndex_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.oneofIndex_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000F1 RID: 241
|
||||
// (get) Token: 0x060003F0 RID: 1008 RVA: 0x0000F3AF File Offset: 0x0000D5AF
|
||||
// (set) Token: 0x060003F1 RID: 1009 RVA: 0x0000F3B7 File Offset: 0x0000D5B7
|
||||
[DebuggerNonUserCode]
|
||||
public string JsonName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.jsonName_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.jsonName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000F2 RID: 242
|
||||
// (get) Token: 0x060003F2 RID: 1010 RVA: 0x0000F3CA File Offset: 0x0000D5CA
|
||||
// (set) Token: 0x060003F3 RID: 1011 RVA: 0x0000F3D2 File Offset: 0x0000D5D2
|
||||
[DebuggerNonUserCode]
|
||||
public FieldOptions Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.options_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.options_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060003F4 RID: 1012 RVA: 0x0000F3DB File Offset: 0x0000D5DB
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as FieldDescriptorProto);
|
||||
}
|
||||
|
||||
// Token: 0x060003F5 RID: 1013 RVA: 0x0000F3EC File Offset: 0x0000D5EC
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(FieldDescriptorProto other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.Name != other.Name) && this.Number == other.Number && this.Label == other.Label && this.Type == other.Type && !(this.TypeName != other.TypeName) && !(this.Extendee != other.Extendee) && !(this.DefaultValue != other.DefaultValue) && this.OneofIndex == other.OneofIndex && !(this.JsonName != other.JsonName) && object.Equals(this.Options, other.Options)));
|
||||
}
|
||||
|
||||
// Token: 0x060003F6 RID: 1014 RVA: 0x0000F4C4 File Offset: 0x0000D6C4
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num ^= this.Name.GetHashCode();
|
||||
}
|
||||
if (this.Number != 0)
|
||||
{
|
||||
num ^= this.Number.GetHashCode();
|
||||
}
|
||||
if (this.Label != (FieldDescriptorProto.Types.Label)0)
|
||||
{
|
||||
num ^= this.Label.GetHashCode();
|
||||
}
|
||||
if (this.Type != (FieldDescriptorProto.Types.Type)0)
|
||||
{
|
||||
num ^= this.Type.GetHashCode();
|
||||
}
|
||||
if (this.TypeName.Length != 0)
|
||||
{
|
||||
num ^= this.TypeName.GetHashCode();
|
||||
}
|
||||
if (this.Extendee.Length != 0)
|
||||
{
|
||||
num ^= this.Extendee.GetHashCode();
|
||||
}
|
||||
if (this.DefaultValue.Length != 0)
|
||||
{
|
||||
num ^= this.DefaultValue.GetHashCode();
|
||||
}
|
||||
if (this.OneofIndex != 0)
|
||||
{
|
||||
num ^= this.OneofIndex.GetHashCode();
|
||||
}
|
||||
if (this.JsonName.Length != 0)
|
||||
{
|
||||
num ^= this.JsonName.GetHashCode();
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num ^= this.Options.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x060003F7 RID: 1015 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060003F8 RID: 1016 RVA: 0x0000F5E4 File Offset: 0x0000D7E4
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.Name);
|
||||
}
|
||||
if (this.Extendee.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(this.Extendee);
|
||||
}
|
||||
if (this.Number != 0)
|
||||
{
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(this.Number);
|
||||
}
|
||||
if (this.Label != (FieldDescriptorProto.Types.Label)0)
|
||||
{
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int)this.Label);
|
||||
}
|
||||
if (this.Type != (FieldDescriptorProto.Types.Type)0)
|
||||
{
|
||||
output.WriteRawTag(40);
|
||||
output.WriteEnum((int)this.Type);
|
||||
}
|
||||
if (this.TypeName.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(50);
|
||||
output.WriteString(this.TypeName);
|
||||
}
|
||||
if (this.DefaultValue.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(this.DefaultValue);
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
output.WriteRawTag(66);
|
||||
output.WriteMessage(this.Options);
|
||||
}
|
||||
if (this.OneofIndex != 0)
|
||||
{
|
||||
output.WriteRawTag(72);
|
||||
output.WriteInt32(this.OneofIndex);
|
||||
}
|
||||
if (this.JsonName.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(82);
|
||||
output.WriteString(this.JsonName);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060003F9 RID: 1017 RVA: 0x0000F724 File Offset: 0x0000D924
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
|
||||
}
|
||||
if (this.Number != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeInt32Size(this.Number);
|
||||
}
|
||||
if (this.Label != (FieldDescriptorProto.Types.Label)0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Label);
|
||||
}
|
||||
if (this.Type != (FieldDescriptorProto.Types.Type)0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Type);
|
||||
}
|
||||
if (this.TypeName.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.TypeName);
|
||||
}
|
||||
if (this.Extendee.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Extendee);
|
||||
}
|
||||
if (this.DefaultValue.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.DefaultValue);
|
||||
}
|
||||
if (this.OneofIndex != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeInt32Size(this.OneofIndex);
|
||||
}
|
||||
if (this.JsonName.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.JsonName);
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x060003FA RID: 1018 RVA: 0x0000F840 File Offset: 0x0000DA40
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(FieldDescriptorProto other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0)
|
||||
{
|
||||
this.Name = other.Name;
|
||||
}
|
||||
if (other.Number != 0)
|
||||
{
|
||||
this.Number = other.Number;
|
||||
}
|
||||
if (other.Label != (FieldDescriptorProto.Types.Label)0)
|
||||
{
|
||||
this.Label = other.Label;
|
||||
}
|
||||
if (other.Type != (FieldDescriptorProto.Types.Type)0)
|
||||
{
|
||||
this.Type = other.Type;
|
||||
}
|
||||
if (other.TypeName.Length != 0)
|
||||
{
|
||||
this.TypeName = other.TypeName;
|
||||
}
|
||||
if (other.Extendee.Length != 0)
|
||||
{
|
||||
this.Extendee = other.Extendee;
|
||||
}
|
||||
if (other.DefaultValue.Length != 0)
|
||||
{
|
||||
this.DefaultValue = other.DefaultValue;
|
||||
}
|
||||
if (other.OneofIndex != 0)
|
||||
{
|
||||
this.OneofIndex = other.OneofIndex;
|
||||
}
|
||||
if (other.JsonName.Length != 0)
|
||||
{
|
||||
this.JsonName = other.JsonName;
|
||||
}
|
||||
if (other.options_ != null)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new FieldOptions();
|
||||
}
|
||||
this.Options.MergeFrom(other.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060003FB RID: 1019 RVA: 0x0000F94C File Offset: 0x0000DB4C
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 40U)
|
||||
{
|
||||
if (num <= 18U)
|
||||
{
|
||||
if (num == 10U)
|
||||
{
|
||||
this.Name = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 18U)
|
||||
{
|
||||
this.Extendee = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 24U)
|
||||
{
|
||||
this.Number = input.ReadInt32();
|
||||
continue;
|
||||
}
|
||||
if (num == 32U)
|
||||
{
|
||||
this.label_ = (FieldDescriptorProto.Types.Label)input.ReadEnum();
|
||||
continue;
|
||||
}
|
||||
if (num == 40U)
|
||||
{
|
||||
this.type_ = (FieldDescriptorProto.Types.Type)input.ReadEnum();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (num <= 58U)
|
||||
{
|
||||
if (num == 50U)
|
||||
{
|
||||
this.TypeName = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 58U)
|
||||
{
|
||||
this.DefaultValue = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 66U)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new FieldOptions();
|
||||
}
|
||||
input.ReadMessage(this.options_);
|
||||
continue;
|
||||
}
|
||||
if (num == 72U)
|
||||
{
|
||||
this.OneofIndex = input.ReadInt32();
|
||||
continue;
|
||||
}
|
||||
if (num == 82U)
|
||||
{
|
||||
this.JsonName = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000156 RID: 342
|
||||
private static readonly MessageParser<FieldDescriptorProto> _parser = new MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
|
||||
|
||||
// Token: 0x04000157 RID: 343
|
||||
public const int NameFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000158 RID: 344
|
||||
private string name_ = "";
|
||||
|
||||
// Token: 0x04000159 RID: 345
|
||||
public const int NumberFieldNumber = 3;
|
||||
|
||||
// Token: 0x0400015A RID: 346
|
||||
private int number_;
|
||||
|
||||
// Token: 0x0400015B RID: 347
|
||||
public const int LabelFieldNumber = 4;
|
||||
|
||||
// Token: 0x0400015C RID: 348
|
||||
private FieldDescriptorProto.Types.Label label_;
|
||||
|
||||
// Token: 0x0400015D RID: 349
|
||||
public const int TypeFieldNumber = 5;
|
||||
|
||||
// Token: 0x0400015E RID: 350
|
||||
private FieldDescriptorProto.Types.Type type_;
|
||||
|
||||
// Token: 0x0400015F RID: 351
|
||||
public const int TypeNameFieldNumber = 6;
|
||||
|
||||
// Token: 0x04000160 RID: 352
|
||||
private string typeName_ = "";
|
||||
|
||||
// Token: 0x04000161 RID: 353
|
||||
public const int ExtendeeFieldNumber = 2;
|
||||
|
||||
// Token: 0x04000162 RID: 354
|
||||
private string extendee_ = "";
|
||||
|
||||
// Token: 0x04000163 RID: 355
|
||||
public const int DefaultValueFieldNumber = 7;
|
||||
|
||||
// Token: 0x04000164 RID: 356
|
||||
private string defaultValue_ = "";
|
||||
|
||||
// Token: 0x04000165 RID: 357
|
||||
public const int OneofIndexFieldNumber = 9;
|
||||
|
||||
// Token: 0x04000166 RID: 358
|
||||
private int oneofIndex_;
|
||||
|
||||
// Token: 0x04000167 RID: 359
|
||||
public const int JsonNameFieldNumber = 10;
|
||||
|
||||
// Token: 0x04000168 RID: 360
|
||||
private string jsonName_ = "";
|
||||
|
||||
// Token: 0x04000169 RID: 361
|
||||
public const int OptionsFieldNumber = 8;
|
||||
|
||||
// Token: 0x0400016A RID: 362
|
||||
private FieldOptions options_;
|
||||
|
||||
// Token: 0x020000A6 RID: 166
|
||||
[DebuggerNonUserCode]
|
||||
public static class Types
|
||||
{
|
||||
// Token: 0x020000D7 RID: 215
|
||||
internal enum Type
|
||||
{
|
||||
// Token: 0x0400034F RID: 847
|
||||
[OriginalName("TYPE_DOUBLE")]
|
||||
Double = 1,
|
||||
// Token: 0x04000350 RID: 848
|
||||
[OriginalName("TYPE_FLOAT")]
|
||||
Float,
|
||||
// Token: 0x04000351 RID: 849
|
||||
[OriginalName("TYPE_INT64")]
|
||||
Int64,
|
||||
// Token: 0x04000352 RID: 850
|
||||
[OriginalName("TYPE_UINT64")]
|
||||
Uint64,
|
||||
// Token: 0x04000353 RID: 851
|
||||
[OriginalName("TYPE_INT32")]
|
||||
Int32,
|
||||
// Token: 0x04000354 RID: 852
|
||||
[OriginalName("TYPE_FIXED64")]
|
||||
Fixed64,
|
||||
// Token: 0x04000355 RID: 853
|
||||
[OriginalName("TYPE_FIXED32")]
|
||||
Fixed32,
|
||||
// Token: 0x04000356 RID: 854
|
||||
[OriginalName("TYPE_BOOL")]
|
||||
Bool,
|
||||
// Token: 0x04000357 RID: 855
|
||||
[OriginalName("TYPE_STRING")]
|
||||
String,
|
||||
// Token: 0x04000358 RID: 856
|
||||
[OriginalName("TYPE_GROUP")]
|
||||
Group,
|
||||
// Token: 0x04000359 RID: 857
|
||||
[OriginalName("TYPE_MESSAGE")]
|
||||
Message,
|
||||
// Token: 0x0400035A RID: 858
|
||||
[OriginalName("TYPE_BYTES")]
|
||||
Bytes,
|
||||
// Token: 0x0400035B RID: 859
|
||||
[OriginalName("TYPE_UINT32")]
|
||||
Uint32,
|
||||
// Token: 0x0400035C RID: 860
|
||||
[OriginalName("TYPE_ENUM")]
|
||||
Enum,
|
||||
// Token: 0x0400035D RID: 861
|
||||
[OriginalName("TYPE_SFIXED32")]
|
||||
Sfixed32,
|
||||
// Token: 0x0400035E RID: 862
|
||||
[OriginalName("TYPE_SFIXED64")]
|
||||
Sfixed64,
|
||||
// Token: 0x0400035F RID: 863
|
||||
[OriginalName("TYPE_SINT32")]
|
||||
Sint32,
|
||||
// Token: 0x04000360 RID: 864
|
||||
[OriginalName("TYPE_SINT64")]
|
||||
Sint64
|
||||
}
|
||||
|
||||
// Token: 0x020000D8 RID: 216
|
||||
internal enum Label
|
||||
{
|
||||
// Token: 0x04000362 RID: 866
|
||||
[OriginalName("LABEL_OPTIONAL")]
|
||||
Optional = 1,
|
||||
// Token: 0x04000363 RID: 867
|
||||
[OriginalName("LABEL_REQUIRED")]
|
||||
Required,
|
||||
// Token: 0x04000364 RID: 868
|
||||
[OriginalName("LABEL_REPEATED")]
|
||||
Repeated
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,477 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200004C RID: 76
|
||||
internal sealed class FieldOptions : IMessage<FieldOptions>, IMessage, IEquatable<FieldOptions>, IDeepCloneable<FieldOptions>
|
||||
{
|
||||
// Token: 0x1700012D RID: 301
|
||||
// (get) Token: 0x060004AC RID: 1196 RVA: 0x00011BA8 File Offset: 0x0000FDA8
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<FieldOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return FieldOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700012E RID: 302
|
||||
// (get) Token: 0x060004AD RID: 1197 RVA: 0x00011BAF File Offset: 0x0000FDAF
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[11];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700012F RID: 303
|
||||
// (get) Token: 0x060004AE RID: 1198 RVA: 0x00011BC2 File Offset: 0x0000FDC2
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return FieldOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004AF RID: 1199 RVA: 0x00011BC9 File Offset: 0x0000FDC9
|
||||
[DebuggerNonUserCode]
|
||||
public FieldOptions()
|
||||
{
|
||||
this.OnConstruction();
|
||||
}
|
||||
|
||||
// Token: 0x060004B0 RID: 1200 RVA: 0x00011BE2 File Offset: 0x0000FDE2
|
||||
private void OnConstruction()
|
||||
{
|
||||
this.Packed = true;
|
||||
}
|
||||
|
||||
// Token: 0x060004B1 RID: 1201 RVA: 0x00011BEC File Offset: 0x0000FDEC
|
||||
[DebuggerNonUserCode]
|
||||
public FieldOptions(FieldOptions other)
|
||||
: this()
|
||||
{
|
||||
this.ctype_ = other.ctype_;
|
||||
this.packed_ = other.packed_;
|
||||
this.jstype_ = other.jstype_;
|
||||
this.lazy_ = other.lazy_;
|
||||
this.deprecated_ = other.deprecated_;
|
||||
this.weak_ = other.weak_;
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x060004B2 RID: 1202 RVA: 0x00011C58 File Offset: 0x0000FE58
|
||||
[DebuggerNonUserCode]
|
||||
public FieldOptions Clone()
|
||||
{
|
||||
return new FieldOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000130 RID: 304
|
||||
// (get) Token: 0x060004B3 RID: 1203 RVA: 0x00011C60 File Offset: 0x0000FE60
|
||||
// (set) Token: 0x060004B4 RID: 1204 RVA: 0x00011C68 File Offset: 0x0000FE68
|
||||
[DebuggerNonUserCode]
|
||||
public FieldOptions.Types.CType Ctype
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ctype_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ctype_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000131 RID: 305
|
||||
// (get) Token: 0x060004B5 RID: 1205 RVA: 0x00011C71 File Offset: 0x0000FE71
|
||||
// (set) Token: 0x060004B6 RID: 1206 RVA: 0x00011C79 File Offset: 0x0000FE79
|
||||
[DebuggerNonUserCode]
|
||||
public bool Packed
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.packed_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.packed_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000132 RID: 306
|
||||
// (get) Token: 0x060004B7 RID: 1207 RVA: 0x00011C82 File Offset: 0x0000FE82
|
||||
// (set) Token: 0x060004B8 RID: 1208 RVA: 0x00011C8A File Offset: 0x0000FE8A
|
||||
[DebuggerNonUserCode]
|
||||
public FieldOptions.Types.JSType Jstype
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.jstype_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.jstype_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000133 RID: 307
|
||||
// (get) Token: 0x060004B9 RID: 1209 RVA: 0x00011C93 File Offset: 0x0000FE93
|
||||
// (set) Token: 0x060004BA RID: 1210 RVA: 0x00011C9B File Offset: 0x0000FE9B
|
||||
[DebuggerNonUserCode]
|
||||
public bool Lazy
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.lazy_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.lazy_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000134 RID: 308
|
||||
// (get) Token: 0x060004BB RID: 1211 RVA: 0x00011CA4 File Offset: 0x0000FEA4
|
||||
// (set) Token: 0x060004BC RID: 1212 RVA: 0x00011CAC File Offset: 0x0000FEAC
|
||||
[DebuggerNonUserCode]
|
||||
public bool Deprecated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.deprecated_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.deprecated_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000135 RID: 309
|
||||
// (get) Token: 0x060004BD RID: 1213 RVA: 0x00011CB5 File Offset: 0x0000FEB5
|
||||
// (set) Token: 0x060004BE RID: 1214 RVA: 0x00011CBD File Offset: 0x0000FEBD
|
||||
[DebuggerNonUserCode]
|
||||
public bool Weak
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.weak_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.weak_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000136 RID: 310
|
||||
// (get) Token: 0x060004BF RID: 1215 RVA: 0x00011CC6 File Offset: 0x0000FEC6
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004C0 RID: 1216 RVA: 0x00011CCE File Offset: 0x0000FECE
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as FieldOptions);
|
||||
}
|
||||
|
||||
// Token: 0x060004C1 RID: 1217 RVA: 0x00011CDC File Offset: 0x0000FEDC
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(FieldOptions other)
|
||||
{
|
||||
return other != null && (other == this || (this.Ctype == other.Ctype && this.Packed == other.Packed && this.Jstype == other.Jstype && this.Lazy == other.Lazy && this.Deprecated == other.Deprecated && this.Weak == other.Weak && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
||||
}
|
||||
|
||||
// Token: 0x060004C2 RID: 1218 RVA: 0x00011D6C File Offset: 0x0000FF6C
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Ctype != FieldOptions.Types.CType.String)
|
||||
{
|
||||
num ^= this.Ctype.GetHashCode();
|
||||
}
|
||||
if (this.Packed)
|
||||
{
|
||||
num ^= this.Packed.GetHashCode();
|
||||
}
|
||||
if (this.Jstype != FieldOptions.Types.JSType.JsNormal)
|
||||
{
|
||||
num ^= this.Jstype.GetHashCode();
|
||||
}
|
||||
if (this.Lazy)
|
||||
{
|
||||
num ^= this.Lazy.GetHashCode();
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num ^= this.Deprecated.GetHashCode();
|
||||
}
|
||||
if (this.Weak)
|
||||
{
|
||||
num ^= this.Weak.GetHashCode();
|
||||
}
|
||||
return num ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060004C3 RID: 1219 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060004C4 RID: 1220 RVA: 0x00011E2C File Offset: 0x0001002C
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Ctype != FieldOptions.Types.CType.String)
|
||||
{
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int)this.Ctype);
|
||||
}
|
||||
if (this.Packed)
|
||||
{
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(this.Packed);
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(this.Deprecated);
|
||||
}
|
||||
if (this.Lazy)
|
||||
{
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(this.Lazy);
|
||||
}
|
||||
if (this.Jstype != FieldOptions.Types.JSType.JsNormal)
|
||||
{
|
||||
output.WriteRawTag(48);
|
||||
output.WriteEnum((int)this.Jstype);
|
||||
}
|
||||
if (this.Weak)
|
||||
{
|
||||
output.WriteRawTag(80);
|
||||
output.WriteBool(this.Weak);
|
||||
}
|
||||
this.uninterpretedOption_.WriteTo(output, FieldOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004C5 RID: 1221 RVA: 0x00011EF4 File Offset: 0x000100F4
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Ctype != FieldOptions.Types.CType.String)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Ctype);
|
||||
}
|
||||
if (this.Packed)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.Jstype != FieldOptions.Types.JSType.JsNormal)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Jstype);
|
||||
}
|
||||
if (this.Lazy)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.Weak)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
return num + this.uninterpretedOption_.CalculateSize(FieldOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004C6 RID: 1222 RVA: 0x00011F78 File Offset: 0x00010178
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(FieldOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Ctype != FieldOptions.Types.CType.String)
|
||||
{
|
||||
this.Ctype = other.Ctype;
|
||||
}
|
||||
if (other.Packed)
|
||||
{
|
||||
this.Packed = other.Packed;
|
||||
}
|
||||
if (other.Jstype != FieldOptions.Types.JSType.JsNormal)
|
||||
{
|
||||
this.Jstype = other.Jstype;
|
||||
}
|
||||
if (other.Lazy)
|
||||
{
|
||||
this.Lazy = other.Lazy;
|
||||
}
|
||||
if (other.Deprecated)
|
||||
{
|
||||
this.Deprecated = other.Deprecated;
|
||||
}
|
||||
if (other.Weak)
|
||||
{
|
||||
this.Weak = other.Weak;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x060004C7 RID: 1223 RVA: 0x00012014 File Offset: 0x00010214
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 24U)
|
||||
{
|
||||
if (num == 8U)
|
||||
{
|
||||
this.ctype_ = (FieldOptions.Types.CType)input.ReadEnum();
|
||||
continue;
|
||||
}
|
||||
if (num == 16U)
|
||||
{
|
||||
this.Packed = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 24U)
|
||||
{
|
||||
this.Deprecated = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if (num <= 48U)
|
||||
{
|
||||
if (num == 40U)
|
||||
{
|
||||
this.Lazy = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 48U)
|
||||
{
|
||||
this.jstype_ = (FieldOptions.Types.JSType)input.ReadEnum();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 80U)
|
||||
{
|
||||
this.Weak = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 7994U)
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, FieldOptions._repeated_uninterpretedOption_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001C0 RID: 448
|
||||
private static readonly MessageParser<FieldOptions> _parser = new MessageParser<FieldOptions>(() => new FieldOptions());
|
||||
|
||||
// Token: 0x040001C1 RID: 449
|
||||
public const int CtypeFieldNumber = 1;
|
||||
|
||||
// Token: 0x040001C2 RID: 450
|
||||
private FieldOptions.Types.CType ctype_;
|
||||
|
||||
// Token: 0x040001C3 RID: 451
|
||||
public const int PackedFieldNumber = 2;
|
||||
|
||||
// Token: 0x040001C4 RID: 452
|
||||
private bool packed_;
|
||||
|
||||
// Token: 0x040001C5 RID: 453
|
||||
public const int JstypeFieldNumber = 6;
|
||||
|
||||
// Token: 0x040001C6 RID: 454
|
||||
private FieldOptions.Types.JSType jstype_;
|
||||
|
||||
// Token: 0x040001C7 RID: 455
|
||||
public const int LazyFieldNumber = 5;
|
||||
|
||||
// Token: 0x040001C8 RID: 456
|
||||
private bool lazy_;
|
||||
|
||||
// Token: 0x040001C9 RID: 457
|
||||
public const int DeprecatedFieldNumber = 3;
|
||||
|
||||
// Token: 0x040001CA RID: 458
|
||||
private bool deprecated_;
|
||||
|
||||
// Token: 0x040001CB RID: 459
|
||||
public const int WeakFieldNumber = 10;
|
||||
|
||||
// Token: 0x040001CC RID: 460
|
||||
private bool weak_;
|
||||
|
||||
// Token: 0x040001CD RID: 461
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001CE RID: 462
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001CF RID: 463
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
|
||||
// Token: 0x020000B0 RID: 176
|
||||
[DebuggerNonUserCode]
|
||||
public static class Types
|
||||
{
|
||||
// Token: 0x020000DA RID: 218
|
||||
internal enum CType
|
||||
{
|
||||
// Token: 0x0400036A RID: 874
|
||||
[OriginalName("STRING")]
|
||||
String,
|
||||
// Token: 0x0400036B RID: 875
|
||||
[OriginalName("CORD")]
|
||||
Cord,
|
||||
// Token: 0x0400036C RID: 876
|
||||
[OriginalName("STRING_PIECE")]
|
||||
StringPiece
|
||||
}
|
||||
|
||||
// Token: 0x020000DB RID: 219
|
||||
internal enum JSType
|
||||
{
|
||||
// Token: 0x0400036E RID: 878
|
||||
[OriginalName("JS_NORMAL")]
|
||||
JsNormal,
|
||||
// Token: 0x0400036F RID: 879
|
||||
[OriginalName("JS_STRING")]
|
||||
JsString,
|
||||
// Token: 0x04000370 RID: 880
|
||||
[OriginalName("JS_NUMBER")]
|
||||
JsNumber
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200005D RID: 93
|
||||
public enum FieldType
|
||||
{
|
||||
// Token: 0x04000222 RID: 546
|
||||
Double,
|
||||
// Token: 0x04000223 RID: 547
|
||||
Float,
|
||||
// Token: 0x04000224 RID: 548
|
||||
Int64,
|
||||
// Token: 0x04000225 RID: 549
|
||||
UInt64,
|
||||
// Token: 0x04000226 RID: 550
|
||||
Int32,
|
||||
// Token: 0x04000227 RID: 551
|
||||
Fixed64,
|
||||
// Token: 0x04000228 RID: 552
|
||||
Fixed32,
|
||||
// Token: 0x04000229 RID: 553
|
||||
Bool,
|
||||
// Token: 0x0400022A RID: 554
|
||||
String,
|
||||
// Token: 0x0400022B RID: 555
|
||||
Group,
|
||||
// Token: 0x0400022C RID: 556
|
||||
Message,
|
||||
// Token: 0x0400022D RID: 557
|
||||
Bytes,
|
||||
// Token: 0x0400022E RID: 558
|
||||
UInt32,
|
||||
// Token: 0x0400022F RID: 559
|
||||
SFixed32,
|
||||
// Token: 0x04000230 RID: 560
|
||||
SFixed64,
|
||||
// Token: 0x04000231 RID: 561
|
||||
SInt32,
|
||||
// Token: 0x04000232 RID: 562
|
||||
SInt64,
|
||||
// Token: 0x04000233 RID: 563
|
||||
Enum
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200005E RID: 94
|
||||
public sealed class FileDescriptor : IDescriptor
|
||||
{
|
||||
// Token: 0x06000599 RID: 1433 RVA: 0x0001407C File Offset: 0x0001227C
|
||||
private FileDescriptor(ByteString descriptorData, FileDescriptorProto proto, FileDescriptor[] dependencies, DescriptorPool pool, bool allowUnknownDependencies, GeneratedClrTypeInfo generatedCodeInfo)
|
||||
{
|
||||
FileDescriptor <>4__this = this;
|
||||
this.SerializedData = descriptorData;
|
||||
this.DescriptorPool = pool;
|
||||
this.Proto = proto;
|
||||
this.Dependencies = new ReadOnlyCollection<FileDescriptor>((FileDescriptor[])dependencies.Clone());
|
||||
this.PublicDependencies = FileDescriptor.DeterminePublicDependencies(this, proto, dependencies, allowUnknownDependencies);
|
||||
pool.AddPackage(this.Package, this);
|
||||
this.MessageTypes = DescriptorUtil.ConvertAndMakeReadOnly<DescriptorProto, MessageDescriptor>(proto.MessageType, (DescriptorProto message, int index) => new MessageDescriptor(message, <>4__this, null, index, generatedCodeInfo.NestedTypes[index]));
|
||||
this.EnumTypes = DescriptorUtil.ConvertAndMakeReadOnly<EnumDescriptorProto, EnumDescriptor>(proto.EnumType, (EnumDescriptorProto enumType, int index) => new EnumDescriptor(enumType, <>4__this, null, index, generatedCodeInfo.NestedEnums[index]));
|
||||
this.Services = DescriptorUtil.ConvertAndMakeReadOnly<ServiceDescriptorProto, ServiceDescriptor>(proto.Service, (ServiceDescriptorProto service, int index) => new ServiceDescriptor(service, this, index));
|
||||
}
|
||||
|
||||
// Token: 0x0600059A RID: 1434 RVA: 0x00014145 File Offset: 0x00012345
|
||||
internal string ComputeFullName(MessageDescriptor parent, string name)
|
||||
{
|
||||
if (parent != null)
|
||||
{
|
||||
return parent.FullName + "." + name;
|
||||
}
|
||||
if (this.Package.Length > 0)
|
||||
{
|
||||
return this.Package + "." + name;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
// Token: 0x0600059B RID: 1435 RVA: 0x00014180 File Offset: 0x00012380
|
||||
private static IList<FileDescriptor> DeterminePublicDependencies(FileDescriptor @this, FileDescriptorProto proto, FileDescriptor[] dependencies, bool allowUnknownDependencies)
|
||||
{
|
||||
Dictionary<string, FileDescriptor> dictionary = new Dictionary<string, FileDescriptor>();
|
||||
foreach (FileDescriptor fileDescriptor in dependencies)
|
||||
{
|
||||
dictionary[fileDescriptor.Name] = fileDescriptor;
|
||||
}
|
||||
List<FileDescriptor> list = new List<FileDescriptor>();
|
||||
for (int j = 0; j < proto.PublicDependency.Count; j++)
|
||||
{
|
||||
int num = proto.PublicDependency[j];
|
||||
if (num < 0 || num >= proto.Dependency.Count)
|
||||
{
|
||||
throw new DescriptorValidationException(@this, "Invalid public dependency index.");
|
||||
}
|
||||
string text = proto.Dependency[num];
|
||||
FileDescriptor fileDescriptor2 = dictionary[text];
|
||||
if (fileDescriptor2 == null)
|
||||
{
|
||||
if (!allowUnknownDependencies)
|
||||
{
|
||||
throw new DescriptorValidationException(@this, "Invalid public dependency: " + text);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
list.Add(fileDescriptor2);
|
||||
}
|
||||
}
|
||||
return new ReadOnlyCollection<FileDescriptor>(list);
|
||||
}
|
||||
|
||||
// Token: 0x1700017F RID: 383
|
||||
// (get) Token: 0x0600059C RID: 1436 RVA: 0x00014247 File Offset: 0x00012447
|
||||
internal FileDescriptorProto Proto { get; }
|
||||
|
||||
// Token: 0x17000180 RID: 384
|
||||
// (get) Token: 0x0600059D RID: 1437 RVA: 0x0001424F File Offset: 0x0001244F
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Proto.Name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000181 RID: 385
|
||||
// (get) Token: 0x0600059E RID: 1438 RVA: 0x0001425C File Offset: 0x0001245C
|
||||
public string Package
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Proto.Package;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000182 RID: 386
|
||||
// (get) Token: 0x0600059F RID: 1439 RVA: 0x00014269 File Offset: 0x00012469
|
||||
public IList<MessageDescriptor> MessageTypes { get; }
|
||||
|
||||
// Token: 0x17000183 RID: 387
|
||||
// (get) Token: 0x060005A0 RID: 1440 RVA: 0x00014271 File Offset: 0x00012471
|
||||
public IList<EnumDescriptor> EnumTypes { get; }
|
||||
|
||||
// Token: 0x17000184 RID: 388
|
||||
// (get) Token: 0x060005A1 RID: 1441 RVA: 0x00014279 File Offset: 0x00012479
|
||||
public IList<ServiceDescriptor> Services { get; }
|
||||
|
||||
// Token: 0x17000185 RID: 389
|
||||
// (get) Token: 0x060005A2 RID: 1442 RVA: 0x00014281 File Offset: 0x00012481
|
||||
public IList<FileDescriptor> Dependencies { get; }
|
||||
|
||||
// Token: 0x17000186 RID: 390
|
||||
// (get) Token: 0x060005A3 RID: 1443 RVA: 0x00014289 File Offset: 0x00012489
|
||||
public IList<FileDescriptor> PublicDependencies { get; }
|
||||
|
||||
// Token: 0x17000187 RID: 391
|
||||
// (get) Token: 0x060005A4 RID: 1444 RVA: 0x00014291 File Offset: 0x00012491
|
||||
public ByteString SerializedData { get; }
|
||||
|
||||
// Token: 0x17000188 RID: 392
|
||||
// (get) Token: 0x060005A5 RID: 1445 RVA: 0x00014299 File Offset: 0x00012499
|
||||
string IDescriptor.FullName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000189 RID: 393
|
||||
// (get) Token: 0x060005A6 RID: 1446 RVA: 0x000142A1 File Offset: 0x000124A1
|
||||
FileDescriptor IDescriptor.File
|
||||
{
|
||||
get
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700018A RID: 394
|
||||
// (get) Token: 0x060005A7 RID: 1447 RVA: 0x000142A4 File Offset: 0x000124A4
|
||||
internal DescriptorPool DescriptorPool { get; }
|
||||
|
||||
// Token: 0x060005A8 RID: 1448 RVA: 0x000142AC File Offset: 0x000124AC
|
||||
public T FindTypeByName<T>(string name) where T : class, IDescriptor
|
||||
{
|
||||
if (name.IndexOf('.') != -1)
|
||||
{
|
||||
return default(T);
|
||||
}
|
||||
if (this.Package.Length > 0)
|
||||
{
|
||||
name = this.Package + "." + name;
|
||||
}
|
||||
T t = this.DescriptorPool.FindSymbol<T>(name);
|
||||
if (t != null && t.File == this)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
return default(T);
|
||||
}
|
||||
|
||||
// Token: 0x060005A9 RID: 1449 RVA: 0x00014320 File Offset: 0x00012520
|
||||
private static FileDescriptor BuildFrom(ByteString descriptorData, FileDescriptorProto proto, FileDescriptor[] dependencies, bool allowUnknownDependencies, GeneratedClrTypeInfo generatedCodeInfo)
|
||||
{
|
||||
if (dependencies == null)
|
||||
{
|
||||
dependencies = new FileDescriptor[0];
|
||||
}
|
||||
DescriptorPool descriptorPool = new DescriptorPool(dependencies);
|
||||
FileDescriptor fileDescriptor = new FileDescriptor(descriptorData, proto, dependencies, descriptorPool, allowUnknownDependencies, generatedCodeInfo);
|
||||
if (dependencies.Length != proto.Dependency.Count)
|
||||
{
|
||||
throw new DescriptorValidationException(fileDescriptor, "Dependencies passed to FileDescriptor.BuildFrom() don't match those listed in the FileDescriptorProto.");
|
||||
}
|
||||
fileDescriptor.CrossLink();
|
||||
return fileDescriptor;
|
||||
}
|
||||
|
||||
// Token: 0x060005AA RID: 1450 RVA: 0x00014370 File Offset: 0x00012570
|
||||
private void CrossLink()
|
||||
{
|
||||
foreach (MessageDescriptor messageDescriptor in this.MessageTypes)
|
||||
{
|
||||
messageDescriptor.CrossLink();
|
||||
}
|
||||
foreach (ServiceDescriptor serviceDescriptor in this.Services)
|
||||
{
|
||||
serviceDescriptor.CrossLink();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060005AB RID: 1451 RVA: 0x000143F4 File Offset: 0x000125F4
|
||||
public static FileDescriptor FromGeneratedCode(byte[] descriptorData, FileDescriptor[] dependencies, GeneratedClrTypeInfo generatedCodeInfo)
|
||||
{
|
||||
FileDescriptorProto fileDescriptorProto;
|
||||
try
|
||||
{
|
||||
fileDescriptorProto = FileDescriptorProto.Parser.ParseFrom(descriptorData);
|
||||
}
|
||||
catch (InvalidProtocolBufferException ex)
|
||||
{
|
||||
throw new ArgumentException("Failed to parse protocol buffer descriptor for generated code.", ex);
|
||||
}
|
||||
FileDescriptor fileDescriptor;
|
||||
try
|
||||
{
|
||||
fileDescriptor = FileDescriptor.BuildFrom(ByteString.CopyFrom(descriptorData), fileDescriptorProto, dependencies, true, generatedCodeInfo);
|
||||
}
|
||||
catch (DescriptorValidationException ex2)
|
||||
{
|
||||
throw new ArgumentException(string.Format("Invalid embedded descriptor for \"{0}\".", fileDescriptorProto.Name), ex2);
|
||||
}
|
||||
return fileDescriptor;
|
||||
}
|
||||
|
||||
// Token: 0x060005AC RID: 1452 RVA: 0x00014464 File Offset: 0x00012664
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("FileDescriptor for {0}", this.Name);
|
||||
}
|
||||
|
||||
// Token: 0x1700018B RID: 395
|
||||
// (get) Token: 0x060005AD RID: 1453 RVA: 0x00014476 File Offset: 0x00012676
|
||||
public static FileDescriptor DescriptorProtoFileDescriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,611 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000042 RID: 66
|
||||
internal sealed class FileDescriptorProto : IMessage<FileDescriptorProto>, IMessage, IEquatable<FileDescriptorProto>, IDeepCloneable<FileDescriptorProto>
|
||||
{
|
||||
// Token: 0x170000CA RID: 202
|
||||
// (get) Token: 0x0600039E RID: 926 RVA: 0x0000DFC0 File Offset: 0x0000C1C0
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<FileDescriptorProto> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return FileDescriptorProto._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000CB RID: 203
|
||||
// (get) Token: 0x0600039F RID: 927 RVA: 0x0000DFC7 File Offset: 0x0000C1C7
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[1];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000CC RID: 204
|
||||
// (get) Token: 0x060003A0 RID: 928 RVA: 0x0000DFD9 File Offset: 0x0000C1D9
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return FileDescriptorProto.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060003A1 RID: 929 RVA: 0x0000DFE0 File Offset: 0x0000C1E0
|
||||
[DebuggerNonUserCode]
|
||||
public FileDescriptorProto()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060003A2 RID: 930 RVA: 0x0000E064 File Offset: 0x0000C264
|
||||
[DebuggerNonUserCode]
|
||||
public FileDescriptorProto(FileDescriptorProto other)
|
||||
: this()
|
||||
{
|
||||
this.name_ = other.name_;
|
||||
this.package_ = other.package_;
|
||||
this.dependency_ = other.dependency_.Clone();
|
||||
this.publicDependency_ = other.publicDependency_.Clone();
|
||||
this.weakDependency_ = other.weakDependency_.Clone();
|
||||
this.messageType_ = other.messageType_.Clone();
|
||||
this.enumType_ = other.enumType_.Clone();
|
||||
this.service_ = other.service_.Clone();
|
||||
this.extension_ = other.extension_.Clone();
|
||||
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
|
||||
this.SourceCodeInfo = ((other.sourceCodeInfo_ != null) ? other.SourceCodeInfo.Clone() : null);
|
||||
this.syntax_ = other.syntax_;
|
||||
}
|
||||
|
||||
// Token: 0x060003A3 RID: 931 RVA: 0x0000E14A File Offset: 0x0000C34A
|
||||
[DebuggerNonUserCode]
|
||||
public FileDescriptorProto Clone()
|
||||
{
|
||||
return new FileDescriptorProto(this);
|
||||
}
|
||||
|
||||
// Token: 0x170000CD RID: 205
|
||||
// (get) Token: 0x060003A4 RID: 932 RVA: 0x0000E152 File Offset: 0x0000C352
|
||||
// (set) Token: 0x060003A5 RID: 933 RVA: 0x0000E15A File Offset: 0x0000C35A
|
||||
[DebuggerNonUserCode]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000CE RID: 206
|
||||
// (get) Token: 0x060003A6 RID: 934 RVA: 0x0000E16D File Offset: 0x0000C36D
|
||||
// (set) Token: 0x060003A7 RID: 935 RVA: 0x0000E175 File Offset: 0x0000C375
|
||||
[DebuggerNonUserCode]
|
||||
public string Package
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.package_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.package_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000CF RID: 207
|
||||
// (get) Token: 0x060003A8 RID: 936 RVA: 0x0000E188 File Offset: 0x0000C388
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<string> Dependency
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.dependency_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D0 RID: 208
|
||||
// (get) Token: 0x060003A9 RID: 937 RVA: 0x0000E190 File Offset: 0x0000C390
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<int> PublicDependency
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.publicDependency_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D1 RID: 209
|
||||
// (get) Token: 0x060003AA RID: 938 RVA: 0x0000E198 File Offset: 0x0000C398
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<int> WeakDependency
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.weakDependency_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D2 RID: 210
|
||||
// (get) Token: 0x060003AB RID: 939 RVA: 0x0000E1A0 File Offset: 0x0000C3A0
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<DescriptorProto> MessageType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.messageType_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D3 RID: 211
|
||||
// (get) Token: 0x060003AC RID: 940 RVA: 0x0000E1A8 File Offset: 0x0000C3A8
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<EnumDescriptorProto> EnumType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.enumType_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D4 RID: 212
|
||||
// (get) Token: 0x060003AD RID: 941 RVA: 0x0000E1B0 File Offset: 0x0000C3B0
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<ServiceDescriptorProto> Service
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.service_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D5 RID: 213
|
||||
// (get) Token: 0x060003AE RID: 942 RVA: 0x0000E1B8 File Offset: 0x0000C3B8
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<FieldDescriptorProto> Extension
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.extension_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D6 RID: 214
|
||||
// (get) Token: 0x060003AF RID: 943 RVA: 0x0000E1C0 File Offset: 0x0000C3C0
|
||||
// (set) Token: 0x060003B0 RID: 944 RVA: 0x0000E1C8 File Offset: 0x0000C3C8
|
||||
[DebuggerNonUserCode]
|
||||
public FileOptions Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.options_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.options_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D7 RID: 215
|
||||
// (get) Token: 0x060003B1 RID: 945 RVA: 0x0000E1D1 File Offset: 0x0000C3D1
|
||||
// (set) Token: 0x060003B2 RID: 946 RVA: 0x0000E1D9 File Offset: 0x0000C3D9
|
||||
[DebuggerNonUserCode]
|
||||
public SourceCodeInfo SourceCodeInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.sourceCodeInfo_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.sourceCodeInfo_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000D8 RID: 216
|
||||
// (get) Token: 0x060003B3 RID: 947 RVA: 0x0000E1E2 File Offset: 0x0000C3E2
|
||||
// (set) Token: 0x060003B4 RID: 948 RVA: 0x0000E1EA File Offset: 0x0000C3EA
|
||||
[DebuggerNonUserCode]
|
||||
public string Syntax
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.syntax_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.syntax_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060003B5 RID: 949 RVA: 0x0000E1FD File Offset: 0x0000C3FD
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as FileDescriptorProto);
|
||||
}
|
||||
|
||||
// Token: 0x060003B6 RID: 950 RVA: 0x0000E20C File Offset: 0x0000C40C
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(FileDescriptorProto other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.Name != other.Name) && !(this.Package != other.Package) && this.dependency_.Equals(other.dependency_) && this.publicDependency_.Equals(other.publicDependency_) && this.weakDependency_.Equals(other.weakDependency_) && this.messageType_.Equals(other.messageType_) && this.enumType_.Equals(other.enumType_) && this.service_.Equals(other.service_) && this.extension_.Equals(other.extension_) && object.Equals(this.Options, other.Options) && object.Equals(this.SourceCodeInfo, other.SourceCodeInfo) && !(this.Syntax != other.Syntax)));
|
||||
}
|
||||
|
||||
// Token: 0x060003B7 RID: 951 RVA: 0x0000E324 File Offset: 0x0000C524
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num ^= this.Name.GetHashCode();
|
||||
}
|
||||
if (this.Package.Length != 0)
|
||||
{
|
||||
num ^= this.Package.GetHashCode();
|
||||
}
|
||||
num ^= this.dependency_.GetHashCode();
|
||||
num ^= this.publicDependency_.GetHashCode();
|
||||
num ^= this.weakDependency_.GetHashCode();
|
||||
num ^= this.messageType_.GetHashCode();
|
||||
num ^= this.enumType_.GetHashCode();
|
||||
num ^= this.service_.GetHashCode();
|
||||
num ^= this.extension_.GetHashCode();
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num ^= this.Options.GetHashCode();
|
||||
}
|
||||
if (this.sourceCodeInfo_ != null)
|
||||
{
|
||||
num ^= this.SourceCodeInfo.GetHashCode();
|
||||
}
|
||||
if (this.Syntax.Length != 0)
|
||||
{
|
||||
num ^= this.Syntax.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x060003B8 RID: 952 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060003B9 RID: 953 RVA: 0x0000E414 File Offset: 0x0000C614
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.Name);
|
||||
}
|
||||
if (this.Package.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(this.Package);
|
||||
}
|
||||
this.dependency_.WriteTo(output, FileDescriptorProto._repeated_dependency_codec);
|
||||
this.messageType_.WriteTo(output, FileDescriptorProto._repeated_messageType_codec);
|
||||
this.enumType_.WriteTo(output, FileDescriptorProto._repeated_enumType_codec);
|
||||
this.service_.WriteTo(output, FileDescriptorProto._repeated_service_codec);
|
||||
this.extension_.WriteTo(output, FileDescriptorProto._repeated_extension_codec);
|
||||
if (this.options_ != null)
|
||||
{
|
||||
output.WriteRawTag(66);
|
||||
output.WriteMessage(this.Options);
|
||||
}
|
||||
if (this.sourceCodeInfo_ != null)
|
||||
{
|
||||
output.WriteRawTag(74);
|
||||
output.WriteMessage(this.SourceCodeInfo);
|
||||
}
|
||||
this.publicDependency_.WriteTo(output, FileDescriptorProto._repeated_publicDependency_codec);
|
||||
this.weakDependency_.WriteTo(output, FileDescriptorProto._repeated_weakDependency_codec);
|
||||
if (this.Syntax.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(98);
|
||||
output.WriteString(this.Syntax);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060003BA RID: 954 RVA: 0x0000E534 File Offset: 0x0000C734
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
|
||||
}
|
||||
if (this.Package.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Package);
|
||||
}
|
||||
num += this.dependency_.CalculateSize(FileDescriptorProto._repeated_dependency_codec);
|
||||
num += this.publicDependency_.CalculateSize(FileDescriptorProto._repeated_publicDependency_codec);
|
||||
num += this.weakDependency_.CalculateSize(FileDescriptorProto._repeated_weakDependency_codec);
|
||||
num += this.messageType_.CalculateSize(FileDescriptorProto._repeated_messageType_codec);
|
||||
num += this.enumType_.CalculateSize(FileDescriptorProto._repeated_enumType_codec);
|
||||
num += this.service_.CalculateSize(FileDescriptorProto._repeated_service_codec);
|
||||
num += this.extension_.CalculateSize(FileDescriptorProto._repeated_extension_codec);
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
|
||||
}
|
||||
if (this.sourceCodeInfo_ != null)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeMessageSize(this.SourceCodeInfo);
|
||||
}
|
||||
if (this.Syntax.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Syntax);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x060003BB RID: 955 RVA: 0x0000E650 File Offset: 0x0000C850
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(FileDescriptorProto other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0)
|
||||
{
|
||||
this.Name = other.Name;
|
||||
}
|
||||
if (other.Package.Length != 0)
|
||||
{
|
||||
this.Package = other.Package;
|
||||
}
|
||||
this.dependency_.Add(other.dependency_);
|
||||
this.publicDependency_.Add(other.publicDependency_);
|
||||
this.weakDependency_.Add(other.weakDependency_);
|
||||
this.messageType_.Add(other.messageType_);
|
||||
this.enumType_.Add(other.enumType_);
|
||||
this.service_.Add(other.service_);
|
||||
this.extension_.Add(other.extension_);
|
||||
if (other.options_ != null)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new FileOptions();
|
||||
}
|
||||
this.Options.MergeFrom(other.Options);
|
||||
}
|
||||
if (other.sourceCodeInfo_ != null)
|
||||
{
|
||||
if (this.sourceCodeInfo_ == null)
|
||||
{
|
||||
this.sourceCodeInfo_ = new SourceCodeInfo();
|
||||
}
|
||||
this.SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
|
||||
}
|
||||
if (other.Syntax.Length != 0)
|
||||
{
|
||||
this.Syntax = other.Syntax;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060003BC RID: 956 RVA: 0x0000E77C File Offset: 0x0000C97C
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num > 58U)
|
||||
{
|
||||
if (num > 80U)
|
||||
{
|
||||
if (num <= 88U)
|
||||
{
|
||||
if (num == 82U)
|
||||
{
|
||||
goto IL_172;
|
||||
}
|
||||
if (num != 88U)
|
||||
{
|
||||
goto IL_98;
|
||||
}
|
||||
}
|
||||
else if (num != 90U)
|
||||
{
|
||||
if (num != 98U)
|
||||
{
|
||||
goto IL_98;
|
||||
}
|
||||
this.Syntax = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
this.weakDependency_.AddEntriesFrom(input, FileDescriptorProto._repeated_weakDependency_codec);
|
||||
continue;
|
||||
}
|
||||
if (num == 66U)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new FileOptions();
|
||||
}
|
||||
input.ReadMessage(this.options_);
|
||||
continue;
|
||||
}
|
||||
if (num == 74U)
|
||||
{
|
||||
if (this.sourceCodeInfo_ == null)
|
||||
{
|
||||
this.sourceCodeInfo_ = new SourceCodeInfo();
|
||||
}
|
||||
input.ReadMessage(this.sourceCodeInfo_);
|
||||
continue;
|
||||
}
|
||||
if (num != 80U)
|
||||
{
|
||||
goto IL_98;
|
||||
}
|
||||
IL_172:
|
||||
this.publicDependency_.AddEntriesFrom(input, FileDescriptorProto._repeated_publicDependency_codec);
|
||||
continue;
|
||||
}
|
||||
if (num <= 26U)
|
||||
{
|
||||
if (num == 10U)
|
||||
{
|
||||
this.Name = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 18U)
|
||||
{
|
||||
this.Package = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 26U)
|
||||
{
|
||||
this.dependency_.AddEntriesFrom(input, FileDescriptorProto._repeated_dependency_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if (num <= 42U)
|
||||
{
|
||||
if (num == 34U)
|
||||
{
|
||||
this.messageType_.AddEntriesFrom(input, FileDescriptorProto._repeated_messageType_codec);
|
||||
continue;
|
||||
}
|
||||
if (num == 42U)
|
||||
{
|
||||
this.enumType_.AddEntriesFrom(input, FileDescriptorProto._repeated_enumType_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 50U)
|
||||
{
|
||||
this.service_.AddEntriesFrom(input, FileDescriptorProto._repeated_service_codec);
|
||||
continue;
|
||||
}
|
||||
if (num == 58U)
|
||||
{
|
||||
this.extension_.AddEntriesFrom(input, FileDescriptorProto._repeated_extension_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
IL_98:
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000119 RID: 281
|
||||
private static readonly MessageParser<FileDescriptorProto> _parser = new MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
|
||||
|
||||
// Token: 0x0400011A RID: 282
|
||||
public const int NameFieldNumber = 1;
|
||||
|
||||
// Token: 0x0400011B RID: 283
|
||||
private string name_ = "";
|
||||
|
||||
// Token: 0x0400011C RID: 284
|
||||
public const int PackageFieldNumber = 2;
|
||||
|
||||
// Token: 0x0400011D RID: 285
|
||||
private string package_ = "";
|
||||
|
||||
// Token: 0x0400011E RID: 286
|
||||
public const int DependencyFieldNumber = 3;
|
||||
|
||||
// Token: 0x0400011F RID: 287
|
||||
private static readonly FieldCodec<string> _repeated_dependency_codec = FieldCodec.ForString(26U);
|
||||
|
||||
// Token: 0x04000120 RID: 288
|
||||
private readonly RepeatedField<string> dependency_ = new RepeatedField<string>();
|
||||
|
||||
// Token: 0x04000121 RID: 289
|
||||
public const int PublicDependencyFieldNumber = 10;
|
||||
|
||||
// Token: 0x04000122 RID: 290
|
||||
private static readonly FieldCodec<int> _repeated_publicDependency_codec = FieldCodec.ForInt32(80U);
|
||||
|
||||
// Token: 0x04000123 RID: 291
|
||||
private readonly RepeatedField<int> publicDependency_ = new RepeatedField<int>();
|
||||
|
||||
// Token: 0x04000124 RID: 292
|
||||
public const int WeakDependencyFieldNumber = 11;
|
||||
|
||||
// Token: 0x04000125 RID: 293
|
||||
private static readonly FieldCodec<int> _repeated_weakDependency_codec = FieldCodec.ForInt32(88U);
|
||||
|
||||
// Token: 0x04000126 RID: 294
|
||||
private readonly RepeatedField<int> weakDependency_ = new RepeatedField<int>();
|
||||
|
||||
// Token: 0x04000127 RID: 295
|
||||
public const int MessageTypeFieldNumber = 4;
|
||||
|
||||
// Token: 0x04000128 RID: 296
|
||||
private static readonly FieldCodec<DescriptorProto> _repeated_messageType_codec = FieldCodec.ForMessage<DescriptorProto>(34U, DescriptorProto.Parser);
|
||||
|
||||
// Token: 0x04000129 RID: 297
|
||||
private readonly RepeatedField<DescriptorProto> messageType_ = new RepeatedField<DescriptorProto>();
|
||||
|
||||
// Token: 0x0400012A RID: 298
|
||||
public const int EnumTypeFieldNumber = 5;
|
||||
|
||||
// Token: 0x0400012B RID: 299
|
||||
private static readonly FieldCodec<EnumDescriptorProto> _repeated_enumType_codec = FieldCodec.ForMessage<EnumDescriptorProto>(42U, EnumDescriptorProto.Parser);
|
||||
|
||||
// Token: 0x0400012C RID: 300
|
||||
private readonly RepeatedField<EnumDescriptorProto> enumType_ = new RepeatedField<EnumDescriptorProto>();
|
||||
|
||||
// Token: 0x0400012D RID: 301
|
||||
public const int ServiceFieldNumber = 6;
|
||||
|
||||
// Token: 0x0400012E RID: 302
|
||||
private static readonly FieldCodec<ServiceDescriptorProto> _repeated_service_codec = FieldCodec.ForMessage<ServiceDescriptorProto>(50U, ServiceDescriptorProto.Parser);
|
||||
|
||||
// Token: 0x0400012F RID: 303
|
||||
private readonly RepeatedField<ServiceDescriptorProto> service_ = new RepeatedField<ServiceDescriptorProto>();
|
||||
|
||||
// Token: 0x04000130 RID: 304
|
||||
public const int ExtensionFieldNumber = 7;
|
||||
|
||||
// Token: 0x04000131 RID: 305
|
||||
private static readonly FieldCodec<FieldDescriptorProto> _repeated_extension_codec = FieldCodec.ForMessage<FieldDescriptorProto>(58U, FieldDescriptorProto.Parser);
|
||||
|
||||
// Token: 0x04000132 RID: 306
|
||||
private readonly RepeatedField<FieldDescriptorProto> extension_ = new RepeatedField<FieldDescriptorProto>();
|
||||
|
||||
// Token: 0x04000133 RID: 307
|
||||
public const int OptionsFieldNumber = 8;
|
||||
|
||||
// Token: 0x04000134 RID: 308
|
||||
private FileOptions options_;
|
||||
|
||||
// Token: 0x04000135 RID: 309
|
||||
public const int SourceCodeInfoFieldNumber = 9;
|
||||
|
||||
// Token: 0x04000136 RID: 310
|
||||
private SourceCodeInfo sourceCodeInfo_;
|
||||
|
||||
// Token: 0x04000137 RID: 311
|
||||
public const int SyntaxFieldNumber = 12;
|
||||
|
||||
// Token: 0x04000138 RID: 312
|
||||
private string syntax_ = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000041 RID: 65
|
||||
internal sealed class FileDescriptorSet : IMessage<FileDescriptorSet>, IMessage, IEquatable<FileDescriptorSet>, IDeepCloneable<FileDescriptorSet>
|
||||
{
|
||||
// Token: 0x170000C6 RID: 198
|
||||
// (get) Token: 0x0600038E RID: 910 RVA: 0x0000DE82 File Offset: 0x0000C082
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<FileDescriptorSet> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return FileDescriptorSet._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000C7 RID: 199
|
||||
// (get) Token: 0x0600038F RID: 911 RVA: 0x0000DE89 File Offset: 0x0000C089
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[0];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000C8 RID: 200
|
||||
// (get) Token: 0x06000390 RID: 912 RVA: 0x0000DE9B File Offset: 0x0000C09B
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return FileDescriptorSet.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000391 RID: 913 RVA: 0x0000DEA2 File Offset: 0x0000C0A2
|
||||
[DebuggerNonUserCode]
|
||||
public FileDescriptorSet()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000392 RID: 914 RVA: 0x0000DEB5 File Offset: 0x0000C0B5
|
||||
[DebuggerNonUserCode]
|
||||
public FileDescriptorSet(FileDescriptorSet other)
|
||||
: this()
|
||||
{
|
||||
this.file_ = other.file_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x06000393 RID: 915 RVA: 0x0000DECE File Offset: 0x0000C0CE
|
||||
[DebuggerNonUserCode]
|
||||
public FileDescriptorSet Clone()
|
||||
{
|
||||
return new FileDescriptorSet(this);
|
||||
}
|
||||
|
||||
// Token: 0x170000C9 RID: 201
|
||||
// (get) Token: 0x06000394 RID: 916 RVA: 0x0000DED6 File Offset: 0x0000C0D6
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<FileDescriptorProto> File
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.file_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000395 RID: 917 RVA: 0x0000DEDE File Offset: 0x0000C0DE
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as FileDescriptorSet);
|
||||
}
|
||||
|
||||
// Token: 0x06000396 RID: 918 RVA: 0x0000DEEC File Offset: 0x0000C0EC
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(FileDescriptorSet other)
|
||||
{
|
||||
return other != null && (other == this || this.file_.Equals(other.file_));
|
||||
}
|
||||
|
||||
// Token: 0x06000397 RID: 919 RVA: 0x0000DF0F File Offset: 0x0000C10F
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return 1 ^ this.file_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x06000398 RID: 920 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x06000399 RID: 921 RVA: 0x0000DF1E File Offset: 0x0000C11E
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.file_.WriteTo(output, FileDescriptorSet._repeated_file_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600039A RID: 922 RVA: 0x0000DF31 File Offset: 0x0000C131
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
return 0 + this.file_.CalculateSize(FileDescriptorSet._repeated_file_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600039B RID: 923 RVA: 0x0000DF45 File Offset: 0x0000C145
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(FileDescriptorSet other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.file_.Add(other.file_);
|
||||
}
|
||||
|
||||
// Token: 0x0600039C RID: 924 RVA: 0x0000DF5C File Offset: 0x0000C15C
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.file_.AddEntriesFrom(input, FileDescriptorSet._repeated_file_codec);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000115 RID: 277
|
||||
private static readonly MessageParser<FileDescriptorSet> _parser = new MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
|
||||
|
||||
// Token: 0x04000116 RID: 278
|
||||
public const int FileFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000117 RID: 279
|
||||
private static readonly FieldCodec<FileDescriptorProto> _repeated_file_codec = FieldCodec.ForMessage<FileDescriptorProto>(10U, FileDescriptorProto.Parser);
|
||||
|
||||
// Token: 0x04000118 RID: 280
|
||||
private readonly RepeatedField<FileDescriptorProto> file_ = new RepeatedField<FileDescriptorProto>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,835 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200004A RID: 74
|
||||
internal sealed class FileOptions : IMessage<FileOptions>, IMessage, IEquatable<FileOptions>, IDeepCloneable<FileOptions>
|
||||
{
|
||||
// Token: 0x17000113 RID: 275
|
||||
// (get) Token: 0x06000468 RID: 1128 RVA: 0x00010C01 File Offset: 0x0000EE01
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<FileOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return FileOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000114 RID: 276
|
||||
// (get) Token: 0x06000469 RID: 1129 RVA: 0x00010C08 File Offset: 0x0000EE08
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[9];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000115 RID: 277
|
||||
// (get) Token: 0x0600046A RID: 1130 RVA: 0x00010C1B File Offset: 0x0000EE1B
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return FileOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600046B RID: 1131 RVA: 0x00010C24 File Offset: 0x0000EE24
|
||||
[DebuggerNonUserCode]
|
||||
public FileOptions()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600046C RID: 1132 RVA: 0x00010C7C File Offset: 0x0000EE7C
|
||||
[DebuggerNonUserCode]
|
||||
public FileOptions(FileOptions other)
|
||||
: this()
|
||||
{
|
||||
this.javaPackage_ = other.javaPackage_;
|
||||
this.javaOuterClassname_ = other.javaOuterClassname_;
|
||||
this.javaMultipleFiles_ = other.javaMultipleFiles_;
|
||||
this.javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
|
||||
this.javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
|
||||
this.optimizeFor_ = other.optimizeFor_;
|
||||
this.goPackage_ = other.goPackage_;
|
||||
this.ccGenericServices_ = other.ccGenericServices_;
|
||||
this.javaGenericServices_ = other.javaGenericServices_;
|
||||
this.pyGenericServices_ = other.pyGenericServices_;
|
||||
this.deprecated_ = other.deprecated_;
|
||||
this.ccEnableArenas_ = other.ccEnableArenas_;
|
||||
this.objcClassPrefix_ = other.objcClassPrefix_;
|
||||
this.csharpNamespace_ = other.csharpNamespace_;
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x0600046D RID: 1133 RVA: 0x00010D48 File Offset: 0x0000EF48
|
||||
[DebuggerNonUserCode]
|
||||
public FileOptions Clone()
|
||||
{
|
||||
return new FileOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000116 RID: 278
|
||||
// (get) Token: 0x0600046E RID: 1134 RVA: 0x00010D50 File Offset: 0x0000EF50
|
||||
// (set) Token: 0x0600046F RID: 1135 RVA: 0x00010D58 File Offset: 0x0000EF58
|
||||
[DebuggerNonUserCode]
|
||||
public string JavaPackage
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.javaPackage_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.javaPackage_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000117 RID: 279
|
||||
// (get) Token: 0x06000470 RID: 1136 RVA: 0x00010D6B File Offset: 0x0000EF6B
|
||||
// (set) Token: 0x06000471 RID: 1137 RVA: 0x00010D73 File Offset: 0x0000EF73
|
||||
[DebuggerNonUserCode]
|
||||
public string JavaOuterClassname
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.javaOuterClassname_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.javaOuterClassname_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000118 RID: 280
|
||||
// (get) Token: 0x06000472 RID: 1138 RVA: 0x00010D86 File Offset: 0x0000EF86
|
||||
// (set) Token: 0x06000473 RID: 1139 RVA: 0x00010D8E File Offset: 0x0000EF8E
|
||||
[DebuggerNonUserCode]
|
||||
public bool JavaMultipleFiles
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.javaMultipleFiles_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.javaMultipleFiles_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000119 RID: 281
|
||||
// (get) Token: 0x06000474 RID: 1140 RVA: 0x00010D97 File Offset: 0x0000EF97
|
||||
// (set) Token: 0x06000475 RID: 1141 RVA: 0x00010D9F File Offset: 0x0000EF9F
|
||||
[Obsolete]
|
||||
[DebuggerNonUserCode]
|
||||
public bool JavaGenerateEqualsAndHash
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.javaGenerateEqualsAndHash_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.javaGenerateEqualsAndHash_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700011A RID: 282
|
||||
// (get) Token: 0x06000476 RID: 1142 RVA: 0x00010DA8 File Offset: 0x0000EFA8
|
||||
// (set) Token: 0x06000477 RID: 1143 RVA: 0x00010DB0 File Offset: 0x0000EFB0
|
||||
[DebuggerNonUserCode]
|
||||
public bool JavaStringCheckUtf8
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.javaStringCheckUtf8_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.javaStringCheckUtf8_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700011B RID: 283
|
||||
// (get) Token: 0x06000478 RID: 1144 RVA: 0x00010DB9 File Offset: 0x0000EFB9
|
||||
// (set) Token: 0x06000479 RID: 1145 RVA: 0x00010DC1 File Offset: 0x0000EFC1
|
||||
[DebuggerNonUserCode]
|
||||
public FileOptions.Types.OptimizeMode OptimizeFor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.optimizeFor_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.optimizeFor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700011C RID: 284
|
||||
// (get) Token: 0x0600047A RID: 1146 RVA: 0x00010DCA File Offset: 0x0000EFCA
|
||||
// (set) Token: 0x0600047B RID: 1147 RVA: 0x00010DD2 File Offset: 0x0000EFD2
|
||||
[DebuggerNonUserCode]
|
||||
public string GoPackage
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.goPackage_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.goPackage_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700011D RID: 285
|
||||
// (get) Token: 0x0600047C RID: 1148 RVA: 0x00010DE5 File Offset: 0x0000EFE5
|
||||
// (set) Token: 0x0600047D RID: 1149 RVA: 0x00010DED File Offset: 0x0000EFED
|
||||
[DebuggerNonUserCode]
|
||||
public bool CcGenericServices
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ccGenericServices_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ccGenericServices_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700011E RID: 286
|
||||
// (get) Token: 0x0600047E RID: 1150 RVA: 0x00010DF6 File Offset: 0x0000EFF6
|
||||
// (set) Token: 0x0600047F RID: 1151 RVA: 0x00010DFE File Offset: 0x0000EFFE
|
||||
[DebuggerNonUserCode]
|
||||
public bool JavaGenericServices
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.javaGenericServices_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.javaGenericServices_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700011F RID: 287
|
||||
// (get) Token: 0x06000480 RID: 1152 RVA: 0x00010E07 File Offset: 0x0000F007
|
||||
// (set) Token: 0x06000481 RID: 1153 RVA: 0x00010E0F File Offset: 0x0000F00F
|
||||
[DebuggerNonUserCode]
|
||||
public bool PyGenericServices
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.pyGenericServices_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.pyGenericServices_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000120 RID: 288
|
||||
// (get) Token: 0x06000482 RID: 1154 RVA: 0x00010E18 File Offset: 0x0000F018
|
||||
// (set) Token: 0x06000483 RID: 1155 RVA: 0x00010E20 File Offset: 0x0000F020
|
||||
[DebuggerNonUserCode]
|
||||
public bool Deprecated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.deprecated_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.deprecated_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000121 RID: 289
|
||||
// (get) Token: 0x06000484 RID: 1156 RVA: 0x00010E29 File Offset: 0x0000F029
|
||||
// (set) Token: 0x06000485 RID: 1157 RVA: 0x00010E31 File Offset: 0x0000F031
|
||||
[DebuggerNonUserCode]
|
||||
public bool CcEnableArenas
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ccEnableArenas_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ccEnableArenas_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000122 RID: 290
|
||||
// (get) Token: 0x06000486 RID: 1158 RVA: 0x00010E3A File Offset: 0x0000F03A
|
||||
// (set) Token: 0x06000487 RID: 1159 RVA: 0x00010E42 File Offset: 0x0000F042
|
||||
[DebuggerNonUserCode]
|
||||
public string ObjcClassPrefix
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.objcClassPrefix_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.objcClassPrefix_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000123 RID: 291
|
||||
// (get) Token: 0x06000488 RID: 1160 RVA: 0x00010E55 File Offset: 0x0000F055
|
||||
// (set) Token: 0x06000489 RID: 1161 RVA: 0x00010E5D File Offset: 0x0000F05D
|
||||
[DebuggerNonUserCode]
|
||||
public string CsharpNamespace
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.csharpNamespace_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.csharpNamespace_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000124 RID: 292
|
||||
// (get) Token: 0x0600048A RID: 1162 RVA: 0x00010E70 File Offset: 0x0000F070
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600048B RID: 1163 RVA: 0x00010E78 File Offset: 0x0000F078
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as FileOptions);
|
||||
}
|
||||
|
||||
// Token: 0x0600048C RID: 1164 RVA: 0x00010E88 File Offset: 0x0000F088
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(FileOptions other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.JavaPackage != other.JavaPackage) && !(this.JavaOuterClassname != other.JavaOuterClassname) && this.JavaMultipleFiles == other.JavaMultipleFiles && this.JavaGenerateEqualsAndHash == other.JavaGenerateEqualsAndHash && this.JavaStringCheckUtf8 == other.JavaStringCheckUtf8 && this.OptimizeFor == other.OptimizeFor && !(this.GoPackage != other.GoPackage) && this.CcGenericServices == other.CcGenericServices && this.JavaGenericServices == other.JavaGenericServices && this.PyGenericServices == other.PyGenericServices && this.Deprecated == other.Deprecated && this.CcEnableArenas == other.CcEnableArenas && !(this.ObjcClassPrefix != other.ObjcClassPrefix) && !(this.CsharpNamespace != other.CsharpNamespace) && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
||||
}
|
||||
|
||||
// Token: 0x0600048D RID: 1165 RVA: 0x00010FB0 File Offset: 0x0000F1B0
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.JavaPackage.Length != 0)
|
||||
{
|
||||
num ^= this.JavaPackage.GetHashCode();
|
||||
}
|
||||
if (this.JavaOuterClassname.Length != 0)
|
||||
{
|
||||
num ^= this.JavaOuterClassname.GetHashCode();
|
||||
}
|
||||
if (this.JavaMultipleFiles)
|
||||
{
|
||||
num ^= this.JavaMultipleFiles.GetHashCode();
|
||||
}
|
||||
if (this.JavaGenerateEqualsAndHash)
|
||||
{
|
||||
num ^= this.JavaGenerateEqualsAndHash.GetHashCode();
|
||||
}
|
||||
if (this.JavaStringCheckUtf8)
|
||||
{
|
||||
num ^= this.JavaStringCheckUtf8.GetHashCode();
|
||||
}
|
||||
if (this.OptimizeFor != (FileOptions.Types.OptimizeMode)0)
|
||||
{
|
||||
num ^= this.OptimizeFor.GetHashCode();
|
||||
}
|
||||
if (this.GoPackage.Length != 0)
|
||||
{
|
||||
num ^= this.GoPackage.GetHashCode();
|
||||
}
|
||||
if (this.CcGenericServices)
|
||||
{
|
||||
num ^= this.CcGenericServices.GetHashCode();
|
||||
}
|
||||
if (this.JavaGenericServices)
|
||||
{
|
||||
num ^= this.JavaGenericServices.GetHashCode();
|
||||
}
|
||||
if (this.PyGenericServices)
|
||||
{
|
||||
num ^= this.PyGenericServices.GetHashCode();
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num ^= this.Deprecated.GetHashCode();
|
||||
}
|
||||
if (this.CcEnableArenas)
|
||||
{
|
||||
num ^= this.CcEnableArenas.GetHashCode();
|
||||
}
|
||||
if (this.ObjcClassPrefix.Length != 0)
|
||||
{
|
||||
num ^= this.ObjcClassPrefix.GetHashCode();
|
||||
}
|
||||
if (this.CsharpNamespace.Length != 0)
|
||||
{
|
||||
num ^= this.CsharpNamespace.GetHashCode();
|
||||
}
|
||||
return num ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600048E RID: 1166 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600048F RID: 1167 RVA: 0x0001113C File Offset: 0x0000F33C
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.JavaPackage.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.JavaPackage);
|
||||
}
|
||||
if (this.JavaOuterClassname.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(66);
|
||||
output.WriteString(this.JavaOuterClassname);
|
||||
}
|
||||
if (this.OptimizeFor != (FileOptions.Types.OptimizeMode)0)
|
||||
{
|
||||
output.WriteRawTag(72);
|
||||
output.WriteEnum((int)this.OptimizeFor);
|
||||
}
|
||||
if (this.JavaMultipleFiles)
|
||||
{
|
||||
output.WriteRawTag(80);
|
||||
output.WriteBool(this.JavaMultipleFiles);
|
||||
}
|
||||
if (this.GoPackage.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(90);
|
||||
output.WriteString(this.GoPackage);
|
||||
}
|
||||
if (this.CcGenericServices)
|
||||
{
|
||||
output.WriteRawTag(128, 1);
|
||||
output.WriteBool(this.CcGenericServices);
|
||||
}
|
||||
if (this.JavaGenericServices)
|
||||
{
|
||||
output.WriteRawTag(136, 1);
|
||||
output.WriteBool(this.JavaGenericServices);
|
||||
}
|
||||
if (this.PyGenericServices)
|
||||
{
|
||||
output.WriteRawTag(144, 1);
|
||||
output.WriteBool(this.PyGenericServices);
|
||||
}
|
||||
if (this.JavaGenerateEqualsAndHash)
|
||||
{
|
||||
output.WriteRawTag(160, 1);
|
||||
output.WriteBool(this.JavaGenerateEqualsAndHash);
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
output.WriteRawTag(184, 1);
|
||||
output.WriteBool(this.Deprecated);
|
||||
}
|
||||
if (this.JavaStringCheckUtf8)
|
||||
{
|
||||
output.WriteRawTag(216, 1);
|
||||
output.WriteBool(this.JavaStringCheckUtf8);
|
||||
}
|
||||
if (this.CcEnableArenas)
|
||||
{
|
||||
output.WriteRawTag(248, 1);
|
||||
output.WriteBool(this.CcEnableArenas);
|
||||
}
|
||||
if (this.ObjcClassPrefix.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(162, 2);
|
||||
output.WriteString(this.ObjcClassPrefix);
|
||||
}
|
||||
if (this.CsharpNamespace.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(170, 2);
|
||||
output.WriteString(this.CsharpNamespace);
|
||||
}
|
||||
this.uninterpretedOption_.WriteTo(output, FileOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x06000490 RID: 1168 RVA: 0x00011320 File Offset: 0x0000F520
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.JavaPackage.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.JavaPackage);
|
||||
}
|
||||
if (this.JavaOuterClassname.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.JavaOuterClassname);
|
||||
}
|
||||
if (this.JavaMultipleFiles)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.JavaGenerateEqualsAndHash)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
if (this.JavaStringCheckUtf8)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
if (this.OptimizeFor != (FileOptions.Types.OptimizeMode)0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.OptimizeFor);
|
||||
}
|
||||
if (this.GoPackage.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.GoPackage);
|
||||
}
|
||||
if (this.CcGenericServices)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
if (this.JavaGenericServices)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
if (this.PyGenericServices)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
if (this.CcEnableArenas)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
if (this.ObjcClassPrefix.Length != 0)
|
||||
{
|
||||
num += 2 + CodedOutputStream.ComputeStringSize(this.ObjcClassPrefix);
|
||||
}
|
||||
if (this.CsharpNamespace.Length != 0)
|
||||
{
|
||||
num += 2 + CodedOutputStream.ComputeStringSize(this.CsharpNamespace);
|
||||
}
|
||||
return num + this.uninterpretedOption_.CalculateSize(FileOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x06000491 RID: 1169 RVA: 0x0001144C File Offset: 0x0000F64C
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(FileOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.JavaPackage.Length != 0)
|
||||
{
|
||||
this.JavaPackage = other.JavaPackage;
|
||||
}
|
||||
if (other.JavaOuterClassname.Length != 0)
|
||||
{
|
||||
this.JavaOuterClassname = other.JavaOuterClassname;
|
||||
}
|
||||
if (other.JavaMultipleFiles)
|
||||
{
|
||||
this.JavaMultipleFiles = other.JavaMultipleFiles;
|
||||
}
|
||||
if (other.JavaGenerateEqualsAndHash)
|
||||
{
|
||||
this.JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
|
||||
}
|
||||
if (other.JavaStringCheckUtf8)
|
||||
{
|
||||
this.JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
|
||||
}
|
||||
if (other.OptimizeFor != (FileOptions.Types.OptimizeMode)0)
|
||||
{
|
||||
this.OptimizeFor = other.OptimizeFor;
|
||||
}
|
||||
if (other.GoPackage.Length != 0)
|
||||
{
|
||||
this.GoPackage = other.GoPackage;
|
||||
}
|
||||
if (other.CcGenericServices)
|
||||
{
|
||||
this.CcGenericServices = other.CcGenericServices;
|
||||
}
|
||||
if (other.JavaGenericServices)
|
||||
{
|
||||
this.JavaGenericServices = other.JavaGenericServices;
|
||||
}
|
||||
if (other.PyGenericServices)
|
||||
{
|
||||
this.PyGenericServices = other.PyGenericServices;
|
||||
}
|
||||
if (other.Deprecated)
|
||||
{
|
||||
this.Deprecated = other.Deprecated;
|
||||
}
|
||||
if (other.CcEnableArenas)
|
||||
{
|
||||
this.CcEnableArenas = other.CcEnableArenas;
|
||||
}
|
||||
if (other.ObjcClassPrefix.Length != 0)
|
||||
{
|
||||
this.ObjcClassPrefix = other.ObjcClassPrefix;
|
||||
}
|
||||
if (other.CsharpNamespace.Length != 0)
|
||||
{
|
||||
this.CsharpNamespace = other.CsharpNamespace;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x06000492 RID: 1170 RVA: 0x000115A0 File Offset: 0x0000F7A0
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 136U)
|
||||
{
|
||||
if (num <= 72U)
|
||||
{
|
||||
if (num == 10U)
|
||||
{
|
||||
this.JavaPackage = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 66U)
|
||||
{
|
||||
this.JavaOuterClassname = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 72U)
|
||||
{
|
||||
this.optimizeFor_ = (FileOptions.Types.OptimizeMode)input.ReadEnum();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if (num <= 90U)
|
||||
{
|
||||
if (num == 80U)
|
||||
{
|
||||
this.JavaMultipleFiles = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 90U)
|
||||
{
|
||||
this.GoPackage = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 128U)
|
||||
{
|
||||
this.CcGenericServices = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 136U)
|
||||
{
|
||||
this.JavaGenericServices = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (num <= 216U)
|
||||
{
|
||||
if (num <= 160U)
|
||||
{
|
||||
if (num == 144U)
|
||||
{
|
||||
this.PyGenericServices = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 160U)
|
||||
{
|
||||
this.JavaGenerateEqualsAndHash = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 184U)
|
||||
{
|
||||
this.Deprecated = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 216U)
|
||||
{
|
||||
this.JavaStringCheckUtf8 = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (num <= 290U)
|
||||
{
|
||||
if (num == 248U)
|
||||
{
|
||||
this.CcEnableArenas = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 290U)
|
||||
{
|
||||
this.ObjcClassPrefix = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 298U)
|
||||
{
|
||||
this.CsharpNamespace = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 7994U)
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, FileOptions._repeated_uninterpretedOption_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000194 RID: 404
|
||||
private static readonly MessageParser<FileOptions> _parser = new MessageParser<FileOptions>(() => new FileOptions());
|
||||
|
||||
// Token: 0x04000195 RID: 405
|
||||
public const int JavaPackageFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000196 RID: 406
|
||||
private string javaPackage_ = "";
|
||||
|
||||
// Token: 0x04000197 RID: 407
|
||||
public const int JavaOuterClassnameFieldNumber = 8;
|
||||
|
||||
// Token: 0x04000198 RID: 408
|
||||
private string javaOuterClassname_ = "";
|
||||
|
||||
// Token: 0x04000199 RID: 409
|
||||
public const int JavaMultipleFilesFieldNumber = 10;
|
||||
|
||||
// Token: 0x0400019A RID: 410
|
||||
private bool javaMultipleFiles_;
|
||||
|
||||
// Token: 0x0400019B RID: 411
|
||||
public const int JavaGenerateEqualsAndHashFieldNumber = 20;
|
||||
|
||||
// Token: 0x0400019C RID: 412
|
||||
private bool javaGenerateEqualsAndHash_;
|
||||
|
||||
// Token: 0x0400019D RID: 413
|
||||
public const int JavaStringCheckUtf8FieldNumber = 27;
|
||||
|
||||
// Token: 0x0400019E RID: 414
|
||||
private bool javaStringCheckUtf8_;
|
||||
|
||||
// Token: 0x0400019F RID: 415
|
||||
public const int OptimizeForFieldNumber = 9;
|
||||
|
||||
// Token: 0x040001A0 RID: 416
|
||||
private FileOptions.Types.OptimizeMode optimizeFor_;
|
||||
|
||||
// Token: 0x040001A1 RID: 417
|
||||
public const int GoPackageFieldNumber = 11;
|
||||
|
||||
// Token: 0x040001A2 RID: 418
|
||||
private string goPackage_ = "";
|
||||
|
||||
// Token: 0x040001A3 RID: 419
|
||||
public const int CcGenericServicesFieldNumber = 16;
|
||||
|
||||
// Token: 0x040001A4 RID: 420
|
||||
private bool ccGenericServices_;
|
||||
|
||||
// Token: 0x040001A5 RID: 421
|
||||
public const int JavaGenericServicesFieldNumber = 17;
|
||||
|
||||
// Token: 0x040001A6 RID: 422
|
||||
private bool javaGenericServices_;
|
||||
|
||||
// Token: 0x040001A7 RID: 423
|
||||
public const int PyGenericServicesFieldNumber = 18;
|
||||
|
||||
// Token: 0x040001A8 RID: 424
|
||||
private bool pyGenericServices_;
|
||||
|
||||
// Token: 0x040001A9 RID: 425
|
||||
public const int DeprecatedFieldNumber = 23;
|
||||
|
||||
// Token: 0x040001AA RID: 426
|
||||
private bool deprecated_;
|
||||
|
||||
// Token: 0x040001AB RID: 427
|
||||
public const int CcEnableArenasFieldNumber = 31;
|
||||
|
||||
// Token: 0x040001AC RID: 428
|
||||
private bool ccEnableArenas_;
|
||||
|
||||
// Token: 0x040001AD RID: 429
|
||||
public const int ObjcClassPrefixFieldNumber = 36;
|
||||
|
||||
// Token: 0x040001AE RID: 430
|
||||
private string objcClassPrefix_ = "";
|
||||
|
||||
// Token: 0x040001AF RID: 431
|
||||
public const int CsharpNamespaceFieldNumber = 37;
|
||||
|
||||
// Token: 0x040001B0 RID: 432
|
||||
private string csharpNamespace_ = "";
|
||||
|
||||
// Token: 0x040001B1 RID: 433
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001B2 RID: 434
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001B3 RID: 435
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
|
||||
// Token: 0x020000AD RID: 173
|
||||
[DebuggerNonUserCode]
|
||||
public static class Types
|
||||
{
|
||||
// Token: 0x020000D9 RID: 217
|
||||
internal enum OptimizeMode
|
||||
{
|
||||
// Token: 0x04000366 RID: 870
|
||||
[OriginalName("SPEED")]
|
||||
Speed = 1,
|
||||
// Token: 0x04000367 RID: 871
|
||||
[OriginalName("CODE_SIZE")]
|
||||
CodeSize,
|
||||
// Token: 0x04000368 RID: 872
|
||||
[OriginalName("LITE_RUNTIME")]
|
||||
LiteRuntime
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200005F RID: 95
|
||||
public sealed class GeneratedClrTypeInfo
|
||||
{
|
||||
// Token: 0x1700018C RID: 396
|
||||
// (get) Token: 0x060005AF RID: 1455 RVA: 0x00014487 File Offset: 0x00012687
|
||||
// (set) Token: 0x060005B0 RID: 1456 RVA: 0x0001448F File Offset: 0x0001268F
|
||||
public Type ClrType { get; private set; }
|
||||
|
||||
// Token: 0x1700018D RID: 397
|
||||
// (get) Token: 0x060005B1 RID: 1457 RVA: 0x00014498 File Offset: 0x00012698
|
||||
public MessageParser Parser { get; }
|
||||
|
||||
// Token: 0x1700018E RID: 398
|
||||
// (get) Token: 0x060005B2 RID: 1458 RVA: 0x000144A0 File Offset: 0x000126A0
|
||||
public string[] PropertyNames { get; }
|
||||
|
||||
// Token: 0x1700018F RID: 399
|
||||
// (get) Token: 0x060005B3 RID: 1459 RVA: 0x000144A8 File Offset: 0x000126A8
|
||||
public string[] OneofNames { get; }
|
||||
|
||||
// Token: 0x17000190 RID: 400
|
||||
// (get) Token: 0x060005B4 RID: 1460 RVA: 0x000144B0 File Offset: 0x000126B0
|
||||
public GeneratedClrTypeInfo[] NestedTypes { get; }
|
||||
|
||||
// Token: 0x17000191 RID: 401
|
||||
// (get) Token: 0x060005B5 RID: 1461 RVA: 0x000144B8 File Offset: 0x000126B8
|
||||
public Type[] NestedEnums { get; }
|
||||
|
||||
// Token: 0x060005B6 RID: 1462 RVA: 0x000144C0 File Offset: 0x000126C0
|
||||
public GeneratedClrTypeInfo(Type clrType, MessageParser parser, string[] propertyNames, string[] oneofNames, Type[] nestedEnums, GeneratedClrTypeInfo[] nestedTypes)
|
||||
{
|
||||
this.NestedTypes = nestedTypes ?? GeneratedClrTypeInfo.EmptyCodeInfo;
|
||||
this.NestedEnums = nestedEnums ?? ReflectionUtil.EmptyTypes;
|
||||
this.ClrType = clrType;
|
||||
this.Parser = parser;
|
||||
this.PropertyNames = propertyNames ?? GeneratedClrTypeInfo.EmptyNames;
|
||||
this.OneofNames = oneofNames ?? GeneratedClrTypeInfo.EmptyNames;
|
||||
}
|
||||
|
||||
// Token: 0x060005B7 RID: 1463 RVA: 0x00014524 File Offset: 0x00012724
|
||||
public GeneratedClrTypeInfo(Type[] nestedEnums, GeneratedClrTypeInfo[] nestedTypes)
|
||||
: this(null, null, null, null, nestedEnums, nestedTypes)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400023C RID: 572
|
||||
private static readonly string[] EmptyNames = new string[0];
|
||||
|
||||
// Token: 0x0400023D RID: 573
|
||||
private static readonly GeneratedClrTypeInfo[] EmptyCodeInfo = new GeneratedClrTypeInfo[0];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,458 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000054 RID: 84
|
||||
internal sealed class GeneratedCodeInfo : IMessage<GeneratedCodeInfo>, IMessage, IEquatable<GeneratedCodeInfo>, IDeepCloneable<GeneratedCodeInfo>
|
||||
{
|
||||
// Token: 0x1700015E RID: 350
|
||||
// (get) Token: 0x0600054F RID: 1359 RVA: 0x00013244 File Offset: 0x00011444
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<GeneratedCodeInfo> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700015F RID: 351
|
||||
// (get) Token: 0x06000550 RID: 1360 RVA: 0x0001324B File Offset: 0x0001144B
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[19];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000160 RID: 352
|
||||
// (get) Token: 0x06000551 RID: 1361 RVA: 0x0001325E File Offset: 0x0001145E
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000552 RID: 1362 RVA: 0x00013265 File Offset: 0x00011465
|
||||
[DebuggerNonUserCode]
|
||||
public GeneratedCodeInfo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000553 RID: 1363 RVA: 0x00013278 File Offset: 0x00011478
|
||||
[DebuggerNonUserCode]
|
||||
public GeneratedCodeInfo(GeneratedCodeInfo other)
|
||||
: this()
|
||||
{
|
||||
this.annotation_ = other.annotation_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x06000554 RID: 1364 RVA: 0x00013291 File Offset: 0x00011491
|
||||
[DebuggerNonUserCode]
|
||||
public GeneratedCodeInfo Clone()
|
||||
{
|
||||
return new GeneratedCodeInfo(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000161 RID: 353
|
||||
// (get) Token: 0x06000555 RID: 1365 RVA: 0x00013299 File Offset: 0x00011499
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<GeneratedCodeInfo.Types.Annotation> Annotation
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.annotation_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000556 RID: 1366 RVA: 0x000132A1 File Offset: 0x000114A1
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as GeneratedCodeInfo);
|
||||
}
|
||||
|
||||
// Token: 0x06000557 RID: 1367 RVA: 0x000132AF File Offset: 0x000114AF
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(GeneratedCodeInfo other)
|
||||
{
|
||||
return other != null && (other == this || this.annotation_.Equals(other.annotation_));
|
||||
}
|
||||
|
||||
// Token: 0x06000558 RID: 1368 RVA: 0x000132D2 File Offset: 0x000114D2
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return 1 ^ this.annotation_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x06000559 RID: 1369 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600055A RID: 1370 RVA: 0x000132E1 File Offset: 0x000114E1
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.annotation_.WriteTo(output, GeneratedCodeInfo._repeated_annotation_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600055B RID: 1371 RVA: 0x000132F4 File Offset: 0x000114F4
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
return 0 + this.annotation_.CalculateSize(GeneratedCodeInfo._repeated_annotation_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600055C RID: 1372 RVA: 0x00013308 File Offset: 0x00011508
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(GeneratedCodeInfo other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.annotation_.Add(other.annotation_);
|
||||
}
|
||||
|
||||
// Token: 0x0600055D RID: 1373 RVA: 0x00013320 File Offset: 0x00011520
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.annotation_.AddEntriesFrom(input, GeneratedCodeInfo._repeated_annotation_codec);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000202 RID: 514
|
||||
private static readonly MessageParser<GeneratedCodeInfo> _parser = new MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
|
||||
|
||||
// Token: 0x04000203 RID: 515
|
||||
public const int AnnotationFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000204 RID: 516
|
||||
private static readonly FieldCodec<GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec = FieldCodec.ForMessage<GeneratedCodeInfo.Types.Annotation>(10U, GeneratedCodeInfo.Types.Annotation.Parser);
|
||||
|
||||
// Token: 0x04000205 RID: 517
|
||||
private readonly RepeatedField<GeneratedCodeInfo.Types.Annotation> annotation_ = new RepeatedField<GeneratedCodeInfo.Types.Annotation>();
|
||||
|
||||
// Token: 0x020000BB RID: 187
|
||||
[DebuggerNonUserCode]
|
||||
public static class Types
|
||||
{
|
||||
// Token: 0x020000DE RID: 222
|
||||
internal sealed class Annotation : IMessage<GeneratedCodeInfo.Types.Annotation>, IMessage, IEquatable<GeneratedCodeInfo.Types.Annotation>, IDeepCloneable<GeneratedCodeInfo.Types.Annotation>
|
||||
{
|
||||
// Token: 0x170001F6 RID: 502
|
||||
// (get) Token: 0x06000802 RID: 2050 RVA: 0x000187E2 File Offset: 0x000169E2
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<GeneratedCodeInfo.Types.Annotation> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo.Types.Annotation._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F7 RID: 503
|
||||
// (get) Token: 0x06000803 RID: 2051 RVA: 0x000187E9 File Offset: 0x000169E9
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo.Descriptor.NestedTypes[0];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F8 RID: 504
|
||||
// (get) Token: 0x06000804 RID: 2052 RVA: 0x000187FB File Offset: 0x000169FB
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return GeneratedCodeInfo.Types.Annotation.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000805 RID: 2053 RVA: 0x00018802 File Offset: 0x00016A02
|
||||
[DebuggerNonUserCode]
|
||||
public Annotation()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000806 RID: 2054 RVA: 0x00018820 File Offset: 0x00016A20
|
||||
[DebuggerNonUserCode]
|
||||
public Annotation(GeneratedCodeInfo.Types.Annotation other)
|
||||
: this()
|
||||
{
|
||||
this.path_ = other.path_.Clone();
|
||||
this.sourceFile_ = other.sourceFile_;
|
||||
this.begin_ = other.begin_;
|
||||
this.end_ = other.end_;
|
||||
}
|
||||
|
||||
// Token: 0x06000807 RID: 2055 RVA: 0x0001885D File Offset: 0x00016A5D
|
||||
[DebuggerNonUserCode]
|
||||
public GeneratedCodeInfo.Types.Annotation Clone()
|
||||
{
|
||||
return new GeneratedCodeInfo.Types.Annotation(this);
|
||||
}
|
||||
|
||||
// Token: 0x170001F9 RID: 505
|
||||
// (get) Token: 0x06000808 RID: 2056 RVA: 0x00018865 File Offset: 0x00016A65
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<int> Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.path_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001FA RID: 506
|
||||
// (get) Token: 0x06000809 RID: 2057 RVA: 0x0001886D File Offset: 0x00016A6D
|
||||
// (set) Token: 0x0600080A RID: 2058 RVA: 0x00018875 File Offset: 0x00016A75
|
||||
[DebuggerNonUserCode]
|
||||
public string SourceFile
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.sourceFile_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.sourceFile_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001FB RID: 507
|
||||
// (get) Token: 0x0600080B RID: 2059 RVA: 0x00018888 File Offset: 0x00016A88
|
||||
// (set) Token: 0x0600080C RID: 2060 RVA: 0x00018890 File Offset: 0x00016A90
|
||||
[DebuggerNonUserCode]
|
||||
public int Begin
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.begin_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.begin_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001FC RID: 508
|
||||
// (get) Token: 0x0600080D RID: 2061 RVA: 0x00018899 File Offset: 0x00016A99
|
||||
// (set) Token: 0x0600080E RID: 2062 RVA: 0x000188A1 File Offset: 0x00016AA1
|
||||
[DebuggerNonUserCode]
|
||||
public int End
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.end_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.end_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600080F RID: 2063 RVA: 0x000188AA File Offset: 0x00016AAA
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as GeneratedCodeInfo.Types.Annotation);
|
||||
}
|
||||
|
||||
// Token: 0x06000810 RID: 2064 RVA: 0x000188B8 File Offset: 0x00016AB8
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(GeneratedCodeInfo.Types.Annotation other)
|
||||
{
|
||||
return other != null && (other == this || (this.path_.Equals(other.path_) && !(this.SourceFile != other.SourceFile) && this.Begin == other.Begin && this.End == other.End));
|
||||
}
|
||||
|
||||
// Token: 0x06000811 RID: 2065 RVA: 0x0001891C File Offset: 0x00016B1C
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
num ^= this.path_.GetHashCode();
|
||||
if (this.SourceFile.Length != 0)
|
||||
{
|
||||
num ^= this.SourceFile.GetHashCode();
|
||||
}
|
||||
if (this.Begin != 0)
|
||||
{
|
||||
num ^= this.Begin.GetHashCode();
|
||||
}
|
||||
if (this.End != 0)
|
||||
{
|
||||
num ^= this.End.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000812 RID: 2066 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x06000813 RID: 2067 RVA: 0x00018988 File Offset: 0x00016B88
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.path_.WriteTo(output, GeneratedCodeInfo.Types.Annotation._repeated_path_codec);
|
||||
if (this.SourceFile.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(this.SourceFile);
|
||||
}
|
||||
if (this.Begin != 0)
|
||||
{
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(this.Begin);
|
||||
}
|
||||
if (this.End != 0)
|
||||
{
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(this.End);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000814 RID: 2068 RVA: 0x00018A00 File Offset: 0x00016C00
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
num += this.path_.CalculateSize(GeneratedCodeInfo.Types.Annotation._repeated_path_codec);
|
||||
if (this.SourceFile.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.SourceFile);
|
||||
}
|
||||
if (this.Begin != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeInt32Size(this.Begin);
|
||||
}
|
||||
if (this.End != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeInt32Size(this.End);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000815 RID: 2069 RVA: 0x00018A70 File Offset: 0x00016C70
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(GeneratedCodeInfo.Types.Annotation other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.path_.Add(other.path_);
|
||||
if (other.SourceFile.Length != 0)
|
||||
{
|
||||
this.SourceFile = other.SourceFile;
|
||||
}
|
||||
if (other.Begin != 0)
|
||||
{
|
||||
this.Begin = other.Begin;
|
||||
}
|
||||
if (other.End != 0)
|
||||
{
|
||||
this.End = other.End;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000816 RID: 2070 RVA: 0x00018AD4 File Offset: 0x00016CD4
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 10U)
|
||||
{
|
||||
if (num == 8U || num == 10U)
|
||||
{
|
||||
this.path_.AddEntriesFrom(input, GeneratedCodeInfo.Types.Annotation._repeated_path_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 18U)
|
||||
{
|
||||
this.SourceFile = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 24U)
|
||||
{
|
||||
this.Begin = input.ReadInt32();
|
||||
continue;
|
||||
}
|
||||
if (num == 32U)
|
||||
{
|
||||
this.End = input.ReadInt32();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000384 RID: 900
|
||||
private static readonly MessageParser<GeneratedCodeInfo.Types.Annotation> _parser = new MessageParser<GeneratedCodeInfo.Types.Annotation>(() => new GeneratedCodeInfo.Types.Annotation());
|
||||
|
||||
// Token: 0x04000385 RID: 901
|
||||
public const int PathFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000386 RID: 902
|
||||
private static readonly FieldCodec<int> _repeated_path_codec = FieldCodec.ForInt32(10U);
|
||||
|
||||
// Token: 0x04000387 RID: 903
|
||||
private readonly RepeatedField<int> path_ = new RepeatedField<int>();
|
||||
|
||||
// Token: 0x04000388 RID: 904
|
||||
public const int SourceFileFieldNumber = 2;
|
||||
|
||||
// Token: 0x04000389 RID: 905
|
||||
private string sourceFile_ = "";
|
||||
|
||||
// Token: 0x0400038A RID: 906
|
||||
public const int BeginFieldNumber = 3;
|
||||
|
||||
// Token: 0x0400038B RID: 907
|
||||
private int begin_;
|
||||
|
||||
// Token: 0x0400038C RID: 908
|
||||
public const int EndFieldNumber = 4;
|
||||
|
||||
// Token: 0x0400038D RID: 909
|
||||
private int end_;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000060 RID: 96
|
||||
public interface IDescriptor
|
||||
{
|
||||
// Token: 0x17000192 RID: 402
|
||||
// (get) Token: 0x060005B9 RID: 1465
|
||||
string Name { get; }
|
||||
|
||||
// Token: 0x17000193 RID: 403
|
||||
// (get) Token: 0x060005BA RID: 1466
|
||||
string FullName { get; }
|
||||
|
||||
// Token: 0x17000194 RID: 404
|
||||
// (get) Token: 0x060005BB RID: 1467
|
||||
FileDescriptor File { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000061 RID: 97
|
||||
public interface IFieldAccessor
|
||||
{
|
||||
// Token: 0x17000195 RID: 405
|
||||
// (get) Token: 0x060005BC RID: 1468
|
||||
FieldDescriptor Descriptor { get; }
|
||||
|
||||
// Token: 0x060005BD RID: 1469
|
||||
void Clear(IMessage message);
|
||||
|
||||
// Token: 0x060005BE RID: 1470
|
||||
object GetValue(IMessage message);
|
||||
|
||||
// Token: 0x060005BF RID: 1471
|
||||
void SetValue(IMessage message, object value);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000062 RID: 98
|
||||
internal sealed class MapFieldAccessor : FieldAccessorBase
|
||||
{
|
||||
// Token: 0x060005C0 RID: 1472 RVA: 0x0001454A File Offset: 0x0001274A
|
||||
internal MapFieldAccessor(PropertyInfo property, FieldDescriptor descriptor)
|
||||
: base(property, descriptor)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060005C1 RID: 1473 RVA: 0x00014554 File Offset: 0x00012754
|
||||
public override void Clear(IMessage message)
|
||||
{
|
||||
((IDictionary)base.GetValue(message)).Clear();
|
||||
}
|
||||
|
||||
// Token: 0x060005C2 RID: 1474 RVA: 0x00014567 File Offset: 0x00012767
|
||||
public override void SetValue(IMessage message, object value)
|
||||
{
|
||||
throw new InvalidOperationException("SetValue is not implemented for map fields");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000063 RID: 99
|
||||
public sealed class MessageDescriptor : DescriptorBase
|
||||
{
|
||||
// Token: 0x060005C3 RID: 1475 RVA: 0x00014574 File Offset: 0x00012774
|
||||
internal MessageDescriptor(DescriptorProto proto, FileDescriptor file, MessageDescriptor parent, int typeIndex, GeneratedClrTypeInfo generatedCodeInfo)
|
||||
: base(file, file.ComputeFullName(parent, proto.Name), typeIndex)
|
||||
{
|
||||
MessageDescriptor <>4__this = this;
|
||||
this.Proto = proto;
|
||||
GeneratedClrTypeInfo generatedCodeInfo2 = generatedCodeInfo;
|
||||
this.Parser = ((generatedCodeInfo2 != null) ? generatedCodeInfo2.Parser : null);
|
||||
GeneratedClrTypeInfo generatedCodeInfo3 = generatedCodeInfo;
|
||||
this.ClrType = ((generatedCodeInfo3 != null) ? generatedCodeInfo3.ClrType : null);
|
||||
this.ContainingType = parent;
|
||||
this.Oneofs = DescriptorUtil.ConvertAndMakeReadOnly<OneofDescriptorProto, OneofDescriptor>(proto.OneofDecl, (OneofDescriptorProto oneof, int index) => new OneofDescriptor(oneof, file, <>4__this, index, generatedCodeInfo.OneofNames[index]));
|
||||
this.NestedTypes = DescriptorUtil.ConvertAndMakeReadOnly<DescriptorProto, MessageDescriptor>(proto.NestedType, (DescriptorProto type, int index) => new MessageDescriptor(type, file, <>4__this, index, generatedCodeInfo.NestedTypes[index]));
|
||||
this.EnumTypes = DescriptorUtil.ConvertAndMakeReadOnly<EnumDescriptorProto, EnumDescriptor>(proto.EnumType, (EnumDescriptorProto type, int index) => new EnumDescriptor(type, file, <>4__this, index, generatedCodeInfo.NestedEnums[index]));
|
||||
this.fieldsInDeclarationOrder = DescriptorUtil.ConvertAndMakeReadOnly<FieldDescriptorProto, FieldDescriptor>(proto.Field, delegate(FieldDescriptorProto field, int index)
|
||||
{
|
||||
FileDescriptor file2 = file;
|
||||
MessageDescriptor <>4__this2 = <>4__this;
|
||||
GeneratedClrTypeInfo generatedCodeInfo4 = generatedCodeInfo;
|
||||
return new FieldDescriptor(field, file2, <>4__this2, index, (generatedCodeInfo4 != null) ? generatedCodeInfo4.PropertyNames[index] : null);
|
||||
});
|
||||
this.fieldsInNumberOrder = new ReadOnlyCollection<FieldDescriptor>(this.fieldsInDeclarationOrder.OrderBy((FieldDescriptor field) => field.FieldNumber).ToArray<FieldDescriptor>());
|
||||
this.jsonFieldMap = MessageDescriptor.CreateJsonFieldMap(this.fieldsInNumberOrder);
|
||||
file.DescriptorPool.AddSymbol(this);
|
||||
this.Fields = new MessageDescriptor.FieldCollection(this);
|
||||
}
|
||||
|
||||
// Token: 0x060005C4 RID: 1476 RVA: 0x000146D8 File Offset: 0x000128D8
|
||||
private static ReadOnlyDictionary<string, FieldDescriptor> CreateJsonFieldMap(IList<FieldDescriptor> fields)
|
||||
{
|
||||
Dictionary<string, FieldDescriptor> dictionary = new Dictionary<string, FieldDescriptor>();
|
||||
foreach (FieldDescriptor fieldDescriptor in fields)
|
||||
{
|
||||
dictionary[fieldDescriptor.Name] = fieldDescriptor;
|
||||
dictionary[fieldDescriptor.JsonName] = fieldDescriptor;
|
||||
}
|
||||
return new ReadOnlyDictionary<string, FieldDescriptor>(dictionary);
|
||||
}
|
||||
|
||||
// Token: 0x17000196 RID: 406
|
||||
// (get) Token: 0x060005C5 RID: 1477 RVA: 0x00014740 File Offset: 0x00012940
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Proto.Name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000197 RID: 407
|
||||
// (get) Token: 0x060005C6 RID: 1478 RVA: 0x0001474D File Offset: 0x0001294D
|
||||
internal DescriptorProto Proto { get; }
|
||||
|
||||
// Token: 0x17000198 RID: 408
|
||||
// (get) Token: 0x060005C7 RID: 1479 RVA: 0x00014755 File Offset: 0x00012955
|
||||
public Type ClrType { get; }
|
||||
|
||||
// Token: 0x17000199 RID: 409
|
||||
// (get) Token: 0x060005C8 RID: 1480 RVA: 0x0001475D File Offset: 0x0001295D
|
||||
public MessageParser Parser { get; }
|
||||
|
||||
// Token: 0x1700019A RID: 410
|
||||
// (get) Token: 0x060005C9 RID: 1481 RVA: 0x00014765 File Offset: 0x00012965
|
||||
internal bool IsWellKnownType
|
||||
{
|
||||
get
|
||||
{
|
||||
return base.File.Package == "google.protobuf" && MessageDescriptor.WellKnownTypeNames.Contains(base.File.Name);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700019B RID: 411
|
||||
// (get) Token: 0x060005CA RID: 1482 RVA: 0x00014795 File Offset: 0x00012995
|
||||
internal bool IsWrapperType
|
||||
{
|
||||
get
|
||||
{
|
||||
return base.File.Package == "google.protobuf" && base.File.Name == "google/protobuf/wrappers.proto";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700019C RID: 412
|
||||
// (get) Token: 0x060005CB RID: 1483 RVA: 0x000147C5 File Offset: 0x000129C5
|
||||
public MessageDescriptor ContainingType { get; }
|
||||
|
||||
// Token: 0x1700019D RID: 413
|
||||
// (get) Token: 0x060005CC RID: 1484 RVA: 0x000147CD File Offset: 0x000129CD
|
||||
public MessageDescriptor.FieldCollection Fields { get; }
|
||||
|
||||
// Token: 0x1700019E RID: 414
|
||||
// (get) Token: 0x060005CD RID: 1485 RVA: 0x000147D5 File Offset: 0x000129D5
|
||||
public IList<MessageDescriptor> NestedTypes { get; }
|
||||
|
||||
// Token: 0x1700019F RID: 415
|
||||
// (get) Token: 0x060005CE RID: 1486 RVA: 0x000147DD File Offset: 0x000129DD
|
||||
public IList<EnumDescriptor> EnumTypes { get; }
|
||||
|
||||
// Token: 0x170001A0 RID: 416
|
||||
// (get) Token: 0x060005CF RID: 1487 RVA: 0x000147E5 File Offset: 0x000129E5
|
||||
public IList<OneofDescriptor> Oneofs { get; }
|
||||
|
||||
// Token: 0x060005D0 RID: 1488 RVA: 0x000147ED File Offset: 0x000129ED
|
||||
public FieldDescriptor FindFieldByName(string name)
|
||||
{
|
||||
return base.File.DescriptorPool.FindSymbol<FieldDescriptor>(base.FullName + "." + name);
|
||||
}
|
||||
|
||||
// Token: 0x060005D1 RID: 1489 RVA: 0x00014810 File Offset: 0x00012A10
|
||||
public FieldDescriptor FindFieldByNumber(int number)
|
||||
{
|
||||
return base.File.DescriptorPool.FindFieldByNumber(this, number);
|
||||
}
|
||||
|
||||
// Token: 0x060005D2 RID: 1490 RVA: 0x00014824 File Offset: 0x00012A24
|
||||
public T FindDescriptor<T>(string name) where T : class, IDescriptor
|
||||
{
|
||||
return base.File.DescriptorPool.FindSymbol<T>(base.FullName + "." + name);
|
||||
}
|
||||
|
||||
// Token: 0x060005D3 RID: 1491 RVA: 0x00014848 File Offset: 0x00012A48
|
||||
internal void CrossLink()
|
||||
{
|
||||
foreach (MessageDescriptor messageDescriptor in this.NestedTypes)
|
||||
{
|
||||
messageDescriptor.CrossLink();
|
||||
}
|
||||
foreach (FieldDescriptor fieldDescriptor in this.fieldsInDeclarationOrder)
|
||||
{
|
||||
fieldDescriptor.CrossLink();
|
||||
}
|
||||
foreach (OneofDescriptor oneofDescriptor in this.Oneofs)
|
||||
{
|
||||
oneofDescriptor.CrossLink();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000244 RID: 580
|
||||
private static readonly HashSet<string> WellKnownTypeNames = new HashSet<string> { "google/protobuf/any.proto", "google/protobuf/api.proto", "google/protobuf/duration.proto", "google/protobuf/empty.proto", "google/protobuf/wrappers.proto", "google/protobuf/timestamp.proto", "google/protobuf/field_mask.proto", "google/protobuf/source_context.proto", "google/protobuf/struct.proto", "google/protobuf/type.proto" };
|
||||
|
||||
// Token: 0x04000245 RID: 581
|
||||
private readonly IList<FieldDescriptor> fieldsInDeclarationOrder;
|
||||
|
||||
// Token: 0x04000246 RID: 582
|
||||
private readonly IList<FieldDescriptor> fieldsInNumberOrder;
|
||||
|
||||
// Token: 0x04000247 RID: 583
|
||||
private readonly IDictionary<string, FieldDescriptor> jsonFieldMap;
|
||||
|
||||
// Token: 0x020000C1 RID: 193
|
||||
public sealed class FieldCollection
|
||||
{
|
||||
// Token: 0x0600076E RID: 1902 RVA: 0x000176C7 File Offset: 0x000158C7
|
||||
internal FieldCollection(MessageDescriptor messageDescriptor)
|
||||
{
|
||||
this.messageDescriptor = messageDescriptor;
|
||||
}
|
||||
|
||||
// Token: 0x0600076F RID: 1903 RVA: 0x000176D6 File Offset: 0x000158D6
|
||||
public IList<FieldDescriptor> InDeclarationOrder()
|
||||
{
|
||||
return this.messageDescriptor.fieldsInDeclarationOrder;
|
||||
}
|
||||
|
||||
// Token: 0x06000770 RID: 1904 RVA: 0x000176E3 File Offset: 0x000158E3
|
||||
public IList<FieldDescriptor> InFieldNumberOrder()
|
||||
{
|
||||
return this.messageDescriptor.fieldsInNumberOrder;
|
||||
}
|
||||
|
||||
// Token: 0x06000771 RID: 1905 RVA: 0x000176F0 File Offset: 0x000158F0
|
||||
internal IDictionary<string, FieldDescriptor> ByJsonName()
|
||||
{
|
||||
return this.messageDescriptor.jsonFieldMap;
|
||||
}
|
||||
|
||||
// Token: 0x170001D2 RID: 466
|
||||
public FieldDescriptor this[int number]
|
||||
{
|
||||
get
|
||||
{
|
||||
FieldDescriptor fieldDescriptor = this.messageDescriptor.FindFieldByNumber(number);
|
||||
if (fieldDescriptor == null)
|
||||
{
|
||||
throw new KeyNotFoundException("No such field number");
|
||||
}
|
||||
return fieldDescriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001D3 RID: 467
|
||||
public FieldDescriptor this[string name]
|
||||
{
|
||||
get
|
||||
{
|
||||
FieldDescriptor fieldDescriptor = this.messageDescriptor.FindFieldByName(name);
|
||||
if (fieldDescriptor == null)
|
||||
{
|
||||
throw new KeyNotFoundException("No such field name");
|
||||
}
|
||||
return fieldDescriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040002F7 RID: 759
|
||||
private readonly MessageDescriptor messageDescriptor;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,344 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200004B RID: 75
|
||||
internal sealed class MessageOptions : IMessage<MessageOptions>, IMessage, IEquatable<MessageOptions>, IDeepCloneable<MessageOptions>
|
||||
{
|
||||
// Token: 0x17000125 RID: 293
|
||||
// (get) Token: 0x06000494 RID: 1172 RVA: 0x000117B3 File Offset: 0x0000F9B3
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<MessageOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return MessageOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000126 RID: 294
|
||||
// (get) Token: 0x06000495 RID: 1173 RVA: 0x000117BA File Offset: 0x0000F9BA
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[10];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000127 RID: 295
|
||||
// (get) Token: 0x06000496 RID: 1174 RVA: 0x000117CD File Offset: 0x0000F9CD
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return MessageOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000497 RID: 1175 RVA: 0x000117D4 File Offset: 0x0000F9D4
|
||||
[DebuggerNonUserCode]
|
||||
public MessageOptions()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000498 RID: 1176 RVA: 0x000117E8 File Offset: 0x0000F9E8
|
||||
[DebuggerNonUserCode]
|
||||
public MessageOptions(MessageOptions other)
|
||||
: this()
|
||||
{
|
||||
this.messageSetWireFormat_ = other.messageSetWireFormat_;
|
||||
this.noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
|
||||
this.deprecated_ = other.deprecated_;
|
||||
this.mapEntry_ = other.mapEntry_;
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x06000499 RID: 1177 RVA: 0x0001183C File Offset: 0x0000FA3C
|
||||
[DebuggerNonUserCode]
|
||||
public MessageOptions Clone()
|
||||
{
|
||||
return new MessageOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000128 RID: 296
|
||||
// (get) Token: 0x0600049A RID: 1178 RVA: 0x00011844 File Offset: 0x0000FA44
|
||||
// (set) Token: 0x0600049B RID: 1179 RVA: 0x0001184C File Offset: 0x0000FA4C
|
||||
[DebuggerNonUserCode]
|
||||
public bool MessageSetWireFormat
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.messageSetWireFormat_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.messageSetWireFormat_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000129 RID: 297
|
||||
// (get) Token: 0x0600049C RID: 1180 RVA: 0x00011855 File Offset: 0x0000FA55
|
||||
// (set) Token: 0x0600049D RID: 1181 RVA: 0x0001185D File Offset: 0x0000FA5D
|
||||
[DebuggerNonUserCode]
|
||||
public bool NoStandardDescriptorAccessor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.noStandardDescriptorAccessor_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.noStandardDescriptorAccessor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700012A RID: 298
|
||||
// (get) Token: 0x0600049E RID: 1182 RVA: 0x00011866 File Offset: 0x0000FA66
|
||||
// (set) Token: 0x0600049F RID: 1183 RVA: 0x0001186E File Offset: 0x0000FA6E
|
||||
[DebuggerNonUserCode]
|
||||
public bool Deprecated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.deprecated_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.deprecated_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700012B RID: 299
|
||||
// (get) Token: 0x060004A0 RID: 1184 RVA: 0x00011877 File Offset: 0x0000FA77
|
||||
// (set) Token: 0x060004A1 RID: 1185 RVA: 0x0001187F File Offset: 0x0000FA7F
|
||||
[DebuggerNonUserCode]
|
||||
public bool MapEntry
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.mapEntry_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.mapEntry_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700012C RID: 300
|
||||
// (get) Token: 0x060004A2 RID: 1186 RVA: 0x00011888 File Offset: 0x0000FA88
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004A3 RID: 1187 RVA: 0x00011890 File Offset: 0x0000FA90
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as MessageOptions);
|
||||
}
|
||||
|
||||
// Token: 0x060004A4 RID: 1188 RVA: 0x000118A0 File Offset: 0x0000FAA0
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(MessageOptions other)
|
||||
{
|
||||
return other != null && (other == this || (this.MessageSetWireFormat == other.MessageSetWireFormat && this.NoStandardDescriptorAccessor == other.NoStandardDescriptorAccessor && this.Deprecated == other.Deprecated && this.MapEntry == other.MapEntry && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
||||
}
|
||||
|
||||
// Token: 0x060004A5 RID: 1189 RVA: 0x00011910 File Offset: 0x0000FB10
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.MessageSetWireFormat)
|
||||
{
|
||||
num ^= this.MessageSetWireFormat.GetHashCode();
|
||||
}
|
||||
if (this.NoStandardDescriptorAccessor)
|
||||
{
|
||||
num ^= this.NoStandardDescriptorAccessor.GetHashCode();
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num ^= this.Deprecated.GetHashCode();
|
||||
}
|
||||
if (this.MapEntry)
|
||||
{
|
||||
num ^= this.MapEntry.GetHashCode();
|
||||
}
|
||||
return num ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060004A6 RID: 1190 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060004A7 RID: 1191 RVA: 0x00011994 File Offset: 0x0000FB94
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.MessageSetWireFormat)
|
||||
{
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(this.MessageSetWireFormat);
|
||||
}
|
||||
if (this.NoStandardDescriptorAccessor)
|
||||
{
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(this.NoStandardDescriptorAccessor);
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(this.Deprecated);
|
||||
}
|
||||
if (this.MapEntry)
|
||||
{
|
||||
output.WriteRawTag(56);
|
||||
output.WriteBool(this.MapEntry);
|
||||
}
|
||||
this.uninterpretedOption_.WriteTo(output, MessageOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004A8 RID: 1192 RVA: 0x00011A24 File Offset: 0x0000FC24
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.MessageSetWireFormat)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.NoStandardDescriptorAccessor)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.MapEntry)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
return num + this.uninterpretedOption_.CalculateSize(MessageOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004A9 RID: 1193 RVA: 0x00011A78 File Offset: 0x0000FC78
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(MessageOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.MessageSetWireFormat)
|
||||
{
|
||||
this.MessageSetWireFormat = other.MessageSetWireFormat;
|
||||
}
|
||||
if (other.NoStandardDescriptorAccessor)
|
||||
{
|
||||
this.NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
|
||||
}
|
||||
if (other.Deprecated)
|
||||
{
|
||||
this.Deprecated = other.Deprecated;
|
||||
}
|
||||
if (other.MapEntry)
|
||||
{
|
||||
this.MapEntry = other.MapEntry;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x060004AA RID: 1194 RVA: 0x00011AEC File Offset: 0x0000FCEC
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 16U)
|
||||
{
|
||||
if (num == 8U)
|
||||
{
|
||||
this.MessageSetWireFormat = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 16U)
|
||||
{
|
||||
this.NoStandardDescriptorAccessor = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 24U)
|
||||
{
|
||||
this.Deprecated = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 56U)
|
||||
{
|
||||
this.MapEntry = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 7994U)
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, MessageOptions._repeated_uninterpretedOption_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001B4 RID: 436
|
||||
private static readonly MessageParser<MessageOptions> _parser = new MessageParser<MessageOptions>(() => new MessageOptions());
|
||||
|
||||
// Token: 0x040001B5 RID: 437
|
||||
public const int MessageSetWireFormatFieldNumber = 1;
|
||||
|
||||
// Token: 0x040001B6 RID: 438
|
||||
private bool messageSetWireFormat_;
|
||||
|
||||
// Token: 0x040001B7 RID: 439
|
||||
public const int NoStandardDescriptorAccessorFieldNumber = 2;
|
||||
|
||||
// Token: 0x040001B8 RID: 440
|
||||
private bool noStandardDescriptorAccessor_;
|
||||
|
||||
// Token: 0x040001B9 RID: 441
|
||||
public const int DeprecatedFieldNumber = 3;
|
||||
|
||||
// Token: 0x040001BA RID: 442
|
||||
private bool deprecated_;
|
||||
|
||||
// Token: 0x040001BB RID: 443
|
||||
public const int MapEntryFieldNumber = 7;
|
||||
|
||||
// Token: 0x040001BC RID: 444
|
||||
private bool mapEntry_;
|
||||
|
||||
// Token: 0x040001BD RID: 445
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001BE RID: 446
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001BF RID: 447
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000064 RID: 100
|
||||
public sealed class MethodDescriptor : DescriptorBase
|
||||
{
|
||||
// Token: 0x170001A1 RID: 417
|
||||
// (get) Token: 0x060005D5 RID: 1493 RVA: 0x00014993 File Offset: 0x00012B93
|
||||
public ServiceDescriptor Service
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.service;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001A2 RID: 418
|
||||
// (get) Token: 0x060005D6 RID: 1494 RVA: 0x0001499B File Offset: 0x00012B9B
|
||||
public MessageDescriptor InputType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.inputType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001A3 RID: 419
|
||||
// (get) Token: 0x060005D7 RID: 1495 RVA: 0x000149A3 File Offset: 0x00012BA3
|
||||
public MessageDescriptor OutputType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.outputType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001A4 RID: 420
|
||||
// (get) Token: 0x060005D8 RID: 1496 RVA: 0x000149AB File Offset: 0x00012BAB
|
||||
public bool IsClientStreaming
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto.ClientStreaming;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001A5 RID: 421
|
||||
// (get) Token: 0x060005D9 RID: 1497 RVA: 0x000149B8 File Offset: 0x00012BB8
|
||||
public bool IsServerStreaming
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto.ServerStreaming;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060005DA RID: 1498 RVA: 0x000149C5 File Offset: 0x00012BC5
|
||||
internal MethodDescriptor(MethodDescriptorProto proto, FileDescriptor file, ServiceDescriptor parent, int index)
|
||||
: base(file, parent.FullName + "." + proto.Name, index)
|
||||
{
|
||||
this.proto = proto;
|
||||
this.service = parent;
|
||||
file.DescriptorPool.AddSymbol(this);
|
||||
}
|
||||
|
||||
// Token: 0x170001A6 RID: 422
|
||||
// (get) Token: 0x060005DB RID: 1499 RVA: 0x00014A00 File Offset: 0x00012C00
|
||||
internal MethodDescriptorProto Proto
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001A7 RID: 423
|
||||
// (get) Token: 0x060005DC RID: 1500 RVA: 0x00014A08 File Offset: 0x00012C08
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto.Name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060005DD RID: 1501 RVA: 0x00014A18 File Offset: 0x00012C18
|
||||
internal void CrossLink()
|
||||
{
|
||||
IDescriptor descriptor = base.File.DescriptorPool.LookupSymbol(this.Proto.InputType, this);
|
||||
if (!(descriptor is MessageDescriptor))
|
||||
{
|
||||
throw new DescriptorValidationException(this, "\"" + this.Proto.InputType + "\" is not a message type.");
|
||||
}
|
||||
this.inputType = (MessageDescriptor)descriptor;
|
||||
descriptor = base.File.DescriptorPool.LookupSymbol(this.Proto.OutputType, this);
|
||||
if (!(descriptor is MessageDescriptor))
|
||||
{
|
||||
throw new DescriptorValidationException(this, "\"" + this.Proto.OutputType + "\" is not a message type.");
|
||||
}
|
||||
this.outputType = (MessageDescriptor)descriptor;
|
||||
}
|
||||
|
||||
// Token: 0x04000250 RID: 592
|
||||
private readonly MethodDescriptorProto proto;
|
||||
|
||||
// Token: 0x04000251 RID: 593
|
||||
private readonly ServiceDescriptor service;
|
||||
|
||||
// Token: 0x04000252 RID: 594
|
||||
private MessageDescriptor inputType;
|
||||
|
||||
// Token: 0x04000253 RID: 595
|
||||
private MessageDescriptor outputType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,413 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000049 RID: 73
|
||||
internal sealed class MethodDescriptorProto : IMessage<MethodDescriptorProto>, IMessage, IEquatable<MethodDescriptorProto>, IDeepCloneable<MethodDescriptorProto>
|
||||
{
|
||||
// Token: 0x1700010A RID: 266
|
||||
// (get) Token: 0x0600044D RID: 1101 RVA: 0x00010699 File Offset: 0x0000E899
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<MethodDescriptorProto> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return MethodDescriptorProto._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700010B RID: 267
|
||||
// (get) Token: 0x0600044E RID: 1102 RVA: 0x000106A0 File Offset: 0x0000E8A0
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[8];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700010C RID: 268
|
||||
// (get) Token: 0x0600044F RID: 1103 RVA: 0x000106B2 File Offset: 0x0000E8B2
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return MethodDescriptorProto.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000450 RID: 1104 RVA: 0x000106B9 File Offset: 0x0000E8B9
|
||||
[DebuggerNonUserCode]
|
||||
public MethodDescriptorProto()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000451 RID: 1105 RVA: 0x000106E4 File Offset: 0x0000E8E4
|
||||
[DebuggerNonUserCode]
|
||||
public MethodDescriptorProto(MethodDescriptorProto other)
|
||||
: this()
|
||||
{
|
||||
this.name_ = other.name_;
|
||||
this.inputType_ = other.inputType_;
|
||||
this.outputType_ = other.outputType_;
|
||||
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
|
||||
this.clientStreaming_ = other.clientStreaming_;
|
||||
this.serverStreaming_ = other.serverStreaming_;
|
||||
}
|
||||
|
||||
// Token: 0x06000452 RID: 1106 RVA: 0x0001074F File Offset: 0x0000E94F
|
||||
[DebuggerNonUserCode]
|
||||
public MethodDescriptorProto Clone()
|
||||
{
|
||||
return new MethodDescriptorProto(this);
|
||||
}
|
||||
|
||||
// Token: 0x1700010D RID: 269
|
||||
// (get) Token: 0x06000453 RID: 1107 RVA: 0x00010757 File Offset: 0x0000E957
|
||||
// (set) Token: 0x06000454 RID: 1108 RVA: 0x0001075F File Offset: 0x0000E95F
|
||||
[DebuggerNonUserCode]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700010E RID: 270
|
||||
// (get) Token: 0x06000455 RID: 1109 RVA: 0x00010772 File Offset: 0x0000E972
|
||||
// (set) Token: 0x06000456 RID: 1110 RVA: 0x0001077A File Offset: 0x0000E97A
|
||||
[DebuggerNonUserCode]
|
||||
public string InputType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.inputType_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.inputType_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700010F RID: 271
|
||||
// (get) Token: 0x06000457 RID: 1111 RVA: 0x0001078D File Offset: 0x0000E98D
|
||||
// (set) Token: 0x06000458 RID: 1112 RVA: 0x00010795 File Offset: 0x0000E995
|
||||
[DebuggerNonUserCode]
|
||||
public string OutputType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.outputType_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.outputType_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000110 RID: 272
|
||||
// (get) Token: 0x06000459 RID: 1113 RVA: 0x000107A8 File Offset: 0x0000E9A8
|
||||
// (set) Token: 0x0600045A RID: 1114 RVA: 0x000107B0 File Offset: 0x0000E9B0
|
||||
[DebuggerNonUserCode]
|
||||
public MethodOptions Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.options_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.options_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000111 RID: 273
|
||||
// (get) Token: 0x0600045B RID: 1115 RVA: 0x000107B9 File Offset: 0x0000E9B9
|
||||
// (set) Token: 0x0600045C RID: 1116 RVA: 0x000107C1 File Offset: 0x0000E9C1
|
||||
[DebuggerNonUserCode]
|
||||
public bool ClientStreaming
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.clientStreaming_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.clientStreaming_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000112 RID: 274
|
||||
// (get) Token: 0x0600045D RID: 1117 RVA: 0x000107CA File Offset: 0x0000E9CA
|
||||
// (set) Token: 0x0600045E RID: 1118 RVA: 0x000107D2 File Offset: 0x0000E9D2
|
||||
[DebuggerNonUserCode]
|
||||
public bool ServerStreaming
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.serverStreaming_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.serverStreaming_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600045F RID: 1119 RVA: 0x000107DB File Offset: 0x0000E9DB
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as MethodDescriptorProto);
|
||||
}
|
||||
|
||||
// Token: 0x06000460 RID: 1120 RVA: 0x000107EC File Offset: 0x0000E9EC
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(MethodDescriptorProto other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.Name != other.Name) && !(this.InputType != other.InputType) && !(this.OutputType != other.OutputType) && object.Equals(this.Options, other.Options) && this.ClientStreaming == other.ClientStreaming && this.ServerStreaming == other.ServerStreaming));
|
||||
}
|
||||
|
||||
// Token: 0x06000461 RID: 1121 RVA: 0x0001087C File Offset: 0x0000EA7C
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num ^= this.Name.GetHashCode();
|
||||
}
|
||||
if (this.InputType.Length != 0)
|
||||
{
|
||||
num ^= this.InputType.GetHashCode();
|
||||
}
|
||||
if (this.OutputType.Length != 0)
|
||||
{
|
||||
num ^= this.OutputType.GetHashCode();
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num ^= this.Options.GetHashCode();
|
||||
}
|
||||
if (this.ClientStreaming)
|
||||
{
|
||||
num ^= this.ClientStreaming.GetHashCode();
|
||||
}
|
||||
if (this.ServerStreaming)
|
||||
{
|
||||
num ^= this.ServerStreaming.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000462 RID: 1122 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x06000463 RID: 1123 RVA: 0x00010928 File Offset: 0x0000EB28
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.Name);
|
||||
}
|
||||
if (this.InputType.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(this.InputType);
|
||||
}
|
||||
if (this.OutputType.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(this.OutputType);
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(this.Options);
|
||||
}
|
||||
if (this.ClientStreaming)
|
||||
{
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(this.ClientStreaming);
|
||||
}
|
||||
if (this.ServerStreaming)
|
||||
{
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(this.ServerStreaming);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000464 RID: 1124 RVA: 0x000109EC File Offset: 0x0000EBEC
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
|
||||
}
|
||||
if (this.InputType.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.InputType);
|
||||
}
|
||||
if (this.OutputType.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.OutputType);
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
|
||||
}
|
||||
if (this.ClientStreaming)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.ServerStreaming)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000465 RID: 1125 RVA: 0x00010A84 File Offset: 0x0000EC84
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(MethodDescriptorProto other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0)
|
||||
{
|
||||
this.Name = other.Name;
|
||||
}
|
||||
if (other.InputType.Length != 0)
|
||||
{
|
||||
this.InputType = other.InputType;
|
||||
}
|
||||
if (other.OutputType.Length != 0)
|
||||
{
|
||||
this.OutputType = other.OutputType;
|
||||
}
|
||||
if (other.options_ != null)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new MethodOptions();
|
||||
}
|
||||
this.Options.MergeFrom(other.Options);
|
||||
}
|
||||
if (other.ClientStreaming)
|
||||
{
|
||||
this.ClientStreaming = other.ClientStreaming;
|
||||
}
|
||||
if (other.ServerStreaming)
|
||||
{
|
||||
this.ServerStreaming = other.ServerStreaming;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000466 RID: 1126 RVA: 0x00010B34 File Offset: 0x0000ED34
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 26U)
|
||||
{
|
||||
if (num == 10U)
|
||||
{
|
||||
this.Name = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 18U)
|
||||
{
|
||||
this.InputType = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 26U)
|
||||
{
|
||||
this.OutputType = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 34U)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new MethodOptions();
|
||||
}
|
||||
input.ReadMessage(this.options_);
|
||||
continue;
|
||||
}
|
||||
if (num == 40U)
|
||||
{
|
||||
this.ClientStreaming = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 48U)
|
||||
{
|
||||
this.ServerStreaming = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000187 RID: 391
|
||||
private static readonly MessageParser<MethodDescriptorProto> _parser = new MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
|
||||
|
||||
// Token: 0x04000188 RID: 392
|
||||
public const int NameFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000189 RID: 393
|
||||
private string name_ = "";
|
||||
|
||||
// Token: 0x0400018A RID: 394
|
||||
public const int InputTypeFieldNumber = 2;
|
||||
|
||||
// Token: 0x0400018B RID: 395
|
||||
private string inputType_ = "";
|
||||
|
||||
// Token: 0x0400018C RID: 396
|
||||
public const int OutputTypeFieldNumber = 3;
|
||||
|
||||
// Token: 0x0400018D RID: 397
|
||||
private string outputType_ = "";
|
||||
|
||||
// Token: 0x0400018E RID: 398
|
||||
public const int OptionsFieldNumber = 4;
|
||||
|
||||
// Token: 0x0400018F RID: 399
|
||||
private MethodOptions options_;
|
||||
|
||||
// Token: 0x04000190 RID: 400
|
||||
public const int ClientStreamingFieldNumber = 5;
|
||||
|
||||
// Token: 0x04000191 RID: 401
|
||||
private bool clientStreaming_;
|
||||
|
||||
// Token: 0x04000192 RID: 402
|
||||
public const int ServerStreamingFieldNumber = 6;
|
||||
|
||||
// Token: 0x04000193 RID: 403
|
||||
private bool serverStreaming_;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000051 RID: 81
|
||||
internal sealed class MethodOptions : IMessage<MethodOptions>, IMessage, IEquatable<MethodOptions>, IDeepCloneable<MethodOptions>
|
||||
{
|
||||
// Token: 0x1700014B RID: 331
|
||||
// (get) Token: 0x06000511 RID: 1297 RVA: 0x000128F4 File Offset: 0x00010AF4
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<MethodOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return MethodOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700014C RID: 332
|
||||
// (get) Token: 0x06000512 RID: 1298 RVA: 0x000128FB File Offset: 0x00010AFB
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[16];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700014D RID: 333
|
||||
// (get) Token: 0x06000513 RID: 1299 RVA: 0x0001290E File Offset: 0x00010B0E
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return MethodOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000514 RID: 1300 RVA: 0x00012915 File Offset: 0x00010B15
|
||||
[DebuggerNonUserCode]
|
||||
public MethodOptions()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000515 RID: 1301 RVA: 0x00012928 File Offset: 0x00010B28
|
||||
[DebuggerNonUserCode]
|
||||
public MethodOptions(MethodOptions other)
|
||||
: this()
|
||||
{
|
||||
this.deprecated_ = other.deprecated_;
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x06000516 RID: 1302 RVA: 0x0001294D File Offset: 0x00010B4D
|
||||
[DebuggerNonUserCode]
|
||||
public MethodOptions Clone()
|
||||
{
|
||||
return new MethodOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x1700014E RID: 334
|
||||
// (get) Token: 0x06000517 RID: 1303 RVA: 0x00012955 File Offset: 0x00010B55
|
||||
// (set) Token: 0x06000518 RID: 1304 RVA: 0x0001295D File Offset: 0x00010B5D
|
||||
[DebuggerNonUserCode]
|
||||
public bool Deprecated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.deprecated_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.deprecated_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700014F RID: 335
|
||||
// (get) Token: 0x06000519 RID: 1305 RVA: 0x00012966 File Offset: 0x00010B66
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600051A RID: 1306 RVA: 0x0001296E File Offset: 0x00010B6E
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as MethodOptions);
|
||||
}
|
||||
|
||||
// Token: 0x0600051B RID: 1307 RVA: 0x0001297C File Offset: 0x00010B7C
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(MethodOptions other)
|
||||
{
|
||||
return other != null && (other == this || (this.Deprecated == other.Deprecated && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
||||
}
|
||||
|
||||
// Token: 0x0600051C RID: 1308 RVA: 0x000129B0 File Offset: 0x00010BB0
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num ^= this.Deprecated.GetHashCode();
|
||||
}
|
||||
return num ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600051D RID: 1309 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600051E RID: 1310 RVA: 0x000129E7 File Offset: 0x00010BE7
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Deprecated)
|
||||
{
|
||||
output.WriteRawTag(136, 2);
|
||||
output.WriteBool(this.Deprecated);
|
||||
}
|
||||
this.uninterpretedOption_.WriteTo(output, MethodOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600051F RID: 1311 RVA: 0x00012A1C File Offset: 0x00010C1C
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
return num + this.uninterpretedOption_.CalculateSize(MethodOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x06000520 RID: 1312 RVA: 0x00012A4B File Offset: 0x00010C4B
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(MethodOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Deprecated)
|
||||
{
|
||||
this.Deprecated = other.Deprecated;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x06000521 RID: 1313 RVA: 0x00012A78 File Offset: 0x00010C78
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 264U)
|
||||
{
|
||||
if (num != 7994U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, MethodOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Deprecated = input.ReadBool();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001E8 RID: 488
|
||||
private static readonly MessageParser<MethodOptions> _parser = new MessageParser<MethodOptions>(() => new MethodOptions());
|
||||
|
||||
// Token: 0x040001E9 RID: 489
|
||||
public const int DeprecatedFieldNumber = 33;
|
||||
|
||||
// Token: 0x040001EA RID: 490
|
||||
private bool deprecated_;
|
||||
|
||||
// Token: 0x040001EB RID: 491
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001EC RID: 492
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001ED RID: 493
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000065 RID: 101
|
||||
public sealed class OneofAccessor
|
||||
{
|
||||
// Token: 0x060005DE RID: 1502 RVA: 0x00014ACC File Offset: 0x00012CCC
|
||||
internal OneofAccessor(PropertyInfo caseProperty, MethodInfo clearMethod, OneofDescriptor descriptor)
|
||||
{
|
||||
if (!caseProperty.CanRead)
|
||||
{
|
||||
throw new ArgumentException("Cannot read from property");
|
||||
}
|
||||
this.descriptor = descriptor;
|
||||
this.caseDelegate = ReflectionUtil.CreateFuncIMessageT<int>(caseProperty.GetGetMethod());
|
||||
this.descriptor = descriptor;
|
||||
this.clearDelegate = ReflectionUtil.CreateActionIMessage(clearMethod);
|
||||
}
|
||||
|
||||
// Token: 0x170001A8 RID: 424
|
||||
// (get) Token: 0x060005DF RID: 1503 RVA: 0x00014B1D File Offset: 0x00012D1D
|
||||
public OneofDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060005E0 RID: 1504 RVA: 0x00014B25 File Offset: 0x00012D25
|
||||
public void Clear(IMessage message)
|
||||
{
|
||||
this.clearDelegate(message);
|
||||
}
|
||||
|
||||
// Token: 0x060005E1 RID: 1505 RVA: 0x00014B34 File Offset: 0x00012D34
|
||||
public FieldDescriptor GetCaseFieldDescriptor(IMessage message)
|
||||
{
|
||||
int num = this.caseDelegate(message);
|
||||
if (num > 0)
|
||||
{
|
||||
return this.descriptor.ContainingType.FindFieldByNumber(num);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000254 RID: 596
|
||||
private readonly Func<IMessage, int> caseDelegate;
|
||||
|
||||
// Token: 0x04000255 RID: 597
|
||||
private readonly Action<IMessage> clearDelegate;
|
||||
|
||||
// Token: 0x04000256 RID: 598
|
||||
private OneofDescriptor descriptor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000066 RID: 102
|
||||
public sealed class OneofDescriptor : DescriptorBase
|
||||
{
|
||||
// Token: 0x060005E2 RID: 1506 RVA: 0x00014B65 File Offset: 0x00012D65
|
||||
internal OneofDescriptor(OneofDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, int index, string clrName)
|
||||
: base(file, file.ComputeFullName(parent, proto.Name), index)
|
||||
{
|
||||
this.proto = proto;
|
||||
this.containingType = parent;
|
||||
file.DescriptorPool.AddSymbol(this);
|
||||
this.accessor = this.CreateAccessor(clrName);
|
||||
}
|
||||
|
||||
// Token: 0x170001A9 RID: 425
|
||||
// (get) Token: 0x060005E3 RID: 1507 RVA: 0x00014BA5 File Offset: 0x00012DA5
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto.Name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001AA RID: 426
|
||||
// (get) Token: 0x060005E4 RID: 1508 RVA: 0x00014BB2 File Offset: 0x00012DB2
|
||||
public MessageDescriptor ContainingType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.containingType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001AB RID: 427
|
||||
// (get) Token: 0x060005E5 RID: 1509 RVA: 0x00014BBA File Offset: 0x00012DBA
|
||||
public IList<FieldDescriptor> Fields
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.fields;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001AC RID: 428
|
||||
// (get) Token: 0x060005E6 RID: 1510 RVA: 0x00014BC2 File Offset: 0x00012DC2
|
||||
public OneofAccessor Accessor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.accessor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060005E7 RID: 1511 RVA: 0x00014BCC File Offset: 0x00012DCC
|
||||
internal void CrossLink()
|
||||
{
|
||||
List<FieldDescriptor> list = new List<FieldDescriptor>();
|
||||
foreach (FieldDescriptor fieldDescriptor in this.ContainingType.Fields.InDeclarationOrder())
|
||||
{
|
||||
if (fieldDescriptor.ContainingOneof == this)
|
||||
{
|
||||
list.Add(fieldDescriptor);
|
||||
}
|
||||
}
|
||||
this.fields = new ReadOnlyCollection<FieldDescriptor>(list);
|
||||
}
|
||||
|
||||
// Token: 0x060005E8 RID: 1512 RVA: 0x00014C40 File Offset: 0x00012E40
|
||||
private OneofAccessor CreateAccessor(string clrName)
|
||||
{
|
||||
PropertyInfo property = this.containingType.ClrType.GetProperty(clrName + "Case");
|
||||
if (property == null)
|
||||
{
|
||||
throw new DescriptorValidationException(this, string.Format("Property {0}Case not found in {1}", clrName, this.containingType.ClrType));
|
||||
}
|
||||
MethodInfo method = this.containingType.ClrType.GetMethod("Clear" + clrName);
|
||||
if (method == null)
|
||||
{
|
||||
throw new DescriptorValidationException(this, string.Format("Method Clear{0} not found in {1}", clrName, this.containingType.ClrType));
|
||||
}
|
||||
return new OneofAccessor(property, method, this);
|
||||
}
|
||||
|
||||
// Token: 0x04000257 RID: 599
|
||||
private readonly OneofDescriptorProto proto;
|
||||
|
||||
// Token: 0x04000258 RID: 600
|
||||
private MessageDescriptor containingType;
|
||||
|
||||
// Token: 0x04000259 RID: 601
|
||||
private IList<FieldDescriptor> fields;
|
||||
|
||||
// Token: 0x0400025A RID: 602
|
||||
private readonly OneofAccessor accessor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000045 RID: 69
|
||||
internal sealed class OneofDescriptorProto : IMessage<OneofDescriptorProto>, IMessage, IEquatable<OneofDescriptorProto>, IDeepCloneable<OneofDescriptorProto>
|
||||
{
|
||||
// Token: 0x170000F3 RID: 243
|
||||
// (get) Token: 0x060003FD RID: 1021 RVA: 0x0000FA85 File Offset: 0x0000DC85
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<OneofDescriptorProto> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return OneofDescriptorProto._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000F4 RID: 244
|
||||
// (get) Token: 0x060003FE RID: 1022 RVA: 0x0000FA8C File Offset: 0x0000DC8C
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[4];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000F5 RID: 245
|
||||
// (get) Token: 0x060003FF RID: 1023 RVA: 0x0000FA9E File Offset: 0x0000DC9E
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return OneofDescriptorProto.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000400 RID: 1024 RVA: 0x0000FAA5 File Offset: 0x0000DCA5
|
||||
[DebuggerNonUserCode]
|
||||
public OneofDescriptorProto()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000401 RID: 1025 RVA: 0x0000FAB8 File Offset: 0x0000DCB8
|
||||
[DebuggerNonUserCode]
|
||||
public OneofDescriptorProto(OneofDescriptorProto other)
|
||||
: this()
|
||||
{
|
||||
this.name_ = other.name_;
|
||||
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
|
||||
}
|
||||
|
||||
// Token: 0x06000402 RID: 1026 RVA: 0x0000FAE8 File Offset: 0x0000DCE8
|
||||
[DebuggerNonUserCode]
|
||||
public OneofDescriptorProto Clone()
|
||||
{
|
||||
return new OneofDescriptorProto(this);
|
||||
}
|
||||
|
||||
// Token: 0x170000F6 RID: 246
|
||||
// (get) Token: 0x06000403 RID: 1027 RVA: 0x0000FAF0 File Offset: 0x0000DCF0
|
||||
// (set) Token: 0x06000404 RID: 1028 RVA: 0x0000FAF8 File Offset: 0x0000DCF8
|
||||
[DebuggerNonUserCode]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170000F7 RID: 247
|
||||
// (get) Token: 0x06000405 RID: 1029 RVA: 0x0000FB0B File Offset: 0x0000DD0B
|
||||
// (set) Token: 0x06000406 RID: 1030 RVA: 0x0000FB13 File Offset: 0x0000DD13
|
||||
[DebuggerNonUserCode]
|
||||
public OneofOptions Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.options_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.options_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000407 RID: 1031 RVA: 0x0000FB1C File Offset: 0x0000DD1C
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as OneofDescriptorProto);
|
||||
}
|
||||
|
||||
// Token: 0x06000408 RID: 1032 RVA: 0x0000FB2A File Offset: 0x0000DD2A
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(OneofDescriptorProto other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.Name != other.Name) && object.Equals(this.Options, other.Options)));
|
||||
}
|
||||
|
||||
// Token: 0x06000409 RID: 1033 RVA: 0x0000FB64 File Offset: 0x0000DD64
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num ^= this.Name.GetHashCode();
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num ^= this.Options.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600040A RID: 1034 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600040B RID: 1035 RVA: 0x0000FBA5 File Offset: 0x0000DDA5
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.Name);
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(this.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600040C RID: 1036 RVA: 0x0000FBE4 File Offset: 0x0000DDE4
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
|
||||
}
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600040D RID: 1037 RVA: 0x0000FC2C File Offset: 0x0000DE2C
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(OneofDescriptorProto other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0)
|
||||
{
|
||||
this.Name = other.Name;
|
||||
}
|
||||
if (other.options_ != null)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new OneofOptions();
|
||||
}
|
||||
this.Options.MergeFrom(other.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600040E RID: 1038 RVA: 0x0000FC84 File Offset: 0x0000DE84
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
if (num != 18U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new OneofOptions();
|
||||
}
|
||||
input.ReadMessage(this.options_);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = input.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400016B RID: 363
|
||||
private static readonly MessageParser<OneofDescriptorProto> _parser = new MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
|
||||
|
||||
// Token: 0x0400016C RID: 364
|
||||
public const int NameFieldNumber = 1;
|
||||
|
||||
// Token: 0x0400016D RID: 365
|
||||
private string name_ = "";
|
||||
|
||||
// Token: 0x0400016E RID: 366
|
||||
public const int OptionsFieldNumber = 2;
|
||||
|
||||
// Token: 0x0400016F RID: 367
|
||||
private OneofOptions options_;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200004D RID: 77
|
||||
internal sealed class OneofOptions : IMessage<OneofOptions>, IMessage, IEquatable<OneofOptions>, IDeepCloneable<OneofOptions>
|
||||
{
|
||||
// Token: 0x17000137 RID: 311
|
||||
// (get) Token: 0x060004C9 RID: 1225 RVA: 0x00012103 File Offset: 0x00010303
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<OneofOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return OneofOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000138 RID: 312
|
||||
// (get) Token: 0x060004CA RID: 1226 RVA: 0x0001210A File Offset: 0x0001030A
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[12];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000139 RID: 313
|
||||
// (get) Token: 0x060004CB RID: 1227 RVA: 0x0001211D File Offset: 0x0001031D
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return OneofOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004CC RID: 1228 RVA: 0x00012124 File Offset: 0x00010324
|
||||
[DebuggerNonUserCode]
|
||||
public OneofOptions()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060004CD RID: 1229 RVA: 0x00012137 File Offset: 0x00010337
|
||||
[DebuggerNonUserCode]
|
||||
public OneofOptions(OneofOptions other)
|
||||
: this()
|
||||
{
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x060004CE RID: 1230 RVA: 0x00012150 File Offset: 0x00010350
|
||||
[DebuggerNonUserCode]
|
||||
public OneofOptions Clone()
|
||||
{
|
||||
return new OneofOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x1700013A RID: 314
|
||||
// (get) Token: 0x060004CF RID: 1231 RVA: 0x00012158 File Offset: 0x00010358
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004D0 RID: 1232 RVA: 0x00012160 File Offset: 0x00010360
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as OneofOptions);
|
||||
}
|
||||
|
||||
// Token: 0x060004D1 RID: 1233 RVA: 0x0001216E File Offset: 0x0001036E
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(OneofOptions other)
|
||||
{
|
||||
return other != null && (other == this || this.uninterpretedOption_.Equals(other.uninterpretedOption_));
|
||||
}
|
||||
|
||||
// Token: 0x060004D2 RID: 1234 RVA: 0x00012191 File Offset: 0x00010391
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return 1 ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060004D3 RID: 1235 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060004D4 RID: 1236 RVA: 0x000121A0 File Offset: 0x000103A0
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.uninterpretedOption_.WriteTo(output, OneofOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004D5 RID: 1237 RVA: 0x000121B3 File Offset: 0x000103B3
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
return 0 + this.uninterpretedOption_.CalculateSize(OneofOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004D6 RID: 1238 RVA: 0x000121C7 File Offset: 0x000103C7
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(OneofOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x060004D7 RID: 1239 RVA: 0x000121E0 File Offset: 0x000103E0
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 7994U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, OneofOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001D0 RID: 464
|
||||
private static readonly MessageParser<OneofOptions> _parser = new MessageParser<OneofOptions>(() => new OneofOptions());
|
||||
|
||||
// Token: 0x040001D1 RID: 465
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001D2 RID: 466
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001D3 RID: 467
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000067 RID: 103
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class OriginalNameAttribute : Attribute
|
||||
{
|
||||
// Token: 0x170001AD RID: 429
|
||||
// (get) Token: 0x060005E9 RID: 1513 RVA: 0x00014CCB File Offset: 0x00012ECB
|
||||
// (set) Token: 0x060005EA RID: 1514 RVA: 0x00014CD3 File Offset: 0x00012ED3
|
||||
public string Name { get; set; }
|
||||
|
||||
// Token: 0x060005EB RID: 1515 RVA: 0x00014CDC File Offset: 0x00012EDC
|
||||
public OriginalNameAttribute(string name)
|
||||
{
|
||||
this.Name = ProtoPreconditions.CheckNotNull<string>(name, "name");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000068 RID: 104
|
||||
internal sealed class PackageDescriptor : IDescriptor
|
||||
{
|
||||
// Token: 0x060005EC RID: 1516 RVA: 0x00014CF5 File Offset: 0x00012EF5
|
||||
internal PackageDescriptor(string name, string fullName, FileDescriptor file)
|
||||
{
|
||||
this.file = file;
|
||||
this.fullName = fullName;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
// Token: 0x170001AE RID: 430
|
||||
// (get) Token: 0x060005ED RID: 1517 RVA: 0x00014D12 File Offset: 0x00012F12
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001AF RID: 431
|
||||
// (get) Token: 0x060005EE RID: 1518 RVA: 0x00014D1A File Offset: 0x00012F1A
|
||||
public string FullName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.fullName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001B0 RID: 432
|
||||
// (get) Token: 0x060005EF RID: 1519 RVA: 0x00014D22 File Offset: 0x00012F22
|
||||
public FileDescriptor File
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.file;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400025C RID: 604
|
||||
private readonly string name;
|
||||
|
||||
// Token: 0x0400025D RID: 605
|
||||
private readonly string fullName;
|
||||
|
||||
// Token: 0x0400025E RID: 606
|
||||
private readonly FileDescriptor file;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000069 RID: 105
|
||||
internal static class ReflectionUtil
|
||||
{
|
||||
// Token: 0x060005F0 RID: 1520 RVA: 0x00014D2C File Offset: 0x00012F2C
|
||||
internal static Func<IMessage, object> CreateFuncIMessageObject(MethodInfo method)
|
||||
{
|
||||
ParameterExpression parameterExpression;
|
||||
return Expression.Lambda<Func<IMessage, object>>(Expression.Convert(Expression.Call(Expression.Convert(parameterExpression, method.DeclaringType), method), typeof(object)), new ParameterExpression[] { parameterExpression }).Compile();
|
||||
}
|
||||
|
||||
// Token: 0x060005F1 RID: 1521 RVA: 0x00014D84 File Offset: 0x00012F84
|
||||
internal static Func<IMessage, T> CreateFuncIMessageT<T>(MethodInfo method)
|
||||
{
|
||||
ParameterExpression parameterExpression;
|
||||
return Expression.Lambda<Func<IMessage, T>>(Expression.Convert(Expression.Call(Expression.Convert(parameterExpression, method.DeclaringType), method), typeof(T)), new ParameterExpression[] { parameterExpression }).Compile();
|
||||
}
|
||||
|
||||
// Token: 0x060005F2 RID: 1522 RVA: 0x00014DDC File Offset: 0x00012FDC
|
||||
internal static Action<IMessage, object> CreateActionIMessageObject(MethodInfo method)
|
||||
{
|
||||
ParameterExpression parameterExpression = Expression.Parameter(typeof(IMessage), "target");
|
||||
ParameterExpression parameterExpression2 = Expression.Parameter(typeof(object), "arg");
|
||||
Expression expression = Expression.Convert(parameterExpression, method.DeclaringType);
|
||||
Expression expression2 = Expression.Convert(parameterExpression2, method.GetParameters()[0].ParameterType);
|
||||
return Expression.Lambda<Action<IMessage, object>>(Expression.Call(expression, method, new Expression[] { expression2 }), new ParameterExpression[] { parameterExpression, parameterExpression2 }).Compile();
|
||||
}
|
||||
|
||||
// Token: 0x060005F3 RID: 1523 RVA: 0x00014E5C File Offset: 0x0001305C
|
||||
internal static Action<IMessage> CreateActionIMessage(MethodInfo method)
|
||||
{
|
||||
ParameterExpression parameterExpression;
|
||||
return Expression.Lambda<Action<IMessage>>(Expression.Call(Expression.Convert(parameterExpression, method.DeclaringType), method), new ParameterExpression[] { parameterExpression }).Compile();
|
||||
}
|
||||
|
||||
// Token: 0x0400025F RID: 607
|
||||
internal static readonly Type[] EmptyTypes = new Type[0];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200006A RID: 106
|
||||
internal sealed class RepeatedFieldAccessor : FieldAccessorBase
|
||||
{
|
||||
// Token: 0x060005F5 RID: 1525 RVA: 0x0001454A File Offset: 0x0001274A
|
||||
internal RepeatedFieldAccessor(PropertyInfo property, FieldDescriptor descriptor)
|
||||
: base(property, descriptor)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060005F6 RID: 1526 RVA: 0x00014EB1 File Offset: 0x000130B1
|
||||
public override void Clear(IMessage message)
|
||||
{
|
||||
((IList)base.GetValue(message)).Clear();
|
||||
}
|
||||
|
||||
// Token: 0x060005F7 RID: 1527 RVA: 0x00014EC4 File Offset: 0x000130C4
|
||||
public override void SetValue(IMessage message, object value)
|
||||
{
|
||||
throw new InvalidOperationException("SetValue is not implemented for repeated fields");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200006B RID: 107
|
||||
public sealed class ServiceDescriptor : DescriptorBase
|
||||
{
|
||||
// Token: 0x060005F8 RID: 1528 RVA: 0x00014ED0 File Offset: 0x000130D0
|
||||
internal ServiceDescriptor(ServiceDescriptorProto proto, FileDescriptor file, int index)
|
||||
: base(file, file.ComputeFullName(null, proto.Name), index)
|
||||
{
|
||||
ServiceDescriptor <>4__this = this;
|
||||
this.proto = proto;
|
||||
this.methods = DescriptorUtil.ConvertAndMakeReadOnly<MethodDescriptorProto, MethodDescriptor>(proto.Method, (MethodDescriptorProto method, int i) => new MethodDescriptor(method, file, <>4__this, i));
|
||||
file.DescriptorPool.AddSymbol(this);
|
||||
}
|
||||
|
||||
// Token: 0x170001B1 RID: 433
|
||||
// (get) Token: 0x060005F9 RID: 1529 RVA: 0x00014F45 File Offset: 0x00013145
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto.Name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001B2 RID: 434
|
||||
// (get) Token: 0x060005FA RID: 1530 RVA: 0x00014F52 File Offset: 0x00013152
|
||||
internal ServiceDescriptorProto Proto
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.proto;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001B3 RID: 435
|
||||
// (get) Token: 0x060005FB RID: 1531 RVA: 0x00014F5A File Offset: 0x0001315A
|
||||
public IList<MethodDescriptor> Methods
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.methods;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060005FC RID: 1532 RVA: 0x00014F62 File Offset: 0x00013162
|
||||
public MethodDescriptor FindMethodByName(string name)
|
||||
{
|
||||
return base.File.DescriptorPool.FindSymbol<MethodDescriptor>(base.FullName + "." + name);
|
||||
}
|
||||
|
||||
// Token: 0x060005FD RID: 1533 RVA: 0x00014F88 File Offset: 0x00013188
|
||||
internal void CrossLink()
|
||||
{
|
||||
foreach (MethodDescriptor methodDescriptor in this.methods)
|
||||
{
|
||||
methodDescriptor.CrossLink();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000260 RID: 608
|
||||
private readonly ServiceDescriptorProto proto;
|
||||
|
||||
// Token: 0x04000261 RID: 609
|
||||
private readonly IList<MethodDescriptor> methods;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,264 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000048 RID: 72
|
||||
internal sealed class ServiceDescriptorProto : IMessage<ServiceDescriptorProto>, IMessage, IEquatable<ServiceDescriptorProto>, IDeepCloneable<ServiceDescriptorProto>
|
||||
{
|
||||
// Token: 0x17000104 RID: 260
|
||||
// (get) Token: 0x06000439 RID: 1081 RVA: 0x0001035F File Offset: 0x0000E55F
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<ServiceDescriptorProto> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return ServiceDescriptorProto._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000105 RID: 261
|
||||
// (get) Token: 0x0600043A RID: 1082 RVA: 0x00010366 File Offset: 0x0000E566
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[7];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000106 RID: 262
|
||||
// (get) Token: 0x0600043B RID: 1083 RVA: 0x00010378 File Offset: 0x0000E578
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return ServiceDescriptorProto.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600043C RID: 1084 RVA: 0x0001037F File Offset: 0x0000E57F
|
||||
[DebuggerNonUserCode]
|
||||
public ServiceDescriptorProto()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600043D RID: 1085 RVA: 0x000103A0 File Offset: 0x0000E5A0
|
||||
[DebuggerNonUserCode]
|
||||
public ServiceDescriptorProto(ServiceDescriptorProto other)
|
||||
: this()
|
||||
{
|
||||
this.name_ = other.name_;
|
||||
this.method_ = other.method_.Clone();
|
||||
this.Options = ((other.options_ != null) ? other.Options.Clone() : null);
|
||||
}
|
||||
|
||||
// Token: 0x0600043E RID: 1086 RVA: 0x000103EC File Offset: 0x0000E5EC
|
||||
[DebuggerNonUserCode]
|
||||
public ServiceDescriptorProto Clone()
|
||||
{
|
||||
return new ServiceDescriptorProto(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000107 RID: 263
|
||||
// (get) Token: 0x0600043F RID: 1087 RVA: 0x000103F4 File Offset: 0x0000E5F4
|
||||
// (set) Token: 0x06000440 RID: 1088 RVA: 0x000103FC File Offset: 0x0000E5FC
|
||||
[DebuggerNonUserCode]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000108 RID: 264
|
||||
// (get) Token: 0x06000441 RID: 1089 RVA: 0x0001040F File Offset: 0x0000E60F
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<MethodDescriptorProto> Method
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.method_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000109 RID: 265
|
||||
// (get) Token: 0x06000442 RID: 1090 RVA: 0x00010417 File Offset: 0x0000E617
|
||||
// (set) Token: 0x06000443 RID: 1091 RVA: 0x0001041F File Offset: 0x0000E61F
|
||||
[DebuggerNonUserCode]
|
||||
public ServiceOptions Options
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.options_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.options_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000444 RID: 1092 RVA: 0x00010428 File Offset: 0x0000E628
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as ServiceDescriptorProto);
|
||||
}
|
||||
|
||||
// Token: 0x06000445 RID: 1093 RVA: 0x00010438 File Offset: 0x0000E638
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(ServiceDescriptorProto other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.Name != other.Name) && this.method_.Equals(other.method_) && object.Equals(this.Options, other.Options)));
|
||||
}
|
||||
|
||||
// Token: 0x06000446 RID: 1094 RVA: 0x00010490 File Offset: 0x0000E690
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num ^= this.Name.GetHashCode();
|
||||
}
|
||||
num ^= this.method_.GetHashCode();
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num ^= this.Options.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000447 RID: 1095 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x06000448 RID: 1096 RVA: 0x000104E0 File Offset: 0x0000E6E0
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.Name);
|
||||
}
|
||||
this.method_.WriteTo(output, ServiceDescriptorProto._repeated_method_codec);
|
||||
if (this.options_ != null)
|
||||
{
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(this.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000449 RID: 1097 RVA: 0x0001053C File Offset: 0x0000E73C
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Name.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
|
||||
}
|
||||
num += this.method_.CalculateSize(ServiceDescriptorProto._repeated_method_codec);
|
||||
if (this.options_ != null)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeMessageSize(this.Options);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600044A RID: 1098 RVA: 0x00010594 File Offset: 0x0000E794
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(ServiceDescriptorProto other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0)
|
||||
{
|
||||
this.Name = other.Name;
|
||||
}
|
||||
this.method_.Add(other.method_);
|
||||
if (other.options_ != null)
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new ServiceOptions();
|
||||
}
|
||||
this.Options.MergeFrom(other.Options);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600044B RID: 1099 RVA: 0x000105FC File Offset: 0x0000E7FC
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
if (num != 18U)
|
||||
{
|
||||
if (num != 26U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.options_ == null)
|
||||
{
|
||||
this.options_ = new ServiceOptions();
|
||||
}
|
||||
input.ReadMessage(this.options_);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.method_.AddEntriesFrom(input, ServiceDescriptorProto._repeated_method_codec);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = input.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400017F RID: 383
|
||||
private static readonly MessageParser<ServiceDescriptorProto> _parser = new MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
|
||||
|
||||
// Token: 0x04000180 RID: 384
|
||||
public const int NameFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000181 RID: 385
|
||||
private string name_ = "";
|
||||
|
||||
// Token: 0x04000182 RID: 386
|
||||
public const int MethodFieldNumber = 2;
|
||||
|
||||
// Token: 0x04000183 RID: 387
|
||||
private static readonly FieldCodec<MethodDescriptorProto> _repeated_method_codec = FieldCodec.ForMessage<MethodDescriptorProto>(18U, MethodDescriptorProto.Parser);
|
||||
|
||||
// Token: 0x04000184 RID: 388
|
||||
private readonly RepeatedField<MethodDescriptorProto> method_ = new RepeatedField<MethodDescriptorProto>();
|
||||
|
||||
// Token: 0x04000185 RID: 389
|
||||
public const int OptionsFieldNumber = 3;
|
||||
|
||||
// Token: 0x04000186 RID: 390
|
||||
private ServiceOptions options_;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000050 RID: 80
|
||||
internal sealed class ServiceOptions : IMessage<ServiceOptions>, IMessage, IEquatable<ServiceOptions>, IDeepCloneable<ServiceOptions>
|
||||
{
|
||||
// Token: 0x17000146 RID: 326
|
||||
// (get) Token: 0x060004FF RID: 1279 RVA: 0x000126F0 File Offset: 0x000108F0
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<ServiceOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return ServiceOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000147 RID: 327
|
||||
// (get) Token: 0x06000500 RID: 1280 RVA: 0x000126F7 File Offset: 0x000108F7
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[15];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000148 RID: 328
|
||||
// (get) Token: 0x06000501 RID: 1281 RVA: 0x0001270A File Offset: 0x0001090A
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return ServiceOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000502 RID: 1282 RVA: 0x00012711 File Offset: 0x00010911
|
||||
[DebuggerNonUserCode]
|
||||
public ServiceOptions()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000503 RID: 1283 RVA: 0x00012724 File Offset: 0x00010924
|
||||
[DebuggerNonUserCode]
|
||||
public ServiceOptions(ServiceOptions other)
|
||||
: this()
|
||||
{
|
||||
this.deprecated_ = other.deprecated_;
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x06000504 RID: 1284 RVA: 0x00012749 File Offset: 0x00010949
|
||||
[DebuggerNonUserCode]
|
||||
public ServiceOptions Clone()
|
||||
{
|
||||
return new ServiceOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000149 RID: 329
|
||||
// (get) Token: 0x06000505 RID: 1285 RVA: 0x00012751 File Offset: 0x00010951
|
||||
// (set) Token: 0x06000506 RID: 1286 RVA: 0x00012759 File Offset: 0x00010959
|
||||
[DebuggerNonUserCode]
|
||||
public bool Deprecated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.deprecated_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.deprecated_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700014A RID: 330
|
||||
// (get) Token: 0x06000507 RID: 1287 RVA: 0x00012762 File Offset: 0x00010962
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000508 RID: 1288 RVA: 0x0001276A File Offset: 0x0001096A
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as ServiceOptions);
|
||||
}
|
||||
|
||||
// Token: 0x06000509 RID: 1289 RVA: 0x00012778 File Offset: 0x00010978
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(ServiceOptions other)
|
||||
{
|
||||
return other != null && (other == this || (this.Deprecated == other.Deprecated && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
||||
}
|
||||
|
||||
// Token: 0x0600050A RID: 1290 RVA: 0x000127AC File Offset: 0x000109AC
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num ^= this.Deprecated.GetHashCode();
|
||||
}
|
||||
return num ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600050B RID: 1291 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600050C RID: 1292 RVA: 0x000127E3 File Offset: 0x000109E3
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.Deprecated)
|
||||
{
|
||||
output.WriteRawTag(136, 2);
|
||||
output.WriteBool(this.Deprecated);
|
||||
}
|
||||
this.uninterpretedOption_.WriteTo(output, ServiceOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600050D RID: 1293 RVA: 0x00012818 File Offset: 0x00010A18
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num += 3;
|
||||
}
|
||||
return num + this.uninterpretedOption_.CalculateSize(ServiceOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600050E RID: 1294 RVA: 0x00012847 File Offset: 0x00010A47
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(ServiceOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Deprecated)
|
||||
{
|
||||
this.Deprecated = other.Deprecated;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x0600050F RID: 1295 RVA: 0x00012874 File Offset: 0x00010A74
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 264U)
|
||||
{
|
||||
if (num != 7994U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, ServiceOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Deprecated = input.ReadBool();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001E2 RID: 482
|
||||
private static readonly MessageParser<ServiceOptions> _parser = new MessageParser<ServiceOptions>(() => new ServiceOptions());
|
||||
|
||||
// Token: 0x040001E3 RID: 483
|
||||
public const int DeprecatedFieldNumber = 33;
|
||||
|
||||
// Token: 0x040001E4 RID: 484
|
||||
private bool deprecated_;
|
||||
|
||||
// Token: 0x040001E5 RID: 485
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001E6 RID: 486
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001E7 RID: 487
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200006C RID: 108
|
||||
internal sealed class SingleFieldAccessor : FieldAccessorBase
|
||||
{
|
||||
// Token: 0x060005FE RID: 1534 RVA: 0x00014FD4 File Offset: 0x000131D4
|
||||
internal SingleFieldAccessor(PropertyInfo property, FieldDescriptor descriptor)
|
||||
: base(property, descriptor)
|
||||
{
|
||||
if (!property.CanWrite)
|
||||
{
|
||||
throw new ArgumentException("Not all required properties/methods available");
|
||||
}
|
||||
this.setValueDelegate = ReflectionUtil.CreateActionIMessageObject(property.GetSetMethod());
|
||||
Type propertyType = property.PropertyType;
|
||||
object defaultValue = ((descriptor.FieldType == FieldType.Message) ? null : ((propertyType == typeof(string)) ? "" : ((propertyType == typeof(ByteString)) ? ByteString.Empty : Activator.CreateInstance(propertyType))));
|
||||
this.clearDelegate = delegate(IMessage message)
|
||||
{
|
||||
this.SetValue(message, defaultValue);
|
||||
};
|
||||
}
|
||||
|
||||
// Token: 0x060005FF RID: 1535 RVA: 0x00015074 File Offset: 0x00013274
|
||||
public override void Clear(IMessage message)
|
||||
{
|
||||
this.clearDelegate(message);
|
||||
}
|
||||
|
||||
// Token: 0x06000600 RID: 1536 RVA: 0x00015082 File Offset: 0x00013282
|
||||
public override void SetValue(IMessage message, object value)
|
||||
{
|
||||
this.setValueDelegate(message, value);
|
||||
}
|
||||
|
||||
// Token: 0x04000262 RID: 610
|
||||
private readonly Action<IMessage, object> setValueDelegate;
|
||||
|
||||
// Token: 0x04000263 RID: 611
|
||||
private readonly Action<IMessage> clearDelegate;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,480 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000053 RID: 83
|
||||
internal sealed class SourceCodeInfo : IMessage<SourceCodeInfo>, IMessage, IEquatable<SourceCodeInfo>, IDeepCloneable<SourceCodeInfo>
|
||||
{
|
||||
// Token: 0x1700015A RID: 346
|
||||
// (get) Token: 0x0600053F RID: 1343 RVA: 0x00013102 File Offset: 0x00011302
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<SourceCodeInfo> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return SourceCodeInfo._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700015B RID: 347
|
||||
// (get) Token: 0x06000540 RID: 1344 RVA: 0x00013109 File Offset: 0x00011309
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[18];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700015C RID: 348
|
||||
// (get) Token: 0x06000541 RID: 1345 RVA: 0x0001311C File Offset: 0x0001131C
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return SourceCodeInfo.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000542 RID: 1346 RVA: 0x00013123 File Offset: 0x00011323
|
||||
[DebuggerNonUserCode]
|
||||
public SourceCodeInfo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000543 RID: 1347 RVA: 0x00013136 File Offset: 0x00011336
|
||||
[DebuggerNonUserCode]
|
||||
public SourceCodeInfo(SourceCodeInfo other)
|
||||
: this()
|
||||
{
|
||||
this.location_ = other.location_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x06000544 RID: 1348 RVA: 0x0001314F File Offset: 0x0001134F
|
||||
[DebuggerNonUserCode]
|
||||
public SourceCodeInfo Clone()
|
||||
{
|
||||
return new SourceCodeInfo(this);
|
||||
}
|
||||
|
||||
// Token: 0x1700015D RID: 349
|
||||
// (get) Token: 0x06000545 RID: 1349 RVA: 0x00013157 File Offset: 0x00011357
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<SourceCodeInfo.Types.Location> Location
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.location_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000546 RID: 1350 RVA: 0x0001315F File Offset: 0x0001135F
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as SourceCodeInfo);
|
||||
}
|
||||
|
||||
// Token: 0x06000547 RID: 1351 RVA: 0x0001316D File Offset: 0x0001136D
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(SourceCodeInfo other)
|
||||
{
|
||||
return other != null && (other == this || this.location_.Equals(other.location_));
|
||||
}
|
||||
|
||||
// Token: 0x06000548 RID: 1352 RVA: 0x00013190 File Offset: 0x00011390
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return 1 ^ this.location_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x06000549 RID: 1353 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600054A RID: 1354 RVA: 0x0001319F File Offset: 0x0001139F
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.location_.WriteTo(output, SourceCodeInfo._repeated_location_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600054B RID: 1355 RVA: 0x000131B2 File Offset: 0x000113B2
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
return 0 + this.location_.CalculateSize(SourceCodeInfo._repeated_location_codec);
|
||||
}
|
||||
|
||||
// Token: 0x0600054C RID: 1356 RVA: 0x000131C6 File Offset: 0x000113C6
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(SourceCodeInfo other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.location_.Add(other.location_);
|
||||
}
|
||||
|
||||
// Token: 0x0600054D RID: 1357 RVA: 0x000131E0 File Offset: 0x000113E0
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.location_.AddEntriesFrom(input, SourceCodeInfo._repeated_location_codec);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001FE RID: 510
|
||||
private static readonly MessageParser<SourceCodeInfo> _parser = new MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
|
||||
|
||||
// Token: 0x040001FF RID: 511
|
||||
public const int LocationFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000200 RID: 512
|
||||
private static readonly FieldCodec<SourceCodeInfo.Types.Location> _repeated_location_codec = FieldCodec.ForMessage<SourceCodeInfo.Types.Location>(10U, SourceCodeInfo.Types.Location.Parser);
|
||||
|
||||
// Token: 0x04000201 RID: 513
|
||||
private readonly RepeatedField<SourceCodeInfo.Types.Location> location_ = new RepeatedField<SourceCodeInfo.Types.Location>();
|
||||
|
||||
// Token: 0x020000B9 RID: 185
|
||||
[DebuggerNonUserCode]
|
||||
public static class Types
|
||||
{
|
||||
// Token: 0x020000DD RID: 221
|
||||
internal sealed class Location : IMessage<SourceCodeInfo.Types.Location>, IMessage, IEquatable<SourceCodeInfo.Types.Location>, IDeepCloneable<SourceCodeInfo.Types.Location>
|
||||
{
|
||||
// Token: 0x170001EE RID: 494
|
||||
// (get) Token: 0x060007EC RID: 2028 RVA: 0x00018361 File Offset: 0x00016561
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<SourceCodeInfo.Types.Location> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return SourceCodeInfo.Types.Location._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001EF RID: 495
|
||||
// (get) Token: 0x060007ED RID: 2029 RVA: 0x00018368 File Offset: 0x00016568
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return SourceCodeInfo.Descriptor.NestedTypes[0];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F0 RID: 496
|
||||
// (get) Token: 0x060007EE RID: 2030 RVA: 0x0001837A File Offset: 0x0001657A
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return SourceCodeInfo.Types.Location.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060007EF RID: 2031 RVA: 0x00018381 File Offset: 0x00016581
|
||||
[DebuggerNonUserCode]
|
||||
public Location()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060007F0 RID: 2032 RVA: 0x000183C0 File Offset: 0x000165C0
|
||||
[DebuggerNonUserCode]
|
||||
public Location(SourceCodeInfo.Types.Location other)
|
||||
: this()
|
||||
{
|
||||
this.path_ = other.path_.Clone();
|
||||
this.span_ = other.span_.Clone();
|
||||
this.leadingComments_ = other.leadingComments_;
|
||||
this.trailingComments_ = other.trailingComments_;
|
||||
this.leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x060007F1 RID: 2033 RVA: 0x0001841E File Offset: 0x0001661E
|
||||
[DebuggerNonUserCode]
|
||||
public SourceCodeInfo.Types.Location Clone()
|
||||
{
|
||||
return new SourceCodeInfo.Types.Location(this);
|
||||
}
|
||||
|
||||
// Token: 0x170001F1 RID: 497
|
||||
// (get) Token: 0x060007F2 RID: 2034 RVA: 0x00018426 File Offset: 0x00016626
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<int> Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.path_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F2 RID: 498
|
||||
// (get) Token: 0x060007F3 RID: 2035 RVA: 0x0001842E File Offset: 0x0001662E
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<int> Span
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.span_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F3 RID: 499
|
||||
// (get) Token: 0x060007F4 RID: 2036 RVA: 0x00018436 File Offset: 0x00016636
|
||||
// (set) Token: 0x060007F5 RID: 2037 RVA: 0x0001843E File Offset: 0x0001663E
|
||||
[DebuggerNonUserCode]
|
||||
public string LeadingComments
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.leadingComments_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.leadingComments_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F4 RID: 500
|
||||
// (get) Token: 0x060007F6 RID: 2038 RVA: 0x00018451 File Offset: 0x00016651
|
||||
// (set) Token: 0x060007F7 RID: 2039 RVA: 0x00018459 File Offset: 0x00016659
|
||||
[DebuggerNonUserCode]
|
||||
public string TrailingComments
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.trailingComments_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.trailingComments_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F5 RID: 501
|
||||
// (get) Token: 0x060007F8 RID: 2040 RVA: 0x0001846C File Offset: 0x0001666C
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<string> LeadingDetachedComments
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.leadingDetachedComments_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060007F9 RID: 2041 RVA: 0x00018474 File Offset: 0x00016674
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as SourceCodeInfo.Types.Location);
|
||||
}
|
||||
|
||||
// Token: 0x060007FA RID: 2042 RVA: 0x00018484 File Offset: 0x00016684
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(SourceCodeInfo.Types.Location other)
|
||||
{
|
||||
return other != null && (other == this || (this.path_.Equals(other.path_) && this.span_.Equals(other.span_) && !(this.LeadingComments != other.LeadingComments) && !(this.TrailingComments != other.TrailingComments) && this.leadingDetachedComments_.Equals(other.leadingDetachedComments_)));
|
||||
}
|
||||
|
||||
// Token: 0x060007FB RID: 2043 RVA: 0x00018508 File Offset: 0x00016708
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
num ^= this.path_.GetHashCode();
|
||||
num ^= this.span_.GetHashCode();
|
||||
if (this.LeadingComments.Length != 0)
|
||||
{
|
||||
num ^= this.LeadingComments.GetHashCode();
|
||||
}
|
||||
if (this.TrailingComments.Length != 0)
|
||||
{
|
||||
num ^= this.TrailingComments.GetHashCode();
|
||||
}
|
||||
return num ^ this.leadingDetachedComments_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060007FC RID: 2044 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060007FD RID: 2045 RVA: 0x00018578 File Offset: 0x00016778
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.path_.WriteTo(output, SourceCodeInfo.Types.Location._repeated_path_codec);
|
||||
this.span_.WriteTo(output, SourceCodeInfo.Types.Location._repeated_span_codec);
|
||||
if (this.LeadingComments.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(this.LeadingComments);
|
||||
}
|
||||
if (this.TrailingComments.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(this.TrailingComments);
|
||||
}
|
||||
this.leadingDetachedComments_.WriteTo(output, SourceCodeInfo.Types.Location._repeated_leadingDetachedComments_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060007FE RID: 2046 RVA: 0x000185FC File Offset: 0x000167FC
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
num += this.path_.CalculateSize(SourceCodeInfo.Types.Location._repeated_path_codec);
|
||||
num += this.span_.CalculateSize(SourceCodeInfo.Types.Location._repeated_span_codec);
|
||||
if (this.LeadingComments.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.LeadingComments);
|
||||
}
|
||||
if (this.TrailingComments.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.TrailingComments);
|
||||
}
|
||||
return num + this.leadingDetachedComments_.CalculateSize(SourceCodeInfo.Types.Location._repeated_leadingDetachedComments_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060007FF RID: 2047 RVA: 0x00018680 File Offset: 0x00016880
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(SourceCodeInfo.Types.Location other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.path_.Add(other.path_);
|
||||
this.span_.Add(other.span_);
|
||||
if (other.LeadingComments.Length != 0)
|
||||
{
|
||||
this.LeadingComments = other.LeadingComments;
|
||||
}
|
||||
if (other.TrailingComments.Length != 0)
|
||||
{
|
||||
this.TrailingComments = other.TrailingComments;
|
||||
}
|
||||
this.leadingDetachedComments_.Add(other.leadingDetachedComments_);
|
||||
}
|
||||
|
||||
// Token: 0x06000800 RID: 2048 RVA: 0x000186F8 File Offset: 0x000168F8
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 16U)
|
||||
{
|
||||
if (num == 8U || num == 10U)
|
||||
{
|
||||
this.path_.AddEntriesFrom(input, SourceCodeInfo.Types.Location._repeated_path_codec);
|
||||
continue;
|
||||
}
|
||||
if (num == 16U)
|
||||
{
|
||||
goto IL_50;
|
||||
}
|
||||
}
|
||||
else if (num <= 26U)
|
||||
{
|
||||
if (num == 18U)
|
||||
{
|
||||
goto IL_50;
|
||||
}
|
||||
if (num == 26U)
|
||||
{
|
||||
this.LeadingComments = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 34U)
|
||||
{
|
||||
this.TrailingComments = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 50U)
|
||||
{
|
||||
this.leadingDetachedComments_.AddEntriesFrom(input, SourceCodeInfo.Types.Location._repeated_leadingDetachedComments_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
continue;
|
||||
IL_50:
|
||||
this.span_.AddEntriesFrom(input, SourceCodeInfo.Types.Location._repeated_span_codec);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000376 RID: 886
|
||||
private static readonly MessageParser<SourceCodeInfo.Types.Location> _parser = new MessageParser<SourceCodeInfo.Types.Location>(() => new SourceCodeInfo.Types.Location());
|
||||
|
||||
// Token: 0x04000377 RID: 887
|
||||
public const int PathFieldNumber = 1;
|
||||
|
||||
// Token: 0x04000378 RID: 888
|
||||
private static readonly FieldCodec<int> _repeated_path_codec = FieldCodec.ForInt32(10U);
|
||||
|
||||
// Token: 0x04000379 RID: 889
|
||||
private readonly RepeatedField<int> path_ = new RepeatedField<int>();
|
||||
|
||||
// Token: 0x0400037A RID: 890
|
||||
public const int SpanFieldNumber = 2;
|
||||
|
||||
// Token: 0x0400037B RID: 891
|
||||
private static readonly FieldCodec<int> _repeated_span_codec = FieldCodec.ForInt32(18U);
|
||||
|
||||
// Token: 0x0400037C RID: 892
|
||||
private readonly RepeatedField<int> span_ = new RepeatedField<int>();
|
||||
|
||||
// Token: 0x0400037D RID: 893
|
||||
public const int LeadingCommentsFieldNumber = 3;
|
||||
|
||||
// Token: 0x0400037E RID: 894
|
||||
private string leadingComments_ = "";
|
||||
|
||||
// Token: 0x0400037F RID: 895
|
||||
public const int TrailingCommentsFieldNumber = 4;
|
||||
|
||||
// Token: 0x04000380 RID: 896
|
||||
private string trailingComments_ = "";
|
||||
|
||||
// Token: 0x04000381 RID: 897
|
||||
public const int LeadingDetachedCommentsFieldNumber = 6;
|
||||
|
||||
// Token: 0x04000382 RID: 898
|
||||
private static readonly FieldCodec<string> _repeated_leadingDetachedComments_codec = FieldCodec.ForString(50U);
|
||||
|
||||
// Token: 0x04000383 RID: 899
|
||||
private readonly RepeatedField<string> leadingDetachedComments_ = new RepeatedField<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200006D RID: 109
|
||||
public sealed class TypeRegistry
|
||||
{
|
||||
// Token: 0x170001B4 RID: 436
|
||||
// (get) Token: 0x06000601 RID: 1537 RVA: 0x00015091 File Offset: 0x00013291
|
||||
public static TypeRegistry Empty { get; } = new TypeRegistry(new Dictionary<string, MessageDescriptor>());
|
||||
|
||||
// Token: 0x06000602 RID: 1538 RVA: 0x00015098 File Offset: 0x00013298
|
||||
private TypeRegistry(Dictionary<string, MessageDescriptor> fullNameToMessageMap)
|
||||
{
|
||||
this.fullNameToMessageMap = fullNameToMessageMap;
|
||||
}
|
||||
|
||||
// Token: 0x06000603 RID: 1539 RVA: 0x000150A8 File Offset: 0x000132A8
|
||||
public MessageDescriptor Find(string fullName)
|
||||
{
|
||||
MessageDescriptor messageDescriptor;
|
||||
this.fullNameToMessageMap.TryGetValue(fullName, out messageDescriptor);
|
||||
return messageDescriptor;
|
||||
}
|
||||
|
||||
// Token: 0x06000604 RID: 1540 RVA: 0x000150C5 File Offset: 0x000132C5
|
||||
public static TypeRegistry FromFiles(params FileDescriptor[] fileDescriptors)
|
||||
{
|
||||
return TypeRegistry.FromFiles(fileDescriptors);
|
||||
}
|
||||
|
||||
// Token: 0x06000605 RID: 1541 RVA: 0x000150D0 File Offset: 0x000132D0
|
||||
public static TypeRegistry FromFiles(IEnumerable<FileDescriptor> fileDescriptors)
|
||||
{
|
||||
ProtoPreconditions.CheckNotNull<IEnumerable<FileDescriptor>>(fileDescriptors, "fileDescriptors");
|
||||
TypeRegistry.Builder builder = new TypeRegistry.Builder();
|
||||
foreach (FileDescriptor fileDescriptor in fileDescriptors)
|
||||
{
|
||||
builder.AddFile(fileDescriptor);
|
||||
}
|
||||
return builder.Build();
|
||||
}
|
||||
|
||||
// Token: 0x06000606 RID: 1542 RVA: 0x00015130 File Offset: 0x00013330
|
||||
public static TypeRegistry FromMessages(params MessageDescriptor[] messageDescriptors)
|
||||
{
|
||||
return TypeRegistry.FromMessages(messageDescriptors);
|
||||
}
|
||||
|
||||
// Token: 0x06000607 RID: 1543 RVA: 0x00015138 File Offset: 0x00013338
|
||||
public static TypeRegistry FromMessages(IEnumerable<MessageDescriptor> messageDescriptors)
|
||||
{
|
||||
ProtoPreconditions.CheckNotNull<IEnumerable<MessageDescriptor>>(messageDescriptors, "messageDescriptors");
|
||||
return TypeRegistry.FromFiles(messageDescriptors.Select((MessageDescriptor md) => md.File));
|
||||
}
|
||||
|
||||
// Token: 0x04000265 RID: 613
|
||||
private readonly Dictionary<string, MessageDescriptor> fullNameToMessageMap;
|
||||
|
||||
// Token: 0x020000C6 RID: 198
|
||||
private class Builder
|
||||
{
|
||||
// Token: 0x06000780 RID: 1920 RVA: 0x00017801 File Offset: 0x00015A01
|
||||
internal Builder()
|
||||
{
|
||||
this.types = new Dictionary<string, MessageDescriptor>();
|
||||
this.fileDescriptorNames = new HashSet<string>();
|
||||
}
|
||||
|
||||
// Token: 0x06000781 RID: 1921 RVA: 0x00017820 File Offset: 0x00015A20
|
||||
internal void AddFile(FileDescriptor fileDescriptor)
|
||||
{
|
||||
if (!this.fileDescriptorNames.Add(fileDescriptor.Name))
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach (FileDescriptor fileDescriptor2 in fileDescriptor.Dependencies)
|
||||
{
|
||||
this.AddFile(fileDescriptor2);
|
||||
}
|
||||
foreach (MessageDescriptor messageDescriptor in fileDescriptor.MessageTypes)
|
||||
{
|
||||
this.AddMessage(messageDescriptor);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000782 RID: 1922 RVA: 0x000178C0 File Offset: 0x00015AC0
|
||||
private void AddMessage(MessageDescriptor messageDescriptor)
|
||||
{
|
||||
foreach (MessageDescriptor messageDescriptor2 in messageDescriptor.NestedTypes)
|
||||
{
|
||||
this.AddMessage(messageDescriptor2);
|
||||
}
|
||||
this.types[messageDescriptor.FullName] = messageDescriptor;
|
||||
}
|
||||
|
||||
// Token: 0x06000783 RID: 1923 RVA: 0x00017920 File Offset: 0x00015B20
|
||||
internal TypeRegistry Build()
|
||||
{
|
||||
return new TypeRegistry(this.types);
|
||||
}
|
||||
|
||||
// Token: 0x04000301 RID: 769
|
||||
private readonly Dictionary<string, MessageDescriptor> types;
|
||||
|
||||
// Token: 0x04000302 RID: 770
|
||||
private readonly HashSet<string> fileDescriptorNames;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,662 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x02000052 RID: 82
|
||||
internal sealed class UninterpretedOption : IMessage<UninterpretedOption>, IMessage, IEquatable<UninterpretedOption>, IDeepCloneable<UninterpretedOption>
|
||||
{
|
||||
// Token: 0x17000150 RID: 336
|
||||
// (get) Token: 0x06000523 RID: 1315 RVA: 0x00012AF8 File Offset: 0x00010CF8
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<UninterpretedOption> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return UninterpretedOption._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000151 RID: 337
|
||||
// (get) Token: 0x06000524 RID: 1316 RVA: 0x00012AFF File Offset: 0x00010CFF
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[17];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000152 RID: 338
|
||||
// (get) Token: 0x06000525 RID: 1317 RVA: 0x00012B12 File Offset: 0x00010D12
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return UninterpretedOption.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000526 RID: 1318 RVA: 0x00012B19 File Offset: 0x00010D19
|
||||
[DebuggerNonUserCode]
|
||||
public UninterpretedOption()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000527 RID: 1319 RVA: 0x00012B50 File Offset: 0x00010D50
|
||||
[DebuggerNonUserCode]
|
||||
public UninterpretedOption(UninterpretedOption other)
|
||||
: this()
|
||||
{
|
||||
this.name_ = other.name_.Clone();
|
||||
this.identifierValue_ = other.identifierValue_;
|
||||
this.positiveIntValue_ = other.positiveIntValue_;
|
||||
this.negativeIntValue_ = other.negativeIntValue_;
|
||||
this.doubleValue_ = other.doubleValue_;
|
||||
this.stringValue_ = other.stringValue_;
|
||||
this.aggregateValue_ = other.aggregateValue_;
|
||||
}
|
||||
|
||||
// Token: 0x06000528 RID: 1320 RVA: 0x00012BBC File Offset: 0x00010DBC
|
||||
[DebuggerNonUserCode]
|
||||
public UninterpretedOption Clone()
|
||||
{
|
||||
return new UninterpretedOption(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000153 RID: 339
|
||||
// (get) Token: 0x06000529 RID: 1321 RVA: 0x00012BC4 File Offset: 0x00010DC4
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption.Types.NamePart> Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.name_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000154 RID: 340
|
||||
// (get) Token: 0x0600052A RID: 1322 RVA: 0x00012BCC File Offset: 0x00010DCC
|
||||
// (set) Token: 0x0600052B RID: 1323 RVA: 0x00012BD4 File Offset: 0x00010DD4
|
||||
[DebuggerNonUserCode]
|
||||
public string IdentifierValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.identifierValue_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.identifierValue_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000155 RID: 341
|
||||
// (get) Token: 0x0600052C RID: 1324 RVA: 0x00012BE7 File Offset: 0x00010DE7
|
||||
// (set) Token: 0x0600052D RID: 1325 RVA: 0x00012BEF File Offset: 0x00010DEF
|
||||
[DebuggerNonUserCode]
|
||||
public ulong PositiveIntValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.positiveIntValue_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.positiveIntValue_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000156 RID: 342
|
||||
// (get) Token: 0x0600052E RID: 1326 RVA: 0x00012BF8 File Offset: 0x00010DF8
|
||||
// (set) Token: 0x0600052F RID: 1327 RVA: 0x00012C00 File Offset: 0x00010E00
|
||||
[DebuggerNonUserCode]
|
||||
public long NegativeIntValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.negativeIntValue_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.negativeIntValue_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000157 RID: 343
|
||||
// (get) Token: 0x06000530 RID: 1328 RVA: 0x00012C09 File Offset: 0x00010E09
|
||||
// (set) Token: 0x06000531 RID: 1329 RVA: 0x00012C11 File Offset: 0x00010E11
|
||||
[DebuggerNonUserCode]
|
||||
public double DoubleValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.doubleValue_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.doubleValue_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000158 RID: 344
|
||||
// (get) Token: 0x06000532 RID: 1330 RVA: 0x00012C1A File Offset: 0x00010E1A
|
||||
// (set) Token: 0x06000533 RID: 1331 RVA: 0x00012C22 File Offset: 0x00010E22
|
||||
[DebuggerNonUserCode]
|
||||
public ByteString StringValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.stringValue_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.stringValue_ = ProtoPreconditions.CheckNotNull<ByteString>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000159 RID: 345
|
||||
// (get) Token: 0x06000534 RID: 1332 RVA: 0x00012C35 File Offset: 0x00010E35
|
||||
// (set) Token: 0x06000535 RID: 1333 RVA: 0x00012C3D File Offset: 0x00010E3D
|
||||
[DebuggerNonUserCode]
|
||||
public string AggregateValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.aggregateValue_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.aggregateValue_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000536 RID: 1334 RVA: 0x00012C50 File Offset: 0x00010E50
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as UninterpretedOption);
|
||||
}
|
||||
|
||||
// Token: 0x06000537 RID: 1335 RVA: 0x00012C60 File Offset: 0x00010E60
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(UninterpretedOption other)
|
||||
{
|
||||
return other != null && (other == this || (this.name_.Equals(other.name_) && !(this.IdentifierValue != other.IdentifierValue) && this.PositiveIntValue == other.PositiveIntValue && this.NegativeIntValue == other.NegativeIntValue && this.DoubleValue == other.DoubleValue && !(this.StringValue != other.StringValue) && !(this.AggregateValue != other.AggregateValue)));
|
||||
}
|
||||
|
||||
// Token: 0x06000538 RID: 1336 RVA: 0x00012D00 File Offset: 0x00010F00
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
num ^= this.name_.GetHashCode();
|
||||
if (this.IdentifierValue.Length != 0)
|
||||
{
|
||||
num ^= this.IdentifierValue.GetHashCode();
|
||||
}
|
||||
if (this.PositiveIntValue != 0UL)
|
||||
{
|
||||
num ^= this.PositiveIntValue.GetHashCode();
|
||||
}
|
||||
if (this.NegativeIntValue != 0L)
|
||||
{
|
||||
num ^= this.NegativeIntValue.GetHashCode();
|
||||
}
|
||||
if (this.DoubleValue != 0.0)
|
||||
{
|
||||
num ^= this.DoubleValue.GetHashCode();
|
||||
}
|
||||
if (this.StringValue.Length != 0)
|
||||
{
|
||||
num ^= this.StringValue.GetHashCode();
|
||||
}
|
||||
if (this.AggregateValue.Length != 0)
|
||||
{
|
||||
num ^= this.AggregateValue.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000539 RID: 1337 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x0600053A RID: 1338 RVA: 0x00012DC4 File Offset: 0x00010FC4
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
this.name_.WriteTo(output, UninterpretedOption._repeated_name_codec);
|
||||
if (this.IdentifierValue.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(this.IdentifierValue);
|
||||
}
|
||||
if (this.PositiveIntValue != 0UL)
|
||||
{
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt64(this.PositiveIntValue);
|
||||
}
|
||||
if (this.NegativeIntValue != 0L)
|
||||
{
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt64(this.NegativeIntValue);
|
||||
}
|
||||
if (this.DoubleValue != 0.0)
|
||||
{
|
||||
output.WriteRawTag(49);
|
||||
output.WriteDouble(this.DoubleValue);
|
||||
}
|
||||
if (this.StringValue.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(58);
|
||||
output.WriteBytes(this.StringValue);
|
||||
}
|
||||
if (this.AggregateValue.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(66);
|
||||
output.WriteString(this.AggregateValue);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600053B RID: 1339 RVA: 0x00012EA4 File Offset: 0x000110A4
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
num += this.name_.CalculateSize(UninterpretedOption._repeated_name_codec);
|
||||
if (this.IdentifierValue.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.IdentifierValue);
|
||||
}
|
||||
if (this.PositiveIntValue != 0UL)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeUInt64Size(this.PositiveIntValue);
|
||||
}
|
||||
if (this.NegativeIntValue != 0L)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeInt64Size(this.NegativeIntValue);
|
||||
}
|
||||
if (this.DoubleValue != 0.0)
|
||||
{
|
||||
num += 9;
|
||||
}
|
||||
if (this.StringValue.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeBytesSize(this.StringValue);
|
||||
}
|
||||
if (this.AggregateValue.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.AggregateValue);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600053C RID: 1340 RVA: 0x00012F64 File Offset: 0x00011164
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(UninterpretedOption other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.name_.Add(other.name_);
|
||||
if (other.IdentifierValue.Length != 0)
|
||||
{
|
||||
this.IdentifierValue = other.IdentifierValue;
|
||||
}
|
||||
if (other.PositiveIntValue != 0UL)
|
||||
{
|
||||
this.PositiveIntValue = other.PositiveIntValue;
|
||||
}
|
||||
if (other.NegativeIntValue != 0L)
|
||||
{
|
||||
this.NegativeIntValue = other.NegativeIntValue;
|
||||
}
|
||||
if (other.DoubleValue != 0.0)
|
||||
{
|
||||
this.DoubleValue = other.DoubleValue;
|
||||
}
|
||||
if (other.StringValue.Length != 0)
|
||||
{
|
||||
this.StringValue = other.StringValue;
|
||||
}
|
||||
if (other.AggregateValue.Length != 0)
|
||||
{
|
||||
this.AggregateValue = other.AggregateValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600053D RID: 1341 RVA: 0x00013018 File Offset: 0x00011218
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 32U)
|
||||
{
|
||||
if (num == 18U)
|
||||
{
|
||||
this.name_.AddEntriesFrom(input, UninterpretedOption._repeated_name_codec);
|
||||
continue;
|
||||
}
|
||||
if (num == 26U)
|
||||
{
|
||||
this.IdentifierValue = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
if (num == 32U)
|
||||
{
|
||||
this.PositiveIntValue = input.ReadUInt64();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if (num <= 49U)
|
||||
{
|
||||
if (num == 40U)
|
||||
{
|
||||
this.NegativeIntValue = input.ReadInt64();
|
||||
continue;
|
||||
}
|
||||
if (num == 49U)
|
||||
{
|
||||
this.DoubleValue = input.ReadDouble();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 58U)
|
||||
{
|
||||
this.StringValue = input.ReadBytes();
|
||||
continue;
|
||||
}
|
||||
if (num == 66U)
|
||||
{
|
||||
this.AggregateValue = input.ReadString();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001EE RID: 494
|
||||
private static readonly MessageParser<UninterpretedOption> _parser = new MessageParser<UninterpretedOption>(() => new UninterpretedOption());
|
||||
|
||||
// Token: 0x040001EF RID: 495
|
||||
public const int NameFieldNumber = 2;
|
||||
|
||||
// Token: 0x040001F0 RID: 496
|
||||
private static readonly FieldCodec<UninterpretedOption.Types.NamePart> _repeated_name_codec = FieldCodec.ForMessage<UninterpretedOption.Types.NamePart>(18U, UninterpretedOption.Types.NamePart.Parser);
|
||||
|
||||
// Token: 0x040001F1 RID: 497
|
||||
private readonly RepeatedField<UninterpretedOption.Types.NamePart> name_ = new RepeatedField<UninterpretedOption.Types.NamePart>();
|
||||
|
||||
// Token: 0x040001F2 RID: 498
|
||||
public const int IdentifierValueFieldNumber = 3;
|
||||
|
||||
// Token: 0x040001F3 RID: 499
|
||||
private string identifierValue_ = "";
|
||||
|
||||
// Token: 0x040001F4 RID: 500
|
||||
public const int PositiveIntValueFieldNumber = 4;
|
||||
|
||||
// Token: 0x040001F5 RID: 501
|
||||
private ulong positiveIntValue_;
|
||||
|
||||
// Token: 0x040001F6 RID: 502
|
||||
public const int NegativeIntValueFieldNumber = 5;
|
||||
|
||||
// Token: 0x040001F7 RID: 503
|
||||
private long negativeIntValue_;
|
||||
|
||||
// Token: 0x040001F8 RID: 504
|
||||
public const int DoubleValueFieldNumber = 6;
|
||||
|
||||
// Token: 0x040001F9 RID: 505
|
||||
private double doubleValue_;
|
||||
|
||||
// Token: 0x040001FA RID: 506
|
||||
public const int StringValueFieldNumber = 7;
|
||||
|
||||
// Token: 0x040001FB RID: 507
|
||||
private ByteString stringValue_ = ByteString.Empty;
|
||||
|
||||
// Token: 0x040001FC RID: 508
|
||||
public const int AggregateValueFieldNumber = 8;
|
||||
|
||||
// Token: 0x040001FD RID: 509
|
||||
private string aggregateValue_ = "";
|
||||
|
||||
// Token: 0x020000B7 RID: 183
|
||||
[DebuggerNonUserCode]
|
||||
public static class Types
|
||||
{
|
||||
// Token: 0x020000DC RID: 220
|
||||
internal sealed class NamePart : IMessage<UninterpretedOption.Types.NamePart>, IMessage, IEquatable<UninterpretedOption.Types.NamePart>, IDeepCloneable<UninterpretedOption.Types.NamePart>
|
||||
{
|
||||
// Token: 0x170001E9 RID: 489
|
||||
// (get) Token: 0x060007D9 RID: 2009 RVA: 0x00018148 File Offset: 0x00016348
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<UninterpretedOption.Types.NamePart> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return UninterpretedOption.Types.NamePart._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001EA RID: 490
|
||||
// (get) Token: 0x060007DA RID: 2010 RVA: 0x0001814F File Offset: 0x0001634F
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return UninterpretedOption.Descriptor.NestedTypes[0];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001EB RID: 491
|
||||
// (get) Token: 0x060007DB RID: 2011 RVA: 0x00018161 File Offset: 0x00016361
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return UninterpretedOption.Types.NamePart.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060007DC RID: 2012 RVA: 0x00018168 File Offset: 0x00016368
|
||||
[DebuggerNonUserCode]
|
||||
public NamePart()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060007DD RID: 2013 RVA: 0x0001817B File Offset: 0x0001637B
|
||||
[DebuggerNonUserCode]
|
||||
public NamePart(UninterpretedOption.Types.NamePart other)
|
||||
: this()
|
||||
{
|
||||
this.namePart_ = other.namePart_;
|
||||
this.isExtension_ = other.isExtension_;
|
||||
}
|
||||
|
||||
// Token: 0x060007DE RID: 2014 RVA: 0x0001819B File Offset: 0x0001639B
|
||||
[DebuggerNonUserCode]
|
||||
public UninterpretedOption.Types.NamePart Clone()
|
||||
{
|
||||
return new UninterpretedOption.Types.NamePart(this);
|
||||
}
|
||||
|
||||
// Token: 0x170001EC RID: 492
|
||||
// (get) Token: 0x060007DF RID: 2015 RVA: 0x000181A3 File Offset: 0x000163A3
|
||||
// (set) Token: 0x060007E0 RID: 2016 RVA: 0x000181AB File Offset: 0x000163AB
|
||||
[DebuggerNonUserCode]
|
||||
public string NamePart_
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.namePart_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.namePart_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001ED RID: 493
|
||||
// (get) Token: 0x060007E1 RID: 2017 RVA: 0x000181BE File Offset: 0x000163BE
|
||||
// (set) Token: 0x060007E2 RID: 2018 RVA: 0x000181C6 File Offset: 0x000163C6
|
||||
[DebuggerNonUserCode]
|
||||
public bool IsExtension
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.isExtension_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.isExtension_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060007E3 RID: 2019 RVA: 0x000181CF File Offset: 0x000163CF
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as UninterpretedOption.Types.NamePart);
|
||||
}
|
||||
|
||||
// Token: 0x060007E4 RID: 2020 RVA: 0x000181DD File Offset: 0x000163DD
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(UninterpretedOption.Types.NamePart other)
|
||||
{
|
||||
return other != null && (other == this || (!(this.NamePart_ != other.NamePart_) && this.IsExtension == other.IsExtension));
|
||||
}
|
||||
|
||||
// Token: 0x060007E5 RID: 2021 RVA: 0x00018210 File Offset: 0x00016410
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.NamePart_.Length != 0)
|
||||
{
|
||||
num ^= this.NamePart_.GetHashCode();
|
||||
}
|
||||
if (this.IsExtension)
|
||||
{
|
||||
num ^= this.IsExtension.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x060007E6 RID: 2022 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060007E7 RID: 2023 RVA: 0x00018254 File Offset: 0x00016454
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.NamePart_.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(this.NamePart_);
|
||||
}
|
||||
if (this.IsExtension)
|
||||
{
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(this.IsExtension);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060007E8 RID: 2024 RVA: 0x00018294 File Offset: 0x00016494
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.NamePart_.Length != 0)
|
||||
{
|
||||
num += 1 + CodedOutputStream.ComputeStringSize(this.NamePart_);
|
||||
}
|
||||
if (this.IsExtension)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x060007E9 RID: 2025 RVA: 0x000182CD File Offset: 0x000164CD
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(UninterpretedOption.Types.NamePart other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.NamePart_.Length != 0)
|
||||
{
|
||||
this.NamePart_ = other.NamePart_;
|
||||
}
|
||||
if (other.IsExtension)
|
||||
{
|
||||
this.IsExtension = other.IsExtension;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060007EA RID: 2026 RVA: 0x00018300 File Offset: 0x00016500
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num != 10U)
|
||||
{
|
||||
if (num != 16U)
|
||||
{
|
||||
input.SkipLastField();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.IsExtension = input.ReadBool();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.NamePart_ = input.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000371 RID: 881
|
||||
private static readonly MessageParser<UninterpretedOption.Types.NamePart> _parser = new MessageParser<UninterpretedOption.Types.NamePart>(() => new UninterpretedOption.Types.NamePart());
|
||||
|
||||
// Token: 0x04000372 RID: 882
|
||||
public const int NamePart_FieldNumber = 1;
|
||||
|
||||
// Token: 0x04000373 RID: 883
|
||||
private string namePart_ = "";
|
||||
|
||||
// Token: 0x04000374 RID: 884
|
||||
public const int IsExtensionFieldNumber = 2;
|
||||
|
||||
// Token: 0x04000375 RID: 885
|
||||
private bool isExtension_;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user