Class RenameVolumeRequest.Builder (0.42.0)

public static final class RenameVolumeRequest.Builder extends GeneratedMessageV3.Builder<RenameVolumeRequest.Builder> implements RenameVolumeRequestOrBuilder

Message requesting rename of a server.

Protobuf type google.cloud.baremetalsolution.v2.RenameVolumeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RenameVolumeRequest build()
Returns
Type Description
RenameVolumeRequest

buildPartial()

public RenameVolumeRequest buildPartial()
Returns
Type Description
RenameVolumeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RenameVolumeRequest.Builder clearName()

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

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

Returns
Type Description
RenameVolumeRequest.Builder

This builder for chaining.

clearNewVolumeId()

public RenameVolumeRequest.Builder clearNewVolumeId()

Required. The new id of the volume.

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

Returns
Type Description
RenameVolumeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RenameVolumeRequest getDefaultInstanceForType()
Returns
Type Description
RenameVolumeRequest

getDescriptorForType()

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

getName()

public String getName()

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

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 volume. Format: projects/{project}/locations/{location}/volumes/{volume}

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

Returns
Type Description
ByteString

The bytes for name.

getNewVolumeId()

public String getNewVolumeId()

Required. The new id of the volume.

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

Returns
Type Description
String

The newVolumeId.

getNewVolumeIdBytes()

public ByteString getNewVolumeIdBytes()

Required. The new id of the volume.

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

Returns
Type Description
ByteString

The bytes for newVolumeId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RenameVolumeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RenameVolumeRequest.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RenameVolumeRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RenameVolumeRequest.Builder setNameBytes(ByteString value)

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

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
RenameVolumeRequest.Builder

This builder for chaining.

setNewVolumeId(String value)

public RenameVolumeRequest.Builder setNewVolumeId(String value)

Required. The new id of the volume.

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

Parameter
Name Description
value String

The newVolumeId to set.

Returns
Type Description
RenameVolumeRequest.Builder

This builder for chaining.

setNewVolumeIdBytes(ByteString value)

public RenameVolumeRequest.Builder setNewVolumeIdBytes(ByteString value)

Required. The new id of the volume.

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

Parameter
Name Description
value ByteString

The bytes for newVolumeId to set.

Returns
Type Description
RenameVolumeRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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