Class MigrationSubtask
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.bigquery.migration.v2.MigrationSubtask
- All Implemented Interfaces:
MigrationSubtaskOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class MigrationSubtask
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA subtask for a migration which carries details about the configuration of the subtask.static enumPossible states of a migration subtask.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampTime when the subtask was created.com.google.protobuf.TimestampOrBuilderTime when the subtask was created.static MigrationSubtaskstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampTime when the subtask was last updated.com.google.protobuf.TimestampOrBuilderTime when the subtask was last updated.getMetrics(int index) The metrics for the subtask.intThe metrics for the subtask.The metrics for the subtask.getMetricsOrBuilder(int index) The metrics for the subtask.List<? extends TimeSeriesOrBuilder>The metrics for the subtask.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<MigrationSubtask>Output only.Output only.intThe number or resources with errors.getResourceErrorDetails(int index) Output only.intOutput only.Output only.getResourceErrorDetailsOrBuilder(int index) Output only.List<? extends ResourceErrorDetailOrBuilder>Output only.intgetState()Output only.intOutput only.The unique ID of the task to which this subtask belongs.com.google.protobuf.ByteStringThe unique ID of the task to which this subtask belongs.getType()The type of the Subtask.com.google.protobuf.ByteStringThe type of the Subtask.booleanTime when the subtask was created.inthashCode()booleanTime when the subtask was last updated.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic MigrationSubtask.Builderstatic MigrationSubtask.BuildernewBuilder(MigrationSubtask prototype) protected MigrationSubtask.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MigrationSubtaskparseDelimitedFrom(InputStream input) static MigrationSubtaskparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MigrationSubtaskparseFrom(byte[] data) static MigrationSubtaskparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MigrationSubtaskparseFrom(com.google.protobuf.ByteString data) static MigrationSubtaskparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MigrationSubtaskparseFrom(com.google.protobuf.CodedInputStream input) static MigrationSubtaskparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MigrationSubtaskparseFrom(InputStream input) static MigrationSubtaskparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MigrationSubtaskparseFrom(ByteBuffer data) static MigrationSubtaskparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MigrationSubtask>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TASK_ID_FIELD_NUMBER
public static final int TASK_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:
-
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:
-
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:
-
METRICS_FIELD_NUMBER
public static final int METRICS_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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];- Specified by:
getNamein interfaceMigrationSubtaskOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceMigrationSubtaskOrBuilder- Returns:
- The bytes for name.
-
getTaskId
The unique ID of the task to which this subtask belongs.
string task_id = 2;- Specified by:
getTaskIdin interfaceMigrationSubtaskOrBuilder- Returns:
- The taskId.
-
getTaskIdBytes
public com.google.protobuf.ByteString getTaskIdBytes()The unique ID of the task to which this subtask belongs.
string task_id = 2;- Specified by:
getTaskIdBytesin interfaceMigrationSubtaskOrBuilder- Returns:
- The bytes for taskId.
-
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;- Specified by:
getTypein interfaceMigrationSubtaskOrBuilder- Returns:
- The type.
-
getTypeBytes
public 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;- Specified by:
getTypeBytesin interfaceMigrationSubtaskOrBuilder- Returns:
- The bytes for type.
-
getStateValue
public 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];- Specified by:
getStateValuein interfaceMigrationSubtaskOrBuilder- Returns:
- The enum numeric value on the wire for 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];- Specified by:
getStatein interfaceMigrationSubtaskOrBuilder- 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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasProcessingErrorin interfaceMigrationSubtaskOrBuilder- Returns:
- Whether the processingError field is set.
-
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];- Specified by:
getProcessingErrorin interfaceMigrationSubtaskOrBuilder- Returns:
- The processingError.
-
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];- Specified by:
getProcessingErrorOrBuilderin interfaceMigrationSubtaskOrBuilder
-
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];- Specified by:
getResourceErrorDetailsListin interfaceMigrationSubtaskOrBuilder
-
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];- Specified by:
getResourceErrorDetailsOrBuilderListin interfaceMigrationSubtaskOrBuilder
-
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.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getResourceErrorDetailsCountin interfaceMigrationSubtaskOrBuilder
-
getResourceErrorDetails
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];- Specified by:
getResourceErrorDetailsin interfaceMigrationSubtaskOrBuilder
-
getResourceErrorDetailsOrBuilder
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];- Specified by:
getResourceErrorDetailsOrBuilderin interfaceMigrationSubtaskOrBuilder
-
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;- Specified by:
getResourceErrorCountin interfaceMigrationSubtaskOrBuilder- Returns:
- The resourceErrorCount.
-
hasCreateTime
public boolean hasCreateTime()Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;- Specified by:
hasCreateTimein interfaceMigrationSubtaskOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;- Specified by:
getCreateTimein interfaceMigrationSubtaskOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;- Specified by:
getCreateTimeOrBuilderin interfaceMigrationSubtaskOrBuilder
-
hasLastUpdateTime
public boolean hasLastUpdateTime()Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;- Specified by:
hasLastUpdateTimein interfaceMigrationSubtaskOrBuilder- Returns:
- Whether the lastUpdateTime field is set.
-
getLastUpdateTime
public com.google.protobuf.Timestamp getLastUpdateTime()Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;- Specified by:
getLastUpdateTimein interfaceMigrationSubtaskOrBuilder- Returns:
- The lastUpdateTime.
-
getLastUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;- Specified by:
getLastUpdateTimeOrBuilderin interfaceMigrationSubtaskOrBuilder
-
getMetricsList
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;- Specified by:
getMetricsListin interfaceMigrationSubtaskOrBuilder
-
getMetricsOrBuilderList
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;- Specified by:
getMetricsOrBuilderListin interfaceMigrationSubtaskOrBuilder
-
getMetricsCount
public int getMetricsCount()The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;- Specified by:
getMetricsCountin interfaceMigrationSubtaskOrBuilder
-
getMetrics
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;- Specified by:
getMetricsin interfaceMigrationSubtaskOrBuilder
-
getMetricsOrBuilder
The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;- Specified by:
getMetricsOrBuilderin interfaceMigrationSubtaskOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static MigrationSubtask parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MigrationSubtask parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MigrationSubtask parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MigrationSubtask parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MigrationSubtask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MigrationSubtask parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MigrationSubtask parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MigrationSubtask parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MigrationSubtask parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MigrationSubtask parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MigrationSubtask.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-