Class FloatValue (3.15.8)

Stay organized with collections Save and categorize content based on your preferences.
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
NameDescription
otherFloatValue

Fields

ValueFieldNumber

public const int ValueFieldNumber = null

Field number for the "value" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

Parser

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

Value

public float Value { get; set; }

The float value.

Property Value
TypeDescription
Single

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public FloatValue Clone()
Returns
TypeDescription
FloatValue

Equals(FloatValue)

public bool Equals(FloatValue other)
Parameter
NameDescription
otherFloatValue
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

MergeFrom(FloatValue)

public void MergeFrom(FloatValue other)
Parameter
NameDescription
otherFloatValue

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
NameDescription
inputParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
NameDescription
outputWriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor