@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.kms.v1.KeyOperationAttestation)) { return super.equals(obj); } com.google.cloud.kms.v1.KeyOperationAttestation other = (com.google.cloud.kms.v1.KeyOperationAttestation) obj; boolean result = true; result = result && format_ == other.format_; result = result && getContent().equals(other.getContent()); 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) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + format_; hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * Output only. The attestation data provided by the HSM when the key * operation was performed. * </pre> * * <code>bytes content = 5;</code> */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.kms.v1.KeyOperationAttestation other) { if (other == com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance()) return this; if (other.format_ != 0) { setFormatValue(other.getFormatValue()); } if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { setContent(other.getContent()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.kms.v1.KeyOperationAttestation)) { return super.equals(obj); } com.google.cloud.kms.v1.KeyOperationAttestation other = (com.google.cloud.kms.v1.KeyOperationAttestation) obj; boolean result = true; result = result && format_ == other.format_; result = result && getContent().equals(other.getContent()); 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) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + format_; hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * Output only. The attestation data provided by the HSM when the key * operation was performed. * </pre> * * <code>bytes content = 5;</code> */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.kms.v1.KeyOperationAttestation other) { if (other == com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance()) return this; if (other.format_ != 0) { setFormatValue(other.getFormatValue()); } if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { setContent(other.getContent()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }