Class Network.Builder (0.41.0)

public static final class Network.Builder extends GeneratedMessageV3.Builder<Network.Builder> implements NetworkOrBuilder

A Network.

Protobuf type google.cloud.baremetalsolution.v2.Network

Implements

NetworkOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllMacAddress(Iterable<String> values)

public Network.Builder addAllMacAddress(Iterable<String> values)

List of physical interfaces.

repeated string mac_address = 4;

Parameter
NameDescription
valuesIterable<String>

The macAddress to add.

Returns
TypeDescription
Network.Builder

This builder for chaining.

addAllMountPoints(Iterable<? extends NetworkMountPoint> values)

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];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.NetworkMountPoint>
Returns
TypeDescription
Network.Builder

addAllReservations(Iterable<? extends NetworkAddressReservation> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>
Returns
TypeDescription
Network.Builder

addMacAddress(String value)

public Network.Builder addMacAddress(String value)

List of physical interfaces.

repeated string mac_address = 4;

Parameter
NameDescription
valueString

The macAddress to add.

Returns
TypeDescription
Network.Builder

This builder for chaining.

addMacAddressBytes(ByteString value)

public Network.Builder addMacAddressBytes(ByteString value)

List of physical interfaces.

repeated string mac_address = 4;

Parameter
NameDescription
valueByteString

The bytes of the macAddress to add.

Returns
TypeDescription
Network.Builder

This builder for chaining.

addMountPoints(NetworkMountPoint value)

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];

Parameter
NameDescription
valueNetworkMountPoint
Returns
TypeDescription
Network.Builder

addMountPoints(NetworkMountPoint.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueNetworkMountPoint.Builder
Returns
TypeDescription
Network.Builder

addMountPoints(int index, NetworkMountPoint value)

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];

Parameters
NameDescription
indexint
valueNetworkMountPoint
Returns
TypeDescription
Network.Builder

addMountPoints(int index, NetworkMountPoint.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueNetworkMountPoint.Builder
Returns
TypeDescription
Network.Builder

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];

Returns
TypeDescription
NetworkMountPoint.Builder

addMountPointsBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkMountPoint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Network.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Network.Builder
Overrides

addReservations(NetworkAddressReservation value)

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;

Parameter
NameDescription
valueNetworkAddressReservation
Returns
TypeDescription
Network.Builder

addReservations(NetworkAddressReservation.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueNetworkAddressReservation.Builder
Returns
TypeDescription
Network.Builder

addReservations(int index, NetworkAddressReservation value)

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;

Parameters
NameDescription
indexint
valueNetworkAddressReservation
Returns
TypeDescription
Network.Builder

addReservations(int index, NetworkAddressReservation.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueNetworkAddressReservation.Builder
Returns
TypeDescription
Network.Builder

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;

Returns
TypeDescription
NetworkAddressReservation.Builder

addReservationsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAddressReservation.Builder

build()

public Network build()
Returns
TypeDescription
Network

buildPartial()

public Network buildPartial()
Returns
TypeDescription
Network

clear()

public Network.Builder clear()
Returns
TypeDescription
Network.Builder
Overrides

clearCidr()

public Network.Builder clearCidr()

The cidr of the Network.

string cidr = 8;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Network.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Network.Builder
Overrides

clearGatewayIp()

public Network.Builder clearGatewayIp()

Output only. Gateway ip address.

string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearId()

public Network.Builder clearId()

An identifier for the Network, generated by the backend.

string id = 10;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearIpAddress()

public Network.Builder clearIpAddress()

IP address configured.

string ip_address = 3;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearJumboFramesEnabled()

public Network.Builder clearJumboFramesEnabled()

Whether network uses standard frames or jumbo ones.

bool jumbo_frames_enabled = 16;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearLabels()

public Network.Builder clearLabels()
Returns
TypeDescription
Network.Builder

clearMacAddress()

public Network.Builder clearMacAddress()

List of physical interfaces.

repeated string mac_address = 4;

Returns
TypeDescription
Network.Builder

This builder for chaining.

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];

Returns
TypeDescription
Network.Builder

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
TypeDescription
Network.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Network.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Network.Builder
Overrides

clearPod()

public Network.Builder clearPod()

Output only. Pod name.

string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Network.Builder

This builder for chaining.

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;

Returns
TypeDescription
Network.Builder

clearServicesCidr()

public Network.Builder clearServicesCidr()

IP range for reserved for services (e.g. NFS).

string services_cidr = 12;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearState()

public Network.Builder clearState()

The Network state.

.google.cloud.baremetalsolution.v2.Network.State state = 6;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearType()

public Network.Builder clearType()

The type of this network.

.google.cloud.baremetalsolution.v2.Network.Type type = 2;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearVlanId()

public Network.Builder clearVlanId()

The vlan id of the Network.

string vlan_id = 7;

Returns
TypeDescription
Network.Builder

This builder for chaining.

clearVrf()

public Network.Builder clearVrf()

The vrf for the Network.

.google.cloud.baremetalsolution.v2.VRF vrf = 9;

Returns
TypeDescription
Network.Builder

clone()

public Network.Builder clone()
Returns
TypeDescription
Network.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCidr()

public String getCidr()

The cidr of the Network.

string cidr = 8;

Returns
TypeDescription
String

The cidr.

getCidrBytes()

public ByteString getCidrBytes()

The cidr of the Network.

string cidr = 8;

Returns
TypeDescription
ByteString

The bytes for cidr.

getDefaultInstanceForType()

public Network getDefaultInstanceForType()
Returns
TypeDescription
Network

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGatewayIp()

public String getGatewayIp()

Output only. Gateway ip address.

string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The gatewayIp.

getGatewayIpBytes()

public ByteString getGatewayIpBytes()

Output only. Gateway ip address.

string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for gatewayIp.

getId()

public String getId()

An identifier for the Network, generated by the backend.

string id = 10;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

An identifier for the Network, generated by the backend.

string id = 10;

Returns
TypeDescription
ByteString

The bytes for id.

getIpAddress()

public String getIpAddress()

IP address configured.

string ip_address = 3;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address configured.

string ip_address = 3;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getJumboFramesEnabled()

public boolean getJumboFramesEnabled()

Whether network uses standard frames or jumbo ones.

bool jumbo_frames_enabled = 16;

Returns
TypeDescription
boolean

The jumboFramesEnabled.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 11;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 11;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMacAddress(int index)

public String getMacAddress(int index)

List of physical interfaces.

repeated string mac_address = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The macAddress at the given index.

getMacAddressBytes(int index)

public ByteString getMacAddressBytes(int index)

List of physical interfaces.

repeated string mac_address = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the macAddress at the given index.

getMacAddressCount()

public int getMacAddressCount()

List of physical interfaces.

repeated string mac_address = 4;

Returns
TypeDescription
int

The count of macAddress.

getMacAddressList()

public ProtocolStringList getMacAddressList()

List of physical interfaces.

repeated string mac_address = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the macAddress.

getMountPoints(int index)

public NetworkMountPoint getMountPoints(int index)

Input only. List of mount points to attach the network to.

repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkMountPoint

getMountPointsBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkMountPoint.Builder

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];

Returns
TypeDescription
List<Builder>

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];

Returns
TypeDescription
int

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];

Returns
TypeDescription
List<NetworkMountPoint>

getMountPointsOrBuilder(int index)

public NetworkMountPointOrBuilder getMountPointsOrBuilder(int index)

Input only. List of mount points to attach the network to.

repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkMountPointOrBuilder

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];

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.NetworkMountPointOrBuilder>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of this Network. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: projects/{project}/locations/{location}/networks/{network}

string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getPod()

public String getPod()

Output only. Pod name.

string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The pod.

getPodBytes()

public ByteString getPodBytes()

Output only. Pod name.

string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for pod.

getReservations(int index)

public NetworkAddressReservation getReservations(int index)

List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.

repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAddressReservation

getReservationsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAddressReservation.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<NetworkAddressReservation>

