gigl.src.validation_check.libs.assert_proto_has_field#

gigl.src.validation_check.libs.utils.assert_proto_has_field(proto: Message, field_name: str) None#

Assert that a proto has a defined field. Throws an AssertionError if the field is not set. Note: this method only works for message fields, not for singular (non-message) fields.

Args:

proto: A proto message. field_name: A string representing the field name.