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.BuilderaddAllMacAddress(Iterable<String> values)List of physical interfaces.Network.BuilderaddAllMountPoints(Iterable<? extends NetworkMountPoint> values)Input only.Network.BuilderaddAllReservations(Iterable<? extends NetworkAddressReservation> values)List of IP address reservations in this network.Network.BuilderaddMacAddress(String value)List of physical interfaces.Network.BuilderaddMacAddressBytes(com.google.protobuf.ByteString value)List of physical interfaces.Network.BuilderaddMountPoints(int index, NetworkMountPoint value)Input only.Network.BuilderaddMountPoints(int index, NetworkMountPoint.Builder builderForValue)Input only.Network.BuilderaddMountPoints(NetworkMountPoint value)Input only.Network.BuilderaddMountPoints(NetworkMountPoint.Builder builderForValue)Input only.NetworkMountPoint.BuilderaddMountPointsBuilder()Input only.NetworkMountPoint.BuilderaddMountPointsBuilder(int index)Input only.Network.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Network.BuilderaddReservations(int index, NetworkAddressReservation value)List of IP address reservations in this network.Network.BuilderaddReservations(int index, NetworkAddressReservation.Builder builderForValue)List of IP address reservations in this network.Network.BuilderaddReservations(NetworkAddressReservation value)List of IP address reservations in this network.Network.BuilderaddReservations(NetworkAddressReservation.Builder builderForValue)List of IP address reservations in this network.NetworkAddressReservation.BuilderaddReservationsBuilder()List of IP address reservations in this network.NetworkAddressReservation.BuilderaddReservationsBuilder(int index)List of IP address reservations in this network.Networkbuild()NetworkbuildPartial()Network.Builderclear()Network.BuilderclearCidr()The cidr of the Network.Network.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Network.BuilderclearGatewayIp()Output only.Network.BuilderclearId()An identifier for the `Network`, generated by the backend.Network.BuilderclearIpAddress()IP address configured.Network.BuilderclearJumboFramesEnabled()Whether network uses standard frames or jumbo ones.Network.BuilderclearLabels()Network.BuilderclearMacAddress()List of physical interfaces.Network.BuilderclearMountPoints()Input only.Network.BuilderclearName()Output only.Network.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Network.BuilderclearPod()Output only.Network.BuilderclearReservations()List of IP address reservations in this network.Network.BuilderclearServicesCidr()IP range for reserved for services (e.g.Network.BuilderclearState()The Network state.Network.BuilderclearType()The type of this network.Network.BuilderclearVlanId()The vlan id of the Network.Network.BuilderclearVrf()The vrf for the Network.Network.Builderclone()booleancontainsLabels(String key)Labels as key value pairs.StringgetCidr()The cidr of the Network.com.google.protobuf.ByteStringgetCidrBytes()The cidr of the Network.NetworkgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetGatewayIp()Output only.com.google.protobuf.ByteStringgetGatewayIpBytes()Output only.StringgetId()An identifier for the `Network`, generated by the backend.com.google.protobuf.ByteStringgetIdBytes()An identifier for the `Network`, generated by the backend.StringgetIpAddress()IP address configured.com.google.protobuf.ByteStringgetIpAddressBytes()IP address configured.booleangetJumboFramesEnabled()Whether network uses standard frames or jumbo ones.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels as key value pairs.Map<String,String>getLabelsMap()Labels as key value pairs.StringgetLabelsOrDefault(String key, String defaultValue)Labels as key value pairs.StringgetLabelsOrThrow(String key)Labels as key value pairs.StringgetMacAddress(int index)List of physical interfaces.com.google.protobuf.ByteStringgetMacAddressBytes(int index)List of physical interfaces.intgetMacAddressCount()List of physical interfaces.com.google.protobuf.ProtocolStringListgetMacAddressList()List of physical interfaces.NetworkMountPointgetMountPoints(int index)Input only.NetworkMountPoint.BuildergetMountPointsBuilder(int index)Input only.List<NetworkMountPoint.Builder>getMountPointsBuilderList()Input only.intgetMountPointsCount()Input only.List<NetworkMountPoint>getMountPointsList()Input only.NetworkMountPointOrBuildergetMountPointsOrBuilder(int index)Input only.List<? extends NetworkMountPointOrBuilder>getMountPointsOrBuilderList()Input only.Map<String,String>getMutableLabels()Deprecated.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.StringgetPod()Output only.com.google.protobuf.ByteStringgetPodBytes()Output only.NetworkAddressReservationgetReservations(int index)List of IP address reservations in this network.NetworkAddressReservation.BuildergetReservationsBuilder(int index)List of IP address reservations in this network.List<NetworkAddressReservation.Builder>getReservationsBuilderList()List of IP address reservations in this network.intgetReservationsCount()List of IP address reservations in this network.List<NetworkAddressReservation>getReservationsList()List of IP address reservations in this network.NetworkAddressReservationOrBuildergetReservationsOrBuilder(int index)List of IP address reservations in this network.List<? extends NetworkAddressReservationOrBuilder>getReservationsOrBuilderList()List of IP address reservations in this network.StringgetServicesCidr()IP range for reserved for services (e.g.com.google.protobuf.ByteStringgetServicesCidrBytes()IP range for reserved for services (e.g.Network.StategetState()The Network state.intgetStateValue()The Network state.Network.TypegetType()The type of this network.intgetTypeValue()The type of this network.StringgetVlanId()The vlan id of the Network.com.google.protobuf.ByteStringgetVlanIdBytes()The vlan id of the Network.VRFgetVrf()The vrf for the Network.VRF.BuildergetVrfBuilder()The vrf for the Network.VRFOrBuildergetVrfOrBuilder()The vrf for the Network.booleanhasVrf()The vrf for the Network.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Network.BuildermergeFrom(Network other)Network.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Network.BuildermergeFrom(com.google.protobuf.Message other)Network.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Network.BuildermergeVrf(VRF value)The vrf for the Network.Network.BuilderputAllLabels(Map<String,String> values)Labels as key value pairs.Network.BuilderputLabels(String key, String value)Labels as key value pairs.Network.BuilderremoveLabels(String key)Labels as key value pairs.Network.BuilderremoveMountPoints(int index)Input only.Network.BuilderremoveReservations(int index)List of IP address reservations in this network.Network.BuildersetCidr(String value)The cidr of the Network.Network.BuildersetCidrBytes(com.google.protobuf.ByteString value)The cidr of the Network.Network.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Network.BuildersetGatewayIp(String value)Output only.Network.BuildersetGatewayIpBytes(com.google.protobuf.ByteString value)Output only.Network.BuildersetId(String value)An identifier for the `Network`, generated by the backend.Network.BuildersetIdBytes(com.google.protobuf.ByteString value)An identifier for the `Network`, generated by the backend.Network.BuildersetIpAddress(String value)IP address configured.Network.BuildersetIpAddressBytes(com.google.protobuf.ByteString value)IP address configured.Network.BuildersetJumboFramesEnabled(boolean value)Whether network uses standard frames or jumbo ones.Network.BuildersetMacAddress(int index, String value)List of physical interfaces.Network.BuildersetMountPoints(int index, NetworkMountPoint value)Input only.Network.BuildersetMountPoints(int index, NetworkMountPoint.Builder builderForValue)Input only.Network.BuildersetName(String value)Output only.Network.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Network.BuildersetPod(String value)Output only.Network.BuildersetPodBytes(com.google.protobuf.ByteString value)Output only.Network.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Network.BuildersetReservations(int index, NetworkAddressReservation value)List of IP address reservations in this network.Network.BuildersetReservations(int index, NetworkAddressReservation.Builder builderForValue)List of IP address reservations in this network.Network.BuildersetServicesCidr(String value)IP range for reserved for services (e.g.Network.BuildersetServicesCidrBytes(com.google.protobuf.ByteString value)IP range for reserved for services (e.g.Network.BuildersetState(Network.State value)The Network state.Network.BuildersetStateValue(int value)The Network state.Network.BuildersetType(Network.Type value)The type of this network.Network.BuildersetTypeValue(int value)The type of this network.Network.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Network.BuildersetVlanId(String value)The vlan id of the Network.Network.BuildersetVlanIdBytes(com.google.protobuf.ByteString value)The vlan id of the Network.Network.BuildersetVrf(VRF value)The vrf for the Network.Network.BuildersetVrf(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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clear
public Network.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDefaultInstanceForType
public Network getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Network build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Network buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Network.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setField
public Network.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearField
public Network.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearOneof
public Network.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setRepeatedField
public Network.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
addRepeatedField
public Network.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(Network other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getNamein 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:
getNameBytesin 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:
getIdin 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:
getIdBytesin 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:
getTypeValuein 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:
getTypein 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:
getIpAddressin interfaceNetworkOrBuilder- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.ByteString getIpAddressBytes()
IP address configured.
string ip_address = 3;- Specified by:
getIpAddressBytesin 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:
getMacAddressListin interfaceNetworkOrBuilder- Returns:
- A list containing the macAddress.
-
getMacAddressCount
public int getMacAddressCount()
List of physical interfaces.
repeated string mac_address = 4;- Specified by:
getMacAddressCountin interfaceNetworkOrBuilder- Returns:
- The count of macAddress.
-
getMacAddress
public String getMacAddress(int index)
List of physical interfaces.
repeated string mac_address = 4;- Specified by:
getMacAddressin 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:
getMacAddressBytesin 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:
getStateValuein 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:
getStatein 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:
getVlanIdin interfaceNetworkOrBuilder- Returns:
- The vlanId.
-
getVlanIdBytes
public com.google.protobuf.ByteString getVlanIdBytes()
The vlan id of the Network.
string vlan_id = 7;- Specified by:
getVlanIdBytesin 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:
getCidrin interfaceNetworkOrBuilder- Returns:
- The cidr.
-
getCidrBytes
public com.google.protobuf.ByteString getCidrBytes()
The cidr of the Network.
string cidr = 8;- Specified by:
getCidrBytesin 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:
hasVrfin 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:
getVrfin 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:
getVrfOrBuilderin interfaceNetworkOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:NetworkOrBuilderLabels as key value pairs.
map<string, string> labels = 11;- Specified by:
getLabelsCountin interfaceNetworkOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 11;- Specified by:
containsLabelsin interfaceNetworkOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceNetworkOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 11;- Specified by:
getLabelsMapin interfaceNetworkOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 11;- Specified by:
getLabelsOrDefaultin interfaceNetworkOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 11;- Specified by:
getLabelsOrThrowin 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:
getServicesCidrin 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:
getServicesCidrBytesin 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:
getReservationsListin 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:
getReservationsCountin 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:
getReservationsin 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:
getReservationsOrBuilderin 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:
getReservationsOrBuilderListin 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:
getPodin 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:
getPodBytesin 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:
getMountPointsListin 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:
getMountPointsCountin 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:
getMountPointsin 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:
getMountPointsOrBuilderin 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:
getMountPointsOrBuilderListin 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:
getJumboFramesEnabledin 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:
getGatewayIpin 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:
getGatewayIpBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeUnknownFields
public final Network.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
-