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.v2alpha.MigrationTask
    See Also:
    Serialized Form
    • Field Detail

      • ASSESSMENT_TASK_DETAILS_FIELD_NUMBER

        public static final int ASSESSMENT_TASK_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRANSLATION_TASK_DETAILS_FIELD_NUMBER

        public static final int TRANSLATION_TASK_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROCESSING_ERROR_FIELD_NUMBER

        public static final int PROCESSING_ERROR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_UPDATE_TIME_FIELD_NUMBER

        public static final int LAST_UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ORCHESTRATION_RESULT_FIELD_NUMBER

        public static final int ORCHESTRATION_RESULT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • hasAssessmentTaskDetails

        public boolean hasAssessmentTaskDetails()
         Task configuration for Assessment.
         
        .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12;
        Specified by:
        hasAssessmentTaskDetails in interface MigrationTaskOrBuilder
        Returns:
        Whether the assessmentTaskDetails field is set.
      • hasTranslationTaskDetails

        public boolean hasTranslationTaskDetails()
         Task configuration for Batch/Offline SQL Translation.
         
        .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;
        Specified by:
        hasTranslationTaskDetails in interface MigrationTaskOrBuilder
        Returns:
        Whether the translationTaskDetails field is set.
      • getTranslationTaskDetails

        public TranslationTaskDetails getTranslationTaskDetails()
         Task configuration for Batch/Offline SQL Translation.
         
        .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13;
        Specified by:
        getTranslationTaskDetails in interface MigrationTaskOrBuilder
        Returns:
        The translationTaskDetails.
      • 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 a supported task type.
         
        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 a supported task type.
         
        string type = 2;
        Specified by:
        getTypeBytes in interface MigrationTaskOrBuilder
        Returns:
        The bytes for type.
      • hasDetails

        public boolean hasDetails()
         DEPRECATED! Use one of the task_details below.
         The details of the task. The type URL must be one of the supported task
         details messages and correspond to the Task's type.
         
        .google.protobuf.Any details = 3;
        Specified by:
        hasDetails in interface MigrationTaskOrBuilder
        Returns:
        Whether the details field is set.
      • getDetails

        public com.google.protobuf.Any getDetails()
         DEPRECATED! Use one of the task_details below.
         The details of the task. The type URL must be one of the supported task
         details messages and correspond to the Task's type.
         
        .google.protobuf.Any details = 3;
        Specified by:
        getDetails in interface MigrationTaskOrBuilder
        Returns:
        The details.
      • getDetailsOrBuilder

        public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder()
         DEPRECATED! Use one of the task_details below.
         The details of the task. The type URL must be one of the supported task
         details messages and correspond to the Task's type.
         
        .google.protobuf.Any details = 3;
        Specified by:
        getDetailsOrBuilder in interface MigrationTaskOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. The current state of the task.
         
        .google.cloud.bigquery.migration.v2alpha.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.v2alpha.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
      • hasOrchestrationResult

        public boolean hasOrchestrationResult()
         Output only. Additional information about the orchestration.
         
        .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasOrchestrationResult in interface MigrationTaskOrBuilder
        Returns:
        Whether the orchestrationResult field is set.
      • getOrchestrationResult

        public MigrationTaskOrchestrationResult getOrchestrationResult()
         Output only. Additional information about the orchestration.
         
        .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOrchestrationResult in interface MigrationTaskOrBuilder
        Returns:
        The orchestrationResult.
      • 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