public final class Network extends com.google.protobuf.GeneratedMessageV3 implements NetworkOrBuilder
A Network.Protobuf type
google.cloud.baremetalsolution.v2.Network| Modifier and Type | Class and Description |
|---|---|
static class |
Network.Builder
A Network.
|
static class |
Network.State
The possible states for this Network.
|
static class |
Network.Type
Network type.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CIDR_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
IP_ADDRESS_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
MAC_ADDRESS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RESERVATIONS_FIELD_NUMBER |
static int |
SERVICES_CIDR_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
VLAN_ID_FIELD_NUMBER |
static int |
VRF_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Labels as key value pairs.
|
boolean |
equals(Object obj) |
String |
getCidr()
The cidr of the Network.
|
com.google.protobuf.ByteString |
getCidrBytes()
The cidr of the Network.
|
static Network |
getDefaultInstance() |
Network |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
An identifier for the `Network`, generated by the backend.
|
com.google.protobuf.ByteString |
getIdBytes()
An identifier for the `Network`, generated by the backend.
|
String |
getIpAddress()
IP address configured.
|
com.google.protobuf.ByteString |
getIpAddressBytes()
IP address configured.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels as key value pairs.
|
Map<String,String> |
getLabelsMap()
Labels as key value pairs.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels as key value pairs.
|
String |
getLabelsOrThrow(String key)
Labels as key value pairs.
|
String |
getMacAddress(int index)
List of physical interfaces.
|
com.google.protobuf.ByteString |
getMacAddressBytes(int index)
List of physical interfaces.
|
int |
getMacAddressCount()
List of physical interfaces.
|
com.google.protobuf.ProtocolStringList |
getMacAddressList()
List of physical interfaces.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<Network> |
getParserForType() |
NetworkAddressReservation |
getReservations(int index)
List of IP address reservations in this network.
|
int |
getReservationsCount()
List of IP address reservations in this network.
|
List<NetworkAddressReservation> |
getReservationsList()
List of IP address reservations in this network.
|
NetworkAddressReservationOrBuilder |
getReservationsOrBuilder(int index)
List of IP address reservations in this network.
|
List<? extends NetworkAddressReservationOrBuilder> |
getReservationsOrBuilderList()
List of IP address reservations in this network.
|
int |
getSerializedSize() |
String |
getServicesCidr()
IP range for reserved for services (e.g.
|
com.google.protobuf.ByteString |
getServicesCidrBytes()
IP range for reserved for services (e.g.
|
Network.State |
getState()
The Network state.
|
int |
getStateValue()
The Network state.
|
Network.Type |
getType()
The type of this network.
|
int |
getTypeValue()
The type of this network.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getVlanId()
The vlan id of the Network.
|
com.google.protobuf.ByteString |
getVlanIdBytes()
The vlan id of the Network.
|
VRF |
getVrf()
The vrf for the Network.
|
VRFOrBuilder |
getVrfOrBuilder()
The vrf for the Network.
|
int |
hashCode() |
boolean |
hasVrf()
The vrf for the Network.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Network.Builder |
newBuilder() |
static Network.Builder |
newBuilder(Network prototype) |
Network.Builder |
newBuilderForType() |
protected Network.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Network |
parseDelimitedFrom(InputStream input) |
static Network |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Network |
parseFrom(byte[] data) |
static Network |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Network |
parseFrom(ByteBuffer data) |
static Network |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Network |
parseFrom(com.google.protobuf.ByteString data) |
static Network |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Network |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Network |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Network |
parseFrom(InputStream input) |
static Network |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Network> |
parser() |
Network.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int IP_ADDRESS_FIELD_NUMBER
public static final int MAC_ADDRESS_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int VLAN_ID_FIELD_NUMBER
public static final int CIDR_FIELD_NUMBER
public static final int VRF_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int SERVICES_CIDR_FIELD_NUMBER
public static final int RESERVATIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];getName in interface NetworkOrBuilderpublic com.google.protobuf.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];getNameBytes in interface NetworkOrBuilderpublic String getId()
An identifier for the `Network`, generated by the backend.
string id = 10;getId in interface NetworkOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
An identifier for the `Network`, generated by the backend.
string id = 10;getIdBytes in interface NetworkOrBuilderpublic int getTypeValue()
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;getTypeValue in interface NetworkOrBuilderpublic Network.Type getType()
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;getType in interface NetworkOrBuilderpublic String getIpAddress()
IP address configured.
string ip_address = 3;getIpAddress in interface NetworkOrBuilderpublic com.google.protobuf.ByteString getIpAddressBytes()
IP address configured.
string ip_address = 3;getIpAddressBytes in interface NetworkOrBuilderpublic com.google.protobuf.ProtocolStringList getMacAddressList()
List of physical interfaces.
repeated string mac_address = 4;getMacAddressList in interface NetworkOrBuilderpublic int getMacAddressCount()
List of physical interfaces.
repeated string mac_address = 4;getMacAddressCount in interface NetworkOrBuilderpublic String getMacAddress(int index)
List of physical interfaces.
repeated string mac_address = 4;getMacAddress in interface NetworkOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getMacAddressBytes(int index)
List of physical interfaces.
repeated string mac_address = 4;getMacAddressBytes in interface NetworkOrBuilderindex - The index of the value to return.public int getStateValue()
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;getStateValue in interface NetworkOrBuilderpublic Network.State getState()
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;getState in interface NetworkOrBuilderpublic String getVlanId()
The vlan id of the Network.
string vlan_id = 7;getVlanId in interface NetworkOrBuilderpublic com.google.protobuf.ByteString getVlanIdBytes()
The vlan id of the Network.
string vlan_id = 7;getVlanIdBytes in interface NetworkOrBuilderpublic String getCidr()
The cidr of the Network.
string cidr = 8;getCidr in interface NetworkOrBuilderpublic com.google.protobuf.ByteString getCidrBytes()
The cidr of the Network.
string cidr = 8;getCidrBytes in interface NetworkOrBuilderpublic boolean hasVrf()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;hasVrf in interface NetworkOrBuilderpublic VRF getVrf()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;getVrf in interface NetworkOrBuilderpublic VRFOrBuilder getVrfOrBuilder()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;getVrfOrBuilder in interface NetworkOrBuilderpublic int getLabelsCount()
NetworkOrBuilderLabels as key value pairs.
map<string, string> labels = 11;getLabelsCount in interface NetworkOrBuilderpublic boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 11;containsLabels in interface NetworkOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface NetworkOrBuilderpublic Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 11;getLabelsMap in interface NetworkOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 11;getLabelsOrDefault in interface NetworkOrBuilderpublic String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 11;getLabelsOrThrow in interface NetworkOrBuilderpublic String getServicesCidr()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;getServicesCidr in interface NetworkOrBuilderpublic com.google.protobuf.ByteString getServicesCidrBytes()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;getServicesCidrBytes in interface NetworkOrBuilderpublic 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;
getReservationsList in interface NetworkOrBuilderpublic 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;
getReservationsOrBuilderList in interface NetworkOrBuilderpublic 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;
getReservationsCount in interface NetworkOrBuilderpublic 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;
getReservations in interface NetworkOrBuilderpublic 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;
getReservationsOrBuilder in interface NetworkOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Network parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Network parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Network parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Network parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Network parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Network parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Network parseFrom(InputStream input) throws IOException
IOExceptionpublic static Network parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Network parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Network parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Network parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Network parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Network.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Network.Builder newBuilder()
public static Network.Builder newBuilder(Network prototype)
public Network.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Network.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Network getDefaultInstance()
public static com.google.protobuf.Parser<Network> parser()
public com.google.protobuf.Parser<Network> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Network getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.