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; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest buildPartial() { com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest result = new com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest(this); result.parent_ = parent_; result.tableId_ = tableId_; result.sourceSnapshot_ = sourceSnapshot_; 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.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; } /**
/** * * * <pre> * The unique name of the instance in which to create the table. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * * <code>string parent = 1;</code> */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /**
@Override public Map<String, String> extract(CreateTableFromSnapshotRequest request) { ImmutableMap.Builder<String, String> params = ImmutableMap.builder(); params.put("parent", String.valueOf(request.getParent())); return params.build(); } })
@java.lang.Override public com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest getDefaultInstanceForType() { return com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest.getDefaultInstance(); }
/** * * * <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; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata)) { return super.equals(obj); } com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata other = (com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata) obj; boolean result = true; result = result && (hasOriginalRequest() == other.hasOriginalRequest()); if (hasOriginalRequest()) { result = result && getOriginalRequest().equals(other.getOriginalRequest()); } result = result && (hasRequestTime() == other.hasRequestTime()); if (hasRequestTime()) { result = result && getRequestTime().equals(other.getRequestTime()); } result = result && (hasFinishTime() == other.hasFinishTime()); if (hasFinishTime()) { result = result && getFinishTime().equals(other.getFinishTime()); } result = result && unknownFields.equals(other.unknownFields); return result; }
(CreateTableFromSnapshotRequest) actualRequests.get(0); Assert.assertEquals(parent, InstanceName.parse(actualRequest.getParent())); Assert.assertEquals(tableId, actualRequest.getTableId()); Assert.assertEquals(sourceSnapshot, SnapshotName.parse(actualRequest.getSourceSnapshot())); Assert.assertTrue( channelProvider.isHeaderSent(
@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 instance in which to create the table. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * * <code>string parent = 1;</code> */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /**
@Override public Map<String, String> extract(CreateTableFromSnapshotRequest request) { ImmutableMap.Builder<String, String> params = ImmutableMap.builder(); params.put("parent", String.valueOf(request.getParent())); return params.build(); } })
/** * * * <pre> * The request that prompted the initiation of this CreateTableFromSnapshot * operation. * </pre> * * <code>.google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1;</code> */ public com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest getOriginalRequest() { return originalRequest_ == null ? com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest.getDefaultInstance() : originalRequest_; } /**
/** * * * <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; } /**
/** * * * <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; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata)) { return super.equals(obj); } com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata other = (com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata) obj; boolean result = true; result = result && (hasOriginalRequest() == other.hasOriginalRequest()); if (hasOriginalRequest()) { result = result && getOriginalRequest().equals(other.getOriginalRequest()); } result = result && (hasRequestTime() == other.hasRequestTime()); if (hasRequestTime()) { result = result && getRequestTime().equals(other.getRequestTime()); } result = result && (hasFinishTime() == other.hasFinishTime()); if (hasFinishTime()) { result = result && getFinishTime().equals(other.getFinishTime()); } result = result && unknownFields.equals(other.unknownFields); return result; }
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; }