Class Workflow.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Workflow.Builder>
com.google.cloud.workflows.v1.Workflow.Builder
All Implemented Interfaces:
WorkflowOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Workflow

public static final class Workflow.Builder extends com.google.protobuf.GeneratedMessage.Builder<Workflow.Builder> implements WorkflowOrBuilder
 Workflow program to be executed by Workflows.
 
Protobuf type google.cloud.workflows.v1.Workflow
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Workflow.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Workflow.Builder>
    • internalGetFieldAccessorTable

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

      public Workflow.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.GeneratedMessage.Builder<Workflow.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.GeneratedMessage.Builder<Workflow.Builder>
    • getDefaultInstanceForType

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

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

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

      public Workflow.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<Workflow.Builder>
    • mergeFrom

      public Workflow.Builder mergeFrom(Workflow other)
    • isInitialized

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

      public Workflow.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<Workflow.Builder>
      Throws:
      IOException
    • getSourceCodeCase

      public Workflow.SourceCodeCase getSourceCodeCase()
      Specified by:
      getSourceCodeCase in interface WorkflowOrBuilder
    • clearSourceCode

      public Workflow.Builder clearSourceCode()
    • getName

      public String getName()
       The resource name of the workflow.
       Format: projects/{project}/locations/{location}/workflows/{workflow}.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string name = 1;
      Specified by:
      getName in interface WorkflowOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name of the workflow.
       Format: projects/{project}/locations/{location}/workflows/{workflow}.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string name = 1;
      Specified by:
      getNameBytes in interface WorkflowOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Workflow.Builder setName(String value)
       The resource name of the workflow.
       Format: projects/{project}/locations/{location}/workflows/{workflow}.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Workflow.Builder clearName()
       The resource name of the workflow.
       Format: projects/{project}/locations/{location}/workflows/{workflow}.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Workflow.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name of the workflow.
       Format: projects/{project}/locations/{location}/workflows/{workflow}.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Description of the workflow provided by the user.
       Must be at most 1000 Unicode characters long.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string description = 2;
      Specified by:
      getDescription in interface WorkflowOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Description of the workflow provided by the user.
       Must be at most 1000 Unicode characters long.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface WorkflowOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Workflow.Builder setDescription(String value)
       Description of the workflow provided by the user.
       Must be at most 1000 Unicode characters long.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Workflow.Builder clearDescription()
       Description of the workflow provided by the user.
       Must be at most 1000 Unicode characters long.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Workflow.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Description of the workflow provided by the user.
       Must be at most 1000 Unicode characters long.
       This is a workflow-wide field and is not tied to a specific revision.
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the workflow deployment.
       
      .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface WorkflowOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Workflow.Builder setStateValue(int value)
       Output only. State of the workflow deployment.
       
      .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Workflow.State getState()
       Output only. State of the workflow deployment.
       
      .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface WorkflowOrBuilder
      Returns:
      The state.
    • setState

      public Workflow.Builder setState(Workflow.State value)
       Output only. State of the workflow deployment.
       
      .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Workflow.Builder clearState()
       Output only. State of the workflow deployment.
       
      .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getRevisionId

      public String getRevisionId()
       Output only. The revision of the workflow.
       A new revision of a workflow is created as a result of updating the
       following properties of a workflow:
      
       - [Service account][google.cloud.workflows.v1.Workflow.service_account]
       - [Workflow code to be
       executed][google.cloud.workflows.v1.Workflow.source_contents]
      
       The format is "000001-a4d", where the first six characters define
       the zero-padded revision ordinal number. They are followed by a hyphen and
       three hexadecimal random characters.
       
      string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionId in interface WorkflowOrBuilder
      Returns:
      The revisionId.
    • getRevisionIdBytes

      public com.google.protobuf.ByteString getRevisionIdBytes()
       Output only. The revision of the workflow.
       A new revision of a workflow is created as a result of updating the
       following properties of a workflow:
      
       - [Service account][google.cloud.workflows.v1.Workflow.service_account]
       - [Workflow code to be
       executed][google.cloud.workflows.v1.Workflow.source_contents]
      
       The format is "000001-a4d", where the first six characters define
       the zero-padded revision ordinal number. They are followed by a hyphen and
       three hexadecimal random characters.
       
      string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionIdBytes in interface WorkflowOrBuilder
      Returns:
      The bytes for revisionId.
    • setRevisionId

      public Workflow.Builder setRevisionId(String value)
       Output only. The revision of the workflow.
       A new revision of a workflow is created as a result of updating the
       following properties of a workflow:
      
       - [Service account][google.cloud.workflows.v1.Workflow.service_account]
       - [Workflow code to be
       executed][google.cloud.workflows.v1.Workflow.source_contents]
      
       The format is "000001-a4d", where the first six characters define
       the zero-padded revision ordinal number. They are followed by a hyphen and
       three hexadecimal random characters.
       
      string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The revisionId to set.
      Returns:
      This builder for chaining.
    • clearRevisionId

      public Workflow.Builder clearRevisionId()
       Output only. The revision of the workflow.
       A new revision of a workflow is created as a result of updating the
       following properties of a workflow:
      
       - [Service account][google.cloud.workflows.v1.Workflow.service_account]
       - [Workflow code to be
       executed][google.cloud.workflows.v1.Workflow.source_contents]
      
       The format is "000001-a4d", where the first six characters define
       the zero-padded revision ordinal number. They are followed by a hyphen and
       three hexadecimal random characters.
       
      string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRevisionIdBytes

      public Workflow.Builder setRevisionIdBytes(com.google.protobuf.ByteString value)
       Output only. The revision of the workflow.
       A new revision of a workflow is created as a result of updating the
       following properties of a workflow:
      
       - [Service account][google.cloud.workflows.v1.Workflow.service_account]
       - [Workflow code to be
       executed][google.cloud.workflows.v1.Workflow.source_contents]
      
       The format is "000001-a4d", where the first six characters define
       the zero-padded revision ordinal number. They are followed by a hyphen and
       three hexadecimal random characters.
       
      string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for revisionId to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp for when the workflow was created.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface WorkflowOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp for when the workflow was created.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface WorkflowOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Workflow.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp for when the workflow was created.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Workflow.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp for when the workflow was created.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Workflow.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp for when the workflow was created.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Workflow.Builder clearCreateTime()
       Output only. The timestamp for when the workflow was created.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp for when the workflow was created.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp for when the workflow was created.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface WorkflowOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp for when the workflow was last updated.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface WorkflowOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp for when the workflow was last updated.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface WorkflowOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Workflow.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp for when the workflow was last updated.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Workflow.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp for when the workflow was last updated.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Workflow.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp for when the workflow was last updated.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Workflow.Builder clearUpdateTime()
       Output only. The timestamp for when the workflow was last updated.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp for when the workflow was last updated.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp for when the workflow was last updated.
       This is a workflow-wide field and is not tied to a specific revision.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface WorkflowOrBuilder
    • hasRevisionCreateTime

      public boolean hasRevisionCreateTime()
       Output only. The timestamp for the latest revision of the workflow's
       creation.
       
      .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRevisionCreateTime in interface WorkflowOrBuilder
      Returns:
      Whether the revisionCreateTime field is set.
    • getRevisionCreateTime

      public com.google.protobuf.Timestamp getRevisionCreateTime()
       Output only. The timestamp for the latest revision of the workflow's
       creation.
       
      .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionCreateTime in interface WorkflowOrBuilder
      Returns:
      The revisionCreateTime.
    • setRevisionCreateTime

      public Workflow.Builder setRevisionCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp for the latest revision of the workflow's
       creation.
       
      .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setRevisionCreateTime

      public Workflow.Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp for the latest revision of the workflow's
       creation.
       
      .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeRevisionCreateTime

      public Workflow.Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp for the latest revision of the workflow's
       creation.
       
      .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearRevisionCreateTime

      public Workflow.Builder clearRevisionCreateTime()
       Output only. The timestamp for the latest revision of the workflow's
       creation.
       
      .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRevisionCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder()
       Output only. The timestamp for the latest revision of the workflow's
       creation.
       
      .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getRevisionCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder()
       Output only. The timestamp for the latest revision of the workflow's
       creation.
       
      .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionCreateTimeOrBuilder in interface WorkflowOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: WorkflowOrBuilder
       Labels associated with this workflow.
       Labels can contain at most 64 entries. Keys and values can be no longer
       than 63 characters and can only contain lowercase letters, numeric
       characters, underscores, and dashes. Label keys must start with a letter.
       International characters are allowed.
       This is a workflow-wide field and is not tied to a specific revision.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsCount in interface WorkflowOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels associated with this workflow.
       Labels can contain at most 64 entries. Keys and values can be no longer
       than 63 characters and can only contain lowercase letters, numeric
       characters, underscores, and dashes. Label keys must start with a letter.
       International characters are allowed.
       This is a workflow-wide field and is not tied to a specific revision.
       
      map<string, string> labels = 8;
      Specified by:
      containsLabels in interface WorkflowOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface WorkflowOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels associated with this workflow.
       Labels can contain at most 64 entries. Keys and values can be no longer
       than 63 characters and can only contain lowercase letters, numeric
       characters, underscores, and dashes. Label keys must start with a letter.
       International characters are allowed.
       This is a workflow-wide field and is not tied to a specific revision.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsMap in interface WorkflowOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels associated with this workflow.
       Labels can contain at most 64 entries. Keys and values can be no longer
       than 63 characters and can only contain lowercase letters, numeric
       characters, underscores, and dashes. Label keys must start with a letter.
       International characters are allowed.
       This is a workflow-wide field and is not tied to a specific revision.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsOrDefault in interface WorkflowOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels associated with this workflow.
       Labels can contain at most 64 entries. Keys and values can be no longer
       than 63 characters and can only contain lowercase letters, numeric
       characters, underscores, and dashes. Label keys must start with a letter.
       International characters are allowed.
       This is a workflow-wide field and is not tied to a specific revision.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsOrThrow in interface WorkflowOrBuilder
    • clearLabels

      public Workflow.Builder clearLabels()
    • removeLabels

      public Workflow.Builder removeLabels(String key)
       Labels associated with this workflow.
       Labels can contain at most 64 entries. Keys and values can be no longer
       than 63 characters and can only contain lowercase letters, numeric
       characters, underscores, and dashes. Label keys must start with a letter.
       International characters are allowed.
       This is a workflow-wide field and is not tied to a specific revision.
       
      map<string, string> labels = 8;
    • getMutableLabels

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

      public Workflow.Builder putLabels(String key, String value)
       Labels associated with this workflow.
       Labels can contain at most 64 entries. Keys and values can be no longer
       than 63 characters and can only contain lowercase letters, numeric
       characters, underscores, and dashes. Label keys must start with a letter.
       International characters are allowed.
       This is a workflow-wide field and is not tied to a specific revision.
       
      map<string, string> labels = 8;
    • putAllLabels

      public Workflow.Builder putAllLabels(Map<String,String> values)
       Labels associated with this workflow.
       Labels can contain at most 64 entries. Keys and values can be no longer
       than 63 characters and can only contain lowercase letters, numeric
       characters, underscores, and dashes. Label keys must start with a letter.
       International characters are allowed.
       This is a workflow-wide field and is not tied to a specific revision.
       
      map<string, string> labels = 8;
    • getServiceAccount

      public String getServiceAccount()
       The service account associated with the latest workflow version.
       This service account represents the identity of the workflow and determines
       what permissions the workflow has.
       Format: projects/{project}/serviceAccounts/{account} or {account}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account. The `{account}` value can be the
       `email` address or the `unique_id` of the service account.
      
       If not provided, workflow will use the project's default service account.
       Modifying this field for an existing workflow results in a new workflow
       revision.
       
      string service_account = 9;
      Specified by:
      getServiceAccount in interface WorkflowOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       The service account associated with the latest workflow version.
       This service account represents the identity of the workflow and determines
       what permissions the workflow has.
       Format: projects/{project}/serviceAccounts/{account} or {account}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account. The `{account}` value can be the
       `email` address or the `unique_id` of the service account.
      
       If not provided, workflow will use the project's default service account.
       Modifying this field for an existing workflow results in a new workflow
       revision.
       
      string service_account = 9;
      Specified by:
      getServiceAccountBytes in interface WorkflowOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public Workflow.Builder setServiceAccount(String value)
       The service account associated with the latest workflow version.
       This service account represents the identity of the workflow and determines
       what permissions the workflow has.
       Format: projects/{project}/serviceAccounts/{account} or {account}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account. The `{account}` value can be the
       `email` address or the `unique_id` of the service account.
      
       If not provided, workflow will use the project's default service account.
       Modifying this field for an existing workflow results in a new workflow
       revision.
       
      string service_account = 9;
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      public Workflow.Builder clearServiceAccount()
       The service account associated with the latest workflow version.
       This service account represents the identity of the workflow and determines
       what permissions the workflow has.
       Format: projects/{project}/serviceAccounts/{account} or {account}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account. The `{account}` value can be the
       `email` address or the `unique_id` of the service account.
      
       If not provided, workflow will use the project's default service account.
       Modifying this field for an existing workflow results in a new workflow
       revision.
       
      string service_account = 9;
      Returns:
      This builder for chaining.
    • setServiceAccountBytes

      public Workflow.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       The service account associated with the latest workflow version.
       This service account represents the identity of the workflow and determines
       what permissions the workflow has.
       Format: projects/{project}/serviceAccounts/{account} or {account}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account. The `{account}` value can be the
       `email` address or the `unique_id` of the service account.
      
       If not provided, workflow will use the project's default service account.
       Modifying this field for an existing workflow results in a new workflow
       revision.
       
      string service_account = 9;
      Parameters:
      value - The bytes for serviceAccount to set.
      Returns:
      This builder for chaining.
    • hasSourceContents

      public boolean hasSourceContents()
       Workflow code to be executed. The size limit is 128KB.
       
      string source_contents = 10;
      Specified by:
      hasSourceContents in interface WorkflowOrBuilder
      Returns:
      Whether the sourceContents field is set.
    • getSourceContents

      public String getSourceContents()
       Workflow code to be executed. The size limit is 128KB.
       
      string source_contents = 10;
      Specified by:
      getSourceContents in interface WorkflowOrBuilder
      Returns:
      The sourceContents.
    • getSourceContentsBytes

      public com.google.protobuf.ByteString getSourceContentsBytes()
       Workflow code to be executed. The size limit is 128KB.
       
      string source_contents = 10;
      Specified by:
      getSourceContentsBytes in interface WorkflowOrBuilder
      Returns:
      The bytes for sourceContents.
    • setSourceContents

      public Workflow.Builder setSourceContents(String value)
       Workflow code to be executed. The size limit is 128KB.
       
      string source_contents = 10;
      Parameters:
      value - The sourceContents to set.
      Returns:
      This builder for chaining.
    • clearSourceContents

      public Workflow.Builder clearSourceContents()
       Workflow code to be executed. The size limit is 128KB.
       
      string source_contents = 10;
      Returns:
      This builder for chaining.
    • setSourceContentsBytes

      public Workflow.Builder setSourceContentsBytes(com.google.protobuf.ByteString value)
       Workflow code to be executed. The size limit is 128KB.
       
      string source_contents = 10;
      Parameters:
      value - The bytes for sourceContents to set.
      Returns:
      This builder for chaining.
    • getCryptoKeyName

      public String getCryptoKeyName()
       Optional. The resource name of a KMS crypto key used to encrypt or decrypt
       the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account.
      
       If not provided, data associated with the workflow will not be
       CMEK-encrypted.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyName in interface WorkflowOrBuilder
      Returns:
      The cryptoKeyName.
    • getCryptoKeyNameBytes

      public com.google.protobuf.ByteString getCryptoKeyNameBytes()
       Optional. The resource name of a KMS crypto key used to encrypt or decrypt
       the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account.
      
       If not provided, data associated with the workflow will not be
       CMEK-encrypted.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyNameBytes in interface WorkflowOrBuilder
      Returns:
      The bytes for cryptoKeyName.
    • setCryptoKeyName

      public Workflow.Builder setCryptoKeyName(String value)
       Optional. The resource name of a KMS crypto key used to encrypt or decrypt
       the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account.
      
       If not provided, data associated with the workflow will not be
       CMEK-encrypted.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cryptoKeyName to set.
      Returns:
      This builder for chaining.
    • clearCryptoKeyName

      public Workflow.Builder clearCryptoKeyName()
       Optional. The resource name of a KMS crypto key used to encrypt or decrypt
       the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account.
      
       If not provided, data associated with the workflow will not be
       CMEK-encrypted.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCryptoKeyNameBytes

      public Workflow.Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value)
       Optional. The resource name of a KMS crypto key used to encrypt or decrypt
       the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
      
       Using `-` as a wildcard for the `{project}` or not providing one at all
       will infer the project from the account.
      
       If not provided, data associated with the workflow will not be
       CMEK-encrypted.
       
      string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cryptoKeyName to set.
      Returns:
      This builder for chaining.
    • hasStateError

      public boolean hasStateError()
       Output only. Error regarding the state of the workflow. For example, this
       field will have error details if the execution data is unavailable due to
       revoked KMS key permissions.
       
      .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStateError in interface WorkflowOrBuilder
      Returns:
      Whether the stateError field is set.
    • getStateError

      public Workflow.StateError getStateError()
       Output only. Error regarding the state of the workflow. For example, this
       field will have error details if the execution data is unavailable due to
       revoked KMS key permissions.
       
      .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateError in interface WorkflowOrBuilder
      Returns:
      The stateError.
    • setStateError

      public Workflow.Builder setStateError(Workflow.StateError value)
       Output only. Error regarding the state of the workflow. For example, this
       field will have error details if the execution data is unavailable due to
       revoked KMS key permissions.
       
      .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setStateError

      public Workflow.Builder setStateError(Workflow.StateError.Builder builderForValue)
       Output only. Error regarding the state of the workflow. For example, this
       field will have error details if the execution data is unavailable due to
       revoked KMS key permissions.
       
      .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeStateError

      public Workflow.Builder mergeStateError(Workflow.StateError value)
       Output only. Error regarding the state of the workflow. For example, this
       field will have error details if the execution data is unavailable due to
       revoked KMS key permissions.
       
      .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearStateError

      public Workflow.Builder clearStateError()
       Output only. Error regarding the state of the workflow. For example, this
       field will have error details if the execution data is unavailable due to
       revoked KMS key permissions.
       
      .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStateErrorBuilder

      public Workflow.StateError.Builder getStateErrorBuilder()
       Output only. Error regarding the state of the workflow. For example, this
       field will have error details if the execution data is unavailable due to
       revoked KMS key permissions.
       
      .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStateErrorOrBuilder

      public Workflow.StateErrorOrBuilder getStateErrorOrBuilder()
       Output only. Error regarding the state of the workflow. For example, this
       field will have error details if the execution data is unavailable due to
       revoked KMS key permissions.
       
      .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateErrorOrBuilder in interface WorkflowOrBuilder
    • getCallLogLevelValue

      public int getCallLogLevelValue()
       Optional. Describes the level of platform logging to apply to calls and
       call responses during executions of this workflow. If both the workflow and
       the execution specify a logging level, the execution level takes
       precedence.
       
      .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCallLogLevelValue in interface WorkflowOrBuilder
      Returns:
      The enum numeric value on the wire for callLogLevel.
    • setCallLogLevelValue

      public Workflow.Builder setCallLogLevelValue(int value)
       Optional. Describes the level of platform logging to apply to calls and
       call responses during executions of this workflow. If both the workflow and
       the execution specify a logging level, the execution level takes
       precedence.
       
      .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for callLogLevel to set.
      Returns:
      This builder for chaining.
    • getCallLogLevel

      public Workflow.CallLogLevel getCallLogLevel()
       Optional. Describes the level of platform logging to apply to calls and
       call responses during executions of this workflow. If both the workflow and
       the execution specify a logging level, the execution level takes
       precedence.
       
      .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCallLogLevel in interface WorkflowOrBuilder
      Returns:
      The callLogLevel.
    • setCallLogLevel

      public Workflow.Builder setCallLogLevel(Workflow.CallLogLevel value)
       Optional. Describes the level of platform logging to apply to calls and
       call responses during executions of this workflow. If both the workflow and
       the execution specify a logging level, the execution level takes
       precedence.
       
      .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The callLogLevel to set.
      Returns:
      This builder for chaining.
    • clearCallLogLevel

      public Workflow.Builder clearCallLogLevel()
       Optional. Describes the level of platform logging to apply to calls and
       call responses during executions of this workflow. If both the workflow and
       the execution specify a logging level, the execution level takes
       precedence.
       
      .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getUserEnvVarsCount

      public int getUserEnvVarsCount()
      Description copied from interface: WorkflowOrBuilder
       Optional. User-defined environment variables associated with this workflow
       revision. This map has a maximum length of 20. Each string can take up to
       4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
       "WORKFLOWS".
       
      map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserEnvVarsCount in interface WorkflowOrBuilder
    • containsUserEnvVars

      public boolean containsUserEnvVars(String key)
       Optional. User-defined environment variables associated with this workflow
       revision. This map has a maximum length of 20. Each string can take up to
       4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
       "WORKFLOWS".
       
      map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsUserEnvVars in interface WorkflowOrBuilder
    • getUserEnvVars

      @Deprecated public Map<String,String> getUserEnvVars()
      Deprecated.
      Use getUserEnvVarsMap() instead.
      Specified by:
      getUserEnvVars in interface WorkflowOrBuilder
    • getUserEnvVarsMap

      public Map<String,String> getUserEnvVarsMap()
       Optional. User-defined environment variables associated with this workflow
       revision. This map has a maximum length of 20. Each string can take up to
       4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
       "WORKFLOWS".
       
      map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserEnvVarsMap in interface WorkflowOrBuilder
    • getUserEnvVarsOrDefault

      public String getUserEnvVarsOrDefault(String key, String defaultValue)
       Optional. User-defined environment variables associated with this workflow
       revision. This map has a maximum length of 20. Each string can take up to
       4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
       "WORKFLOWS".
       
      map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserEnvVarsOrDefault in interface WorkflowOrBuilder
    • getUserEnvVarsOrThrow

      public String getUserEnvVarsOrThrow(String key)
       Optional. User-defined environment variables associated with this workflow
       revision. This map has a maximum length of 20. Each string can take up to
       4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
       "WORKFLOWS".
       
      map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserEnvVarsOrThrow in interface WorkflowOrBuilder
    • clearUserEnvVars

      public Workflow.Builder clearUserEnvVars()
    • removeUserEnvVars

      public Workflow.Builder removeUserEnvVars(String key)
       Optional. User-defined environment variables associated with this workflow
       revision. This map has a maximum length of 20. Each string can take up to
       4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
       "WORKFLOWS".
       
      map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableUserEnvVars

      @Deprecated public Map<String,String> getMutableUserEnvVars()
      Deprecated.
      Use alternate mutation accessors instead.
    • putUserEnvVars

      public Workflow.Builder putUserEnvVars(String key, String value)
       Optional. User-defined environment variables associated with this workflow
       revision. This map has a maximum length of 20. Each string can take up to
       4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
       "WORKFLOWS".
       
      map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL];
    • putAllUserEnvVars

      public Workflow.Builder putAllUserEnvVars(Map<String,String> values)
       Optional. User-defined environment variables associated with this workflow
       revision. This map has a maximum length of 20. Each string can take up to
       4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
       "WORKFLOWS".
       
      map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getExecutionHistoryLevelValue

      public int getExecutionHistoryLevelValue()
       Optional. Describes the execution history level to apply to this workflow.
       
      .google.cloud.workflows.v1.ExecutionHistoryLevel execution_history_level = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExecutionHistoryLevelValue in interface WorkflowOrBuilder
      Returns:
      The enum numeric value on the wire for executionHistoryLevel.
    • setExecutionHistoryLevelValue

      public Workflow.Builder setExecutionHistoryLevelValue(int value)
       Optional. Describes the execution history level to apply to this workflow.
       
      .google.cloud.workflows.v1.ExecutionHistoryLevel execution_history_level = 15 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for executionHistoryLevel to set.
      Returns:
      This builder for chaining.
    • getExecutionHistoryLevel

      public ExecutionHistoryLevel getExecutionHistoryLevel()
       Optional. Describes the execution history level to apply to this workflow.
       
      .google.cloud.workflows.v1.ExecutionHistoryLevel execution_history_level = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExecutionHistoryLevel in interface WorkflowOrBuilder
      Returns:
      The executionHistoryLevel.
    • setExecutionHistoryLevel

      public Workflow.Builder setExecutionHistoryLevel(ExecutionHistoryLevel value)
       Optional. Describes the execution history level to apply to this workflow.
       
      .google.cloud.workflows.v1.ExecutionHistoryLevel execution_history_level = 15 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The executionHistoryLevel to set.
      Returns:
      This builder for chaining.
    • clearExecutionHistoryLevel

      public Workflow.Builder clearExecutionHistoryLevel()
       Optional. Describes the execution history level to apply to this workflow.
       
      .google.cloud.workflows.v1.ExecutionHistoryLevel execution_history_level = 15 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getAllKmsKeysList

      public com.google.protobuf.ProtocolStringList getAllKmsKeysList()
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAllKmsKeysList in interface WorkflowOrBuilder
      Returns:
      A list containing the allKmsKeys.
    • getAllKmsKeysCount

      public int getAllKmsKeysCount()
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAllKmsKeysCount in interface WorkflowOrBuilder
      Returns:
      The count of allKmsKeys.
    • getAllKmsKeys

      public String getAllKmsKeys(int index)
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAllKmsKeys in interface WorkflowOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allKmsKeys at the given index.
    • getAllKmsKeysBytes

      public com.google.protobuf.ByteString getAllKmsKeysBytes(int index)
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAllKmsKeysBytes in interface WorkflowOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allKmsKeys at the given index.
    • setAllKmsKeys

      public Workflow.Builder setAllKmsKeys(int index, String value)
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The allKmsKeys to set.
      Returns:
      This builder for chaining.
    • addAllKmsKeys

      public Workflow.Builder addAllKmsKeys(String value)
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The allKmsKeys to add.
      Returns:
      This builder for chaining.
    • addAllAllKmsKeys

      public Workflow.Builder addAllAllKmsKeys(Iterable<String> values)
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The allKmsKeys to add.
      Returns:
      This builder for chaining.
    • clearAllKmsKeys

      public Workflow.Builder clearAllKmsKeys()
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addAllKmsKeysBytes

      public Workflow.Builder addAllKmsKeysBytes(com.google.protobuf.ByteString value)
       Output only. A list of all KMS crypto keys used to encrypt or decrypt the
       data associated with the workflow.
       
      repeated string all_kms_keys = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the allKmsKeys to add.
      Returns:
      This builder for chaining.
    • getAllKmsKeysVersionsList

      public com.google.protobuf.ProtocolStringList getAllKmsKeysVersionsList()
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAllKmsKeysVersionsList in interface WorkflowOrBuilder
      Returns:
      A list containing the allKmsKeysVersions.
    • getAllKmsKeysVersionsCount

      public int getAllKmsKeysVersionsCount()
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAllKmsKeysVersionsCount in interface WorkflowOrBuilder
      Returns:
      The count of allKmsKeysVersions.
    • getAllKmsKeysVersions

      public String getAllKmsKeysVersions(int index)
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAllKmsKeysVersions in interface WorkflowOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allKmsKeysVersions at the given index.
    • getAllKmsKeysVersionsBytes

      public com.google.protobuf.ByteString getAllKmsKeysVersionsBytes(int index)
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAllKmsKeysVersionsBytes in interface WorkflowOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allKmsKeysVersions at the given index.
    • setAllKmsKeysVersions

      public Workflow.Builder setAllKmsKeysVersions(int index, String value)
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The allKmsKeysVersions to set.
      Returns:
      This builder for chaining.
    • addAllKmsKeysVersions

      public Workflow.Builder addAllKmsKeysVersions(String value)
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The allKmsKeysVersions to add.
      Returns:
      This builder for chaining.
    • addAllAllKmsKeysVersions

      public Workflow.Builder addAllAllKmsKeysVersions(Iterable<String> values)
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The allKmsKeysVersions to add.
      Returns:
      This builder for chaining.
    • clearAllKmsKeysVersions

      public Workflow.Builder clearAllKmsKeysVersions()
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addAllKmsKeysVersionsBytes

      public Workflow.Builder addAllKmsKeysVersionsBytes(com.google.protobuf.ByteString value)
       Output only. A list of all KMS crypto key versions used to encrypt or
       decrypt the data associated with the workflow.
       
      repeated string all_kms_keys_versions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the allKmsKeysVersions to add.
      Returns:
      This builder for chaining.
    • getCryptoKeyVersion

      public String getCryptoKeyVersion()
       Output only. The resource name of a KMS crypto key version used to encrypt
       or decrypt the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
       
      string crypto_key_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyVersion in interface WorkflowOrBuilder
      Returns:
      The cryptoKeyVersion.
    • getCryptoKeyVersionBytes

      public com.google.protobuf.ByteString getCryptoKeyVersionBytes()
       Output only. The resource name of a KMS crypto key version used to encrypt
       or decrypt the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
       
      string crypto_key_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyVersionBytes in interface WorkflowOrBuilder
      Returns:
      The bytes for cryptoKeyVersion.
    • setCryptoKeyVersion

      public Workflow.Builder setCryptoKeyVersion(String value)
       Output only. The resource name of a KMS crypto key version used to encrypt
       or decrypt the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
       
      string crypto_key_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cryptoKeyVersion to set.
      Returns:
      This builder for chaining.
    • clearCryptoKeyVersion

      public Workflow.Builder clearCryptoKeyVersion()
       Output only. The resource name of a KMS crypto key version used to encrypt
       or decrypt the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
       
      string crypto_key_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCryptoKeyVersionBytes

      public Workflow.Builder setCryptoKeyVersionBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of a KMS crypto key version used to encrypt
       or decrypt the data associated with the workflow.
      
       Format:
       projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
       
      string crypto_key_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cryptoKeyVersion to set.
      Returns:
      This builder for chaining.
    • getTagsCount

      public int getTagsCount()
      Description copied from interface: WorkflowOrBuilder
       Optional. Input only. Immutable. Tags associated with this workflow.
       
      map<string, string> tags = 19 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsCount in interface WorkflowOrBuilder
    • containsTags

      public boolean containsTags(String key)
       Optional. Input only. Immutable. Tags associated with this workflow.
       
      map<string, string> tags = 19 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsTags in interface WorkflowOrBuilder
    • getTags

      @Deprecated public Map<String,String> getTags()
      Deprecated.
      Use getTagsMap() instead.
      Specified by:
      getTags in interface WorkflowOrBuilder
    • getTagsMap

      public Map<String,String> getTagsMap()
       Optional. Input only. Immutable. Tags associated with this workflow.
       
      map<string, string> tags = 19 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsMap in interface WorkflowOrBuilder
    • getTagsOrDefault

      public String getTagsOrDefault(String key, String defaultValue)
       Optional. Input only. Immutable. Tags associated with this workflow.
       
      map<string, string> tags = 19 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsOrDefault in interface WorkflowOrBuilder
    • getTagsOrThrow

      public String getTagsOrThrow(String key)
       Optional. Input only. Immutable. Tags associated with this workflow.
       
      map<string, string> tags = 19 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsOrThrow in interface WorkflowOrBuilder
    • clearTags

      public Workflow.Builder clearTags()
    • removeTags

      public Workflow.Builder removeTags(String key)
       Optional. Input only. Immutable. Tags associated with this workflow.
       
      map<string, string> tags = 19 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
    • getMutableTags

      @Deprecated public Map<String,String> getMutableTags()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTags

      public Workflow.Builder putTags(String key, String value)
       Optional. Input only. Immutable. Tags associated with this workflow.
       
      map<string, string> tags = 19 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
    • putAllTags

      public Workflow.Builder putAllTags(Map<String,String> values)
       Optional. Input only. Immutable. Tags associated with this workflow.
       
      map<string, string> tags = 19 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];