Class StartupConfig.Builder (4.28.0)

public static final class StartupConfig.Builder extends GeneratedMessageV3.Builder<StartupConfig.Builder> implements StartupConfigOrBuilder

Configuration to handle the startup of instances during cluster create and update process.

Protobuf type google.cloud.dataproc.v1.StartupConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StartupConfig build()
Returns
TypeDescription
StartupConfig

buildPartial()

public StartupConfig buildPartial()
Returns
TypeDescription
StartupConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequiredRegistrationFraction()

public StartupConfig.Builder clearRequiredRegistrationFraction()

Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled).

optional double required_registration_fraction = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StartupConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public StartupConfig getDefaultInstanceForType()
Returns
TypeDescription
StartupConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRequiredRegistrationFraction()

public double getRequiredRegistrationFraction()

Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled).

optional double required_registration_fraction = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
double

The requiredRegistrationFraction.

hasRequiredRegistrationFraction()

public boolean hasRequiredRegistrationFraction()

Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled).

optional double required_registration_fraction = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the requiredRegistrationFraction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StartupConfig other)

public StartupConfig.Builder mergeFrom(StartupConfig other)
Parameter
NameDescription
otherStartupConfig
Returns
TypeDescription
StartupConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRequiredRegistrationFraction(double value)

public StartupConfig.Builder setRequiredRegistrationFraction(double value)

Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled).

optional double required_registration_fraction = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuedouble

The requiredRegistrationFraction to set.

Returns
TypeDescription
StartupConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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