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

    public static interface AllocationPolicy.NetworkPolicyOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getNetworkInterfaces(int index)

    public abstract AllocationPolicy.NetworkInterface getNetworkInterfaces(int index)

Network configurations.

`
repeated .google.events.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;
`

| **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.batch.v1.AllocationPolicy.NetworkInterface` |   |

### getNetworkInterfacesCount()

    public abstract int getNetworkInterfacesCount()

Network configurations.

`
repeated .google.events.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;
`

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

### getNetworkInterfacesList()

    public abstract List<AllocationPolicy.NetworkInterface> getNetworkInterfacesList()

Network configurations.

`
repeated .google.events.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;
`

| **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.batch.v1.AllocationPolicy.NetworkInterface>` |   |

### getNetworkInterfacesOrBuilder(int index)

    public abstract AllocationPolicy.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

Network configurations.

`
repeated .google.events.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;
`

| **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.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder` |   |

### getNetworkInterfacesOrBuilderList()

    public abstract List<? extends AllocationPolicy.NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()

Network configurations.

`
repeated .google.events.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;
`

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