if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); mergeCreate(other.getCreate()); break; mergeUpdate(other.getUpdate()); break; setDrop(other.getDrop()); break; this.mergeUnknownFields(other.unknownFields); onChanged(); 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> * Create a new column family with the specified schema, or fail if * one already exists with the given ID. * </pre> * * <code>.google.bigtable.admin.v2.ColumnFamily create = 2;</code> */ public com.google.bigtable.admin.v2.ColumnFamily.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /**
com.google.bigtable.admin.v2.ColumnFamilyOrBuilder>( (com.google.bigtable.admin.v2.ColumnFamily) mod_, getParentForChildren(), isClean()); mod_ = null; onChanged();
if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); mergeCreate(other.getCreate()); break; mergeUpdate(other.getUpdate()); break; setDrop(other.getDrop()); break; this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
com.google.bigtable.admin.v2.ColumnFamilyOrBuilder>( (com.google.bigtable.admin.v2.ColumnFamily) mod_, getParentForChildren(), isClean()); mod_ = null; onChanged();
/** * * * <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( 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> * Create a new column family with the specified schema, or fail if * one already exists with the given ID. * </pre> * * <code>.google.bigtable.admin.v2.ColumnFamily create = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.bigtable.admin.v2.ColumnFamily, com.google.bigtable.admin.v2.ColumnFamily.Builder, com.google.bigtable.admin.v2.ColumnFamilyOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { if (!(modCase_ == 2)) { mod_ = com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance(); } createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.bigtable.admin.v2.ColumnFamily, com.google.bigtable.admin.v2.ColumnFamily.Builder, com.google.bigtable.admin.v2.ColumnFamilyOrBuilder>( (com.google.bigtable.admin.v2.ColumnFamily) mod_, getParentForChildren(), isClean()); mod_ = null; } modCase_ = 2; onChanged();; return createBuilder_; }
public Builder mergeFrom(com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification other) { if (other == com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } switch (other.getModCase()) { case CREATE: { mergeCreate(other.getCreate()); break; } case UPDATE: { mergeUpdate(other.getUpdate()); break; } case DROP: { setDrop(other.getDrop()); break; } case MOD_NOT_SET: { break; } } onChanged(); return this; }
/** * <pre> * Update an existing column family to the specified schema, or fail * if no column family exists with the given ID. * </pre> * * <code>.google.bigtable.admin.v2.ColumnFamily update = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.bigtable.admin.v2.ColumnFamily, com.google.bigtable.admin.v2.ColumnFamily.Builder, com.google.bigtable.admin.v2.ColumnFamilyOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { if (!(modCase_ == 3)) { mod_ = com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance(); } updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.bigtable.admin.v2.ColumnFamily, com.google.bigtable.admin.v2.ColumnFamily.Builder, com.google.bigtable.admin.v2.ColumnFamilyOrBuilder>( (com.google.bigtable.admin.v2.ColumnFamily) mod_, getParentForChildren(), isClean()); mod_ = null; } modCase_ = 3; onChanged();; return updateBuilder_; }
/** * <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; }
/** * * * <pre> * Create a new column family with the specified schema, or fail if * one already exists with the given ID. * </pre> * * <code>.google.bigtable.admin.v2.ColumnFamily create = 2;</code> */ public com.google.bigtable.admin.v2.ColumnFamily.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Update an existing column family to the specified schema, or fail * if no column family exists with the given ID. * </pre> * * <code>.google.bigtable.admin.v2.ColumnFamily update = 3;</code> */ public com.google.bigtable.admin.v2.ColumnFamily.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /**
/** * 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; }
private Builder() { maybeForceBuilderInitialization(); }