# Enum ServiceConfig.VpcConnectorEgressSettings (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.functions.v2.ServiceConfig.VpcConnectorEgressSettings)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings)

    public enum ServiceConfig.VpcConnectorEgressSettings extends Enum<ServiceConfig.VpcConnectorEgressSettings> implements ProtocolMessageEnum

Available egress settings.
This controls what traffic is diverted through the VPC Access Connector
resource. By default PRIVATE_RANGES_ONLY will be used.

Protobuf enum `google.events.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings`

## Implements

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

## Inherited Members

[Enum.\<T\>valueOf(Class\<T\>,String)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf-java.lang.Class-java.lang.String-) [Enum.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#clone--) [Enum.compareTo(E)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#compareTo-E-) [Enum.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#equals-java.lang.Object-) [Enum.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#finalize--) [Enum.getDeclaringClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#getDeclaringClass--) [Enum.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#hashCode--) [Enum.name()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#name--) [Enum.ordinal()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#ordinal--) [Enum.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#toString--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

| ## Static Fields ||
|---|---|
| **Name** | **Description** |
| `ALL_TRAFFIC` | Force the use of VPC Access Connector for all egress traffic from the function. `ALL_TRAFFIC = 2;` |
| `ALL_TRAFFIC_VALUE` | Force the use of VPC Access Connector for all egress traffic from the function. `ALL_TRAFFIC = 2;` |
| `PRIVATE_RANGES_ONLY` | Use the VPC Access Connector only for private IP space from RFC1918. `PRIVATE_RANGES_ONLY = 1;` |
| `PRIVATE_RANGES_ONLY_VALUE` | Use the VPC Access Connector only for private IP space from RFC1918. `PRIVATE_RANGES_ONLY = 1;` |
| `UNRECOGNIZED` |   |
| `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED` | Unspecified. `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0;` |
| `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE` | Unspecified. `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0;` |

| ## Static Methods ||
|---|---|
| **Name** | **Description** |
| `forNumber(int value)` |   |
| `getDescriptor()` |   |
| `internalGetValueMap()` |   |
| `valueOf(Descriptors.EnumValueDescriptor desc)` |   |
| `valueOf(int value)` | **Deprecated.** *Use [#forNumber(int)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings#com_google_events_cloud_functions_v2_ServiceConfig_VpcConnectorEgressSettings_forNumber_int_) instead.* |
| `valueOf(String name)` |   |
| `values()` |   |

| ## Methods ||
|---|---|
| **Name** | **Description** |
| `getDescriptorForType()` |   |
| `getNumber()` |   |
| `getValueDescriptor()` |   |