/** * * * <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 setAttestation( com.google.cloud.kms.v1.KeyOperationAttestation.Builder builderForValue) { if (attestationBuilder_ == null) { attestation_ = builderForValue.build(); onChanged(); } else { attestationBuilder_.setMessage(builderForValue.build()); } return this; } /**
com.google.cloud.kms.v1.KeyOperationAttestation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attestation_); attestation_ = subBuilder.buildPartial();
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder setFormat( com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat value) { if (value == null) { throw new NullPointerException(); } format_ = value.getNumber(); onChanged(); return this; } /**
com.google.cloud.kms.v1.KeyOperationAttestation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attestation_); attestation_ = subBuilder.buildPartial();
/** * * * <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; } /**
/** * * * <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 setAttestation( com.google.cloud.kms.v1.KeyOperationAttestation.Builder builderForValue) { if (attestationBuilder_ == null) { attestation_ = builderForValue.build(); onChanged(); } else { attestationBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder setFormat( com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat value) { if (value == null) { throw new NullPointerException(); } format_ = value.getNumber(); onChanged(); return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.kms.v1.KeyOperationAttestation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.kms.v1.KeyOperationAttestation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * Output only. The attestation data provided by the HSM when the key * operation was performed. * </pre> * * <code>bytes content = 5;</code> */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /**
/** * * * <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; }
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder clearFormat() { format_ = 0; onChanged(); return this; }
public static Builder newBuilder(com.google.cloud.kms.v1.KeyOperationAttestation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder setFormatValue(int value) { format_ = value; onChanged(); return this; } /**
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.kms.v1.KeyOperationAttestation) { return mergeFrom((com.google.cloud.kms.v1.KeyOperationAttestation) other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@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; }
private Builder() { maybeForceBuilderInitialization(); }
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; }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }