Class TpmAttestation.Builder (0.7.0)

publicstaticfinalclass TpmAttestation.BuilderextendsGeneratedMessageV3.Builder<TpmAttestation.Builder>implementsTpmAttestationOrBuilder

TPM2 data containing everything necessary to validate any platform state measured into the TPM.

Protobuf type google.cloud.confidentialcomputing.v1.TpmAttestation

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllCertChain(Iterable<? extends ByteString> values)

publicTpmAttestation.BuilderaddAllCertChain(Iterable<?extendsByteString>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;

Parameter
Name Description
values Iterable<? extends com.google.protobuf.ByteString>

The certChain to add.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

addAllQuotes(Iterable<? extends TpmAttestation.Quote> values)

publicTpmAttestation.BuilderaddAllQuotes(Iterable<?extendsTpmAttestation.Quote>values)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote>
Returns
Type Description
TpmAttestation.Builder

addCertChain(ByteString value)

publicTpmAttestation.BuilderaddCertChain(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The certChain to add.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

addQuotes(TpmAttestation.Quote value)

publicTpmAttestation.BuilderaddQuotes(TpmAttestation.Quotevalue)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
value TpmAttestation.Quote
Returns
Type Description
TpmAttestation.Builder

addQuotes(TpmAttestation.Quote.Builder builderForValue)

publicTpmAttestation.BuilderaddQuotes(TpmAttestation.Quote.BuilderbuilderForValue)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
builderForValue TpmAttestation.Quote.Builder
Returns
Type Description
TpmAttestation.Builder

addQuotes(int index, TpmAttestation.Quote value)

publicTpmAttestation.BuilderaddQuotes(intindex,TpmAttestation.Quotevalue)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameters
Name Description
index int
value TpmAttestation.Quote
Returns
Type Description
TpmAttestation.Builder

addQuotes(int index, TpmAttestation.Quote.Builder builderForValue)

publicTpmAttestation.BuilderaddQuotes(intindex,TpmAttestation.Quote.BuilderbuilderForValue)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameters
Name Description
index int
builderForValue TpmAttestation.Quote.Builder
Returns
Type Description
TpmAttestation.Builder

addQuotesBuilder()

publicTpmAttestation.Quote.BuilderaddQuotesBuilder()

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Returns
Type Description
TpmAttestation.Quote.Builder

addQuotesBuilder(int index)

publicTpmAttestation.Quote.BuilderaddQuotesBuilder(intindex)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.Quote.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicTpmAttestation.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TpmAttestation.Builder
Overrides

build()

publicTpmAttestationbuild()
Returns
Type Description
TpmAttestation

buildPartial()

publicTpmAttestationbuildPartial()
Returns
Type Description
TpmAttestation

clear()

publicTpmAttestation.Builderclear()
Returns
Type Description
TpmAttestation.Builder
Overrides

clearAkCert()

publicTpmAttestation.BuilderclearAkCert()

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
Type Description
TpmAttestation.Builder

This builder for chaining.

clearCanonicalEventLog()

publicTpmAttestation.BuilderclearCanonicalEventLog()

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
Type Description
TpmAttestation.Builder

This builder for chaining.

clearCertChain()

publicTpmAttestation.BuilderclearCertChain()

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
Type Description
TpmAttestation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicTpmAttestation.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TpmAttestation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicTpmAttestation.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TpmAttestation.Builder
Overrides

clearQuotes()

publicTpmAttestation.BuilderclearQuotes()

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Returns
Type Description
TpmAttestation.Builder

clearTcgEventLog()

publicTpmAttestation.BuilderclearTcgEventLog()

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
Type Description
TpmAttestation.Builder

This builder for chaining.

clone()

publicTpmAttestation.Builderclone()
Returns
Type Description
TpmAttestation.Builder
Overrides

getAkCert()

publicByteStringgetAkCert()

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
Type Description
ByteString

The akCert.

getCanonicalEventLog()

publicByteStringgetCanonicalEventLog()

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
Type Description
ByteString

The canonicalEventLog.

getCertChain(int index)

publicByteStringgetCertChain(intindex)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The certChain at the given index.

getCertChainCount()

publicintgetCertChainCount()

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
Type Description
int

The count of certChain.

getCertChainList()

publicList<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;

Returns
Type Description
List<ByteString>

A list containing the certChain.

getDefaultInstanceForType()

publicTpmAttestationgetDefaultInstanceForType()
Returns
Type Description
TpmAttestation

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getQuotes(int index)

publicTpmAttestation.QuotegetQuotes(intindex)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.Quote

getQuotesBuilder(int index)

publicTpmAttestation.Quote.BuildergetQuotesBuilder(intindex)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.Quote.Builder

getQuotesBuilderList()

publicList<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;

Returns
Type Description
List<Builder>

getQuotesCount()

publicintgetQuotesCount()

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Returns
Type Description
int

getQuotesList()

publicList<TpmAttestation.Quote>getQuotesList()

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Returns
Type Description
List<Quote>

getQuotesOrBuilder(int index)

publicTpmAttestation.QuoteOrBuildergetQuotesOrBuilder(intindex)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.QuoteOrBuilder

getQuotesOrBuilderList()

publicList<?extendsTpmAttestation.QuoteOrBuilder>getQuotesOrBuilderList()

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Returns
Type Description
List<? extends com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder>

getTcgEventLog()

publicByteStringgetTcgEventLog()

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
Type Description
ByteString

The tcgEventLog.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TpmAttestation other)

publicTpmAttestation.BuildermergeFrom(TpmAttestationother)
Parameter
Name Description
other TpmAttestation
Returns
Type Description
TpmAttestation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicTpmAttestation.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TpmAttestation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicTpmAttestation.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
TpmAttestation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalTpmAttestation.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TpmAttestation.Builder
Overrides

removeQuotes(int index)

publicTpmAttestation.BuilderremoveQuotes(intindex)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.Builder

setAkCert(ByteString value)

publicTpmAttestation.BuildersetAkCert(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The akCert to set.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

setCanonicalEventLog(ByteString value)

publicTpmAttestation.BuildersetCanonicalEventLog(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The canonicalEventLog to set.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

setCertChain(int index, ByteString value)

publicTpmAttestation.BuildersetCertChain(intindex,ByteStringvalue)

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
Name Description
index int

The index to set the value at.

value ByteString

The certChain to set.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicTpmAttestation.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TpmAttestation.Builder
Overrides

setQuotes(int index, TpmAttestation.Quote value)

publicTpmAttestation.BuildersetQuotes(intindex,TpmAttestation.Quotevalue)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameters
Name Description
index int
value TpmAttestation.Quote
Returns
Type Description
TpmAttestation.Builder

setQuotes(int index, TpmAttestation.Quote.Builder builderForValue)

publicTpmAttestation.BuildersetQuotes(intindex,TpmAttestation.Quote.BuilderbuilderForValue)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameters
Name Description
index int
builderForValue TpmAttestation.Quote.Builder
Returns
Type Description
TpmAttestation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicTpmAttestation.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TpmAttestation.Builder
Overrides

setTcgEventLog(ByteString value)

publicTpmAttestation.BuildersetTcgEventLog(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The tcgEventLog to set.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalTpmAttestation.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TpmAttestation.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.