Class TpmAttestation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TpmAttestation.Builder>
com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder
- All Implemented Interfaces:
TpmAttestationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TpmAttestation
public static final class TpmAttestation.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllCertChain(Iterable<? extends com.google.protobuf.ByteString> values) List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.addAllQuotes(Iterable<? extends TpmAttestation.Quote> values) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.addCertChain(com.google.protobuf.ByteString value) List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.addQuotes(int index, TpmAttestation.Quote value) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.addQuotes(int index, TpmAttestation.Quote.Builder builderForValue) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.addQuotes(TpmAttestation.Quote value) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.addQuotes(TpmAttestation.Quote.Builder builderForValue) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.addQuotesBuilder(int index) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.build()clear()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.An Event Log containing additional events measured into the TPM that are not already present in the tcg_event_log.List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.The binary TCG Event Log containing events measured into the TPM by the platform firmware and operating system.com.google.protobuf.ByteStringDER-encoded X.509 certificate of the Attestation Key (otherwise known as an AK or a TPM restricted signing key) used to generate the quotes.com.google.protobuf.ByteStringAn Event Log containing additional events measured into the TPM that are not already present in the tcg_event_log.com.google.protobuf.ByteStringgetCertChain(int index) List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.intList of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.List<com.google.protobuf.ByteString>List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetQuotes(int index) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.getQuotesBuilder(int index) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.intTPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.getQuotesOrBuilder(int index) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.List<? extends TpmAttestation.QuoteOrBuilder>TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.com.google.protobuf.ByteStringThe binary TCG Event Log containing events measured into the TPM by the platform firmware and operating system.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TpmAttestation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeQuotes(int index) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.setAkCert(com.google.protobuf.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.setCanonicalEventLog(com.google.protobuf.ByteString value) An Event Log containing additional events measured into the TPM that are not already present in the tcg_event_log.setCertChain(int index, com.google.protobuf.ByteString value) List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.setQuotes(int index, TpmAttestation.Quote value) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.setQuotes(int index, TpmAttestation.Quote.Builder builderForValue) TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.setTcgEventLog(com.google.protobuf.ByteString value) The binary TCG Event Log containing events measured into the TPM by the platform firmware and operating system.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TpmAttestation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TpmAttestation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TpmAttestation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TpmAttestation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TpmAttestation.Builder>
-
mergeFrom
public TpmAttestation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TpmAttestation.Builder>- Throws:
IOException
-
getQuotesList
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;- Specified by:
getQuotesListin interfaceTpmAttestationOrBuilder
-
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;- Specified by:
getQuotesCountin interfaceTpmAttestationOrBuilder
-
getQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;- Specified by:
getQuotesin interfaceTpmAttestationOrBuilder
-
setQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
setQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
addQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
addQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
addQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
addQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
addAllQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
clearQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
removeQuotes
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
getQuotesBuilder
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
getQuotesOrBuilder
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;- Specified by:
getQuotesOrBuilderin interfaceTpmAttestationOrBuilder
-
getQuotesOrBuilderList
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;- Specified by:
getQuotesOrBuilderListin interfaceTpmAttestationOrBuilder
-
addQuotesBuilder
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
addQuotesBuilder
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
getQuotesBuilderList
TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; -
getTcgEventLog
public com.google.protobuf.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;- Specified by:
getTcgEventLogin interfaceTpmAttestationOrBuilder- Returns:
- The tcgEventLog.
-
setTcgEventLog
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;- Parameters:
value- The tcgEventLog to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getCanonicalEventLog
public com.google.protobuf.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;- Specified by:
getCanonicalEventLogin interfaceTpmAttestationOrBuilder- Returns:
- The canonicalEventLog.
-
setCanonicalEventLog
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;- Parameters:
value- The canonicalEventLog to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getAkCert
public com.google.protobuf.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;- Specified by:
getAkCertin interfaceTpmAttestationOrBuilder- Returns:
- The akCert.
-
setAkCert
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;- Parameters:
value- The akCert to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getCertChainListin interfaceTpmAttestationOrBuilder- Returns:
- A list containing the certChain.
-
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;- Specified by:
getCertChainCountin interfaceTpmAttestationOrBuilder- Returns:
- The count of certChain.
-
getCertChain
public com.google.protobuf.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;- Specified by:
getCertChainin interfaceTpmAttestationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The certChain at the given index.
-
setCertChain
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:
index- The index to set the value at.value- The certChain to set.- Returns:
- This builder for chaining.
-
addCertChain
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:
value- The certChain to add.- Returns:
- This builder for chaining.
-
addAllCertChain
public TpmAttestation.Builder addAllCertChain(Iterable<? extends com.google.protobuf.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;- Parameters:
values- The certChain to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-