'Emits .proto file definitions.'

@classmethod
def EmitProto(cls):

    result = ('message    %s    {\n' % cls.__name__)
    for (_, desc) in sorted(cls.type_infos_by_field_number.items()):
        result += desc.Definition()
    result += '}\n'
    return result
