Class WorkflowNode.Builder (4.16.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
TypeDescription
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
NameDescription
valuesIterable<String>

The prerequisiteStepIds to add.

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

The prerequisiteStepIds to add.

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

The bytes of the prerequisiteStepIds to add.

Returns
TypeDescription
WorkflowNode.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkflowNode build()
Returns
TypeDescription
WorkflowNode

buildPartial()

public WorkflowNode buildPartial()
Returns
TypeDescription
WorkflowNode

clear()

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

clearError()

public WorkflowNode.Builder clearError()

Output only. The error detail.

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

Returns
TypeDescription
WorkflowNode.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WorkflowNode.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
WorkflowNode.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkflowNode.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
WorkflowNode.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WorkflowNode getDefaultInstanceForType()
Returns
TypeDescription
WorkflowNode

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public String getError()

Output only. The error detail.

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

Returns
TypeDescription
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

Output only. The error detail.

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

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

The index of the element to return.

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

The index of the value to return.

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

The bytes for stepId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkflowNode other)

public WorkflowNode.Builder mergeFrom(WorkflowNode other)
Parameter
NameDescription
otherWorkflowNode
Returns
TypeDescription
WorkflowNode.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The error to set.

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

The bytes for error to set.

Returns
TypeDescription
WorkflowNode.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public WorkflowNode.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The jobId to set.

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

The bytes for jobId to set.

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

The index to set the value at.

valueString

The prerequisiteStepIds to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueWorkflowNode.NodeState

The state to set.

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

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

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

The stepId to set.

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

The bytes for stepId to set.

Returns
TypeDescription
WorkflowNode.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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