/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * yields at least one cell when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `false_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation true_mutations = 4;</code> */ public Builder clearTrueMutations() { if (trueMutationsBuilder_ == null) { trueMutations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { trueMutationsBuilder_.clear(); } return this; } /**
/** * * * <pre> * The key of the row to which the conditional mutation should be applied. * </pre> * * <code>bytes row_key = 2;</code> */ public Builder setRowKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rowKey_ = value; onChanged(); return this; } /**
/** * * * <pre> * This value specifies routing for replication. If not specified, the * "default" application profile will be used. * </pre> * * <code>string app_profile_id = 7;</code> */ public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appProfileId_ = value; onChanged(); return this; }
/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * yields at least one cell when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `false_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation true_mutations = 4;</code> */ public Builder addTrueMutations( int index, com.google.bigtable.v2.Mutation.Builder builderForValue) { if (trueMutationsBuilder_ == null) { ensureTrueMutationsIsMutable(); trueMutations_.add(index, builderForValue.build()); onChanged(); } else { trueMutationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * yields at least one cell when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `false_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation true_mutations = 4;</code> */ public Builder setTrueMutations( int index, com.google.bigtable.v2.Mutation.Builder builderForValue) { if (trueMutationsBuilder_ == null) { ensureTrueMutationsIsMutable(); trueMutations_.set(index, builderForValue.build()); onChanged(); } else { trueMutationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * does not yield any cells when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `true_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation false_mutations = 5;</code> */ public Builder addAllFalseMutations( java.lang.Iterable<? extends com.google.bigtable.v2.Mutation> values) { if (falseMutationsBuilder_ == null) { ensureFalseMutationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, falseMutations_); onChanged(); } else { falseMutationsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * does not yield any cells when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `true_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation false_mutations = 5;</code> */ public Builder addFalseMutations( int index, com.google.bigtable.v2.Mutation.Builder builderForValue) { if (falseMutationsBuilder_ == null) { ensureFalseMutationsIsMutable(); falseMutations_.add(index, builderForValue.build()); onChanged(); } else { falseMutationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * yields at least one cell when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `false_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation true_mutations = 4;</code> */ public Builder addAllTrueMutations( java.lang.Iterable<? extends com.google.bigtable.v2.Mutation> values) { if (trueMutationsBuilder_ == null) { ensureTrueMutationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trueMutations_); onChanged(); } else { trueMutationsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * does not yield any cells when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `true_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation false_mutations = 5;</code> */ public Builder setFalseMutations( int index, com.google.bigtable.v2.Mutation.Builder builderForValue) { if (falseMutationsBuilder_ == null) { ensureFalseMutationsIsMutable(); falseMutations_.set(index, builderForValue.build()); onChanged(); } else { falseMutationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * does not yield any cells when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `true_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation false_mutations = 5;</code> */ public Builder removeFalseMutations(int index) { if (falseMutationsBuilder_ == null) { ensureFalseMutationsIsMutable(); falseMutations_.remove(index); onChanged(); } else { falseMutationsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * Changes to be atomically applied to the specified row if `predicate_filter` * does not yield any cells when applied to `row_key`. Entries are applied in * order, meaning that earlier mutations can be masked by later ones. * Must contain at least one entry if `true_mutations` is empty, and at most * 100000. * </pre> * * <code>repeated .google.bigtable.v2.Mutation false_mutations = 5;</code> */ public Builder addFalseMutations(com.google.bigtable.v2.Mutation.Builder builderForValue) { if (falseMutationsBuilder_ == null) { ensureFalseMutationsIsMutable(); falseMutations_.add(builderForValue.build()); onChanged(); } else { falseMutationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The unique name of the table to which the conditional mutation should be * applied. * Values are of the form * `projects/<project>/instances/<instance>/tables/<table>`. * </pre> * * <code>string table_name = 1;</code> */ public Builder setTableName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } tableName_ = value; onChanged(); return this; } /**
/** * * * <pre> * The filter to be applied to the contents of the specified row. Depending * on whether or not any results are yielded, either `true_mutations` or * `false_mutations` will be executed. If unset, checks that the row contains * any values at all. * </pre> * * <code>.google.bigtable.v2.RowFilter predicate_filter = 6;</code> */ public Builder setPredicateFilter(com.google.bigtable.v2.RowFilter.Builder builderForValue) { if (predicateFilterBuilder_ == null) { predicateFilter_ = builderForValue.build(); onChanged(); } else { predicateFilterBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The filter to be applied to the contents of the specified row. Depending * on whether or not any results are yielded, either `true_mutations` or * `false_mutations` will be executed. If unset, checks that the row contains * any values at all. * </pre> * * <code>.google.bigtable.v2.RowFilter predicate_filter = 6;</code> */ public Builder clearPredicateFilter() { if (predicateFilterBuilder_ == null) { predicateFilter_ = null; onChanged(); } else { predicateFilter_ = null; predicateFilterBuilder_ = null; } return this; } /**
/** * * * <pre> * The unique name of the table to which the conditional mutation should be * applied. * Values are of the form * `projects/<project>/instances/<instance>/tables/<table>`. * </pre> * * <code>string table_name = 1;</code> */ public Builder setTableNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableName_ = value; onChanged(); return this; }
/** * * * <pre> * This value specifies routing for replication. If not specified, the * "default" application profile will be used. * </pre> * * <code>string app_profile_id = 7;</code> */ public Builder setAppProfileId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } appProfileId_ = value; onChanged(); return this; } /**
/** * * * <pre> * The unique name of the table to which the conditional mutation should be * applied. * Values are of the form * `projects/<project>/instances/<instance>/tables/<table>`. * </pre> * * <code>string table_name = 1;</code> */ public Builder clearTableName() { tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } /**
/** * * * <pre> * This value specifies routing for replication. If not specified, the * "default" application profile will be used. * </pre> * * <code>string app_profile_id = 7;</code> */ public Builder clearAppProfileId() { appProfileId_ = getDefaultInstance().getAppProfileId(); onChanged(); return this; } /**
/** * * * <pre> * The filter to be applied to the contents of the specified row. Depending * on whether or not any results are yielded, either `true_mutations` or * `false_mutations` will be executed. If unset, checks that the row contains * any values at all. * </pre> * * <code>.google.bigtable.v2.RowFilter predicate_filter = 6;</code> */ public com.google.bigtable.v2.RowFilter.Builder getPredicateFilterBuilder() { onChanged(); return getPredicateFilterFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The key of the row to which the conditional mutation should be applied. * </pre> * * <code>bytes row_key = 2;</code> */ public Builder clearRowKey() { rowKey_ = getDefaultInstance().getRowKey(); onChanged(); return this; }