/** * * * <pre> * Update existing rows in a table. If any of the rows does not * already exist, the transaction fails with error `NOT_FOUND`. * </pre> * * <code>.google.spanner.v1.Mutation.Write update = 2;</code> */ public com.google.spanner.v1.Mutation.WriteOrBuilder getUpdateOrBuilder() { if ((operationCase_ == 2) && (updateBuilder_ != null)) { return updateBuilder_.getMessageOrBuilder(); } else { if (operationCase_ == 2) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } } /**
/** * * * <pre> * Insert new rows in a table. If any of the rows already exist, * the write or transaction fails with error `ALREADY_EXISTS`. * </pre> * * <code>.google.spanner.v1.Mutation.Write insert = 1;</code> */ public com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrBuilder() { if ((operationCase_ == 1) && (insertBuilder_ != null)) { return insertBuilder_.getMessageOrBuilder(); } else { if (operationCase_ == 1) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } } /**
/** * * * <pre> * Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is * deleted, and the column values provided are inserted * instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not * explicitly written become `NULL`. * </pre> * * <code>.google.spanner.v1.Mutation.Write replace = 4;</code> */ public com.google.spanner.v1.Mutation.WriteOrBuilder getReplaceOrBuilder() { if ((operationCase_ == 4) && (replaceBuilder_ != null)) { return replaceBuilder_.getMessageOrBuilder(); } else { if (operationCase_ == 4) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } } /**
if (insertBuilder_ == null) { if (operationCase_ == 1 && operation_ != com.google.spanner.v1.Mutation.Write.getDefaultInstance()) { operation_ = com.google.spanner.v1.Mutation.Write.newBuilder(
if (insertOrUpdateBuilder_ == null) { if (!(operationCase_ == 3)) { operation_ = com.google.spanner.v1.Mutation.Write.getDefaultInstance();
/** * * * <pre> * Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is * deleted, and the column values provided are inserted * instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not * explicitly written become `NULL`. * </pre> * * <code>.google.spanner.v1.Mutation.Write replace = 4;</code> */ public com.google.spanner.v1.Mutation.Write getReplace() { if (replaceBuilder_ == null) { if (operationCase_ == 4) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } else { if (operationCase_ == 4) { return replaceBuilder_.getMessage(); } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } } /**
/** * * * <pre> * Like [insert][google.spanner.v1.Mutation.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. * </pre> * * <code>.google.spanner.v1.Mutation.Write insert_or_update = 3;</code> */ public com.google.spanner.v1.Mutation.Write getInsertOrUpdate() { if (insertOrUpdateBuilder_ == null) { if (operationCase_ == 3) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } else { if (operationCase_ == 3) { return insertOrUpdateBuilder_.getMessage(); } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } } /**
/** * * * <pre> * Insert new rows in a table. If any of the rows already exist, * the write or transaction fails with error `ALREADY_EXISTS`. * </pre> * * <code>.google.spanner.v1.Mutation.Write insert = 1;</code> */ public com.google.spanner.v1.Mutation.Write getInsert() { if (insertBuilder_ == null) { if (operationCase_ == 1) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } else { if (operationCase_ == 1) { return insertBuilder_.getMessage(); } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } } /**
/** * * * <pre> * Update existing rows in a table. If any of the rows does not * already exist, the transaction fails with error `NOT_FOUND`. * </pre> * * <code>.google.spanner.v1.Mutation.Write update = 2;</code> */ public com.google.spanner.v1.Mutation.Write getUpdate() { if (updateBuilder_ == null) { if (operationCase_ == 2) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } else { if (operationCase_ == 2) { return updateBuilder_.getMessage(); } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } } /**
/** * * * <pre> * Like [insert][google.spanner.v1.Mutation.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. * </pre> * * <code>.google.spanner.v1.Mutation.Write insert_or_update = 3;</code> */ public com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrUpdateOrBuilder() { if ((operationCase_ == 3) && (insertOrUpdateBuilder_ != null)) { return insertOrUpdateBuilder_.getMessageOrBuilder(); } else { if (operationCase_ == 3) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } } /**
/** * * * <pre> * Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is * deleted, and the column values provided are inserted * instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not * explicitly written become `NULL`. * </pre> * * <code>.google.spanner.v1.Mutation.Write replace = 4;</code> */ public com.google.spanner.v1.Mutation.Write getReplace() { if (operationCase_ == 4) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } /**
/** * * * <pre> * Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is * deleted, and the column values provided are inserted * instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not * explicitly written become `NULL`. * </pre> * * <code>.google.spanner.v1.Mutation.Write replace = 4;</code> */ public com.google.spanner.v1.Mutation.WriteOrBuilder getReplaceOrBuilder() { if (operationCase_ == 4) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); }
/** * * * <pre> * Like [insert][google.spanner.v1.Mutation.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. * </pre> * * <code>.google.spanner.v1.Mutation.Write insert_or_update = 3;</code> */ public com.google.spanner.v1.Mutation.Write getInsertOrUpdate() { if (operationCase_ == 3) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } /**
/** * * * <pre> * Update existing rows in a table. If any of the rows does not * already exist, the transaction fails with error `NOT_FOUND`. * </pre> * * <code>.google.spanner.v1.Mutation.Write update = 2;</code> */ public com.google.spanner.v1.Mutation.Write getUpdate() { if (operationCase_ == 2) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } /**
/** * * * <pre> * Insert new rows in a table. If any of the rows already exist, * the write or transaction fails with error `ALREADY_EXISTS`. * </pre> * * <code>.google.spanner.v1.Mutation.Write insert = 1;</code> */ public com.google.spanner.v1.Mutation.Write getInsert() { if (operationCase_ == 1) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); } /**
/** * * * <pre> * Like [insert][google.spanner.v1.Mutation.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. * </pre> * * <code>.google.spanner.v1.Mutation.Write insert_or_update = 3;</code> */ public com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrUpdateOrBuilder() { if (operationCase_ == 3) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); }
/** * * * <pre> * Update existing rows in a table. If any of the rows does not * already exist, the transaction fails with error `NOT_FOUND`. * </pre> * * <code>.google.spanner.v1.Mutation.Write update = 2;</code> */ public com.google.spanner.v1.Mutation.WriteOrBuilder getUpdateOrBuilder() { if (operationCase_ == 2) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); }
/** * * * <pre> * Insert new rows in a table. If any of the rows already exist, * the write or transaction fails with error `ALREADY_EXISTS`. * </pre> * * <code>.google.spanner.v1.Mutation.Write insert = 1;</code> */ public com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrBuilder() { if (operationCase_ == 1) { return (com.google.spanner.v1.Mutation.Write) operation_; } return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); }
/** * * * <pre> * Required. The table whose rows will be written. * </pre> * * <code>string table = 1;</code> */ public Builder clearTable() { table_ = getDefaultInstance().getTable(); onChanged(); return this; } /**
@java.lang.Override public com.google.spanner.v1.Mutation.Write getDefaultInstanceForType() { return com.google.spanner.v1.Mutation.Write.getDefaultInstance(); }