public final class Network extends GeneratedMessageV3 implements NetworkOrBuilder
A Network.
Protobuf type google.cloud.baremetalsolution.v2.Network
Static Fields
public static final int CIDR_FIELD_NUMBER
Field Value
public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
public static final int MAC_ADDRESS_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int NETWORK_FIELD_NUMBER
Field Value
public static final int STATE_FIELD_NUMBER
Field Value
public static final int TYPE_FIELD_NUMBER
Field Value
public static final int VLAN_ID_FIELD_NUMBER
Field Value
public static final int VRF_FIELD_NUMBER
Field Value
Static Methods
public static Network getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Network.Builder newBuilder()
Returns
public static Network.Builder newBuilder(Network prototype)
Parameter
Returns
public static Network parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Network parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Network parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Network parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Network parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Network parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Network parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Network parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Network parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Network parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Network parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Network parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Network> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
The cidr of the Network.
string cidr = 8;
Returns
Type | Description |
String | The cidr.
|
public ByteString getCidrBytes()
The cidr of the Network.
string cidr = 8;
Returns
public Network getDefaultInstanceForType()
Returns
public String getIpAddress()
IP address configured.
string ip_address = 3;
Returns
Type | Description |
String | The ipAddress.
|
public ByteString getIpAddressBytes()
IP address configured.
string ip_address = 3;
Returns
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.
|
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.
|
public int getMacAddressCount()
List of physical interfaces.
repeated string mac_address = 4;
Returns
Type | Description |
int | The count of macAddress.
|
public ProtocolStringList getMacAddressList()
List of physical interfaces.
repeated string mac_address = 4;
Returns
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
Type | Description |
String | The name.
|
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
public String getNetwork()
Name of the network.
string network = 1;
Returns
Type | Description |
String | The network.
|
public ByteString getNetworkBytes()
Name of the network.
string network = 1;
Returns
public Parser<Network> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public Network.State getState()
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;
Returns
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.
|
public Network.Type getType()
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;
Returns
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.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public String getVlanId()
The vlan id of the Network.
string vlan_id = 7;
Returns
Type | Description |
String | The vlanId.
|
public ByteString getVlanIdBytes()
The vlan id of the Network.
string vlan_id = 7;
Returns
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
Returns
Type | Description |
VRF | The vrf.
|
public VRFOrBuilder getVrfOrBuilder()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
Returns
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
Returns
Type | Description |
boolean | Whether the vrf field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Network.Builder newBuilderForType()
Returns
protected Network.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Network.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions