@Override public Map<String, String> extract(SnapshotTableRequest request) { ImmutableMap.Builder<String, String> params = ImmutableMap.builder(); params.put("name", String.valueOf(request.getName())); return params.build(); } })
/** * * * <pre> * The unique name of the table to have the snapshot taken. * Values are of the form * `projects/<project>/instances/<instance>/tables/<table>`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotId().hashCode(); if (hasTtl()) { hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + getTtl().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().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.SnapshotTableRequest)) { return super.equals(obj); } com.google.bigtable.admin.v2.SnapshotTableRequest other = (com.google.bigtable.admin.v2.SnapshotTableRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && getCluster().equals(other.getCluster()); result = result && getSnapshotId().equals(other.getSnapshotId()); result = result && (hasTtl() == other.hasTtl()); if (hasTtl()) { result = result && getTtl().equals(other.getTtl()); } result = result && getDescription().equals(other.getDescription()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.bigtable.admin.v2.SnapshotTableRequest other) { if (other == com.google.bigtable.admin.v2.SnapshotTableRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getCluster().isEmpty()) { cluster_ = other.cluster_; onChanged(); } if (!other.getSnapshotId().isEmpty()) { snapshotId_ = other.snapshotId_; onChanged(); } if (other.hasTtl()) { mergeTtl(other.getTtl()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
SnapshotTableRequest actualRequest = (SnapshotTableRequest) actualRequests.get(0); Assert.assertEquals(name, TableName.parse(actualRequest.getName())); Assert.assertEquals(cluster, ClusterName.parse(actualRequest.getCluster())); Assert.assertEquals(snapshotId, SnapshotName.parse(actualRequest.getSnapshotId()));
@Override public Map<String, String> extract(SnapshotTableRequest request) { ImmutableMap.Builder<String, String> params = ImmutableMap.builder(); params.put("name", String.valueOf(request.getName())); return params.build(); } })
/** {@inheritDoc} */ @Override public ListenableFuture<Operation> snapshotTableAsync(SnapshotTableRequest request) { return createUnaryListener(request, snapshotTableRpc, request.getName()).getAsyncResult(); }
/** * * * <pre> * The unique name of the table to have the snapshot taken. * Values are of the form * `projects/<project>/instances/<instance>/tables/<table>`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotId().hashCode(); if (hasTtl()) { hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + getTtl().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().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.SnapshotTableRequest)) { return super.equals(obj); } com.google.bigtable.admin.v2.SnapshotTableRequest other = (com.google.bigtable.admin.v2.SnapshotTableRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && getCluster().equals(other.getCluster()); result = result && getSnapshotId().equals(other.getSnapshotId()); result = result && (hasTtl() == other.hasTtl()); if (hasTtl()) { result = result && getTtl().equals(other.getTtl()); } result = result && getDescription().equals(other.getDescription()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.bigtable.admin.v2.SnapshotTableRequest other) { if (other == com.google.bigtable.admin.v2.SnapshotTableRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getCluster().isEmpty()) { cluster_ = other.cluster_; onChanged(); } if (!other.getSnapshotId().isEmpty()) { snapshotId_ = other.snapshotId_; onChanged(); } if (other.hasTtl()) { mergeTtl(other.getTtl()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }