/** * Adds a new columnFamily with {@link GCRule} to the configuration. Please note that calling this * method with the same familyId will overwrite the previous family. * * @param familyId * @param gcRule */ public CreateTableRequest addFamily(String familyId, GCRule gcRule) { Preconditions.checkNotNull(familyId); tableRequest.putColumnFamilies( familyId, ColumnFamily.newBuilder().setGcRule(gcRule.toProto()).build()); return this; }
input.readMessage(com.google.bigtable.admin.v2.Table.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sourceTable_); sourceTable_ = subBuilder.buildPartial();
input.readMessage(com.google.bigtable.admin.v2.Table.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sourceTable_); sourceTable_ = subBuilder.buildPartial();
input.readMessage(com.google.bigtable.admin.v2.Table.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(table_); table_ = subBuilder.buildPartial();
subBuilder.mergeFrom(table_); table_ = subBuilder.buildPartial();
/** * * * <pre> * (`OutputOnly`) * The source table at the time the snapshot was taken. * </pre> * * <code>.google.bigtable.admin.v2.Table source_table = 2;</code> */ public Builder mergeSourceTable(com.google.bigtable.admin.v2.Table value) { if (sourceTableBuilder_ == null) { if (sourceTable_ != null) { sourceTable_ = com.google.bigtable.admin.v2.Table.newBuilder(sourceTable_) .mergeFrom(value) .buildPartial(); } else { sourceTable_ = value; } onChanged(); } else { sourceTableBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The Table to create. * </pre> * * <code>.google.bigtable.admin.v2.Table table = 3;</code> */ public Builder mergeTable(com.google.bigtable.admin.v2.Table value) { if (tableBuilder_ == null) { if (table_ != null) { table_ = com.google.bigtable.admin.v2.Table.newBuilder(table_).mergeFrom(value).buildPartial(); } else { table_ = value; } onChanged(); } else { tableBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The Table to create. * </pre> * * <code>.google.bigtable.admin.v2.Table table = 3;</code> */ public Builder mergeTable(com.google.bigtable.admin.v2.Table value) { if (tableBuilder_ == null) { if (table_ != null) { table_ = com.google.bigtable.admin.v2.Table.newBuilder(table_).mergeFrom(value).buildPartial(); } else { table_ = value; } onChanged(); } else { tableBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The column families configured for this table, mapped by column family ID. * Views: SCHEMA_VIEW, FULL * @CreationOnly * </pre> * * <code>map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;</code> */ public com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> map = internalGetColumnFamilies().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
/** * * * <pre> * (`CreationOnly`) * The column families configured for this table, mapped by column family ID. * Views: `SCHEMA_VIEW`, `FULL` * </pre> * * <code>map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;</code> */ public boolean containsColumnFamilies(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetColumnFamilies().getMap().containsKey(key); } /** Use {@link #getColumnFamiliesMap()} instead. */
/** * <pre> * The column families configured for this table, mapped by column family ID. * Views: SCHEMA_VIEW, FULL * @CreationOnly * </pre> * * <code>map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;</code> */ public com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( java.lang.String key, com.google.bigtable.admin.v2.ColumnFamily defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> map = internalGetColumnFamilies().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.bigtable.admin.v2.Table parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.bigtable.admin.v2.Table) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.bigtable.admin.v2.Table parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.bigtable.admin.v2.Table) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * (`CreationOnly`) * The column families configured for this table, mapped by column family ID. * Views: `SCHEMA_VIEW`, `FULL` * </pre> * * <code>map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;</code> */ public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> getColumnFamiliesMap() { return internalGetColumnFamilies().getMap(); } /**
public Builder mergeFrom(com.google.bigtable.admin.v2.Table other) { if (other == com.google.bigtable.admin.v2.Table.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableClusterStates().mergeFrom(other.internalGetClusterStates()); internalGetMutableColumnFamilies().mergeFrom(other.internalGetColumnFamilies()); if (other.granularity_ != 0) { setGranularityValue(other.getGranularityValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * The column families configured for this table, mapped by column family ID. * Views: SCHEMA_VIEW, FULL * @CreationOnly * </pre> * * <code>map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;</code> */ public Builder putAllColumnFamilies( java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> values) { internalGetMutableColumnFamilies().getMutableMap() .putAll(values); return this; }
@java.lang.Override public com.google.bigtable.admin.v2.Table buildPartial() { com.google.bigtable.admin.v2.Table result = new com.google.bigtable.admin.v2.Table(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.clusterStates_ = internalGetClusterStates(); result.clusterStates_.makeImmutable(); result.columnFamilies_ = internalGetColumnFamilies(); result.columnFamilies_.makeImmutable(); result.granularity_ = granularity_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <pre> * The column families configured for this table, mapped by column family ID. * Views: SCHEMA_VIEW, FULL * @CreationOnly * </pre> * * <code>map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;</code> */ public boolean containsColumnFamilies( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetColumnFamilies().getMap().containsKey(key); } /**
public static Builder newBuilder(com.google.bigtable.admin.v2.Table prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }