PbSetString Function

Sets a string on a protobuf message.

void PbSetString(Handle pb, const char[] field, const char[] value, int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

const char[] value

String value to set.

int index

Index into repeated field.

Errors

Invalid or incorrect Handle, non-existent field, or incorrect field type.