Class StartupConfig (4.28.0)

public final class StartupConfig extends GeneratedMessageV3 implements StartupConfigOrBuilder

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

Protobuf type google.cloud.dataproc.v1.StartupConfig

Static Fields

REQUIRED_REGISTRATION_FRACTION_FIELD_NUMBER

public static final int REQUIRED_REGISTRATION_FRACTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StartupConfig getDefaultInstance()
Returns
TypeDescription
StartupConfig

getDescriptor()

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

newBuilder()

public static StartupConfig.Builder newBuilder()
Returns
TypeDescription
StartupConfig.Builder

newBuilder(StartupConfig prototype)

public static StartupConfig.Builder newBuilder(StartupConfig prototype)
Parameter
NameDescription
prototypeStartupConfig
Returns
TypeDescription
StartupConfig.Builder

parseDelimitedFrom(InputStream input)

public static StartupConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StartupConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StartupConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StartupConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StartupConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StartupConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StartupConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StartupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StartupConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StartupConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StartupConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StartupConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StartupConfig> parser()
Returns
TypeDescription
Parser<StartupConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public StartupConfig getDefaultInstanceForType()
Returns
TypeDescription
StartupConfig

getParserForType()

public Parser<StartupConfig> getParserForType()
Returns
TypeDescription
Parser<StartupConfig>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StartupConfig.Builder newBuilderForType()
Returns
TypeDescription
StartupConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StartupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StartupConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StartupConfig.Builder toBuilder()
Returns
TypeDescription
StartupConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException