208 lines
5.4 KiB
C#
208 lines
5.4 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using Google.Protobuf.Collections;
|
|
|
|
namespace Google.Protobuf.Reflection
|
|
{
|
|
// Token: 0x0200004F RID: 79
|
|
internal sealed class EnumValueOptions : IMessage<EnumValueOptions>, IMessage, IEquatable<EnumValueOptions>, IDeepCloneable<EnumValueOptions>
|
|
{
|
|
// Token: 0x17000141 RID: 321
|
|
// (get) Token: 0x060004ED RID: 1261 RVA: 0x000124F4 File Offset: 0x000106F4
|
|
[DebuggerNonUserCode]
|
|
public static MessageParser<EnumValueOptions> Parser
|
|
{
|
|
get
|
|
{
|
|
return EnumValueOptions._parser;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000142 RID: 322
|
|
// (get) Token: 0x060004EE RID: 1262 RVA: 0x000124FB File Offset: 0x000106FB
|
|
[DebuggerNonUserCode]
|
|
public static MessageDescriptor Descriptor
|
|
{
|
|
get
|
|
{
|
|
return DescriptorReflection.Descriptor.MessageTypes[14];
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000143 RID: 323
|
|
// (get) Token: 0x060004EF RID: 1263 RVA: 0x0001250E File Offset: 0x0001070E
|
|
[DebuggerNonUserCode]
|
|
MessageDescriptor IMessage.Descriptor
|
|
{
|
|
get
|
|
{
|
|
return EnumValueOptions.Descriptor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060004F0 RID: 1264 RVA: 0x00012515 File Offset: 0x00010715
|
|
[DebuggerNonUserCode]
|
|
public EnumValueOptions()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060004F1 RID: 1265 RVA: 0x00012528 File Offset: 0x00010728
|
|
[DebuggerNonUserCode]
|
|
public EnumValueOptions(EnumValueOptions other)
|
|
: this()
|
|
{
|
|
this.deprecated_ = other.deprecated_;
|
|
this.uninterpretedOption_ = other.uninterpretedOption_.Clone();
|
|
}
|
|
|
|
// Token: 0x060004F2 RID: 1266 RVA: 0x0001254D File Offset: 0x0001074D
|
|
[DebuggerNonUserCode]
|
|
public EnumValueOptions Clone()
|
|
{
|
|
return new EnumValueOptions(this);
|
|
}
|
|
|
|
// Token: 0x17000144 RID: 324
|
|
// (get) Token: 0x060004F3 RID: 1267 RVA: 0x00012555 File Offset: 0x00010755
|
|
// (set) Token: 0x060004F4 RID: 1268 RVA: 0x0001255D File Offset: 0x0001075D
|
|
[DebuggerNonUserCode]
|
|
public bool Deprecated
|
|
{
|
|
get
|
|
{
|
|
return this.deprecated_;
|
|
}
|
|
set
|
|
{
|
|
this.deprecated_ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000145 RID: 325
|
|
// (get) Token: 0x060004F5 RID: 1269 RVA: 0x00012566 File Offset: 0x00010766
|
|
[DebuggerNonUserCode]
|
|
public RepeatedField<UninterpretedOption> UninterpretedOption
|
|
{
|
|
get
|
|
{
|
|
return this.uninterpretedOption_;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060004F6 RID: 1270 RVA: 0x0001256E File Offset: 0x0001076E
|
|
[DebuggerNonUserCode]
|
|
public override bool Equals(object other)
|
|
{
|
|
return this.Equals(other as EnumValueOptions);
|
|
}
|
|
|
|
// Token: 0x060004F7 RID: 1271 RVA: 0x0001257C File Offset: 0x0001077C
|
|
[DebuggerNonUserCode]
|
|
public bool Equals(EnumValueOptions other)
|
|
{
|
|
return other != null && (other == this || (this.Deprecated == other.Deprecated && this.uninterpretedOption_.Equals(other.uninterpretedOption_)));
|
|
}
|
|
|
|
// Token: 0x060004F8 RID: 1272 RVA: 0x000125B0 File Offset: 0x000107B0
|
|
[DebuggerNonUserCode]
|
|
public override int GetHashCode()
|
|
{
|
|
int num = 1;
|
|
if (this.Deprecated)
|
|
{
|
|
num ^= this.Deprecated.GetHashCode();
|
|
}
|
|
return num ^ this.uninterpretedOption_.GetHashCode();
|
|
}
|
|
|
|
// Token: 0x060004F9 RID: 1273 RVA: 0x00007C02 File Offset: 0x00005E02
|
|
[DebuggerNonUserCode]
|
|
public override string ToString()
|
|
{
|
|
return JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
// Token: 0x060004FA RID: 1274 RVA: 0x000125E7 File Offset: 0x000107E7
|
|
[DebuggerNonUserCode]
|
|
public void WriteTo(CodedOutputStream output)
|
|
{
|
|
if (this.Deprecated)
|
|
{
|
|
output.WriteRawTag(8);
|
|
output.WriteBool(this.Deprecated);
|
|
}
|
|
this.uninterpretedOption_.WriteTo(output, EnumValueOptions._repeated_uninterpretedOption_codec);
|
|
}
|
|
|
|
// Token: 0x060004FB RID: 1275 RVA: 0x00012618 File Offset: 0x00010818
|
|
[DebuggerNonUserCode]
|
|
public int CalculateSize()
|
|
{
|
|
int num = 0;
|
|
if (this.Deprecated)
|
|
{
|
|
num += 2;
|
|
}
|
|
return num + this.uninterpretedOption_.CalculateSize(EnumValueOptions._repeated_uninterpretedOption_codec);
|
|
}
|
|
|
|
// Token: 0x060004FC RID: 1276 RVA: 0x00012647 File Offset: 0x00010847
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(EnumValueOptions other)
|
|
{
|
|
if (other == null)
|
|
{
|
|
return;
|
|
}
|
|
if (other.Deprecated)
|
|
{
|
|
this.Deprecated = other.Deprecated;
|
|
}
|
|
this.uninterpretedOption_.Add(other.uninterpretedOption_);
|
|
}
|
|
|
|
// Token: 0x060004FD RID: 1277 RVA: 0x00012674 File Offset: 0x00010874
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(CodedInputStream input)
|
|
{
|
|
uint num;
|
|
while ((num = input.ReadTag()) != 0U)
|
|
{
|
|
if (num != 8U)
|
|
{
|
|
if (num != 7994U)
|
|
{
|
|
input.SkipLastField();
|
|
}
|
|
else
|
|
{
|
|
this.uninterpretedOption_.AddEntriesFrom(input, EnumValueOptions._repeated_uninterpretedOption_codec);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.Deprecated = input.ReadBool();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x040001DC RID: 476
|
|
private static readonly MessageParser<EnumValueOptions> _parser = new MessageParser<EnumValueOptions>(() => new EnumValueOptions());
|
|
|
|
// Token: 0x040001DD RID: 477
|
|
public const int DeprecatedFieldNumber = 1;
|
|
|
|
// Token: 0x040001DE RID: 478
|
|
private bool deprecated_;
|
|
|
|
// Token: 0x040001DF RID: 479
|
|
public const int UninterpretedOptionFieldNumber = 999;
|
|
|
|
// Token: 0x040001E0 RID: 480
|
|
private static readonly FieldCodec<UninterpretedOption> _repeated_uninterpretedOption_codec = FieldCodec.ForMessage<UninterpretedOption>(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser);
|
|
|
|
// Token: 0x040001E1 RID: 481
|
|
private readonly RepeatedField<UninterpretedOption> uninterpretedOption_ = new RepeatedField<UninterpretedOption>();
|
|
}
|
|
}
|