Class Network (0.2.1)

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

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

MAC_ADDRESS_FIELD_NUMBER

public static final int MAC_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

VLAN_ID_FIELD_NUMBER

public static final int VLAN_ID_FIELD_NUMBER
Field Value
TypeDescription
int

VRF_FIELD_NUMBER

public static final int VRF_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Network getDefaultInstance()
Returns
TypeDescription
Network

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Network.Builder newBuilder()
Returns
TypeDescription
Network.Builder

newBuilder(Network prototype)

public static Network.Builder newBuilder(Network prototype)
Parameter
NameDescription
prototypeNetwork
Returns
TypeDescription
Network.Builder

parseDelimitedFrom(InputStream input)

public static Network parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Network parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Network parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Network parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Network parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Network parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Network> parser()
Returns
TypeDescription
Parser<Network>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCidr()

public String getCidr()

The cidr of the Network.

string cidr = 8;

Returns
TypeDescription
String

The cidr.

getCidrBytes()

public ByteString getCidrBytes()

The cidr of the Network.

string cidr = 8;

Returns
TypeDescription
ByteString

The bytes for cidr.

getDefaultInstanceForType()

public Network getDefaultInstanceForType()
Returns
TypeDescription
Network

getIpAddress()

public String getIpAddress()

IP address configured.

string ip_address = 3;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address configured.

string ip_address = 3;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getMacAddress(int index)

public 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 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 int getMacAddressCount()

List of physical interfaces.

repeated string mac_address = 4;

Returns
TypeDescription
int

The count of macAddress.

getMacAddressList()

public ProtocolStringList getMacAddressList()

List of physical interfaces.

repeated string mac_address = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the macAddress.

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} This field will contain the same value as field "network", which will soon be deprecated. Please use this field to reference the name of the network resource.

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

Returns
TypeDescription
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} This field will contain the same value as field "network", which will soon be deprecated. Please use this field to reference the name of the network resource.

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

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Name of the network.

string network = 1;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Name of the network.

string network = 1;

Returns
TypeDescription
ByteString

The bytes for network.

getParserForType()

public Parser<Network> getParserForType()
Returns
TypeDescription
Parser<Network>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public Network.State getState()

The Network state.

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

Returns
TypeDescription
Network.State

The state.

getStateValue()

public 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 Network.Type getType()

The type of this network.

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

Returns
TypeDescription
Network.Type

The type.

getTypeValue()

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVlanId()

public String getVlanId()

The vlan id of the Network.

string vlan_id = 7;

Returns
TypeDescription
String

The vlanId.

getVlanIdBytes()

public ByteString getVlanIdBytes()

The vlan id of the Network.

string vlan_id = 7;

Returns
TypeDescription
ByteString

The bytes for vlanId.

getVrf()

public VRF getVrf()

The vrf for the Network.

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

Returns
TypeDescription
VRF

The vrf.

getVrfOrBuilder()

public VRFOrBuilder getVrfOrBuilder()

The vrf for the Network.

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

Returns
TypeDescription
VRFOrBuilder

hasVrf()

public boolean hasVrf()

The vrf for the Network.

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

Returns
TypeDescription
boolean

Whether the vrf field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Network.Builder newBuilderForType()
Returns
TypeDescription
Network.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Network.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Network.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Network.Builder toBuilder()
Returns
TypeDescription
Network.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException