Class Network.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
- com.google.cloud.baremetalsolution.v2.Network.Builder
-
- All Implemented Interfaces:
NetworkOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Network
public static final class Network.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder> implements NetworkOrBuilder
A Network.
Protobuf typegoogle.cloud.baremetalsolution.v2.Network
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Network.Builder
addAllMacAddress(Iterable<String> values)
List of physical interfaces.Network.Builder
addAllMountPoints(Iterable<? extends NetworkMountPoint> values)
Input only.Network.Builder
addAllReservations(Iterable<? extends NetworkAddressReservation> values)
List of IP address reservations in this network.Network.Builder
addMacAddress(String value)
List of physical interfaces.Network.Builder
addMacAddressBytes(com.google.protobuf.ByteString value)
List of physical interfaces.Network.Builder
addMountPoints(int index, NetworkMountPoint value)
Input only.Network.Builder
addMountPoints(int index, NetworkMountPoint.Builder builderForValue)
Input only.Network.Builder
addMountPoints(NetworkMountPoint value)
Input only.Network.Builder
addMountPoints(NetworkMountPoint.Builder builderForValue)
Input only.NetworkMountPoint.Builder
addMountPointsBuilder()
Input only.NetworkMountPoint.Builder
addMountPointsBuilder(int index)
Input only.Network.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Network.Builder
addReservations(int index, NetworkAddressReservation value)
List of IP address reservations in this network.Network.Builder
addReservations(int index, NetworkAddressReservation.Builder builderForValue)
List of IP address reservations in this network.Network.Builder
addReservations(NetworkAddressReservation value)
List of IP address reservations in this network.Network.Builder
addReservations(NetworkAddressReservation.Builder builderForValue)
List of IP address reservations in this network.NetworkAddressReservation.Builder
addReservationsBuilder()
List of IP address reservations in this network.NetworkAddressReservation.Builder
addReservationsBuilder(int index)
List of IP address reservations in this network.Network
build()
Network
buildPartial()
Network.Builder
clear()
Network.Builder
clearCidr()
The cidr of the Network.Network.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Network.Builder
clearGatewayIp()
Output only.Network.Builder
clearId()
An identifier for the `Network`, generated by the backend.Network.Builder
clearIpAddress()
IP address configured.Network.Builder
clearJumboFramesEnabled()
Whether network uses standard frames or jumbo ones.Network.Builder
clearLabels()
Network.Builder
clearMacAddress()
List of physical interfaces.Network.Builder
clearMountPoints()
Input only.Network.Builder
clearName()
Output only.Network.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Network.Builder
clearPod()
Output only.Network.Builder
clearReservations()
List of IP address reservations in this network.Network.Builder
clearServicesCidr()
IP range for reserved for services (e.g.Network.Builder
clearState()
The Network state.Network.Builder
clearType()
The type of this network.Network.Builder
clearVlanId()
The vlan id of the Network.Network.Builder
clearVrf()
The vrf for the Network.Network.Builder
clone()
boolean
containsLabels(String key)
Labels as key value pairs.String
getCidr()
The cidr of the Network.com.google.protobuf.ByteString
getCidrBytes()
The cidr of the Network.Network
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getGatewayIp()
Output only.com.google.protobuf.ByteString
getGatewayIpBytes()
Output only.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.boolean
getJumboFramesEnabled()
Whether network uses standard frames or jumbo ones.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.NetworkMountPoint
getMountPoints(int index)
Input only.NetworkMountPoint.Builder
getMountPointsBuilder(int index)
Input only.List<NetworkMountPoint.Builder>
getMountPointsBuilderList()
Input only.int
getMountPointsCount()
Input only.List<NetworkMountPoint>
getMountPointsList()
Input only.NetworkMountPointOrBuilder
getMountPointsOrBuilder(int index)
Input only.List<? extends NetworkMountPointOrBuilder>
getMountPointsOrBuilderList()
Input only.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getPod()
Output only.com.google.protobuf.ByteString
getPodBytes()
Output only.NetworkAddressReservation
getReservations(int index)
List of IP address reservations in this network.NetworkAddressReservation.Builder
getReservationsBuilder(int index)
List of IP address reservations in this network.List<NetworkAddressReservation.Builder>
getReservationsBuilderList()
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.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.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.VRF.Builder
getVrfBuilder()
The vrf for the Network.VRFOrBuilder
getVrfOrBuilder()
The vrf for the Network.boolean
hasVrf()
The vrf for the Network.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Network.Builder
mergeFrom(Network other)
Network.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Network.Builder
mergeFrom(com.google.protobuf.Message other)
Network.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Network.Builder
mergeVrf(VRF value)
The vrf for the Network.Network.Builder
putAllLabels(Map<String,String> values)
Labels as key value pairs.Network.Builder
putLabels(String key, String value)
Labels as key value pairs.Network.Builder
removeLabels(String key)
Labels as key value pairs.Network.Builder
removeMountPoints(int index)
Input only.Network.Builder
removeReservations(int index)
List of IP address reservations in this network.Network.Builder
setCidr(String value)
The cidr of the Network.Network.Builder
setCidrBytes(com.google.protobuf.ByteString value)
The cidr of the Network.Network.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Network.Builder
setGatewayIp(String value)
Output only.Network.Builder
setGatewayIpBytes(com.google.protobuf.ByteString value)
Output only.Network.Builder
setId(String value)
An identifier for the `Network`, generated by the backend.Network.Builder
setIdBytes(com.google.protobuf.ByteString value)
An identifier for the `Network`, generated by the backend.Network.Builder
setIpAddress(String value)
IP address configured.Network.Builder
setIpAddressBytes(com.google.protobuf.ByteString value)
IP address configured.Network.Builder
setJumboFramesEnabled(boolean value)
Whether network uses standard frames or jumbo ones.Network.Builder
setMacAddress(int index, String value)
List of physical interfaces.Network.Builder
setMountPoints(int index, NetworkMountPoint value)
Input only.Network.Builder
setMountPoints(int index, NetworkMountPoint.Builder builderForValue)
Input only.Network.Builder
setName(String value)
Output only.Network.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Network.Builder
setPod(String value)
Output only.Network.Builder
setPodBytes(com.google.protobuf.ByteString value)
Output only.Network.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Network.Builder
setReservations(int index, NetworkAddressReservation value)
List of IP address reservations in this network.Network.Builder
setReservations(int index, NetworkAddressReservation.Builder builderForValue)
List of IP address reservations in this network.Network.Builder
setServicesCidr(String value)
IP range for reserved for services (e.g.Network.Builder
setServicesCidrBytes(com.google.protobuf.ByteString value)
IP range for reserved for services (e.g.Network.Builder
setState(Network.State value)
The Network state.Network.Builder
setStateValue(int value)
The Network state.Network.Builder
setType(Network.Type value)
The type of this network.Network.Builder
setTypeValue(int value)
The type of this network.Network.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Network.Builder
setVlanId(String value)
The vlan id of the Network.Network.Builder
setVlanIdBytes(com.google.protobuf.ByteString value)
The vlan id of the Network.Network.Builder
setVrf(VRF value)
The vrf for the Network.Network.Builder
setVrf(VRF.Builder builderForValue)
The vrf for the Network.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clear
public Network.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDefaultInstanceForType
public Network getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Network build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Network buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Network.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setField
public Network.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearField
public Network.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearOneof
public Network.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setRepeatedField
public Network.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
addRepeatedField
public Network.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(Network other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
- Throws:
IOException
-
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}`
string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceNetworkOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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];
- Specified by:
getNameBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for name.
-
setName
public Network.Builder setName(String value)
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];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Network.Builder clearName()
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:
- This builder for chaining.
-
setNameBytes
public Network.Builder setNameBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getId
public String getId()
An identifier for the `Network`, generated by the backend.
string id = 10;
- Specified by:
getId
in interfaceNetworkOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
An identifier for the `Network`, generated by the backend.
string id = 10;
- Specified by:
getIdBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for id.
-
setId
public Network.Builder setId(String value)
An identifier for the `Network`, generated by the backend.
string id = 10;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Network.Builder clearId()
An identifier for the `Network`, generated by the backend.
string id = 10;
- Returns:
- This builder for chaining.
-
setIdBytes
public Network.Builder setIdBytes(com.google.protobuf.ByteString value)
An identifier for the `Network`, generated by the backend.
string id = 10;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;
- Specified by:
getTypeValue
in interfaceNetworkOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Network.Builder setTypeValue(int value)
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public Network.Type getType()
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;
- Specified by:
getType
in interfaceNetworkOrBuilder
- Returns:
- The type.
-
setType
public Network.Builder setType(Network.Type value)
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Network.Builder clearType()
The type of this network.
.google.cloud.baremetalsolution.v2.Network.Type type = 2;
- Returns:
- This builder for chaining.
-
getIpAddress
public String getIpAddress()
IP address configured.
string ip_address = 3;
- Specified by:
getIpAddress
in interfaceNetworkOrBuilder
- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.ByteString getIpAddressBytes()
IP address configured.
string ip_address = 3;
- Specified by:
getIpAddressBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for ipAddress.
-
setIpAddress
public Network.Builder setIpAddress(String value)
IP address configured.
string ip_address = 3;
- Parameters:
value
- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
public Network.Builder clearIpAddress()
IP address configured.
string ip_address = 3;
- Returns:
- This builder for chaining.
-
setIpAddressBytes
public Network.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
IP address configured.
string ip_address = 3;
- Parameters:
value
- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
getMacAddressList
public com.google.protobuf.ProtocolStringList getMacAddressList()
List of physical interfaces.
repeated string mac_address = 4;
- Specified by:
getMacAddressList
in interfaceNetworkOrBuilder
- Returns:
- A list containing the macAddress.
-
getMacAddressCount
public int getMacAddressCount()
List of physical interfaces.
repeated string mac_address = 4;
- Specified by:
getMacAddressCount
in interfaceNetworkOrBuilder
- Returns:
- The count of macAddress.
-
getMacAddress
public String getMacAddress(int index)
List of physical interfaces.
repeated string mac_address = 4;
- Specified by:
getMacAddress
in interfaceNetworkOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The macAddress at the given index.
-
getMacAddressBytes
public com.google.protobuf.ByteString getMacAddressBytes(int index)
List of physical interfaces.
repeated string mac_address = 4;
- Specified by:
getMacAddressBytes
in interfaceNetworkOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the macAddress at the given index.
-
setMacAddress
public Network.Builder setMacAddress(int index, String value)
List of physical interfaces.
repeated string mac_address = 4;
- Parameters:
index
- The index to set the value at.value
- The macAddress to set.- Returns:
- This builder for chaining.
-
addMacAddress
public Network.Builder addMacAddress(String value)
List of physical interfaces.
repeated string mac_address = 4;
- Parameters:
value
- The macAddress to add.- Returns:
- This builder for chaining.
-
addAllMacAddress
public Network.Builder addAllMacAddress(Iterable<String> values)
List of physical interfaces.
repeated string mac_address = 4;
- Parameters:
values
- The macAddress to add.- Returns:
- This builder for chaining.
-
clearMacAddress
public Network.Builder clearMacAddress()
List of physical interfaces.
repeated string mac_address = 4;
- Returns:
- This builder for chaining.
-
addMacAddressBytes
public Network.Builder addMacAddressBytes(com.google.protobuf.ByteString value)
List of physical interfaces.
repeated string mac_address = 4;
- Parameters:
value
- The bytes of the macAddress to add.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;
- Specified by:
getStateValue
in interfaceNetworkOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Network.Builder setStateValue(int value)
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public Network.State getState()
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;
- Specified by:
getState
in interfaceNetworkOrBuilder
- Returns:
- The state.
-
setState
public Network.Builder setState(Network.State value)
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Network.Builder clearState()
The Network state.
.google.cloud.baremetalsolution.v2.Network.State state = 6;
- Returns:
- This builder for chaining.
-
getVlanId
public String getVlanId()
The vlan id of the Network.
string vlan_id = 7;
- Specified by:
getVlanId
in interfaceNetworkOrBuilder
- Returns:
- The vlanId.
-
getVlanIdBytes
public com.google.protobuf.ByteString getVlanIdBytes()
The vlan id of the Network.
string vlan_id = 7;
- Specified by:
getVlanIdBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for vlanId.
-
setVlanId
public Network.Builder setVlanId(String value)
The vlan id of the Network.
string vlan_id = 7;
- Parameters:
value
- The vlanId to set.- Returns:
- This builder for chaining.
-
clearVlanId
public Network.Builder clearVlanId()
The vlan id of the Network.
string vlan_id = 7;
- Returns:
- This builder for chaining.
-
setVlanIdBytes
public Network.Builder setVlanIdBytes(com.google.protobuf.ByteString value)
The vlan id of the Network.
string vlan_id = 7;
- Parameters:
value
- The bytes for vlanId to set.- Returns:
- This builder for chaining.
-
getCidr
public String getCidr()
The cidr of the Network.
string cidr = 8;
- Specified by:
getCidr
in interfaceNetworkOrBuilder
- Returns:
- The cidr.
-
getCidrBytes
public com.google.protobuf.ByteString getCidrBytes()
The cidr of the Network.
string cidr = 8;
- Specified by:
getCidrBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for cidr.
-
setCidr
public Network.Builder setCidr(String value)
The cidr of the Network.
string cidr = 8;
- Parameters:
value
- The cidr to set.- Returns:
- This builder for chaining.
-
clearCidr
public Network.Builder clearCidr()
The cidr of the Network.
string cidr = 8;
- Returns:
- This builder for chaining.
-
setCidrBytes
public Network.Builder setCidrBytes(com.google.protobuf.ByteString value)
The cidr of the Network.
string cidr = 8;
- Parameters:
value
- The bytes for cidr to set.- Returns:
- This builder for chaining.
-
hasVrf
public boolean hasVrf()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
- Specified by:
hasVrf
in interfaceNetworkOrBuilder
- Returns:
- Whether the vrf field is set.
-
getVrf
public VRF getVrf()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
- Specified by:
getVrf
in interfaceNetworkOrBuilder
- Returns:
- The vrf.
-
setVrf
public Network.Builder setVrf(VRF value)
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
-
setVrf
public Network.Builder setVrf(VRF.Builder builderForValue)
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
-
mergeVrf
public Network.Builder mergeVrf(VRF value)
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
-
clearVrf
public Network.Builder clearVrf()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
-
getVrfBuilder
public VRF.Builder getVrfBuilder()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
-
getVrfOrBuilder
public VRFOrBuilder getVrfOrBuilder()
The vrf for the Network.
.google.cloud.baremetalsolution.v2.VRF vrf = 9;
- Specified by:
getVrfOrBuilder
in interfaceNetworkOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:NetworkOrBuilder
Labels as key value pairs.
map<string, string> labels = 11;
- Specified by:
getLabelsCount
in interfaceNetworkOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 11;
- Specified by:
containsLabels
in interfaceNetworkOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceNetworkOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 11;
- Specified by:
getLabelsMap
in interfaceNetworkOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 11;
- Specified by:
getLabelsOrDefault
in interfaceNetworkOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 11;
- Specified by:
getLabelsOrThrow
in interfaceNetworkOrBuilder
-
clearLabels
public Network.Builder clearLabels()
-
removeLabels
public Network.Builder removeLabels(String key)
Labels as key value pairs.
map<string, string> labels = 11;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Network.Builder putLabels(String key, String value)
Labels as key value pairs.
map<string, string> labels = 11;
-
putAllLabels
public Network.Builder putAllLabels(Map<String,String> values)
Labels as key value pairs.
map<string, string> labels = 11;
-
getServicesCidr
public String getServicesCidr()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
- Specified by:
getServicesCidr
in interfaceNetworkOrBuilder
- Returns:
- The servicesCidr.
-
getServicesCidrBytes
public com.google.protobuf.ByteString getServicesCidrBytes()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
- Specified by:
getServicesCidrBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for servicesCidr.
-
setServicesCidr
public Network.Builder setServicesCidr(String value)
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
- Parameters:
value
- The servicesCidr to set.- Returns:
- This builder for chaining.
-
clearServicesCidr
public Network.Builder clearServicesCidr()
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
- Returns:
- This builder for chaining.
-
setServicesCidrBytes
public Network.Builder setServicesCidrBytes(com.google.protobuf.ByteString value)
IP range for reserved for services (e.g. NFS).
string services_cidr = 12;
- Parameters:
value
- The bytes for servicesCidr to set.- Returns:
- This builder for chaining.
-
getReservationsList
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;
- Specified by:
getReservationsList
in interfaceNetworkOrBuilder
-
getReservationsCount
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;
- Specified by:
getReservationsCount
in interfaceNetworkOrBuilder
-
getReservations
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;
- Specified by:
getReservations
in interfaceNetworkOrBuilder
-
setReservations
public Network.Builder setReservations(int index, NetworkAddressReservation value)
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;
-
setReservations
public Network.Builder setReservations(int index, NetworkAddressReservation.Builder builderForValue)
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;
-
addReservations
public Network.Builder addReservations(NetworkAddressReservation value)
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;
-
addReservations
public Network.Builder addReservations(int index, NetworkAddressReservation value)
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;
-
addReservations
public Network.Builder addReservations(NetworkAddressReservation.Builder builderForValue)
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;
-
addReservations
public Network.Builder addReservations(int index, NetworkAddressReservation.Builder builderForValue)
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;
-
addAllReservations
public Network.Builder addAllReservations(Iterable<? extends NetworkAddressReservation> values)
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;
-
clearReservations
public Network.Builder clearReservations()
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;
-
removeReservations
public Network.Builder removeReservations(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;
-
getReservationsBuilder
public NetworkAddressReservation.Builder getReservationsBuilder(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
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;
- Specified by:
getReservationsOrBuilder
in interfaceNetworkOrBuilder
-
getReservationsOrBuilderList
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;
- Specified by:
getReservationsOrBuilderList
in interfaceNetworkOrBuilder
-
addReservationsBuilder
public NetworkAddressReservation.Builder addReservationsBuilder()
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;
-
addReservationsBuilder
public NetworkAddressReservation.Builder addReservationsBuilder(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;
-
getReservationsBuilderList
public List<NetworkAddressReservation.Builder> getReservationsBuilderList()
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;
-
getPod
public String getPod()
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPod
in interfaceNetworkOrBuilder
- Returns:
- The pod.
-
getPodBytes
public com.google.protobuf.ByteString getPodBytes()
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPodBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for pod.
-
setPod
public Network.Builder setPod(String value)
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The pod to set.- Returns:
- This builder for chaining.
-
clearPod
public Network.Builder clearPod()
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setPodBytes
public Network.Builder setPodBytes(com.google.protobuf.ByteString value)
Output only. Pod name.
string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for pod to set.- Returns:
- This builder for chaining.
-
getMountPointsList
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];
- Specified by:
getMountPointsList
in interfaceNetworkOrBuilder
-
getMountPointsCount
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];
- Specified by:
getMountPointsCount
in interfaceNetworkOrBuilder
-
getMountPoints
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];
- Specified by:
getMountPoints
in interfaceNetworkOrBuilder
-
setMountPoints
public Network.Builder setMountPoints(int index, NetworkMountPoint value)
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];
-
setMountPoints
public Network.Builder setMountPoints(int index, NetworkMountPoint.Builder builderForValue)
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];
-
addMountPoints
public Network.Builder addMountPoints(NetworkMountPoint value)
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];
-
addMountPoints
public Network.Builder addMountPoints(int index, NetworkMountPoint value)
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];
-
addMountPoints
public Network.Builder addMountPoints(NetworkMountPoint.Builder builderForValue)
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];
-
addMountPoints
public Network.Builder addMountPoints(int index, NetworkMountPoint.Builder builderForValue)
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];
-
addAllMountPoints
public Network.Builder addAllMountPoints(Iterable<? extends NetworkMountPoint> values)
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];
-
clearMountPoints
public Network.Builder clearMountPoints()
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];
-
removeMountPoints
public Network.Builder removeMountPoints(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];
-
getMountPointsBuilder
public NetworkMountPoint.Builder getMountPointsBuilder(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];
-
getMountPointsOrBuilder
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];
- Specified by:
getMountPointsOrBuilder
in interfaceNetworkOrBuilder
-
getMountPointsOrBuilderList
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];
- Specified by:
getMountPointsOrBuilderList
in interfaceNetworkOrBuilder
-
addMountPointsBuilder
public NetworkMountPoint.Builder addMountPointsBuilder()
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];
-
addMountPointsBuilder
public NetworkMountPoint.Builder addMountPointsBuilder(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];
-
getMountPointsBuilderList
public List<NetworkMountPoint.Builder> getMountPointsBuilderList()
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];
-
getJumboFramesEnabled
public boolean getJumboFramesEnabled()
Whether network uses standard frames or jumbo ones.
bool jumbo_frames_enabled = 16;
- Specified by:
getJumboFramesEnabled
in interfaceNetworkOrBuilder
- Returns:
- The jumboFramesEnabled.
-
setJumboFramesEnabled
public Network.Builder setJumboFramesEnabled(boolean value)
Whether network uses standard frames or jumbo ones.
bool jumbo_frames_enabled = 16;
- Parameters:
value
- The jumboFramesEnabled to set.- Returns:
- This builder for chaining.
-
clearJumboFramesEnabled
public Network.Builder clearJumboFramesEnabled()
Whether network uses standard frames or jumbo ones.
bool jumbo_frames_enabled = 16;
- Returns:
- This builder for chaining.
-
getGatewayIp
public String getGatewayIp()
Output only. Gateway ip address.
string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGatewayIp
in interfaceNetworkOrBuilder
- Returns:
- The gatewayIp.
-
getGatewayIpBytes
public com.google.protobuf.ByteString getGatewayIpBytes()
Output only. Gateway ip address.
string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGatewayIpBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for gatewayIp.
-
setGatewayIp
public Network.Builder setGatewayIp(String value)
Output only. Gateway ip address.
string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The gatewayIp to set.- Returns:
- This builder for chaining.
-
clearGatewayIp
public Network.Builder clearGatewayIp()
Output only. Gateway ip address.
string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setGatewayIpBytes
public Network.Builder setGatewayIpBytes(com.google.protobuf.ByteString value)
Output only. Gateway ip address.
string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for gatewayIp to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Network.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeUnknownFields
public final Network.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
-