Interface NetworkOrBuilder (0.34.0)

public interface NetworkOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCidr()

public abstract String getCidr()

The cidr of the Network.

string cidr = 8;

Returns
TypeDescription
String

The cidr.

getCidrBytes()

public abstract ByteString getCidrBytes()

The cidr of the Network.

string cidr = 8;

Returns
TypeDescription
ByteString

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
TypeDescription
String

The gatewayIp.

getGatewayIpBytes()

public abstract ByteString getGatewayIpBytes()

Output only. Gateway ip address.

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

Returns
TypeDescription
ByteString

The bytes for gatewayIp.

getId()

public abstract String getId()

An identifier for the Network, generated by the backend.

string id = 10;

Returns
TypeDescription
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

An identifier for the Network, generated by the backend.

string id = 10;

Returns
TypeDescription
ByteString

The bytes for id.

getIpAddress()

public abstract String getIpAddress()

IP address configured.

string ip_address = 3;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public abstract ByteString getIpAddressBytes()

IP address configured.

string ip_address = 3;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getJumboFramesEnabled()

public abstract boolean getJumboFramesEnabled()

Whether network uses standard frames or jumbo ones.

bool jumbo_frames_enabled = 16;

Returns
TypeDescription
boolean

The jumboFramesEnabled.

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 11;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMacAddress(int index)

public abstract String getMacAddress(int index)

List of physical interfaces.

repeated string mac_address = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the macAddress at the given index.

getMacAddressCount()

public abstract int getMacAddressCount()

List of physical interfaces.

repeated string mac_address = 4;

Returns
TypeDescription
int

The count of macAddress.

getMacAddressList()

public abstract List<String> getMacAddressList()

List of physical interfaces.

repeated string mac_address = 4;

Returns
TypeDescription
List<String>

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
int

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
TypeDescription
List<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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? 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
TypeDescription
String

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
TypeDescription
ByteString

The bytes for name.

getPod()

public abstract String getPod()

Output only. Pod name.

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

Returns
TypeDescription
String

The pod.

getPodBytes()

public abstract ByteString getPodBytes()

Output only. Pod name.

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

Returns
TypeDescription
ByteString

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
int

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
TypeDescription
List<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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? 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
TypeDescription
String

The servicesCidr.

getServicesCidrBytes()

public abstract ByteString getServicesCidrBytes()

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

string services_cidr = 12;

Returns
TypeDescription
ByteString

The bytes for servicesCidr.

getState()

public abstract Network.State getState()

The Network state.

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

Returns
TypeDescription
Network.State

The state.

getStateValue()

public abstract int getStateValue()

The Network state.

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

Returns
TypeDescription
int

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
TypeDescription
Network.Type

The type.

getTypeValue()

public abstract int getTypeValue()

The type of this network.

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

Returns
TypeDescription
int

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
TypeDescription
String

The vlanId.

getVlanIdBytes()

public abstract ByteString getVlanIdBytes()

The vlan id of the Network.

string vlan_id = 7;

Returns
TypeDescription
ByteString

The bytes for vlanId.

getVrf()

public abstract VRF getVrf()

The vrf for the Network.

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

Returns
TypeDescription
VRF

The vrf.

getVrfOrBuilder()

public abstract VRFOrBuilder getVrfOrBuilder()

The vrf for the Network.

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

Returns
TypeDescription
VRFOrBuilder

hasVrf()

public abstract boolean hasVrf()

The vrf for the Network.

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

Returns
TypeDescription
boolean

Whether the vrf field is set.