Interface NetworkOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Network
,Network.Builder
public interface NetworkOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels as key value pairs.String
getCidr()
The cidr of the Network.com.google.protobuf.ByteString
getCidrBytes()
The cidr of the Network.String
getGatewayIp()
Output only.com.google.protobuf.ByteString
getGatewayIpBytes()
Output only.String
getId()
An identifier for the `Network`, generated by the backend.com.google.protobuf.ByteString
getIdBytes()
An identifier for the `Network`, generated by the backend.String
getIpAddress()
IP address configured.com.google.protobuf.ByteString
getIpAddressBytes()
IP address configured.boolean
getJumboFramesEnabled()
Whether network uses standard frames or jumbo ones.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels as key value pairs.Map<String,String>
getLabelsMap()
Labels as key value pairs.String
getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.String
getLabelsOrThrow(String key)
Labels as key value pairs.String
getMacAddress(int index)
List of physical interfaces.com.google.protobuf.ByteString
getMacAddressBytes(int index)
List of physical interfaces.int
getMacAddressCount()
List of physical interfaces.List<String>
getMacAddressList()
List of physical interfaces.NetworkMountPoint
getMountPoints(int index)
Input only.int
getMountPointsCount()
Input only.List<NetworkMountPoint>
getMountPointsList()
Input only.NetworkMountPointOrBuilder
getMountPointsOrBuilder(int index)
Input only.List<? extends NetworkMountPointOrBuilder>
getMountPointsOrBuilderList()
Input only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getPod()
Output only.com.google.protobuf.ByteString
getPodBytes()
Output only.NetworkAddressReservation
getReservations(int index)
List of IP address reservations in this network.int
getReservationsCount()
List of IP address reservations in this network.List<NetworkAddressReservation>
getReservationsList()
List of IP address reservations in this network.NetworkAddressReservationOrBuilder
getReservationsOrBuilder(int index)
List of IP address reservations in this network.List<? extends NetworkAddressReservationOrBuilder>
getReservationsOrBuilderList()
List of IP address reservations in this network.String
getServicesCidr()
IP range for reserved for services (e.g.com.google.protobuf.ByteString
getServicesCidrBytes()
IP range for reserved for services (e.g.Network.State
getState()
The Network state.int
getStateValue()
The Network state.Network.Type
getType()
The type of this network.int
getTypeValue()
The type of this network.String
getVlanId()
The vlan id of the Network.com.google.protobuf.ByteString
getVlanIdBytes()
The vlan id of the Network.VRF
getVrf()
The vrf for the Network.VRFOrBuilder
getVrfOrBuilder()
The vrf for the Network.boolean
hasVrf()
The vrf for the Network.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
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:
- The name.
-
getNameBytes
com.google.protobuf.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:
- The bytes for name.
-
getId
String getId()
An identifier for the `Network`, generated by the backend.
string id = 10;
- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
An identifier for the `Network`, generated by the backend.
string id = 10;
- Returns:
- The bytes for id.
-
getTypeValue
int getTypeValue()
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;
- Returns:
- The enum numeric value on the wire for type.
-
getType
Network.Type getType()
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;
- Returns:
- The type.
-
getIpAddress
String getIpAddress()
IP address configured.
string ip_address = 3;
- Returns:
- The ipAddress.
-
getIpAddressBytes
com.google.protobuf.ByteString getIpAddressBytes()
IP address configured.
string ip_address = 3;
- Returns:
- The bytes for ipAddress.
-
getMacAddressList
List<String> getMacAddressList()
List of physical interfaces.
repeated string mac_address = 4;
- Returns:
- A list containing the macAddress.
-
getMacAddressCount
int getMacAddressCount()
List of physical interfaces.
repeated string mac_address = 4;
- Returns:
- The count of macAddress.
-
getMacAddress
String getMacAddress(int index)
List of physical interfaces.
repeated string mac_address = 4;
- Parameters:
index
- The index of the element to return.- Returns:
- The macAddress at the given index.
-
getMacAddressBytes
com.google.protobuf.ByteString getMacAddressBytes(int index)
List of physical interfaces.
repeated string mac_address = 4;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the macAddress at the given index.
-
getStateValue
int getStateValue()
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;
- Returns:
- The enum numeric value on the wire for state.
-
getState
Network.State getState()
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;
- Returns:
- The state.
-
getVlanId
String getVlanId()
The vlan id of the Network.
string vlan_id = 7;
- Returns:
- The vlanId.
-
getVlanIdBytes
com.google.protobuf.ByteString getVlanIdBytes()
The vlan id of the Network.
string vlan_id = 7;
- Returns:
- The bytes for vlanId.
-
getCidr
String getCidr()
The cidr of the Network.
string cidr = 8;
- Returns:
- The cidr.
-
getCidrBytes
com.google.protobuf.ByteString getCidrBytes()
The cidr of the Network.
string cidr = 8;
- Returns:
- The bytes for cidr.
-
hasVrf
boolean hasVrf()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
- Returns:
- Whether the vrf field is set.
-
getVrf
VRF getVrf()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
- Returns:
- The vrf.
-
getVrfOrBuilder
VRFOrBuilder getVrfOrBuilder()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
-
getLabelsCount
int getLabelsCount()
Labels as key value pairs.
map<string, string> labels = 11;
-
containsLabels
boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 11;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 11;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 11;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 11;
-
getServicesCidr
String getServicesCidr()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
- Returns:
- The servicesCidr.
-
getServicesCidrBytes
com.google.protobuf.ByteString getServicesCidrBytes()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
- Returns:
- The bytes for servicesCidr.
-
getReservationsList
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;
-
getReservations
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;
-
getReservationsCount
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;
-
getReservationsOrBuilderList
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;
-
getReservationsOrBuilder
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;
-
getPod
String getPod()
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The pod.
-
getPodBytes
com.google.protobuf.ByteString getPodBytes()
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The bytes for pod.
-
getMountPointsList
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];
-
getMountPoints
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];
-
getMountPointsCount
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];
-
getMountPointsOrBuilderList
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];
-
getMountPointsOrBuilder
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];
-
getJumboFramesEnabled
boolean getJumboFramesEnabled()
Whether network uses standard frames or jumbo ones.
bool jumbo_frames_enabled = 16;
- Returns:
- The jumboFramesEnabled.
-
getGatewayIp
String getGatewayIp()
Output only. Gateway ip address.
string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The gatewayIp.
-
getGatewayIpBytes
com.google.protobuf.ByteString getGatewayIpBytes()
Output only. Gateway ip address.
string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The bytes for gatewayIp.
-
-