def HasHideOption(options):
  """Is message/enum/field/enum value hidden?

  Hidden messages are ignored when generating output.

  Args:
    options: MessageOptions/EnumOptions/FieldOptions/EnumValueOptions message.
  Returns:
    Hidden status.
  """
  return any(
      option.name[0].name_part == 'protoxform_hide' for option in options.uninterpreted_option)