Class ExistingNetworkConfig.Builder (0.5.0)

public static final class ExistingNetworkConfig.Builder extends GeneratedMessage.Builder<ExistingNetworkConfig.Builder> implements ExistingNetworkConfigOrBuilder

When set in a NetworkResourceConfig, indicates that an existing network should be imported.

Protobuf type google.cloud.hypercomputecluster.v1beta.ExistingNetworkConfig

Static Methods

getDescriptor()

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

Methods

build()

public ExistingNetworkConfig build()
Returns
Type Description
ExistingNetworkConfig

buildPartial()

public ExistingNetworkConfig buildPartial()
Returns
Type Description
ExistingNetworkConfig

clear()

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

clearNetwork()

public ExistingNetworkConfig.Builder clearNetwork()

Required. Immutable. Name of the network to import, in the format projects/{project}/global/networks/{network}.

string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingNetworkConfig.Builder

This builder for chaining.

clearSubnetwork()

public ExistingNetworkConfig.Builder clearSubnetwork()

Required. Immutable. Particular subnetwork to use, in the format projects/{project}/regions/{region}/subnetworks/{subnetwork}.

string subnetwork = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingNetworkConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExistingNetworkConfig getDefaultInstanceForType()
Returns
Type Description
ExistingNetworkConfig

getDescriptorForType()

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

getNetwork()

public String getNetwork()

Required. Immutable. Name of the network to import, in the format projects/{project}/global/networks/{network}.

string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. Immutable. Name of the network to import, in the format projects/{project}/global/networks/{network}.

string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getSubnetwork()

public String getSubnetwork()

Required. Immutable. Particular subnetwork to use, in the format projects/{project}/regions/{region}/subnetworks/{subnetwork}.

string subnetwork = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Required. Immutable. Particular subnetwork to use, in the format projects/{project}/regions/{region}/subnetworks/{subnetwork}.

string subnetwork = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for subnetwork.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExistingNetworkConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNetwork(String value)

public ExistingNetworkConfig.Builder setNetwork(String value)

Required. Immutable. Name of the network to import, in the format projects/{project}/global/networks/{network}.

string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
ExistingNetworkConfig.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public ExistingNetworkConfig.Builder setNetworkBytes(ByteString value)

Required. Immutable. Name of the network to import, in the format projects/{project}/global/networks/{network}.

string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
ExistingNetworkConfig.Builder

This builder for chaining.

setSubnetwork(String value)

public ExistingNetworkConfig.Builder setSubnetwork(String value)

Required. Immutable. Particular subnetwork to use, in the format projects/{project}/regions/{region}/subnetworks/{subnetwork}.

string subnetwork = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
ExistingNetworkConfig.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public ExistingNetworkConfig.Builder setSubnetworkBytes(ByteString value)

Required. Immutable. Particular subnetwork to use, in the format projects/{project}/regions/{region}/subnetworks/{subnetwork}.

string subnetwork = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
ExistingNetworkConfig.Builder

This builder for chaining.