using System; using System.Diagnostics; using Google.Protobuf.Reflection; namespace Google.Protobuf.WellKnownTypes { // Token: 0x0200003D RID: 61 public sealed class BoolValue : IMessage, IMessage, IEquatable, IDeepCloneable { // Token: 0x170000B9 RID: 185 // (get) Token: 0x06000359 RID: 857 RVA: 0x0000CEB5 File Offset: 0x0000B0B5 [DebuggerNonUserCode] public static MessageParser 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 _parser = new MessageParser(() => new BoolValue()); // Token: 0x0400010C RID: 268 public const int ValueFieldNumber = 1; // Token: 0x0400010D RID: 269 private bool value_; } }