0.50.0 (latest) 0.48.0 0.45.0 0.44.0 0.42.0 0.40.0 0.39.0 0.38.0 0.37.0 0.35.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.27.0 0.25.0 0.24.0 0.21.0 0.20.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface GenericHTTPEndpointConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAuthenticationCase()

    public abstract GenericHTTPEndpointConfig.AuthenticationCase getAuthenticationCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/com.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.AuthenticationCase` |   |

### getBasicAuthentication()

    public abstract GenericHTTPEndpointConfig.BasicAuthentication getBasicAuthentication()

Optional. Basic authentication with username and password.

`
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/com.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication` | The basicAuthentication. |

### getBasicAuthenticationOrBuilder()

    public abstract GenericHTTPEndpointConfig.BasicAuthenticationOrBuilder getBasicAuthenticationOrBuilder()

Optional. Basic authentication with username and password.

`
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/com.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthenticationOrBuilder` |   |

### getBearerTokenAuthentication()

    public abstract GenericHTTPEndpointConfig.BearerTokenAuthentication getBearerTokenAuthentication()

Optional. Bearer token authentication with a token.

`
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/com.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication` | The bearerTokenAuthentication. |

### getBearerTokenAuthenticationOrBuilder()

    public abstract GenericHTTPEndpointConfig.BearerTokenAuthenticationOrBuilder getBearerTokenAuthenticationOrBuilder()

Optional. Bearer token authentication with a token.

`
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/com.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthenticationOrBuilder` |   |

### getHostUri()

    public abstract String getHostUri()

Required. Immutable. The service provider's https endpoint.

`
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The hostUri. |

### getHostUriBytes()

    public abstract ByteString getHostUriBytes()

Required. Immutable. The service provider's https endpoint.

`
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for hostUri. |

### getServiceDirectoryConfig()

    public abstract ServiceDirectoryConfig getServiceDirectoryConfig()

Optional. Configuration for using Service Directory to privately connect to
a HTTP service provider. This should only be set if the Http service
provider is hosted on-premises and not reachable by public internet. If
this field is left empty, calls to the HTTP service provider will be made
over the public internet.

`
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/com.google.cloud.developerconnect.v1.ServiceDirectoryConfig` | The serviceDirectoryConfig. |

### getServiceDirectoryConfigOrBuilder()

    public abstract ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()

Optional. Configuration for using Service Directory to privately connect to
a HTTP service provider. This should only be set if the Http service
provider is hosted on-premises and not reachable by public internet. If
this field is left empty, calls to the HTTP service provider will be made
over the public internet.

`
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getSslCaCertificate()

    public abstract String getSslCaCertificate()

Optional. The SSL certificate to use for requests to the HTTP service
provider.

`string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The sslCaCertificate. |

### getSslCaCertificateBytes()

    public abstract ByteString getSslCaCertificateBytes()

Optional. The SSL certificate to use for requests to the HTTP service
provider.

`string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for sslCaCertificate. |

### hasBasicAuthentication()

    public abstract boolean hasBasicAuthentication()

Optional. Basic authentication with username and password.

`
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasBearerTokenAuthentication()

    public abstract boolean hasBearerTokenAuthentication()

Optional. Bearer token authentication with a token.

`
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasServiceDirectoryConfig()

    public abstract boolean hasServiceDirectoryConfig()

Optional. Configuration for using Service Directory to privately connect to
a HTTP service provider. This should only be set if the Http service
provider is hosted on-premises and not reachable by public internet. If
this field is left empty, calls to the HTTP service provider will be made
over the public internet.

`
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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