Protobuf.SetInt Method

Sets an int32, uint32, sint32, fixed32, sfixed32, or enum value on a protobuf message.

void SetInt(const char[] field, int value, int index)

Parameters

const char[] field

Field name.

int value

Integer value to set.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.