Class MigrationTask

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.bigquery.migration.v2.MigrationTask
All Implemented Interfaces:
MigrationTaskOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class MigrationTask extends com.google.protobuf.GeneratedMessage 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:
  • Field Details

    • TRANSLATION_CONFIG_DETAILS_FIELD_NUMBER

      public static final int TRANSLATION_CONFIG_DETAILS_FIELD_NUMBER
      See Also:
    • TRANSLATION_DETAILS_FIELD_NUMBER

      public static final int TRANSLATION_DETAILS_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • PROCESSING_ERROR_FIELD_NUMBER

      public static final int PROCESSING_ERROR_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • LAST_UPDATE_TIME_FIELD_NUMBER

      public static final int LAST_UPDATE_TIME_FIELD_NUMBER
      See Also:
    • RESOURCE_ERROR_DETAILS_FIELD_NUMBER

      public static final int RESOURCE_ERROR_DETAILS_FIELD_NUMBER
      See Also:
    • RESOURCE_ERROR_COUNT_FIELD_NUMBER

      public static final int RESOURCE_ERROR_COUNT_FIELD_NUMBER
      See Also:
    • METRICS_FIELD_NUMBER

      public static final int METRICS_FIELD_NUMBER
      See Also:
    • TASK_RESULT_FIELD_NUMBER

      public static final int TASK_RESULT_FIELD_NUMBER
      See Also:
    • TOTAL_PROCESSING_ERROR_COUNT_FIELD_NUMBER

      public static final int TOTAL_PROCESSING_ERROR_COUNT_FIELD_NUMBER
      See Also:
    • TOTAL_RESOURCE_ERROR_COUNT_FIELD_NUMBER

      public static final int TOTAL_RESOURCE_ERROR_COUNT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTaskDetailsCase

      public MigrationTask.TaskDetailsCase getTaskDetailsCase()
      Specified by:
      getTaskDetailsCase in interface MigrationTaskOrBuilder
    • hasTranslationConfigDetails

      public boolean hasTranslationConfigDetails()
       Task configuration for CW Batch/Offline 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.
    • getTranslationConfigDetails

      public TranslationConfigDetails getTranslationConfigDetails()
       Task configuration for CW Batch/Offline SQL Translation.
       
      .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;
      Specified by:
      getTranslationConfigDetails in interface MigrationTaskOrBuilder
      Returns:
      The translationConfigDetails.
    • getTranslationConfigDetailsOrBuilder

      public TranslationConfigDetailsOrBuilder getTranslationConfigDetailsOrBuilder()
       Task configuration for CW Batch/Offline SQL Translation.
       
      .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14;
      Specified by:
      getTranslationConfigDetailsOrBuilder in interface MigrationTaskOrBuilder
    • hasTranslationDetails

      public boolean hasTranslationDetails()
       Task details for unified SQL Translation.
       
      .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;
      Specified by:
      hasTranslationDetails in interface MigrationTaskOrBuilder
      Returns:
      Whether the translationDetails field is set.
    • getTranslationDetails

      public TranslationDetails getTranslationDetails()
       Task details for unified SQL Translation.
       
      .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;
      Specified by:
      getTranslationDetails in interface MigrationTaskOrBuilder
      Returns:
      The translationDetails.
    • getTranslationDetailsOrBuilder

      public TranslationDetailsOrBuilder getTranslationDetailsOrBuilder()
       Task details for unified SQL Translation.
       
      .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16;
      Specified by:
      getTranslationDetailsOrBuilder in interface MigrationTaskOrBuilder
    • 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, Translation_SQLite2BQ, Translation_Greenplum2BQ.
       
      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, Translation_SQLite2BQ, Translation_Greenplum2BQ.
       
      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 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 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
    • getResourceErrorDetailsList

      public List<ResourceErrorDetail> getResourceErrorDetailsList()
       Output only. Provides details to errors and issues encountered while
       processing the task. Presence of error details does not mean that the task
       failed.
       
      repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceErrorDetailsList in interface MigrationTaskOrBuilder
    • getResourceErrorDetailsOrBuilderList

      public List<? extends ResourceErrorDetailOrBuilder> getResourceErrorDetailsOrBuilderList()
       Output only. Provides details to errors and issues encountered while
       processing the task. Presence of error details does not mean that the task
       failed.
       
      repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceErrorDetailsOrBuilderList in interface MigrationTaskOrBuilder
    • getResourceErrorDetailsCount

      public int getResourceErrorDetailsCount()
       Output only. Provides details to errors and issues encountered while
       processing the task. Presence of error details does not mean that the task
       failed.
       
      repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceErrorDetailsCount in interface MigrationTaskOrBuilder
    • getResourceErrorDetails

      public ResourceErrorDetail getResourceErrorDetails(int index)
       Output only. Provides details to errors and issues encountered while
       processing the task. Presence of error details does not mean that the task
       failed.
       
      repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceErrorDetails in interface MigrationTaskOrBuilder
    • getResourceErrorDetailsOrBuilder

      public ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder(int index)
       Output only. Provides details to errors and issues encountered while
       processing the task. Presence of error details does not mean that the task
       failed.
       
      repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceErrorDetailsOrBuilder in interface MigrationTaskOrBuilder
    • getResourceErrorCount

      public int getResourceErrorCount()
       The number or resources with errors. Note: This is not the total
       number of errors as each resource can have more than one error.
       This is used to indicate truncation by having a `resource_error_count`
       that is higher than the size of `resource_error_details`.
       
      int32 resource_error_count = 18;
      Specified by:
      getResourceErrorCount in interface MigrationTaskOrBuilder
      Returns:
      The resourceErrorCount.
    • getMetricsList

      public List<TimeSeries> getMetricsList()
       The metrics for the task.
       
      repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
      Specified by:
      getMetricsList in interface MigrationTaskOrBuilder
    • getMetricsOrBuilderList

      public List<? extends TimeSeriesOrBuilder> getMetricsOrBuilderList()
       The metrics for the task.
       
      repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
      Specified by:
      getMetricsOrBuilderList in interface MigrationTaskOrBuilder
    • getMetricsCount

      public int getMetricsCount()
       The metrics for the task.
       
      repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
      Specified by:
      getMetricsCount in interface MigrationTaskOrBuilder
    • getMetrics

      public TimeSeries getMetrics(int index)
       The metrics for the task.
       
      repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
      Specified by:
      getMetrics in interface MigrationTaskOrBuilder
    • getMetricsOrBuilder

      public TimeSeriesOrBuilder getMetricsOrBuilder(int index)
       The metrics for the task.
       
      repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
      Specified by:
      getMetricsOrBuilder in interface MigrationTaskOrBuilder
    • hasTaskResult

      public boolean hasTaskResult()
       Output only. The result of the task.
       
      .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTaskResult in interface MigrationTaskOrBuilder
      Returns:
      Whether the taskResult field is set.
    • getTaskResult

      public MigrationTaskResult getTaskResult()
       Output only. The result of the task.
       
      .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTaskResult in interface MigrationTaskOrBuilder
      Returns:
      The taskResult.
    • getTaskResultOrBuilder

      public MigrationTaskResultOrBuilder getTaskResultOrBuilder()
       Output only. The result of the task.
       
      .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTaskResultOrBuilder in interface MigrationTaskOrBuilder
    • getTotalProcessingErrorCount

      public int getTotalProcessingErrorCount()
       Count of all the processing errors in this task and its subtasks.
       
      int32 total_processing_error_count = 21;
      Specified by:
      getTotalProcessingErrorCount in interface MigrationTaskOrBuilder
      Returns:
      The totalProcessingErrorCount.
    • getTotalResourceErrorCount

      public int getTotalResourceErrorCount()
       Count of all the resource errors in this task and its subtasks.
       
      int32 total_resource_error_count = 22;
      Specified by:
      getTotalResourceErrorCount in interface MigrationTaskOrBuilder
      Returns:
      The totalResourceErrorCount.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MigrationTask parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MigrationTask parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MigrationTask parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MigrationTask parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static MigrationTask.Builder newBuilder()
    • newBuilder

      public static MigrationTask.Builder newBuilder(MigrationTask prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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