Class ExistingNetworkConfig.Builder (0.1.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public ExistingNetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ExistingNetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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