Class NewNetworkConfig.Builder (0.5.0)

public static final class NewNetworkConfig.Builder extends GeneratedMessage.Builder<NewNetworkConfig.Builder> implements NewNetworkConfigOrBuilder

When set in a NetworkResourceConfig, indicates that a new network should be created.

Protobuf type google.cloud.hypercomputecluster.v1beta.NewNetworkConfig

Static Methods

getDescriptor()

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

Methods

build()

public NewNetworkConfig build()
Returns
Type Description
NewNetworkConfig

buildPartial()

public NewNetworkConfig buildPartial()
Returns
Type Description
NewNetworkConfig

clear()

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

clearDescription()

public NewNetworkConfig.Builder clearDescription()

Optional. Immutable. Description of the network. Maximum of 2048 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
NewNetworkConfig.Builder

This builder for chaining.

clearNetwork()

public NewNetworkConfig.Builder clearNetwork()

Required. Immutable. Name of the network to create, 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
NewNetworkConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public NewNetworkConfig getDefaultInstanceForType()
Returns
Type Description
NewNetworkConfig

getDescription()

public String getDescription()

Optional. Immutable. Description of the network. Maximum of 2048 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Immutable. Description of the network. Maximum of 2048 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getNetwork()

public String getNetwork()

Required. Immutable. Name of the network to create, 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 create, 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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NewNetworkConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDescription(String value)

public NewNetworkConfig.Builder setDescription(String value)

Optional. Immutable. Description of the network. Maximum of 2048 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
NewNetworkConfig.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public NewNetworkConfig.Builder setDescriptionBytes(ByteString value)

Optional. Immutable. Description of the network. Maximum of 2048 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
NewNetworkConfig.Builder

This builder for chaining.

setNetwork(String value)

public NewNetworkConfig.Builder setNetwork(String value)

Required. Immutable. Name of the network to create, 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
NewNetworkConfig.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public NewNetworkConfig.Builder setNetworkBytes(ByteString value)

Required. Immutable. Name of the network to create, 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
NewNetworkConfig.Builder

This builder for chaining.