File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,8 @@ def create(
527
527
(jobs.BatchPredictionJob):
528
528
Instantiated representation of the created batch prediction job.
529
529
"""
530
+ if not job_display_name :
531
+ job_display_name = cls ._generate_display_name ()
530
532
531
533
utils .validate_display_name (job_display_name )
532
534
Original file line number Diff line number Diff line change @@ -2145,7 +2145,7 @@ def _deploy(
2145
2145
2146
2146
def batch_predict (
2147
2147
self ,
2148
- job_display_name : str ,
2148
+ job_display_name : Optional [ str ] = None ,
2149
2149
gcs_source : Optional [Union [str , Sequence [str ]]] = None ,
2150
2150
bigquery_source : Optional [str ] = None ,
2151
2151
instances_format : str = "jsonl" ,
@@ -2182,7 +2182,7 @@ def batch_predict(
2182
2182
2183
2183
Args:
2184
2184
job_display_name (str):
2185
- Required . The user-defined name of the BatchPredictionJob.
2185
+ Optional . The user-defined name of the BatchPredictionJob.
2186
2186
The name can be up to 128 characters long and can be consist
2187
2187
of any UTF-8 characters.
2188
2188
gcs_source: Optional[Sequence[str]] = None
You can’t perform that action at this time.
0 commit comments