Skip to content

Commit d6f1848

Browse files
Google APIscopybara-github
authored andcommitted
fix: annotate PipelineJob and PipelineTaskRerunConfig fields as optional
PiperOrigin-RevId: 679707420
1 parent bd4f368 commit d6f1848

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

google/cloud/aiplatform/v1beta1/pipeline_job.proto

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,11 @@ message PipelineJob {
224224
// Output only. Reserved for future use.
225225
bool satisfies_pzi = 28 [(google.api.field_behavior) = OUTPUT_ONLY];
226226

227-
// Output only. The original pipeline job id if this pipeline job is a rerun
228-
// of a previous pipeline job.
229-
int64 original_pipeline_job_id = 29
230-
[(google.api.field_behavior) = OUTPUT_ONLY];
227+
// Optional. The original pipeline job id if this pipeline job is a rerun of a
228+
// previous pipeline job.
229+
int64 original_pipeline_job_id = 29 [(google.api.field_behavior) = OPTIONAL];
231230

232-
// Output only. The rerun configs for each task in the pipeline job.
231+
// Optional. The rerun configs for each task in the pipeline job.
233232
// By default, the rerun will:
234233
// 1. Use the same input artifacts as the original run.
235234
// 2. Use the same input parameters as the original run.
@@ -238,7 +237,7 @@ message PipelineJob {
238237
// By providing this field, users can override the default behavior and
239238
// specify the rerun config for each task.
240239
repeated PipelineTaskRerunConfig pipeline_task_rerun_configs = 30
241-
[(google.api.field_behavior) = OUTPUT_ONLY];
240+
[(google.api.field_behavior) = OPTIONAL];
242241
}
243242

244243
// Pipeline template metadata if
@@ -459,35 +458,34 @@ message PipelineTaskExecutorDetail {
459458
message PipelineTaskRerunConfig {
460459
// A list of artifact metadata.
461460
message ArtifactList {
462-
// Output only. A list of artifact metadata.
461+
// Optional. A list of artifact metadata.
463462
repeated RuntimeArtifact artifacts = 1
464-
[(google.api.field_behavior) = OUTPUT_ONLY];
463+
[(google.api.field_behavior) = OPTIONAL];
465464
}
466465

467466
// Runtime inputs data of the task.
468467
message Inputs {
469-
// Output only. Input artifacts.
468+
// Optional. Input artifacts.
470469
map<string, ArtifactList> artifacts = 1
471-
[(google.api.field_behavior) = OUTPUT_ONLY];
470+
[(google.api.field_behavior) = OPTIONAL];
472471

473-
// Output only. Input parameters.
472+
// Optional. Input parameters.
474473
map<string, google.protobuf.Value> parameter_values = 2
475-
[(google.api.field_behavior) = OUTPUT_ONLY];
474+
[(google.api.field_behavior) = OPTIONAL];
476475
}
477476

478-
// Output only. The system generated ID of the task. Retrieved from original
479-
// run.
480-
int64 task_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
477+
// Optional. The system generated ID of the task. Retrieved from original run.
478+
int64 task_id = 1 [(google.api.field_behavior) = OPTIONAL];
481479

482-
// Output only. The name of the task.
483-
string task_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
480+
// Optional. The name of the task.
481+
string task_name = 2 [(google.api.field_behavior) = OPTIONAL];
484482

485-
// Output only. The runtime input of the task overridden by the user.
486-
Inputs inputs = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
483+
// Optional. The runtime input of the task overridden by the user.
484+
Inputs inputs = 3 [(google.api.field_behavior) = OPTIONAL];
487485

488-
// Output only. Whether to skip this task. Default value is False.
489-
bool skip_task = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
486+
// Optional. Whether to skip this task. Default value is False.
487+
bool skip_task = 4 [(google.api.field_behavior) = OPTIONAL];
490488

491-
// Output only. Whether to skip downstream tasks. Default value is False.
492-
bool skip_downstream_tasks = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
489+
// Optional. Whether to skip downstream tasks. Default value is False.
490+
bool skip_downstream_tasks = 5 [(google.api.field_behavior) = OPTIONAL];
493491
}

0 commit comments

Comments
 (0)