Class TpmAttestation.Builder (0.29.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllCertChain(Iterable<? extends ByteString> values)

public TpmAttestation.Builder addAllCertChain(Iterable<? extends 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;

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)

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;

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

addCertChain(ByteString value)

public TpmAttestation.Builder addCertChain(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;

Parameter
Name Description
value ByteString

The certChain to add.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

addQuotes(TpmAttestation.Quote value)

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;

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

addQuotes(TpmAttestation.Quote.Builder builderForValue)

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;

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

addQuotes(int index, TpmAttestation.Quote value)

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;

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

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

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;

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

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;

Returns
Type Description
TpmAttestation.Quote.Builder

addQuotesBuilder(int index)

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;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TpmAttestation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TpmAttestation.Builder
Overrides

build()

public TpmAttestation build()
Returns
Type Description
TpmAttestation

buildPartial()

public TpmAttestation buildPartial()
Returns
Type Description
TpmAttestation

clear()

public TpmAttestation.Builder clear()
Returns
Type Description
TpmAttestation.Builder
Overrides

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

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

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TpmAttestation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TpmAttestation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TpmAttestation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TpmAttestation.Builder
Overrides

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;

Returns
Type Description
TpmAttestation.Builder

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

This builder for chaining.

clone()

public TpmAttestation.Builder clone()
Returns
Type Description
TpmAttestation.Builder
Overrides

getAkCert()

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

Returns
Type Description
ByteString

The akCert.

getCanonicalEventLog()

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

Returns
Type Description
ByteString

The canonicalEventLog.

getCertChain(int index)

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The certChain at the given index.

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;

Returns
Type Description
int

The count of certChain.

getCertChainList()

public List<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()

public TpmAttestation getDefaultInstanceForType()
Returns
Type Description
TpmAttestation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getQuotes(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.Quote

getQuotesBuilder(int index)

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;

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

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

getQuotesList()

public List<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)

public TpmAttestation.QuoteOrBuilder getQuotesOrBuilder(int index)

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()

public List<? extends TpmAttestation.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()

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

Returns
Type Description
ByteString

The tcgEventLog.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TpmAttestation other)

public TpmAttestation.Builder mergeFrom(TpmAttestation other)
Parameter
Name Description
other TpmAttestation
Returns
Type Description
TpmAttestation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TpmAttestation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TpmAttestation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TpmAttestation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TpmAttestation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TpmAttestation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TpmAttestation.Builder
Overrides

removeQuotes(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.Builder

setAkCert(ByteString value)

public TpmAttestation.Builder setAkCert(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;

Parameter
Name Description
value ByteString

The akCert to set.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

setCanonicalEventLog(ByteString value)

public TpmAttestation.Builder setCanonicalEventLog(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;

Parameter
Name Description
value ByteString

The canonicalEventLog to set.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

setCertChain(int index, ByteString value)

public TpmAttestation.Builder setCertChain(int index, 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
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)

public TpmAttestation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TpmAttestation.Builder
Overrides

setQuotes(int index, TpmAttestation.Quote value)

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;

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

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

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;

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

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

public TpmAttestation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TpmAttestation.Builder
Overrides

setTcgEventLog(ByteString value)

public TpmAttestation.Builder setTcgEventLog(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;

Parameter
Name Description
value ByteString

The tcgEventLog to set.

Returns
Type Description
TpmAttestation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TpmAttestation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TpmAttestation.Builder
Overrides