text: // Copyright 2020 Google LLC
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //     https://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  
  // Note: this file is purely for documentation. Any contents are not expected
  // to be loaded as the JS file.
  
  /**
   * A modification to one or more Cloud Spanner rows.  Mutations can be
   * applied to a Cloud Spanner database by sending them in a
   * Commit call.
   *
   * @property {Object} insert
   *   Insert new rows in a table. If any of the rows already exist,
   *   the write or transaction fails with error `ALREADY_EXISTS`.
   *
   *   This object should have the same structure as [Write]{@link google.spanner.v1.Write}
   *
   * @property {Object} update
   *   Update existing rows in a table. If any of the rows does not
   *   already exist, the transaction fails with error `NOT_FOUND`.
   *
   *   This object should have the same structure as [Write]{@link google.spanner.v1.Write}
   *
   * @property {Object} insertOrUpdate
   *   Like insert, except that if the row already exists, then
   *   its column values are overwritten with the ones provided. Any
   *   column values not explicitly written are preserved.
   *
   *   When using insert_or_update, just as when using insert, all `NOT
   *   NULL` columns in the table must be given a value. This holds true
   *   even when the row already exists and will therefore actually be updated.
   *
   *   This object should have the same structure as [Write]{@link google.spanner.v1.Write}
   *
   * @property {Object} replace
   *   Like insert, except that if the row already exists, it is
   *   deleted, and the column values provided are inserted
   *   instead. Unlike insert_or_update, this means any values not
   *   explicitly written become `NULL`.
   *
   *   In an interleaved table, if you create the child table with the
   *   `ON DELETE CASCADE` annotation, then replacing a parent row
   *   also deletes the child rows. Otherwise, you must delete the
   *   child rows before you replace the parent row.
   *
   *   This object should have the same structure as [Write]{@link google.spanner.v1.Write}
   *
   * @property {Object} delete
   *   Delete rows from a table. Succeeds whether or not the named
   *   rows were present.
   *
   *   This object should have the same structure as [Delete]{@link google.spanner.v1.Delete}
   *
   * @typedef Mutation
   * @memberof google.spanner.v1
   * @see [google.spanner.v1.Mutation definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/spanner/v1/mutation.proto}
   */
  const Mutation = {
    // This is for documentation. Actual contents will be loaded by gRPC.
  
    /**
     * Arguments to insert, update, insert_or_update, and
     * replace operations.
     *
     * @property {string} table
     *   Required. The table whose rows will be written.
     *
     * @property {string[]} columns
     *   The names of the columns in table to be written.
     *
     *   The list of columns must contain enough columns to allow
     *   Cloud Spanner to derive values for all primary key columns in the
     *   row(s) to be modified.
     *
     * @property {Object[]} values
     *   The values to be written. `values` can contain more than one
     *   list of values. If it does, then multiple rows are written, one
     *   for each entry in `values`. Each list in `values` must have
     *   exactly as many entries as there are entries in columns
     *   above. Sending multiple lists is equivalent to sending multiple
     *   `Mutation`s, each containing one `values` entry and repeating
     *   table and columns. Individual values in each list are
     *   encoded as described here.
     *
     *   This object should have the same structure as [ListValue]{@link google.protobuf.ListValue}
     *
     * @typedef Write
     * @memberof google.spanner.v1
     * @see [google.spanner.v1.Mutation.Write definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/spanner/v1/mutation.proto}
     */
    Write: {
      // This is for documentation. Actual contents will be loaded by gRPC.
    },
  
    /**
     * Arguments to delete operations.
     *
     * @property {string} table
     *   Required. The table whose rows will be deleted.
     *
     * @property {Object} keySet
     *   Required. The primary keys of the rows within table to delete.  The
     *   primary keys must be specified in the order in which they appear in the
     *   `PRIMARY KEY()` clause of the table's equivalent DDL statement (the DDL
     *   statement used to create the table).
     *   Delete is idempotent. The transaction will succeed even if some or all
     *   rows do not exist.
     *
     *   This object should have the same structure as [KeySet]{@link google.spanner.v1.KeySet}
     *
     * @typedef Delete
     * @memberof google.spanner.v1
     * @see [google.spanner.v1.Mutation.Delete definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/spanner/v1/mutation.proto}
     */
    Delete: {
      // This is for documentation. Actual contents will be loaded by gRPC.
    }
  };