Class DriverSchedulingConfig.Builder (4.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DriverSchedulingConfig build()
Returns
TypeDescription
DriverSchedulingConfig

buildPartial()

public DriverSchedulingConfig buildPartial()
Returns
TypeDescription
DriverSchedulingConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DriverSchedulingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DriverSchedulingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DriverSchedulingConfig getDefaultInstanceForType()
Returns
TypeDescription
DriverSchedulingConfig

getDescriptorForType()

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

The vcores.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DriverSchedulingConfig other)

public DriverSchedulingConfig.Builder mergeFrom(DriverSchedulingConfig other)
Parameter
NameDescription
otherDriverSchedulingConfig
Returns
TypeDescription
DriverSchedulingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DriverSchedulingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The memoryMb to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DriverSchedulingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The vcores to set.

Returns
TypeDescription
DriverSchedulingConfig.Builder

This builder for chaining.