# Interface NetworkOrBuilder (0.91.0)

0.91.0 (latest) 0.88.0 0.87.0 0.85.0 0.83.0 0.82.0 0.81.0 0.80.0 0.78.0 0.76.0 0.75.0 0.74.0 0.73.0 0.72.0 0.70.0 0.68.0 0.67.0 0.64.0 0.63.0 0.62.0 0.60.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.8 0.2.1 0.1.1

    public interface NetworkOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

Labels as key value pairs.

`map<string, string> labels = 11;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getCidr()

    public abstract String getCidr()

The cidr of the Network.

`string cidr = 8;`

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

### getCidrBytes()

    public abstract ByteString getCidrBytes()

The cidr of the Network.

`string cidr = 8;`

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

### getGatewayIp()

    public abstract String getGatewayIp()

Output only. Gateway ip address.

`string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getGatewayIpBytes()

    public abstract ByteString getGatewayIpBytes()

Output only. Gateway ip address.

`string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getId()

    public abstract String getId()

An identifier for the `Network`, generated by the backend.

`string id = 10;`

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

### getIdBytes()

    public abstract ByteString getIdBytes()

An identifier for the `Network`, generated by the backend.

`string id = 10;`

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

### getIpAddress()

    public abstract String getIpAddress()

IP address configured.

`string ip_address = 3;`

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

### getIpAddressBytes()

    public abstract ByteString getIpAddressBytes()

IP address configured.

`string ip_address = 3;`

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

### getJumboFramesEnabled()

    public abstract boolean getJumboFramesEnabled()

Whether network uses standard frames or jumbo ones.

`bool jumbo_frames_enabled = 16;`

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

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.NetworkOrBuilder#com_google_cloud_baremetalsolution_v2_NetworkOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

Labels as key value pairs.

`map<string, string> labels = 11;`

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

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

Labels as key value pairs.

`map<string, string> labels = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

`map<string, string> labels = 11;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

Labels as key value pairs.

`map<string, string> labels = 11;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getMacAddress(int index)

    public abstract String getMacAddress(int index)

List of physical interfaces.

`repeated string mac_address = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The macAddress at the given index. |

### getMacAddressBytes(int index)

    public abstract ByteString getMacAddressBytes(int index)

List of physical interfaces.

`repeated string mac_address = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the macAddress at the given index. |

### getMacAddressCount()

    public abstract int getMacAddressCount()

List of physical interfaces.

`repeated string mac_address = 4;`

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

### getMacAddressList()

    public abstract List<String> getMacAddressList()

List of physical interfaces.

`repeated string mac_address = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the macAddress. |

### getMountPoints(int index)

    public abstract NetworkMountPoint getMountPoints(int index)

Input only. List of mount points to attach the network to.

`
repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
`

| **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-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.NetworkMountPoint` |   |

### getMountPointsCount()

    public abstract int getMountPointsCount()

Input only. List of mount points to attach the network to.

`
repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
`

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

### getMountPointsList()

    public abstract List<NetworkMountPoint> getMountPointsList()

Input only. List of mount points to attach the network to.

`
repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.NetworkMountPoint>` |   |

### getMountPointsOrBuilder(int index)

    public abstract NetworkMountPointOrBuilder getMountPointsOrBuilder(int index)

Input only. List of mount points to attach the network to.

`
repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
`

| **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-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.NetworkMountPointOrBuilder` |   |

### getMountPointsOrBuilderList()

    public abstract List<? extends NetworkMountPointOrBuilder> getMountPointsOrBuilderList()

Input only. List of mount points to attach the network to.

`
repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.baremetalsolution.v2.NetworkMountPointOrBuilder>` |   |

### getName()

    public abstract String getName()

Output only. The resource name of this `Network`.
Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
Format:
`projects/{project}/locations/{location}/networks/{network}`

`string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. The resource name of this `Network`.
Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
Format:
`projects/{project}/locations/{location}/networks/{network}`

`string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getPod()

    public abstract String getPod()

Output only. Pod name.

`string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getPodBytes()

    public abstract ByteString getPodBytes()

Output only. Pod name.

`string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getReservations(int index)

    public abstract NetworkAddressReservation getReservations(int index)

List of IP address reservations in this network.
When updating this field, an error will be generated if a reservation
conflicts with an IP address already allocated to a physical server.

`repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
`

| **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-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.NetworkAddressReservation` |   |

### getReservationsCount()

    public abstract int getReservationsCount()

List of IP address reservations in this network.
When updating this field, an error will be generated if a reservation
conflicts with an IP address already allocated to a physical server.

`repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
`

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

### getReservationsList()

    public abstract List<NetworkAddressReservation> getReservationsList()

List of IP address reservations in this network.
When updating this field, an error will be generated if a reservation
conflicts with an IP address already allocated to a physical server.

`repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>` |   |

### getReservationsOrBuilder(int index)

    public abstract NetworkAddressReservationOrBuilder getReservationsOrBuilder(int index)

List of IP address reservations in this network.
When updating this field, an error will be generated if a reservation
conflicts with an IP address already allocated to a physical server.

`repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
`

| **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-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder` |   |

### getReservationsOrBuilderList()

    public abstract List<? extends NetworkAddressReservationOrBuilder> getReservationsOrBuilderList()

List of IP address reservations in this network.
When updating this field, an error will be generated if a reservation
conflicts with an IP address already allocated to a physical server.

`repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>` |   |

### getServicesCidr()

    public abstract String getServicesCidr()

IP range for reserved for services (e.g. NFS).

`string services_cidr = 12;`

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

### getServicesCidrBytes()

    public abstract ByteString getServicesCidrBytes()

IP range for reserved for services (e.g. NFS).

`string services_cidr = 12;`

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

### getState()

    public abstract Network.State getState()

The Network state.

`.google.cloud.baremetalsolution.v2.Network.State state = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.Network.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

The Network state.

`.google.cloud.baremetalsolution.v2.Network.State state = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getType()

    public abstract Network.Type getType()

The type of this network.

`.google.cloud.baremetalsolution.v2.Network.Type type = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.Network.Type` | The type. |

### getTypeValue()

    public abstract int getTypeValue()

The type of this network.

`.google.cloud.baremetalsolution.v2.Network.Type type = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for type. |

### getVlanId()

    public abstract String getVlanId()

The vlan id of the Network.

`string vlan_id = 7;`

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

### getVlanIdBytes()

    public abstract ByteString getVlanIdBytes()

The vlan id of the Network.

`string vlan_id = 7;`

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

### getVrf()

    public abstract VRF getVrf()

The vrf for the Network.

`.google.cloud.baremetalsolution.v2.VRF vrf = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.VRF` | The vrf. |

### getVrfOrBuilder()

    public abstract VRFOrBuilder getVrfOrBuilder()

The vrf for the Network.

`.google.cloud.baremetalsolution.v2.VRF vrf = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.VRFOrBuilder` |   |

### hasVrf()

    public abstract boolean hasVrf()

The vrf for the Network.

`.google.cloud.baremetalsolution.v2.VRF vrf = 9;`

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