using System; using System.Diagnostics; using Google.Protobuf.Collections; namespace Google.Protobuf.Reflection { // Token: 0x0200004E RID: 78 internal sealed class EnumOptions : IMessage, IMessage, IEquatable, IDeepCloneable { // Token: 0x1700013B RID: 315 // (get) Token: 0x060004D9 RID: 1241 RVA: 0x0001224A File Offset: 0x0001044A [DebuggerNonUserCode] public static MessageParser Parser { get { return EnumOptions._parser; } } // Token: 0x1700013C RID: 316 // (get) Token: 0x060004DA RID: 1242 RVA: 0x00012251 File Offset: 0x00010451 [DebuggerNonUserCode] public static MessageDescriptor Descriptor { get { return DescriptorReflection.Descriptor.MessageTypes[13]; } } // Token: 0x1700013D RID: 317 // (get) Token: 0x060004DB RID: 1243 RVA: 0x00012264 File Offset: 0x00010464 [DebuggerNonUserCode] MessageDescriptor IMessage.Descriptor { get { return EnumOptions.Descriptor; } } // Token: 0x060004DC RID: 1244 RVA: 0x0001226B File Offset: 0x0001046B [DebuggerNonUserCode] public EnumOptions() { } // Token: 0x060004DD RID: 1245 RVA: 0x0001227E File Offset: 0x0001047E [DebuggerNonUserCode] public EnumOptions(EnumOptions other) : this() { this.allowAlias_ = other.allowAlias_; this.deprecated_ = other.deprecated_; this.uninterpretedOption_ = other.uninterpretedOption_.Clone(); } // Token: 0x060004DE RID: 1246 RVA: 0x000122AF File Offset: 0x000104AF [DebuggerNonUserCode] public EnumOptions Clone() { return new EnumOptions(this); } // Token: 0x1700013E RID: 318 // (get) Token: 0x060004DF RID: 1247 RVA: 0x000122B7 File Offset: 0x000104B7 // (set) Token: 0x060004E0 RID: 1248 RVA: 0x000122BF File Offset: 0x000104BF [DebuggerNonUserCode] public bool AllowAlias { get { return this.allowAlias_; } set { this.allowAlias_ = value; } } // Token: 0x1700013F RID: 319 // (get) Token: 0x060004E1 RID: 1249 RVA: 0x000122C8 File Offset: 0x000104C8 // (set) Token: 0x060004E2 RID: 1250 RVA: 0x000122D0 File Offset: 0x000104D0 [DebuggerNonUserCode] public bool Deprecated { get { return this.deprecated_; } set { this.deprecated_ = value; } } // Token: 0x17000140 RID: 320 // (get) Token: 0x060004E3 RID: 1251 RVA: 0x000122D9 File Offset: 0x000104D9 [DebuggerNonUserCode] public RepeatedField UninterpretedOption { get { return this.uninterpretedOption_; } } // Token: 0x060004E4 RID: 1252 RVA: 0x000122E1 File Offset: 0x000104E1 [DebuggerNonUserCode] public override bool Equals(object other) { return this.Equals(other as EnumOptions); } // Token: 0x060004E5 RID: 1253 RVA: 0x000122F0 File Offset: 0x000104F0 [DebuggerNonUserCode] public bool Equals(EnumOptions other) { return other != null && (other == this || (this.AllowAlias == other.AllowAlias && this.Deprecated == other.Deprecated && this.uninterpretedOption_.Equals(other.uninterpretedOption_))); } // Token: 0x060004E6 RID: 1254 RVA: 0x00012340 File Offset: 0x00010540 [DebuggerNonUserCode] public override int GetHashCode() { int num = 1; if (this.AllowAlias) { num ^= this.AllowAlias.GetHashCode(); } if (this.Deprecated) { num ^= this.Deprecated.GetHashCode(); } return num ^ this.uninterpretedOption_.GetHashCode(); } // Token: 0x060004E7 RID: 1255 RVA: 0x00007C02 File Offset: 0x00005E02 [DebuggerNonUserCode] public override string ToString() { return JsonFormatter.ToDiagnosticString(this); } // Token: 0x060004E8 RID: 1256 RVA: 0x00012390 File Offset: 0x00010590 [DebuggerNonUserCode] public void WriteTo(CodedOutputStream output) { if (this.AllowAlias) { output.WriteRawTag(16); output.WriteBool(this.AllowAlias); } if (this.Deprecated) { output.WriteRawTag(24); output.WriteBool(this.Deprecated); } this.uninterpretedOption_.WriteTo(output, EnumOptions._repeated_uninterpretedOption_codec); } // Token: 0x060004E9 RID: 1257 RVA: 0x000123E8 File Offset: 0x000105E8 [DebuggerNonUserCode] public int CalculateSize() { int num = 0; if (this.AllowAlias) { num += 2; } if (this.Deprecated) { num += 2; } return num + this.uninterpretedOption_.CalculateSize(EnumOptions._repeated_uninterpretedOption_codec); } // Token: 0x060004EA RID: 1258 RVA: 0x00012423 File Offset: 0x00010623 [DebuggerNonUserCode] public void MergeFrom(EnumOptions other) { if (other == null) { return; } if (other.AllowAlias) { this.AllowAlias = other.AllowAlias; } if (other.Deprecated) { this.Deprecated = other.Deprecated; } this.uninterpretedOption_.Add(other.uninterpretedOption_); } // Token: 0x060004EB RID: 1259 RVA: 0x00012464 File Offset: 0x00010664 [DebuggerNonUserCode] public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0U) { if (num != 16U) { if (num != 24U) { if (num != 7994U) { input.SkipLastField(); } else { this.uninterpretedOption_.AddEntriesFrom(input, EnumOptions._repeated_uninterpretedOption_codec); } } else { this.Deprecated = input.ReadBool(); } } else { this.AllowAlias = input.ReadBool(); } } } // Token: 0x040001D4 RID: 468 private static readonly MessageParser _parser = new MessageParser(() => new EnumOptions()); // Token: 0x040001D5 RID: 469 public const int AllowAliasFieldNumber = 2; // Token: 0x040001D6 RID: 470 private bool allowAlias_; // Token: 0x040001D7 RID: 471 public const int DeprecatedFieldNumber = 3; // Token: 0x040001D8 RID: 472 private bool deprecated_; // Token: 0x040001D9 RID: 473 public const int UninterpretedOptionFieldNumber = 999; // Token: 0x040001DA RID: 474 private static readonly FieldCodec _repeated_uninterpretedOption_codec = FieldCodec.ForMessage(7994U, Google.Protobuf.Reflection.UninterpretedOption.Parser); // Token: 0x040001DB RID: 475 private readonly RepeatedField uninterpretedOption_ = new RepeatedField(); } }