Class InstanceConfig.NetworkAddress.Builder (0.83.0)

public static final class InstanceConfig.NetworkAddress.Builder extends GeneratedMessage.Builder<InstanceConfig.NetworkAddress.Builder> implements InstanceConfig.NetworkAddressOrBuilder

A network.

Protobuf type google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress

Static Methods

getDescriptor()

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

Methods

build()

public InstanceConfig.NetworkAddress build()
Returns
Type Description
InstanceConfig.NetworkAddress

buildPartial()

public InstanceConfig.NetworkAddress buildPartial()
Returns
Type Description
InstanceConfig.NetworkAddress

clear()

public InstanceConfig.NetworkAddress.Builder clear()
Returns
Type Description
InstanceConfig.NetworkAddress.Builder
Overrides

clearAddress()

public InstanceConfig.NetworkAddress.Builder clearAddress()

IPv4 address to be assigned to the server.

string address = 2;

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.

clearExistingNetworkId()

public InstanceConfig.NetworkAddress.Builder clearExistingNetworkId()

Name of the existing network to use.

string existing_network_id = 3;

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.

clearNetworkId()

public InstanceConfig.NetworkAddress.Builder clearNetworkId()

Id of the network to use, within the same ProvisioningConfig request.

string network_id = 1;

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.

getAddress()

public String getAddress()

IPv4 address to be assigned to the server.

string address = 2;

Returns
Type Description
String

The address.

getAddressBytes()

public ByteString getAddressBytes()

IPv4 address to be assigned to the server.

string address = 2;

Returns
Type Description
ByteString

The bytes for address.

getDefaultInstanceForType()

public InstanceConfig.NetworkAddress getDefaultInstanceForType()
Returns
Type Description
InstanceConfig.NetworkAddress

getDescriptorForType()

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

getExistingNetworkId()

public String getExistingNetworkId()

Name of the existing network to use.

string existing_network_id = 3;

Returns
Type Description
String

The existingNetworkId.

getExistingNetworkIdBytes()

public ByteString getExistingNetworkIdBytes()

Name of the existing network to use.

string existing_network_id = 3;

Returns
Type Description
ByteString

The bytes for existingNetworkId.

getNetworkId()

public String getNetworkId()

Id of the network to use, within the same ProvisioningConfig request.

string network_id = 1;

Returns
Type Description
String

The networkId.

getNetworkIdBytes()

public ByteString getNetworkIdBytes()

Id of the network to use, within the same ProvisioningConfig request.

string network_id = 1;

Returns
Type Description
ByteString

The bytes for networkId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceConfig.NetworkAddress other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAddress(String value)

public InstanceConfig.NetworkAddress.Builder setAddress(String value)

IPv4 address to be assigned to the server.

string address = 2;

Parameter
Name Description
value String

The address to set.

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.

setAddressBytes(ByteString value)

public InstanceConfig.NetworkAddress.Builder setAddressBytes(ByteString value)

IPv4 address to be assigned to the server.

string address = 2;

Parameter
Name Description
value ByteString

The bytes for address to set.

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.

setExistingNetworkId(String value)

public InstanceConfig.NetworkAddress.Builder setExistingNetworkId(String value)

Name of the existing network to use.

string existing_network_id = 3;

Parameter
Name Description
value String

The existingNetworkId to set.

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.

setExistingNetworkIdBytes(ByteString value)

public InstanceConfig.NetworkAddress.Builder setExistingNetworkIdBytes(ByteString value)

Name of the existing network to use.

string existing_network_id = 3;

Parameter
Name Description
value ByteString

The bytes for existingNetworkId to set.

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.

setNetworkId(String value)

public InstanceConfig.NetworkAddress.Builder setNetworkId(String value)

Id of the network to use, within the same ProvisioningConfig request.

string network_id = 1;

Parameter
Name Description
value String

The networkId to set.

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.

setNetworkIdBytes(ByteString value)

public InstanceConfig.NetworkAddress.Builder setNetworkIdBytes(ByteString value)

Id of the network to use, within the same ProvisioningConfig request.

string network_id = 1;

Parameter
Name Description
value ByteString

The bytes for networkId to set.

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

This builder for chaining.