Class ResizeVolumeRequest.Builder (0.19.0)

public static final class ResizeVolumeRequest.Builder extends GeneratedMessageV3.Builder<ResizeVolumeRequest.Builder> implements ResizeVolumeRequestOrBuilder

Request for emergency resize Volume.

Protobuf type google.cloud.baremetalsolution.v2.ResizeVolumeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResizeVolumeRequest build()
Returns
TypeDescription
ResizeVolumeRequest

buildPartial()

public ResizeVolumeRequest buildPartial()
Returns
TypeDescription
ResizeVolumeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ResizeVolumeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResizeVolumeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSizeGib()

public ResizeVolumeRequest.Builder clearSizeGib()

New Volume size, in GiB.

int64 size_gib = 2;

Returns
TypeDescription
ResizeVolumeRequest.Builder

This builder for chaining.

clearVolume()

public ResizeVolumeRequest.Builder clearVolume()

Required. Volume to resize.

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

Returns
TypeDescription
ResizeVolumeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ResizeVolumeRequest getDefaultInstanceForType()
Returns
TypeDescription
ResizeVolumeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSizeGib()

public long getSizeGib()

New Volume size, in GiB.

int64 size_gib = 2;

Returns
TypeDescription
long

The sizeGib.

getVolume()

public String getVolume()

Required. Volume to resize.

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

Returns
TypeDescription
String

The volume.

getVolumeBytes()

public ByteString getVolumeBytes()

Required. Volume to resize.

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

Returns
TypeDescription
ByteString

The bytes for volume.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResizeVolumeRequest other)

public ResizeVolumeRequest.Builder mergeFrom(ResizeVolumeRequest other)
Parameter
NameDescription
otherResizeVolumeRequest
Returns
TypeDescription
ResizeVolumeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ResizeVolumeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResizeVolumeRequest.Builder
Overrides

setSizeGib(long value)

public ResizeVolumeRequest.Builder setSizeGib(long value)

New Volume size, in GiB.

int64 size_gib = 2;

Parameter
NameDescription
valuelong

The sizeGib to set.

Returns
TypeDescription
ResizeVolumeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolume(String value)

public ResizeVolumeRequest.Builder setVolume(String value)

Required. Volume to resize.

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

Parameter
NameDescription
valueString

The volume to set.

Returns
TypeDescription
ResizeVolumeRequest.Builder

This builder for chaining.

setVolumeBytes(ByteString value)

public ResizeVolumeRequest.Builder setVolumeBytes(ByteString value)

Required. Volume to resize.

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

Parameter
NameDescription
valueByteString

The bytes for volume to set.

Returns
TypeDescription
ResizeVolumeRequest.Builder

This builder for chaining.