Class TpmAttestation.Quote.Builder

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

    public static final class TpmAttestation.Quote.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TpmAttestation.Quote.Builder>
    implements TpmAttestation.QuoteOrBuilder
     Information about Platform Control Registers (PCRs) including a signature
     over their values, which can be used for remote validation.
     
    Protobuf type google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TpmAttestation.Quote.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TpmAttestation.Quote.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

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

        public int getHashAlgo()
         The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
         
        int32 hash_algo = 1;
        Specified by:
        getHashAlgo in interface TpmAttestation.QuoteOrBuilder
        Returns:
        The hashAlgo.
      • setHashAlgo

        public TpmAttestation.Quote.Builder setHashAlgo​(int value)
         The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
         
        int32 hash_algo = 1;
        Parameters:
        value - The hashAlgo to set.
        Returns:
        This builder for chaining.
      • clearHashAlgo

        public TpmAttestation.Quote.Builder clearHashAlgo()
         The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
         
        int32 hash_algo = 1;
        Returns:
        This builder for chaining.
      • getPcrValuesOrDefault

        public com.google.protobuf.ByteString getPcrValuesOrDefault​(int key,
                                                                    com.google.protobuf.ByteString defaultValue)
         Raw binary values of each PCRs being quoted.
         
        map<int32, bytes> pcr_values = 2;
        Specified by:
        getPcrValuesOrDefault in interface TpmAttestation.QuoteOrBuilder
      • getPcrValuesOrThrow

        public com.google.protobuf.ByteString getPcrValuesOrThrow​(int key)
         Raw binary values of each PCRs being quoted.
         
        map<int32, bytes> pcr_values = 2;
        Specified by:
        getPcrValuesOrThrow in interface TpmAttestation.QuoteOrBuilder
      • removePcrValues

        public TpmAttestation.Quote.Builder removePcrValues​(int key)
         Raw binary values of each PCRs being quoted.
         
        map<int32, bytes> pcr_values = 2;
      • getMutablePcrValues

        @Deprecated
        public Map<Integer,​com.google.protobuf.ByteString> getMutablePcrValues()
        Deprecated.
        Use alternate mutation accessors instead.
      • putPcrValues

        public TpmAttestation.Quote.Builder putPcrValues​(int key,
                                                         com.google.protobuf.ByteString value)
         Raw binary values of each PCRs being quoted.
         
        map<int32, bytes> pcr_values = 2;
      • putAllPcrValues

        public TpmAttestation.Quote.Builder putAllPcrValues​(Map<Integer,​com.google.protobuf.ByteString> values)
         Raw binary values of each PCRs being quoted.
         
        map<int32, bytes> pcr_values = 2;
      • getRawQuote

        public com.google.protobuf.ByteString getRawQuote()
         TPM2 quote, encoded as a TPMS_ATTEST
         
        bytes raw_quote = 3;
        Specified by:
        getRawQuote in interface TpmAttestation.QuoteOrBuilder
        Returns:
        The rawQuote.
      • setRawQuote

        public TpmAttestation.Quote.Builder setRawQuote​(com.google.protobuf.ByteString value)
         TPM2 quote, encoded as a TPMS_ATTEST
         
        bytes raw_quote = 3;
        Parameters:
        value - The rawQuote to set.
        Returns:
        This builder for chaining.
      • clearRawQuote

        public TpmAttestation.Quote.Builder clearRawQuote()
         TPM2 quote, encoded as a TPMS_ATTEST
         
        bytes raw_quote = 3;
        Returns:
        This builder for chaining.
      • getRawSignature

        public com.google.protobuf.ByteString getRawSignature()
         TPM2 signature, encoded as a TPMT_SIGNATURE
         
        bytes raw_signature = 4;
        Specified by:
        getRawSignature in interface TpmAttestation.QuoteOrBuilder
        Returns:
        The rawSignature.
      • setRawSignature

        public TpmAttestation.Quote.Builder setRawSignature​(com.google.protobuf.ByteString value)
         TPM2 signature, encoded as a TPMT_SIGNATURE
         
        bytes raw_signature = 4;
        Parameters:
        value - The rawSignature to set.
        Returns:
        This builder for chaining.
      • clearRawSignature

        public TpmAttestation.Quote.Builder clearRawSignature()
         TPM2 signature, encoded as a TPMT_SIGNATURE
         
        bytes raw_signature = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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