Class WorkflowMetadata.Builder (4.50.0)

public static final class WorkflowMetadata.Builder extends GeneratedMessageV3.Builder<WorkflowMetadata.Builder> implements WorkflowMetadataOrBuilder

A Dataproc workflow template resource.

Protobuf type google.cloud.dataproc.v1.WorkflowMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkflowMetadata build()
Returns
Type Description
WorkflowMetadata

buildPartial()

public WorkflowMetadata buildPartial()
Returns
Type Description
WorkflowMetadata

clear()

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

clearClusterName()

public WorkflowMetadata.Builder clearClusterName()

Output only. The name of the target cluster.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

clearClusterUuid()

public WorkflowMetadata.Builder clearClusterUuid()

Output only. The UUID of target cluster.

string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

clearCreateCluster()

public WorkflowMetadata.Builder clearCreateCluster()

Output only. The create cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

clearDagEndTime()

public WorkflowMetadata.Builder clearDagEndTime()

Output only. DAG end time, only set for workflows with dag_timeout when DAG ends.

.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

clearDagStartTime()

public WorkflowMetadata.Builder clearDagStartTime()

Output only. DAG start time, only set for workflows with dag_timeout when DAG begins.

.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

clearDagTimeout()

public WorkflowMetadata.Builder clearDagTimeout()

Output only. The timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration).

.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

clearDeleteCluster()

public WorkflowMetadata.Builder clearDeleteCluster()

Output only. The delete cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

clearEndTime()

public WorkflowMetadata.Builder clearEndTime()

Output only. Workflow end time.

.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGraph()

public WorkflowMetadata.Builder clearGraph()

Output only. The workflow graph.

.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParameters()

public WorkflowMetadata.Builder clearParameters()
Returns
Type Description
WorkflowMetadata.Builder

clearStartTime()

public WorkflowMetadata.Builder clearStartTime()

Output only. Workflow start time.

.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

clearState()

public WorkflowMetadata.Builder clearState()

Output only. The workflow state.

.google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

clearTemplate()

public WorkflowMetadata.Builder clearTemplate()

Output only. The resource name of the workflow template as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

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

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

clearVersion()

public WorkflowMetadata.Builder clearVersion()

Output only. The version of template at the time of workflow instantiation.

int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

clone()

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

containsParameters(String key)

public boolean containsParameters(String key)

Map from parameter names to values that were used for those parameters.

map<string, string> parameters = 8;

Parameter
Name Description
key String
Returns
Type Description
boolean

getClusterName()

public String getClusterName()

Output only. The name of the target cluster.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clusterName.

getClusterNameBytes()

public ByteString getClusterNameBytes()

Output only. The name of the target cluster.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clusterName.

getClusterUuid()

public String getClusterUuid()

Output only. The UUID of target cluster.

string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clusterUuid.

getClusterUuidBytes()

public ByteString getClusterUuidBytes()

Output only. The UUID of target cluster.

string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clusterUuid.

getCreateCluster()

public ClusterOperation getCreateCluster()

Output only. The create cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ClusterOperation

The createCluster.

getCreateClusterBuilder()

public ClusterOperation.Builder getCreateClusterBuilder()

Output only. The create cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ClusterOperation.Builder

getCreateClusterOrBuilder()

public ClusterOperationOrBuilder getCreateClusterOrBuilder()

Output only. The create cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ClusterOperationOrBuilder

getDagEndTime()

public Timestamp getDagEndTime()

Output only. DAG end time, only set for workflows with dag_timeout when DAG ends.

.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The dagEndTime.

getDagEndTimeBuilder()

public Timestamp.Builder getDagEndTimeBuilder()

Output only. DAG end time, only set for workflows with dag_timeout when DAG ends.

.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDagEndTimeOrBuilder()

public TimestampOrBuilder getDagEndTimeOrBuilder()

Output only. DAG end time, only set for workflows with dag_timeout when DAG ends.

.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDagStartTime()

public Timestamp getDagStartTime()

Output only. DAG start time, only set for workflows with dag_timeout when DAG begins.

.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The dagStartTime.

getDagStartTimeBuilder()

public Timestamp.Builder getDagStartTimeBuilder()

Output only. DAG start time, only set for workflows with dag_timeout when DAG begins.

.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDagStartTimeOrBuilder()

public TimestampOrBuilder getDagStartTimeOrBuilder()

Output only. DAG start time, only set for workflows with dag_timeout when DAG begins.

.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDagTimeout()

public Duration getDagTimeout()

Output only. The timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration).

.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The dagTimeout.

getDagTimeoutBuilder()

public Duration.Builder getDagTimeoutBuilder()

Output only. The timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration).

.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDagTimeoutOrBuilder()

public DurationOrBuilder getDagTimeoutOrBuilder()

Output only. The timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration).

.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public WorkflowMetadata getDefaultInstanceForType()
Returns
Type Description
WorkflowMetadata

getDeleteCluster()

public ClusterOperation getDeleteCluster()

Output only. The delete cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ClusterOperation

The deleteCluster.

getDeleteClusterBuilder()

public ClusterOperation.Builder getDeleteClusterBuilder()

Output only. The delete cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ClusterOperation.Builder

getDeleteClusterOrBuilder()

public ClusterOperationOrBuilder getDeleteClusterOrBuilder()

Output only. The delete cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ClusterOperationOrBuilder

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Output only. Workflow end time.

.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. Workflow end time.

.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. Workflow end time.

.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getGraph()

public WorkflowGraph getGraph()

Output only. The workflow graph.

.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowGraph

The graph.

getGraphBuilder()

public WorkflowGraph.Builder getGraphBuilder()

Output only. The workflow graph.

.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowGraph.Builder

getGraphOrBuilder()

public WorkflowGraphOrBuilder getGraphOrBuilder()

Output only. The workflow graph.

.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowGraphOrBuilder

getMutableParameters() (deprecated)

public Map<String,String> getMutableParameters()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getParameters() (deprecated)

public Map<String,String> getParameters()

Use #getParametersMap() instead.

Returns
Type Description
Map<String,String>

getParametersCount()

public int getParametersCount()

Map from parameter names to values that were used for those parameters.

map<string, string> parameters = 8;

Returns
Type Description
int

getParametersMap()

public Map<String,String> getParametersMap()

Map from parameter names to values that were used for those parameters.

map<string, string> parameters = 8;

Returns
Type Description
Map<String,String>

getParametersOrDefault(String key, String defaultValue)

public String getParametersOrDefault(String key, String defaultValue)

Map from parameter names to values that were used for those parameters.

map<string, string> parameters = 8;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getParametersOrThrow(String key)

public String getParametersOrThrow(String key)

Map from parameter names to values that were used for those parameters.

map<string, string> parameters = 8;

Parameter
Name Description
key String
Returns
Type Description
String

getStartTime()

public Timestamp getStartTime()

Output only. Workflow start time.

.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. Workflow start time.

.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Workflow start time.

.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public WorkflowMetadata.State getState()

Output only. The workflow state.

.google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowMetadata.State

The state.

getStateValue()

public int getStateValue()

Output only. The workflow state.

.google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTemplate()

public String getTemplate()

Output only. The resource name of the workflow template as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

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

Returns
Type Description
String

The template.

getTemplateBytes()

public ByteString getTemplateBytes()

Output only. The resource name of the workflow template as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

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

Returns
Type Description
ByteString

The bytes for template.

getVersion()

public int getVersion()

Output only. The version of template at the time of workflow instantiation.

int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The version.

hasCreateCluster()

public boolean hasCreateCluster()

Output only. The create cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createCluster field is set.

hasDagEndTime()

public boolean hasDagEndTime()

Output only. DAG end time, only set for workflows with dag_timeout when DAG ends.

.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the dagEndTime field is set.

hasDagStartTime()

public boolean hasDagStartTime()

Output only. DAG start time, only set for workflows with dag_timeout when DAG begins.

.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the dagStartTime field is set.

hasDagTimeout()

public boolean hasDagTimeout()

Output only. The timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration).

.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the dagTimeout field is set.

hasDeleteCluster()

public boolean hasDeleteCluster()

