Class FloatValue (3.15.8)

public sealed class FloatValue : object, IMessage<FloatValue>, IEquatable<FloatValue>, IDeepCloneable<FloatValue>, IBufferMessage, IMessage

Wrapper message for float.

The JSON representation for FloatValue is JSON number.

Inheritance

Object > FloatValue

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

FloatValue()

public FloatValue()

FloatValue(FloatValue)

public FloatValue(FloatValue other)
Parameter
Name Description
other FloatValue

Fields

ValueFieldNumber

public const int ValueFieldNumber = null

Field number for the "value" field.

Field Value
Type Description
Int32

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

public static MessageParser<FloatValue> Parser { get; }
Property Value
Type Description
MessageParser<FloatValue>

Value

public float Value { get; set; }

The float value.

Property Value
Type Description
Single

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
Int32

Clone()

public FloatValue Clone()
Returns
Type Description
FloatValue

Equals(FloatValue)

public bool Equals(FloatValue other)
Parameter
Name Description
other FloatValue
Returns
Type Description
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
Name Description
other Object
Returns
Type Description
Boolean

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream

MergeFrom(FloatValue)

public void MergeFrom(FloatValue other)
Parameter
Name Description
other FloatValue

ToString()

public override string ToString()
Returns
Type Description
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
Name Description
input ParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
Name Description
output WriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor