Class RegionDisksResizeRequest.Builder (1.58.0)

public static final class RegionDisksResizeRequest.Builder extends GeneratedMessageV3.Builder<RegionDisksResizeRequest.Builder> implements RegionDisksResizeRequestOrBuilder

Protobuf type google.cloud.compute.v1.RegionDisksResizeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegionDisksResizeRequest build()
Returns
Type Description
RegionDisksResizeRequest

buildPartial()

public RegionDisksResizeRequest buildPartial()
Returns
Type Description
RegionDisksResizeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSizeGb()

public RegionDisksResizeRequest.Builder clearSizeGb()

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

optional int64 size_gb = 494929369;

Returns
Type Description
RegionDisksResizeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RegionDisksResizeRequest getDefaultInstanceForType()
Returns
Type Description
RegionDisksResizeRequest

getDescriptorForType()

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

getSizeGb()

public long getSizeGb()

The new size of the regional 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 regional 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(RegionDisksResizeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSizeGb(long value)

public RegionDisksResizeRequest.Builder setSizeGb(long value)

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

optional int64 size_gb = 494929369;

Parameter
Name Description
value long

The sizeGb to set.

Returns
Type Description
RegionDisksResizeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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