Class Network (0.49.0)

public final class Network extends GeneratedMessageV3 implements NetworkOrBuilder

A Network.

Protobuf type google.cloud.baremetalsolution.v2.Network

Implements

NetworkOrBuilder

Static Fields

CIDR_FIELD_NUMBER

public static final int CIDR_FIELD_NUMBER
Field Value
Type Description
int

GATEWAY_IP_FIELD_NUMBER

public static final int GATEWAY_IP_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

JUMBO_FRAMES_ENABLED_FIELD_NUMBER

public static final int JUMBO_FRAMES_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

MAC_ADDRESS_FIELD_NUMBER

public static final int MAC_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

MOUNT_POINTS_FIELD_NUMBER

public static final int MOUNT_POINTS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

POD_FIELD_NUMBER

public static final int POD_FIELD_NUMBER
Field Value
Type Description
int

RESERVATIONS_FIELD_NUMBER

public static final int RESERVATIONS_FIELD_NUMBER
Field Value
Type Description
int

SERVICES_CIDR_FIELD_NUMBER

public static final int SERVICES_CIDR_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

VLAN_ID_FIELD_NUMBER

public static final int VLAN_ID_FIELD_NUMBER
Field Value
Type Description
int

VRF_FIELD_NUMBER

public static final int VRF_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Network getDefaultInstance()
Returns
Type Description
Network

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Network.Builder newBuilder()
Returns
Type Description
Network.Builder

newBuilder(Network prototype)

public static Network.Builder newBuilder(Network prototype)
Parameter
Name Description
prototype Network
Returns
Type Description
Network.Builder

parseDelimitedFrom(InputStream input)

public static Network parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Network parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Network parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Network parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Network parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Network parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Network> parser()
Returns
Type Description
Parser<Network>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCidr()

public String getCidr()

The cidr of the Network.

string cidr = 8;

Returns
Type Description
String

The cidr.

getCidrBytes()

public ByteString getCidrBytes()

The cidr of the Network.

string cidr = 8;

Returns
Type Description
ByteString

The bytes for cidr.

getDefaultInstanceForType()

public Network getDefaultInstanceForType()
Returns
Type Description
Network

getGatewayIp()

public String getGatewayIp()

Output only. Gateway ip address.

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

Returns
Type Description
String

The gatewayIp.

getGatewayIpBytes()

public ByteString getGatewayIpBytes()

Output only. Gateway ip address.

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

Returns
Type Description
ByteString

The bytes for gatewayIp.

getId()

public String getId()

An identifier for the Network, generated by the backend.

string id = 10;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

An identifier for the Network, generated by the backend.

string id = 10;

Returns
Type Description
ByteString

The bytes for id.

getIpAddress()

public String getIpAddress()

IP address configured.

string ip_address = 3;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address configured.

string ip_address = 3;

Returns
Type Description
ByteString

The bytes for ipAddress.

getJumboFramesEnabled()

public boolean getJumboFramesEnabled()

Whether network uses standard frames or jumbo ones.

bool jumbo_frames_enabled = 16;

Returns
Type Description
boolean

The jumboFramesEnabled.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 11;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
Name Description
key String
Returns
Type Description
String

getMacAddress(int index)

public String getMacAddress(int index)

List of physical interfaces.

repeated string mac_address = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The macAddress at the given index.

getMacAddressBytes(int index)

public ByteString getMacAddressBytes(int index)

List of physical interfaces.

repeated string mac_address = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the macAddress at the given index.

getMacAddressCount()

public int getMacAddressCount()

List of physical interfaces.

repeated string mac_address = 4;

Returns
Type Description
int

The count of macAddress.

getMacAddressList()

public ProtocolStringList getMacAddressList()

List of physical interfaces.

repeated string mac_address = 4;

Returns
Type Description
ProtocolStringList

A list containing the macAddress.

getMountPoints(int index)

public 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 int
Returns
Type Description
NetworkMountPoint

getMountPointsCount()

public 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
int

getMountPointsList()

public 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
List<NetworkMountPoint>

getMountPointsOrBuilder(int index)

public 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 int
Returns
Type Description
NetworkMountPointOrBuilder

getMountPointsOrBuilderList()

public 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
List<? extends com.google.cloud.baremetalsolution.v2.NetworkMountPointOrBuilder>

getName()

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

The name.

getNameBytes()

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

The bytes for name.

getParserForType()

public Parser<Network> getParserForType()
Returns
Type Description
Parser<Network>
Overrides

getPod()

public String getPod()

Output only. Pod name.

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

Returns
Type Description
String

The pod.

getPodBytes()

public ByteString getPodBytes()

Output only. Pod name.

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

Returns
Type Description
ByteString

The bytes for pod.

getReservations(int index)

public 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 int
Returns
Type Description
NetworkAddressReservation

getReservationsCount()

public 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
int

getReservationsList()

public 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
List<NetworkAddressReservation>

getReservationsOrBuilder(int index)

public 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 int
Returns
Type Description
NetworkAddressReservationOrBuilder

getReservationsOrBuilderList()

public 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
List<? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServicesCidr()

public String getServicesCidr()

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

string services_cidr = 12;

Returns
Type Description
String

The servicesCidr.

getServicesCidrBytes()

public ByteString getServicesCidrBytes()

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

string services_cidr = 12;

Returns
Type Description
ByteString

The bytes for servicesCidr.

getState()

public Network.State getState()

The Network state.

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

Returns
Type Description
Network.State

The state.

getStateValue()

public int getStateValue()

The Network state.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getType()

public Network.Type getType()

The type of this network.

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

Returns
Type Description
Network.Type

The type.

getTypeValue()

public int getTypeValue()

The type of this network.

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

Returns
Type Description
int

The enum numeric value on the wire for type.

getVlanId()

public String getVlanId()

The vlan id of the Network.

string vlan_id = 7;

Returns
Type Description
String

The vlanId.

getVlanIdBytes()

public ByteString getVlanIdBytes()

The vlan id of the Network.

string vlan_id = 7;

Returns
Type Description
ByteString

The bytes for vlanId.

getVrf()

public VRF getVrf()

The vrf for the Network.

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

Returns
Type Description
VRF

The vrf.

getVrfOrBuilder()

public VRFOrBuilder getVrfOrBuilder()

The vrf for the Network.

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

Returns
Type Description
VRFOrBuilder

hasVrf()

public boolean hasVrf()

The vrf for the Network.

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

Returns
Type Description
boolean

Whether the vrf field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Network.Builder newBuilderForType()
Returns
Type Description
Network.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Network.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Network.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Network.Builder toBuilder()
Returns
Type Description
Network.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException