Class TpmAttestation.Builder (0.10.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.v1alpha1.TpmAttestation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.protobuf.ByteString>

The certChain to add.

Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote>
Returns
TypeDescription
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
NameDescription
valueByteString

The certChain to add.

Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
valueTpmAttestation.Quote
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
builderForValueTpmAttestation.Quote.Builder
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameters
NameDescription
indexint
valueTpmAttestation.Quote
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameters
NameDescription
indexint
builderForValueTpmAttestation.Quote.Builder
Returns
TypeDescription
TpmAttestation.Builder

addQuotesBuilder()

public TpmAttestation.Quote.Builder addQuotesBuilder()

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

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

Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TpmAttestation.Quote.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TpmAttestation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TpmAttestation.Builder
Overrides

build()

public TpmAttestation build()
Returns
TypeDescription
TpmAttestation

buildPartial()

public TpmAttestation buildPartial()
Returns
TypeDescription
TpmAttestation

clear()

public TpmAttestation.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TpmAttestation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TpmAttestation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TpmAttestation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TpmAttestation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TpmAttestation.Builder
Overrides

clearQuotes()

public TpmAttestation.Builder clearQuotes()

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

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

Returns
TypeDescription
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
TypeDescription
TpmAttestation.Builder

This builder for chaining.

clone()

public TpmAttestation.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<ByteString>

A list containing the certChain.

getDefaultInstanceForType()

public TpmAttestation getDefaultInstanceForType()
Returns
TypeDescription
TpmAttestation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Returns
TypeDescription
List<Builder>

getQuotesCount()

public int getQuotesCount()

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

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

Returns
TypeDescription
int

getQuotesList()

public List<TpmAttestation.Quote> getQuotesList()

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

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

Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Returns
TypeDescription
List<? extends com.google.cloud.confidentialcomputing.v1alpha1.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
TypeDescription
ByteString

The tcgEventLog.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TpmAttestation other)

public TpmAttestation.Builder mergeFrom(TpmAttestation other)
Parameter
NameDescription
otherTpmAttestation
Returns
TypeDescription
TpmAttestation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TpmAttestation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TpmAttestation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TpmAttestation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TpmAttestation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TpmAttestation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueByteString

The akCert to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The canonicalEventLog to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueByteString

The certChain to set.

Returns
TypeDescription
TpmAttestation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TpmAttestation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameters
NameDescription
indexint
valueTpmAttestation.Quote
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameters
NameDescription
indexint
builderForValueTpmAttestation.Quote.Builder
Returns
TypeDescription
TpmAttestation.Builder

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

public TpmAttestation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueByteString

The tcgEventLog to set.

Returns
TypeDescription
TpmAttestation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TpmAttestation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TpmAttestation.Builder
Overrides