Class RenameVolumeRequest.Builder (0.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RenameVolumeRequest build()
Returns
TypeDescription
RenameVolumeRequest

buildPartial()

public RenameVolumeRequest buildPartial()
Returns
TypeDescription
RenameVolumeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RenameVolumeRequest getDefaultInstanceForType()
Returns
TypeDescription
RenameVolumeRequest

getDescriptorForType()

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

The bytes for newVolumeId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RenameVolumeRequest other)

public RenameVolumeRequest.Builder mergeFrom(RenameVolumeRequest other)
Parameter
NameDescription
otherRenameVolumeRequest
Returns
TypeDescription
RenameVolumeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The newVolumeId to set.

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

The bytes for newVolumeId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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