saveMetadata(options, doneCallback, failCallback) {
    options = options || {};

    let metadata = this.toJSON();
    metadata.id = this._id;

    let msg = new message.UpdateFileMetadata(this.bucket, this.key)
        .entity(metadata);

    this._conditional(msg, options);

    return this._db.send(msg).then((response) => {
      this.fromJSON(response);
      return this;
    });
  }
/**
   * Updates the matadata of this file.
   * @param {boolean} [options.force=false] force the update and overwrite the existing metadata without validating it
   * @return {Promise<binding.File>} A promise which will be fulfilled with this file
   */
Updates the matadata of this file.
@param {boolean} [options.force=false] force the update and overwrite the existing metadata without validating it
@return {Promise} A promise which will be fulfilled with this file
Updates the matadata of this file . @param { boolean } [ options . force = false ] force the update and overwrite the existing metadata without validating it @return { Promise } A promise which will be fulfilled with this file
saveMetadata(options, doneCallback, failCallback) {
    options = options || {};
    let metadata = this.toJSON();
    metadata.id = this._id;
    let msg = new message.UpdateFileMetadata(this.bucket, this.key)
        .entity(metadata);
    this._conditional(msg, options);
    return this._db.send(msg).then((response) => {
      this.fromJSON(response);
      return this;
    });
  }
saveMetadata ( options , doneCallback , failCallback ) { options = options || { } ; let metadata = this . toJSON ( ) ; metadata . id = this . _id ; let msg = new message . UpdateFileMetadata ( this . bucket , this . key ) . entity ( metadata ) ; this . _conditional ( msg , options ) ; return this . _db . send ( msg ) . then ( ( response ) => { this . fromJSON ( response ) ; return this ; } ) ; }
Updates the matadata of this file.
Updates the matadata of this file .