# Interface AuthConfigOrBuilder (0.44.0)

0.44.0 (latest) 0.41.0 0.40.0 0.38.0 0.36.0 0.35.0 0.34.0 0.33.0 0.31.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.23.0 0.21.0 0.20.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.2.0 0.1.0

    public interface AuthConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getApiKeyConfig()

    public abstract AuthConfig.ApiKeyConfig getApiKeyConfig()

Api Key Config.

`.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig` | The apiKeyConfig. |

### getApiKeyConfigOrBuilder()

    public abstract AuthConfig.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder()

Api Key Config.

`.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthConfig.ApiKeyConfigOrBuilder` |   |

### getAuthType()

    public abstract AuthType getAuthType()

Required. The authentication type.

`.google.cloud.apihub.v1.AuthType auth_type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthType` | The authType. |

### getAuthTypeValue()

    public abstract int getAuthTypeValue()

Required. The authentication type.

`.google.cloud.apihub.v1.AuthType auth_type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for authType. |

### getConfigCase()

    public abstract AuthConfig.ConfigCase getConfigCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthConfig.ConfigCase` |   |

### getGoogleServiceAccountConfig()

    public abstract GoogleServiceAccountConfig getGoogleServiceAccountConfig()

Google Service Account.

`.google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.GoogleServiceAccountConfig` | The googleServiceAccountConfig. |

### getGoogleServiceAccountConfigOrBuilder()

    public abstract GoogleServiceAccountConfigOrBuilder getGoogleServiceAccountConfigOrBuilder()

Google Service Account.

`.google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.GoogleServiceAccountConfigOrBuilder` |   |

### getOauth2ClientCredentialsConfig()

    public abstract AuthConfig.Oauth2ClientCredentialsConfig getOauth2ClientCredentialsConfig()

Oauth2.0 Client Credentials.

`
.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig` | The oauth2ClientCredentialsConfig. |

### getOauth2ClientCredentialsConfigOrBuilder()

    public abstract AuthConfig.Oauth2ClientCredentialsConfigOrBuilder getOauth2ClientCredentialsConfigOrBuilder()

Oauth2.0 Client Credentials.

`
.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfigOrBuilder` |   |

### getUserPasswordConfig()

    public abstract AuthConfig.UserPasswordConfig getUserPasswordConfig()

User Password.

`.google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthConfig.UserPasswordConfig` | The userPasswordConfig. |

### getUserPasswordConfigOrBuilder()

    public abstract AuthConfig.UserPasswordConfigOrBuilder getUserPasswordConfigOrBuilder()

User Password.

`.google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthConfig.UserPasswordConfigOrBuilder` |   |

### hasApiKeyConfig()

    public abstract boolean hasApiKeyConfig()

Api Key Config.

`.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the apiKeyConfig field is set. |

### hasGoogleServiceAccountConfig()

    public abstract boolean hasGoogleServiceAccountConfig()

Google Service Account.

`.google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the googleServiceAccountConfig field is set. |

### hasOauth2ClientCredentialsConfig()

    public abstract boolean hasOauth2ClientCredentialsConfig()

Oauth2.0 Client Credentials.

`
.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the oauth2ClientCredentialsConfig field is set. |

### hasUserPasswordConfig()

    public abstract boolean hasUserPasswordConfig()

User Password.

`.google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the userPasswordConfig field is set. |