Class NodeInitializationAction.Builder (4.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeInitializationAction build()
Returns
TypeDescription
NodeInitializationAction

buildPartial()

public NodeInitializationAction buildPartial()
Returns
TypeDescription
NodeInitializationAction

clear()

public NodeInitializationAction.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NodeInitializationAction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NodeInitializationAction getDefaultInstanceForType()
Returns
TypeDescription
NodeInitializationAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExecutableFile()

public String getExecutableFile()

Required. Cloud Storage URI of executable file.

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

Returns
TypeDescription
String

The executableFile.

getExecutableFileBytes()

public ByteString getExecutableFileBytes()

Required. Cloud Storage URI of executable file.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the executionTimeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
NodeInitializationAction.Builder

mergeFrom(NodeInitializationAction other)

public NodeInitializationAction.Builder mergeFrom(NodeInitializationAction other)
Parameter
NameDescription
otherNodeInitializationAction
Returns
TypeDescription
NodeInitializationAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeInitializationAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The executableFile to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for executableFile to set.

Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
NodeInitializationAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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