Class 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.GeneratedMessageV3.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 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<MigrationWorkflow.Builder>
      • internalGetMutableMapField

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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. 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];
        Specified by:
        getName in interface MigrationWorkflowOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Immutable. 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];
        Specified by:
        getNameBytes in interface MigrationWorkflowOrBuilder
        Returns:
        The bytes for name.
      • setName

        public MigrationWorkflow.Builder setName​(String value)
         Output only. Immutable. 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];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public MigrationWorkflow.Builder clearName()
         Output only. Immutable. 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];
        Returns:
        This builder for chaining.
      • setNameBytes

        public MigrationWorkflow.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Immutable. 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];
        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
      • 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
      • 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;
      • 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;
      • 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

        public MigrationWorkflow.Builder setState​(MigrationWorkflow.State 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 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
      • setUnknownFields

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

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