public final class Network extends GeneratedMessageV3 implements NetworkOrBuilder
A Network.
Protobuf type google.cloud.baremetalsolution.v2.Network
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int CIDR_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int GATEWAY_IP_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int IP_ADDRESS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int JUMBO_FRAMES_ENABLED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MAC_ADDRESS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MOUNT_POINTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int POD_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int RESERVATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SERVICES_CIDR_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int STATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int VLAN_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int VRF_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static Network getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Network.Builder newBuilder()
public static Network.Builder newBuilder(Network prototype)
Parameter |
---|
Name | Description |
prototype | Network
|
public static Network parseDelimitedFrom(InputStream input)
public static Network parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Network parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static Network parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Network parseFrom(ByteString data)
public static Network parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Network parseFrom(CodedInputStream input)
public static Network parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Network parseFrom(InputStream input)
public static Network parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Network parseFrom(ByteBuffer data)
public static Network parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Network> parser()
Methods
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 11;
Parameter |
---|
Name | Description |
key | String
|
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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 |
---|
Type | Description |
ByteString | The bytes for cidr.
|
public Network getDefaultInstanceForType()
public String getGatewayIp()
Output only. Gateway ip address.
string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
String | The gatewayIp.
|
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.
|
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;
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 boolean getJumboFramesEnabled()
Whether network uses standard frames or jumbo ones.
bool jumbo_frames_enabled = 16;
Returns |
---|
Type | Description |
boolean | The jumboFramesEnabled.
|
public Map<String,String> getLabels()
public int getLabelsCount()
Labels as key value pairs.
map<string, string> labels = 11;
Returns |
---|
Type | Description |
int | |
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 11;
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 11;
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 11;
Parameter |
---|
Name | Description |
key | String
|
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;
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
|
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 | |
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];
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
|
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> | |
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
public Parser<Network> getParserForType()
Overrides
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
String | The pod.
|
public ByteString getPodBytes()
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
ByteString | The bytes for pod.
|
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
|
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 | |
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;
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
|
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 |
---|
Type | Description |
int | |
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;
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;
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 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 |
---|
Type | Description |
ByteString | The bytes for vlanId.
|
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;
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
Returns |
---|
Type | Description |
boolean | Whether the vrf field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public Network.Builder newBuilderForType()
protected Network.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public Network.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides