Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public KeyOperationAttestation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<KeyOperationAttestation.Builder>
      • clearField

        public KeyOperationAttestation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyOperationAttestation.Builder>
      • clearOneof

        public KeyOperationAttestation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KeyOperationAttestation.Builder>
      • setRepeatedField

        public KeyOperationAttestation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyOperationAttestation.Builder>
      • addRepeatedField

        public KeyOperationAttestation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeyOperationAttestation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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.
      • 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

        public KeyOperationAttestation.CertificateChains.Builder 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];
      • setUnknownFields

        public final KeyOperationAttestation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KeyOperationAttestation.Builder>
      • mergeUnknownFields

        public final KeyOperationAttestation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KeyOperationAttestation.Builder>