Protobuf.GetRepeatedFieldCount Method

Gets the number of elements in a repeated field of a protobuf message.

int GetRepeatedFieldCount(const char[] field)

Parameters

const char[] field

Field name.

Return Value

Number of elements in the field.

Errors

Non-existent field, or non-repeated field.