Protobuf.SetString Method

Sets a string on a protobuf message.

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

Parameters

const char[] field

Field name.

const char[] value

String value to set.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.