if (updateBuilder_ == null) { if (modCase_ == 3 && mod_ != com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance()) { mod_ = com.google.bigtable.admin.v2.ColumnFamily.newBuilder( (com.google.bigtable.admin.v2.ColumnFamily) mod_) .mergeFrom(value)
public Builder mergeFrom(com.google.bigtable.admin.v2.ColumnFamily other) { if (other == com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance()) return this; if (other.hasGcRule()) { mergeGcRule(other.getGcRule()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public com.google.bigtable.admin.v2.ColumnFamily buildPartial() { com.google.bigtable.admin.v2.ColumnFamily result = new com.google.bigtable.admin.v2.ColumnFamily(this); if (gcRuleBuilder_ == null) { result.gcRule_ = gcRule_; } else { result.gcRule_ = gcRuleBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.admin.v2.ColumnFamily)) { return super.equals(obj); } com.google.bigtable.admin.v2.ColumnFamily other = (com.google.bigtable.admin.v2.ColumnFamily) obj; boolean result = true; result = result && (hasGcRule() == other.hasGcRule()); if (hasGcRule()) { result = result && getGcRule().equals(other.getGcRule()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasGcRule()) { hash = (37 * hash) + GC_RULE_FIELD_NUMBER; hash = (53 * hash) + getGcRule().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public com.google.bigtable.admin.v2.ColumnFamily getDefaultInstanceForType() { return com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * * * <pre> * Garbage collection rule specified as a protobuf. * Must serialize to at most 500 bytes. * NOTE: Garbage collection executes opportunistically in the background, and * so it's possible for reads to return a cell even if it matches the active * GC expression for its family. * </pre> * * <code>.google.bigtable.admin.v2.GcRule gc_rule = 1;</code> */ public com.google.bigtable.admin.v2.GcRuleOrBuilder getGcRuleOrBuilder() { return getGcRule(); }
@java.lang.Override public com.google.bigtable.admin.v2.ColumnFamily build() { com.google.bigtable.admin.v2.ColumnFamily result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); switch (modCase_) { case 2: hash = (37 * hash) + CREATE_FIELD_NUMBER; hash = (53 * hash) + getCreate().hashCode(); break; case 3: hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); break; case 4: hash = (37 * hash) + DROP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDrop()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification)) { return super.equals(obj); } com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification other = (com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification) obj; boolean result = true; result = result && getId().equals(other.getId()); result = result && getModCase().equals(other.getModCase()); if (!result) return false; switch (modCase_) { case 2: result = result && getCreate().equals(other.getCreate()); break; case 3: result = result && getUpdate().equals(other.getUpdate()); break; case 4: result = result && (getDrop() == other.getDrop()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <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.ColumnFamilyOrBuilder getCreateOrBuilder() { if (modCase_ == 2) { return (com.google.bigtable.admin.v2.ColumnFamily) mod_; } return com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance(); }
/** * 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; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (gcRule_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcRule()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasGcRule()) { hash = (37 * hash) + GC_RULE_FIELD_NUMBER; hash = (53 * hash) + getGcRule().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.admin.v2.ColumnFamily)) { return super.equals(obj); } com.google.bigtable.admin.v2.ColumnFamily other = (com.google.bigtable.admin.v2.ColumnFamily) obj; boolean result = true; result = result && (hasGcRule() == other.hasGcRule()); if (hasGcRule()) { result = result && getGcRule() .equals(other.getGcRule()); } return result; }
public com.google.bigtable.admin.v2.ColumnFamily build() { com.google.bigtable.admin.v2.ColumnFamily result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); switch (modCase_) { case 2: hash = (37 * hash) + CREATE_FIELD_NUMBER; hash = (53 * hash) + getCreate().hashCode(); break; case 3: hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); break; case 4: hash = (37 * hash) + DROP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDrop()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification)) { return super.equals(obj); } com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification other = (com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification) obj; boolean result = true; result = result && getId().equals(other.getId()); result = result && getModCase().equals(other.getModCase()); if (!result) return false; switch (modCase_) { case 2: result = result && getCreate().equals(other.getCreate()); break; case 3: result = result && getUpdate().equals(other.getUpdate()); break; case 4: result = result && (getDrop() == other.getDrop()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
if (createBuilder_ == null) { if (modCase_ == 2 && mod_ != com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance()) { mod_ = com.google.bigtable.admin.v2.ColumnFamily.newBuilder( (com.google.bigtable.admin.v2.ColumnFamily) mod_) .mergeFrom(value)