Class RenameNetworkRequest.Builder (0.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RenameNetworkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides

build()

public RenameNetworkRequest build()
Returns
TypeDescription
RenameNetworkRequest

buildPartial()

public RenameNetworkRequest buildPartial()
Returns
TypeDescription
RenameNetworkRequest

clear()

public RenameNetworkRequest.Builder clear()
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RenameNetworkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RenameNetworkRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RenameNetworkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides

clone()

public RenameNetworkRequest.Builder clone()
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides

getDefaultInstanceForType()

public RenameNetworkRequest getDefaultInstanceForType()
Returns
TypeDescription
RenameNetworkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for newNetworkId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RenameNetworkRequest other)

public RenameNetworkRequest.Builder mergeFrom(RenameNetworkRequest other)
Parameter
NameDescription
otherRenameNetworkRequest
Returns
TypeDescription
RenameNetworkRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RenameNetworkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RenameNetworkRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RenameNetworkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RenameNetworkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The newNetworkId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for newNetworkId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RenameNetworkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RenameNetworkRequest.Builder
Overrides