Class MigrationSubtask (0.10.0)

public final class MigrationSubtask extends GeneratedMessageV3 implements MigrationSubtaskOrBuilder

A subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.

Protobuf type google.cloud.bigquery.migration.v2alpha.MigrationSubtask

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_UPDATE_TIME_FIELD_NUMBER

public static final int LAST_UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

METRICS_FIELD_NUMBER

public static final int METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROCESSING_ERROR_FIELD_NUMBER

public static final int PROCESSING_ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_ERROR_COUNT_FIELD_NUMBER

public static final int RESOURCE_ERROR_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_ERROR_DETAILS_FIELD_NUMBER

public static final int RESOURCE_ERROR_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

TASK_ID_FIELD_NUMBER

public static final int TASK_ID_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MigrationSubtask getDefaultInstance()
Returns
TypeDescription
MigrationSubtask

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MigrationSubtask.Builder newBuilder()
Returns
TypeDescription
MigrationSubtask.Builder

newBuilder(MigrationSubtask prototype)

public static MigrationSubtask.Builder newBuilder(MigrationSubtask prototype)
Parameter
NameDescription
prototypeMigrationSubtask
Returns
TypeDescription
MigrationSubtask.Builder

parseDelimitedFrom(InputStream input)

public static MigrationSubtask parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationSubtask parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MigrationSubtask parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MigrationSubtask parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MigrationSubtask parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MigrationSubtask parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MigrationSubtask parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationSubtask parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MigrationSubtask parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationSubtask parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MigrationSubtask parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MigrationSubtask parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationSubtask
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MigrationSubtask> parser()
Returns
TypeDescription
Parser<MigrationSubtask>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationSubtask getDefaultInstanceForType()
Returns
TypeDescription
MigrationSubtask

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
TypeDescription
Timestamp

The lastUpdateTime.

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
TypeDescription
TimestampOrBuilder

getMetrics(int index)

public TimeSeries getMetrics(int index)

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeries

getMetricsCount()

public int getMetricsCount()

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11;

Returns
TypeDescription
int

getMetricsList()

public List<TimeSeries> getMetricsList()

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11;

Returns
TypeDescription
List<TimeSeries>

getMetricsOrBuilder(int index)

public TimeSeriesOrBuilder getMetricsOrBuilder(int index)

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
TimeSeriesOrBuilder

getMetricsOrBuilderList()

public List<? extends TimeSeriesOrBuilder> getMetricsOrBuilderList()

The metrics for the subtask.

repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11;

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder>

getName()

public String getName()

Output only. Immutable. The resource name for the migration subtask. The ID is server-generated. Example: projects/123/locations/us/workflows/345/subtasks/678

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Immutable. The resource name for the migration subtask. The ID is server-generated. Example: projects/123/locations/us/workflows/345/subtasks/678

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<MigrationSubtask> getParserForType()
Returns
TypeDescription
Parser<MigrationSubtask>
Overrides

getProcessingError()

public ErrorInfo getProcessingError()

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.ErrorInfo

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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.ErrorInfoOrBuilder

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 = 13;

Returns
TypeDescription
int

The resourceErrorCount.

getResourceErrorDetails(int index)

public ResourceErrorDetail getResourceErrorDetails(int index)

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceErrorDetail

getResourceErrorDetailsCount()

public int getResourceErrorDetailsCount()

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getResourceErrorDetailsList()

public List<ResourceErrorDetail> getResourceErrorDetailsList()

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<ResourceErrorDetail>

getResourceErrorDetailsOrBuilder(int index)

public ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder(int index)

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceErrorDetailOrBuilder

getResourceErrorDetailsOrBuilderList()

public List<? extends ResourceErrorDetailOrBuilder> getResourceErrorDetailsOrBuilderList()

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.

repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public MigrationSubtask.State getState()

Output only. The current state of the subtask.

.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationSubtask.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the subtask.

.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTaskId()

public String getTaskId()

The unique ID of the task to which this subtask belongs.

string task_id = 2;

Returns
TypeDescription
String

The taskId.

getTaskIdBytes()

public ByteString getTaskIdBytes()

The unique ID of the task to which this subtask belongs.

string task_id = 2;

Returns
TypeDescription
ByteString

The bytes for taskId.

getType()

public String getType()

The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.

string type = 3;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.

string type = 3;

Returns
TypeDescription
ByteString

The bytes for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCreateTime()

public boolean hasCreateTime()

Time when the subtask was created.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Time when the subtask was last updated.

.google.protobuf.Timestamp last_update_time = 8;

Returns
TypeDescription
boolean

Whether the lastUpdateTime field is set.

hasProcessingError()

public boolean hasProcessingError()

Output only. An explanation that may be populated when the task is in FAILED state.

.google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the processingError field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MigrationSubtask.Builder newBuilderForType()
Returns
TypeDescription
MigrationSubtask.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MigrationSubtask.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MigrationSubtask.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MigrationSubtask.Builder toBuilder()
Returns
TypeDescription
MigrationSubtask.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException