Class Network.Builder (0.57.0)

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

VM networking options.

Protobuf type google.cloud.lifesciences.v2beta.Network

Implements

NetworkOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Network.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Network.Builder
Overrides

build()

public Network build()
Returns
Type Description
Network

buildPartial()

public Network buildPartial()
Returns
Type Description
Network

clear()

public Network.Builder clear()
Returns
Type Description
Network.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Network.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Network.Builder
Overrides

clearNetwork()

public Network.Builder clearNetwork()

The network name to attach the VM's network interface to. The value will be prefixed with global/networks/ unless it contains a /, in which case it is assumed to be a fully specified network resource URL.

If unspecified, the global default network is used.

string network = 1;

Returns
Type Description
Network.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Network.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Network.Builder
Overrides

clearSubnetwork()

public Network.Builder clearSubnetwork()

If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.

The value is prefixed with regions/*/subnetworks/ unless it contains a /, in which case it is assumed to be a fully specified subnetwork resource URL.

If the * character appears in the value, it is replaced with the region that the virtual machine has been allocated in.

string subnetwork = 3;

Returns
Type Description
Network.Builder

This builder for chaining.

clearUsePrivateAddress()

public Network.Builder clearUsePrivateAddress()

If set to true, do not attach a public IP address to the VM. Note that without a public IP address, additional configuration is required to allow the VM to access Google services.

See https://cloud.google.com/vpc/docs/configure-private-google-access for more information.

bool use_private_address = 2;

Returns
Type Description
Network.Builder

This builder for chaining.

clone()

public Network.Builder clone()
Returns
Type Description
Network.Builder
Overrides

getDefaultInstanceForType()

public Network getDefaultInstanceForType()
Returns
Type Description
Network

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNetwork()

public String getNetwork()

The network name to attach the VM's network interface to. The value will be prefixed with global/networks/ unless it contains a /, in which case it is assumed to be a fully specified network resource URL.

If unspecified, the global default network is used.

string network = 1;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The network name to attach the VM's network interface to. The value will be prefixed with global/networks/ unless it contains a /, in which case it is assumed to be a fully specified network resource URL.

If unspecified, the global default network is used.

string network = 1;

Returns
Type Description
ByteString

The bytes for network.

getSubnetwork()

public String getSubnetwork()

If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.

The value is prefixed with regions/*/subnetworks/ unless it contains a /, in which case it is assumed to be a fully specified subnetwork resource URL.

If the * character appears in the value, it is replaced with the region that the virtual machine has been allocated in.

string subnetwork = 3;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.

The value is prefixed with regions/*/subnetworks/ unless it contains a /, in which case it is assumed to be a fully specified subnetwork resource URL.

If the * character appears in the value, it is replaced with the region that the virtual machine has been allocated in.

string subnetwork = 3;

Returns
Type Description
ByteString

The bytes for subnetwork.

getUsePrivateAddress()

public boolean getUsePrivateAddress()

If set to true, do not attach a public IP address to the VM. Note that without a public IP address, additional configuration is required to allow the VM to access Google services.

See https://cloud.google.com/vpc/docs/configure-private-google-access for more information.

bool use_private_address = 2;

Returns
Type Description
boolean

The usePrivateAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Network other)

public Network.Builder mergeFrom(Network other)
Parameter
Name Description
other Network
Returns
Type Description
Network.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Network.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Network.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Network.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Network.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Network.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Network.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Network.Builder
Overrides

setNetwork(String value)

public Network.Builder setNetwork(String value)

The network name to attach the VM's network interface to. The value will be prefixed with global/networks/ unless it contains a /, in which case it is assumed to be a fully specified network resource URL.

If unspecified, the global default network is used.

string network = 1;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Network.Builder setNetworkBytes(ByteString value)

The network name to attach the VM's network interface to. The value will be prefixed with global/networks/ unless it contains a /, in which case it is assumed to be a fully specified network resource URL.

If unspecified, the global default network is used.

string network = 1;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Network.Builder
Overrides

setSubnetwork(String value)

public Network.Builder setSubnetwork(String value)

If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.

The value is prefixed with regions/*/subnetworks/ unless it contains a /, in which case it is assumed to be a fully specified subnetwork resource URL.

If the * character appears in the value, it is replaced with the region that the virtual machine has been allocated in.

string subnetwork = 3;

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public Network.Builder setSubnetworkBytes(ByteString value)

If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.

The value is prefixed with regions/*/subnetworks/ unless it contains a /, in which case it is assumed to be a fully specified subnetwork resource URL.

If the * character appears in the value, it is replaced with the region that the virtual machine has been allocated in.

string subnetwork = 3;

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Network.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Network.Builder
Overrides

setUsePrivateAddress(boolean value)

public Network.Builder setUsePrivateAddress(boolean value)

If set to true, do not attach a public IP address to the VM. Note that without a public IP address, additional configuration is required to allow the VM to access Google services.

See https://cloud.google.com/vpc/docs/configure-private-google-access for more information.

bool use_private_address = 2;

Parameter
Name Description
value boolean

The usePrivateAddress to set.

Returns
Type Description
Network.Builder

This builder for chaining.