/** * * * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code> * repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2; * </code> */ public Builder addModifications( com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.add(builderForValue.build()); onChanged(); } else { modificationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code> * repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2; * </code> */ public Builder setModifications( int index, com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.set(index, builderForValue.build()); onChanged(); } else { modificationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code> * repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2; * </code> */ public Builder addModifications( int index, com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.add(index, builderForValue.build()); onChanged(); } else { modificationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code> * repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2; * </code> */ public Builder addModifications( int index, com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.add(index, builderForValue.build()); onChanged(); } else { modificationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code> * repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2; * </code> */ public Builder setModifications( int index, com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.set(index, builderForValue.build()); onChanged(); } else { modificationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code> * repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2; * </code> */ public Builder addModifications( com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.add(builderForValue.build()); onChanged(); } else { modificationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code>repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2;</code> */ public Builder addModifications( com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.add(builderForValue.build()); onChanged(); } else { modificationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code>repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2;</code> */ public Builder setModifications( int index, com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.set(index, builderForValue.build()); onChanged(); } else { modificationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * Modifications to be atomically applied to the specified table's families. * Entries are applied in order, meaning that earlier modifications can be * masked by later ones (in the case of repeated updates to the same family, * for example). * </pre> * * <code>repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2;</code> */ public Builder addModifications( int index, com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder builderForValue) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.add(index, builderForValue.build()); onChanged(); } else { modificationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * Configures the name and GcRule of the new ColumnFamily to be created * * @param familyId * @param gcRule * @return */ public ModifyColumnFamiliesRequest addFamily(String familyId, GCRule gcRule) { Preconditions.checkNotNull(gcRule); Modification.Builder modification = Modification.newBuilder().setId(familyId); modification.getCreateBuilder().setGcRule(gcRule.toProto()); modFamilyRequest.addModifications(modification.build()); return this; }
/** * Updates the GCRule of existing ColumnFamily * * @param familyId * @param gcRule * @return */ public ModifyColumnFamiliesRequest updateFamily(String familyId, GCRule gcRule) { Preconditions.checkNotNull(gcRule); Modification.Builder modification = Modification.newBuilder().setId(familyId); modification.getUpdateBuilder().setGcRule(gcRule.toProto()); modFamilyRequest.addModifications(modification.build()); return this; }
/** * Drops the specified ColumnFamily * * @param familyId * @return */ public ModifyColumnFamiliesRequest dropFamily(String familyId) { Modification.Builder modification = Modification.newBuilder().setId(familyId).setDrop(true); modFamilyRequest.addModifications(modification.build()); return this; }
/** * Updates the GCRule of existing ColumnFamily * * @param familyId * @param gcRule * @return */ public ModifyColumnFamiliesRequest updateFamily(String familyId, GCRule gcRule) { Preconditions.checkNotNull(gcRule); Modification.Builder modification = Modification.newBuilder().setId(familyId); modification.getUpdateBuilder().setGcRule(gcRule.toProto()); modFamilyRequest.addModifications(modification.build()); return this; }
/** * Configures the name and GcRule of the new ColumnFamily to be created * * @param familyId * @param gcRule * @return */ public ModifyColumnFamiliesRequest addFamily(String familyId, GCRule gcRule) { Preconditions.checkNotNull(gcRule); Modification.Builder modification = Modification.newBuilder().setId(familyId); modification.getCreateBuilder().setGcRule(gcRule.toProto()); modFamilyRequest.addModifications(modification.build()); return this; }
/** * Drops the specified ColumnFamily * * @param familyId * @return */ public ModifyColumnFamiliesRequest dropFamily(String familyId) { Modification.Builder modification = Modification.newBuilder().setId(familyId).setDrop(true); modFamilyRequest.addModifications(modification.build()); return this; }