# Google Cloud Network Security V1 Client - Class BackendAuthenticationConfig (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class BackendAuthenticationConfig.

BackendAuthenticationConfig message groups the TrustConfig together with
other settings that control how the load balancer authenticates, and
expresses its identity to, the backend:

- `trustConfig` is the attached TrustConfig.

- `wellKnownRoots` indicates whether the load balance should trust backend
  server certificates that are issued by public certificate authorities, in
  addition to certificates trusted by the TrustConfig.

- `clientCertificate` is a client certificate that the load balancer uses to express its identity to the backend, if the connection to the backend uses mTLS. You can attach the BackendAuthenticationConfig to the load balancer's BackendService directly determining how that BackendService negotiates TLS.

Generated from protobuf message `google.cloud.networksecurity.v1.BackendAuthenticationConfig`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Required. Name of the BackendAuthenticationConfig resource. It matches the
pattern
`projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`

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

### setName

Required. Name of the BackendAuthenticationConfig resource. It matches the
pattern
`projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`

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

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

### getDescription

Optional. Free-text description of the resource.

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

### setDescription

Optional. Free-text description of the resource.

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

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

### getCreateTime

Output only. The timestamp when the resource was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp when the resource was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The timestamp when the resource was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The timestamp when the resource was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Set of label tags associated with the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Set of label tags associated with the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getClientCertificate

Optional. A reference to a certificatemanager.googleapis.com.Certificate
resource. This is a relative resource path following the form
"projects/{project}/locations/{location}/certificates/{certificate}".

Used by a BackendService to negotiate mTLS when the backend connection uses
TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
scope.

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

### setClientCertificate

Optional. A reference to a certificatemanager.googleapis.com.Certificate
resource. This is a relative resource path following the form
"projects/{project}/locations/{location}/certificates/{certificate}".

Used by a BackendService to negotiate mTLS when the backend connection uses
TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
scope.

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

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

### getTrustConfig

Optional. A reference to a TrustConfig resource from the
certificatemanager.googleapis.com namespace. This is a relative resource
path following the form
"projects/{project}/locations/{location}/trustConfigs/{trust_config}".

A BackendService uses the chain of trust represented by this TrustConfig,
if specified, to validate the server certificates presented by the backend.
Required unless wellKnownRoots is set to PUBLIC_ROOTS.

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

### setTrustConfig

Optional. A reference to a TrustConfig resource from the
certificatemanager.googleapis.com namespace. This is a relative resource
path following the form
"projects/{project}/locations/{location}/trustConfigs/{trust_config}".

A BackendService uses the chain of trust represented by this TrustConfig,
if specified, to validate the server certificates presented by the backend.
Required unless wellKnownRoots is set to PUBLIC_ROOTS.

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

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

### getWellKnownRoots

Well known roots to use for server certificate validation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [WellKnownRoots](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.BackendAuthenticationConfig.WellKnownRoots). |

### setWellKnownRoots

Well known roots to use for server certificate validation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [WellKnownRoots](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.BackendAuthenticationConfig.WellKnownRoots). |

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

### getEtag

Output only. Etag of the resource.

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

### setEtag

Output only. Etag of the resource.

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

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