Class Int32Value (3.15.8)

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

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
NameDescription
otherInt32Value
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(Int32Value)

public void MergeFrom(Int32Value other)
Parameter
NameDescription
otherInt32Value

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