Class ListValue (3.15.8)

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

ListValue is a wrapper around a repeated field of values.

The JSON representation for ListValue is JSON array.

Inheritance

Object > ListValue

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

ListValue()

public ListValue()

ListValue(ListValue)

public ListValue(ListValue other)
Parameter
NameDescription
otherListValue

Fields

ValuesFieldNumber

public const int ValuesFieldNumber = null

Field number for the "values" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

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

Parser

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

Values

public RepeatedField<Value> Values { get; }

Repeated field of dynamically typed values.

Property Value
TypeDescription
RepeatedField<Value>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public ListValue Clone()
Returns
TypeDescription
ListValue

Equals(ListValue)

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

public void MergeFrom(ListValue other)
Parameter
NameDescription
otherListValue

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