Class WorkflowTemplate.Builder

  • All Implemented Interfaces:
    WorkflowTemplateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    WorkflowTemplate

    public static final class WorkflowTemplate.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
    implements WorkflowTemplateOrBuilder
     A Dataproc workflow template resource.
     
    Protobuf type google.cloud.dataproc.v1.WorkflowTemplate
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • clear

        public WorkflowTemplate.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • getDefaultInstanceForType

        public WorkflowTemplate getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public WorkflowTemplate build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public WorkflowTemplate buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public WorkflowTemplate.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • setField

        public WorkflowTemplate.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • clearField

        public WorkflowTemplate.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • clearOneof

        public WorkflowTemplate.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • setRepeatedField

        public WorkflowTemplate.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • addRepeatedField

        public WorkflowTemplate.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • mergeFrom

        public WorkflowTemplate.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WorkflowTemplate.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • mergeFrom

        public WorkflowTemplate.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WorkflowTemplate.Builder>
        Throws:
        IOException
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
        string id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getIdBytes in interface WorkflowTemplateOrBuilder
        Returns:
        The bytes for id.
      • setId

        public WorkflowTemplate.Builder setId​(String value)
        string id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public WorkflowTemplate.Builder clearId()
        string id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setIdBytes

        public WorkflowTemplate.Builder setIdBytes​(com.google.protobuf.ByteString value)
        string id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getName in interface WorkflowTemplateOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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];
        Specified by:
        getNameBytes in interface WorkflowTemplateOrBuilder
        Returns:
        The bytes for name.
      • setName

        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];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setNameBytes

        public WorkflowTemplate.Builder setNameBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getVersion in interface WorkflowTemplateOrBuilder
        Returns:
        The version.
      • setVersion

        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];
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time template was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface WorkflowTemplateOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time template was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface WorkflowTemplateOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public WorkflowTemplate.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time template was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public WorkflowTemplate.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time template was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public WorkflowTemplate.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time template was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public WorkflowTemplate.Builder clearCreateTime()
         Output only. The time template was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time template was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time template was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface WorkflowTemplateOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time template was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface WorkflowTemplateOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time template was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface WorkflowTemplateOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public WorkflowTemplate.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time template was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public WorkflowTemplate.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time template was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public WorkflowTemplate.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time template was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The time template was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time template was last updated.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface WorkflowTemplateOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: WorkflowTemplateOrBuilder
         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](https://www.ietf.org/rfc/rfc1035.txt).
        
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
        
         No more than 32 labels can be associated with a template.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface WorkflowTemplateOrBuilder
      • containsLabels

        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](https://www.ietf.org/rfc/rfc1035.txt).
        
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
        
         No more than 32 labels can be associated with a template.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface WorkflowTemplateOrBuilder
      • 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](https://www.ietf.org/rfc/rfc1035.txt).
        
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
        
         No more than 32 labels can be associated with a template.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface WorkflowTemplateOrBuilder
      • getLabelsOrDefault

        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](https://www.ietf.org/rfc/rfc1035.txt).
        
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
        
         No more than 32 labels can be associated with a template.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface WorkflowTemplateOrBuilder
      • getLabelsOrThrow

        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](https://www.ietf.org/rfc/rfc1035.txt).
        
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
        
         No more than 32 labels can be associated with a template.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface WorkflowTemplateOrBuilder
      • removeLabels

        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](https://www.ietf.org/rfc/rfc1035.txt).
        
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
        
         No more than 32 labels can be associated with a template.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        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](https://www.ietf.org/rfc/rfc1035.txt).
        
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
        
         No more than 32 labels can be associated with a template.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • putAllLabels

        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](https://www.ietf.org/rfc/rfc1035.txt).
        
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
        
         No more than 32 labels can be associated with a template.
         
        map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      • hasPlacement

        public boolean hasPlacement()
         Required. WorkflowTemplate scheduling information.
         
        .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasPlacement in interface WorkflowTemplateOrBuilder
        Returns:
        Whether the placement field is set.
      • getPlacement

        public WorkflowTemplatePlacement getPlacement()
         Required. WorkflowTemplate scheduling information.
         
        .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPlacement in interface WorkflowTemplateOrBuilder
        Returns:
        The placement.
      • setPlacement

        public WorkflowTemplate.Builder setPlacement​(WorkflowTemplatePlacement value)
         Required. WorkflowTemplate scheduling information.
         
        .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];
      • mergePlacement

        public WorkflowTemplate.Builder mergePlacement​(WorkflowTemplatePlacement value)
         Required. WorkflowTemplate scheduling information.
         
        .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];
      • clearPlacement

        public WorkflowTemplate.Builder clearPlacement()
         Required. WorkflowTemplate scheduling information.
         
        .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];
      • getPlacementBuilder

        public WorkflowTemplatePlacement.Builder getPlacementBuilder()
         Required. WorkflowTemplate scheduling information.
         
        .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED];
      • 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];
        Specified by:
        getJobsList in interface WorkflowTemplateOrBuilder
      • 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];
        Specified by:
        getJobsCount in interface WorkflowTemplateOrBuilder
      • getJobs

        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];
        Specified by:
        getJobs in interface WorkflowTemplateOrBuilder
      • setJobs

        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];
      • setJobs

        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];
      • addJobs

        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];
      • addJobs

        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];
      • addJobs

        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];
      • addJobs

        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];
      • addAllJobs

        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];
      • 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];
      • removeJobs

        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];
      • getJobsBuilder

        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];
      • getJobsOrBuilder

        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];
        Specified by:
        getJobsOrBuilder in interface WorkflowTemplateOrBuilder
      • 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];
      • addJobsBuilder

        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];
      • 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];
      • 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];
        Specified by:
        getParametersList in interface WorkflowTemplateOrBuilder
      • 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];
        Specified by:
        getParametersCount in interface WorkflowTemplateOrBuilder
      • getParameters

        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];
        Specified by:
        getParameters in interface WorkflowTemplateOrBuilder
      • setParameters

        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];
      • setParameters

        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];
      • addParameters

        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];
      • addParameters

        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];
      • addParameters

        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];
      • addParameters

        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];
      • addAllParameters

        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];
      • 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];
      • removeParameters

        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];
      • getParametersBuilder

        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];
      • getParametersOrBuilder

        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];
        Specified by:
        getParametersOrBuilder in interface WorkflowTemplateOrBuilder
      • 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];
        Specified by:
        getParametersOrBuilderList in interface WorkflowTemplateOrBuilder
      • 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];
      • addParametersBuilder

        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];
      • 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];
      • hasDagTimeout

        public boolean hasDagTimeout()
         Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
         [JSON representation of
         duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         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](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
         the cluster is deleted.
         
        .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasDagTimeout in interface WorkflowTemplateOrBuilder
        Returns:
        Whether the dagTimeout field is set.
      • getDagTimeout

        public com.google.protobuf.Duration getDagTimeout()
         Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
         [JSON representation of
         duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         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](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
         the cluster is deleted.
         
        .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDagTimeout in interface WorkflowTemplateOrBuilder
        Returns:
        The dagTimeout.
      • setDagTimeout

        public WorkflowTemplate.Builder setDagTimeout​(com.google.protobuf.Duration value)
         Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
         [JSON representation of
         duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         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](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
         the cluster is deleted.
         
        .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
      • setDagTimeout

        public WorkflowTemplate.Builder setDagTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
         [JSON representation of
         duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         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](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
         the cluster is deleted.
         
        .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
      • mergeDagTimeout

        public WorkflowTemplate.Builder mergeDagTimeout​(com.google.protobuf.Duration value)
         Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
         [JSON representation of
         duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         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](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
         the cluster is deleted.
         
        .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
      • clearDagTimeout

        public WorkflowTemplate.Builder clearDagTimeout()
         Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
         [JSON representation of
         duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         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](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
         the cluster is deleted.
         
        .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
      • getDagTimeoutBuilder

        public com.google.protobuf.Duration.Builder getDagTimeoutBuilder()
         Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
         [JSON representation of
         duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         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](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
         the cluster is deleted.
         
        .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
      • getDagTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder()
         Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
         [JSON representation of
         duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         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](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
         the cluster is deleted.
         
        .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDagTimeoutOrBuilder in interface WorkflowTemplateOrBuilder
      • setUnknownFields

        public final WorkflowTemplate.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>
      • mergeUnknownFields

        public final WorkflowTemplate.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTemplate.Builder>