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 ID_FIELD_NUMBER
Field Value
public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
public static final int LABELS_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 RESERVATIONS_FIELD_NUMBER
Field Value
public static final int SERVICES_CIDR_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 containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 11;
Parameter
Returns
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
An identifier for the Network, generated by the backend.
string id = 10;
Returns
| Type |
Description |
String |
The id.
|
public ByteString getIdBytes()
An identifier for the Network, generated by the backend.
string id = 10;
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
| Type |
Description |
ByteString |
The bytes for ipAddress.
|
public Map<String,String> getLabels()
Returns
public int getLabelsCount()
Labels as key value pairs.
map<string, string> labels = 11;
Returns
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 11;
Returns
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 11;
Parameters
Returns
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 11;
Parameter
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}
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}
string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Parser<Network> getParserForType()
Returns
Overrides
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
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
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
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
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> |
|
public int getSerializedSize()
Returns
Overrides
public String getServicesCidr()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
Returns
| Type |
Description |
String |
The servicesCidr.
|
public ByteString getServicesCidrBytes()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
Returns
| Type |
Description |
ByteString |
The bytes for servicesCidr.
|
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
protected MapField internalGetMapField(int number)
Parameter
| Name |
Description |
number |
int
|
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