code: func (s *server) SetConfig(c context.Context, req *logdog.SetConfigRequest) (*empty.Empty, error) {
  	se := config.Settings{
  		BigTableServiceAccountJSON: req.StorageServiceAccountJson,
  	}
  	if err := se.Validate(); err != nil {
  		log.Fields{
  			log.ErrorKey: err,
  		}.Errorf(c, "New configuration did not validate.")
  		return nil, grpcutil.Errf(codes.InvalidArgument, "config did not validate: %v", err)
  	}
  
  	if err := se.Store(c, "setConfig endpoint"); err != nil {
  		log.Fields{
  			log.ErrorKey: err,
  		}.Errorf(c, "Failed to store new configuration.")
  		return nil, grpcutil.Internal
  	}
  	return &empty.Empty{}, nil
  }
docs: // SetConfig loads the supplied configuration into a config.GlobalConfig
  // instance.