Protobuf.SetBool Method

Sets a bool on a protobuf message.

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

Parameters

const char[] field

Field name.

bool value

Boolean value to set.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.