PbSetBool Function

Sets a bool on a protobuf message.

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

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

bool value

Boolean value to set.

int index

Index into repeated field.

Errors

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