This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
+278
View File
@@ -0,0 +1,278 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200001A RID: 26
public sealed class Any : IMessage<Any>, IMessage, IEquatable<Any>, IDeepCloneable<Any>
{
// Token: 0x1700002A RID: 42
// (get) Token: 0x06000154 RID: 340 RVA: 0x00007AD9 File Offset: 0x00005CD9
[DebuggerNonUserCode]
public static MessageParser<Any> Parser
{
get
{
return Any._parser;
}
}
// Token: 0x1700002B RID: 43
// (get) Token: 0x06000155 RID: 341 RVA: 0x00007AE0 File Offset: 0x00005CE0
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return AnyReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x1700002C RID: 44
// (get) Token: 0x06000156 RID: 342 RVA: 0x00007AF2 File Offset: 0x00005CF2
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Any.Descriptor;
}
}
// Token: 0x06000157 RID: 343 RVA: 0x00007AF9 File Offset: 0x00005CF9
[DebuggerNonUserCode]
public Any()
{
}
// Token: 0x06000158 RID: 344 RVA: 0x00007B17 File Offset: 0x00005D17
[DebuggerNonUserCode]
public Any(Any other)
: this()
{
this.typeUrl_ = other.typeUrl_;
this.value_ = other.value_;
}
// Token: 0x06000159 RID: 345 RVA: 0x00007B37 File Offset: 0x00005D37
[DebuggerNonUserCode]
public Any Clone()
{
return new Any(this);
}
// Token: 0x1700002D RID: 45
// (get) Token: 0x0600015A RID: 346 RVA: 0x00007B3F File Offset: 0x00005D3F
// (set) Token: 0x0600015B RID: 347 RVA: 0x00007B47 File Offset: 0x00005D47
[DebuggerNonUserCode]
public string TypeUrl
{
get
{
return this.typeUrl_;
}
set
{
this.typeUrl_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x1700002E RID: 46
// (get) Token: 0x0600015C RID: 348 RVA: 0x00007B5A File Offset: 0x00005D5A
// (set) Token: 0x0600015D RID: 349 RVA: 0x00007B62 File Offset: 0x00005D62
[DebuggerNonUserCode]
public ByteString Value
{
get
{
return this.value_;
}
set
{
this.value_ = ProtoPreconditions.CheckNotNull<ByteString>(value, "value");
}
}
// Token: 0x0600015E RID: 350 RVA: 0x00007B75 File Offset: 0x00005D75
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Any);
}
// Token: 0x0600015F RID: 351 RVA: 0x00007B83 File Offset: 0x00005D83
[DebuggerNonUserCode]
public bool Equals(Any other)
{
return other != null && (other == this || (!(this.TypeUrl != other.TypeUrl) && !(this.Value != other.Value)));
}
// Token: 0x06000160 RID: 352 RVA: 0x00007BBC File Offset: 0x00005DBC
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.TypeUrl.Length != 0)
{
num ^= this.TypeUrl.GetHashCode();
}
if (this.Value.Length != 0)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000161 RID: 353 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000162 RID: 354 RVA: 0x00007C0C File Offset: 0x00005E0C
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.TypeUrl.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.TypeUrl);
}
if (this.Value.Length != 0)
{
output.WriteRawTag(18);
output.WriteBytes(this.Value);
}
}
// Token: 0x06000163 RID: 355 RVA: 0x00007C5C File Offset: 0x00005E5C
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.TypeUrl.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.TypeUrl);
}
if (this.Value.Length != 0)
{
num += 1 + CodedOutputStream.ComputeBytesSize(this.Value);
}
return num;
}
// Token: 0x06000164 RID: 356 RVA: 0x00007CA6 File Offset: 0x00005EA6
[DebuggerNonUserCode]
public void MergeFrom(Any other)
{
if (other == null)
{
return;
}
if (other.TypeUrl.Length != 0)
{
this.TypeUrl = other.TypeUrl;
}
if (other.Value.Length != 0)
{
this.Value = other.Value;
}
}
// Token: 0x06000165 RID: 357 RVA: 0x00007CE0 File Offset: 0x00005EE0
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
if (num != 18U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadBytes();
}
}
else
{
this.TypeUrl = input.ReadString();
}
}
}
// Token: 0x06000166 RID: 358 RVA: 0x00007D25 File Offset: 0x00005F25
private static string GetTypeUrl(MessageDescriptor descriptor, string prefix)
{
if (!prefix.EndsWith("/"))
{
return prefix + "/" + descriptor.FullName;
}
return prefix + descriptor.FullName;
}
// Token: 0x06000167 RID: 359 RVA: 0x00007D54 File Offset: 0x00005F54
internal static string GetTypeName(string typeUrl)
{
int num = typeUrl.LastIndexOf('/');
if (num != -1)
{
return typeUrl.Substring(num + 1);
}
return "";
}
// Token: 0x06000168 RID: 360 RVA: 0x00007D80 File Offset: 0x00005F80
public T Unpack<T>() where T : IMessage, new()
{
T t = new T();
if (Any.GetTypeName(this.TypeUrl) != t.Descriptor.FullName)
{
throw new InvalidProtocolBufferException(string.Format("Full type name for {0} is {1}; Any message's type url is {2}", t.Descriptor.Name, t.Descriptor.FullName, this.TypeUrl));
}
t.MergeFrom(this.Value);
return t;
}
// Token: 0x06000169 RID: 361 RVA: 0x00007E03 File Offset: 0x00006003
public static Any Pack(IMessage message)
{
return Any.Pack(message, "type.googleapis.com");
}
// Token: 0x0600016A RID: 362 RVA: 0x00007E10 File Offset: 0x00006010
public static Any Pack(IMessage message, string typeUrlPrefix)
{
ProtoPreconditions.CheckNotNull<IMessage>(message, "message");
ProtoPreconditions.CheckNotNull<string>(typeUrlPrefix, "typeUrlPrefix");
return new Any
{
TypeUrl = Any.GetTypeUrl(message.Descriptor, typeUrlPrefix),
Value = message.ToByteString()
};
}
// Token: 0x0400004F RID: 79
private static readonly MessageParser<Any> _parser = new MessageParser<Any>(() => new Any());
// Token: 0x04000050 RID: 80
public const int TypeUrlFieldNumber = 1;
// Token: 0x04000051 RID: 81
private string typeUrl_ = "";
// Token: 0x04000052 RID: 82
public const int ValueFieldNumber = 2;
// Token: 0x04000053 RID: 83
private ByteString value_ = ByteString.Empty;
// Token: 0x04000054 RID: 84
private const string DefaultPrefix = "type.googleapis.com";
}
}
+25
View File
@@ -0,0 +1,25 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000019 RID: 25
public static class AnyReflection
{
// Token: 0x17000029 RID: 41
// (get) Token: 0x06000152 RID: 338 RVA: 0x00007A40 File Offset: 0x00005C40
public static FileDescriptor Descriptor
{
get
{
return AnyReflection.descriptor;
}
}
// Token: 0x0400004E RID: 78
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[] { "Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYi", "JgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQm8KE2Nv", "bS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaJWdpdGh1Yi5jb20vZ29s", "YW5nL3Byb3RvYnVmL3B0eXBlcy9hbnmiAgNHUEKqAh5Hb29nbGUuUHJvdG9i", "dWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw==" })), new FileDescriptor[0], new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(Any), Any.Parser, new string[] { "TypeUrl", "Value" }, null, null, null)
}));
}
}
+418
View File
@@ -0,0 +1,418 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200001C RID: 28
public sealed class Api : IMessage<Api>, IMessage, IEquatable<Api>, IDeepCloneable<Api>
{
// Token: 0x17000030 RID: 48
// (get) Token: 0x0600016E RID: 366 RVA: 0x00008021 File Offset: 0x00006221
[DebuggerNonUserCode]
public static MessageParser<Api> Parser
{
get
{
return Api._parser;
}
}
// Token: 0x17000031 RID: 49
// (get) Token: 0x0600016F RID: 367 RVA: 0x00008028 File Offset: 0x00006228
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return ApiReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x17000032 RID: 50
// (get) Token: 0x06000170 RID: 368 RVA: 0x0000803A File Offset: 0x0000623A
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Api.Descriptor;
}
}
// Token: 0x06000171 RID: 369 RVA: 0x00008041 File Offset: 0x00006241
[DebuggerNonUserCode]
public Api()
{
}
// Token: 0x06000172 RID: 370 RVA: 0x00008080 File Offset: 0x00006280
[DebuggerNonUserCode]
public Api(Api other)
: this()
{
this.name_ = other.name_;
this.methods_ = other.methods_.Clone();
this.options_ = other.options_.Clone();
this.version_ = other.version_;
this.SourceContext = ((other.sourceContext_ != null) ? other.SourceContext.Clone() : null);
this.mixins_ = other.mixins_.Clone();
this.syntax_ = other.syntax_;
}
// Token: 0x06000173 RID: 371 RVA: 0x00008106 File Offset: 0x00006306
[DebuggerNonUserCode]
public Api Clone()
{
return new Api(this);
}
// Token: 0x17000033 RID: 51
// (get) Token: 0x06000174 RID: 372 RVA: 0x0000810E File Offset: 0x0000630E
// (set) Token: 0x06000175 RID: 373 RVA: 0x00008116 File Offset: 0x00006316
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000034 RID: 52
// (get) Token: 0x06000176 RID: 374 RVA: 0x00008129 File Offset: 0x00006329
[DebuggerNonUserCode]
public RepeatedField<Method> Methods
{
get
{
return this.methods_;
}
}
// Token: 0x17000035 RID: 53
// (get) Token: 0x06000177 RID: 375 RVA: 0x00008131 File Offset: 0x00006331
[DebuggerNonUserCode]
public RepeatedField<Option> Options
{
get
{
return this.options_;
}
}
// Token: 0x17000036 RID: 54
// (get) Token: 0x06000178 RID: 376 RVA: 0x00008139 File Offset: 0x00006339
// (set) Token: 0x06000179 RID: 377 RVA: 0x00008141 File Offset: 0x00006341
[DebuggerNonUserCode]
public string Version
{
get
{
return this.version_;
}
set
{
this.version_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000037 RID: 55
// (get) Token: 0x0600017A RID: 378 RVA: 0x00008154 File Offset: 0x00006354
// (set) Token: 0x0600017B RID: 379 RVA: 0x0000815C File Offset: 0x0000635C
[DebuggerNonUserCode]
public SourceContext SourceContext
{
get
{
return this.sourceContext_;
}
set
{
this.sourceContext_ = value;
}
}
// Token: 0x17000038 RID: 56
// (get) Token: 0x0600017C RID: 380 RVA: 0x00008165 File Offset: 0x00006365
[DebuggerNonUserCode]
public RepeatedField<Mixin> Mixins
{
get
{
return this.mixins_;
}
}
// Token: 0x17000039 RID: 57
// (get) Token: 0x0600017D RID: 381 RVA: 0x0000816D File Offset: 0x0000636D
// (set) Token: 0x0600017E RID: 382 RVA: 0x00008175 File Offset: 0x00006375
[DebuggerNonUserCode]
public Syntax Syntax
{
get
{
return this.syntax_;
}
set
{
this.syntax_ = value;
}
}
// Token: 0x0600017F RID: 383 RVA: 0x0000817E File Offset: 0x0000637E
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Api);
}
// Token: 0x06000180 RID: 384 RVA: 0x0000818C File Offset: 0x0000638C
[DebuggerNonUserCode]
public bool Equals(Api other)
{
return other != null && (other == this || (!(this.Name != other.Name) && this.methods_.Equals(other.methods_) && this.options_.Equals(other.options_) && !(this.Version != other.Version) && object.Equals(this.SourceContext, other.SourceContext) && this.mixins_.Equals(other.mixins_) && this.Syntax == other.Syntax));
}
// Token: 0x06000181 RID: 385 RVA: 0x00008234 File Offset: 0x00006434
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
num ^= this.methods_.GetHashCode();
num ^= this.options_.GetHashCode();
if (this.Version.Length != 0)
{
num ^= this.Version.GetHashCode();
}
if (this.sourceContext_ != null)
{
num ^= this.SourceContext.GetHashCode();
}
num ^= this.mixins_.GetHashCode();
if (this.Syntax != Syntax.Proto2)
{
num ^= this.Syntax.GetHashCode();
}
return num;
}
// Token: 0x06000182 RID: 386 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000183 RID: 387 RVA: 0x000082DC File Offset: 0x000064DC
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Name.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Name);
}
this.methods_.WriteTo(output, Api._repeated_methods_codec);
this.options_.WriteTo(output, Api._repeated_options_codec);
if (this.Version.Length != 0)
{
output.WriteRawTag(34);
output.WriteString(this.Version);
}
if (this.sourceContext_ != null)
{
output.WriteRawTag(42);
output.WriteMessage(this.SourceContext);
}
this.mixins_.WriteTo(output, Api._repeated_mixins_codec);
if (this.Syntax != Syntax.Proto2)
{
output.WriteRawTag(56);
output.WriteEnum((int)this.Syntax);
}
}
// Token: 0x06000184 RID: 388 RVA: 0x00008398 File Offset: 0x00006598
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
num += this.methods_.CalculateSize(Api._repeated_methods_codec);
num += this.options_.CalculateSize(Api._repeated_options_codec);
if (this.Version.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Version);
}
if (this.sourceContext_ != null)
{
num += 1 + CodedOutputStream.ComputeMessageSize(this.SourceContext);
}
num += this.mixins_.CalculateSize(Api._repeated_mixins_codec);
if (this.Syntax != Syntax.Proto2)
{
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Syntax);
}
return num;
}
// Token: 0x06000185 RID: 389 RVA: 0x0000844C File Offset: 0x0000664C
[DebuggerNonUserCode]
public void MergeFrom(Api other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
this.methods_.Add(other.methods_);
this.options_.Add(other.options_);
if (other.Version.Length != 0)
{
this.Version = other.Version;
}
if (other.sourceContext_ != null)
{
if (this.sourceContext_ == null)
{
this.sourceContext_ = new SourceContext();
}
this.SourceContext.MergeFrom(other.SourceContext);
}
this.mixins_.Add(other.mixins_);
if (other.Syntax != Syntax.Proto2)
{
this.Syntax = other.Syntax;
}
}
// Token: 0x06000186 RID: 390 RVA: 0x00008504 File Offset: 0x00006704
[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.methods_.AddEntriesFrom(input, Api._repeated_methods_codec);
continue;
}
if (num == 26U)
{
this.options_.AddEntriesFrom(input, Api._repeated_options_codec);
continue;
}
}
else if (num <= 42U)
{
if (num == 34U)
{
this.Version = input.ReadString();
continue;
}
if (num == 42U)
{
if (this.sourceContext_ == null)
{
this.sourceContext_ = new SourceContext();
}
input.ReadMessage(this.sourceContext_);
continue;
}
}
else
{
if (num == 50U)
{
this.mixins_.AddEntriesFrom(input, Api._repeated_mixins_codec);
continue;
}
if (num == 56U)
{
this.syntax_ = (Syntax)input.ReadEnum();
continue;
}
}
input.SkipLastField();
}
}
// Token: 0x04000056 RID: 86
private static readonly MessageParser<Api> _parser = new MessageParser<Api>(() => new Api());
// Token: 0x04000057 RID: 87
public const int NameFieldNumber = 1;
// Token: 0x04000058 RID: 88
private string name_ = "";
// Token: 0x04000059 RID: 89
public const int MethodsFieldNumber = 2;
// Token: 0x0400005A RID: 90
private static readonly FieldCodec<Method> _repeated_methods_codec = FieldCodec.ForMessage<Method>(18U, Method.Parser);
// Token: 0x0400005B RID: 91
private readonly RepeatedField<Method> methods_ = new RepeatedField<Method>();
// Token: 0x0400005C RID: 92
public const int OptionsFieldNumber = 3;
// Token: 0x0400005D RID: 93
private static readonly FieldCodec<Option> _repeated_options_codec = FieldCodec.ForMessage<Option>(26U, Option.Parser);
// Token: 0x0400005E RID: 94
private readonly RepeatedField<Option> options_ = new RepeatedField<Option>();
// Token: 0x0400005F RID: 95
public const int VersionFieldNumber = 4;
// Token: 0x04000060 RID: 96
private string version_ = "";
// Token: 0x04000061 RID: 97
public const int SourceContextFieldNumber = 5;
// Token: 0x04000062 RID: 98
private SourceContext sourceContext_;
// Token: 0x04000063 RID: 99
public const int MixinsFieldNumber = 6;
// Token: 0x04000064 RID: 100
private static readonly FieldCodec<Mixin> _repeated_mixins_codec = FieldCodec.ForMessage<Mixin>(50U, Mixin.Parser);
// Token: 0x04000065 RID: 101
private readonly RepeatedField<Mixin> mixins_ = new RepeatedField<Mixin>();
// Token: 0x04000066 RID: 102
public const int SyntaxFieldNumber = 7;
// Token: 0x04000067 RID: 103
private Syntax syntax_;
}
}
+35
View File
@@ -0,0 +1,35 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200001B RID: 27
public static class ApiReflection
{
// Token: 0x1700002F RID: 47
// (get) Token: 0x0600016C RID: 364 RVA: 0x00007E69 File Offset: 0x00006069
public static FileDescriptor Descriptor
{
get
{
return ApiReflection.descriptor;
}
}
// Token: 0x04000055 RID: 85
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[]
{
"Chlnb29nbGUvcHJvdG9idWYvYXBpLnByb3RvEg9nb29nbGUucHJvdG9idWYa", "JGdvb2dsZS9wcm90b2J1Zi9zb3VyY2VfY29udGV4dC5wcm90bxoaZ29vZ2xl", "L3Byb3RvYnVmL3R5cGUucHJvdG8igQIKA0FwaRIMCgRuYW1lGAEgASgJEigK", "B21ldGhvZHMYAiADKAsyFy5nb29nbGUucHJvdG9idWYuTWV0aG9kEigKB29w", "dGlvbnMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuT3B0aW9uEg8KB3ZlcnNp", "b24YBCABKAkSNgoOc291cmNlX2NvbnRleHQYBSABKAsyHi5nb29nbGUucHJv", "dG9idWYuU291cmNlQ29udGV4dBImCgZtaXhpbnMYBiADKAsyFi5nb29nbGUu", "cHJvdG9idWYuTWl4aW4SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3Rv", "YnVmLlN5bnRheCLVAQoGTWV0aG9kEgwKBG5hbWUYASABKAkSGAoQcmVxdWVz", "dF90eXBlX3VybBgCIAEoCRIZChFyZXF1ZXN0X3N0cmVhbWluZxgDIAEoCBIZ",
"ChFyZXNwb25zZV90eXBlX3VybBgEIAEoCRIaChJyZXNwb25zZV9zdHJlYW1p", "bmcYBSABKAgSKAoHb3B0aW9ucxgGIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5P", "cHRpb24SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRh", "eCIjCgVNaXhpbhIMCgRuYW1lGAEgASgJEgwKBHJvb3QYAiABKAlCSAoTY29t", "Lmdvb2dsZS5wcm90b2J1ZkIIQXBpUHJvdG9QAaICA0dQQqoCHkdvb2dsZS5Q", "cm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z"
})), new FileDescriptor[]
{
SourceContextReflection.Descriptor,
TypeReflection.Descriptor
}, new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(Api), Api.Parser, new string[] { "Name", "Methods", "Options", "Version", "SourceContext", "Mixins", "Syntax" }, null, null, null),
new GeneratedClrTypeInfo(typeof(Method), Method.Parser, new string[] { "Name", "RequestTypeUrl", "RequestStreaming", "ResponseTypeUrl", "ResponseStreaming", "Options", "Syntax" }, null, null, null),
new GeneratedClrTypeInfo(typeof(Mixin), Mixin.Parser, new string[] { "Name", "Root" }, null, null, null)
}));
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200003D RID: 61
public sealed class BoolValue : IMessage<BoolValue>, IMessage, IEquatable<BoolValue>, IDeepCloneable<BoolValue>
{
// Token: 0x170000B9 RID: 185
// (get) Token: 0x06000359 RID: 857 RVA: 0x0000CEB5 File Offset: 0x0000B0B5
[DebuggerNonUserCode]
public static MessageParser<BoolValue> Parser
{
get
{
return BoolValue._parser;
}
}
// Token: 0x170000BA RID: 186
// (get) Token: 0x0600035A RID: 858 RVA: 0x0000CEBC File Offset: 0x0000B0BC
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[6];
}
}
// Token: 0x170000BB RID: 187
// (get) Token: 0x0600035B RID: 859 RVA: 0x0000CECE File Offset: 0x0000B0CE
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return BoolValue.Descriptor;
}
}
// Token: 0x0600035C RID: 860 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public BoolValue()
{
}
// Token: 0x0600035D RID: 861 RVA: 0x0000CED5 File Offset: 0x0000B0D5
[DebuggerNonUserCode]
public BoolValue(BoolValue other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600035E RID: 862 RVA: 0x0000CEE9 File Offset: 0x0000B0E9
[DebuggerNonUserCode]
public BoolValue Clone()
{
return new BoolValue(this);
}
// Token: 0x170000BC RID: 188
// (get) Token: 0x0600035F RID: 863 RVA: 0x0000CEF1 File Offset: 0x0000B0F1
// (set) Token: 0x06000360 RID: 864 RVA: 0x0000CEF9 File Offset: 0x0000B0F9
[DebuggerNonUserCode]
public bool Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x06000361 RID: 865 RVA: 0x0000CF02 File Offset: 0x0000B102
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as BoolValue);
}
// Token: 0x06000362 RID: 866 RVA: 0x0000CF10 File Offset: 0x0000B110
[DebuggerNonUserCode]
public bool Equals(BoolValue other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x06000363 RID: 867 RVA: 0x0000CF30 File Offset: 0x0000B130
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000364 RID: 868 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000365 RID: 869 RVA: 0x0000CF59 File Offset: 0x0000B159
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value)
{
output.WriteRawTag(8);
output.WriteBool(this.Value);
}
}
// Token: 0x06000366 RID: 870 RVA: 0x0000CF78 File Offset: 0x0000B178
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value)
{
num += 2;
}
return num;
}
// Token: 0x06000367 RID: 871 RVA: 0x0000CF94 File Offset: 0x0000B194
[DebuggerNonUserCode]
public void MergeFrom(BoolValue other)
{
if (other == null)
{
return;
}
if (other.Value)
{
this.Value = other.Value;
}
}
// Token: 0x06000368 RID: 872 RVA: 0x0000CFB0 File Offset: 0x0000B1B0
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadBool();
}
}
}
// Token: 0x0400010B RID: 267
private static readonly MessageParser<BoolValue> _parser = new MessageParser<BoolValue>(() => new BoolValue());
// Token: 0x0400010C RID: 268
public const int ValueFieldNumber = 1;
// Token: 0x0400010D RID: 269
private bool value_;
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200003F RID: 63
public sealed class BytesValue : IMessage<BytesValue>, IMessage, IEquatable<BytesValue>, IDeepCloneable<BytesValue>
{
// Token: 0x170000C1 RID: 193
// (get) Token: 0x0600037B RID: 891 RVA: 0x0000D182 File Offset: 0x0000B382
[DebuggerNonUserCode]
public static MessageParser<BytesValue> Parser
{
get
{
return BytesValue._parser;
}
}
// Token: 0x170000C2 RID: 194
// (get) Token: 0x0600037C RID: 892 RVA: 0x0000D189 File Offset: 0x0000B389
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[8];
}
}
// Token: 0x170000C3 RID: 195
// (get) Token: 0x0600037D RID: 893 RVA: 0x0000D19B File Offset: 0x0000B39B
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return BytesValue.Descriptor;
}
}
// Token: 0x0600037E RID: 894 RVA: 0x0000D1A2 File Offset: 0x0000B3A2
[DebuggerNonUserCode]
public BytesValue()
{
}
// Token: 0x0600037F RID: 895 RVA: 0x0000D1B5 File Offset: 0x0000B3B5
[DebuggerNonUserCode]
public BytesValue(BytesValue other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x06000380 RID: 896 RVA: 0x0000D1C9 File Offset: 0x0000B3C9
[DebuggerNonUserCode]
public BytesValue Clone()
{
return new BytesValue(this);
}
// Token: 0x170000C4 RID: 196
// (get) Token: 0x06000381 RID: 897 RVA: 0x0000D1D1 File Offset: 0x0000B3D1
// (set) Token: 0x06000382 RID: 898 RVA: 0x0000D1D9 File Offset: 0x0000B3D9
[DebuggerNonUserCode]
public ByteString Value
{
get
{
return this.value_;
}
set
{
this.value_ = ProtoPreconditions.CheckNotNull<ByteString>(value, "value");
}
}
// Token: 0x06000383 RID: 899 RVA: 0x0000D1EC File Offset: 0x0000B3EC
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as BytesValue);
}
// Token: 0x06000384 RID: 900 RVA: 0x0000D1FA File Offset: 0x0000B3FA
[DebuggerNonUserCode]
public bool Equals(BytesValue other)
{
return other != null && (other == this || !(this.Value != other.Value));
}
// Token: 0x06000385 RID: 901 RVA: 0x0000D220 File Offset: 0x0000B420
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value.Length != 0)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000386 RID: 902 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000387 RID: 903 RVA: 0x0000D24B File Offset: 0x0000B44B
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value.Length != 0)
{
output.WriteRawTag(10);
output.WriteBytes(this.Value);
}
}
// Token: 0x06000388 RID: 904 RVA: 0x0000D270 File Offset: 0x0000B470
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value.Length != 0)
{
num += 1 + CodedOutputStream.ComputeBytesSize(this.Value);
}
return num;
}
// Token: 0x06000389 RID: 905 RVA: 0x0000D29D File Offset: 0x0000B49D
[DebuggerNonUserCode]
public void MergeFrom(BytesValue other)
{
if (other == null)
{
return;
}
if (other.Value.Length != 0)
{
this.Value = other.Value;
}
}
// Token: 0x0600038A RID: 906 RVA: 0x0000D2BC File Offset: 0x0000B4BC
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadBytes();
}
}
}
// Token: 0x04000111 RID: 273
private static readonly MessageParser<BytesValue> _parser = new MessageParser<BytesValue>(() => new BytesValue());
// Token: 0x04000112 RID: 274
public const int ValueFieldNumber = 1;
// Token: 0x04000113 RID: 275
private ByteString value_ = ByteString.Empty;
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000037 RID: 55
public sealed class DoubleValue : IMessage<DoubleValue>, IMessage, IEquatable<DoubleValue>, IDeepCloneable<DoubleValue>
{
// Token: 0x170000A1 RID: 161
// (get) Token: 0x060002F3 RID: 755 RVA: 0x0000C698 File Offset: 0x0000A898
[DebuggerNonUserCode]
public static MessageParser<DoubleValue> Parser
{
get
{
return DoubleValue._parser;
}
}
// Token: 0x170000A2 RID: 162
// (get) Token: 0x060002F4 RID: 756 RVA: 0x0000C69F File Offset: 0x0000A89F
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x170000A3 RID: 163
// (get) Token: 0x060002F5 RID: 757 RVA: 0x0000C6B1 File Offset: 0x0000A8B1
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return DoubleValue.Descriptor;
}
}
// Token: 0x060002F6 RID: 758 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public DoubleValue()
{
}
// Token: 0x060002F7 RID: 759 RVA: 0x0000C6B8 File Offset: 0x0000A8B8
[DebuggerNonUserCode]
public DoubleValue(DoubleValue other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x060002F8 RID: 760 RVA: 0x0000C6CC File Offset: 0x0000A8CC
[DebuggerNonUserCode]
public DoubleValue Clone()
{
return new DoubleValue(this);
}
// Token: 0x170000A4 RID: 164
// (get) Token: 0x060002F9 RID: 761 RVA: 0x0000C6D4 File Offset: 0x0000A8D4
// (set) Token: 0x060002FA RID: 762 RVA: 0x0000C6DC File Offset: 0x0000A8DC
[DebuggerNonUserCode]
public double Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x060002FB RID: 763 RVA: 0x0000C6E5 File Offset: 0x0000A8E5
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as DoubleValue);
}
// Token: 0x060002FC RID: 764 RVA: 0x0000C6F3 File Offset: 0x0000A8F3
[DebuggerNonUserCode]
public bool Equals(DoubleValue other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x060002FD RID: 765 RVA: 0x0000C714 File Offset: 0x0000A914
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0.0)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x060002FE RID: 766 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060002FF RID: 767 RVA: 0x0000C746 File Offset: 0x0000A946
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0.0)
{
output.WriteRawTag(9);
output.WriteDouble(this.Value);
}
}
// Token: 0x06000300 RID: 768 RVA: 0x0000C770 File Offset: 0x0000A970
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0.0)
{
num += 9;
}
return num;
}
// Token: 0x06000301 RID: 769 RVA: 0x0000C796 File Offset: 0x0000A996
[DebuggerNonUserCode]
public void MergeFrom(DoubleValue other)
{
if (other == null)
{
return;
}
if (other.Value != 0.0)
{
this.Value = other.Value;
}
}
// Token: 0x06000302 RID: 770 RVA: 0x0000C7BC File Offset: 0x0000A9BC
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 9U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadDouble();
}
}
}
// Token: 0x040000F9 RID: 249
private static readonly MessageParser<DoubleValue> _parser = new MessageParser<DoubleValue>(() => new DoubleValue());
// Token: 0x040000FA RID: 250
public const int ValueFieldNumber = 1;
// Token: 0x040000FB RID: 251
private double value_;
}
}
+371
View File
@@ -0,0 +1,371 @@
using System;
using System.Diagnostics;
using System.Globalization;
using System.Text;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000020 RID: 32
public sealed class Duration : IMessage<Duration>, IMessage, IEquatable<Duration>, IDeepCloneable<Duration>, ICustomDiagnosticMessage
{
// Token: 0x1700004A RID: 74
// (get) Token: 0x060001B9 RID: 441 RVA: 0x00008F1D File Offset: 0x0000711D
[DebuggerNonUserCode]
public static MessageParser<Duration> Parser
{
get
{
return Duration._parser;
}
}
// Token: 0x1700004B RID: 75
// (get) Token: 0x060001BA RID: 442 RVA: 0x00008F24 File Offset: 0x00007124
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return DurationReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x1700004C RID: 76
// (get) Token: 0x060001BB RID: 443 RVA: 0x00008F36 File Offset: 0x00007136
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Duration.Descriptor;
}
}
// Token: 0x060001BC RID: 444 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public Duration()
{
}
// Token: 0x060001BD RID: 445 RVA: 0x00008F3D File Offset: 0x0000713D
[DebuggerNonUserCode]
public Duration(Duration other)
: this()
{
this.seconds_ = other.seconds_;
this.nanos_ = other.nanos_;
}
// Token: 0x060001BE RID: 446 RVA: 0x00008F5D File Offset: 0x0000715D
[DebuggerNonUserCode]
public Duration Clone()
{
return new Duration(this);
}
// Token: 0x1700004D RID: 77
// (get) Token: 0x060001BF RID: 447 RVA: 0x00008F65 File Offset: 0x00007165
// (set) Token: 0x060001C0 RID: 448 RVA: 0x00008F6D File Offset: 0x0000716D
[DebuggerNonUserCode]
public long Seconds
{
get
{
return this.seconds_;
}
set
{
this.seconds_ = value;
}
}
// Token: 0x1700004E RID: 78
// (get) Token: 0x060001C1 RID: 449 RVA: 0x00008F76 File Offset: 0x00007176
// (set) Token: 0x060001C2 RID: 450 RVA: 0x00008F7E File Offset: 0x0000717E
[DebuggerNonUserCode]
public int Nanos
{
get
{
return this.nanos_;
}
set
{
this.nanos_ = value;
}
}
// Token: 0x060001C3 RID: 451 RVA: 0x00008F87 File Offset: 0x00007187
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Duration);
}
// Token: 0x060001C4 RID: 452 RVA: 0x00008F95 File Offset: 0x00007195
[DebuggerNonUserCode]
public bool Equals(Duration other)
{
return other != null && (other == this || (this.Seconds == other.Seconds && this.Nanos == other.Nanos));
}
// Token: 0x060001C5 RID: 453 RVA: 0x00008FC4 File Offset: 0x000071C4
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Seconds != 0L)
{
num ^= this.Seconds.GetHashCode();
}
if (this.Nanos != 0)
{
num ^= this.Nanos.GetHashCode();
}
return num;
}
// Token: 0x060001C6 RID: 454 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060001C7 RID: 455 RVA: 0x00009006 File Offset: 0x00007206
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Seconds != 0L)
{
output.WriteRawTag(8);
output.WriteInt64(this.Seconds);
}
if (this.Nanos != 0)
{
output.WriteRawTag(16);
output.WriteInt32(this.Nanos);
}
}
// Token: 0x060001C8 RID: 456 RVA: 0x00009040 File Offset: 0x00007240
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Seconds != 0L)
{
num += 1 + CodedOutputStream.ComputeInt64Size(this.Seconds);
}
if (this.Nanos != 0)
{
num += 1 + CodedOutputStream.ComputeInt32Size(this.Nanos);
}
return num;
}
// Token: 0x060001C9 RID: 457 RVA: 0x00009080 File Offset: 0x00007280
[DebuggerNonUserCode]
public void MergeFrom(Duration other)
{
if (other == null)
{
return;
}
if (other.Seconds != 0L)
{
this.Seconds = other.Seconds;
}
if (other.Nanos != 0)
{
this.Nanos = other.Nanos;
}
}
// Token: 0x060001CA RID: 458 RVA: 0x000090B0 File Offset: 0x000072B0
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
if (num != 16U)
{
input.SkipLastField();
}
else
{
this.Nanos = input.ReadInt32();
}
}
else
{
this.Seconds = input.ReadInt64();
}
}
}
// Token: 0x060001CB RID: 459 RVA: 0x000090F4 File Offset: 0x000072F4
internal static bool IsNormalized(long seconds, int nanoseconds)
{
return seconds >= -315576000000L && seconds <= 315576000000L && nanoseconds >= -999999999 && nanoseconds <= 999999999 && Math.Sign(seconds) * Math.Sign(nanoseconds) != -1;
}
// Token: 0x060001CC RID: 460 RVA: 0x00009133 File Offset: 0x00007333
public TimeSpan ToTimeSpan()
{
if (!Duration.IsNormalized(this.Seconds, this.Nanos))
{
throw new InvalidOperationException("Duration was not a valid normalized duration");
}
checked
{
return TimeSpan.FromTicks(this.Seconds * 10000000L + unchecked((long)(this.Nanos / 100)));
}
}
// Token: 0x060001CD RID: 461 RVA: 0x00009170 File Offset: 0x00007370
public static Duration FromTimeSpan(TimeSpan timeSpan)
{
long ticks = timeSpan.Ticks;
long num = ticks / 10000000L;
int num2 = checked((int)(ticks % 10000000L) * 100);
return new Duration
{
Seconds = num,
Nanos = num2
};
}
// Token: 0x060001CE RID: 462 RVA: 0x000091AC File Offset: 0x000073AC
public static Duration operator -(Duration value)
{
ProtoPreconditions.CheckNotNull<Duration>(value, "value");
return checked(Duration.Normalize(0L - value.Seconds, 0 - value.Nanos));
}
// Token: 0x060001CF RID: 463 RVA: 0x000091D0 File Offset: 0x000073D0
public static Duration operator +(Duration lhs, Duration rhs)
{
ProtoPreconditions.CheckNotNull<Duration>(lhs, "lhs");
ProtoPreconditions.CheckNotNull<Duration>(rhs, "rhs");
return checked(Duration.Normalize(lhs.Seconds + rhs.Seconds, lhs.Nanos + rhs.Nanos));
}
// Token: 0x060001D0 RID: 464 RVA: 0x00009209 File Offset: 0x00007409
public static Duration operator -(Duration lhs, Duration rhs)
{
ProtoPreconditions.CheckNotNull<Duration>(lhs, "lhs");
ProtoPreconditions.CheckNotNull<Duration>(rhs, "rhs");
return checked(Duration.Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos));
}
// Token: 0x060001D1 RID: 465 RVA: 0x00009244 File Offset: 0x00007444
internal static Duration Normalize(long seconds, int nanoseconds)
{
int num = nanoseconds / 1000000000;
seconds += (long)num;
nanoseconds -= num * 1000000000;
if (seconds < 0L && nanoseconds > 0)
{
seconds += 1L;
nanoseconds -= 1000000000;
}
else if (seconds > 0L && nanoseconds < 0)
{
seconds -= 1L;
nanoseconds += 1000000000;
}
return new Duration
{
Seconds = seconds,
Nanos = nanoseconds
};
}
// Token: 0x060001D2 RID: 466 RVA: 0x000092B0 File Offset: 0x000074B0
internal static string ToJson(long seconds, int nanoseconds, bool diagnosticOnly)
{
if (Duration.IsNormalized(seconds, nanoseconds))
{
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append('"');
if (seconds == 0L && nanoseconds < 0)
{
stringBuilder.Append('-');
}
stringBuilder.Append(seconds.ToString("d", CultureInfo.InvariantCulture));
Duration.AppendNanoseconds(stringBuilder, Math.Abs(nanoseconds));
stringBuilder.Append("s\"");
return stringBuilder.ToString();
}
if (diagnosticOnly)
{
return string.Format(CultureInfo.InvariantCulture, "{{ \"@warning\": \"Invalid Duration\", \"seconds\": \"{0}\", \"nanos\": {1} }}", new object[] { seconds, nanoseconds });
}
throw new InvalidOperationException("Non-normalized duration value");
}
// Token: 0x060001D3 RID: 467 RVA: 0x00009351 File Offset: 0x00007551
public string ToDiagnosticString()
{
return Duration.ToJson(this.Seconds, this.Nanos, true);
}
// Token: 0x060001D4 RID: 468 RVA: 0x00009368 File Offset: 0x00007568
internal static void AppendNanoseconds(StringBuilder builder, int nanos)
{
if (nanos != 0)
{
builder.Append('.');
if (nanos % 1000000 == 0)
{
builder.Append((nanos / 1000000).ToString("d3", CultureInfo.InvariantCulture));
return;
}
if (nanos % 1000 == 0)
{
builder.Append((nanos / 1000).ToString("d6", CultureInfo.InvariantCulture));
return;
}
builder.Append(nanos.ToString("d9", CultureInfo.InvariantCulture));
}
}
// Token: 0x0400007E RID: 126
private static readonly MessageParser<Duration> _parser = new MessageParser<Duration>(() => new Duration());
// Token: 0x0400007F RID: 127
public const int SecondsFieldNumber = 1;
// Token: 0x04000080 RID: 128
private long seconds_;
// Token: 0x04000081 RID: 129
public const int NanosFieldNumber = 2;
// Token: 0x04000082 RID: 130
private int nanos_;
// Token: 0x04000083 RID: 131
public const int NanosecondsPerSecond = 1000000000;
// Token: 0x04000084 RID: 132
public const int NanosecondsPerTick = 100;
// Token: 0x04000085 RID: 133
public const long MaxSeconds = 315576000000L;
// Token: 0x04000086 RID: 134
public const long MinSeconds = -315576000000L;
// Token: 0x04000087 RID: 135
internal const int MaxNanoseconds = 999999999;
// Token: 0x04000088 RID: 136
internal const int MinNanoseconds = -999999999;
}
}
@@ -0,0 +1,25 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200001F RID: 31
public static class DurationReflection
{
// Token: 0x17000049 RID: 73
// (get) Token: 0x060001B7 RID: 439 RVA: 0x00008E7D File Offset: 0x0000707D
public static FileDescriptor Descriptor
{
get
{
return DurationReflection.descriptor;
}
}
// Token: 0x0400007D RID: 125
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[] { "Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90", "b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIg", "ASgFQnwKE2NvbS5nb29nbGUucHJvdG9idWZCDUR1cmF0aW9uUHJvdG9QAVoq", "Z2l0aHViLmNvbS9nb2xhbmcvcHJvdG9idWYvcHR5cGVzL2R1cmF0aW9u+AEB", "ogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90", "bzM=" })), new FileDescriptor[0], new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(Duration), Duration.Parser, new string[] { "Seconds", "Nanos" }, null, null, null)
}));
}
}
+123
View File
@@ -0,0 +1,123 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000022 RID: 34
public sealed class Empty : IMessage<Empty>, IMessage, IEquatable<Empty>, IDeepCloneable<Empty>
{
// Token: 0x17000050 RID: 80
// (get) Token: 0x060001D8 RID: 472 RVA: 0x0000948C File Offset: 0x0000768C
[DebuggerNonUserCode]
public static MessageParser<Empty> Parser
{
get
{
return Empty._parser;
}
}
// Token: 0x17000051 RID: 81
// (get) Token: 0x060001D9 RID: 473 RVA: 0x00009493 File Offset: 0x00007693
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return EmptyReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x17000052 RID: 82
// (get) Token: 0x060001DA RID: 474 RVA: 0x000094A5 File Offset: 0x000076A5
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Empty.Descriptor;
}
}
// Token: 0x060001DB RID: 475 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public Empty()
{
}
// Token: 0x060001DC RID: 476 RVA: 0x000094AC File Offset: 0x000076AC
[DebuggerNonUserCode]
public Empty(Empty other)
: this()
{
}
// Token: 0x060001DD RID: 477 RVA: 0x000094B4 File Offset: 0x000076B4
[DebuggerNonUserCode]
public Empty Clone()
{
return new Empty(this);
}
// Token: 0x060001DE RID: 478 RVA: 0x000094BC File Offset: 0x000076BC
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Empty);
}
// Token: 0x060001DF RID: 479 RVA: 0x000094CA File Offset: 0x000076CA
[DebuggerNonUserCode]
public bool Equals(Empty other)
{
return other != null;
}
// Token: 0x060001E0 RID: 480 RVA: 0x0000324B File Offset: 0x0000144B
[DebuggerNonUserCode]
public override int GetHashCode()
{
return 1;
}
// Token: 0x060001E1 RID: 481 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060001E2 RID: 482 RVA: 0x00007622 File Offset: 0x00005822
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
}
// Token: 0x060001E3 RID: 483 RVA: 0x0000761F File Offset: 0x0000581F
[DebuggerNonUserCode]
public int CalculateSize()
{
return 0;
}
// Token: 0x060001E4 RID: 484 RVA: 0x000094D6 File Offset: 0x000076D6
[DebuggerNonUserCode]
public void MergeFrom(Empty other)
{
}
// Token: 0x060001E5 RID: 485 RVA: 0x000094DC File Offset: 0x000076DC
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
while (input.ReadTag() != 0U)
{
input.SkipLastField();
}
}
// Token: 0x0400008A RID: 138
private static readonly MessageParser<Empty> _parser = new MessageParser<Empty>(() => new Empty());
}
}
@@ -0,0 +1,25 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000021 RID: 33
public static class EmptyReflection
{
// Token: 0x1700004F RID: 79
// (get) Token: 0x060001D6 RID: 470 RVA: 0x00009409 File Offset: 0x00007609
public static FileDescriptor Descriptor
{
get
{
return EmptyReflection.descriptor;
}
}
// Token: 0x04000089 RID: 137
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[] { "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", "ZiIHCgVFbXB0eUJ2ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", "UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0efgB", "AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv", "dG8z" })), new FileDescriptor[0], new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(Empty), Empty.Parser, null, null, null, null)
}));
}
}
+340
View File
@@ -0,0 +1,340 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000033 RID: 51
public sealed class Enum : IMessage<Enum>, IMessage, IEquatable<Enum>, IDeepCloneable<Enum>
{
// Token: 0x1700008D RID: 141
// (get) Token: 0x060002B3 RID: 691 RVA: 0x0000BAA8 File Offset: 0x00009CA8
[DebuggerNonUserCode]
public static MessageParser<Enum> Parser
{
get
{
return Enum._parser;
}
}
// Token: 0x1700008E RID: 142
// (get) Token: 0x060002B4 RID: 692 RVA: 0x0000BAAF File Offset: 0x00009CAF
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return TypeReflection.Descriptor.MessageTypes[2];
}
}
// Token: 0x1700008F RID: 143
// (get) Token: 0x060002B5 RID: 693 RVA: 0x0000BAC1 File Offset: 0x00009CC1
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Enum.Descriptor;
}
}
// Token: 0x060002B6 RID: 694 RVA: 0x0000BAC8 File Offset: 0x00009CC8
[DebuggerNonUserCode]
public Enum()
{
}
// Token: 0x060002B7 RID: 695 RVA: 0x0000BAF4 File Offset: 0x00009CF4
[DebuggerNonUserCode]
public Enum(Enum other)
: this()
{
this.name_ = other.name_;
this.enumvalue_ = other.enumvalue_.Clone();
this.options_ = other.options_.Clone();
this.SourceContext = ((other.sourceContext_ != null) ? other.SourceContext.Clone() : null);
this.syntax_ = other.syntax_;
}
// Token: 0x060002B8 RID: 696 RVA: 0x0000BB5D File Offset: 0x00009D5D
[DebuggerNonUserCode]
public Enum Clone()
{
return new Enum(this);
}
// Token: 0x17000090 RID: 144
// (get) Token: 0x060002B9 RID: 697 RVA: 0x0000BB65 File Offset: 0x00009D65
// (set) Token: 0x060002BA RID: 698 RVA: 0x0000BB6D File Offset: 0x00009D6D
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000091 RID: 145
// (get) Token: 0x060002BB RID: 699 RVA: 0x0000BB80 File Offset: 0x00009D80
[DebuggerNonUserCode]
public RepeatedField<EnumValue> Enumvalue
{
get
{
return this.enumvalue_;
}
}
// Token: 0x17000092 RID: 146
// (get) Token: 0x060002BC RID: 700 RVA: 0x0000BB88 File Offset: 0x00009D88
[DebuggerNonUserCode]
public RepeatedField<Option> Options
{
get
{
return this.options_;
}
}
// Token: 0x17000093 RID: 147
// (get) Token: 0x060002BD RID: 701 RVA: 0x0000BB90 File Offset: 0x00009D90
// (set) Token: 0x060002BE RID: 702 RVA: 0x0000BB98 File Offset: 0x00009D98
[DebuggerNonUserCode]
public SourceContext SourceContext
{
get
{
return this.sourceContext_;
}
set
{
this.sourceContext_ = value;
}
}
// Token: 0x17000094 RID: 148
// (get) Token: 0x060002BF RID: 703 RVA: 0x0000BBA1 File Offset: 0x00009DA1
// (set) Token: 0x060002C0 RID: 704 RVA: 0x0000BBA9 File Offset: 0x00009DA9
[DebuggerNonUserCode]
public Syntax Syntax
{
get
{
return this.syntax_;
}
set
{
this.syntax_ = value;
}
}
// Token: 0x060002C1 RID: 705 RVA: 0x0000BBB2 File Offset: 0x00009DB2
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Enum);
}
// Token: 0x060002C2 RID: 706 RVA: 0x0000BBC0 File Offset: 0x00009DC0
[DebuggerNonUserCode]
public bool Equals(Enum other)
{
return other != null && (other == this || (!(this.Name != other.Name) && this.enumvalue_.Equals(other.enumvalue_) && this.options_.Equals(other.options_) && object.Equals(this.SourceContext, other.SourceContext) && this.Syntax == other.Syntax));
}
// Token: 0x060002C3 RID: 707 RVA: 0x0000BC40 File Offset: 0x00009E40
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
num ^= this.enumvalue_.GetHashCode();
num ^= this.options_.GetHashCode();
if (this.sourceContext_ != null)
{
num ^= this.SourceContext.GetHashCode();
}
if (this.Syntax != Syntax.Proto2)
{
num ^= this.Syntax.GetHashCode();
}
return num;
}
// Token: 0x060002C4 RID: 708 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060002C5 RID: 709 RVA: 0x0000BCBC File Offset: 0x00009EBC
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Name.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Name);
}
this.enumvalue_.WriteTo(output, Enum._repeated_enumvalue_codec);
this.options_.WriteTo(output, Enum._repeated_options_codec);
if (this.sourceContext_ != null)
{
output.WriteRawTag(34);
output.WriteMessage(this.SourceContext);
}
if (this.Syntax != Syntax.Proto2)
{
output.WriteRawTag(40);
output.WriteEnum((int)this.Syntax);
}
}
// Token: 0x060002C6 RID: 710 RVA: 0x0000BD44 File Offset: 0x00009F44
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
num += this.enumvalue_.CalculateSize(Enum._repeated_enumvalue_codec);
num += this.options_.CalculateSize(Enum._repeated_options_codec);
if (this.sourceContext_ != null)
{
num += 1 + CodedOutputStream.ComputeMessageSize(this.SourceContext);
}
if (this.Syntax != Syntax.Proto2)
{
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Syntax);
}
return num;
}
// Token: 0x060002C7 RID: 711 RVA: 0x0000BDC8 File Offset: 0x00009FC8
[DebuggerNonUserCode]
public void MergeFrom(Enum other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
this.enumvalue_.Add(other.enumvalue_);
this.options_.Add(other.options_);
if (other.sourceContext_ != null)
{
if (this.sourceContext_ == null)
{
this.sourceContext_ = new SourceContext();
}
this.SourceContext.MergeFrom(other.SourceContext);
}
if (other.Syntax != Syntax.Proto2)
{
this.Syntax = other.Syntax;
}
}
// Token: 0x060002C8 RID: 712 RVA: 0x0000BE54 File Offset: 0x0000A054
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num <= 18U)
{
if (num == 10U)
{
this.Name = input.ReadString();
continue;
}
if (num == 18U)
{
this.enumvalue_.AddEntriesFrom(input, Enum._repeated_enumvalue_codec);
continue;
}
}
else
{
if (num == 26U)
{
this.options_.AddEntriesFrom(input, Enum._repeated_options_codec);
continue;
}
if (num == 34U)
{
if (this.sourceContext_ == null)
{
this.sourceContext_ = new SourceContext();
}
input.ReadMessage(this.sourceContext_);
continue;
}
if (num == 40U)
{
this.syntax_ = (Syntax)input.ReadEnum();
continue;
}
}
input.SkipLastField();
}
}
// Token: 0x040000DD RID: 221
private static readonly MessageParser<Enum> _parser = new MessageParser<Enum>(() => new Enum());
// Token: 0x040000DE RID: 222
public const int NameFieldNumber = 1;
// Token: 0x040000DF RID: 223
private string name_ = "";
// Token: 0x040000E0 RID: 224
public const int EnumvalueFieldNumber = 2;
// Token: 0x040000E1 RID: 225
private static readonly FieldCodec<EnumValue> _repeated_enumvalue_codec = FieldCodec.ForMessage<EnumValue>(18U, EnumValue.Parser);
// Token: 0x040000E2 RID: 226
private readonly RepeatedField<EnumValue> enumvalue_ = new RepeatedField<EnumValue>();
// Token: 0x040000E3 RID: 227
public const int OptionsFieldNumber = 3;
// Token: 0x040000E4 RID: 228
private static readonly FieldCodec<Option> _repeated_options_codec = FieldCodec.ForMessage<Option>(26U, Option.Parser);
// Token: 0x040000E5 RID: 229
private readonly RepeatedField<Option> options_ = new RepeatedField<Option>();
// Token: 0x040000E6 RID: 230
public const int SourceContextFieldNumber = 4;
// Token: 0x040000E7 RID: 231
private SourceContext sourceContext_;
// Token: 0x040000E8 RID: 232
public const int SyntaxFieldNumber = 5;
// Token: 0x040000E9 RID: 233
private Syntax syntax_;
}
}
+255
View File
@@ -0,0 +1,255 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000034 RID: 52
public sealed class EnumValue : IMessage<EnumValue>, IMessage, IEquatable<EnumValue>, IDeepCloneable<EnumValue>
{
// Token: 0x17000095 RID: 149
// (get) Token: 0x060002CA RID: 714 RVA: 0x0000BF3A File Offset: 0x0000A13A
[DebuggerNonUserCode]
public static MessageParser<EnumValue> Parser
{
get
{
return EnumValue._parser;
}
}
// Token: 0x17000096 RID: 150
// (get) Token: 0x060002CB RID: 715 RVA: 0x0000BF41 File Offset: 0x0000A141
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return TypeReflection.Descriptor.MessageTypes[3];
}
}
// Token: 0x17000097 RID: 151
// (get) Token: 0x060002CC RID: 716 RVA: 0x0000BF53 File Offset: 0x0000A153
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return EnumValue.Descriptor;
}
}
// Token: 0x060002CD RID: 717 RVA: 0x0000BF5A File Offset: 0x0000A15A
[DebuggerNonUserCode]
public EnumValue()
{
}
// Token: 0x060002CE RID: 718 RVA: 0x0000BF78 File Offset: 0x0000A178
[DebuggerNonUserCode]
public EnumValue(EnumValue other)
: this()
{
this.name_ = other.name_;
this.number_ = other.number_;
this.options_ = other.options_.Clone();
}
// Token: 0x060002CF RID: 719 RVA: 0x0000BFA9 File Offset: 0x0000A1A9
[DebuggerNonUserCode]
public EnumValue Clone()
{
return new EnumValue(this);
}
// Token: 0x17000098 RID: 152
// (get) Token: 0x060002D0 RID: 720 RVA: 0x0000BFB1 File Offset: 0x0000A1B1
// (set) Token: 0x060002D1 RID: 721 RVA: 0x0000BFB9 File Offset: 0x0000A1B9
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000099 RID: 153
// (get) Token: 0x060002D2 RID: 722 RVA: 0x0000BFCC File Offset: 0x0000A1CC
// (set) Token: 0x060002D3 RID: 723 RVA: 0x0000BFD4 File Offset: 0x0000A1D4
[DebuggerNonUserCode]
public int Number
{
get
{
return this.number_;
}
set
{
this.number_ = value;
}
}
// Token: 0x1700009A RID: 154
// (get) Token: 0x060002D4 RID: 724 RVA: 0x0000BFDD File Offset: 0x0000A1DD
[DebuggerNonUserCode]
public RepeatedField<Option> Options
{
get
{
return this.options_;
}
}
// Token: 0x060002D5 RID: 725 RVA: 0x0000BFE5 File Offset: 0x0000A1E5
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as EnumValue);
}
// Token: 0x060002D6 RID: 726 RVA: 0x0000BFF4 File Offset: 0x0000A1F4
[DebuggerNonUserCode]
public bool Equals(EnumValue other)
{
return other != null && (other == this || (!(this.Name != other.Name) && this.Number == other.Number && this.options_.Equals(other.options_)));
}
// Token: 0x060002D7 RID: 727 RVA: 0x0000C048 File Offset: 0x0000A248
[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();
}
return num ^ this.options_.GetHashCode();
}
// Token: 0x060002D8 RID: 728 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060002D9 RID: 729 RVA: 0x0000C09C File Offset: 0x0000A29C
[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);
}
this.options_.WriteTo(output, EnumValue._repeated_options_codec);
}
// Token: 0x060002DA RID: 730 RVA: 0x0000C0F8 File Offset: 0x0000A2F8
[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);
}
return num + this.options_.CalculateSize(EnumValue._repeated_options_codec);
}
// Token: 0x060002DB RID: 731 RVA: 0x0000C150 File Offset: 0x0000A350
[DebuggerNonUserCode]
public void MergeFrom(EnumValue other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
if (other.Number != 0)
{
this.Number = other.Number;
}
this.options_.Add(other.options_);
}
// Token: 0x060002DC RID: 732 RVA: 0x0000C1A0 File Offset: 0x0000A3A0
[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
{
this.options_.AddEntriesFrom(input, EnumValue._repeated_options_codec);
}
}
else
{
this.Number = input.ReadInt32();
}
}
else
{
this.Name = input.ReadString();
}
}
}
// Token: 0x040000EA RID: 234
private static readonly MessageParser<EnumValue> _parser = new MessageParser<EnumValue>(() => new EnumValue());
// Token: 0x040000EB RID: 235
public const int NameFieldNumber = 1;
// Token: 0x040000EC RID: 236
private string name_ = "";
// Token: 0x040000ED RID: 237
public const int NumberFieldNumber = 2;
// Token: 0x040000EE RID: 238
private int number_;
// Token: 0x040000EF RID: 239
public const int OptionsFieldNumber = 3;
// Token: 0x040000F0 RID: 240
private static readonly FieldCodec<Option> _repeated_options_codec = FieldCodec.ForMessage<Option>(26U, Option.Parser);
// Token: 0x040000F1 RID: 241
private readonly RepeatedField<Option> options_ = new RepeatedField<Option>();
}
}
+665
View File
@@ -0,0 +1,665 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000032 RID: 50
public sealed class Field : IMessage<Field>, IMessage, IEquatable<Field>, IDeepCloneable<Field>
{
// Token: 0x17000080 RID: 128
// (get) Token: 0x06000291 RID: 657 RVA: 0x0000B299 File Offset: 0x00009499
[DebuggerNonUserCode]
public static MessageParser<Field> Parser
{
get
{
return Field._parser;
}
}
// Token: 0x17000081 RID: 129
// (get) Token: 0x06000292 RID: 658 RVA: 0x0000B2A0 File Offset: 0x000094A0
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return TypeReflection.Descriptor.MessageTypes[1];
}
}
// Token: 0x17000082 RID: 130
// (get) Token: 0x06000293 RID: 659 RVA: 0x0000B2B2 File Offset: 0x000094B2
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Field.Descriptor;
}
}
// Token: 0x06000294 RID: 660 RVA: 0x0000B2B9 File Offset: 0x000094B9
[DebuggerNonUserCode]
public Field()
{
}
// Token: 0x06000295 RID: 661 RVA: 0x0000B2F8 File Offset: 0x000094F8
[DebuggerNonUserCode]
public Field(Field other)
: this()
{
this.kind_ = other.kind_;
this.cardinality_ = other.cardinality_;
this.number_ = other.number_;
this.name_ = other.name_;
this.typeUrl_ = other.typeUrl_;
this.oneofIndex_ = other.oneofIndex_;
this.packed_ = other.packed_;
this.options_ = other.options_.Clone();
this.jsonName_ = other.jsonName_;
this.defaultValue_ = other.defaultValue_;
}
// Token: 0x06000296 RID: 662 RVA: 0x0000B388 File Offset: 0x00009588
[DebuggerNonUserCode]
public Field Clone()
{
return new Field(this);
}
// Token: 0x17000083 RID: 131
// (get) Token: 0x06000297 RID: 663 RVA: 0x0000B390 File Offset: 0x00009590
// (set) Token: 0x06000298 RID: 664 RVA: 0x0000B398 File Offset: 0x00009598
[DebuggerNonUserCode]
public Field.Types.Kind Kind
{
get
{
return this.kind_;
}
set
{
this.kind_ = value;
}
}
// Token: 0x17000084 RID: 132
// (get) Token: 0x06000299 RID: 665 RVA: 0x0000B3A1 File Offset: 0x000095A1
// (set) Token: 0x0600029A RID: 666 RVA: 0x0000B3A9 File Offset: 0x000095A9
[DebuggerNonUserCode]
public Field.Types.Cardinality Cardinality
{
get
{
return this.cardinality_;
}
set
{
this.cardinality_ = value;
}
}
// Token: 0x17000085 RID: 133
// (get) Token: 0x0600029B RID: 667 RVA: 0x0000B3B2 File Offset: 0x000095B2
// (set) Token: 0x0600029C RID: 668 RVA: 0x0000B3BA File Offset: 0x000095BA
[DebuggerNonUserCode]
public int Number
{
get
{
return this.number_;
}
set
{
this.number_ = value;
}
}
// Token: 0x17000086 RID: 134
// (get) Token: 0x0600029D RID: 669 RVA: 0x0000B3C3 File Offset: 0x000095C3
// (set) Token: 0x0600029E RID: 670 RVA: 0x0000B3CB File Offset: 0x000095CB
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000087 RID: 135
// (get) Token: 0x0600029F RID: 671 RVA: 0x0000B3DE File Offset: 0x000095DE
// (set) Token: 0x060002A0 RID: 672 RVA: 0x0000B3E6 File Offset: 0x000095E6
[DebuggerNonUserCode]
public string TypeUrl
{
get
{
return this.typeUrl_;
}
set
{
this.typeUrl_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000088 RID: 136
// (get) Token: 0x060002A1 RID: 673 RVA: 0x0000B3F9 File Offset: 0x000095F9
// (set) Token: 0x060002A2 RID: 674 RVA: 0x0000B401 File Offset: 0x00009601
[DebuggerNonUserCode]
public int OneofIndex
{
get
{
return this.oneofIndex_;
}
set
{
this.oneofIndex_ = value;
}
}
// Token: 0x17000089 RID: 137
// (get) Token: 0x060002A3 RID: 675 RVA: 0x0000B40A File Offset: 0x0000960A
// (set) Token: 0x060002A4 RID: 676 RVA: 0x0000B412 File Offset: 0x00009612
[DebuggerNonUserCode]
public bool Packed
{
get
{
return this.packed_;
}
set
{
this.packed_ = value;
}
}
// Token: 0x1700008A RID: 138
// (get) Token: 0x060002A5 RID: 677 RVA: 0x0000B41B File Offset: 0x0000961B
[DebuggerNonUserCode]
public RepeatedField<Option> Options
{
get
{
return this.options_;
}
}
// Token: 0x1700008B RID: 139
// (get) Token: 0x060002A6 RID: 678 RVA: 0x0000B423 File Offset: 0x00009623
// (set) Token: 0x060002A7 RID: 679 RVA: 0x0000B42B File Offset: 0x0000962B
[DebuggerNonUserCode]
public string JsonName
{
get
{
return this.jsonName_;
}
set
{
this.jsonName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x1700008C RID: 140
// (get) Token: 0x060002A8 RID: 680 RVA: 0x0000B43E File Offset: 0x0000963E
// (set) Token: 0x060002A9 RID: 681 RVA: 0x0000B446 File Offset: 0x00009646
[DebuggerNonUserCode]
public string DefaultValue
{
get
{
return this.defaultValue_;
}
set
{
this.defaultValue_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x060002AA RID: 682 RVA: 0x0000B459 File Offset: 0x00009659
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Field);
}
// Token: 0x060002AB RID: 683 RVA: 0x0000B468 File Offset: 0x00009668
[DebuggerNonUserCode]
public bool Equals(Field other)
{
return other != null && (other == this || (this.Kind == other.Kind && this.Cardinality == other.Cardinality && this.Number == other.Number && !(this.Name != other.Name) && !(this.TypeUrl != other.TypeUrl) && this.OneofIndex == other.OneofIndex && this.Packed == other.Packed && this.options_.Equals(other.options_) && !(this.JsonName != other.JsonName) && !(this.DefaultValue != other.DefaultValue)));
}
// Token: 0x060002AC RID: 684 RVA: 0x0000B53C File Offset: 0x0000973C
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Kind != Field.Types.Kind.TypeUnknown)
{
num ^= this.Kind.GetHashCode();
}
if (this.Cardinality != Field.Types.Cardinality.Unknown)
{
num ^= this.Cardinality.GetHashCode();
}
if (this.Number != 0)
{
num ^= this.Number.GetHashCode();
}
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
if (this.TypeUrl.Length != 0)
{
num ^= this.TypeUrl.GetHashCode();
}
if (this.OneofIndex != 0)
{
num ^= this.OneofIndex.GetHashCode();
}
if (this.Packed)
{
num ^= this.Packed.GetHashCode();
}
num ^= this.options_.GetHashCode();
if (this.JsonName.Length != 0)
{
num ^= this.JsonName.GetHashCode();
}
if (this.DefaultValue.Length != 0)
{
num ^= this.DefaultValue.GetHashCode();
}
return num;
}
// Token: 0x060002AD RID: 685 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060002AE RID: 686 RVA: 0x0000B650 File Offset: 0x00009850
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Kind != Field.Types.Kind.TypeUnknown)
{
output.WriteRawTag(8);
output.WriteEnum((int)this.Kind);
}
if (this.Cardinality != Field.Types.Cardinality.Unknown)
{
output.WriteRawTag(16);
output.WriteEnum((int)this.Cardinality);
}
if (this.Number != 0)
{
output.WriteRawTag(24);
output.WriteInt32(this.Number);
}
if (this.Name.Length != 0)
{
output.WriteRawTag(34);
output.WriteString(this.Name);
}
if (this.TypeUrl.Length != 0)
{
output.WriteRawTag(50);
output.WriteString(this.TypeUrl);
}
if (this.OneofIndex != 0)
{
output.WriteRawTag(56);
output.WriteInt32(this.OneofIndex);
}
if (this.Packed)
{
output.WriteRawTag(64);
output.WriteBool(this.Packed);
}
this.options_.WriteTo(output, Field._repeated_options_codec);
if (this.JsonName.Length != 0)
{
output.WriteRawTag(82);
output.WriteString(this.JsonName);
}
if (this.DefaultValue.Length != 0)
{
output.WriteRawTag(90);
output.WriteString(this.DefaultValue);
}
}
// Token: 0x060002AF RID: 687 RVA: 0x0000B780 File Offset: 0x00009980
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Kind != Field.Types.Kind.TypeUnknown)
{
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Kind);
}
if (this.Cardinality != Field.Types.Cardinality.Unknown)
{
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Cardinality);
}
if (this.Number != 0)
{
num += 1 + CodedOutputStream.ComputeInt32Size(this.Number);
}
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
if (this.TypeUrl.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.TypeUrl);
}
if (this.OneofIndex != 0)
{
num += 1 + CodedOutputStream.ComputeInt32Size(this.OneofIndex);
}
if (this.Packed)
{
num += 2;
}
num += this.options_.CalculateSize(Field._repeated_options_codec);
if (this.JsonName.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.JsonName);
}
if (this.DefaultValue.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.DefaultValue);
}
return num;
}
// Token: 0x060002B0 RID: 688 RVA: 0x0000B884 File Offset: 0x00009A84
[DebuggerNonUserCode]
public void MergeFrom(Field other)
{
if (other == null)
{
return;
}
if (other.Kind != Field.Types.Kind.TypeUnknown)
{
this.Kind = other.Kind;
}
if (other.Cardinality != Field.Types.Cardinality.Unknown)
{
this.Cardinality = other.Cardinality;
}
if (other.Number != 0)
{
this.Number = other.Number;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
if (other.TypeUrl.Length != 0)
{
this.TypeUrl = other.TypeUrl;
}
if (other.OneofIndex != 0)
{
this.OneofIndex = other.OneofIndex;
}
if (other.Packed)
{
this.Packed = other.Packed;
}
this.options_.Add(other.options_);
if (other.JsonName.Length != 0)
{
this.JsonName = other.JsonName;
}
if (other.DefaultValue.Length != 0)
{
this.DefaultValue = other.DefaultValue;
}
}
// Token: 0x060002B1 RID: 689 RVA: 0x0000B970 File Offset: 0x00009B70
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num <= 50U)
{
if (num <= 16U)
{
if (num == 8U)
{
this.kind_ = (Field.Types.Kind)input.ReadEnum();
continue;
}
if (num == 16U)
{
this.cardinality_ = (Field.Types.Cardinality)input.ReadEnum();
continue;
}
}
else
{
if (num == 24U)
{
this.Number = input.ReadInt32();
continue;
}
if (num == 34U)
{
this.Name = input.ReadString();
continue;
}
if (num == 50U)
{
this.TypeUrl = input.ReadString();
continue;
}
}
}
else if (num <= 64U)
{
if (num == 56U)
{
this.OneofIndex = input.ReadInt32();
continue;
}
if (num == 64U)
{
this.Packed = input.ReadBool();
continue;
}
}
else
{
if (num == 74U)
{
this.options_.AddEntriesFrom(input, Field._repeated_options_codec);
continue;
}
if (num == 82U)
{
this.JsonName = input.ReadString();
continue;
}
if (num == 90U)
{
this.DefaultValue = input.ReadString();
continue;
}
}
input.SkipLastField();
}
}
// Token: 0x040000C7 RID: 199
private static readonly MessageParser<Field> _parser = new MessageParser<Field>(() => new Field());
// Token: 0x040000C8 RID: 200
public const int KindFieldNumber = 1;
// Token: 0x040000C9 RID: 201
private Field.Types.Kind kind_;
// Token: 0x040000CA RID: 202
public const int CardinalityFieldNumber = 2;
// Token: 0x040000CB RID: 203
private Field.Types.Cardinality cardinality_;
// Token: 0x040000CC RID: 204
public const int NumberFieldNumber = 3;
// Token: 0x040000CD RID: 205
private int number_;
// Token: 0x040000CE RID: 206
public const int NameFieldNumber = 4;
// Token: 0x040000CF RID: 207
private string name_ = "";
// Token: 0x040000D0 RID: 208
public const int TypeUrlFieldNumber = 6;
// Token: 0x040000D1 RID: 209
private string typeUrl_ = "";
// Token: 0x040000D2 RID: 210
public const int OneofIndexFieldNumber = 7;
// Token: 0x040000D3 RID: 211
private int oneofIndex_;
// Token: 0x040000D4 RID: 212
public const int PackedFieldNumber = 8;
// Token: 0x040000D5 RID: 213
private bool packed_;
// Token: 0x040000D6 RID: 214
public const int OptionsFieldNumber = 9;
// Token: 0x040000D7 RID: 215
private static readonly FieldCodec<Option> _repeated_options_codec = FieldCodec.ForMessage<Option>(74U, Option.Parser);
// Token: 0x040000D8 RID: 216
private readonly RepeatedField<Option> options_ = new RepeatedField<Option>();
// Token: 0x040000D9 RID: 217
public const int JsonNameFieldNumber = 10;
// Token: 0x040000DA RID: 218
private string jsonName_ = "";
// Token: 0x040000DB RID: 219
public const int DefaultValueFieldNumber = 11;
// Token: 0x040000DC RID: 220
private string defaultValue_ = "";
// Token: 0x02000094 RID: 148
[DebuggerNonUserCode]
public static class Types
{
// Token: 0x020000D3 RID: 211
public enum Kind
{
// Token: 0x0400032C RID: 812
[OriginalName("TYPE_UNKNOWN")]
TypeUnknown,
// Token: 0x0400032D RID: 813
[OriginalName("TYPE_DOUBLE")]
TypeDouble,
// Token: 0x0400032E RID: 814
[OriginalName("TYPE_FLOAT")]
TypeFloat,
// Token: 0x0400032F RID: 815
[OriginalName("TYPE_INT64")]
TypeInt64,
// Token: 0x04000330 RID: 816
[OriginalName("TYPE_UINT64")]
TypeUint64,
// Token: 0x04000331 RID: 817
[OriginalName("TYPE_INT32")]
TypeInt32,
// Token: 0x04000332 RID: 818
[OriginalName("TYPE_FIXED64")]
TypeFixed64,
// Token: 0x04000333 RID: 819
[OriginalName("TYPE_FIXED32")]
TypeFixed32,
// Token: 0x04000334 RID: 820
[OriginalName("TYPE_BOOL")]
TypeBool,
// Token: 0x04000335 RID: 821
[OriginalName("TYPE_STRING")]
TypeString,
// Token: 0x04000336 RID: 822
[OriginalName("TYPE_GROUP")]
TypeGroup,
// Token: 0x04000337 RID: 823
[OriginalName("TYPE_MESSAGE")]
TypeMessage,
// Token: 0x04000338 RID: 824
[OriginalName("TYPE_BYTES")]
TypeBytes,
// Token: 0x04000339 RID: 825
[OriginalName("TYPE_UINT32")]
TypeUint32,
// Token: 0x0400033A RID: 826
[OriginalName("TYPE_ENUM")]
TypeEnum,
// Token: 0x0400033B RID: 827
[OriginalName("TYPE_SFIXED32")]
TypeSfixed32,
// Token: 0x0400033C RID: 828
[OriginalName("TYPE_SFIXED64")]
TypeSfixed64,
// Token: 0x0400033D RID: 829
[OriginalName("TYPE_SINT32")]
TypeSint32,
// Token: 0x0400033E RID: 830
[OriginalName("TYPE_SINT64")]
TypeSint64
}
// Token: 0x020000D4 RID: 212
public enum Cardinality
{
// Token: 0x04000340 RID: 832
[OriginalName("CARDINALITY_UNKNOWN")]
Unknown,
// Token: 0x04000341 RID: 833
[OriginalName("CARDINALITY_OPTIONAL")]
Optional,
// Token: 0x04000342 RID: 834
[OriginalName("CARDINALITY_REQUIRED")]
Required,
// Token: 0x04000343 RID: 835
[OriginalName("CARDINALITY_REPEATED")]
Repeated
}
}
}
}
+213
View File
@@ -0,0 +1,213 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000024 RID: 36
public sealed class FieldMask : IMessage<FieldMask>, IMessage, IEquatable<FieldMask>, IDeepCloneable<FieldMask>, ICustomDiagnosticMessage
{
// Token: 0x17000054 RID: 84
// (get) Token: 0x060001E9 RID: 489 RVA: 0x0000958F File Offset: 0x0000778F
[DebuggerNonUserCode]
public static MessageParser<FieldMask> Parser
{
get
{
return FieldMask._parser;
}
}
// Token: 0x17000055 RID: 85
// (get) Token: 0x060001EA RID: 490 RVA: 0x00009596 File Offset: 0x00007796
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return FieldMaskReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x17000056 RID: 86
// (get) Token: 0x060001EB RID: 491 RVA: 0x000095A8 File Offset: 0x000077A8
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return FieldMask.Descriptor;
}
}
// Token: 0x060001EC RID: 492 RVA: 0x000095AF File Offset: 0x000077AF
[DebuggerNonUserCode]
public FieldMask()
{
}
// Token: 0x060001ED RID: 493 RVA: 0x000095C2 File Offset: 0x000077C2
[DebuggerNonUserCode]
public FieldMask(FieldMask other)
: this()
{
this.paths_ = other.paths_.Clone();
}
// Token: 0x060001EE RID: 494 RVA: 0x000095DB File Offset: 0x000077DB
[DebuggerNonUserCode]
public FieldMask Clone()
{
return new FieldMask(this);
}
// Token: 0x17000057 RID: 87
// (get) Token: 0x060001EF RID: 495 RVA: 0x000095E3 File Offset: 0x000077E3
[DebuggerNonUserCode]
public RepeatedField<string> Paths
{
get
{
return this.paths_;
}
}
// Token: 0x060001F0 RID: 496 RVA: 0x000095EB File Offset: 0x000077EB
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as FieldMask);
}
// Token: 0x060001F1 RID: 497 RVA: 0x000095F9 File Offset: 0x000077F9
[DebuggerNonUserCode]
public bool Equals(FieldMask other)
{
return other != null && (other == this || this.paths_.Equals(other.paths_));
}
// Token: 0x060001F2 RID: 498 RVA: 0x0000961C File Offset: 0x0000781C
[DebuggerNonUserCode]
public override int GetHashCode()
{
return 1 ^ this.paths_.GetHashCode();
}
// Token: 0x060001F3 RID: 499 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060001F4 RID: 500 RVA: 0x0000962B File Offset: 0x0000782B
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
this.paths_.WriteTo(output, FieldMask._repeated_paths_codec);
}
// Token: 0x060001F5 RID: 501 RVA: 0x0000963E File Offset: 0x0000783E
[DebuggerNonUserCode]
public int CalculateSize()
{
return 0 + this.paths_.CalculateSize(FieldMask._repeated_paths_codec);
}
// Token: 0x060001F6 RID: 502 RVA: 0x00009652 File Offset: 0x00007852
[DebuggerNonUserCode]
public void MergeFrom(FieldMask other)
{
if (other == null)
{
return;
}
this.paths_.Add(other.paths_);
}
// Token: 0x060001F7 RID: 503 RVA: 0x0000966C File Offset: 0x0000786C
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
input.SkipLastField();
}
else
{
this.paths_.AddEntriesFrom(input, FieldMask._repeated_paths_codec);
}
}
}
// Token: 0x060001F8 RID: 504 RVA: 0x000096A4 File Offset: 0x000078A4
internal static string ToJson(IList<string> paths, bool diagnosticOnly)
{
string text = paths.FirstOrDefault((string p) => !FieldMask.ValidatePath(p));
if (text == null)
{
StringWriter stringWriter = new StringWriter();
IEnumerable<string> enumerable = paths.Select(new Func<string, string>(JsonFormatter.ToCamelCase));
JsonFormatter.WriteString(stringWriter, string.Join(",", enumerable.ToArray<string>()));
return stringWriter.ToString();
}
if (diagnosticOnly)
{
StringWriter stringWriter2 = new StringWriter();
stringWriter2.Write("{ \"@warning\": \"Invalid FieldMask\", \"paths\": ");
JsonFormatter.Default.WriteList(stringWriter2, (IList)paths);
stringWriter2.Write(" }");
return stringWriter2.ToString();
}
throw new InvalidOperationException(string.Format("Invalid field mask to be converted to JSON: {0}", text));
}
// Token: 0x060001F9 RID: 505 RVA: 0x00009758 File Offset: 0x00007958
private static bool ValidatePath(string input)
{
for (int i = 0; i < input.Length; i++)
{
char c = input[i];
if (c >= 'A' && c <= 'Z')
{
return false;
}
if (c == '_' && i < input.Length - 1)
{
char c2 = input[i + 1];
if (c2 < 'a' || c2 > 'z')
{
return false;
}
}
}
return true;
}
// Token: 0x060001FA RID: 506 RVA: 0x000097B1 File Offset: 0x000079B1
public string ToDiagnosticString()
{
return FieldMask.ToJson(this.Paths, true);
}
// Token: 0x0400008C RID: 140
private static readonly MessageParser<FieldMask> _parser = new MessageParser<FieldMask>(() => new FieldMask());
// Token: 0x0400008D RID: 141
public const int PathsFieldNumber = 1;
// Token: 0x0400008E RID: 142
private static readonly FieldCodec<string> _repeated_paths_codec = FieldCodec.ForString(10U);
// Token: 0x0400008F RID: 143
private readonly RepeatedField<string> paths_ = new RepeatedField<string>();
}
}
@@ -0,0 +1,25 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000023 RID: 35
public static class FieldMaskReflection
{
// Token: 0x17000053 RID: 83
// (get) Token: 0x060001E7 RID: 487 RVA: 0x00009517 File Offset: 0x00007717
public static FileDescriptor Descriptor
{
get
{
return FieldMaskReflection.descriptor;
}
}
// Token: 0x0400008B RID: 139
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String("CiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxIPZ29vZ2xlLnBy" + "b3RvYnVmIhoKCUZpZWxkTWFzaxINCgVwYXRocxgBIAMoCUJOChNjb20uZ29v" + "Z2xlLnByb3RvYnVmQg5GaWVsZE1hc2tQcm90b1ABogIDR1BCqgIeR29vZ2xl" + "LlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM="), new FileDescriptor[0], new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(FieldMask), FieldMask.Parser, new string[] { "Paths" }, null, null, null)
}));
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000038 RID: 56
public sealed class FloatValue : IMessage<FloatValue>, IMessage, IEquatable<FloatValue>, IDeepCloneable<FloatValue>
{
// Token: 0x170000A5 RID: 165
// (get) Token: 0x06000304 RID: 772 RVA: 0x0000C80A File Offset: 0x0000AA0A
[DebuggerNonUserCode]
public static MessageParser<FloatValue> Parser
{
get
{
return FloatValue._parser;
}
}
// Token: 0x170000A6 RID: 166
// (get) Token: 0x06000305 RID: 773 RVA: 0x0000C811 File Offset: 0x0000AA11
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[1];
}
}
// Token: 0x170000A7 RID: 167
// (get) Token: 0x06000306 RID: 774 RVA: 0x0000C823 File Offset: 0x0000AA23
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return FloatValue.Descriptor;
}
}
// Token: 0x06000307 RID: 775 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public FloatValue()
{
}
// Token: 0x06000308 RID: 776 RVA: 0x0000C82A File Offset: 0x0000AA2A
[DebuggerNonUserCode]
public FloatValue(FloatValue other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x06000309 RID: 777 RVA: 0x0000C83E File Offset: 0x0000AA3E
[DebuggerNonUserCode]
public FloatValue Clone()
{
return new FloatValue(this);
}
// Token: 0x170000A8 RID: 168
// (get) Token: 0x0600030A RID: 778 RVA: 0x0000C846 File Offset: 0x0000AA46
// (set) Token: 0x0600030B RID: 779 RVA: 0x0000C84E File Offset: 0x0000AA4E
[DebuggerNonUserCode]
public float Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x0600030C RID: 780 RVA: 0x0000C857 File Offset: 0x0000AA57
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as FloatValue);
}
// Token: 0x0600030D RID: 781 RVA: 0x0000C865 File Offset: 0x0000AA65
[DebuggerNonUserCode]
public bool Equals(FloatValue other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x0600030E RID: 782 RVA: 0x0000C884 File Offset: 0x0000AA84
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0f)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x0600030F RID: 783 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000310 RID: 784 RVA: 0x0000C8B2 File Offset: 0x0000AAB2
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0f)
{
output.WriteRawTag(13);
output.WriteFloat(this.Value);
}
}
// Token: 0x06000311 RID: 785 RVA: 0x0000C8D8 File Offset: 0x0000AAD8
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0f)
{
num += 5;
}
return num;
}
// Token: 0x06000312 RID: 786 RVA: 0x0000C8F9 File Offset: 0x0000AAF9
[DebuggerNonUserCode]
public void MergeFrom(FloatValue other)
{
if (other == null)
{
return;
}
if (other.Value != 0f)
{
this.Value = other.Value;
}
}
// Token: 0x06000313 RID: 787 RVA: 0x0000C918 File Offset: 0x0000AB18
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 13U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadFloat();
}
}
}
// Token: 0x040000FC RID: 252
private static readonly MessageParser<FloatValue> _parser = new MessageParser<FloatValue>(() => new FloatValue());
// Token: 0x040000FD RID: 253
public const int ValueFieldNumber = 1;
// Token: 0x040000FE RID: 254
private float value_;
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200003B RID: 59
public sealed class Int32Value : IMessage<Int32Value>, IMessage, IEquatable<Int32Value>, IDeepCloneable<Int32Value>
{
// Token: 0x170000B1 RID: 177
// (get) Token: 0x06000337 RID: 823 RVA: 0x0000CC0D File Offset: 0x0000AE0D
[DebuggerNonUserCode]
public static MessageParser<Int32Value> Parser
{
get
{
return Int32Value._parser;
}
}
// Token: 0x170000B2 RID: 178
// (get) Token: 0x06000338 RID: 824 RVA: 0x0000CC14 File Offset: 0x0000AE14
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[4];
}
}
// Token: 0x170000B3 RID: 179
// (get) Token: 0x06000339 RID: 825 RVA: 0x0000CC26 File Offset: 0x0000AE26
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Int32Value.Descriptor;
}
}
// Token: 0x0600033A RID: 826 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public Int32Value()
{
}
// Token: 0x0600033B RID: 827 RVA: 0x0000CC2D File Offset: 0x0000AE2D
[DebuggerNonUserCode]
public Int32Value(Int32Value other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600033C RID: 828 RVA: 0x0000CC41 File Offset: 0x0000AE41
[DebuggerNonUserCode]
public Int32Value Clone()
{
return new Int32Value(this);
}
// Token: 0x170000B4 RID: 180
// (get) Token: 0x0600033D RID: 829 RVA: 0x0000CC49 File Offset: 0x0000AE49
// (set) Token: 0x0600033E RID: 830 RVA: 0x0000CC51 File Offset: 0x0000AE51
[DebuggerNonUserCode]
public int Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x0600033F RID: 831 RVA: 0x0000CC5A File Offset: 0x0000AE5A
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Int32Value);
}
// Token: 0x06000340 RID: 832 RVA: 0x0000CC68 File Offset: 0x0000AE68
[DebuggerNonUserCode]
public bool Equals(Int32Value other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x06000341 RID: 833 RVA: 0x0000CC88 File Offset: 0x0000AE88
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000342 RID: 834 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000343 RID: 835 RVA: 0x0000CCB1 File Offset: 0x0000AEB1
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0)
{
output.WriteRawTag(8);
output.WriteInt32(this.Value);
}
}
// Token: 0x06000344 RID: 836 RVA: 0x0000CCD0 File Offset: 0x0000AED0
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0)
{
num += 1 + CodedOutputStream.ComputeInt32Size(this.Value);
}
return num;
}
// Token: 0x06000345 RID: 837 RVA: 0x0000CCF8 File Offset: 0x0000AEF8
[DebuggerNonUserCode]
public void MergeFrom(Int32Value other)
{
if (other == null)
{
return;
}
if (other.Value != 0)
{
this.Value = other.Value;
}
}
// Token: 0x06000346 RID: 838 RVA: 0x0000CD14 File Offset: 0x0000AF14
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadInt32();
}
}
}
// Token: 0x04000105 RID: 261
private static readonly MessageParser<Int32Value> _parser = new MessageParser<Int32Value>(() => new Int32Value());
// Token: 0x04000106 RID: 262
public const int ValueFieldNumber = 1;
// Token: 0x04000107 RID: 263
private int value_;
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000039 RID: 57
public sealed class Int64Value : IMessage<Int64Value>, IMessage, IEquatable<Int64Value>, IDeepCloneable<Int64Value>
{
// Token: 0x170000A9 RID: 169
// (get) Token: 0x06000315 RID: 789 RVA: 0x0000C966 File Offset: 0x0000AB66
[DebuggerNonUserCode]
public static MessageParser<Int64Value> Parser
{
get
{
return Int64Value._parser;
}
}
// Token: 0x170000AA RID: 170
// (get) Token: 0x06000316 RID: 790 RVA: 0x0000C96D File Offset: 0x0000AB6D
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[2];
}
}
// Token: 0x170000AB RID: 171
// (get) Token: 0x06000317 RID: 791 RVA: 0x0000C97F File Offset: 0x0000AB7F
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Int64Value.Descriptor;
}
}
// Token: 0x06000318 RID: 792 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public Int64Value()
{
}
// Token: 0x06000319 RID: 793 RVA: 0x0000C986 File Offset: 0x0000AB86
[DebuggerNonUserCode]
public Int64Value(Int64Value other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600031A RID: 794 RVA: 0x0000C99A File Offset: 0x0000AB9A
[DebuggerNonUserCode]
public Int64Value Clone()
{
return new Int64Value(this);
}
// Token: 0x170000AC RID: 172
// (get) Token: 0x0600031B RID: 795 RVA: 0x0000C9A2 File Offset: 0x0000ABA2
// (set) Token: 0x0600031C RID: 796 RVA: 0x0000C9AA File Offset: 0x0000ABAA
[DebuggerNonUserCode]
public long Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x0600031D RID: 797 RVA: 0x0000C9B3 File Offset: 0x0000ABB3
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Int64Value);
}
// Token: 0x0600031E RID: 798 RVA: 0x0000C9C1 File Offset: 0x0000ABC1
[DebuggerNonUserCode]
public bool Equals(Int64Value other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x0600031F RID: 799 RVA: 0x0000C9E0 File Offset: 0x0000ABE0
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0L)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000320 RID: 800 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000321 RID: 801 RVA: 0x0000CA09 File Offset: 0x0000AC09
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0L)
{
output.WriteRawTag(8);
output.WriteInt64(this.Value);
}
}
// Token: 0x06000322 RID: 802 RVA: 0x0000CA28 File Offset: 0x0000AC28
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0L)
{
num += 1 + CodedOutputStream.ComputeInt64Size(this.Value);
}
return num;
}
// Token: 0x06000323 RID: 803 RVA: 0x0000CA50 File Offset: 0x0000AC50
[DebuggerNonUserCode]
public void MergeFrom(Int64Value other)
{
if (other == null)
{
return;
}
if (other.Value != 0L)
{
this.Value = other.Value;
}
}
// Token: 0x06000324 RID: 804 RVA: 0x0000CA6C File Offset: 0x0000AC6C
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadInt64();
}
}
}
// Token: 0x040000FF RID: 255
private static readonly MessageParser<Int64Value> _parser = new MessageParser<Int64Value>(() => new Int64Value());
// Token: 0x04000100 RID: 256
public const int ValueFieldNumber = 1;
// Token: 0x04000101 RID: 257
private long value_;
}
}
+159
View File
@@ -0,0 +1,159 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200002B RID: 43
public sealed class ListValue : IMessage<ListValue>, IMessage, IEquatable<ListValue>, IDeepCloneable<ListValue>
{
// Token: 0x1700006C RID: 108
// (get) Token: 0x06000244 RID: 580 RVA: 0x0000A382 File Offset: 0x00008582
[DebuggerNonUserCode]
public static MessageParser<ListValue> Parser
{
get
{
return ListValue._parser;
}
}
// Token: 0x1700006D RID: 109
// (get) Token: 0x06000245 RID: 581 RVA: 0x0000A389 File Offset: 0x00008589
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return StructReflection.Descriptor.MessageTypes[2];
}
}
// Token: 0x1700006E RID: 110
// (get) Token: 0x06000246 RID: 582 RVA: 0x0000A39B File Offset: 0x0000859B
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return ListValue.Descriptor;
}
}
// Token: 0x06000247 RID: 583 RVA: 0x0000A3A2 File Offset: 0x000085A2
[DebuggerNonUserCode]
public ListValue()
{
}
// Token: 0x06000248 RID: 584 RVA: 0x0000A3B5 File Offset: 0x000085B5
[DebuggerNonUserCode]
public ListValue(ListValue other)
: this()
{
this.values_ = other.values_.Clone();
}
// Token: 0x06000249 RID: 585 RVA: 0x0000A3CE File Offset: 0x000085CE
[DebuggerNonUserCode]
public ListValue Clone()
{
return new ListValue(this);
}
// Token: 0x1700006F RID: 111
// (get) Token: 0x0600024A RID: 586 RVA: 0x0000A3D6 File Offset: 0x000085D6
[DebuggerNonUserCode]
public RepeatedField<Value> Values
{
get
{
return this.values_;
}
}
// Token: 0x0600024B RID: 587 RVA: 0x0000A3DE File Offset: 0x000085DE
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as ListValue);
}
// Token: 0x0600024C RID: 588 RVA: 0x0000A3EC File Offset: 0x000085EC
[DebuggerNonUserCode]
public bool Equals(ListValue other)
{
return other != null && (other == this || this.values_.Equals(other.values_));
}
// Token: 0x0600024D RID: 589 RVA: 0x0000A40F File Offset: 0x0000860F
[DebuggerNonUserCode]
public override int GetHashCode()
{
return 1 ^ this.values_.GetHashCode();
}
// Token: 0x0600024E RID: 590 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x0600024F RID: 591 RVA: 0x0000A41E File Offset: 0x0000861E
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
this.values_.WriteTo(output, ListValue._repeated_values_codec);
}
// Token: 0x06000250 RID: 592 RVA: 0x0000A431 File Offset: 0x00008631
[DebuggerNonUserCode]
public int CalculateSize()
{
return 0 + this.values_.CalculateSize(ListValue._repeated_values_codec);
}
// Token: 0x06000251 RID: 593 RVA: 0x0000A445 File Offset: 0x00008645
[DebuggerNonUserCode]
public void MergeFrom(ListValue other)
{
if (other == null)
{
return;
}
this.values_.Add(other.values_);
}
// Token: 0x06000252 RID: 594 RVA: 0x0000A45C File Offset: 0x0000865C
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
input.SkipLastField();
}
else
{
this.values_.AddEntriesFrom(input, ListValue._repeated_values_codec);
}
}
}
// Token: 0x040000A4 RID: 164
private static readonly MessageParser<ListValue> _parser = new MessageParser<ListValue>(() => new ListValue());
// Token: 0x040000A5 RID: 165
public const int ValuesFieldNumber = 1;
// Token: 0x040000A6 RID: 166
private static readonly FieldCodec<Value> _repeated_values_codec = FieldCodec.ForMessage<Value>(10U, Value.Parser);
// Token: 0x040000A7 RID: 167
private readonly RepeatedField<Value> values_ = new RepeatedField<Value>();
}
}
+440
View File
@@ -0,0 +1,440 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200001D RID: 29
public sealed class Method : IMessage<Method>, IMessage, IEquatable<Method>, IDeepCloneable<Method>
{
// Token: 0x1700003A RID: 58
// (get) Token: 0x06000188 RID: 392 RVA: 0x0000863E File Offset: 0x0000683E
[DebuggerNonUserCode]
public static MessageParser<Method> Parser
{
get
{
return Method._parser;
}
}
// Token: 0x1700003B RID: 59
// (get) Token: 0x06000189 RID: 393 RVA: 0x00008645 File Offset: 0x00006845
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return ApiReflection.Descriptor.MessageTypes[1];
}
}
// Token: 0x1700003C RID: 60
// (get) Token: 0x0600018A RID: 394 RVA: 0x00008657 File Offset: 0x00006857
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Method.Descriptor;
}
}
// Token: 0x0600018B RID: 395 RVA: 0x0000865E File Offset: 0x0000685E
[DebuggerNonUserCode]
public Method()
{
}
// Token: 0x0600018C RID: 396 RVA: 0x00008694 File Offset: 0x00006894
[DebuggerNonUserCode]
public Method(Method other)
: this()
{
this.name_ = other.name_;
this.requestTypeUrl_ = other.requestTypeUrl_;
this.requestStreaming_ = other.requestStreaming_;
this.responseTypeUrl_ = other.responseTypeUrl_;
this.responseStreaming_ = other.responseStreaming_;
this.options_ = other.options_.Clone();
this.syntax_ = other.syntax_;
}
// Token: 0x0600018D RID: 397 RVA: 0x00008700 File Offset: 0x00006900
[DebuggerNonUserCode]
public Method Clone()
{
return new Method(this);
}
// Token: 0x1700003D RID: 61
// (get) Token: 0x0600018E RID: 398 RVA: 0x00008708 File Offset: 0x00006908
// (set) Token: 0x0600018F RID: 399 RVA: 0x00008710 File Offset: 0x00006910
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x1700003E RID: 62
// (get) Token: 0x06000190 RID: 400 RVA: 0x00008723 File Offset: 0x00006923
// (set) Token: 0x06000191 RID: 401 RVA: 0x0000872B File Offset: 0x0000692B
[DebuggerNonUserCode]
public string RequestTypeUrl
{
get
{
return this.requestTypeUrl_;
}
set
{
this.requestTypeUrl_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x1700003F RID: 63
// (get) Token: 0x06000192 RID: 402 RVA: 0x0000873E File Offset: 0x0000693E
// (set) Token: 0x06000193 RID: 403 RVA: 0x00008746 File Offset: 0x00006946
[DebuggerNonUserCode]
public bool RequestStreaming
{
get
{
return this.requestStreaming_;
}
set
{
this.requestStreaming_ = value;
}
}
// Token: 0x17000040 RID: 64
// (get) Token: 0x06000194 RID: 404 RVA: 0x0000874F File Offset: 0x0000694F
// (set) Token: 0x06000195 RID: 405 RVA: 0x00008757 File Offset: 0x00006957
[DebuggerNonUserCode]
public string ResponseTypeUrl
{
get
{
return this.responseTypeUrl_;
}
set
{
this.responseTypeUrl_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000041 RID: 65
// (get) Token: 0x06000196 RID: 406 RVA: 0x0000876A File Offset: 0x0000696A
// (set) Token: 0x06000197 RID: 407 RVA: 0x00008772 File Offset: 0x00006972
[DebuggerNonUserCode]
public bool ResponseStreaming
{
get
{
return this.responseStreaming_;
}
set
{
this.responseStreaming_ = value;
}
}
// Token: 0x17000042 RID: 66
// (get) Token: 0x06000198 RID: 408 RVA: 0x0000877B File Offset: 0x0000697B
[DebuggerNonUserCode]
public RepeatedField<Option> Options
{
get
{
return this.options_;
}
}
// Token: 0x17000043 RID: 67
// (get) Token: 0x06000199 RID: 409 RVA: 0x00008783 File Offset: 0x00006983
// (set) Token: 0x0600019A RID: 410 RVA: 0x0000878B File Offset: 0x0000698B
[DebuggerNonUserCode]
public Syntax Syntax
{
get
{
return this.syntax_;
}
set
{
this.syntax_ = value;
}
}
// Token: 0x0600019B RID: 411 RVA: 0x00008794 File Offset: 0x00006994
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Method);
}
// Token: 0x0600019C RID: 412 RVA: 0x000087A4 File Offset: 0x000069A4
[DebuggerNonUserCode]
public bool Equals(Method other)
{
return other != null && (other == this || (!(this.Name != other.Name) && !(this.RequestTypeUrl != other.RequestTypeUrl) && this.RequestStreaming == other.RequestStreaming && !(this.ResponseTypeUrl != other.ResponseTypeUrl) && this.ResponseStreaming == other.ResponseStreaming && this.options_.Equals(other.options_) && this.Syntax == other.Syntax));
}
// Token: 0x0600019D RID: 413 RVA: 0x00008844 File Offset: 0x00006A44
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
if (this.RequestTypeUrl.Length != 0)
{
num ^= this.RequestTypeUrl.GetHashCode();
}
if (this.RequestStreaming)
{
num ^= this.RequestStreaming.GetHashCode();
}
if (this.ResponseTypeUrl.Length != 0)
{
num ^= this.ResponseTypeUrl.GetHashCode();
}
if (this.ResponseStreaming)
{
num ^= this.ResponseStreaming.GetHashCode();
}
num ^= this.options_.GetHashCode();
if (this.Syntax != Syntax.Proto2)
{
num ^= this.Syntax.GetHashCode();
}
return num;
}
// Token: 0x0600019E RID: 414 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x0600019F RID: 415 RVA: 0x00008904 File Offset: 0x00006B04
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Name.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Name);
}
if (this.RequestTypeUrl.Length != 0)
{
output.WriteRawTag(18);
output.WriteString(this.RequestTypeUrl);
}
if (this.RequestStreaming)
{
output.WriteRawTag(24);
output.WriteBool(this.RequestStreaming);
}
if (this.ResponseTypeUrl.Length != 0)
{
output.WriteRawTag(34);
output.WriteString(this.ResponseTypeUrl);
}
if (this.ResponseStreaming)
{
output.WriteRawTag(40);
output.WriteBool(this.ResponseStreaming);
}
this.options_.WriteTo(output, Method._repeated_options_codec);
if (this.Syntax != Syntax.Proto2)
{
output.WriteRawTag(56);
output.WriteEnum((int)this.Syntax);
}
}
// Token: 0x060001A0 RID: 416 RVA: 0x000089DC File Offset: 0x00006BDC
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
if (this.RequestTypeUrl.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.RequestTypeUrl);
}
if (this.RequestStreaming)
{
num += 2;
}
if (this.ResponseTypeUrl.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.ResponseTypeUrl);
}
if (this.ResponseStreaming)
{
num += 2;
}
num += this.options_.CalculateSize(Method._repeated_options_codec);
if (this.Syntax != Syntax.Proto2)
{
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Syntax);
}
return num;
}
// Token: 0x060001A1 RID: 417 RVA: 0x00008A88 File Offset: 0x00006C88
[DebuggerNonUserCode]
public void MergeFrom(Method other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
if (other.RequestTypeUrl.Length != 0)
{
this.RequestTypeUrl = other.RequestTypeUrl;
}
if (other.RequestStreaming)
{
this.RequestStreaming = other.RequestStreaming;
}
if (other.ResponseTypeUrl.Length != 0)
{
this.ResponseTypeUrl = other.ResponseTypeUrl;
}
if (other.ResponseStreaming)
{
this.ResponseStreaming = other.ResponseStreaming;
}
this.options_.Add(other.options_);
if (other.Syntax != Syntax.Proto2)
{
this.Syntax = other.Syntax;
}
}
// Token: 0x060001A2 RID: 418 RVA: 0x00008B34 File Offset: 0x00006D34
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num <= 24U)
{
if (num == 10U)
{
this.Name = input.ReadString();
continue;
}
if (num == 18U)
{
this.RequestTypeUrl = input.ReadString();
continue;
}
if (num == 24U)
{
this.RequestStreaming = input.ReadBool();
continue;
}
}
else if (num <= 40U)
{
if (num == 34U)
{
this.ResponseTypeUrl = input.ReadString();
continue;
}
if (num == 40U)
{
this.ResponseStreaming = input.ReadBool();
continue;
}
}
else
{
if (num == 50U)
{
this.options_.AddEntriesFrom(input, Method._repeated_options_codec);
continue;
}
if (num == 56U)
{
this.syntax_ = (Syntax)input.ReadEnum();
continue;
}
}
input.SkipLastField();
}
}
// Token: 0x04000068 RID: 104
private static readonly MessageParser<Method> _parser = new MessageParser<Method>(() => new Method());
// Token: 0x04000069 RID: 105
public const int NameFieldNumber = 1;
// Token: 0x0400006A RID: 106
private string name_ = "";
// Token: 0x0400006B RID: 107
public const int RequestTypeUrlFieldNumber = 2;
// Token: 0x0400006C RID: 108
private string requestTypeUrl_ = "";
// Token: 0x0400006D RID: 109
public const int RequestStreamingFieldNumber = 3;
// Token: 0x0400006E RID: 110
private bool requestStreaming_;
// Token: 0x0400006F RID: 111
public const int ResponseTypeUrlFieldNumber = 4;
// Token: 0x04000070 RID: 112
private string responseTypeUrl_ = "";
// Token: 0x04000071 RID: 113
public const int ResponseStreamingFieldNumber = 5;
// Token: 0x04000072 RID: 114
private bool responseStreaming_;
// Token: 0x04000073 RID: 115
public const int OptionsFieldNumber = 6;
// Token: 0x04000074 RID: 116
private static readonly FieldCodec<Option> _repeated_options_codec = FieldCodec.ForMessage<Option>(50U, Option.Parser);
// Token: 0x04000075 RID: 117
private readonly RepeatedField<Option> options_ = new RepeatedField<Option>();
// Token: 0x04000076 RID: 118
public const int SyntaxFieldNumber = 7;
// Token: 0x04000077 RID: 119
private Syntax syntax_;
}
}
+224
View File
@@ -0,0 +1,224 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200001E RID: 30
public sealed class Mixin : IMessage<Mixin>, IMessage, IEquatable<Mixin>, IDeepCloneable<Mixin>
{
// Token: 0x17000044 RID: 68
// (get) Token: 0x060001A4 RID: 420 RVA: 0x00008C1E File Offset: 0x00006E1E
[DebuggerNonUserCode]
public static MessageParser<Mixin> Parser
{
get
{
return Mixin._parser;
}
}
// Token: 0x17000045 RID: 69
// (get) Token: 0x060001A5 RID: 421 RVA: 0x00008C25 File Offset: 0x00006E25
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return ApiReflection.Descriptor.MessageTypes[2];
}
}
// Token: 0x17000046 RID: 70
// (get) Token: 0x060001A6 RID: 422 RVA: 0x00008C37 File Offset: 0x00006E37
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Mixin.Descriptor;
}
}
// Token: 0x060001A7 RID: 423 RVA: 0x00008C3E File Offset: 0x00006E3E
[DebuggerNonUserCode]
public Mixin()
{
}
// Token: 0x060001A8 RID: 424 RVA: 0x00008C5C File Offset: 0x00006E5C
[DebuggerNonUserCode]
public Mixin(Mixin other)
: this()
{
this.name_ = other.name_;
this.root_ = other.root_;
}
// Token: 0x060001A9 RID: 425 RVA: 0x00008C7C File Offset: 0x00006E7C
[DebuggerNonUserCode]
public Mixin Clone()
{
return new Mixin(this);
}
// Token: 0x17000047 RID: 71
// (get) Token: 0x060001AA RID: 426 RVA: 0x00008C84 File Offset: 0x00006E84
// (set) Token: 0x060001AB RID: 427 RVA: 0x00008C8C File Offset: 0x00006E8C
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x17000048 RID: 72
// (get) Token: 0x060001AC RID: 428 RVA: 0x00008C9F File Offset: 0x00006E9F
// (set) Token: 0x060001AD RID: 429 RVA: 0x00008CA7 File Offset: 0x00006EA7
[DebuggerNonUserCode]
public string Root
{
get
{
return this.root_;
}
set
{
this.root_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x060001AE RID: 430 RVA: 0x00008CBA File Offset: 0x00006EBA
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Mixin);
}
// Token: 0x060001AF RID: 431 RVA: 0x00008CC8 File Offset: 0x00006EC8
[DebuggerNonUserCode]
public bool Equals(Mixin other)
{
return other != null && (other == this || (!(this.Name != other.Name) && !(this.Root != other.Root)));
}
// Token: 0x060001B0 RID: 432 RVA: 0x00008D00 File Offset: 0x00006F00
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
if (this.Root.Length != 0)
{
num ^= this.Root.GetHashCode();
}
return num;
}
// Token: 0x060001B1 RID: 433 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060001B2 RID: 434 RVA: 0x00008D48 File Offset: 0x00006F48
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Name.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Name);
}
if (this.Root.Length != 0)
{
output.WriteRawTag(18);
output.WriteString(this.Root);
}
}
// Token: 0x060001B3 RID: 435 RVA: 0x00008D98 File Offset: 0x00006F98
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
if (this.Root.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Root);
}
return num;
}
// Token: 0x060001B4 RID: 436 RVA: 0x00008DE2 File Offset: 0x00006FE2
[DebuggerNonUserCode]
public void MergeFrom(Mixin other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
if (other.Root.Length != 0)
{
this.Root = other.Root;
}
}
// Token: 0x060001B5 RID: 437 RVA: 0x00008E1C File Offset: 0x0000701C
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
if (num != 18U)
{
input.SkipLastField();
}
else
{
this.Root = input.ReadString();
}
}
else
{
this.Name = input.ReadString();
}
}
}
// Token: 0x04000078 RID: 120
private static readonly MessageParser<Mixin> _parser = new MessageParser<Mixin>(() => new Mixin());
// Token: 0x04000079 RID: 121
public const int NameFieldNumber = 1;
// Token: 0x0400007A RID: 122
private string name_ = "";
// Token: 0x0400007B RID: 123
public const int RootFieldNumber = 2;
// Token: 0x0400007C RID: 124
private string root_ = "";
}
}
+13
View File
@@ -0,0 +1,13 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000028 RID: 40
public enum NullValue
{
// Token: 0x04000096 RID: 150
[OriginalName("NULL_VALUE")]
NullValue
}
}
+232
View File
@@ -0,0 +1,232 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000035 RID: 53
public sealed class Option : IMessage<Option>, IMessage, IEquatable<Option>, IDeepCloneable<Option>
{
// Token: 0x1700009B RID: 155
// (get) Token: 0x060002DE RID: 734 RVA: 0x0000C22A File Offset: 0x0000A42A
[DebuggerNonUserCode]
public static MessageParser<Option> Parser
{
get
{
return Option._parser;
}
}
// Token: 0x1700009C RID: 156
// (get) Token: 0x060002DF RID: 735 RVA: 0x0000C231 File Offset: 0x0000A431
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return TypeReflection.Descriptor.MessageTypes[4];
}
}
// Token: 0x1700009D RID: 157
// (get) Token: 0x060002E0 RID: 736 RVA: 0x0000C243 File Offset: 0x0000A443
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Option.Descriptor;
}
}
// Token: 0x060002E1 RID: 737 RVA: 0x0000C24A File Offset: 0x0000A44A
[DebuggerNonUserCode]
public Option()
{
}
// Token: 0x060002E2 RID: 738 RVA: 0x0000C25D File Offset: 0x0000A45D
[DebuggerNonUserCode]
public Option(Option other)
: this()
{
this.name_ = other.name_;
this.Value = ((other.value_ != null) ? other.Value.Clone() : null);
}
// Token: 0x060002E3 RID: 739 RVA: 0x0000C28D File Offset: 0x0000A48D
[DebuggerNonUserCode]
public Option Clone()
{
return new Option(this);
}
// Token: 0x1700009E RID: 158
// (get) Token: 0x060002E4 RID: 740 RVA: 0x0000C295 File Offset: 0x0000A495
// (set) Token: 0x060002E5 RID: 741 RVA: 0x0000C29D File Offset: 0x0000A49D
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x1700009F RID: 159
// (get) Token: 0x060002E6 RID: 742 RVA: 0x0000C2B0 File Offset: 0x0000A4B0
// (set) Token: 0x060002E7 RID: 743 RVA: 0x0000C2B8 File Offset: 0x0000A4B8
[DebuggerNonUserCode]
public Any Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x060002E8 RID: 744 RVA: 0x0000C2C1 File Offset: 0x0000A4C1
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Option);
}
// Token: 0x060002E9 RID: 745 RVA: 0x0000C2CF File Offset: 0x0000A4CF
[DebuggerNonUserCode]
public bool Equals(Option other)
{
return other != null && (other == this || (!(this.Name != other.Name) && object.Equals(this.Value, other.Value)));
}
// Token: 0x060002EA RID: 746 RVA: 0x0000C308 File Offset: 0x0000A508
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
if (this.value_ != null)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x060002EB RID: 747 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x060002EC RID: 748 RVA: 0x0000C349 File Offset: 0x0000A549
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Name.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Name);
}
if (this.value_ != null)
{
output.WriteRawTag(18);
output.WriteMessage(this.Value);
}
}
// Token: 0x060002ED RID: 749 RVA: 0x0000C388 File Offset: 0x0000A588
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
if (this.value_ != null)
{
num += 1 + CodedOutputStream.ComputeMessageSize(this.Value);
}
return num;
}
// Token: 0x060002EE RID: 750 RVA: 0x0000C3D0 File Offset: 0x0000A5D0
[DebuggerNonUserCode]
public void MergeFrom(Option other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
if (other.value_ != null)
{
if (this.value_ == null)
{
this.value_ = new Any();
}
this.Value.MergeFrom(other.Value);
}
}
// Token: 0x060002EF RID: 751 RVA: 0x0000C428 File Offset: 0x0000A628
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
if (num != 18U)
{
input.SkipLastField();
}
else
{
if (this.value_ == null)
{
this.value_ = new Any();
}
input.ReadMessage(this.value_);
}
}
else
{
this.Name = input.ReadString();
}
}
}
// Token: 0x040000F2 RID: 242
private static readonly MessageParser<Option> _parser = new MessageParser<Option>(() => new Option());
// Token: 0x040000F3 RID: 243
public const int NameFieldNumber = 1;
// Token: 0x040000F4 RID: 244
private string name_ = "";
// Token: 0x040000F5 RID: 245
public const int ValueFieldNumber = 2;
// Token: 0x040000F6 RID: 246
private Any value_;
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000026 RID: 38
public sealed class SourceContext : IMessage<SourceContext>, IMessage, IEquatable<SourceContext>, IDeepCloneable<SourceContext>
{
// Token: 0x17000059 RID: 89
// (get) Token: 0x060001FE RID: 510 RVA: 0x00009879 File Offset: 0x00007A79
[DebuggerNonUserCode]
public static MessageParser<SourceContext> Parser
{
get
{
return SourceContext._parser;
}
}
// Token: 0x1700005A RID: 90
// (get) Token: 0x060001FF RID: 511 RVA: 0x00009880 File Offset: 0x00007A80
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return SourceContextReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x1700005B RID: 91
// (get) Token: 0x06000200 RID: 512 RVA: 0x00009892 File Offset: 0x00007A92
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return SourceContext.Descriptor;
}
}
// Token: 0x06000201 RID: 513 RVA: 0x00009899 File Offset: 0x00007A99
[DebuggerNonUserCode]
public SourceContext()
{
}
// Token: 0x06000202 RID: 514 RVA: 0x000098AC File Offset: 0x00007AAC
[DebuggerNonUserCode]
public SourceContext(SourceContext other)
: this()
{
this.fileName_ = other.fileName_;
}
// Token: 0x06000203 RID: 515 RVA: 0x000098C0 File Offset: 0x00007AC0
[DebuggerNonUserCode]
public SourceContext Clone()
{
return new SourceContext(this);
}
// Token: 0x1700005C RID: 92
// (get) Token: 0x06000204 RID: 516 RVA: 0x000098C8 File Offset: 0x00007AC8
// (set) Token: 0x06000205 RID: 517 RVA: 0x000098D0 File Offset: 0x00007AD0
[DebuggerNonUserCode]
public string FileName
{
get
{
return this.fileName_;
}
set
{
this.fileName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x06000206 RID: 518 RVA: 0x000098E3 File Offset: 0x00007AE3
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as SourceContext);
}
// Token: 0x06000207 RID: 519 RVA: 0x000098F1 File Offset: 0x00007AF1
[DebuggerNonUserCode]
public bool Equals(SourceContext other)
{
return other != null && (other == this || !(this.FileName != other.FileName));
}
// Token: 0x06000208 RID: 520 RVA: 0x00009914 File Offset: 0x00007B14
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.FileName.Length != 0)
{
num ^= this.FileName.GetHashCode();
}
return num;
}
// Token: 0x06000209 RID: 521 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x0600020A RID: 522 RVA: 0x0000993F File Offset: 0x00007B3F
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.FileName.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.FileName);
}
}
// Token: 0x0600020B RID: 523 RVA: 0x00009964 File Offset: 0x00007B64
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.FileName.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.FileName);
}
return num;
}
// Token: 0x0600020C RID: 524 RVA: 0x00009991 File Offset: 0x00007B91
[DebuggerNonUserCode]
public void MergeFrom(SourceContext other)
{
if (other == null)
{
return;
}
if (other.FileName.Length != 0)
{
this.FileName = other.FileName;
}
}
// Token: 0x0600020D RID: 525 RVA: 0x000099B0 File Offset: 0x00007BB0
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
input.SkipLastField();
}
else
{
this.FileName = input.ReadString();
}
}
}
// Token: 0x04000091 RID: 145
private static readonly MessageParser<SourceContext> _parser = new MessageParser<SourceContext>(() => new SourceContext());
// Token: 0x04000092 RID: 146
public const int FileNameFieldNumber = 1;
// Token: 0x04000093 RID: 147
private string fileName_ = "";
}
}
@@ -0,0 +1,25 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000025 RID: 37
public static class SourceContextReflection
{
// Token: 0x17000058 RID: 88
// (get) Token: 0x060001FC RID: 508 RVA: 0x000097E7 File Offset: 0x000079E7
public static FileDescriptor Descriptor
{
get
{
return SourceContextReflection.descriptor;
}
}
// Token: 0x04000090 RID: 144
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[] { "CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2ds", "ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo", "CUJSChNjb20uZ29vZ2xlLnByb3RvYnVmQhJTb3VyY2VDb250ZXh0UHJvdG9Q", "AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv", "dG8z" })), new FileDescriptor[0], new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(SourceContext), SourceContext.Parser, new string[] { "FileName" }, null, null, null)
}));
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200003E RID: 62
public sealed class StringValue : IMessage<StringValue>, IMessage, IEquatable<StringValue>, IDeepCloneable<StringValue>
{
// Token: 0x170000BD RID: 189
// (get) Token: 0x0600036A RID: 874 RVA: 0x0000CFFD File Offset: 0x0000B1FD
[DebuggerNonUserCode]
public static MessageParser<StringValue> Parser
{
get
{
return StringValue._parser;
}
}
// Token: 0x170000BE RID: 190
// (get) Token: 0x0600036B RID: 875 RVA: 0x0000D004 File Offset: 0x0000B204
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[7];
}
}
// Token: 0x170000BF RID: 191
// (get) Token: 0x0600036C RID: 876 RVA: 0x0000D016 File Offset: 0x0000B216
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return StringValue.Descriptor;
}
}
// Token: 0x0600036D RID: 877 RVA: 0x0000D01D File Offset: 0x0000B21D
[DebuggerNonUserCode]
public StringValue()
{
}
// Token: 0x0600036E RID: 878 RVA: 0x0000D030 File Offset: 0x0000B230
[DebuggerNonUserCode]
public StringValue(StringValue other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600036F RID: 879 RVA: 0x0000D044 File Offset: 0x0000B244
[DebuggerNonUserCode]
public StringValue Clone()
{
return new StringValue(this);
}
// Token: 0x170000C0 RID: 192
// (get) Token: 0x06000370 RID: 880 RVA: 0x0000D04C File Offset: 0x0000B24C
// (set) Token: 0x06000371 RID: 881 RVA: 0x0000D054 File Offset: 0x0000B254
[DebuggerNonUserCode]
public string Value
{
get
{
return this.value_;
}
set
{
this.value_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x06000372 RID: 882 RVA: 0x0000D067 File Offset: 0x0000B267
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as StringValue);
}
// Token: 0x06000373 RID: 883 RVA: 0x0000D075 File Offset: 0x0000B275
[DebuggerNonUserCode]
public bool Equals(StringValue other)
{
return other != null && (other == this || !(this.Value != other.Value));
}
// Token: 0x06000374 RID: 884 RVA: 0x0000D098 File Offset: 0x0000B298
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value.Length != 0)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000375 RID: 885 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000376 RID: 886 RVA: 0x0000D0C3 File Offset: 0x0000B2C3
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Value);
}
}
// Token: 0x06000377 RID: 887 RVA: 0x0000D0E8 File Offset: 0x0000B2E8
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Value);
}
return num;
}
// Token: 0x06000378 RID: 888 RVA: 0x0000D115 File Offset: 0x0000B315
[DebuggerNonUserCode]
public void MergeFrom(StringValue other)
{
if (other == null)
{
return;
}
if (other.Value.Length != 0)
{
this.Value = other.Value;
}
}
// Token: 0x06000379 RID: 889 RVA: 0x0000D134 File Offset: 0x0000B334
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadString();
}
}
}
// Token: 0x0400010E RID: 270
private static readonly MessageParser<StringValue> _parser = new MessageParser<StringValue>(() => new StringValue());
// Token: 0x0400010F RID: 271
public const int ValueFieldNumber = 1;
// Token: 0x04000110 RID: 272
private string value_ = "";
}
}
+159
View File
@@ -0,0 +1,159 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000029 RID: 41
public sealed class Struct : IMessage<Struct>, IMessage, IEquatable<Struct>, IDeepCloneable<Struct>
{
// Token: 0x1700005E RID: 94
// (get) Token: 0x06000211 RID: 529 RVA: 0x00009B84 File Offset: 0x00007D84
[DebuggerNonUserCode]
public static MessageParser<Struct> Parser
{
get
{
return Struct._parser;
}
}
// Token: 0x1700005F RID: 95
// (get) Token: 0x06000212 RID: 530 RVA: 0x00009B8B File Offset: 0x00007D8B
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return StructReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x17000060 RID: 96
// (get) Token: 0x06000213 RID: 531 RVA: 0x00009B9D File Offset: 0x00007D9D
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Struct.Descriptor;
}
}
// Token: 0x06000214 RID: 532 RVA: 0x00009BA4 File Offset: 0x00007DA4
[DebuggerNonUserCode]
public Struct()
{
}
// Token: 0x06000215 RID: 533 RVA: 0x00009BB7 File Offset: 0x00007DB7
[DebuggerNonUserCode]
public Struct(Struct other)
: this()
{
this.fields_ = other.fields_.Clone();
}
// Token: 0x06000216 RID: 534 RVA: 0x00009BD0 File Offset: 0x00007DD0
[DebuggerNonUserCode]
public Struct Clone()
{
return new Struct(this);
}
// Token: 0x17000061 RID: 97
// (get) Token: 0x06000217 RID: 535 RVA: 0x00009BD8 File Offset: 0x00007DD8
[DebuggerNonUserCode]
public MapField<string, Value> Fields
{
get
{
return this.fields_;
}
}
// Token: 0x06000218 RID: 536 RVA: 0x00009BE0 File Offset: 0x00007DE0
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Struct);
}
// Token: 0x06000219 RID: 537 RVA: 0x00009BEE File Offset: 0x00007DEE
[DebuggerNonUserCode]
public bool Equals(Struct other)
{
return other != null && (other == this || this.Fields.Equals(other.Fields));
}
// Token: 0x0600021A RID: 538 RVA: 0x00009C11 File Offset: 0x00007E11
[DebuggerNonUserCode]
public override int GetHashCode()
{
return 1 ^ this.Fields.GetHashCode();
}
// Token: 0x0600021B RID: 539 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x0600021C RID: 540 RVA: 0x00009C20 File Offset: 0x00007E20
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
this.fields_.WriteTo(output, Struct._map_fields_codec);
}
// Token: 0x0600021D RID: 541 RVA: 0x00009C33 File Offset: 0x00007E33
[DebuggerNonUserCode]
public int CalculateSize()
{
return 0 + this.fields_.CalculateSize(Struct._map_fields_codec);
}
// Token: 0x0600021E RID: 542 RVA: 0x00009C47 File Offset: 0x00007E47
[DebuggerNonUserCode]
public void MergeFrom(Struct other)
{
if (other == null)
{
return;
}
this.fields_.Add(other.fields_);
}
// Token: 0x0600021F RID: 543 RVA: 0x00009C60 File Offset: 0x00007E60
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 10U)
{
input.SkipLastField();
}
else
{
this.fields_.AddEntriesFrom(input, Struct._map_fields_codec);
}
}
}
// Token: 0x04000097 RID: 151
private static readonly MessageParser<Struct> _parser = new MessageParser<Struct>(() => new Struct());
// Token: 0x04000098 RID: 152
public const int FieldsFieldNumber = 1;
// Token: 0x04000099 RID: 153
private static readonly MapField<string, Value>.Codec _map_fields_codec = new MapField<string, Value>.Codec(FieldCodec.ForString(10U), FieldCodec.ForMessage<Value>(18U, Value.Parser), 10U);
// Token: 0x0400009A RID: 154
private readonly MapField<string, Value> fields_ = new MapField<string, Value>();
}
}
@@ -0,0 +1,31 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000027 RID: 39
public static class StructReflection
{
// Token: 0x1700005D RID: 93
// (get) Token: 0x0600020F RID: 527 RVA: 0x000099FE File Offset: 0x00007BFE
public static FileDescriptor Descriptor
{
get
{
return StructReflection.descriptor;
}
}
// Token: 0x04000094 RID: 148
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[]
{
"Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9i", "dWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9i", "dWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgB", "IAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToC", "OAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJv", "dG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoM", "c3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8K", "DHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RI", "ABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RW", "YWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIW",
"Lmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9W", "QUxVRRAAQoEBChNjb20uZ29vZ2xlLnByb3RvYnVmQgtTdHJ1Y3RQcm90b1AB", "WjFnaXRodWIuY29tL2dvbGFuZy9wcm90b2J1Zi9wdHlwZXMvc3RydWN0O3N0", "cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5", "cGVzYgZwcm90bzM="
})), new FileDescriptor[0], new GeneratedClrTypeInfo(new Type[] { typeof(NullValue) }, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(Struct), Struct.Parser, new string[] { "Fields" }, null, null, new GeneratedClrTypeInfo[1]),
new GeneratedClrTypeInfo(typeof(Value), Value.Parser, new string[] { "NullValue", "NumberValue", "StringValue", "BoolValue", "StructValue", "ListValue" }, new string[] { "Kind" }, null, null),
new GeneratedClrTypeInfo(typeof(ListValue), ListValue.Parser, new string[] { "Values" }, null, null, null)
}));
}
}
+16
View File
@@ -0,0 +1,16 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000030 RID: 48
public enum Syntax
{
// Token: 0x040000B5 RID: 181
[OriginalName("SYNTAX_PROTO2")]
Proto2,
// Token: 0x040000B6 RID: 182
[OriginalName("SYNTAX_PROTO3")]
Proto3
}
}
@@ -0,0 +1,26 @@
using System;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200002C RID: 44
public static class TimeExtensions
{
// Token: 0x06000254 RID: 596 RVA: 0x0000A4C0 File Offset: 0x000086C0
public static Timestamp ToTimestamp(this DateTime dateTime)
{
return Timestamp.FromDateTime(dateTime);
}
// Token: 0x06000255 RID: 597 RVA: 0x0000A4C8 File Offset: 0x000086C8
public static Timestamp ToTimestamp(this DateTimeOffset dateTimeOffset)
{
return Timestamp.FromDateTimeOffset(dateTimeOffset);
}
// Token: 0x06000256 RID: 598 RVA: 0x0000A4D0 File Offset: 0x000086D0
public static Duration ToDuration(this TimeSpan timeSpan)
{
return Duration.FromTimeSpan(timeSpan);
}
}
}
+353
View File
@@ -0,0 +1,353 @@
using System;
using System.Diagnostics;
using System.Globalization;
using System.Text;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200002E RID: 46
public sealed class Timestamp : IMessage<Timestamp>, IMessage, IEquatable<Timestamp>, IDeepCloneable<Timestamp>, ICustomDiagnosticMessage
{
// Token: 0x17000071 RID: 113
// (get) Token: 0x06000259 RID: 601 RVA: 0x0000A579 File Offset: 0x00008779
[DebuggerNonUserCode]
public static MessageParser<Timestamp> Parser
{
get
{
return Timestamp._parser;
}
}
// Token: 0x17000072 RID: 114
// (get) Token: 0x0600025A RID: 602 RVA: 0x0000A580 File Offset: 0x00008780
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return TimestampReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x17000073 RID: 115
// (get) Token: 0x0600025B RID: 603 RVA: 0x0000A592 File Offset: 0x00008792
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Timestamp.Descriptor;
}
}
// Token: 0x0600025C RID: 604 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public Timestamp()
{
}
// Token: 0x0600025D RID: 605 RVA: 0x0000A599 File Offset: 0x00008799
[DebuggerNonUserCode]
public Timestamp(Timestamp other)
: this()
{
this.seconds_ = other.seconds_;
this.nanos_ = other.nanos_;
}
// Token: 0x0600025E RID: 606 RVA: 0x0000A5B9 File Offset: 0x000087B9
[DebuggerNonUserCode]
public Timestamp Clone()
{
return new Timestamp(this);
}
// Token: 0x17000074 RID: 116
// (get) Token: 0x0600025F RID: 607 RVA: 0x0000A5C1 File Offset: 0x000087C1
// (set) Token: 0x06000260 RID: 608 RVA: 0x0000A5C9 File Offset: 0x000087C9
[DebuggerNonUserCode]
public long Seconds
{
get
{
return this.seconds_;
}
set
{
this.seconds_ = value;
}
}
// Token: 0x17000075 RID: 117
// (get) Token: 0x06000261 RID: 609 RVA: 0x0000A5D2 File Offset: 0x000087D2
// (set) Token: 0x06000262 RID: 610 RVA: 0x0000A5DA File Offset: 0x000087DA
[DebuggerNonUserCode]
public int Nanos
{
get
{
return this.nanos_;
}
set
{
this.nanos_ = value;
}
}
// Token: 0x06000263 RID: 611 RVA: 0x0000A5E3 File Offset: 0x000087E3
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Timestamp);
}
// Token: 0x06000264 RID: 612 RVA: 0x0000A5F1 File Offset: 0x000087F1
[DebuggerNonUserCode]
public bool Equals(Timestamp other)
{
return other != null && (other == this || (this.Seconds == other.Seconds && this.Nanos == other.Nanos));
}
// Token: 0x06000265 RID: 613 RVA: 0x0000A620 File Offset: 0x00008820
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Seconds != 0L)
{
num ^= this.Seconds.GetHashCode();
}
if (this.Nanos != 0)
{
num ^= this.Nanos.GetHashCode();
}
return num;
}
// Token: 0x06000266 RID: 614 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000267 RID: 615 RVA: 0x0000A662 File Offset: 0x00008862
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Seconds != 0L)
{
output.WriteRawTag(8);
output.WriteInt64(this.Seconds);
}
if (this.Nanos != 0)
{
output.WriteRawTag(16);
output.WriteInt32(this.Nanos);
}
}
// Token: 0x06000268 RID: 616 RVA: 0x0000A69C File Offset: 0x0000889C
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Seconds != 0L)
{
num += 1 + CodedOutputStream.ComputeInt64Size(this.Seconds);
}
if (this.Nanos != 0)
{
num += 1 + CodedOutputStream.ComputeInt32Size(this.Nanos);
}
return num;
}
// Token: 0x06000269 RID: 617 RVA: 0x0000A6DC File Offset: 0x000088DC
[DebuggerNonUserCode]
public void MergeFrom(Timestamp other)
{
if (other == null)
{
return;
}
if (other.Seconds != 0L)
{
this.Seconds = other.Seconds;
}
if (other.Nanos != 0)
{
this.Nanos = other.Nanos;
}
}
// Token: 0x0600026A RID: 618 RVA: 0x0000A70C File Offset: 0x0000890C
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
if (num != 16U)
{
input.SkipLastField();
}
else
{
this.Nanos = input.ReadInt32();
}
}
else
{
this.Seconds = input.ReadInt64();
}
}
}
// Token: 0x0600026B RID: 619 RVA: 0x0000A750 File Offset: 0x00008950
private static bool IsNormalized(long seconds, int nanoseconds)
{
return nanoseconds >= 0 && nanoseconds <= 999999999 && seconds >= -62135596800L && seconds <= 253402300799L;
}
// Token: 0x0600026C RID: 620 RVA: 0x0000A77B File Offset: 0x0000897B
public static Duration operator -(Timestamp lhs, Timestamp rhs)
{
ProtoPreconditions.CheckNotNull<Timestamp>(lhs, "lhs");
ProtoPreconditions.CheckNotNull<Timestamp>(rhs, "rhs");
return checked(Duration.Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos));
}
// Token: 0x0600026D RID: 621 RVA: 0x0000A7B4 File Offset: 0x000089B4
public static Timestamp operator +(Timestamp lhs, Duration rhs)
{
ProtoPreconditions.CheckNotNull<Timestamp>(lhs, "lhs");
ProtoPreconditions.CheckNotNull<Duration>(rhs, "rhs");
return checked(Timestamp.Normalize(lhs.Seconds + rhs.Seconds, lhs.Nanos + rhs.Nanos));
}
// Token: 0x0600026E RID: 622 RVA: 0x0000A7ED File Offset: 0x000089ED
public static Timestamp operator -(Timestamp lhs, Duration rhs)
{
ProtoPreconditions.CheckNotNull<Timestamp>(lhs, "lhs");
ProtoPreconditions.CheckNotNull<Duration>(rhs, "rhs");
return checked(Timestamp.Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos));
}
// Token: 0x0600026F RID: 623 RVA: 0x0000A828 File Offset: 0x00008A28
public DateTime ToDateTime()
{
if (!Timestamp.IsNormalized(this.Seconds, this.Nanos))
{
throw new InvalidOperationException("Timestamp contains invalid values: Seconds={Seconds}; Nanos={Nanos}");
}
return Timestamp.UnixEpoch.AddSeconds((double)this.Seconds).AddTicks((long)(this.Nanos / 100));
}
// Token: 0x06000270 RID: 624 RVA: 0x0000A879 File Offset: 0x00008A79
public DateTimeOffset ToDateTimeOffset()
{
return new DateTimeOffset(this.ToDateTime(), TimeSpan.Zero);
}
// Token: 0x06000271 RID: 625 RVA: 0x0000A88C File Offset: 0x00008A8C
public static Timestamp FromDateTime(DateTime dateTime)
{
if (dateTime.Kind != DateTimeKind.Utc)
{
throw new ArgumentException("Conversion from DateTime to Timestamp requires the DateTime kind to be Utc", "dateTime");
}
long num = dateTime.Ticks / 10000000L;
int num2 = (int)(dateTime.Ticks % 10000000L) * 100;
return new Timestamp
{
Seconds = num - 62135596800L,
Nanos = num2
};
}
// Token: 0x06000272 RID: 626 RVA: 0x0000A8F2 File Offset: 0x00008AF2
public static Timestamp FromDateTimeOffset(DateTimeOffset dateTimeOffset)
{
return Timestamp.FromDateTime(dateTimeOffset.UtcDateTime);
}
// Token: 0x06000273 RID: 627 RVA: 0x0000A900 File Offset: 0x00008B00
internal static Timestamp Normalize(long seconds, int nanoseconds)
{
int num = nanoseconds / 1000000000;
seconds += (long)num;
nanoseconds -= num * 1000000000;
if (nanoseconds < 0)
{
nanoseconds += 1000000000;
seconds -= 1L;
}
return new Timestamp
{
Seconds = seconds,
Nanos = nanoseconds
};
}
// Token: 0x06000274 RID: 628 RVA: 0x0000A94C File Offset: 0x00008B4C
internal static string ToJson(long seconds, int nanoseconds, bool diagnosticOnly)
{
if (Timestamp.IsNormalized(seconds, nanoseconds))
{
DateTime dateTime = Timestamp.UnixEpoch.AddSeconds((double)seconds);
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append('"');
stringBuilder.Append(dateTime.ToString("yyyy'-'MM'-'dd'T'HH:mm:ss", CultureInfo.InvariantCulture));
Duration.AppendNanoseconds(stringBuilder, nanoseconds);
stringBuilder.Append("Z\"");
return stringBuilder.ToString();
}
if (diagnosticOnly)
{
return string.Format(CultureInfo.InvariantCulture, "{{ \"@warning\": \"Invalid Timestamp\", \"seconds\": \"{0}\", \"nanos\": {1} }}", new object[] { seconds, nanoseconds });
}
throw new InvalidOperationException("Non-normalized timestamp value");
}
// Token: 0x06000275 RID: 629 RVA: 0x0000A9E6 File Offset: 0x00008BE6
public string ToDiagnosticString()
{
return Timestamp.ToJson(this.Seconds, this.Nanos, true);
}
// Token: 0x040000A9 RID: 169
private static readonly MessageParser<Timestamp> _parser = new MessageParser<Timestamp>(() => new Timestamp());
// Token: 0x040000AA RID: 170
public const int SecondsFieldNumber = 1;
// Token: 0x040000AB RID: 171
private long seconds_;
// Token: 0x040000AC RID: 172
public const int NanosFieldNumber = 2;
// Token: 0x040000AD RID: 173
private int nanos_;
// Token: 0x040000AE RID: 174
private static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
// Token: 0x040000AF RID: 175
private const long BclSecondsAtUnixEpoch = 62135596800L;
// Token: 0x040000B0 RID: 176
internal const long UnixSecondsAtBclMaxValue = 253402300799L;
// Token: 0x040000B1 RID: 177
internal const long UnixSecondsAtBclMinValue = -62135596800L;
// Token: 0x040000B2 RID: 178
internal const int MaxNanos = 999999999;
}
}
@@ -0,0 +1,25 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200002D RID: 45
public static class TimestampReflection
{
// Token: 0x17000070 RID: 112
// (get) Token: 0x06000257 RID: 599 RVA: 0x0000A4D8 File Offset: 0x000086D8
public static FileDescriptor Descriptor
{
get
{
return TimestampReflection.descriptor;
}
}
// Token: 0x040000A8 RID: 168
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[] { "Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJv", "dG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MY", "AiABKAVCfgoTY29tLmdvb2dsZS5wcm90b2J1ZkIOVGltZXN0YW1wUHJvdG9Q", "AVorZ2l0aHViLmNvbS9nb2xhbmcvcHJvdG9idWYvcHR5cGVzL3RpbWVzdGFt", "cPgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", "cHJvdG8z" })), new FileDescriptor[0], new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(Timestamp), Timestamp.Parser, new string[] { "Seconds", "Nanos" }, null, null, null)
}));
}
}
+370
View File
@@ -0,0 +1,370 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000031 RID: 49
public sealed class Type : IMessage<Type>, IMessage, IEquatable<Type>, IDeepCloneable<Type>
{
// Token: 0x17000077 RID: 119
// (get) Token: 0x06000279 RID: 633 RVA: 0x0000AD53 File Offset: 0x00008F53
[DebuggerNonUserCode]
public static MessageParser<Type> Parser
{
get
{
return Type._parser;
}
}
// Token: 0x17000078 RID: 120
// (get) Token: 0x0600027A RID: 634 RVA: 0x0000AD5A File Offset: 0x00008F5A
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return TypeReflection.Descriptor.MessageTypes[0];
}
}
// Token: 0x17000079 RID: 121
// (get) Token: 0x0600027B RID: 635 RVA: 0x0000AD6C File Offset: 0x00008F6C
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Type.Descriptor;
}
}
// Token: 0x0600027C RID: 636 RVA: 0x0000AD73 File Offset: 0x00008F73
[DebuggerNonUserCode]
public Type()
{
}
// Token: 0x0600027D RID: 637 RVA: 0x0000ADA8 File Offset: 0x00008FA8
[DebuggerNonUserCode]
public Type(Type other)
: this()
{
this.name_ = other.name_;
this.fields_ = other.fields_.Clone();
this.oneofs_ = other.oneofs_.Clone();
this.options_ = other.options_.Clone();
this.SourceContext = ((other.sourceContext_ != null) ? other.SourceContext.Clone() : null);
this.syntax_ = other.syntax_;
}
// Token: 0x0600027E RID: 638 RVA: 0x0000AE22 File Offset: 0x00009022
[DebuggerNonUserCode]
public Type Clone()
{
return new Type(this);
}
// Token: 0x1700007A RID: 122
// (get) Token: 0x0600027F RID: 639 RVA: 0x0000AE2A File Offset: 0x0000902A
// (set) Token: 0x06000280 RID: 640 RVA: 0x0000AE32 File Offset: 0x00009032
[DebuggerNonUserCode]
public string Name
{
get
{
return this.name_;
}
set
{
this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
}
}
// Token: 0x1700007B RID: 123
// (get) Token: 0x06000281 RID: 641 RVA: 0x0000AE45 File Offset: 0x00009045
[DebuggerNonUserCode]
public RepeatedField<Field> Fields
{
get
{
return this.fields_;
}
}
// Token: 0x1700007C RID: 124
// (get) Token: 0x06000282 RID: 642 RVA: 0x0000AE4D File Offset: 0x0000904D
[DebuggerNonUserCode]
public RepeatedField<string> Oneofs
{
get
{
return this.oneofs_;
}
}
// Token: 0x1700007D RID: 125
// (get) Token: 0x06000283 RID: 643 RVA: 0x0000AE55 File Offset: 0x00009055
[DebuggerNonUserCode]
public RepeatedField<Option> Options
{
get
{
return this.options_;
}
}
// Token: 0x1700007E RID: 126
// (get) Token: 0x06000284 RID: 644 RVA: 0x0000AE5D File Offset: 0x0000905D
// (set) Token: 0x06000285 RID: 645 RVA: 0x0000AE65 File Offset: 0x00009065
[DebuggerNonUserCode]
public SourceContext SourceContext
{
get
{
return this.sourceContext_;
}
set
{
this.sourceContext_ = value;
}
}
// Token: 0x1700007F RID: 127
// (get) Token: 0x06000286 RID: 646 RVA: 0x0000AE6E File Offset: 0x0000906E
// (set) Token: 0x06000287 RID: 647 RVA: 0x0000AE76 File Offset: 0x00009076
[DebuggerNonUserCode]
public Syntax Syntax
{
get
{
return this.syntax_;
}
set
{
this.syntax_ = value;
}
}
// Token: 0x06000288 RID: 648 RVA: 0x0000AE7F File Offset: 0x0000907F
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Type);
}
// Token: 0x06000289 RID: 649 RVA: 0x0000AE90 File Offset: 0x00009090
[DebuggerNonUserCode]
public bool Equals(Type other)
{
return other != null && (other == this || (!(this.Name != other.Name) && this.fields_.Equals(other.fields_) && this.oneofs_.Equals(other.oneofs_) && this.options_.Equals(other.options_) && object.Equals(this.SourceContext, other.SourceContext) && this.Syntax == other.Syntax));
}
// Token: 0x0600028A RID: 650 RVA: 0x0000AF24 File Offset: 0x00009124
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Name.Length != 0)
{
num ^= this.Name.GetHashCode();
}
num ^= this.fields_.GetHashCode();
num ^= this.oneofs_.GetHashCode();
num ^= this.options_.GetHashCode();
if (this.sourceContext_ != null)
{
num ^= this.SourceContext.GetHashCode();
}
if (this.Syntax != Syntax.Proto2)
{
num ^= this.Syntax.GetHashCode();
}
return num;
}
// Token: 0x0600028B RID: 651 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x0600028C RID: 652 RVA: 0x0000AFB0 File Offset: 0x000091B0
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Name.Length != 0)
{
output.WriteRawTag(10);
output.WriteString(this.Name);
}
this.fields_.WriteTo(output, Type._repeated_fields_codec);
this.oneofs_.WriteTo(output, Type._repeated_oneofs_codec);
this.options_.WriteTo(output, Type._repeated_options_codec);
if (this.sourceContext_ != null)
{
output.WriteRawTag(42);
output.WriteMessage(this.SourceContext);
}
if (this.Syntax != Syntax.Proto2)
{
output.WriteRawTag(48);
output.WriteEnum((int)this.Syntax);
}
}
// Token: 0x0600028D RID: 653 RVA: 0x0000B04C File Offset: 0x0000924C
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Name.Length != 0)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
}
num += this.fields_.CalculateSize(Type._repeated_fields_codec);
num += this.oneofs_.CalculateSize(Type._repeated_oneofs_codec);
num += this.options_.CalculateSize(Type._repeated_options_codec);
if (this.sourceContext_ != null)
{
num += 1 + CodedOutputStream.ComputeMessageSize(this.SourceContext);
}
if (this.Syntax != Syntax.Proto2)
{
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Syntax);
}
return num;
}
// Token: 0x0600028E RID: 654 RVA: 0x0000B0E4 File Offset: 0x000092E4
[DebuggerNonUserCode]
public void MergeFrom(Type other)
{
if (other == null)
{
return;
}
if (other.Name.Length != 0)
{
this.Name = other.Name;
}
this.fields_.Add(other.fields_);
this.oneofs_.Add(other.oneofs_);
this.options_.Add(other.options_);
if (other.sourceContext_ != null)
{
if (this.sourceContext_ == null)
{
this.sourceContext_ = new SourceContext();
}
this.SourceContext.MergeFrom(other.SourceContext);
}
if (other.Syntax != Syntax.Proto2)
{
this.Syntax = other.Syntax;
}
}
// Token: 0x0600028F RID: 655 RVA: 0x0000B184 File Offset: 0x00009384
[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.fields_.AddEntriesFrom(input, Type._repeated_fields_codec);
continue;
}
if (num == 26U)
{
this.oneofs_.AddEntriesFrom(input, Type._repeated_oneofs_codec);
continue;
}
}
else
{
if (num == 34U)
{
this.options_.AddEntriesFrom(input, Type._repeated_options_codec);
continue;
}
if (num == 42U)
{
if (this.sourceContext_ == null)
{
this.sourceContext_ = new SourceContext();
}
input.ReadMessage(this.sourceContext_);
continue;
}
if (num == 48U)
{
this.syntax_ = (Syntax)input.ReadEnum();
continue;
}
}
input.SkipLastField();
}
}
// Token: 0x040000B7 RID: 183
private static readonly MessageParser<Type> _parser = new MessageParser<Type>(() => new Type());
// Token: 0x040000B8 RID: 184
public const int NameFieldNumber = 1;
// Token: 0x040000B9 RID: 185
private string name_ = "";
// Token: 0x040000BA RID: 186
public const int FieldsFieldNumber = 2;
// Token: 0x040000BB RID: 187
private static readonly FieldCodec<Field> _repeated_fields_codec = FieldCodec.ForMessage<Field>(18U, Field.Parser);
// Token: 0x040000BC RID: 188
private readonly RepeatedField<Field> fields_ = new RepeatedField<Field>();
// Token: 0x040000BD RID: 189
public const int OneofsFieldNumber = 3;
// Token: 0x040000BE RID: 190
private static readonly FieldCodec<string> _repeated_oneofs_codec = FieldCodec.ForString(26U);
// Token: 0x040000BF RID: 191
private readonly RepeatedField<string> oneofs_ = new RepeatedField<string>();
// Token: 0x040000C0 RID: 192
public const int OptionsFieldNumber = 4;
// Token: 0x040000C1 RID: 193
private static readonly FieldCodec<Option> _repeated_options_codec = FieldCodec.ForMessage<Option>(34U, Option.Parser);
// Token: 0x040000C2 RID: 194
private readonly RepeatedField<Option> options_ = new RepeatedField<Option>();
// Token: 0x040000C3 RID: 195
public const int SourceContextFieldNumber = 5;
// Token: 0x040000C4 RID: 196
private SourceContext sourceContext_;
// Token: 0x040000C5 RID: 197
public const int SyntaxFieldNumber = 6;
// Token: 0x040000C6 RID: 198
private Syntax syntax_;
}
}
@@ -0,0 +1,43 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200002F RID: 47
public static class TypeReflection
{
// Token: 0x17000076 RID: 118
// (get) Token: 0x06000277 RID: 631 RVA: 0x0000AA2B File Offset: 0x00008C2B
public static FileDescriptor Descriptor
{
get
{
return TypeReflection.descriptor;
}
}
// Token: 0x040000B3 RID: 179
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[]
{
"Chpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxIPZ29vZ2xlLnByb3RvYnVm", "Ghlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvGiRnb29nbGUvcHJvdG9idWYv", "c291cmNlX2NvbnRleHQucHJvdG8i1wEKBFR5cGUSDAoEbmFtZRgBIAEoCRIm", "CgZmaWVsZHMYAiADKAsyFi5nb29nbGUucHJvdG9idWYuRmllbGQSDgoGb25l", "b2ZzGAMgAygJEigKB29wdGlvbnMYBCADKAsyFy5nb29nbGUucHJvdG9idWYu", "T3B0aW9uEjYKDnNvdXJjZV9jb250ZXh0GAUgASgLMh4uZ29vZ2xlLnByb3Rv", "YnVmLlNvdXJjZUNvbnRleHQSJwoGc3ludGF4GAYgASgOMhcuZ29vZ2xlLnBy", "b3RvYnVmLlN5bnRheCLVBQoFRmllbGQSKQoEa2luZBgBIAEoDjIbLmdvb2ds", "ZS5wcm90b2J1Zi5GaWVsZC5LaW5kEjcKC2NhcmRpbmFsaXR5GAIgASgOMiIu", "Z29vZ2xlLnByb3RvYnVmLkZpZWxkLkNhcmRpbmFsaXR5Eg4KBm51bWJlchgD",
"IAEoBRIMCgRuYW1lGAQgASgJEhAKCHR5cGVfdXJsGAYgASgJEhMKC29uZW9m", "X2luZGV4GAcgASgFEg4KBnBhY2tlZBgIIAEoCBIoCgdvcHRpb25zGAkgAygL", "MhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhIRCglqc29uX25hbWUYCiABKAkS", "FQoNZGVmYXVsdF92YWx1ZRgLIAEoCSLIAgoES2luZBIQCgxUWVBFX1VOS05P", "V04QABIPCgtUWVBFX0RPVUJMRRABEg4KClRZUEVfRkxPQVQQAhIOCgpUWVBF", "X0lOVDY0EAMSDwoLVFlQRV9VSU5UNjQQBBIOCgpUWVBFX0lOVDMyEAUSEAoM", "VFlQRV9GSVhFRDY0EAYSEAoMVFlQRV9GSVhFRDMyEAcSDQoJVFlQRV9CT09M", "EAgSDwoLVFlQRV9TVFJJTkcQCRIOCgpUWVBFX0dST1VQEAoSEAoMVFlQRV9N", "RVNTQUdFEAsSDgoKVFlQRV9CWVRFUxAMEg8KC1RZUEVfVUlOVDMyEA0SDQoJ", "VFlQRV9FTlVNEA4SEQoNVFlQRV9TRklYRUQzMhAPEhEKDVRZUEVfU0ZJWEVE",
"NjQQEBIPCgtUWVBFX1NJTlQzMhAREg8KC1RZUEVfU0lOVDY0EBIidAoLQ2Fy", "ZGluYWxpdHkSFwoTQ0FSRElOQUxJVFlfVU5LTk9XThAAEhgKFENBUkRJTkFM", "SVRZX09QVElPTkFMEAESGAoUQ0FSRElOQUxJVFlfUkVRVUlSRUQQAhIYChRD", "QVJESU5BTElUWV9SRVBFQVRFRBADIs4BCgRFbnVtEgwKBG5hbWUYASABKAkS", "LQoJZW51bXZhbHVlGAIgAygLMhouZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1", "ZRIoCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2", "Cg5zb3VyY2VfY29udGV4dBgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3Vy", "Y2VDb250ZXh0EicKBnN5bnRheBgFIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5T", "eW50YXgiUwoJRW51bVZhbHVlEgwKBG5hbWUYASABKAkSDgoGbnVtYmVyGAIg", "ASgFEigKB29wdGlvbnMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuT3B0aW9u",
"IjsKBk9wdGlvbhIMCgRuYW1lGAEgASgJEiMKBXZhbHVlGAIgASgLMhQuZ29v", "Z2xlLnByb3RvYnVmLkFueSouCgZTeW50YXgSEQoNU1lOVEFYX1BST1RPMhAA", "EhEKDVNZTlRBWF9QUk9UTzMQAUJMChNjb20uZ29vZ2xlLnByb3RvYnVmQglU", "eXBlUHJvdG9QAfgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25v", "d25UeXBlc2IGcHJvdG8z"
})), new FileDescriptor[]
{
AnyReflection.Descriptor,
SourceContextReflection.Descriptor
}, new GeneratedClrTypeInfo(new Type[] { typeof(Syntax) }, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(Type), Type.Parser, new string[] { "Name", "Fields", "Oneofs", "Options", "SourceContext", "Syntax" }, null, null, null),
new GeneratedClrTypeInfo(typeof(Field), Field.Parser, new string[] { "Kind", "Cardinality", "Number", "Name", "TypeUrl", "OneofIndex", "Packed", "Options", "JsonName", "DefaultValue" }, null, new Type[]
{
typeof(Field.Types.Kind),
typeof(Field.Types.Cardinality)
}, null),
new GeneratedClrTypeInfo(typeof(Enum), Enum.Parser, new string[] { "Name", "Enumvalue", "Options", "SourceContext", "Syntax" }, null, null, null),
new GeneratedClrTypeInfo(typeof(EnumValue), EnumValue.Parser, new string[] { "Name", "Number", "Options" }, null, null, null),
new GeneratedClrTypeInfo(typeof(Option), Option.Parser, new string[] { "Name", "Value" }, null, null, null)
}));
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200003C RID: 60
public sealed class UInt32Value : IMessage<UInt32Value>, IMessage, IEquatable<UInt32Value>, IDeepCloneable<UInt32Value>
{
// Token: 0x170000B5 RID: 181
// (get) Token: 0x06000348 RID: 840 RVA: 0x0000CD61 File Offset: 0x0000AF61
[DebuggerNonUserCode]
public static MessageParser<UInt32Value> Parser
{
get
{
return UInt32Value._parser;
}
}
// Token: 0x170000B6 RID: 182
// (get) Token: 0x06000349 RID: 841 RVA: 0x0000CD68 File Offset: 0x0000AF68
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[5];
}
}
// Token: 0x170000B7 RID: 183
// (get) Token: 0x0600034A RID: 842 RVA: 0x0000CD7A File Offset: 0x0000AF7A
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return UInt32Value.Descriptor;
}
}
// Token: 0x0600034B RID: 843 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public UInt32Value()
{
}
// Token: 0x0600034C RID: 844 RVA: 0x0000CD81 File Offset: 0x0000AF81
[DebuggerNonUserCode]
public UInt32Value(UInt32Value other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600034D RID: 845 RVA: 0x0000CD95 File Offset: 0x0000AF95
[DebuggerNonUserCode]
public UInt32Value Clone()
{
return new UInt32Value(this);
}
// Token: 0x170000B8 RID: 184
// (get) Token: 0x0600034E RID: 846 RVA: 0x0000CD9D File Offset: 0x0000AF9D
// (set) Token: 0x0600034F RID: 847 RVA: 0x0000CDA5 File Offset: 0x0000AFA5
[DebuggerNonUserCode]
public uint Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x06000350 RID: 848 RVA: 0x0000CDAE File Offset: 0x0000AFAE
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as UInt32Value);
}
// Token: 0x06000351 RID: 849 RVA: 0x0000CDBC File Offset: 0x0000AFBC
[DebuggerNonUserCode]
public bool Equals(UInt32Value other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x06000352 RID: 850 RVA: 0x0000CDDC File Offset: 0x0000AFDC
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0U)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000353 RID: 851 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000354 RID: 852 RVA: 0x0000CE05 File Offset: 0x0000B005
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0U)
{
output.WriteRawTag(8);
output.WriteUInt32(this.Value);
}
}
// Token: 0x06000355 RID: 853 RVA: 0x0000CE24 File Offset: 0x0000B024
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0U)
{
num += 1 + CodedOutputStream.ComputeUInt32Size(this.Value);
}
return num;
}
// Token: 0x06000356 RID: 854 RVA: 0x0000CE4C File Offset: 0x0000B04C
[DebuggerNonUserCode]
public void MergeFrom(UInt32Value other)
{
if (other == null)
{
return;
}
if (other.Value != 0U)
{
this.Value = other.Value;
}
}
// Token: 0x06000357 RID: 855 RVA: 0x0000CE68 File Offset: 0x0000B068
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadUInt32();
}
}
}
// Token: 0x04000108 RID: 264
private static readonly MessageParser<UInt32Value> _parser = new MessageParser<UInt32Value>(() => new UInt32Value());
// Token: 0x04000109 RID: 265
public const int ValueFieldNumber = 1;
// Token: 0x0400010A RID: 266
private uint value_;
}
}
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200003A RID: 58
public sealed class UInt64Value : IMessage<UInt64Value>, IMessage, IEquatable<UInt64Value>, IDeepCloneable<UInt64Value>
{
// Token: 0x170000AD RID: 173
// (get) Token: 0x06000326 RID: 806 RVA: 0x0000CAB9 File Offset: 0x0000ACB9
[DebuggerNonUserCode]
public static MessageParser<UInt64Value> Parser
{
get
{
return UInt64Value._parser;
}
}
// Token: 0x170000AE RID: 174
// (get) Token: 0x06000327 RID: 807 RVA: 0x0000CAC0 File Offset: 0x0000ACC0
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[3];
}
}
// Token: 0x170000AF RID: 175
// (get) Token: 0x06000328 RID: 808 RVA: 0x0000CAD2 File Offset: 0x0000ACD2
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return UInt64Value.Descriptor;
}
}
// Token: 0x06000329 RID: 809 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public UInt64Value()
{
}
// Token: 0x0600032A RID: 810 RVA: 0x0000CAD9 File Offset: 0x0000ACD9
[DebuggerNonUserCode]
public UInt64Value(UInt64Value other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600032B RID: 811 RVA: 0x0000CAED File Offset: 0x0000ACED
[DebuggerNonUserCode]
public UInt64Value Clone()
{
return new UInt64Value(this);
}
// Token: 0x170000B0 RID: 176
// (get) Token: 0x0600032C RID: 812 RVA: 0x0000CAF5 File Offset: 0x0000ACF5
// (set) Token: 0x0600032D RID: 813 RVA: 0x0000CAFD File Offset: 0x0000ACFD
[DebuggerNonUserCode]
public ulong Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x0600032E RID: 814 RVA: 0x0000CB06 File Offset: 0x0000AD06
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as UInt64Value);
}
// Token: 0x0600032F RID: 815 RVA: 0x0000CB14 File Offset: 0x0000AD14
[DebuggerNonUserCode]
public bool Equals(UInt64Value other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x06000330 RID: 816 RVA: 0x0000CB34 File Offset: 0x0000AD34
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0UL)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000331 RID: 817 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000332 RID: 818 RVA: 0x0000CB5D File Offset: 0x0000AD5D
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0UL)
{
output.WriteRawTag(8);
output.WriteUInt64(this.Value);
}
}
// Token: 0x06000333 RID: 819 RVA: 0x0000CB7C File Offset: 0x0000AD7C
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0UL)
{
num += 1 + CodedOutputStream.ComputeUInt64Size(this.Value);
}
return num;
}
// Token: 0x06000334 RID: 820 RVA: 0x0000CBA4 File Offset: 0x0000ADA4
[DebuggerNonUserCode]
public void MergeFrom(UInt64Value other)
{
if (other == null)
{
return;
}
if (other.Value != 0UL)
{
this.Value = other.Value;
}
}
// Token: 0x06000335 RID: 821 RVA: 0x0000CBC0 File Offset: 0x0000ADC0
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadUInt64();
}
}
}
// Token: 0x04000102 RID: 258
private static readonly MessageParser<UInt64Value> _parser = new MessageParser<UInt64Value>(() => new UInt64Value());
// Token: 0x04000103 RID: 259
public const int ValueFieldNumber = 1;
// Token: 0x04000104 RID: 260
private ulong value_;
}
}
+547
View File
@@ -0,0 +1,547 @@
using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200002A RID: 42
public sealed class Value : IMessage<Value>, IMessage, IEquatable<Value>, IDeepCloneable<Value>
{
// Token: 0x17000062 RID: 98
// (get) Token: 0x06000221 RID: 545 RVA: 0x00009CD2 File Offset: 0x00007ED2
[DebuggerNonUserCode]
public static MessageParser<Value> Parser
{
get
{
return Value._parser;
}
}
// Token: 0x17000063 RID: 99
// (get) Token: 0x06000222 RID: 546 RVA: 0x00009CD9 File Offset: 0x00007ED9
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return StructReflection.Descriptor.MessageTypes[1];
}
}
// Token: 0x17000064 RID: 100
// (get) Token: 0x06000223 RID: 547 RVA: 0x00009CEB File Offset: 0x00007EEB
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Value.Descriptor;
}
}
// Token: 0x06000224 RID: 548 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public Value()
{
}
// Token: 0x06000225 RID: 549 RVA: 0x00009CF4 File Offset: 0x00007EF4
[DebuggerNonUserCode]
public Value(Value other)
: this()
{
switch (other.KindCase)
{
case Value.KindOneofCase.NullValue:
this.NullValue = other.NullValue;
return;
case Value.KindOneofCase.NumberValue:
this.NumberValue = other.NumberValue;
return;
case Value.KindOneofCase.StringValue:
this.StringValue = other.StringValue;
return;
case Value.KindOneofCase.BoolValue:
this.BoolValue = other.BoolValue;
return;
case Value.KindOneofCase.StructValue:
this.StructValue = other.StructValue.Clone();
return;
case Value.KindOneofCase.ListValue:
this.ListValue = other.ListValue.Clone();
return;
default:
return;
}
}
// Token: 0x06000226 RID: 550 RVA: 0x00009D86 File Offset: 0x00007F86
[DebuggerNonUserCode]
public Value Clone()
{
return new Value(this);
}
// Token: 0x17000065 RID: 101
// (get) Token: 0x06000227 RID: 551 RVA: 0x00009D8E File Offset: 0x00007F8E
// (set) Token: 0x06000228 RID: 552 RVA: 0x00009DA6 File Offset: 0x00007FA6
[DebuggerNonUserCode]
public NullValue NullValue
{
get
{
if (this.kindCase_ != Value.KindOneofCase.NullValue)
{
return NullValue.NullValue;
}
return (NullValue)this.kind_;
}
set
{
this.kind_ = value;
this.kindCase_ = Value.KindOneofCase.NullValue;
}
}
// Token: 0x17000066 RID: 102
// (get) Token: 0x06000229 RID: 553 RVA: 0x00009DBB File Offset: 0x00007FBB
// (set) Token: 0x0600022A RID: 554 RVA: 0x00009DDB File Offset: 0x00007FDB
[DebuggerNonUserCode]
public double NumberValue
{
get
{
if (this.kindCase_ != Value.KindOneofCase.NumberValue)
{
return 0.0;
}
return (double)this.kind_;
}
set
{
this.kind_ = value;
this.kindCase_ = Value.KindOneofCase.NumberValue;
}
}
// Token: 0x17000067 RID: 103
// (get) Token: 0x0600022B RID: 555 RVA: 0x00009DF0 File Offset: 0x00007FF0
// (set) Token: 0x0600022C RID: 556 RVA: 0x00009E0C File Offset: 0x0000800C
[DebuggerNonUserCode]
public string StringValue
{
get
{
if (this.kindCase_ != Value.KindOneofCase.StringValue)
{
return "";
}
return (string)this.kind_;
}
set
{
this.kind_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
this.kindCase_ = Value.KindOneofCase.StringValue;
}
}
// Token: 0x17000068 RID: 104
// (get) Token: 0x0600022D RID: 557 RVA: 0x00009E26 File Offset: 0x00008026
// (set) Token: 0x0600022E RID: 558 RVA: 0x00009E3E File Offset: 0x0000803E
[DebuggerNonUserCode]
public bool BoolValue
{
get
{
return this.kindCase_ == Value.KindOneofCase.BoolValue && (bool)this.kind_;
}
set
{
this.kind_ = value;
this.kindCase_ = Value.KindOneofCase.BoolValue;
}
}
// Token: 0x17000069 RID: 105
// (get) Token: 0x0600022F RID: 559 RVA: 0x00009E53 File Offset: 0x00008053
// (set) Token: 0x06000230 RID: 560 RVA: 0x00009E6B File Offset: 0x0000806B
[DebuggerNonUserCode]
public Struct StructValue
{
get
{
if (this.kindCase_ != Value.KindOneofCase.StructValue)
{
return null;
}
return (Struct)this.kind_;
}
set
{
this.kind_ = value;
this.kindCase_ = ((value == null) ? Value.KindOneofCase.None : Value.KindOneofCase.StructValue);
}
}
// Token: 0x1700006A RID: 106
// (get) Token: 0x06000231 RID: 561 RVA: 0x00009E81 File Offset: 0x00008081
// (set) Token: 0x06000232 RID: 562 RVA: 0x00009E99 File Offset: 0x00008099
[DebuggerNonUserCode]
public ListValue ListValue
{
get
{
if (this.kindCase_ != Value.KindOneofCase.ListValue)
{
return null;
}
return (ListValue)this.kind_;
}
set
{
this.kind_ = value;
this.kindCase_ = ((value == null) ? Value.KindOneofCase.None : Value.KindOneofCase.ListValue);
}
}
// Token: 0x1700006B RID: 107
// (get) Token: 0x06000233 RID: 563 RVA: 0x00009EAF File Offset: 0x000080AF
[DebuggerNonUserCode]
public Value.KindOneofCase KindCase
{
get
{
return this.kindCase_;
}
}
// Token: 0x06000234 RID: 564 RVA: 0x00009EB7 File Offset: 0x000080B7
[DebuggerNonUserCode]
public void ClearKind()
{
this.kindCase_ = Value.KindOneofCase.None;
this.kind_ = null;
}
// Token: 0x06000235 RID: 565 RVA: 0x00009EC7 File Offset: 0x000080C7
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Value);
}
// Token: 0x06000236 RID: 566 RVA: 0x00009ED8 File Offset: 0x000080D8
[DebuggerNonUserCode]
public bool Equals(Value other)
{
return other != null && (other == this || (this.NullValue == other.NullValue && this.NumberValue == other.NumberValue && !(this.StringValue != other.StringValue) && this.BoolValue == other.BoolValue && object.Equals(this.StructValue, other.StructValue) && object.Equals(this.ListValue, other.ListValue) && this.KindCase == other.KindCase));
}
// Token: 0x06000237 RID: 567 RVA: 0x00009F70 File Offset: 0x00008170
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.kindCase_ == Value.KindOneofCase.NullValue)
{
num ^= this.NullValue.GetHashCode();
}
if (this.kindCase_ == Value.KindOneofCase.NumberValue)
{
num ^= this.NumberValue.GetHashCode();
}
if (this.kindCase_ == Value.KindOneofCase.StringValue)
{
num ^= this.StringValue.GetHashCode();
}
if (this.kindCase_ == Value.KindOneofCase.BoolValue)
{
num ^= this.BoolValue.GetHashCode();
}
if (this.kindCase_ == Value.KindOneofCase.StructValue)
{
num ^= this.StructValue.GetHashCode();
}
if (this.kindCase_ == Value.KindOneofCase.ListValue)
{
num ^= this.ListValue.GetHashCode();
}
return num ^ (int)this.kindCase_;
}
// Token: 0x06000238 RID: 568 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000239 RID: 569 RVA: 0x0000A024 File Offset: 0x00008224
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.kindCase_ == Value.KindOneofCase.NullValue)
{
output.WriteRawTag(8);
output.WriteEnum((int)this.NullValue);
}
if (this.kindCase_ == Value.KindOneofCase.NumberValue)
{
output.WriteRawTag(17);
output.WriteDouble(this.NumberValue);
}
if (this.kindCase_ == Value.KindOneofCase.StringValue)
{
output.WriteRawTag(26);
output.WriteString(this.StringValue);
}
if (this.kindCase_ == Value.KindOneofCase.BoolValue)
{
output.WriteRawTag(32);
output.WriteBool(this.BoolValue);
}
if (this.kindCase_ == Value.KindOneofCase.StructValue)
{
output.WriteRawTag(42);
output.WriteMessage(this.StructValue);
}
if (this.kindCase_ == Value.KindOneofCase.ListValue)
{
output.WriteRawTag(50);
output.WriteMessage(this.ListValue);
}
}
// Token: 0x0600023A RID: 570 RVA: 0x0000A0E0 File Offset: 0x000082E0
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.kindCase_ == Value.KindOneofCase.NullValue)
{
num += 1 + CodedOutputStream.ComputeEnumSize((int)this.NullValue);
}
if (this.kindCase_ == Value.KindOneofCase.NumberValue)
{
num += 9;
}
if (this.kindCase_ == Value.KindOneofCase.StringValue)
{
num += 1 + CodedOutputStream.ComputeStringSize(this.StringValue);
}
if (this.kindCase_ == Value.KindOneofCase.BoolValue)
{
num += 2;
}
if (this.kindCase_ == Value.KindOneofCase.StructValue)
{
num += 1 + CodedOutputStream.ComputeMessageSize(this.StructValue);
}
if (this.kindCase_ == Value.KindOneofCase.ListValue)
{
num += 1 + CodedOutputStream.ComputeMessageSize(this.ListValue);
}
return num;
}
// Token: 0x0600023B RID: 571 RVA: 0x0000A170 File Offset: 0x00008370
[DebuggerNonUserCode]
public void MergeFrom(Value other)
{
if (other == null)
{
return;
}
switch (other.KindCase)
{
case Value.KindOneofCase.NullValue:
this.NullValue = other.NullValue;
return;
case Value.KindOneofCase.NumberValue:
this.NumberValue = other.NumberValue;
return;
case Value.KindOneofCase.StringValue:
this.StringValue = other.StringValue;
return;
case Value.KindOneofCase.BoolValue:
this.BoolValue = other.BoolValue;
return;
case Value.KindOneofCase.StructValue:
this.StructValue = other.StructValue;
return;
case Value.KindOneofCase.ListValue:
this.ListValue = other.ListValue;
return;
default:
return;
}
}
// Token: 0x0600023C RID: 572 RVA: 0x0000A1F8 File Offset: 0x000083F8
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num <= 26U)
{
if (num == 8U)
{
this.kind_ = input.ReadEnum();
this.kindCase_ = Value.KindOneofCase.NullValue;
continue;
}
if (num == 17U)
{
this.NumberValue = input.ReadDouble();
continue;
}
if (num == 26U)
{
this.StringValue = input.ReadString();
continue;
}
}
else
{
if (num == 32U)
{
this.BoolValue = input.ReadBool();
continue;
}
if (num == 42U)
{
Struct @struct = new Struct();
if (this.kindCase_ == Value.KindOneofCase.StructValue)
{
@struct.MergeFrom(this.StructValue);
}
input.ReadMessage(@struct);
this.StructValue = @struct;
continue;
}
if (num == 50U)
{
ListValue listValue = new ListValue();
if (this.kindCase_ == Value.KindOneofCase.ListValue)
{
listValue.MergeFrom(this.ListValue);
}
input.ReadMessage(listValue);
this.ListValue = listValue;
continue;
}
}
input.SkipLastField();
}
}
// Token: 0x0600023D RID: 573 RVA: 0x0000A2DE File Offset: 0x000084DE
public static Value ForString(string value)
{
ProtoPreconditions.CheckNotNull<string>(value, "value");
return new Value
{
StringValue = value
};
}
// Token: 0x0600023E RID: 574 RVA: 0x0000A2F8 File Offset: 0x000084F8
public static Value ForNumber(double value)
{
return new Value
{
NumberValue = value
};
}
// Token: 0x0600023F RID: 575 RVA: 0x0000A306 File Offset: 0x00008506
public static Value ForBool(bool value)
{
return new Value
{
BoolValue = value
};
}
// Token: 0x06000240 RID: 576 RVA: 0x0000A314 File Offset: 0x00008514
public static Value ForNull()
{
return new Value
{
NullValue = NullValue.NullValue
};
}
// Token: 0x06000241 RID: 577 RVA: 0x0000A322 File Offset: 0x00008522
public static Value ForList(params Value[] values)
{
ProtoPreconditions.CheckNotNull<Value[]>(values, "values");
return new Value
{
ListValue = new ListValue
{
Values = { values }
}
};
}
// Token: 0x06000242 RID: 578 RVA: 0x0000A34C File Offset: 0x0000854C
public static Value ForStruct(Struct value)
{
ProtoPreconditions.CheckNotNull<Struct>(value, "value");
return new Value
{
StructValue = value
};
}
// Token: 0x0400009B RID: 155
private static readonly MessageParser<Value> _parser = new MessageParser<Value>(() => new Value());
// Token: 0x0400009C RID: 156
public const int NullValueFieldNumber = 1;
// Token: 0x0400009D RID: 157
public const int NumberValueFieldNumber = 2;
// Token: 0x0400009E RID: 158
public const int StringValueFieldNumber = 3;
// Token: 0x0400009F RID: 159
public const int BoolValueFieldNumber = 4;
// Token: 0x040000A0 RID: 160
public const int StructValueFieldNumber = 5;
// Token: 0x040000A1 RID: 161
public const int ListValueFieldNumber = 6;
// Token: 0x040000A2 RID: 162
private object kind_;
// Token: 0x040000A3 RID: 163
private Value.KindOneofCase kindCase_;
// Token: 0x0200008F RID: 143
public enum KindOneofCase
{
// Token: 0x040002C5 RID: 709
None,
// Token: 0x040002C6 RID: 710
NullValue,
// Token: 0x040002C7 RID: 711
NumberValue,
// Token: 0x040002C8 RID: 712
StringValue,
// Token: 0x040002C9 RID: 713
BoolValue,
// Token: 0x040002CA RID: 714
StructValue,
// Token: 0x040002CB RID: 715
ListValue
}
}
}
@@ -0,0 +1,36 @@
using System;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000036 RID: 54
public static class WrappersReflection
{
// Token: 0x170000A0 RID: 160
// (get) Token: 0x060002F1 RID: 753 RVA: 0x0000C49C File Offset: 0x0000A69C
public static FileDescriptor Descriptor
{
get
{
return WrappersReflection.descriptor;
}
}
// Token: 0x040000F7 RID: 247
private static FileDescriptor descriptor = FileDescriptor.FromGeneratedCode(Convert.FromBase64String(string.Concat(new string[] { "Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90", "b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZh", "bHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASAB", "KAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1", "ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEo", "DSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUS", "DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJ8", "ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUAFaKmdpdGh1", "Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy93cmFwcGVyc/gBAaICA0dQ", "QqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z" })), new FileDescriptor[0], new GeneratedClrTypeInfo(null, new GeneratedClrTypeInfo[]
{
new GeneratedClrTypeInfo(typeof(DoubleValue), DoubleValue.Parser, new string[] { "Value" }, null, null, null),
new GeneratedClrTypeInfo(typeof(FloatValue), FloatValue.Parser, new string[] { "Value" }, null, null, null),
new GeneratedClrTypeInfo(typeof(Int64Value), Int64Value.Parser, new string[] { "Value" }, null, null, null),
new GeneratedClrTypeInfo(typeof(UInt64Value), UInt64Value.Parser, new string[] { "Value" }, null, null, null),
new GeneratedClrTypeInfo(typeof(Int32Value), Int32Value.Parser, new string[] { "Value" }, null, null, null),
new GeneratedClrTypeInfo(typeof(UInt32Value), UInt32Value.Parser, new string[] { "Value" }, null, null, null),
new GeneratedClrTypeInfo(typeof(BoolValue), BoolValue.Parser, new string[] { "Value" }, null, null, null),
new GeneratedClrTypeInfo(typeof(StringValue), StringValue.Parser, new string[] { "Value" }, null, null, null),
new GeneratedClrTypeInfo(typeof(BytesValue), BytesValue.Parser, new string[] { "Value" }, null, null, null)
}));
// Token: 0x040000F8 RID: 248
internal const int WrapperValueFieldNumber = 1;
}
}