0.16.0 (latest) 0.15.0 0.14.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1 Client class OAuthCredentials.

Represents OAuth credentials.

Generated from protobuf message `google.cloud.geminidataanalytics.v1.OAuthCredentials`

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ secret` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.OAuthCredentials.SecretBased` Secret-based OAuth credentials. |
| `↳ token` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.OAuthCredentials.TokenBased` Token-based OAuth credentials. |

### getSecret

Secret-based OAuth credentials.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.OAuthCredentials.SecretBased|null` |   |

### hasSecret

### setSecret

Secret-based OAuth credentials.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.OAuthCredentials.SecretBased` |

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

### getToken

Token-based OAuth credentials.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.OAuthCredentials.TokenBased|null` |   |

### hasToken

### setToken

Token-based OAuth credentials.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.OAuthCredentials.TokenBased` |

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

### getKind

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