Class ScratchDisks.Builder (1.59.0)

public static final class ScratchDisks.Builder extends GeneratedMessageV3.Builder<ScratchDisks.Builder> implements ScratchDisksOrBuilder

Protobuf type google.cloud.compute.v1.ScratchDisks

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ScratchDisks build()
Returns
Type Description
ScratchDisks

buildPartial()

public ScratchDisks buildPartial()
Returns
Type Description
ScratchDisks

clear()

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

clearDiskGb()

public ScratchDisks.Builder clearDiskGb()

Size of the scratch disk, defined in GB.

optional int32 disk_gb = 60990141;

Returns
Type Description
ScratchDisks.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ScratchDisks getDefaultInstanceForType()
Returns
Type Description
ScratchDisks

getDescriptorForType()

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

getDiskGb()

public int getDiskGb()

Size of the scratch disk, defined in GB.

optional int32 disk_gb = 60990141;

Returns
Type Description
int

The diskGb.

hasDiskGb()

public boolean hasDiskGb()

Size of the scratch disk, defined in GB.

optional int32 disk_gb = 60990141;

Returns
Type Description
boolean

Whether the diskGb field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ScratchDisks other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDiskGb(int value)

public ScratchDisks.Builder setDiskGb(int value)

Size of the scratch disk, defined in GB.

optional int32 disk_gb = 60990141;

Parameter
Name Description
value int

The diskGb to set.

Returns
Type Description
ScratchDisks.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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