Class RenameNetworkRequest.Builder (0.45.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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