code: func GetBuild(c context.Context, id buildbot.BuildID) (*ui.MiloBuildLegacy, error) {
  	if err := id.Validate(); err != nil {
  		return nil, err
  	}
  	if err := buildstore.CanAccessMaster(c, id.Master); err != nil {
  		return nil, err
  	}
  
  	switch b, err := buildstore.GetBuild(c, id); {
  	case err != nil:
  		return nil, err
  	case b == nil:
  		return nil, errors.Reason("build %s not found", &id).Tag(grpcutil.NotFoundTag).Err()
  	default:
  		return renderBuild(c, b, true), nil
  	}
  }
docs: // GetBuild fetches a buildbot build and translates it into a MiloBuildLegacy.