Class TpmAttestation.Builder

  • All Implemented Interfaces:
    TpmAttestationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    TpmAttestation

    public static final class TpmAttestation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TpmAttestation.Builder>
    implements TpmAttestationOrBuilder
     TPM2 data containing everything necessary to validate any platform state
     measured into the TPM.
     
    Protobuf type google.cloud.confidentialcomputing.v1.TpmAttestation
    • 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<TpmAttestation.Builder>
      • clear

        public TpmAttestation.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<TpmAttestation.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<TpmAttestation.Builder>
      • getDefaultInstanceForType

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

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

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

        public TpmAttestation.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<TpmAttestation.Builder>
      • setField

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

        public TpmAttestation.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<TpmAttestation.Builder>
      • clearOneof

        public TpmAttestation.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<TpmAttestation.Builder>
      • setRepeatedField

        public TpmAttestation.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<TpmAttestation.Builder>
      • addRepeatedField

        public TpmAttestation.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<TpmAttestation.Builder>
      • mergeFrom

        public TpmAttestation.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<TpmAttestation.Builder>
      • isInitialized

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

        public TpmAttestation.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<TpmAttestation.Builder>
        Throws:
        IOException
      • getQuotesCount

        public int getQuotesCount()
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
        Specified by:
        getQuotesCount in interface TpmAttestationOrBuilder
      • getQuotes

        public TpmAttestation.Quote getQuotes​(int index)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
        Specified by:
        getQuotes in interface TpmAttestationOrBuilder
      • setQuotes

        public TpmAttestation.Builder setQuotes​(int index,
                                                TpmAttestation.Quote value)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • setQuotes

        public TpmAttestation.Builder setQuotes​(int index,
                                                TpmAttestation.Quote.Builder builderForValue)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • addQuotes

        public TpmAttestation.Builder addQuotes​(TpmAttestation.Quote value)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • addQuotes

        public TpmAttestation.Builder addQuotes​(int index,
                                                TpmAttestation.Quote value)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • addQuotes

        public TpmAttestation.Builder addQuotes​(TpmAttestation.Quote.Builder builderForValue)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • addQuotes

        public TpmAttestation.Builder addQuotes​(int index,
                                                TpmAttestation.Quote.Builder builderForValue)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • addAllQuotes

        public TpmAttestation.Builder addAllQuotes​(Iterable<? extends TpmAttestation.Quote> values)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • clearQuotes

        public TpmAttestation.Builder clearQuotes()
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • removeQuotes

        public TpmAttestation.Builder removeQuotes​(int index)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • getQuotesBuilder

        public TpmAttestation.Quote.Builder getQuotesBuilder​(int index)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • addQuotesBuilder

        public TpmAttestation.Quote.Builder addQuotesBuilder()
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • addQuotesBuilder

        public TpmAttestation.Quote.Builder addQuotesBuilder​(int index)
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • getQuotesBuilderList

        public List<TpmAttestation.Quote.Builder> getQuotesBuilderList()
         TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
         
        repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;
      • getTcgEventLog

        public com.google.protobuf.ByteString getTcgEventLog()
         The binary TCG Event Log containing events measured into the TPM by the
         platform firmware and operating system. Formatted as described in the
         "TCG PC Client Platform Firmware Profile Specification".
         
        bytes tcg_event_log = 2;
        Specified by:
        getTcgEventLog in interface TpmAttestationOrBuilder
        Returns:
        The tcgEventLog.
      • setTcgEventLog

        public TpmAttestation.Builder setTcgEventLog​(com.google.protobuf.ByteString value)
         The binary TCG Event Log containing events measured into the TPM by the
         platform firmware and operating system. Formatted as described in the
         "TCG PC Client Platform Firmware Profile Specification".
         
        bytes tcg_event_log = 2;
        Parameters:
        value - The tcgEventLog to set.
        Returns:
        This builder for chaining.
      • clearTcgEventLog

        public TpmAttestation.Builder clearTcgEventLog()
         The binary TCG Event Log containing events measured into the TPM by the
         platform firmware and operating system. Formatted as described in the
         "TCG PC Client Platform Firmware Profile Specification".
         
        bytes tcg_event_log = 2;
        Returns:
        This builder for chaining.
      • getCanonicalEventLog

        public com.google.protobuf.ByteString getCanonicalEventLog()
         An Event Log containing additional events measured into the TPM that are
         not already present in the tcg_event_log. Formatted as described in the
         "Canonical Event Log Format" TCG Specification.
         
        bytes canonical_event_log = 3;
        Specified by:
        getCanonicalEventLog in interface TpmAttestationOrBuilder
        Returns:
        The canonicalEventLog.
      • setCanonicalEventLog

        public TpmAttestation.Builder setCanonicalEventLog​(com.google.protobuf.ByteString value)
         An Event Log containing additional events measured into the TPM that are
         not already present in the tcg_event_log. Formatted as described in the
         "Canonical Event Log Format" TCG Specification.
         
        bytes canonical_event_log = 3;
        Parameters:
        value - The canonicalEventLog to set.
        Returns:
        This builder for chaining.
      • clearCanonicalEventLog

        public TpmAttestation.Builder clearCanonicalEventLog()
         An Event Log containing additional events measured into the TPM that are
         not already present in the tcg_event_log. Formatted as described in the
         "Canonical Event Log Format" TCG Specification.
         
        bytes canonical_event_log = 3;
        Returns:
        This builder for chaining.
      • getAkCert

        public com.google.protobuf.ByteString getAkCert()
         DER-encoded X.509 certificate of the Attestation Key (otherwise known as
         an AK or a TPM restricted signing key) used to generate the quotes.
         
        bytes ak_cert = 4;
        Specified by:
        getAkCert in interface TpmAttestationOrBuilder
        Returns:
        The akCert.
      • setAkCert

        public TpmAttestation.Builder setAkCert​(com.google.protobuf.ByteString value)
         DER-encoded X.509 certificate of the Attestation Key (otherwise known as
         an AK or a TPM restricted signing key) used to generate the quotes.
         
        bytes ak_cert = 4;
        Parameters:
        value - The akCert to set.
        Returns:
        This builder for chaining.
      • clearAkCert

        public TpmAttestation.Builder clearAkCert()
         DER-encoded X.509 certificate of the Attestation Key (otherwise known as
         an AK or a TPM restricted signing key) used to generate the quotes.
         
        bytes ak_cert = 4;
        Returns:
        This builder for chaining.
      • getCertChainList

        public List<com.google.protobuf.ByteString> getCertChainList()
         List of DER-encoded X.509 certificates which, together with the ak_cert,
         chain back to a trusted Root Certificate.
         
        repeated bytes cert_chain = 5;
        Specified by:
        getCertChainList in interface TpmAttestationOrBuilder
        Returns:
        A list containing the certChain.
      • getCertChainCount

        public int getCertChainCount()
         List of DER-encoded X.509 certificates which, together with the ak_cert,
         chain back to a trusted Root Certificate.
         
        repeated bytes cert_chain = 5;
        Specified by:
        getCertChainCount in interface TpmAttestationOrBuilder
        Returns:
        The count of certChain.
      • getCertChain

        public com.google.protobuf.ByteString getCertChain​(int index)
         List of DER-encoded X.509 certificates which, together with the ak_cert,
         chain back to a trusted Root Certificate.
         
        repeated bytes cert_chain = 5;
        Specified by:
        getCertChain in interface TpmAttestationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The certChain at the given index.
      • setCertChain

        public TpmAttestation.Builder setCertChain​(int index,
                                                   com.google.protobuf.ByteString value)
         List of DER-encoded X.509 certificates which, together with the ak_cert,
         chain back to a trusted Root Certificate.
         
        repeated bytes cert_chain = 5;
        Parameters:
        index - The index to set the value at.
        value - The certChain to set.
        Returns:
        This builder for chaining.
      • addCertChain

        public TpmAttestation.Builder addCertChain​(com.google.protobuf.ByteString value)
         List of DER-encoded X.509 certificates which, together with the ak_cert,
         chain back to a trusted Root Certificate.
         
        repeated bytes cert_chain = 5;
        Parameters:
        value - The certChain to add.
        Returns:
        This builder for chaining.
      • addAllCertChain

        public TpmAttestation.Builder addAllCertChain​(Iterable<? extends com.google.protobuf.ByteString> values)
         List of DER-encoded X.509 certificates which, together with the ak_cert,
         chain back to a trusted Root Certificate.
         
        repeated bytes cert_chain = 5;
        Parameters:
        values - The certChain to add.
        Returns:
        This builder for chaining.
      • clearCertChain

        public TpmAttestation.Builder clearCertChain()
         List of DER-encoded X.509 certificates which, together with the ak_cert,
         chain back to a trusted Root Certificate.
         
        repeated bytes cert_chain = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TpmAttestation.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<TpmAttestation.Builder>
      • mergeUnknownFields

        public final TpmAttestation.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<TpmAttestation.Builder>