Class WorkflowNode.Builder (4.41.0)

public static final class WorkflowNode.Builder extends GeneratedMessageV3.Builder<WorkflowNode.Builder> implements WorkflowNodeOrBuilder

The workflow node.

Protobuf type google.cloud.dataproc.v1.WorkflowNode

Static Methods

getDescriptor()

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

Methods

addAllPrerequisiteStepIds(Iterable<String> values)

public WorkflowNode.Builder addAllPrerequisiteStepIds(Iterable<String> values)

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The prerequisiteStepIds to add.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

addPrerequisiteStepIds(String value)

public WorkflowNode.Builder addPrerequisiteStepIds(String value)

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The prerequisiteStepIds to add.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

addPrerequisiteStepIdsBytes(ByteString value)

public WorkflowNode.Builder addPrerequisiteStepIdsBytes(ByteString value)

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the prerequisiteStepIds to add.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkflowNode build()
Returns
Type Description
WorkflowNode

buildPartial()

public WorkflowNode buildPartial()
Returns
Type Description
WorkflowNode

clear()

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

clearError()

public WorkflowNode.Builder clearError()

Output only. The error detail.

string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearJobId()

public WorkflowNode.Builder clearJobId()

Output only. The job id; populated after the node enters RUNNING state.

string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrerequisiteStepIds()

public WorkflowNode.Builder clearPrerequisiteStepIds()

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

clearState()

public WorkflowNode.Builder clearState()

Output only. The node state.

.google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

clearStepId()

public WorkflowNode.Builder clearStepId()

Output only. The name of the node.

string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WorkflowNode getDefaultInstanceForType()
Returns
Type Description
WorkflowNode

getDescriptorForType()

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

getError()

public String getError()

Output only. The error detail.

string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

Output only. The error detail.

string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for error.

getJobId()

public String getJobId()

Output only. The job id; populated after the node enters RUNNING state.

string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

Output only. The job id; populated after the node enters RUNNING state.

string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for jobId.

getPrerequisiteStepIds(int index)

public String getPrerequisiteStepIds(int index)

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The prerequisiteStepIds at the given index.

getPrerequisiteStepIdsBytes(int index)

public ByteString getPrerequisiteStepIdsBytes(int index)

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the prerequisiteStepIds at the given index.

getPrerequisiteStepIdsCount()

public int getPrerequisiteStepIdsCount()

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of prerequisiteStepIds.

getPrerequisiteStepIdsList()

public ProtocolStringList getPrerequisiteStepIdsList()

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the prerequisiteStepIds.

getState()

public WorkflowNode.NodeState getState()

Output only. The node state.

.google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowNode.NodeState

The state.

getStateValue()

public int getStateValue()

Output only. The node state.

.google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getStepId()

public String getStepId()

Output only. The name of the node.

string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stepId.

getStepIdBytes()

public ByteString getStepIdBytes()

Output only. The name of the node.

string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stepId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkflowNode other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setError(String value)

public WorkflowNode.Builder setError(String value)

Output only. The error detail.

string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The error to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

setErrorBytes(ByteString value)

public WorkflowNode.Builder setErrorBytes(ByteString value)

Output only. The error detail.

string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for error to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobId(String value)

public WorkflowNode.Builder setJobId(String value)

Output only. The job id; populated after the node enters RUNNING state.

string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The jobId to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

setJobIdBytes(ByteString value)

public WorkflowNode.Builder setJobIdBytes(ByteString value)

Output only. The job id; populated after the node enters RUNNING state.

string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for jobId to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

setPrerequisiteStepIds(int index, String value)

public WorkflowNode.Builder setPrerequisiteStepIds(int index, String value)

Output only. Node's prerequisite nodes.

repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The prerequisiteStepIds to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

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

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

setState(WorkflowNode.NodeState value)

public WorkflowNode.Builder setState(WorkflowNode.NodeState value)

Output only. The node state.

.google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkflowNode.NodeState

The state to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

setStateValue(int value)

public WorkflowNode.Builder setStateValue(int value)

Output only. The node state.

.google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

setStepId(String value)

public WorkflowNode.Builder setStepId(String value)

Output only. The name of the node.

string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The stepId to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

setStepIdBytes(ByteString value)

public WorkflowNode.Builder setStepIdBytes(ByteString value)

Output only. The name of the node.

string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for stepId to set.

Returns
Type Description
WorkflowNode.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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