scripts
This commit is contained in:
@@ -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_ = "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user