code: func Scopes() []string {
  	// E-mail scope needed for Coordinator authentication.
  	scopes := []string{auth.OAuthScopeEmail}
  	// Publisher scope needed to publish to Pub/Sub transport.
  	scopes = append(scopes, ps.PublisherScopes...)
  
  	return scopes
  }
docs: // Scopes returns the set of OAuth scopes required for this Output.