Class KeyOperationAttestation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<KeyOperationAttestation.Builder>
com.google.cloud.kms.v1.KeyOperationAttestation.Builder
All Implemented Interfaces:
KeyOperationAttestationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
KeyOperationAttestation

public static final class KeyOperationAttestation.Builder extends com.google.protobuf.GeneratedMessage.Builder<KeyOperationAttestation.Builder> implements KeyOperationAttestationOrBuilder
 Contains an HSM-generated attestation about a key operation. For more
 information, see [Verifying attestations]
 (https://cloud.google.com/kms/docs/attest-key).
 
Protobuf type google.cloud.kms.v1.KeyOperationAttestation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<KeyOperationAttestation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<KeyOperationAttestation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<KeyOperationAttestation.Builder>
    • getDefaultInstanceForType

      public KeyOperationAttestation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public KeyOperationAttestation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public KeyOperationAttestation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public KeyOperationAttestation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyOperationAttestation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<KeyOperationAttestation.Builder>
    • mergeFrom

      public KeyOperationAttestation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyOperationAttestation.Builder>
      Throws:
      IOException
    • getFormatValue

      public int getFormatValue()
       Output only. The format of the attestation data.
       
      .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFormatValue in interface KeyOperationAttestationOrBuilder
      Returns:
      The enum numeric value on the wire for format.
    • setFormatValue

      public KeyOperationAttestation.Builder setFormatValue(int value)
       Output only. The format of the attestation data.
       
      .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for format to set.
      Returns:
      This builder for chaining.
    • getFormat

       Output only. The format of the attestation data.
       
      .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFormat in interface KeyOperationAttestationOrBuilder
      Returns:
      The format.
    • setFormat

       Output only. The format of the attestation data.
       
      .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public KeyOperationAttestation.Builder clearFormat()
       Output only. The format of the attestation data.
       
      .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getContent

      public com.google.protobuf.ByteString getContent()
       Output only. The attestation data provided by the HSM when the key
       operation was performed.
       
      bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getContent in interface KeyOperationAttestationOrBuilder
      Returns:
      The content.
    • setContent

      public KeyOperationAttestation.Builder setContent(com.google.protobuf.ByteString value)
       Output only. The attestation data provided by the HSM when the key
       operation was performed.
       
      bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public KeyOperationAttestation.Builder clearContent()
       Output only. The attestation data provided by the HSM when the key
       operation was performed.
       
      bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCertChains

      public boolean hasCertChains()
       Output only. The certificate chains needed to validate the attestation
       
      .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCertChains in interface KeyOperationAttestationOrBuilder
      Returns:
      Whether the certChains field is set.
    • getCertChains

       Output only. The certificate chains needed to validate the attestation
       
      .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCertChains in interface KeyOperationAttestationOrBuilder
      Returns:
      The certChains.
    • setCertChains

       Output only. The certificate chains needed to validate the attestation
       
      .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCertChains

       Output only. The certificate chains needed to validate the attestation
       
      .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCertChains

       Output only. The certificate chains needed to validate the attestation
       
      .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCertChains

      public KeyOperationAttestation.Builder clearCertChains()
       Output only. The certificate chains needed to validate the attestation
       
      .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCertChainsBuilder

       Output only. The certificate chains needed to validate the attestation
       
      .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCertChainsOrBuilder

      public KeyOperationAttestation.CertificateChainsOrBuilder getCertChainsOrBuilder()
       Output only. The certificate chains needed to validate the attestation
       
      .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCertChainsOrBuilder in interface KeyOperationAttestationOrBuilder