Class WorkflowTemplate.Builder (4.19.0)

public static final class WorkflowTemplate.Builder extends GeneratedMessageV3.Builder<WorkflowTemplate.Builder> implements WorkflowTemplateOrBuilder

A Dataproc workflow template resource.

Protobuf type google.cloud.dataproc.v1.WorkflowTemplate

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllJobs(Iterable<? extends OrderedJob> values)

public WorkflowTemplate.Builder addAllJobs(Iterable<? extends OrderedJob> values)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.OrderedJob>
Returns
TypeDescription
WorkflowTemplate.Builder

addAllParameters(Iterable<? extends TemplateParameter> values)

public WorkflowTemplate.Builder addAllParameters(Iterable<? extends TemplateParameter> values)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.TemplateParameter>
Returns
TypeDescription
WorkflowTemplate.Builder

addJobs(OrderedJob value)

public WorkflowTemplate.Builder addJobs(OrderedJob value)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueOrderedJob
Returns
TypeDescription
WorkflowTemplate.Builder

addJobs(OrderedJob.Builder builderForValue)

public WorkflowTemplate.Builder addJobs(OrderedJob.Builder builderForValue)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueOrderedJob.Builder
Returns
TypeDescription
WorkflowTemplate.Builder

addJobs(int index, OrderedJob value)

public WorkflowTemplate.Builder addJobs(int index, OrderedJob value)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueOrderedJob
Returns
TypeDescription
WorkflowTemplate.Builder

addJobs(int index, OrderedJob.Builder builderForValue)

public WorkflowTemplate.Builder addJobs(int index, OrderedJob.Builder builderForValue)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueOrderedJob.Builder
Returns
TypeDescription
WorkflowTemplate.Builder

addJobsBuilder()

public OrderedJob.Builder addJobsBuilder()

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OrderedJob.Builder

addJobsBuilder(int index)

public OrderedJob.Builder addJobsBuilder(int index)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderedJob.Builder

addParameters(TemplateParameter value)

public WorkflowTemplate.Builder addParameters(TemplateParameter value)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTemplateParameter
Returns
TypeDescription
WorkflowTemplate.Builder

addParameters(TemplateParameter.Builder builderForValue)

public WorkflowTemplate.Builder addParameters(TemplateParameter.Builder builderForValue)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueTemplateParameter.Builder
Returns
TypeDescription
WorkflowTemplate.Builder

addParameters(int index, TemplateParameter value)

public WorkflowTemplate.Builder addParameters(int index, TemplateParameter value)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueTemplateParameter
Returns
TypeDescription
WorkflowTemplate.Builder

addParameters(int index, TemplateParameter.Builder builderForValue)

public WorkflowTemplate.Builder addParameters(int index, TemplateParameter.Builder builderForValue)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueTemplateParameter.Builder
Returns
TypeDescription
WorkflowTemplate.Builder

addParametersBuilder()

public TemplateParameter.Builder addParametersBuilder()

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TemplateParameter.Builder

addParametersBuilder(int index)

public TemplateParameter.Builder addParametersBuilder(int index)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
TemplateParameter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkflowTemplate build()
Returns
TypeDescription
WorkflowTemplate

buildPartial()

public WorkflowTemplate buildPartial()
Returns
TypeDescription
WorkflowTemplate

clear()

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

clearCreateTime()

public WorkflowTemplate.Builder clearCreateTime()

Output only. The time template was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkflowTemplate.Builder

clearDagTimeout()

public WorkflowTemplate.Builder clearDagTimeout()

Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.

.google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
WorkflowTemplate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public WorkflowTemplate.Builder clearId()

string id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplate.Builder

This builder for chaining.

clearJobs()

public WorkflowTemplate.Builder clearJobs()

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplate.Builder

clearLabels()

public WorkflowTemplate.Builder clearLabels()
Returns
TypeDescription
WorkflowTemplate.Builder

clearName()

public WorkflowTemplate.Builder clearName()

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 name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkflowTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParameters()

public WorkflowTemplate.Builder clearParameters()

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
WorkflowTemplate.Builder

clearPlacement()

public WorkflowTemplate.Builder clearPlacement()

Required. WorkflowTemplate scheduling information.

.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplate.Builder

clearUpdateTime()

public WorkflowTemplate.Builder clearUpdateTime()

