@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; }
@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; }
/** * * * <pre> * The unique name of the snapshot from which to restore the table. The * snapshot and the table must be in the same instance. * Values are of the form * `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`. * </pre> * * <code>string source_snapshot = 3;</code> */ public Builder clearSourceSnapshot() { sourceSnapshot_ = getDefaultInstance().getSourceSnapshot(); 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(sourceSnapshot, SnapshotName.parse(actualRequest.getSourceSnapshot())); Assert.assertTrue( channelProvider.isHeaderSent(
@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 unique name of the snapshot from which to restore the table. The * snapshot and the table must be in the same instance. * Values are of the form * `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`. * </pre> * * <code>string source_snapshot = 3;</code> */ public Builder clearSourceSnapshot() { sourceSnapshot_ = getDefaultInstance().getSourceSnapshot(); 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; }