def Validate(self, value, **_):
    if value is None:
      return

    return rdfvalue.RDFBool(
        super(ProtoBoolean, self).Validate(value))
Check that value is a valid enum.
dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/structs.py/ProtoBoolean.Validate