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: 0x0200003C RID: 60
public sealed class UInt32Value : IMessage<UInt32Value>, IMessage, IEquatable<UInt32Value>, IDeepCloneable<UInt32Value>
{
// Token: 0x170000B5 RID: 181
// (get) Token: 0x06000348 RID: 840 RVA: 0x0000CD61 File Offset: 0x0000AF61
[DebuggerNonUserCode]
public static MessageParser<UInt32Value> Parser
{
get
{
return UInt32Value._parser;
}
}
// Token: 0x170000B6 RID: 182
// (get) Token: 0x06000349 RID: 841 RVA: 0x0000CD68 File Offset: 0x0000AF68
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[5];
}
}
// Token: 0x170000B7 RID: 183
// (get) Token: 0x0600034A RID: 842 RVA: 0x0000CD7A File Offset: 0x0000AF7A
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return UInt32Value.Descriptor;
}
}
// Token: 0x0600034B RID: 843 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public UInt32Value()
{
}
// Token: 0x0600034C RID: 844 RVA: 0x0000CD81 File Offset: 0x0000AF81
[DebuggerNonUserCode]
public UInt32Value(UInt32Value other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600034D RID: 845 RVA: 0x0000CD95 File Offset: 0x0000AF95
[DebuggerNonUserCode]
public UInt32Value Clone()
{
return new UInt32Value(this);
}
// Token: 0x170000B8 RID: 184
// (get) Token: 0x0600034E RID: 846 RVA: 0x0000CD9D File Offset: 0x0000AF9D
// (set) Token: 0x0600034F RID: 847 RVA: 0x0000CDA5 File Offset: 0x0000AFA5
[DebuggerNonUserCode]
public uint Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x06000350 RID: 848 RVA: 0x0000CDAE File Offset: 0x0000AFAE
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as UInt32Value);
}
// Token: 0x06000351 RID: 849 RVA: 0x0000CDBC File Offset: 0x0000AFBC
[DebuggerNonUserCode]
public bool Equals(UInt32Value other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x06000352 RID: 850 RVA: 0x0000CDDC File Offset: 0x0000AFDC
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0U)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000353 RID: 851 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000354 RID: 852 RVA: 0x0000CE05 File Offset: 0x0000B005
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0U)
{
output.WriteRawTag(8);
output.WriteUInt32(this.Value);
}
}
// Token: 0x06000355 RID: 853 RVA: 0x0000CE24 File Offset: 0x0000B024
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0U)
{
num += 1 + CodedOutputStream.ComputeUInt32Size(this.Value);
}
return num;
}
// Token: 0x06000356 RID: 854 RVA: 0x0000CE4C File Offset: 0x0000B04C
[DebuggerNonUserCode]
public void MergeFrom(UInt32Value other)
{
if (other == null)
{
return;
}
if (other.Value != 0U)
{
this.Value = other.Value;
}
}
// Token: 0x06000357 RID: 855 RVA: 0x0000CE68 File Offset: 0x0000B068
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadUInt32();
}
}
}
// Token: 0x04000108 RID: 264
private static readonly MessageParser<UInt32Value> _parser = new MessageParser<UInt32Value>(() => new UInt32Value());
// Token: 0x04000109 RID: 265
public const int ValueFieldNumber = 1;
// Token: 0x0400010A RID: 266
private uint value_;
}
}