def METHOD_NAME(self):
    # If we have a build number set, prioritize that to get the release version name, rather
    # than the internal commit hash name.
    release_name = self.version
    if self.build_number is not None:
        release_name += "-b{}".format(self.build_number)
    else:
        release_name += "-{}".format(self.commit)
        if self.build_type is not None:
            release_name += "-{}".format(self.build_type)
    return release_name