Class NewNetworkConfig.Builder (0.1.0)

public static final class NewNetworkConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NewNetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

public NewNetworkConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NewNetworkConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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