# Google Cloud Confidential Computing V1 Client - Class TpmAttestation (1.7.1)

1.7.1 (latest) 1.7.0 1.6.2 1.5.0 1.4.1 1.3.0 1.2.2 1.1.1 1.0.0 0.8.3 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.2 0.1.1 Reference documentation and code samples for the Google Cloud Confidential Computing V1 Client class TpmAttestation.

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

Generated from protobuf message `google.cloud.confidentialcomputing.v1.TpmAttestation`

## Namespace

Google \\ Cloud \\ ConfidentialComputing \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ quotes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-confidentialcomputing/latest/V1.TpmAttestation.Quote>` TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank. |
| `↳ tcg_event_log` | `string` 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". |
| `↳ canonical_event_log` | `string` 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. |
| `↳ ak_cert` | `string` 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. |
| `↳ cert_chain` | `string[]` List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate. |

### getQuotes

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-confidentialcomputing/latest/V1.TpmAttestation.Quote>` |   |

### setQuotes

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-confidentialcomputing/latest/V1.TpmAttestation.Quote>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### 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".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### 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".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCertChain

List of DER-encoded X.509 certificates which, together with the ak_cert,
chain back to a trusted Root Certificate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setCertChain

List of DER-encoded X.509 certificates which, together with the ak_cert,
chain back to a trusted Root Certificate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |