@java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation buildPartial() { com.google.cloud.kms.v1.KeyOperationAttestation result = new com.google.cloud.kms.v1.KeyOperationAttestation(this); result.format_ = format_; result.content_ = content_; onBuilt(); return result; }
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 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; }
@java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation getDefaultInstanceForType() { return com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance(); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation build() { com.google.cloud.kms.v1.KeyOperationAttestation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.kms.v1.KeyOperationAttestation.getDescriptor().getEnumTypes().get(0); }
@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; }
result = result && (hasAttestation() == other.hasAttestation()); if (hasAttestation()) { result = result && getAttestation().equals(other.getAttestation());
if (hasAttestation()) { hash = (37 * hash) + ATTESTATION_FIELD_NUMBER; hash = (53 * hash) + getAttestation().hashCode();
/** * * * <pre> * Output only. Statement that was generated and signed by the HSM at key * creation time. Use this statement to verify attributes of the key as stored * on the HSM, independently of Google. Only provided for key versions with * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM]. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation attestation = 8;</code> */ public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() { return attestation_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; } /**
/** * * * <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; }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * * * <pre> * Output only. Statement that was generated and signed by the HSM at key * creation time. Use this statement to verify attributes of the key as stored * on the HSM, independently of Google. Only provided for key versions with * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM]. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation attestation = 8;</code> */ public Builder mergeAttestation(com.google.cloud.kms.v1.KeyOperationAttestation value) { if (attestationBuilder_ == null) { if (attestation_ != null) { attestation_ = com.google.cloud.kms.v1.KeyOperationAttestation.newBuilder(attestation_) .mergeFrom(value) .buildPartial(); } else { attestation_ = value; } onChanged(); } else { attestationBuilder_.mergeFrom(value); } return this; } /**
@java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation build() { com.google.cloud.kms.v1.KeyOperationAttestation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.kms.v1.KeyOperationAttestation.getDescriptor().getEnumTypes().get(0); }
@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; }
result = result && (hasAttestation() == other.hasAttestation()); if (hasAttestation()) { result = result && getAttestation().equals(other.getAttestation());