178 lines
3.9 KiB
C#
178 lines
3.9 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using Google.Protobuf.Reflection;
|
|
|
|
namespace Google.Protobuf.WellKnownTypes
|
|
{
|
|
// Token: 0x02000038 RID: 56
|
|
public sealed class FloatValue : IMessage<FloatValue>, IMessage, IEquatable<FloatValue>, IDeepCloneable<FloatValue>
|
|
{
|
|
// Token: 0x170000A5 RID: 165
|
|
// (get) Token: 0x06000304 RID: 772 RVA: 0x0000C80A File Offset: 0x0000AA0A
|
|
[DebuggerNonUserCode]
|
|
public static MessageParser<FloatValue> Parser
|
|
{
|
|
get
|
|
{
|
|
return FloatValue._parser;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000A6 RID: 166
|
|
// (get) Token: 0x06000305 RID: 773 RVA: 0x0000C811 File Offset: 0x0000AA11
|
|
[DebuggerNonUserCode]
|
|
public static MessageDescriptor Descriptor
|
|
{
|
|
get
|
|
{
|
|
return WrappersReflection.Descriptor.MessageTypes[1];
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000A7 RID: 167
|
|
// (get) Token: 0x06000306 RID: 774 RVA: 0x0000C823 File Offset: 0x0000AA23
|
|
[DebuggerNonUserCode]
|
|
MessageDescriptor IMessage.Descriptor
|
|
{
|
|
get
|
|
{
|
|
return FloatValue.Descriptor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000307 RID: 775 RVA: 0x00007601 File Offset: 0x00005801
|
|
[DebuggerNonUserCode]
|
|
public FloatValue()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000308 RID: 776 RVA: 0x0000C82A File Offset: 0x0000AA2A
|
|
[DebuggerNonUserCode]
|
|
public FloatValue(FloatValue other)
|
|
: this()
|
|
{
|
|
this.value_ = other.value_;
|
|
}
|
|
|
|
// Token: 0x06000309 RID: 777 RVA: 0x0000C83E File Offset: 0x0000AA3E
|
|
[DebuggerNonUserCode]
|
|
public FloatValue Clone()
|
|
{
|
|
return new FloatValue(this);
|
|
}
|
|
|
|
// Token: 0x170000A8 RID: 168
|
|
// (get) Token: 0x0600030A RID: 778 RVA: 0x0000C846 File Offset: 0x0000AA46
|
|
// (set) Token: 0x0600030B RID: 779 RVA: 0x0000C84E File Offset: 0x0000AA4E
|
|
[DebuggerNonUserCode]
|
|
public float Value
|
|
{
|
|
get
|
|
{
|
|
return this.value_;
|
|
}
|
|
set
|
|
{
|
|
this.value_ = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600030C RID: 780 RVA: 0x0000C857 File Offset: 0x0000AA57
|
|
[DebuggerNonUserCode]
|
|
public override bool Equals(object other)
|
|
{
|
|
return this.Equals(other as FloatValue);
|
|
}
|
|
|
|
// Token: 0x0600030D RID: 781 RVA: 0x0000C865 File Offset: 0x0000AA65
|
|
[DebuggerNonUserCode]
|
|
public bool Equals(FloatValue other)
|
|
{
|
|
return other != null && (other == this || this.Value == other.Value);
|
|
}
|
|
|
|
// Token: 0x0600030E RID: 782 RVA: 0x0000C884 File Offset: 0x0000AA84
|
|
[DebuggerNonUserCode]
|
|
public override int GetHashCode()
|
|
{
|
|
int num = 1;
|
|
if (this.Value != 0f)
|
|
{
|
|
num ^= this.Value.GetHashCode();
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600030F RID: 783 RVA: 0x00007C02 File Offset: 0x00005E02
|
|
[DebuggerNonUserCode]
|
|
public override string ToString()
|
|
{
|
|
return JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
// Token: 0x06000310 RID: 784 RVA: 0x0000C8B2 File Offset: 0x0000AAB2
|
|
[DebuggerNonUserCode]
|
|
public void WriteTo(CodedOutputStream output)
|
|
{
|
|
if (this.Value != 0f)
|
|
{
|
|
output.WriteRawTag(13);
|
|
output.WriteFloat(this.Value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000311 RID: 785 RVA: 0x0000C8D8 File Offset: 0x0000AAD8
|
|
[DebuggerNonUserCode]
|
|
public int CalculateSize()
|
|
{
|
|
int num = 0;
|
|
if (this.Value != 0f)
|
|
{
|
|
num += 5;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06000312 RID: 786 RVA: 0x0000C8F9 File Offset: 0x0000AAF9
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(FloatValue other)
|
|
{
|
|
if (other == null)
|
|
{
|
|
return;
|
|
}
|
|
if (other.Value != 0f)
|
|
{
|
|
this.Value = other.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000313 RID: 787 RVA: 0x0000C918 File Offset: 0x0000AB18
|
|
[DebuggerNonUserCode]
|
|
public void MergeFrom(CodedInputStream input)
|
|
{
|
|
uint num;
|
|
while ((num = input.ReadTag()) != 0U)
|
|
{
|
|
if (num != 13U)
|
|
{
|
|
input.SkipLastField();
|
|
}
|
|
else
|
|
{
|
|
this.Value = input.ReadFloat();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x040000FC RID: 252
|
|
private static readonly MessageParser<FloatValue> _parser = new MessageParser<FloatValue>(() => new FloatValue());
|
|
|
|
// Token: 0x040000FD RID: 253
|
|
public const int ValueFieldNumber = 1;
|
|
|
|
// Token: 0x040000FE RID: 254
|
|
private float value_;
|
|
}
|
|
}
|