Class DisksResizeRequest.Builder (1.65.0)

public static final class DisksResizeRequest.Builder extends GeneratedMessageV3.Builder<DisksResizeRequest.Builder> implements DisksResizeRequestOrBuilder

Protobuf type google.cloud.compute.v1.DisksResizeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DisksResizeRequest build()
Returns
Type Description
DisksResizeRequest

buildPartial()

public DisksResizeRequest buildPartial()
Returns
Type Description
DisksResizeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSizeGb()

public DisksResizeRequest.Builder clearSizeGb()

The new size of the persistent disk, which is specified in GB.

optional int64 size_gb = 494929369;

Returns
Type Description
DisksResizeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DisksResizeRequest getDefaultInstanceForType()
Returns
Type Description
DisksResizeRequest

getDescriptorForType()

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

getSizeGb()

public long getSizeGb()

The new size of the persistent disk, which is specified in GB.

optional int64 size_gb = 494929369;

Returns
Type Description
long

The sizeGb.

hasSizeGb()

public boolean hasSizeGb()

The new size of the persistent disk, which is specified in GB.

optional int64 size_gb = 494929369;

Returns
Type Description
boolean

Whether the sizeGb field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DisksResizeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSizeGb(long value)

public DisksResizeRequest.Builder setSizeGb(long value)

The new size of the persistent disk, which is specified in GB.

optional int64 size_gb = 494929369;

Parameter
Name Description
value long

The sizeGb to set.

Returns
Type Description
DisksResizeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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