# Google Cloud Eventarc V1 Client - Class AuthenticationConfig (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.5 2.0.1 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Eventarc V1 Client class AuthenticationConfig.

Represents a config used to authenticate message requests.

Generated from protobuf message `google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig`

## Namespace

Google \\ Cloud \\ Eventarc \\ V1 \\ Pipeline \\ Destination

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ google_oidc` | `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.Pipeline.Destination.AuthenticationConfig.OidcToken` Optional. This authenticate method will apply Google OIDC tokens signed by a Google Cloud service account to the requests. |
| `↳ oauth_token` | `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.Pipeline.Destination.AuthenticationConfig.OAuthToken` Optional. If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on \*.googleapis.com. |

### getGoogleOidc

Optional. This authenticate method will apply Google OIDC tokens
signed by a Google Cloud service account to the requests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.Pipeline.Destination.AuthenticationConfig.OidcToken|null` |   |

### hasGoogleOidc

### setGoogleOidc

Optional. This authenticate method will apply Google OIDC tokens
signed by a Google Cloud service account to the requests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.Pipeline.Destination.AuthenticationConfig.OidcToken` |

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

### getOauthToken

Optional. If specified, an [OAuth
token](https://developers.google.com/identity/protocols/OAuth2) will
be generated and attached as an `Authorization` header in the HTTP
request.

This type of authorization should generally only be used when calling
Google APIs hosted on \*.googleapis.com.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.Pipeline.Destination.AuthenticationConfig.OAuthToken|null` |   |

### hasOauthToken

### setOauthToken

Optional. If specified, an [OAuth
token](https://developers.google.com/identity/protocols/OAuth2) will
be generated and attached as an `Authorization` header in the HTTP
request.

This type of authorization should generally only be used when calling
Google APIs hosted on \*.googleapis.com.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.Pipeline.Destination.AuthenticationConfig.OAuthToken` |

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

### getAuthenticationMethodDescriptor

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