Output only. The time template was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkflowTemplate.Builder

clearVersion()

public WorkflowTemplate.Builder clearVersion()

Optional. Used to perform a consistent read-modify-write.

This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.

int32 version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
WorkflowTemplate.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035.

Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.

No more than 32 labels can be associated with a template.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time template was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time template was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time template was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDagTimeout()

public Duration getDagTimeout()

Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.

.google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The dagTimeout.

getDagTimeoutBuilder()

public Duration.Builder getDagTimeoutBuilder()

Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.

.google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getDagTimeoutOrBuilder()

public DurationOrBuilder getDagTimeoutOrBuilder()

Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.

.google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public WorkflowTemplate getDefaultInstanceForType()
Returns
TypeDescription
WorkflowTemplate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

string id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

string id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for id.

getJobs(int index)

public OrderedJob getJobs(int index)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderedJob

getJobsBuilder(int index)

public OrderedJob.Builder getJobsBuilder(int index)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderedJob.Builder

getJobsBuilderList()

public List<OrderedJob.Builder> getJobsBuilderList()

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getJobsCount()

public int getJobsCount()

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getJobsList()

public List<OrderedJob> getJobsList()

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<OrderedJob>

getJobsOrBuilder(int index)

public OrderedJobOrBuilder getJobsOrBuilder(int index)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderedJobOrBuilder

getJobsOrBuilderList()

public List<? extends OrderedJobOrBuilder> getJobsOrBuilderList()

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.dataproc.v1.OrderedJobOrBuilder>

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035.

Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.

No more than 32 labels can be associated with a template.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035.

Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.

No more than 32 labels can be associated with a template.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035.

Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.

No more than 32 labels can be associated with a template.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035.

Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.

No more than 32 labels can be associated with a template.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

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 name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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 name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getParameters(int index)

public TemplateParameter getParameters(int index)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
TemplateParameter

getParametersBuilder(int index)

public TemplateParameter.Builder getParametersBuilder(int index)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
TemplateParameter.Builder

getParametersBuilderList()

public List<TemplateParameter.Builder> getParametersBuilderList()

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getParametersCount()

public int getParametersCount()

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getParametersList()

public List<TemplateParameter> getParametersList()

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<TemplateParameter>

getParametersOrBuilder(int index)

public TemplateParameterOrBuilder getParametersOrBuilder(int index)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
TemplateParameterOrBuilder

getParametersOrBuilderList()

public List<? extends TemplateParameterOrBuilder> getParametersOrBuilderList()

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.dataproc.v1.TemplateParameterOrBuilder>

getPlacement()

public WorkflowTemplatePlacement getPlacement()

Required. WorkflowTemplate scheduling information.

.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplatePlacement

The placement.

getPlacementBuilder()

public WorkflowTemplatePlacement.Builder getPlacementBuilder()

Required. WorkflowTemplate scheduling information.

.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplatePlacement.Builder

getPlacementOrBuilder()

public WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder()

Required. WorkflowTemplate scheduling information.

.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplatePlacementOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time template was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time template was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time template was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getVersion()

public int getVersion()

Optional. Used to perform a consistent read-modify-write.

This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.

int32 version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The version.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time template was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDagTimeout()

public boolean hasDagTimeout()

Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.

.google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the dagTimeout field is set.

hasPlacement()

public boolean hasPlacement()

Required. WorkflowTemplate scheduling information.

.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the placement field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time template was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public WorkflowTemplate.Builder mergeCreateTime(Timestamp value)

Output only. The time template was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkflowTemplate.Builder

mergeDagTimeout(Duration value)

public WorkflowTemplate.Builder mergeDagTimeout(Duration value)

Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.

.google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
WorkflowTemplate.Builder

mergeFrom(WorkflowTemplate other)

public WorkflowTemplate.Builder mergeFrom(WorkflowTemplate other)
Parameter
NameDescription
otherWorkflowTemplate
Returns
TypeDescription
WorkflowTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePlacement(WorkflowTemplatePlacement value)

public WorkflowTemplate.Builder mergePlacement(WorkflowTemplatePlacement value)

Required. WorkflowTemplate scheduling information.

.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkflowTemplatePlacement
Returns
TypeDescription
WorkflowTemplate.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkflowTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkflowTemplate.Builder
Overrides

mergeUpdateTime(Timestamp value)