getReservationsOrBuilder(int index)

public NetworkAddressReservationOrBuilder getReservationsOrBuilder(int index)

List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.

repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkAddressReservationOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>

getServicesCidr()

public String getServicesCidr()

IP range for reserved for services (e.g. NFS).

string services_cidr = 12;

Returns
TypeDescription
String

The servicesCidr.

getServicesCidrBytes()

public ByteString getServicesCidrBytes()

IP range for reserved for services (e.g. NFS).

string services_cidr = 12;

Returns
TypeDescription
ByteString

The bytes for servicesCidr.

getState()

public Network.State getState()

The Network state.

.google.cloud.baremetalsolution.v2.Network.State state = 6;

Returns
TypeDescription
Network.State

The state.

getStateValue()

public int getStateValue()

The Network state.

.google.cloud.baremetalsolution.v2.Network.State state = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getType()

public Network.Type getType()

The type of this network.

.google.cloud.baremetalsolution.v2.Network.Type type = 2;

Returns
TypeDescription
Network.Type

The type.

getTypeValue()

public int getTypeValue()

The type of this network.

.google.cloud.baremetalsolution.v2.Network.Type type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getVlanId()

public String getVlanId()

The vlan id of the Network.

string vlan_id = 7;

Returns
TypeDescription
String

The vlanId.

getVlanIdBytes()

public ByteString getVlanIdBytes()

The vlan id of the Network.

string vlan_id = 7;

Returns
TypeDescription
ByteString

The bytes for vlanId.

getVrf()

public VRF getVrf()

The vrf for the Network.

.google.cloud.baremetalsolution.v2.VRF vrf = 9;

Returns
TypeDescription
VRF

The vrf.

getVrfBuilder()

public VRF.Builder getVrfBuilder()

The vrf for the Network.

.google.cloud.baremetalsolution.v2.VRF vrf = 9;

Returns
TypeDescription
VRF.Builder

getVrfOrBuilder()

public VRFOrBuilder getVrfOrBuilder()

The vrf for the Network.

.google.cloud.baremetalsolution.v2.VRF vrf = 9;

Returns
TypeDescription
VRFOrBuilder

hasVrf()

public boolean hasVrf()

The vrf for the Network.

.google.cloud.baremetalsolution.v2.VRF vrf = 9;

Returns
TypeDescription
boolean

Whether the vrf field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Network other)

public Network.Builder mergeFrom(Network other)
Parameter
NameDescription
otherNetwork
Returns
TypeDescription
Network.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Network.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Network.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Network.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Network.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Network.Builder
Overrides

mergeVrf(VRF value)

public Network.Builder mergeVrf(VRF value)

The vrf for the Network.

.google.cloud.baremetalsolution.v2.VRF vrf = 9;

Parameter
NameDescription
valueVRF
Returns
TypeDescription
Network.Builder

putAllLabels(Map<String,String> values)

public Network.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Network.Builder

putLabels(String key, String value)

public Network.Builder putLabels(String key, String value)

Labels as key value pairs.

map<string, string> labels = 11;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Network.Builder

removeLabels(String key)

public Network.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
Network.Builder

removeMountPoints(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
Network.Builder

removeReservations(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Network.Builder

setCidr(String value)

public Network.Builder setCidr(String value)

The cidr of the Network.

string cidr = 8;

Parameter
NameDescription
valueString

The cidr to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setCidrBytes(ByteString value)

public Network.Builder setCidrBytes(ByteString value)

The cidr of the Network.

string cidr = 8;

Parameter
NameDescription
valueByteString

The bytes for cidr to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Network.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Network.Builder
Overrides

setGatewayIp(String value)

public Network.Builder setGatewayIp(String value)

Output only. Gateway ip address.

string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The gatewayIp to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setGatewayIpBytes(ByteString value)

public Network.Builder setGatewayIpBytes(ByteString value)

Output only. Gateway ip address.

string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for gatewayIp to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setId(String value)

public Network.Builder setId(String value)

An identifier for the Network, generated by the backend.

string id = 10;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Network.Builder setIdBytes(ByteString value)

An identifier for the Network, generated by the backend.

string id = 10;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setIpAddress(String value)

public Network.Builder setIpAddress(String value)

IP address configured.

string ip_address = 3;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public Network.Builder setIpAddressBytes(ByteString value)

IP address configured.

string ip_address = 3;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setJumboFramesEnabled(boolean value)

public Network.Builder setJumboFramesEnabled(boolean value)

Whether network uses standard frames or jumbo ones.

bool jumbo_frames_enabled = 16;

Parameter
NameDescription
valueboolean

The jumboFramesEnabled to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setMacAddress(int index, String value)

public Network.Builder setMacAddress(int index, String value)

List of physical interfaces.

repeated string mac_address = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The macAddress to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setMountPoints(int index, NetworkMountPoint value)

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];

Parameters
NameDescription
indexint
valueNetworkMountPoint
Returns
TypeDescription
Network.Builder

setMountPoints(int index, NetworkMountPoint.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueNetworkMountPoint.Builder
Returns
TypeDescription
Network.Builder

setName(String value)

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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Network.Builder setNameBytes(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];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setPod(String value)

public Network.Builder setPod(String value)

Output only. Pod name.

string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The pod to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setPodBytes(ByteString value)

public Network.Builder setPodBytes(ByteString value)

Output only. Pod name.

string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for pod to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Network.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Network.Builder
Overrides

setReservations(int index, NetworkAddressReservation value)

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;

Parameters
NameDescription
indexint
valueNetworkAddressReservation
Returns
TypeDescription
Network.Builder

setReservations(int index, NetworkAddressReservation.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueNetworkAddressReservation.Builder
Returns
TypeDescription
Network.Builder

setServicesCidr(String value)

public Network.Builder setServicesCidr(String value)

IP range for reserved for services (e.g. NFS).

string services_cidr = 12;

Parameter
NameDescription
valueString

The servicesCidr to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setServicesCidrBytes(ByteString value)

public Network.Builder setServicesCidrBytes(ByteString value)

IP range for reserved for services (e.g. NFS).

string services_cidr = 12;

Parameter
NameDescription
valueByteString

The bytes for servicesCidr to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setState(Network.State value)

public Network.Builder setState(Network.State value)

The Network state.

.google.cloud.baremetalsolution.v2.Network.State state = 6;

Parameter
NameDescription
valueNetwork.State

The state to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setStateValue(int value)

public Network.Builder setStateValue(int value)

The Network state.

.google.cloud.baremetalsolution.v2.Network.State state = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setType(Network.Type value)

public Network.Builder setType(Network.Type value)

The type of this network.

.google.cloud.baremetalsolution.v2.Network.Type type = 2;

Parameter
NameDescription
valueNetwork.Type

The type to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setTypeValue(int value)

public Network.Builder setTypeValue(int value)

The type of this network.

.google.cloud.baremetalsolution.v2.Network.Type type = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Network.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Network.Builder
Overrides

setVlanId(String value)

public Network.Builder setVlanId(String value)

The vlan id of the Network.

string vlan_id = 7;

Parameter
NameDescription
valueString

The vlanId to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setVlanIdBytes(ByteString value)

public Network.Builder setVlanIdBytes(ByteString value)

The vlan id of the Network.

string vlan_id = 7;

Parameter
NameDescription
valueByteString

The bytes for vlanId to set.

Returns
TypeDescription
Network.Builder

This builder for chaining.

setVrf(VRF value)

public Network.Builder setVrf(VRF value)

The vrf for the Network.

.google.cloud.baremetalsolution.v2.VRF vrf = 9;

Parameter
NameDescription
valueVRF
Returns
TypeDescription
Network.Builder

setVrf(VRF.Builder builderForValue)

public Network.Builder setVrf(VRF.Builder builderForValue)

The vrf for the Network.

.google.cloud.baremetalsolution.v2.VRF vrf = 9;

Parameter
NameDescription
builderForValueVRF.Builder
Returns
TypeDescription
Network.Builder