Protobuf.HasField Method

Returns whether or not the named, non-repeated field has a value set.

bool HasField(const char[] field)

Parameters

const char[] field

Field name.

Return Value

True if value has been set, else false.

Errors

Non-existent field, or repeated field.