@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest)) { return super.equals(obj); } com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest other = (com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getTableId().equals(other.getTableId()); result = result && getSourceSnapshot().equals(other.getSourceSnapshot()); 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(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; hash = (53 * hash) + getTableId().hashCode(); hash = (37 * hash) + SOURCE_SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getSourceSnapshot().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * The name by which the new table should be referred to within the parent * instance, e.g., `foobar` rather than `<parent>/tables/foobar`. * </pre> * * <code>string table_id = 2;</code> */ public Builder clearTableId() { tableId_ = getDefaultInstance().getTableId(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest other) { if (other == com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getTableId().isEmpty()) { tableId_ = other.tableId_; onChanged(); } if (!other.getSourceSnapshot().isEmpty()) { sourceSnapshot_ = other.sourceSnapshot_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
Assert.assertEquals(tableId, actualRequest.getTableId()); Assert.assertEquals(sourceSnapshot, SnapshotName.parse(actualRequest.getSourceSnapshot())); Assert.assertTrue(
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest)) { return super.equals(obj); } com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest other = (com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getTableId().equals(other.getTableId()); result = result && getSourceSnapshot().equals(other.getSourceSnapshot()); 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(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; hash = (53 * hash) + getTableId().hashCode(); hash = (37 * hash) + SOURCE_SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getSourceSnapshot().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * The name by which the new table should be referred to within the parent * instance, e.g., `foobar` rather than `<parent>/tables/foobar`. * </pre> * * <code>string table_id = 2;</code> */ public Builder clearTableId() { tableId_ = getDefaultInstance().getTableId(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest other) { if (other == com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getTableId().isEmpty()) { tableId_ = other.tableId_; onChanged(); } if (!other.getSourceSnapshot().isEmpty()) { sourceSnapshot_ = other.sourceSnapshot_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }