Class MigrationTask

  • All Implemented Interfaces:
    MigrationTaskOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class MigrationTask
    extends com.google.protobuf.GeneratedMessageV3
    implements MigrationTaskOrBuilder
     A single task for a migration which has details about the configuration of
     the task.
     
    Protobuf type google.cloud.bigquery.migration.v2.MigrationTask
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasTranslationConfigDetails

        public boolean hasTranslationConfigDetails()
         Task configuration for Batch SQL Translation.
         
        .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;
        Specified by:
        hasTranslationConfigDetails in interface MigrationTaskOrBuilder
        Returns:
        Whether the translationConfigDetails field is set.
      • getId

        public String getId()
         Output only. Immutable. The unique identifier for the migration task. The
         ID is server-generated.
         
        string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getId in interface MigrationTaskOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Output only. Immutable. The unique identifier for the migration task. The
         ID is server-generated.
         
        string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getIdBytes in interface MigrationTaskOrBuilder
        Returns:
        The bytes for id.
      • getType

        public String getType()
         The type of the task. This must be one of the supported task types:
         Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
         Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
         Translation_Snowflake2BQ, Translation_Netezza2BQ,
         Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
         Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
         Translation_Postgresql2BQ.
         
        string type = 2;
        Specified by:
        getType in interface MigrationTaskOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         The type of the task. This must be one of the supported task types:
         Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
         Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
         Translation_Snowflake2BQ, Translation_Netezza2BQ,
         Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
         Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
         Translation_Postgresql2BQ.
         
        string type = 2;
        Specified by:
        getTypeBytes in interface MigrationTaskOrBuilder
        Returns:
        The bytes for type.
      • getStateValue

        public int getStateValue()
         Output only. The current state of the task.
         
        .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface MigrationTaskOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public MigrationTask.State getState()
         Output only. The current state of the task.
         
        .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface MigrationTaskOrBuilder
        Returns:
        The state.
      • hasProcessingError

        public boolean hasProcessingError()
         Output only. An explanation that may be populated when the task is in
         FAILED state.
         
        .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasProcessingError in interface MigrationTaskOrBuilder
        Returns:
        Whether the processingError field is set.
      • getProcessingError

        public com.google.rpc.ErrorInfo getProcessingError()
         Output only. An explanation that may be populated when the task is in
         FAILED state.
         
        .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProcessingError in interface MigrationTaskOrBuilder
        Returns:
        The processingError.
      • getProcessingErrorOrBuilder

        public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder()
         Output only. An explanation that may be populated when the task is in
         FAILED state.
         
        .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProcessingErrorOrBuilder in interface MigrationTaskOrBuilder
      • hasCreateTime

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

        public com.google.protobuf.Timestamp getCreateTime()
         Time when the task was created.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTime in interface MigrationTaskOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

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

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

        public com.google.protobuf.Timestamp getLastUpdateTime()
         Time when the task was last updated.
         
        .google.protobuf.Timestamp last_update_time = 7;
        Specified by:
        getLastUpdateTime in interface MigrationTaskOrBuilder
        Returns:
        The lastUpdateTime.
      • getLastUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()
         Time when the task was last updated.
         
        .google.protobuf.Timestamp last_update_time = 7;
        Specified by:
        getLastUpdateTimeOrBuilder in interface MigrationTaskOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MigrationTask parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationTask parseFrom​(ByteBuffer data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationTask parseFrom​(com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationTask parseFrom​(com.google.protobuf.ByteString data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationTask parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationTask parseFrom​(byte[] data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigrationTask parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Throws:
        IOException
      • newBuilderForType

        public MigrationTask.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public MigrationTask.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected MigrationTask.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static MigrationTask getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<MigrationTask> parser()
      • getParserForType

        public com.google.protobuf.Parser<MigrationTask> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MigrationTask getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder