Class MigrationSubtask.Builder (0.21.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 0.83.0 (latest)
- 0.81.0
- 0.79.0
- 0.78.0
- 0.77.0
- 0.76.0
- 0.75.0
- 0.73.0
- 0.71.0
- 0.70.0
- 0.67.0
- 0.66.0
- 0.65.0
- 0.63.0
- 0.62.0
- 0.61.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.2
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.4
publicstaticfinalclass MigrationSubtask.BuilderextendsGeneratedMessageV3.Builder<MigrationSubtask.Builder>implementsMigrationSubtaskOrBuilderA 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MigrationSubtask.BuilderImplements
MigrationSubtaskOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllMetrics(Iterable<? extends TimeSeries> values)
publicMigrationSubtask.BuilderaddAllMetrics(Iterable<?extendsTimeSeries>values)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.bigquery.migration.v2.TimeSeries> |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addAllResourceErrorDetails(Iterable<? extends ResourceErrorDetail> values)
publicMigrationSubtask.BuilderaddAllResourceErrorDetails(Iterable<?extendsResourceErrorDetail>values)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];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetail> |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addMetrics(TimeSeries value)
publicMigrationSubtask.BuilderaddMetrics(TimeSeriesvalue)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
TimeSeries |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addMetrics(TimeSeries.Builder builderForValue)
publicMigrationSubtask.BuilderaddMetrics(TimeSeries.BuilderbuilderForValue)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TimeSeries.Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addMetrics(int index, TimeSeries value)
publicMigrationSubtask.BuilderaddMetrics(intindex,TimeSeriesvalue)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
TimeSeries |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addMetrics(int index, TimeSeries.Builder builderForValue)
publicMigrationSubtask.BuilderaddMetrics(intindex,TimeSeries.BuilderbuilderForValue)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TimeSeries.Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addMetricsBuilder()
publicTimeSeries.BuilderaddMetricsBuilder()The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
addMetricsBuilder(int index)
publicTimeSeries.BuilderaddMetricsBuilder(intindex)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicMigrationSubtask.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addResourceErrorDetails(ResourceErrorDetail value)
publicMigrationSubtask.BuilderaddResourceErrorDetails(ResourceErrorDetailvalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceErrorDetail |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addResourceErrorDetails(ResourceErrorDetail.Builder builderForValue)
publicMigrationSubtask.BuilderaddResourceErrorDetails(ResourceErrorDetail.BuilderbuilderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ResourceErrorDetail.Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addResourceErrorDetails(int index, ResourceErrorDetail value)
publicMigrationSubtask.BuilderaddResourceErrorDetails(intindex,ResourceErrorDetailvalue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ResourceErrorDetail |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addResourceErrorDetails(int index, ResourceErrorDetail.Builder builderForValue)
publicMigrationSubtask.BuilderaddResourceErrorDetails(intindex,ResourceErrorDetail.BuilderbuilderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ResourceErrorDetail.Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
addResourceErrorDetailsBuilder()
publicResourceErrorDetail.BuilderaddResourceErrorDetailsBuilder()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];
| Returns | |
|---|---|
| Type | Description |
ResourceErrorDetail.Builder |
|
addResourceErrorDetailsBuilder(int index)
publicResourceErrorDetail.BuilderaddResourceErrorDetailsBuilder(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceErrorDetail.Builder |
|
build()
publicMigrationSubtaskbuild()| Returns | |
|---|---|
| Type | Description |
MigrationSubtask |
|
buildPartial()
publicMigrationSubtaskbuildPartial()| Returns | |
|---|---|
| Type | Description |
MigrationSubtask |
|
clear()
publicMigrationSubtask.Builderclear()| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
clearCreateTime()
publicMigrationSubtask.BuilderclearCreateTime()Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicMigrationSubtask.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
clearLastUpdateTime()
publicMigrationSubtask.BuilderclearLastUpdateTime()Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
clearMetrics()
publicMigrationSubtask.BuilderclearMetrics()The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
clearName()
publicMigrationSubtask.BuilderclearName() 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 | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicMigrationSubtask.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
clearProcessingError()
publicMigrationSubtask.BuilderclearProcessingError()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 | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
clearResourceErrorCount()
publicMigrationSubtask.BuilderclearResourceErrorCount() 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 | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
clearResourceErrorDetails()
publicMigrationSubtask.BuilderclearResourceErrorDetails()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];
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
clearState()
publicMigrationSubtask.BuilderclearState()Output only. The current state of the subtask.
.google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
clearTaskId()
publicMigrationSubtask.BuilderclearTaskId()The unique ID of the task to which this subtask belongs.
string task_id = 2;
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
clearType()
publicMigrationSubtask.BuilderclearType()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 | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
clone()
publicMigrationSubtask.Builderclone()| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
getCreateTime()
publicTimestampgetCreateTime()Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
publicTimestamp.BuildergetCreateTimeBuilder()Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
publicTimestampOrBuildergetCreateTimeOrBuilder()Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
publicMigrationSubtaskgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MigrationSubtask |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLastUpdateTime()
publicTimestampgetLastUpdateTime()Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The lastUpdateTime. |
getLastUpdateTimeBuilder()
publicTimestamp.BuildergetLastUpdateTimeBuilder()Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getLastUpdateTimeOrBuilder()
publicTimestampOrBuildergetLastUpdateTimeOrBuilder()Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getMetrics(int index)
publicTimeSeriesgetMetrics(intindex)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TimeSeries |
|
getMetricsBuilder(int index)
publicTimeSeries.BuildergetMetricsBuilder(intindex)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
getMetricsBuilderList()
publicList<TimeSeries.Builder>getMetricsBuilderList()The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getMetricsCount()
publicintgetMetricsCount()The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Returns | |
|---|---|
| Type | Description |
int |
|
getMetricsList()
publicList<TimeSeries>getMetricsList()The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Returns | |
|---|---|
| Type | Description |
List<TimeSeries> |
|
getMetricsOrBuilder(int index)
publicTimeSeriesOrBuildergetMetricsOrBuilder(intindex)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TimeSeriesOrBuilder |
|
getMetricsOrBuilderList()
publicList<?extendsTimeSeriesOrBuilder>getMetricsOrBuilderList()The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder> |
|
getName()
publicStringgetName() 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 | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
publicByteStringgetNameBytes() 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getProcessingError()
publicErrorInfogetProcessingError()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 | |
|---|---|
| Type | Description |
com.google.rpc.ErrorInfo |
The processingError. |
getProcessingErrorBuilder()
publicErrorInfo.BuildergetProcessingErrorBuilder()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 | |
|---|---|
| Type | Description |
com.google.rpc.ErrorInfo.Builder |
|
getProcessingErrorOrBuilder()
publicErrorInfoOrBuildergetProcessingErrorOrBuilder()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 | |
|---|---|
| Type | Description |
com.google.rpc.ErrorInfoOrBuilder |
|
getResourceErrorCount()
publicintgetResourceErrorCount() 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 | |
|---|---|
| Type | Description |
int |
The resourceErrorCount. |
getResourceErrorDetails(int index)
publicResourceErrorDetailgetResourceErrorDetails(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceErrorDetail |
|
getResourceErrorDetailsBuilder(int index)
publicResourceErrorDetail.BuildergetResourceErrorDetailsBuilder(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceErrorDetail.Builder |
|
getResourceErrorDetailsBuilderList()
publicList<ResourceErrorDetail.Builder>getResourceErrorDetailsBuilderList()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];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getResourceErrorDetailsCount()
publicintgetResourceErrorDetailsCount()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];
| Returns | |
|---|---|
| Type | Description |
int |
|
getResourceErrorDetailsList()
publicList<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];
| Returns | |
|---|---|
| Type | Description |
List<ResourceErrorDetail> |
|
getResourceErrorDetailsOrBuilder(int index)
publicResourceErrorDetailOrBuildergetResourceErrorDetailsOrBuilder(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceErrorDetailOrBuilder |
|
getResourceErrorDetailsOrBuilderList()
publicList<?extendsResourceErrorDetailOrBuilder>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];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> |
|
getState()
publicMigrationSubtask.StategetState()Output only. The current state of the subtask.
.google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.State |
The state. |
getStateValue()
publicintgetStateValue()Output only. The current state of the subtask.
.google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getTaskId()
publicStringgetTaskId()The unique ID of the task to which this subtask belongs.
string task_id = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The taskId. |
getTaskIdBytes()
publicByteStringgetTaskIdBytes()The unique ID of the task to which this subtask belongs.
string task_id = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for taskId. |
getType()
publicStringgetType()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 | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
publicByteStringgetTypeBytes()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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
hasCreateTime()
publicbooleanhasCreateTime()Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasLastUpdateTime()
publicbooleanhasLastUpdateTime()Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lastUpdateTime field is set. |
hasProcessingError()
publicbooleanhasProcessingError()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 | |
|---|---|
| Type | Description |
boolean |
Whether the processingError field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
publicMigrationSubtask.BuildermergeCreateTime(Timestampvalue)Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
mergeFrom(MigrationSubtask other)
publicMigrationSubtask.BuildermergeFrom(MigrationSubtaskother)| Parameter | |
|---|---|
| Name | Description |
other |
MigrationSubtask |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicMigrationSubtask.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicMigrationSubtask.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
mergeLastUpdateTime(Timestamp value)
publicMigrationSubtask.BuildermergeLastUpdateTime(Timestampvalue)Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
mergeProcessingError(ErrorInfo value)
publicMigrationSubtask.BuildermergeProcessingError(ErrorInfovalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.ErrorInfo |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalMigrationSubtask.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
removeMetrics(int index)
publicMigrationSubtask.BuilderremoveMetrics(intindex)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
removeResourceErrorDetails(int index)
publicMigrationSubtask.BuilderremoveResourceErrorDetails(intindex)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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setCreateTime(Timestamp value)
publicMigrationSubtask.BuildersetCreateTime(Timestampvalue)Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
publicMigrationSubtask.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)Time when the subtask was created.
.google.protobuf.Timestamp create_time = 7;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicMigrationSubtask.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setLastUpdateTime(Timestamp value)
publicMigrationSubtask.BuildersetLastUpdateTime(Timestampvalue)Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setLastUpdateTime(Timestamp.Builder builderForValue)
publicMigrationSubtask.BuildersetLastUpdateTime(Timestamp.BuilderbuilderForValue)Time when the subtask was last updated.
.google.protobuf.Timestamp last_update_time = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setMetrics(int index, TimeSeries value)
publicMigrationSubtask.BuildersetMetrics(intindex,TimeSeriesvalue)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
TimeSeries |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setMetrics(int index, TimeSeries.Builder builderForValue)
publicMigrationSubtask.BuildersetMetrics(intindex,TimeSeries.BuilderbuilderForValue)The metrics for the subtask.
repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TimeSeries.Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setName(String value)
publicMigrationSubtask.BuildersetName(Stringvalue) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
String The name to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
publicMigrationSubtask.BuildersetNameBytes(ByteStringvalue) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setProcessingError(ErrorInfo value)
publicMigrationSubtask.BuildersetProcessingError(ErrorInfovalue)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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.ErrorInfo |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setProcessingError(ErrorInfo.Builder builderForValue)
publicMigrationSubtask.BuildersetProcessingError(ErrorInfo.BuilderbuilderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.rpc.ErrorInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicMigrationSubtask.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setResourceErrorCount(int value)
publicMigrationSubtask.BuildersetResourceErrorCount(intvalue) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
int The resourceErrorCount to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setResourceErrorDetails(int index, ResourceErrorDetail value)
publicMigrationSubtask.BuildersetResourceErrorDetails(intindex,ResourceErrorDetailvalue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ResourceErrorDetail |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setResourceErrorDetails(int index, ResourceErrorDetail.Builder builderForValue)
publicMigrationSubtask.BuildersetResourceErrorDetails(intindex,ResourceErrorDetail.BuilderbuilderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ResourceErrorDetail.Builder |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|
setState(MigrationSubtask.State value)
publicMigrationSubtask.BuildersetState(MigrationSubtask.Statevalue)Output only. The current state of the subtask.
.google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
MigrationSubtask.State The state to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setStateValue(int value)
publicMigrationSubtask.BuildersetStateValue(intvalue)Output only. The current state of the subtask.
.google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setTaskId(String value)
publicMigrationSubtask.BuildersetTaskId(Stringvalue)The unique ID of the task to which this subtask belongs.
string task_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
String The taskId to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setTaskIdBytes(ByteString value)
publicMigrationSubtask.BuildersetTaskIdBytes(ByteStringvalue)The unique ID of the task to which this subtask belongs.
string task_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for taskId to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setType(String value)
publicMigrationSubtask.BuildersetType(Stringvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
String The type to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
publicMigrationSubtask.BuildersetTypeBytes(ByteStringvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalMigrationSubtask.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
MigrationSubtask.Builder |
|