/** * 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; }
@InternalApi public com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest toProto( @Nonnull String projectId, @Nonnull String instanceId) { Preconditions.checkNotNull(projectId, "Project id can't be null"); Preconditions.checkNotNull(instanceId, "Instance id can't be null"); String tableName = NameUtil.formatTableName(projectId, instanceId, tableId); return modFamilyRequest.setName(tableName).build(); } }
if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureModificationsIsMutable(); modifications_.addAll(other.modifications_); onChanged(); modificationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModificationsFieldBuilder() : null; } else { this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureModificationsIsMutable(); modifications_.addAll(other.modifications_); onChanged(); modificationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModificationsFieldBuilder() : null; } else { this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureModificationsIsMutable(); modifications_.addAll(other.modifications_); onChanged(); modificationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModificationsFieldBuilder() : null; } else { modificationsBuilder_.addAllMessages(other.modifications_); onChanged(); return this;
.setName(name == null ? null : name.toString()) .addAllModifications(modifications) .build(); return modifyColumnFamilies(request);
.setName(name) .addAllModifications(modifications) .build(); return modifyColumnFamilies(request);
/** * * * <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 value) { if (modificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModificationsIsMutable(); modifications_.set(index, value); onChanged(); } else { modificationsBuilder_.setMessage(index, value); } 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 value) { if (modificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModificationsIsMutable(); modifications_.add(value); onChanged(); } else { modificationsBuilder_.addMessage(value); } 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 value) { if (modificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModificationsIsMutable(); modifications_.add(index, value); onChanged(); } else { modificationsBuilder_.addMessage(index, value); } 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 addAllModifications( java.lang.Iterable< ? extends com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification> values) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifications_); onChanged(); } else { modificationsBuilder_.addAllMessages(values); } 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 removeModifications(int index) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); modifications_.remove(index); onChanged(); } else { modificationsBuilder_.remove(index); } 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 value) { if (modificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModificationsIsMutable(); modifications_.add(index, value); onChanged(); } else { modificationsBuilder_.addMessage(index, value); } 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 value) { if (modificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModificationsIsMutable(); modifications_.set(index, value); onChanged(); } else { modificationsBuilder_.setMessage(index, value); } 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 value) { if (modificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModificationsIsMutable(); modifications_.add(value); onChanged(); } else { modificationsBuilder_.addMessage(value); } 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 addAllModifications( java.lang.Iterable<? extends com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification> values) { if (modificationsBuilder_ == null) { ensureModificationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, modifications_); onChanged(); } else { modificationsBuilder_.addAllMessages(values); } 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 com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.Builder addModificationsBuilder(int index) { return getModificationsFieldBuilder() .addBuilder( index, com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification .getDefaultInstance()); } /**