Class Int32Value

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

Wrapper message for int32.

The JSON representation for Int32Value is JSON number.

Inheritance

Object > Int32Value

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

Int32Value()

public Int32Value()

Int32Value(Int32Value)

public Int32Value(Int32Value other)
Parameter
TypeNameDescription
Int32Valueother

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

Value

public int Value { get; set; }

The int32 value.

Property Value
TypeDescription
Int32

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public Int32Value Clone()
Returns
TypeDescription
Int32Value

Equals(Int32Value)

public bool Equals(Int32Value other)
Parameter
TypeNameDescription
Int32Valueother
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
TypeNameDescription
Objectother
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
TypeNameDescription
CodedInputStreaminput

MergeFrom(Int32Value)

public void MergeFrom(Int32Value other)
Parameter
TypeNameDescription
Int32Valueother

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
TypeNameDescription
CodedOutputStreamoutput

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
TypeNameDescription
ParseContextinput

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
TypeNameDescription
WriteContextoutput

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor

Implements

IEquatable<>