Output only. The delete cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteCluster field is set.

hasEndTime()

public boolean hasEndTime()

Output only. Workflow end time.

.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasGraph()

public boolean hasGraph()

Output only. The workflow graph.

.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the graph field is set.

hasStartTime()

public boolean hasStartTime()

Output only. Workflow start time.

.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateCluster(ClusterOperation value)

public WorkflowMetadata.Builder mergeCreateCluster(ClusterOperation value)

Output only. The create cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ClusterOperation
Returns
Type Description
WorkflowMetadata.Builder

mergeDagEndTime(Timestamp value)

public WorkflowMetadata.Builder mergeDagEndTime(Timestamp value)

Output only. DAG end time, only set for workflows with dag_timeout when DAG ends.

.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
WorkflowMetadata.Builder

mergeDagStartTime(Timestamp value)

public WorkflowMetadata.Builder mergeDagStartTime(Timestamp value)

Output only. DAG start time, only set for workflows with dag_timeout when DAG begins.

.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
WorkflowMetadata.Builder

mergeDagTimeout(Duration value)

public WorkflowMetadata.Builder mergeDagTimeout(Duration value)

Output only. The timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration).

.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
WorkflowMetadata.Builder

mergeDeleteCluster(ClusterOperation value)

public WorkflowMetadata.Builder mergeDeleteCluster(ClusterOperation value)

Output only. The delete cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ClusterOperation
Returns
Type Description
WorkflowMetadata.Builder

mergeEndTime(Timestamp value)

public WorkflowMetadata.Builder mergeEndTime(Timestamp value)

Output only. Workflow end time.

.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
WorkflowMetadata.Builder

mergeFrom(WorkflowMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGraph(WorkflowGraph value)

public WorkflowMetadata.Builder mergeGraph(WorkflowGraph value)

Output only. The workflow graph.

.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkflowGraph
Returns
Type Description
WorkflowMetadata.Builder

mergeStartTime(Timestamp value)

public WorkflowMetadata.Builder mergeStartTime(Timestamp value)

Output only. Workflow start time.

.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
WorkflowMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllParameters(Map<String,String> values)

public WorkflowMetadata.Builder putAllParameters(Map<String,String> values)

Map from parameter names to values that were used for those parameters.

map<string, string> parameters = 8;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
WorkflowMetadata.Builder

putParameters(String key, String value)

public WorkflowMetadata.Builder putParameters(String key, String value)

Map from parameter names to values that were used for those parameters.

map<string, string> parameters = 8;

Parameters
Name Description
key String
value String
Returns
Type Description
WorkflowMetadata.Builder

removeParameters(String key)

public WorkflowMetadata.Builder removeParameters(String key)

Map from parameter names to values that were used for those parameters.

map<string, string> parameters = 8;

Parameter
Name Description
key String
Returns
Type Description
WorkflowMetadata.Builder

setClusterName(String value)

public WorkflowMetadata.Builder setClusterName(String value)

Output only. The name of the target cluster.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clusterName to set.

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

setClusterNameBytes(ByteString value)

public WorkflowMetadata.Builder setClusterNameBytes(ByteString value)

Output only. The name of the target cluster.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clusterName to set.

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

setClusterUuid(String value)

public WorkflowMetadata.Builder setClusterUuid(String value)

Output only. The UUID of target cluster.

string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clusterUuid to set.

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

setClusterUuidBytes(ByteString value)

public WorkflowMetadata.Builder setClusterUuidBytes(ByteString value)

Output only. The UUID of target cluster.

string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clusterUuid to set.

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

setCreateCluster(ClusterOperation value)

public WorkflowMetadata.Builder setCreateCluster(ClusterOperation value)

Output only. The create cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ClusterOperation
Returns
Type Description
WorkflowMetadata.Builder

setCreateCluster(ClusterOperation.Builder builderForValue)

public WorkflowMetadata.Builder setCreateCluster(ClusterOperation.Builder builderForValue)

Output only. The create cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ClusterOperation.Builder
Returns
Type Description
WorkflowMetadata.Builder

setDagEndTime(Timestamp value)

public WorkflowMetadata.Builder setDagEndTime(Timestamp value)

Output only. DAG end time, only set for workflows with dag_timeout when DAG ends.

.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
WorkflowMetadata.Builder

setDagEndTime(Timestamp.Builder builderForValue)

public WorkflowMetadata.Builder setDagEndTime(Timestamp.Builder builderForValue)

Output only. DAG end time, only set for workflows with dag_timeout when DAG ends.

.google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WorkflowMetadata.Builder

setDagStartTime(Timestamp value)

public WorkflowMetadata.Builder setDagStartTime(Timestamp value)

Output only. DAG start time, only set for workflows with dag_timeout when DAG begins.

.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
WorkflowMetadata.Builder

setDagStartTime(Timestamp.Builder builderForValue)

public WorkflowMetadata.Builder setDagStartTime(Timestamp.Builder builderForValue)

Output only. DAG start time, only set for workflows with dag_timeout when DAG begins.

.google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WorkflowMetadata.Builder

setDagTimeout(Duration value)

public WorkflowMetadata.Builder setDagTimeout(Duration value)

Output only. The timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration).

