# Interface SqlIpConfigOrBuilder (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.clouddms.v1.SqlIpConfigOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.clouddms.v1.SqlIpConfigOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.clouddms.v1.SqlIpConfigOrBuilder)

    public interface SqlIpConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAuthorizedNetworks(int index)

    public abstract SqlAclEntry getAuthorizedNetworks(int index)

The list of external networks that are allowed to connect to the instance
using the IP. See
<https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation>, also known as
'slash' notation (e.g. `192.168.100.0/24`).

`repeated .google.events.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.clouddms.v1.SqlAclEntry` |   |

### getAuthorizedNetworksCount()

    public abstract int getAuthorizedNetworksCount()

The list of external networks that are allowed to connect to the instance
using the IP. See
<https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation>, also known as
'slash' notation (e.g. `192.168.100.0/24`).

`repeated .google.events.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;`

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

### getAuthorizedNetworksList()

    public abstract List<SqlAclEntry> getAuthorizedNetworksList()

The list of external networks that are allowed to connect to the instance
using the IP. See
<https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation>, also known as
'slash' notation (e.g. `192.168.100.0/24`).

`repeated .google.events.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.clouddms.v1.SqlAclEntry>` |   |

### getAuthorizedNetworksOrBuilder(int index)

    public abstract SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder(int index)

The list of external networks that are allowed to connect to the instance
using the IP. See
<https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation>, also known as
'slash' notation (e.g. `192.168.100.0/24`).

`repeated .google.events.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.clouddms.v1.SqlAclEntryOrBuilder` |   |

### getAuthorizedNetworksOrBuilderList()

    public abstract List<? extends SqlAclEntryOrBuilder> getAuthorizedNetworksOrBuilderList()

The list of external networks that are allowed to connect to the instance
using the IP. See
<https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation>, also known as
'slash' notation (e.g. `192.168.100.0/24`).

`repeated .google.events.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.events.cloud.clouddms.v1.SqlAclEntryOrBuilder>` |   |

### getEnableIpv4()

    public abstract BoolValue getEnableIpv4()

Whether the instance should be assigned an IPv4 address or not.

`.google.protobuf.BoolValue enable_ipv4 = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` | The enableIpv4. |

### getEnableIpv4OrBuilder()

    public abstract BoolValueOrBuilder getEnableIpv4OrBuilder()

Whether the instance should be assigned an IPv4 address or not.

`.google.protobuf.BoolValue enable_ipv4 = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValueOrBuilder.html` |   |

### getPrivateNetwork()

    public abstract String getPrivateNetwork()

The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example,
`projects/myProject/global/networks/default`. This setting can
be updated, but it cannot be removed after it is set.

`string private_network = 2;`

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

### getPrivateNetworkBytes()

    public abstract ByteString getPrivateNetworkBytes()

The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example,
`projects/myProject/global/networks/default`. This setting can
be updated, but it cannot be removed after it is set.

`string private_network = 2;`

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

### getRequireSsl()

    public abstract BoolValue getRequireSsl()

Whether SSL connections over IP should be enforced or not.

`.google.protobuf.BoolValue require_ssl = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` | The requireSsl. |

### getRequireSslOrBuilder()

    public abstract BoolValueOrBuilder getRequireSslOrBuilder()

Whether SSL connections over IP should be enforced or not.

`.google.protobuf.BoolValue require_ssl = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValueOrBuilder.html` |   |

### hasEnableIpv4()

    public abstract boolean hasEnableIpv4()

Whether the instance should be assigned an IPv4 address or not.

`.google.protobuf.BoolValue enable_ipv4 = 1;`

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

### hasRequireSsl()

    public abstract boolean hasRequireSsl()

Whether SSL connections over IP should be enforced or not.

`.google.protobuf.BoolValue require_ssl = 3;`

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