public WorkflowTemplate.Builder mergeUpdateTime(Timestamp value)

Output only. The time template was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkflowTemplate.Builder

putAllLabels(Map<String,String> values)

public WorkflowTemplate.Builder putAllLabels(Map<String,String> values)

Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035.

Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.

No more than 32 labels can be associated with a template.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
WorkflowTemplate.Builder

putLabels(String key, String value)

public WorkflowTemplate.Builder putLabels(String key, String value)

Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035.

Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.

No more than 32 labels can be associated with a template.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
WorkflowTemplate.Builder

removeJobs(int index)

public WorkflowTemplate.Builder removeJobs(int index)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkflowTemplate.Builder

removeLabels(String key)

public WorkflowTemplate.Builder removeLabels(String key)

Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.

Label keys must contain 1 to 63 characters, and must conform to RFC 1035.

Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.

No more than 32 labels can be associated with a template.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
WorkflowTemplate.Builder

removeParameters(int index)

public WorkflowTemplate.Builder removeParameters(int index)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkflowTemplate.Builder

setCreateTime(Timestamp value)

public WorkflowTemplate.Builder setCreateTime(Timestamp value)

Output only. The time template was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkflowTemplate.Builder

setCreateTime(Timestamp.Builder builderForValue)

public WorkflowTemplate.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time template was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkflowTemplate.Builder

setDagTimeout(Duration value)

public WorkflowTemplate.Builder setDagTimeout(Duration value)

Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.

.google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
WorkflowTemplate.Builder

setDagTimeout(Duration.Builder builderForValue)

public WorkflowTemplate.Builder setDagTimeout(Duration.Builder builderForValue)

Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.

.google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkflowTemplate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public WorkflowTemplate.Builder setId(String value)

string id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
WorkflowTemplate.Builder

This builder for chaining.

setIdBytes(ByteString value)

public WorkflowTemplate.Builder setIdBytes(ByteString value)

string id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
WorkflowTemplate.Builder

This builder for chaining.

setJobs(int index, OrderedJob value)

public WorkflowTemplate.Builder setJobs(int index, OrderedJob value)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueOrderedJob
Returns
TypeDescription
WorkflowTemplate.Builder

setJobs(int index, OrderedJob.Builder builderForValue)

public WorkflowTemplate.Builder setJobs(int index, OrderedJob.Builder builderForValue)

Required. The Directed Acyclic Graph of Jobs to submit.

repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueOrderedJob.Builder
Returns
TypeDescription
WorkflowTemplate.Builder

setName(String value)

public WorkflowTemplate.Builder setName(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 name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
WorkflowTemplate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WorkflowTemplate.Builder setNameBytes(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 name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
WorkflowTemplate.Builder

This builder for chaining.

setParameters(int index, TemplateParameter value)

public WorkflowTemplate.Builder setParameters(int index, TemplateParameter value)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueTemplateParameter
Returns
TypeDescription
WorkflowTemplate.Builder

setParameters(int index, TemplateParameter.Builder builderForValue)

public WorkflowTemplate.Builder setParameters(int index, TemplateParameter.Builder builderForValue)

Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.

repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueTemplateParameter.Builder
Returns
TypeDescription
WorkflowTemplate.Builder

setPlacement(WorkflowTemplatePlacement value)

public WorkflowTemplate.Builder setPlacement(WorkflowTemplatePlacement value)

Required. WorkflowTemplate scheduling information.

.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkflowTemplatePlacement
Returns
TypeDescription
WorkflowTemplate.Builder

setPlacement(WorkflowTemplatePlacement.Builder builderForValue)

public WorkflowTemplate.Builder setPlacement(WorkflowTemplatePlacement.Builder builderForValue)

Required. WorkflowTemplate scheduling information.

.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWorkflowTemplatePlacement.Builder
Returns
TypeDescription
WorkflowTemplate.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public WorkflowTemplate.Builder setUpdateTime(Timestamp value)

Output only. The time template was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkflowTemplate.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public WorkflowTemplate.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time template was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkflowTemplate.Builder

setVersion(int value)

public WorkflowTemplate.Builder setVersion(int value)

Optional. Used to perform a consistent read-modify-write.

This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.

int32 version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The version to set.

Returns
TypeDescription
WorkflowTemplate.Builder

This builder for chaining.