.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
WorkflowMetadata.Builder

setDagTimeout(Duration.Builder builderForValue)

public WorkflowMetadata.Builder setDagTimeout(Duration.Builder builderForValue)

Output only. The timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration).

.google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WorkflowMetadata.Builder

setDeleteCluster(ClusterOperation value)

public WorkflowMetadata.Builder setDeleteCluster(ClusterOperation value)

Output only. The delete cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ClusterOperation
Returns
Type Description
WorkflowMetadata.Builder

setDeleteCluster(ClusterOperation.Builder builderForValue)

public WorkflowMetadata.Builder setDeleteCluster(ClusterOperation.Builder builderForValue)

Output only. The delete cluster operation metadata.

.google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ClusterOperation.Builder
Returns
Type Description
WorkflowMetadata.Builder

setEndTime(Timestamp value)

public WorkflowMetadata.Builder setEndTime(Timestamp value)

Output only. Workflow end time.

.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
WorkflowMetadata.Builder

setEndTime(Timestamp.Builder builderForValue)

public WorkflowMetadata.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. Workflow end time.

.google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WorkflowMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGraph(WorkflowGraph value)

public WorkflowMetadata.Builder setGraph(WorkflowGraph value)

Output only. The workflow graph.

.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkflowGraph
Returns
Type Description
WorkflowMetadata.Builder

setGraph(WorkflowGraph.Builder builderForValue)

public WorkflowMetadata.Builder setGraph(WorkflowGraph.Builder builderForValue)

Output only. The workflow graph.

.google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue WorkflowGraph.Builder
Returns
Type Description
WorkflowMetadata.Builder

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

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

setStartTime(Timestamp value)

public WorkflowMetadata.Builder setStartTime(Timestamp value)

Output only. Workflow start time.

.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
WorkflowMetadata.Builder

setStartTime(Timestamp.Builder builderForValue)

public WorkflowMetadata.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. Workflow start time.

.google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WorkflowMetadata.Builder

setState(WorkflowMetadata.State value)

public WorkflowMetadata.Builder setState(WorkflowMetadata.State value)

Output only. The workflow state.

.google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkflowMetadata.State

The state to set.

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

setStateValue(int value)

public WorkflowMetadata.Builder setStateValue(int value)

Output only. The workflow state.

.google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.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
WorkflowMetadata.Builder

This builder for chaining.

setTemplate(String value)

public WorkflowMetadata.Builder setTemplate(String value)

Output only. The resource name of the workflow template as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

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

Parameter
Name Description
value String

The template to set.

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

setTemplateBytes(ByteString value)

public WorkflowMetadata.Builder setTemplateBytes(ByteString value)

Output only. The resource name of the workflow template as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

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

Parameter
Name Description
value ByteString

The bytes for template to set.

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(int value)

public WorkflowMetadata.Builder setVersion(int value)

Output only. The version of template at the time of workflow instantiation.

int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The version to set.

Returns
Type Description
WorkflowMetadata.Builder

This builder for chaining.