Class DisksResizeRequest.Builder (1.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DisksResizeRequest build()
Returns
TypeDescription
DisksResizeRequest

buildPartial()

public DisksResizeRequest buildPartial()
Returns
TypeDescription
DisksResizeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DisksResizeRequest getDefaultInstanceForType()
Returns
TypeDescription
DisksResizeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSizeGb()

public long getSizeGb()

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

public DisksResizeRequest.Builder mergeFrom(DisksResizeRequest other)
Parameter
NameDescription
otherDisksResizeRequest
Returns
TypeDescription
DisksResizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The sizeGb to set.

Returns
TypeDescription
DisksResizeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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