# Interface KubernetesConfig.ServiceNetworkingOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.KubernetesConfig.ServiceNetworkingOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.deploy.v1.KubernetesConfig.ServiceNetworkingOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.deploy.v1.KubernetesConfig.ServiceNetworkingOrBuilder)

    public static interface KubernetesConfig.ServiceNetworkingOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDeployment()

    public abstract String getDeployment()

Required. Name of the Kubernetes Deployment whose traffic is managed by
the specified Service.

`string deployment = 2;`

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

### getDeploymentBytes()

    public abstract ByteString getDeploymentBytes()

Required. Name of the Kubernetes Deployment whose traffic is managed by
the specified Service.

`string deployment = 2;`

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

### getDisablePodOverprovisioning()

    public abstract boolean getDisablePodOverprovisioning()

Optional. Whether to disable Pod overprovisioning. If Pod
overprovisioning is disabled then Cloud Deploy will limit the number of
total Pods used for the deployment strategy to the number of Pods the
Deployment has on the cluster.

`bool disable_pod_overprovisioning = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The disablePodOverprovisioning. |

### getService()

    public abstract String getService()

Required. Name of the Kubernetes Service.

`string service = 1;`

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

### getServiceBytes()

    public abstract ByteString getServiceBytes()

Required. Name of the Kubernetes Service.

`string service = 1;`

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