public final class MigrationSubtask extends com.google.protobuf.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.v2.MigrationSubtask| Modifier and Type | Class and Description |
|---|---|
static class |
MigrationSubtask.Builder
A subtask for a migration which carries details about the configuration of
the subtask.
|
static class |
MigrationSubtask.State
Possible states of a migration subtask.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
LAST_UPDATE_TIME_FIELD_NUMBER |
static int |
METRICS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PROCESSING_ERROR_FIELD_NUMBER |
static int |
RESOURCE_ERROR_COUNT_FIELD_NUMBER |
static int |
RESOURCE_ERROR_DETAILS_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
TASK_ID_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.Timestamp |
getCreateTime()
Time when the subtask was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Time when the subtask was created.
|
static MigrationSubtask |
getDefaultInstance() |
MigrationSubtask |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getLastUpdateTime()
Time when the subtask was last updated.
|
com.google.protobuf.TimestampOrBuilder |
getLastUpdateTimeOrBuilder()
Time when the subtask was last updated.
|
TimeSeries |
getMetrics(int index)
The metrics for the subtask.
|
int |
getMetricsCount()
The metrics for the subtask.
|
List<TimeSeries> |
getMetricsList()
The metrics for the subtask.
|
TimeSeriesOrBuilder |
getMetricsOrBuilder(int index)
The metrics for the subtask.
|
List<? extends TimeSeriesOrBuilder> |
getMetricsOrBuilderList()
The metrics for the subtask.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<MigrationSubtask> |
getParserForType() |
com.google.rpc.ErrorInfo |
getProcessingError()
Output only.
|
com.google.rpc.ErrorInfoOrBuilder |
getProcessingErrorOrBuilder()
Output only.
|
int |
getResourceErrorCount()
The number or resources with errors.
|
ResourceErrorDetail |
getResourceErrorDetails(int index)
Output only.
|
int |
getResourceErrorDetailsCount()
Output only.
|
List<ResourceErrorDetail> |
getResourceErrorDetailsList()
Output only.
|
ResourceErrorDetailOrBuilder |
getResourceErrorDetailsOrBuilder(int index)
Output only.
|
List<? extends ResourceErrorDetailOrBuilder> |
getResourceErrorDetailsOrBuilderList()
Output only.
|
int |
getSerializedSize() |
MigrationSubtask.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
String |
getTaskId()
The unique ID of the task to which this subtask belongs.
|
com.google.protobuf.ByteString |
getTaskIdBytes()
The unique ID of the task to which this subtask belongs.
|
String |
getType()
The type of the Subtask.
|
com.google.protobuf.ByteString |
getTypeBytes()
The type of the Subtask.
|
boolean |
hasCreateTime()
Time when the subtask was created.
|
int |
hashCode() |
boolean |
hasLastUpdateTime()
Time when the subtask was last updated.
|
boolean |
hasProcessingError()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MigrationSubtask.Builder |
newBuilder() |
static MigrationSubtask.Builder |
newBuilder(MigrationSubtask prototype) |
MigrationSubtask.Builder |
newBuilderForType() |
protected MigrationSubtask.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MigrationSubtask |
parseDelimitedFrom(InputStream input) |
static MigrationSubtask |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MigrationSubtask |
parseFrom(byte[] data) |
static MigrationSubtask |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MigrationSubtask |
parseFrom(ByteBuffer data) |
static MigrationSubtask |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MigrationSubtask |
parseFrom(com.google.protobuf.ByteString data) |
static MigrationSubtask |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MigrationSubtask |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MigrationSubtask |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MigrationSubtask |
parseFrom(InputStream input) |
static MigrationSubtask |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MigrationSubtask> |
parser() |
MigrationSubtask.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int TASK_ID_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int PROCESSING_ERROR_FIELD_NUMBER
public static final int RESOURCE_ERROR_DETAILS_FIELD_NUMBER
public static final int RESOURCE_ERROR_COUNT_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int LAST_UPDATE_TIME_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];
getName in interface MigrationSubtaskOrBuilderpublic com.google.protobuf.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];
getNameBytes in interface MigrationSubtaskOrBuilderpublic String getTaskId()
The unique ID of the task to which this subtask belongs.
string task_id = 2;getTaskId in interface MigrationSubtaskOrBuilderpublic com.google.protobuf.ByteString getTaskIdBytes()
The unique ID of the task to which this subtask belongs.
string task_id = 2;getTaskIdBytes in interface MigrationSubtaskOrBuilderpublic 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;getType in interface MigrationSubtaskOrBuilderpublic com.google.protobuf.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;getTypeBytes in interface MigrationSubtaskOrBuilderpublic int getStateValue()
Output only. The current state of the subtask.
.google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface MigrationSubtaskOrBuilderpublic MigrationSubtask.State getState()
Output only. The current state of the subtask.
.google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface MigrationSubtaskOrBuilderpublic 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];
hasProcessingError in interface MigrationSubtaskOrBuilderpublic 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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getProcessingError in interface MigrationSubtaskOrBuilderpublic 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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getProcessingErrorOrBuilder in interface MigrationSubtaskOrBuilderpublic 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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getResourceErrorDetailsList in interface MigrationSubtaskOrBuilderpublic 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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getResourceErrorDetailsOrBuilderList in interface MigrationSubtaskOrBuilderpublic 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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getResourceErrorDetailsCount in interface MigrationSubtaskOrBuilderpublic 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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getResourceErrorDetails in interface MigrationSubtaskOrBuilderpublic 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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getResourceErrorDetailsOrBuilder in interface MigrationSubtaskOrBuilderpublic 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;getResourceErrorCount in interface MigrationSubtaskOrBuilderpublic boolean hasCreateTime()
Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;hasCreateTime in interface MigrationSubtaskOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;getCreateTime in interface MigrationSubtaskOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;getCreateTimeOrBuilder in interface MigrationSubtaskOrBuilderpublic boolean hasLastUpdateTime()
Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;hasLastUpdateTime in interface MigrationSubtaskOrBuilderpublic com.google.protobuf.Timestamp getLastUpdateTime()
Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;getLastUpdateTime in interface MigrationSubtaskOrBuilderpublic com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()
Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;getLastUpdateTimeOrBuilder in interface MigrationSubtaskOrBuilderpublic List<TimeSeries> getMetricsList()
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;getMetricsList in interface MigrationSubtaskOrBuilderpublic List<? extends TimeSeriesOrBuilder> getMetricsOrBuilderList()
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;getMetricsOrBuilderList in interface MigrationSubtaskOrBuilderpublic int getMetricsCount()
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;getMetricsCount in interface MigrationSubtaskOrBuilderpublic TimeSeries getMetrics(int index)
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;getMetrics in interface MigrationSubtaskOrBuilderpublic TimeSeriesOrBuilder getMetricsOrBuilder(int index)
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;getMetricsOrBuilder in interface MigrationSubtaskOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MigrationSubtask parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MigrationSubtask parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MigrationSubtask parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MigrationSubtask parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MigrationSubtask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MigrationSubtask parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MigrationSubtask parseFrom(InputStream input) throws IOException
IOExceptionpublic static MigrationSubtask parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MigrationSubtask parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MigrationSubtask parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MigrationSubtask parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MigrationSubtask parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MigrationSubtask.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MigrationSubtask.Builder newBuilder()
public static MigrationSubtask.Builder newBuilder(MigrationSubtask prototype)
public MigrationSubtask.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MigrationSubtask.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MigrationSubtask getDefaultInstance()
public static com.google.protobuf.Parser<MigrationSubtask> parser()
public com.google.protobuf.Parser<MigrationSubtask> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MigrationSubtask getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.