Class MigrationWorkflow.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder>
com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder
All Implemented Interfaces:
MigrationWorkflowOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MigrationWorkflow

public static final class MigrationWorkflow.Builder extends com.google.protobuf.GeneratedMessage.Builder<MigrationWorkflow.Builder> implements MigrationWorkflowOrBuilder
 A migration workflow which specifies what needs to be done for an EDW
 migration.
 
Protobuf type google.cloud.bigquery.migration.v2.MigrationWorkflow
  • 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<MigrationWorkflow.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public MigrationWorkflow.Builder mergeFrom(MigrationWorkflow other)
    • isInitialized

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

      public MigrationWorkflow.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<MigrationWorkflow.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Immutable. Identifier. The unique identifier for the migration
       workflow. The ID is server-generated.
      
       Example: `projects/123/locations/us/workflows/345`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface MigrationWorkflowOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Immutable. Identifier. The unique identifier for the migration
       workflow. The ID is server-generated.
      
       Example: `projects/123/locations/us/workflows/345`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface MigrationWorkflowOrBuilder
      Returns:
      The bytes for name.
    • setName

      public MigrationWorkflow.Builder setName(String value)
       Output only. Immutable. Identifier. The unique identifier for the migration
       workflow. The ID is server-generated.
      
       Example: `projects/123/locations/us/workflows/345`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public MigrationWorkflow.Builder clearName()
       Output only. Immutable. Identifier. The unique identifier for the migration
       workflow. The ID is server-generated.
      
       Example: `projects/123/locations/us/workflows/345`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public MigrationWorkflow.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Immutable. Identifier. The unique identifier for the migration
       workflow. The ID is server-generated.
      
       Example: `projects/123/locations/us/workflows/345`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The display name of the workflow. This can be set to give a workflow
       a descriptive name. There is no guarantee or enforcement of uniqueness.
       
      string display_name = 6;
      Specified by:
      getDisplayName in interface MigrationWorkflowOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the workflow. This can be set to give a workflow
       a descriptive name. There is no guarantee or enforcement of uniqueness.
       
      string display_name = 6;
      Specified by:
      getDisplayNameBytes in interface MigrationWorkflowOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public MigrationWorkflow.Builder setDisplayName(String value)
       The display name of the workflow. This can be set to give a workflow
       a descriptive name. There is no guarantee or enforcement of uniqueness.
       
      string display_name = 6;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public MigrationWorkflow.Builder clearDisplayName()
       The display name of the workflow. This can be set to give a workflow
       a descriptive name. There is no guarantee or enforcement of uniqueness.
       
      string display_name = 6;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public MigrationWorkflow.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name of the workflow. This can be set to give a workflow
       a descriptive name. There is no guarantee or enforcement of uniqueness.
       
      string display_name = 6;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getTasksCount

      public int getTasksCount()
      Description copied from interface: MigrationWorkflowOrBuilder
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      Specified by:
      getTasksCount in interface MigrationWorkflowOrBuilder
    • containsTasks

      public boolean containsTasks(String key)
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      Specified by:
      containsTasks in interface MigrationWorkflowOrBuilder
    • getTasks

      @Deprecated public Map<String,MigrationTask> getTasks()
      Deprecated.
      Use getTasksMap() instead.
      Specified by:
      getTasks in interface MigrationWorkflowOrBuilder
    • getTasksMap

      public Map<String,MigrationTask> getTasksMap()
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      Specified by:
      getTasksMap in interface MigrationWorkflowOrBuilder
    • getTasksOrDefault

      public MigrationTask getTasksOrDefault(String key, MigrationTask defaultValue)
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      Specified by:
      getTasksOrDefault in interface MigrationWorkflowOrBuilder
    • getTasksOrThrow

      public MigrationTask getTasksOrThrow(String key)
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      Specified by:
      getTasksOrThrow in interface MigrationWorkflowOrBuilder
    • clearTasks

      public MigrationWorkflow.Builder clearTasks()
    • removeTasks

      public MigrationWorkflow.Builder removeTasks(String key)
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    • getMutableTasks

      @Deprecated public Map<String,MigrationTask> getMutableTasks()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTasks

      public MigrationWorkflow.Builder putTasks(String key, MigrationTask value)
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    • putAllTasks

      public MigrationWorkflow.Builder putAllTasks(Map<String,MigrationTask> values)
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    • putTasksBuilderIfAbsent

      public MigrationTask.Builder putTasksBuilderIfAbsent(String key)
       The tasks in a workflow in a named map. The name (i.e. key) has no
       meaning and is merely a convenient way to address a specific task
       in a workflow.
       
      map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    • getStateValue

      public int getStateValue()
       Output only. That status of the workflow.
       
      .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface MigrationWorkflowOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public MigrationWorkflow.Builder setStateValue(int value)
       Output only. That status of the workflow.
       
      .google.cloud.bigquery.migration.v2.MigrationWorkflow.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 MigrationWorkflow.State getState()
       Output only. That status of the workflow.
       
      .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface MigrationWorkflowOrBuilder
      Returns:
      The state.
    • setState

       Output only. That status of the workflow.
       
      .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public MigrationWorkflow.Builder clearState()
       Output only. That status of the workflow.
       
      .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Time when the workflow was created.
       
      .google.protobuf.Timestamp create_time = 4;
      Specified by:
      hasCreateTime in interface MigrationWorkflowOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Time when the workflow was created.
       
      .google.protobuf.Timestamp create_time = 4;
      Specified by:
      getCreateTime in interface MigrationWorkflowOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public MigrationWorkflow.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Time when the workflow was created.
       
      .google.protobuf.Timestamp create_time = 4;
    • setCreateTime

      public MigrationWorkflow.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time when the workflow was created.
       
      .google.protobuf.Timestamp create_time = 4;
    • mergeCreateTime

      public MigrationWorkflow.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Time when the workflow was created.
       
      .google.protobuf.Timestamp create_time = 4;
    • clearCreateTime

      public MigrationWorkflow.Builder clearCreateTime()
       Time when the workflow was created.
       
      .google.protobuf.Timestamp create_time = 4;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Time when the workflow was created.
       
      .google.protobuf.Timestamp create_time = 4;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Time when the workflow was created.
       
      .google.protobuf.Timestamp create_time = 4;
      Specified by:
      getCreateTimeOrBuilder in interface MigrationWorkflowOrBuilder
    • hasLastUpdateTime

      public boolean hasLastUpdateTime()
       Time when the workflow was last updated.
       
      .google.protobuf.Timestamp last_update_time = 5;
      Specified by:
      hasLastUpdateTime in interface MigrationWorkflowOrBuilder
      Returns:
      Whether the lastUpdateTime field is set.
    • getLastUpdateTime

      public com.google.protobuf.Timestamp getLastUpdateTime()
       Time when the workflow was last updated.
       
      .google.protobuf.Timestamp last_update_time = 5;
      Specified by:
      getLastUpdateTime in interface MigrationWorkflowOrBuilder
      Returns:
      The lastUpdateTime.
    • setLastUpdateTime

      public MigrationWorkflow.Builder setLastUpdateTime(com.google.protobuf.Timestamp value)
       Time when the workflow was last updated.
       
      .google.protobuf.Timestamp last_update_time = 5;
    • setLastUpdateTime

      public MigrationWorkflow.Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time when the workflow was last updated.
       
      .google.protobuf.Timestamp last_update_time = 5;
    • mergeLastUpdateTime

      public MigrationWorkflow.Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value)
       Time when the workflow was last updated.
       
      .google.protobuf.Timestamp last_update_time = 5;
    • clearLastUpdateTime

      public MigrationWorkflow.Builder clearLastUpdateTime()
       Time when the workflow was last updated.
       
      .google.protobuf.Timestamp last_update_time = 5;
    • getLastUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder()
       Time when the workflow was last updated.
       
      .google.protobuf.Timestamp last_update_time = 5;
    • getLastUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()
       Time when the workflow was last updated.
       
      .google.protobuf.Timestamp last_update_time = 5;
      Specified by:
      getLastUpdateTimeOrBuilder in interface MigrationWorkflowOrBuilder