Class TpmAttestation.Quote.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TpmAttestation.Quote.Builder>
com.google.cloud.confidentialcomputing.v1.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.GeneratedMessage.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.v1.TpmAttestation.Quote
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TpmAttestation.Quote.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TpmAttestation.Quote.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

      public int getPcrValuesCount()
      Description copied from interface: TpmAttestation.QuoteOrBuilder
       Raw binary values of each PCRs being quoted.
       
      map<int32, bytes> pcr_values = 2;
      Specified by:
      getPcrValuesCount in interface TpmAttestation.QuoteOrBuilder
    • containsPcrValues

      public boolean containsPcrValues(int key)
       Raw binary values of each PCRs being quoted.
       
      map<int32, bytes> pcr_values = 2;
      Specified by:
      containsPcrValues in interface TpmAttestation.QuoteOrBuilder
    • getPcrValues

      @Deprecated public Map<Integer,com.google.protobuf.ByteString> getPcrValues()
      Deprecated.
      Use getPcrValuesMap() instead.
      Specified by:
      getPcrValues in interface TpmAttestation.QuoteOrBuilder
    • getPcrValuesMap

      public Map<Integer,com.google.protobuf.ByteString> getPcrValuesMap()
       Raw binary values of each PCRs being quoted.
       
      map<int32, bytes> pcr_values = 2;
      Specified by:
      getPcrValuesMap in interface TpmAttestation.QuoteOrBuilder
    • 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
    • clearPcrValues

      public TpmAttestation.Quote.Builder clearPcrValues()
    • 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.