Class DriverSchedulingConfig.Builder (4.50.0)

public static final class DriverSchedulingConfig.Builder extends GeneratedMessageV3.Builder<DriverSchedulingConfig.Builder> implements DriverSchedulingConfigOrBuilder

Driver scheduling configuration.

Protobuf type google.cloud.dataproc.v1.DriverSchedulingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DriverSchedulingConfig build()
Returns
Type Description
DriverSchedulingConfig

buildPartial()

public DriverSchedulingConfig buildPartial()
Returns
Type Description
DriverSchedulingConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMemoryMb()

public DriverSchedulingConfig.Builder clearMemoryMb()

Required. The amount of memory in MB the driver is requesting.

int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DriverSchedulingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVcores()

public DriverSchedulingConfig.Builder clearVcores()

Required. The number of vCPUs the driver is requesting.

int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DriverSchedulingConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DriverSchedulingConfig getDefaultInstanceForType()
Returns
Type Description
DriverSchedulingConfig

getDescriptorForType()

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

getMemoryMb()

public int getMemoryMb()

Required. The amount of memory in MB the driver is requesting.

int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The memoryMb.

getVcores()

public int getVcores()

Required. The number of vCPUs the driver is requesting.

int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The vcores.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DriverSchedulingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemoryMb(int value)

public DriverSchedulingConfig.Builder setMemoryMb(int value)

Required. The amount of memory in MB the driver is requesting.

int32 memory_mb = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The memoryMb to set.

Returns
Type Description
DriverSchedulingConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVcores(int value)

public DriverSchedulingConfig.Builder setVcores(int value)

Required. The number of vCPUs the driver is requesting.

int32 vcores = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The vcores to set.

Returns
Type Description
DriverSchedulingConfig.Builder

This builder for chaining.