Files
2026-06-04 11:42:34 +02:00

178 lines
4.0 KiB
C#

using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x0200003A RID: 58
public sealed class UInt64Value : IMessage<UInt64Value>, IMessage, IEquatable<UInt64Value>, IDeepCloneable<UInt64Value>
{
// Token: 0x170000AD RID: 173
// (get) Token: 0x06000326 RID: 806 RVA: 0x0000CAB9 File Offset: 0x0000ACB9
[DebuggerNonUserCode]
public static MessageParser<UInt64Value> Parser
{
get
{
return UInt64Value._parser;
}
}
// Token: 0x170000AE RID: 174
// (get) Token: 0x06000327 RID: 807 RVA: 0x0000CAC0 File Offset: 0x0000ACC0
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[3];
}
}
// Token: 0x170000AF RID: 175
// (get) Token: 0x06000328 RID: 808 RVA: 0x0000CAD2 File Offset: 0x0000ACD2
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return UInt64Value.Descriptor;
}
}
// Token: 0x06000329 RID: 809 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public UInt64Value()
{
}
// Token: 0x0600032A RID: 810 RVA: 0x0000CAD9 File Offset: 0x0000ACD9
[DebuggerNonUserCode]
public UInt64Value(UInt64Value other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600032B RID: 811 RVA: 0x0000CAED File Offset: 0x0000ACED
[DebuggerNonUserCode]
public UInt64Value Clone()
{
return new UInt64Value(this);
}
// Token: 0x170000B0 RID: 176
// (get) Token: 0x0600032C RID: 812 RVA: 0x0000CAF5 File Offset: 0x0000ACF5
// (set) Token: 0x0600032D RID: 813 RVA: 0x0000CAFD File Offset: 0x0000ACFD
[DebuggerNonUserCode]
public ulong Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x0600032E RID: 814 RVA: 0x0000CB06 File Offset: 0x0000AD06
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as UInt64Value);
}
// Token: 0x0600032F RID: 815 RVA: 0x0000CB14 File Offset: 0x0000AD14
[DebuggerNonUserCode]
public bool Equals(UInt64Value other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x06000330 RID: 816 RVA: 0x0000CB34 File Offset: 0x0000AD34
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0UL)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000331 RID: 817 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000332 RID: 818 RVA: 0x0000CB5D File Offset: 0x0000AD5D
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0UL)
{
output.WriteRawTag(8);
output.WriteUInt64(this.Value);
}
}
// Token: 0x06000333 RID: 819 RVA: 0x0000CB7C File Offset: 0x0000AD7C
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0UL)
{
num += 1 + CodedOutputStream.ComputeUInt64Size(this.Value);
}
return num;
}
// Token: 0x06000334 RID: 820 RVA: 0x0000CBA4 File Offset: 0x0000ADA4
[DebuggerNonUserCode]
public void MergeFrom(UInt64Value other)
{
if (other == null)
{
return;
}
if (other.Value != 0UL)
{
this.Value = other.Value;
}
}
// Token: 0x06000335 RID: 821 RVA: 0x0000CBC0 File Offset: 0x0000ADC0
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadUInt64();
}
}
}
// Token: 0x04000102 RID: 258
private static readonly MessageParser<UInt64Value> _parser = new MessageParser<UInt64Value>(() => new UInt64Value());
// Token: 0x04000103 RID: 259
public const int ValueFieldNumber = 1;
// Token: 0x04000104 RID: 260
private ulong value_;
}
}