Files
Dec2017-Script-Dump/protobuf3/WellKnownTypes/Int64Value.cs
T
2026-06-04 11:42:34 +02:00

178 lines
3.9 KiB
C#

using System;
using System.Diagnostics;
using Google.Protobuf.Reflection;
namespace Google.Protobuf.WellKnownTypes
{
// Token: 0x02000039 RID: 57
public sealed class Int64Value : IMessage<Int64Value>, IMessage, IEquatable<Int64Value>, IDeepCloneable<Int64Value>
{
// Token: 0x170000A9 RID: 169
// (get) Token: 0x06000315 RID: 789 RVA: 0x0000C966 File Offset: 0x0000AB66
[DebuggerNonUserCode]
public static MessageParser<Int64Value> Parser
{
get
{
return Int64Value._parser;
}
}
// Token: 0x170000AA RID: 170
// (get) Token: 0x06000316 RID: 790 RVA: 0x0000C96D File Offset: 0x0000AB6D
[DebuggerNonUserCode]
public static MessageDescriptor Descriptor
{
get
{
return WrappersReflection.Descriptor.MessageTypes[2];
}
}
// Token: 0x170000AB RID: 171
// (get) Token: 0x06000317 RID: 791 RVA: 0x0000C97F File Offset: 0x0000AB7F
[DebuggerNonUserCode]
MessageDescriptor IMessage.Descriptor
{
get
{
return Int64Value.Descriptor;
}
}
// Token: 0x06000318 RID: 792 RVA: 0x00007601 File Offset: 0x00005801
[DebuggerNonUserCode]
public Int64Value()
{
}
// Token: 0x06000319 RID: 793 RVA: 0x0000C986 File Offset: 0x0000AB86
[DebuggerNonUserCode]
public Int64Value(Int64Value other)
: this()
{
this.value_ = other.value_;
}
// Token: 0x0600031A RID: 794 RVA: 0x0000C99A File Offset: 0x0000AB9A
[DebuggerNonUserCode]
public Int64Value Clone()
{
return new Int64Value(this);
}
// Token: 0x170000AC RID: 172
// (get) Token: 0x0600031B RID: 795 RVA: 0x0000C9A2 File Offset: 0x0000ABA2
// (set) Token: 0x0600031C RID: 796 RVA: 0x0000C9AA File Offset: 0x0000ABAA
[DebuggerNonUserCode]
public long Value
{
get
{
return this.value_;
}
set
{
this.value_ = value;
}
}
// Token: 0x0600031D RID: 797 RVA: 0x0000C9B3 File Offset: 0x0000ABB3
[DebuggerNonUserCode]
public override bool Equals(object other)
{
return this.Equals(other as Int64Value);
}
// Token: 0x0600031E RID: 798 RVA: 0x0000C9C1 File Offset: 0x0000ABC1
[DebuggerNonUserCode]
public bool Equals(Int64Value other)
{
return other != null && (other == this || this.Value == other.Value);
}
// Token: 0x0600031F RID: 799 RVA: 0x0000C9E0 File Offset: 0x0000ABE0
[DebuggerNonUserCode]
public override int GetHashCode()
{
int num = 1;
if (this.Value != 0L)
{
num ^= this.Value.GetHashCode();
}
return num;
}
// Token: 0x06000320 RID: 800 RVA: 0x00007C02 File Offset: 0x00005E02
[DebuggerNonUserCode]
public override string ToString()
{
return JsonFormatter.ToDiagnosticString(this);
}
// Token: 0x06000321 RID: 801 RVA: 0x0000CA09 File Offset: 0x0000AC09
[DebuggerNonUserCode]
public void WriteTo(CodedOutputStream output)
{
if (this.Value != 0L)
{
output.WriteRawTag(8);
output.WriteInt64(this.Value);
}
}
// Token: 0x06000322 RID: 802 RVA: 0x0000CA28 File Offset: 0x0000AC28
[DebuggerNonUserCode]
public int CalculateSize()
{
int num = 0;
if (this.Value != 0L)
{
num += 1 + CodedOutputStream.ComputeInt64Size(this.Value);
}
return num;
}
// Token: 0x06000323 RID: 803 RVA: 0x0000CA50 File Offset: 0x0000AC50
[DebuggerNonUserCode]
public void MergeFrom(Int64Value other)
{
if (other == null)
{
return;
}
if (other.Value != 0L)
{
this.Value = other.Value;
}
}
// Token: 0x06000324 RID: 804 RVA: 0x0000CA6C File Offset: 0x0000AC6C
[DebuggerNonUserCode]
public void MergeFrom(CodedInputStream input)
{
uint num;
while ((num = input.ReadTag()) != 0U)
{
if (num != 8U)
{
input.SkipLastField();
}
else
{
this.Value = input.ReadInt64();
}
}
}
// Token: 0x040000FF RID: 255
private static readonly MessageParser<Int64Value> _parser = new MessageParser<Int64Value>(() => new Int64Value());
// Token: 0x04000100 RID: 256
public const int ValueFieldNumber = 1;
// Token: 0x04000101 RID: 257
private long value_;
}
}