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

    public interface NetworkInterfaceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getExternalIp()

    public abstract String getExternalIp()

The external IP to define in the NIC.

`string external_ip = 4;`

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

### getExternalIpBytes()

    public abstract ByteString getExternalIpBytes()

The external IP to define in the NIC.

`string external_ip = 4;`

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

### getInternalIp()

    public abstract String getInternalIp()

The internal IP to define in the NIC.
The formats accepted are: `ephemeral` \\ ipv4 address \\ a named address
resource full path.

`string internal_ip = 3;`

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

### getInternalIpBytes()

    public abstract ByteString getInternalIpBytes()

The internal IP to define in the NIC.
The formats accepted are: `ephemeral` \\ ipv4 address \\ a named address
resource full path.

`string internal_ip = 3;`

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

### getNetwork()

    public abstract String getNetwork()

The network to connect the NIC to.

`string network = 1;`

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

### getNetworkBytes()

    public abstract ByteString getNetworkBytes()

The network to connect the NIC to.

`string network = 1;`

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

### getSubnetwork()

    public abstract String getSubnetwork()

The subnetwork to connect the NIC to.

`string subnetwork = 2;`

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

### getSubnetworkBytes()

    public abstract ByteString getSubnetworkBytes()

The subnetwork to connect the NIC to.

`string subnetwork = 2;`

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