Class Int64Value (3.15.8)

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

Wrapper message for int64.

The JSON representation for Int64Value is JSON string.

Inheritance

Object > Int64Value

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

Int64Value()

public Int64Value()

Int64Value(Int64Value)

public Int64Value(Int64Value other)
Parameter
NameDescription
otherInt64Value

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<Int64Value> Parser { get; }
Property Value
TypeDescription
MessageParser<Int64Value>

Value

public long Value { get; set; }

The int64 value.

Property Value
TypeDescription
Int64

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public Int64Value Clone()
Returns
TypeDescription
Int64Value

Equals(Int64Value)

public bool Equals(Int64Value other)
Parameter
NameDescription
otherInt64Value
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(Int64Value)

public void MergeFrom(Int64Value other)
Parameter
NameDescription
otherInt64Value

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