scripts
This commit is contained in:
@@ -0,0 +1,344 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Google.Protobuf.Collections;
|
||||
|
||||
namespace Google.Protobuf.Reflection
|
||||
{
|
||||
// Token: 0x0200004B RID: 75
|
||||
internal sealed class MessageOptions : IMessage<MessageOptions>, IMessage, IEquatable<MessageOptions>, IDeepCloneable<MessageOptions>
|
||||
{
|
||||
// Token: 0x17000125 RID: 293
|
||||
// (get) Token: 0x06000494 RID: 1172 RVA: 0x000117B3 File Offset: 0x0000F9B3
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageParser<MessageOptions> Parser
|
||||
{
|
||||
get
|
||||
{
|
||||
return MessageOptions._parser;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000126 RID: 294
|
||||
// (get) Token: 0x06000495 RID: 1173 RVA: 0x000117BA File Offset: 0x0000F9BA
|
||||
[DebuggerNonUserCode]
|
||||
public static MessageDescriptor Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return DescriptorReflection.Descriptor.MessageTypes[10];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000127 RID: 295
|
||||
// (get) Token: 0x06000496 RID: 1174 RVA: 0x000117CD File Offset: 0x0000F9CD
|
||||
[DebuggerNonUserCode]
|
||||
MessageDescriptor IMessage.Descriptor
|
||||
{
|
||||
get
|
||||
{
|
||||
return MessageOptions.Descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000497 RID: 1175 RVA: 0x000117D4 File Offset: 0x0000F9D4
|
||||
[DebuggerNonUserCode]
|
||||
public MessageOptions()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000498 RID: 1176 RVA: 0x000117E8 File Offset: 0x0000F9E8
|
||||
[DebuggerNonUserCode]
|
||||
public MessageOptions(MessageOptions other)
|
||||
: this()
|
||||
{
|
||||
this.messageSetWireFormat_ = other.messageSetWireFormat_;
|
||||
this.noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
|
||||
this.deprecated_ = other.deprecated_;
|
||||
this.mapEntry_ = other.mapEntry_;
|
||||
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
||||
}
|
||||
|
||||
// Token: 0x06000499 RID: 1177 RVA: 0x0001183C File Offset: 0x0000FA3C
|
||||
[DebuggerNonUserCode]
|
||||
public MessageOptions Clone()
|
||||
{
|
||||
return new MessageOptions(this);
|
||||
}
|
||||
|
||||
// Token: 0x17000128 RID: 296
|
||||
// (get) Token: 0x0600049A RID: 1178 RVA: 0x00011844 File Offset: 0x0000FA44
|
||||
// (set) Token: 0x0600049B RID: 1179 RVA: 0x0001184C File Offset: 0x0000FA4C
|
||||
[DebuggerNonUserCode]
|
||||
public bool MessageSetWireFormat
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.messageSetWireFormat_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.messageSetWireFormat_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000129 RID: 297
|
||||
// (get) Token: 0x0600049C RID: 1180 RVA: 0x00011855 File Offset: 0x0000FA55
|
||||
// (set) Token: 0x0600049D RID: 1181 RVA: 0x0001185D File Offset: 0x0000FA5D
|
||||
[DebuggerNonUserCode]
|
||||
public bool NoStandardDescriptorAccessor
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.noStandardDescriptorAccessor_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.noStandardDescriptorAccessor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700012A RID: 298
|
||||
// (get) Token: 0x0600049E RID: 1182 RVA: 0x00011866 File Offset: 0x0000FA66
|
||||
// (set) Token: 0x0600049F RID: 1183 RVA: 0x0001186E File Offset: 0x0000FA6E
|
||||
[DebuggerNonUserCode]
|
||||
public bool Deprecated
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.deprecated_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.deprecated_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700012B RID: 299
|
||||
// (get) Token: 0x060004A0 RID: 1184 RVA: 0x00011877 File Offset: 0x0000FA77
|
||||
// (set) Token: 0x060004A1 RID: 1185 RVA: 0x0001187F File Offset: 0x0000FA7F
|
||||
[DebuggerNonUserCode]
|
||||
public bool MapEntry
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.mapEntry_;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.mapEntry_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700012C RID: 300
|
||||
// (get) Token: 0x060004A2 RID: 1186 RVA: 0x00011888 File Offset: 0x0000FA88
|
||||
[DebuggerNonUserCode]
|
||||
public RepeatedField<UninterpretedOption> UninterpretedOption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uninterpretedOption_;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060004A3 RID: 1187 RVA: 0x00011890 File Offset: 0x0000FA90
|
||||
[DebuggerNonUserCode]
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return this.Equals(other as MessageOptions);
|
||||
}
|
||||
|
||||
// Token: 0x060004A4 RID: 1188 RVA: 0x000118A0 File Offset: 0x0000FAA0
|
||||
[DebuggerNonUserCode]
|
||||
public bool Equals(MessageOptions other)
|
||||
{
|
||||
return other != null && (other == this || (this.MessageSetWireFormat == other.MessageSetWireFormat && this.NoStandardDescriptorAccessor == other.NoStandardDescriptorAccessor && this.Deprecated == other.Deprecated && this.MapEntry == other.MapEntry && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
||||
}
|
||||
|
||||
// Token: 0x060004A5 RID: 1189 RVA: 0x00011910 File Offset: 0x0000FB10
|
||||
[DebuggerNonUserCode]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = 1;
|
||||
if (this.MessageSetWireFormat)
|
||||
{
|
||||
num ^= this.MessageSetWireFormat.GetHashCode();
|
||||
}
|
||||
if (this.NoStandardDescriptorAccessor)
|
||||
{
|
||||
num ^= this.NoStandardDescriptorAccessor.GetHashCode();
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num ^= this.Deprecated.GetHashCode();
|
||||
}
|
||||
if (this.MapEntry)
|
||||
{
|
||||
num ^= this.MapEntry.GetHashCode();
|
||||
}
|
||||
return num ^ this.uninterpretedOption_.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060004A6 RID: 1190 RVA: 0x00007C02 File Offset: 0x00005E02
|
||||
[DebuggerNonUserCode]
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
// Token: 0x060004A7 RID: 1191 RVA: 0x00011994 File Offset: 0x0000FB94
|
||||
[DebuggerNonUserCode]
|
||||
public void WriteTo(CodedOutputStream output)
|
||||
{
|
||||
if (this.MessageSetWireFormat)
|
||||
{
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(this.MessageSetWireFormat);
|
||||
}
|
||||
if (this.NoStandardDescriptorAccessor)
|
||||
{
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(this.NoStandardDescriptorAccessor);
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(this.Deprecated);
|
||||
}
|
||||
if (this.MapEntry)
|
||||
{
|
||||
output.WriteRawTag(56);
|
||||
output.WriteBool(this.MapEntry);
|
||||
}
|
||||
this.uninterpretedOption_.WriteTo(output, MessageOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004A8 RID: 1192 RVA: 0x00011A24 File Offset: 0x0000FC24
|
||||
[DebuggerNonUserCode]
|
||||
public int CalculateSize()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.MessageSetWireFormat)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.NoStandardDescriptorAccessor)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.Deprecated)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
if (this.MapEntry)
|
||||
{
|
||||
num += 2;
|
||||
}
|
||||
return num + this.uninterpretedOption_.CalculateSize(MessageOptions._repeated_uninterpretedOption_codec);
|
||||
}
|
||||
|
||||
// Token: 0x060004A9 RID: 1193 RVA: 0x00011A78 File Offset: 0x0000FC78
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(MessageOptions other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.MessageSetWireFormat)
|
||||
{
|
||||
this.MessageSetWireFormat = other.MessageSetWireFormat;
|
||||
}
|
||||
if (other.NoStandardDescriptorAccessor)
|
||||
{
|
||||
this.NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
|
||||
}
|
||||
if (other.Deprecated)
|
||||
{
|
||||
this.Deprecated = other.Deprecated;
|
||||
}
|
||||
if (other.MapEntry)
|
||||
{
|
||||
this.MapEntry = other.MapEntry;
|
||||
}
|
||||
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
||||
}
|
||||
|
||||
// Token: 0x060004AA RID: 1194 RVA: 0x00011AEC File Offset: 0x0000FCEC
|
||||
[DebuggerNonUserCode]
|
||||
public void MergeFrom(CodedInputStream input)
|
||||
{
|
||||
uint num;
|
||||
while ((num = input.ReadTag()) != 0U)
|
||||
{
|
||||
if (num <= 16U)
|
||||
{
|
||||
if (num == 8U)
|
||||
{
|
||||
this.MessageSetWireFormat = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 16U)
|
||||
{
|
||||
this.NoStandardDescriptorAccessor = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 24U)
|
||||
{
|
||||
this.Deprecated = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 56U)
|
||||
{
|
||||
this.MapEntry = input.ReadBool();
|
||||
continue;
|
||||
}
|
||||
if (num == 7994U)
|
||||
{
|
||||
this.uninterpretedOption_.AddEntriesFrom(input, MessageOptions._repeated_uninterpretedOption_codec);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
input.SkipLastField();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040001B4 RID: 436
|
||||
private static readonly MessageParser<MessageOptions> _parser = new MessageParser<MessageOptions>(() => new MessageOptions());
|
||||
|
||||
// Token: 0x040001B5 RID: 437
|
||||
public const int MessageSetWireFormatFieldNumber = 1;
|
||||
|
||||
// Token: 0x040001B6 RID: 438
|
||||
private bool messageSetWireFormat_;
|
||||
|
||||
// Token: 0x040001B7 RID: 439
|
||||
public const int NoStandardDescriptorAccessorFieldNumber = 2;
|
||||
|
||||
// Token: 0x040001B8 RID: 440
|
||||
private bool noStandardDescriptorAccessor_;
|
||||
|
||||
// Token: 0x040001B9 RID: 441
|
||||
public const int DeprecatedFieldNumber = 3;
|
||||
|
||||
// Token: 0x040001BA RID: 442
|
||||
private bool deprecated_;
|
||||
|
||||
// Token: 0x040001BB RID: 443
|
||||
public const int MapEntryFieldNumber = 7;
|
||||
|
||||
// Token: 0x040001BC RID: 444
|
||||
private bool mapEntry_;
|
||||
|
||||
// Token: 0x040001BD RID: 445
|
||||
public const int UninterpretedOptionFieldNumber = 999;
|
||||
|
||||
// Token: 0x040001BE RID: 446
|
||||
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
||||
|
||||
// Token: 0x040001BF RID: 447
|
||||
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user