Class NodeInitializationAction.Builder (4.45.0)

public static final class NodeInitializationAction.Builder extends GeneratedMessageV3.Builder<NodeInitializationAction.Builder> implements NodeInitializationActionOrBuilder

Specifies an executable to run on a fully configured node and a timeout period for executable completion.

Protobuf type google.cloud.dataproc.v1.NodeInitializationAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeInitializationAction build()
Returns
Type Description
NodeInitializationAction

buildPartial()

public NodeInitializationAction buildPartial()
Returns
Type Description
NodeInitializationAction

clear()

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

clearExecutableFile()

public NodeInitializationAction.Builder clearExecutableFile()

Required. Cloud Storage URI of executable file.

string executable_file = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NodeInitializationAction.Builder

This builder for chaining.

clearExecutionTimeout()

public NodeInitializationAction.Builder clearExecutionTimeout()

Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).

Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.

.google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeInitializationAction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NodeInitializationAction getDefaultInstanceForType()
Returns
Type Description
NodeInitializationAction

getDescriptorForType()

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

getExecutableFile()

public String getExecutableFile()

Required. Cloud Storage URI of executable file.

string executable_file = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The executableFile.

getExecutableFileBytes()

public ByteString getExecutableFileBytes()

Required. Cloud Storage URI of executable file.

string executable_file = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for executableFile.

getExecutionTimeout()

public Duration getExecutionTimeout()

Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).

Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.

.google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The executionTimeout.

getExecutionTimeoutBuilder()

public Duration.Builder getExecutionTimeoutBuilder()

Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).

Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.

.google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getExecutionTimeoutOrBuilder()

public DurationOrBuilder getExecutionTimeoutOrBuilder()

Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).

Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.

.google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

hasExecutionTimeout()

public boolean hasExecutionTimeout()

Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).

Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.

.google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the executionTimeout field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExecutionTimeout(Duration value)

public NodeInitializationAction.Builder mergeExecutionTimeout(Duration value)

Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).

Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.

.google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
NodeInitializationAction.Builder

mergeFrom(NodeInitializationAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExecutableFile(String value)

public NodeInitializationAction.Builder setExecutableFile(String value)

Required. Cloud Storage URI of executable file.

string executable_file = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The executableFile to set.

Returns
Type Description
NodeInitializationAction.Builder

This builder for chaining.

setExecutableFileBytes(ByteString value)

public NodeInitializationAction.Builder setExecutableFileBytes(ByteString value)

Required. Cloud Storage URI of executable file.

string executable_file = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for executableFile to set.

Returns
Type Description
NodeInitializationAction.Builder

This builder for chaining.

setExecutionTimeout(Duration value)

public NodeInitializationAction.Builder setExecutionTimeout(Duration value)

Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).

Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.

.google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
NodeInitializationAction.Builder

setExecutionTimeout(Duration.Builder builderForValue)

public NodeInitializationAction.Builder setExecutionTimeout(Duration.Builder builderForValue)

Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration).

Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.

.google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NodeInitializationAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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