code: func SetInt64Ptr(d *schema.ResourceData, key string, val *int64) error {
  	if val == nil {
  		return nil
  	}
  	err := d.Set(key, val)
  	return err
  }
docs: // SetInt64Ptr sets a ResourceData field depending on if an *int64 exists or
  // not.  The field is not set if it's nil.