/** * * * <pre> * The amount of time that the new snapshot can stay active after it is * created. Once 'ttl' expires, the snapshot will get deleted. The maximum * amount of time a snapshot can stay active is 7 days. If 'ttl' is not * specified, the default value of 24 hours will be used. * </pre> * * <code>.google.protobuf.Duration ttl = 4;</code> */ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { return getTtl(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getClusterBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cluster_); } if (!getSnapshotIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, snapshotId_); } if (ttl_ != null) { output.writeMessage(4, getTtl()); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getClusterBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cluster_); } if (!getSnapshotIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, snapshotId_); } if (ttl_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTtl()); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } 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(); 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; }
/** * * * <pre> * The amount of time that the new snapshot can stay active after it is * created. Once 'ttl' expires, the snapshot will get deleted. The maximum * amount of time a snapshot can stay active is 7 days. If 'ttl' is not * specified, the default value of 24 hours will be used. * </pre> * * <code>.google.protobuf.Duration ttl = 4;</code> */ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { return getTtl(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getClusterBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cluster_); } if (!getSnapshotIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, snapshotId_); } if (ttl_ != null) { output.writeMessage(4, getTtl()); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getClusterBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cluster_); } if (!getSnapshotIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, snapshotId_); } if (ttl_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTtl()); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } 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(); 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; }