/** * * * <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 Builder setInsertOrUpdate(com.google.spanner.v1.Mutation.Write.Builder builderForValue) { if (insertOrUpdateBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { insertOrUpdateBuilder_.setMessage(builderForValue.build()); } operationCase_ = 3; return this; } /**
/** * * * <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 Builder setUpdate(com.google.spanner.v1.Mutation.Write.Builder builderForValue) { if (updateBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } operationCase_ = 2; return this; } /**
/** * * * <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 Builder setInsert(com.google.spanner.v1.Mutation.Write.Builder builderForValue) { if (insertBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { insertBuilder_.setMessage(builderForValue.build()); } operationCase_ = 1; return this; } /**
/** * * * <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 Builder setReplace(com.google.spanner.v1.Mutation.Write.Builder builderForValue) { if (replaceBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { replaceBuilder_.setMessage(builderForValue.build()); } operationCase_ = 4; return this; } /**