Class ScratchDisks.Builder (1.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ScratchDisks build()
Returns
TypeDescription
ScratchDisks

buildPartial()

public ScratchDisks buildPartial()
Returns
TypeDescription
ScratchDisks

clear()

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

clearDiskGb()

public ScratchDisks.Builder clearDiskGb()

Size of the scratch disk, defined in GB.

optional int32 disk_gb = 60990141;

Returns
TypeDescription
ScratchDisks.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ScratchDisks.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ScratchDisks.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public ScratchDisks getDefaultInstanceForType()
Returns
TypeDescription
ScratchDisks

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskGb()

public int getDiskGb()

Size of the scratch disk, defined in GB.

optional int32 disk_gb = 60990141;

Returns
TypeDescription
int

The diskGb.

hasDiskGb()

public boolean hasDiskGb()

Size of the scratch disk, defined in GB.

optional int32 disk_gb = 60990141;

Returns
TypeDescription
boolean

Whether the diskGb field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ScratchDisks other)

public ScratchDisks.Builder mergeFrom(ScratchDisks other)
Parameter
NameDescription
otherScratchDisks
Returns
TypeDescription
ScratchDisks.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScratchDisks.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The diskGb to set.

Returns
TypeDescription
ScratchDisks.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ScratchDisks.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ScratchDisks.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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