Class RenameNetworkRequest.Builder (0.83.0)

public static final class RenameNetworkRequest.Builder extends GeneratedMessage.Builder<RenameNetworkRequest.Builder> implements RenameNetworkRequestOrBuilder

Message requesting rename of a server.

Protobuf type google.cloud.baremetalsolution.v2.RenameNetworkRequest

Static Methods

getDescriptor()

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

Methods

build()

public RenameNetworkRequest build()
Returns
Type Description
RenameNetworkRequest

buildPartial()

public RenameNetworkRequest buildPartial()
Returns
Type Description
RenameNetworkRequest

clear()

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

clearName()

public RenameNetworkRequest.Builder clearName()

Required. The name field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network}

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

Returns
Type Description
RenameNetworkRequest.Builder

This builder for chaining.

clearNewNetworkId()

public RenameNetworkRequest.Builder clearNewNetworkId()

Required. The new id of the network.

string new_network_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RenameNetworkRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public RenameNetworkRequest getDefaultInstanceForType()
Returns
Type Description
RenameNetworkRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network}

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

Returns
Type Description
ByteString

The bytes for name.

getNewNetworkId()

public String getNewNetworkId()

Required. The new id of the network.

string new_network_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The newNetworkId.

getNewNetworkIdBytes()

public ByteString getNewNetworkIdBytes()

Required. The new id of the network.

string new_network_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for newNetworkId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RenameNetworkRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public RenameNetworkRequest.Builder setName(String value)

Required. The name field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RenameNetworkRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RenameNetworkRequest.Builder setNameBytes(ByteString value)

Required. The name field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RenameNetworkRequest.Builder

This builder for chaining.

setNewNetworkId(String value)

public RenameNetworkRequest.Builder setNewNetworkId(String value)

Required. The new id of the network.

string new_network_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The newNetworkId to set.

Returns
Type Description
RenameNetworkRequest.Builder

This builder for chaining.

setNewNetworkIdBytes(ByteString value)

public RenameNetworkRequest.Builder setNewNetworkIdBytes(ByteString value)

Required. The new id of the network.

string new_network_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for newNetworkId to set.

Returns
Type Description
RenameNetworkRequest.Builder

This builder for chaining.