/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { valuesBuilder_.clear(); } return this; } /**
/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder setValues(int index, com.google.protobuf.ListValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); } else { valuesBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * Required. The table whose rows will be written. * </pre> * * <code>string table = 1;</code> */ public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; onChanged(); return this; }
/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder addValues(int index, com.google.protobuf.ListValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(index, value); onChanged(); } else { valuesBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder addValues(com.google.protobuf.ListValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); } else { valuesBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder addValues(int index, com.google.protobuf.ListValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder addValues(com.google.protobuf.ListValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder addAllValues( java.lang.Iterable<? extends com.google.protobuf.ListValue> values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.remove(index); onChanged(); } else { valuesBuilder_.remove(index); } return this; } /**
/** * * * <pre> * 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][google.spanner.v1.Mutation.Write.columns] * above. Sending multiple lists is equivalent to sending multiple * `Mutation`s, each containing one `values` entry and repeating * [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are * encoded as described [here][google.spanner.v1.TypeCode]. * </pre> * * <code>repeated .google.protobuf.ListValue values = 3;</code> */ public Builder setValues(int index, com.google.protobuf.ListValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The names of the columns in [table][google.spanner.v1.Mutation.Write.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. * </pre> * * <code>repeated string columns = 2;</code> */ public Builder addColumns(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); return this; } /**
/** * * * <pre> * The names of the columns in [table][google.spanner.v1.Mutation.Write.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. * </pre> * * <code>repeated string columns = 2;</code> */ public Builder addColumnsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureColumnsIsMutable(); columns_.add(value); onChanged(); return this; }
/** * * * <pre> * The names of the columns in [table][google.spanner.v1.Mutation.Write.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. * </pre> * * <code>repeated string columns = 2;</code> */ public Builder setColumns(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.set(index, value); onChanged(); return this; } /**
/** * * * <pre> * The names of the columns in [table][google.spanner.v1.Mutation.Write.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. * </pre> * * <code>repeated string columns = 2;</code> */ public Builder clearColumns() { columns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /**
/** * * * <pre> * The names of the columns in [table][google.spanner.v1.Mutation.Write.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. * </pre> * * <code>repeated string columns = 2;</code> */ public Builder addAllColumns(java.lang.Iterable<java.lang.String> values) { ensureColumnsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); onChanged(); return this; } /**
/** * * * <pre> * Required. The table whose rows will be written. * </pre> * * <code>string table = 1;</code> */ public Builder setTable(java.lang.String value) { if (value == null) { throw new NullPointerException(); } table_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The table whose rows will be written. * </pre> * * <code>string table = 1;</code> */ public Builder clearTable() { table_ = getDefaultInstance().getTable(); onChanged(); return this; } /**