Class RegionDisksResizeRequest.Builder (1.49.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegionDisksResizeRequest build()
Returns
TypeDescription
RegionDisksResizeRequest

buildPartial()

public RegionDisksResizeRequest buildPartial()
Returns
TypeDescription
RegionDisksResizeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RegionDisksResizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RegionDisksResizeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RegionDisksResizeRequest getDefaultInstanceForType()
Returns
TypeDescription
RegionDisksResizeRequest

getDescriptorForType()

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

Whether the sizeGb field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RegionDisksResizeRequest other)

public RegionDisksResizeRequest.Builder mergeFrom(RegionDisksResizeRequest other)
Parameter
NameDescription
otherRegionDisksResizeRequest
Returns
TypeDescription
RegionDisksResizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public RegionDisksResizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The sizeGb to set.

Returns
TypeDescription
RegionDisksResizeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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