job_service.proto 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.aiplatform.v1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/cloud/aiplatform/v1/batch_prediction_job.proto";
  21. import "google/cloud/aiplatform/v1/custom_job.proto";
  22. import "google/cloud/aiplatform/v1/data_labeling_job.proto";
  23. import "google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto";
  24. import "google/cloud/aiplatform/v1/operation.proto";
  25. import "google/longrunning/operations.proto";
  26. import "google/protobuf/empty.proto";
  27. import "google/protobuf/field_mask.proto";
  28. import "google/protobuf/timestamp.proto";
  29. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  30. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  31. option java_multiple_files = true;
  32. option java_outer_classname = "JobServiceProto";
  33. option java_package = "com.google.cloud.aiplatform.v1";
  34. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  35. option ruby_package = "Google::Cloud::AIPlatform::V1";
  36. // A service for creating and managing Vertex AI's jobs.
  37. service JobService {
  38. option (google.api.default_host) = "aiplatform.googleapis.com";
  39. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  40. // Creates a CustomJob. A created CustomJob right away
  41. // will be attempted to be run.
  42. rpc CreateCustomJob(CreateCustomJobRequest) returns (CustomJob) {
  43. option (google.api.http) = {
  44. post: "/v1/{parent=projects/*/locations/*}/customJobs"
  45. body: "custom_job"
  46. };
  47. option (google.api.method_signature) = "parent,custom_job";
  48. }
  49. // Gets a CustomJob.
  50. rpc GetCustomJob(GetCustomJobRequest) returns (CustomJob) {
  51. option (google.api.http) = {
  52. get: "/v1/{name=projects/*/locations/*/customJobs/*}"
  53. };
  54. option (google.api.method_signature) = "name";
  55. }
  56. // Lists CustomJobs in a Location.
  57. rpc ListCustomJobs(ListCustomJobsRequest) returns (ListCustomJobsResponse) {
  58. option (google.api.http) = {
  59. get: "/v1/{parent=projects/*/locations/*}/customJobs"
  60. };
  61. option (google.api.method_signature) = "parent";
  62. }
  63. // Deletes a CustomJob.
  64. rpc DeleteCustomJob(DeleteCustomJobRequest) returns (google.longrunning.Operation) {
  65. option (google.api.http) = {
  66. delete: "/v1/{name=projects/*/locations/*/customJobs/*}"
  67. };
  68. option (google.api.method_signature) = "name";
  69. option (google.longrunning.operation_info) = {
  70. response_type: "google.protobuf.Empty"
  71. metadata_type: "DeleteOperationMetadata"
  72. };
  73. }
  74. // Cancels a CustomJob.
  75. // Starts asynchronous cancellation on the CustomJob. The server
  76. // makes a best effort to cancel the job, but success is not
  77. // guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] or
  78. // other methods to check whether the cancellation succeeded or whether the
  79. // job completed despite cancellation. On successful cancellation,
  80. // the CustomJob is not deleted; instead it becomes a job with
  81. // a [CustomJob.error][google.cloud.aiplatform.v1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
  82. // corresponding to `Code.CANCELLED`, and [CustomJob.state][google.cloud.aiplatform.v1.CustomJob.state] is set to
  83. // `CANCELLED`.
  84. rpc CancelCustomJob(CancelCustomJobRequest) returns (google.protobuf.Empty) {
  85. option (google.api.http) = {
  86. post: "/v1/{name=projects/*/locations/*/customJobs/*}:cancel"
  87. body: "*"
  88. };
  89. option (google.api.method_signature) = "name";
  90. }
  91. // Creates a DataLabelingJob.
  92. rpc CreateDataLabelingJob(CreateDataLabelingJobRequest) returns (DataLabelingJob) {
  93. option (google.api.http) = {
  94. post: "/v1/{parent=projects/*/locations/*}/dataLabelingJobs"
  95. body: "data_labeling_job"
  96. };
  97. option (google.api.method_signature) = "parent,data_labeling_job";
  98. }
  99. // Gets a DataLabelingJob.
  100. rpc GetDataLabelingJob(GetDataLabelingJobRequest) returns (DataLabelingJob) {
  101. option (google.api.http) = {
  102. get: "/v1/{name=projects/*/locations/*/dataLabelingJobs/*}"
  103. };
  104. option (google.api.method_signature) = "name";
  105. }
  106. // Lists DataLabelingJobs in a Location.
  107. rpc ListDataLabelingJobs(ListDataLabelingJobsRequest) returns (ListDataLabelingJobsResponse) {
  108. option (google.api.http) = {
  109. get: "/v1/{parent=projects/*/locations/*}/dataLabelingJobs"
  110. };
  111. option (google.api.method_signature) = "parent";
  112. }
  113. // Deletes a DataLabelingJob.
  114. rpc DeleteDataLabelingJob(DeleteDataLabelingJobRequest) returns (google.longrunning.Operation) {
  115. option (google.api.http) = {
  116. delete: "/v1/{name=projects/*/locations/*/dataLabelingJobs/*}"
  117. };
  118. option (google.api.method_signature) = "name";
  119. option (google.longrunning.operation_info) = {
  120. response_type: "google.protobuf.Empty"
  121. metadata_type: "DeleteOperationMetadata"
  122. };
  123. }
  124. // Cancels a DataLabelingJob. Success of cancellation is not guaranteed.
  125. rpc CancelDataLabelingJob(CancelDataLabelingJobRequest) returns (google.protobuf.Empty) {
  126. option (google.api.http) = {
  127. post: "/v1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel"
  128. body: "*"
  129. };
  130. option (google.api.method_signature) = "name";
  131. }
  132. // Creates a HyperparameterTuningJob
  133. rpc CreateHyperparameterTuningJob(CreateHyperparameterTuningJobRequest) returns (HyperparameterTuningJob) {
  134. option (google.api.http) = {
  135. post: "/v1/{parent=projects/*/locations/*}/hyperparameterTuningJobs"
  136. body: "hyperparameter_tuning_job"
  137. };
  138. option (google.api.method_signature) = "parent,hyperparameter_tuning_job";
  139. }
  140. // Gets a HyperparameterTuningJob
  141. rpc GetHyperparameterTuningJob(GetHyperparameterTuningJobRequest) returns (HyperparameterTuningJob) {
  142. option (google.api.http) = {
  143. get: "/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}"
  144. };
  145. option (google.api.method_signature) = "name";
  146. }
  147. // Lists HyperparameterTuningJobs in a Location.
  148. rpc ListHyperparameterTuningJobs(ListHyperparameterTuningJobsRequest) returns (ListHyperparameterTuningJobsResponse) {
  149. option (google.api.http) = {
  150. get: "/v1/{parent=projects/*/locations/*}/hyperparameterTuningJobs"
  151. };
  152. option (google.api.method_signature) = "parent";
  153. }
  154. // Deletes a HyperparameterTuningJob.
  155. rpc DeleteHyperparameterTuningJob(DeleteHyperparameterTuningJobRequest) returns (google.longrunning.Operation) {
  156. option (google.api.http) = {
  157. delete: "/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}"
  158. };
  159. option (google.api.method_signature) = "name";
  160. option (google.longrunning.operation_info) = {
  161. response_type: "google.protobuf.Empty"
  162. metadata_type: "DeleteOperationMetadata"
  163. };
  164. }
  165. // Cancels a HyperparameterTuningJob.
  166. // Starts asynchronous cancellation on the HyperparameterTuningJob. The server
  167. // makes a best effort to cancel the job, but success is not
  168. // guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] or
  169. // other methods to check whether the cancellation succeeded or whether the
  170. // job completed despite cancellation. On successful cancellation,
  171. // the HyperparameterTuningJob is not deleted; instead it becomes a job with
  172. // a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code]
  173. // of 1, corresponding to `Code.CANCELLED`, and
  174. // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1.HyperparameterTuningJob.state] is set to `CANCELLED`.
  175. rpc CancelHyperparameterTuningJob(CancelHyperparameterTuningJobRequest) returns (google.protobuf.Empty) {
  176. option (google.api.http) = {
  177. post: "/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel"
  178. body: "*"
  179. };
  180. option (google.api.method_signature) = "name";
  181. }
  182. // Creates a BatchPredictionJob. A BatchPredictionJob once created will
  183. // right away be attempted to start.
  184. rpc CreateBatchPredictionJob(CreateBatchPredictionJobRequest) returns (BatchPredictionJob) {
  185. option (google.api.http) = {
  186. post: "/v1/{parent=projects/*/locations/*}/batchPredictionJobs"
  187. body: "batch_prediction_job"
  188. };
  189. option (google.api.method_signature) = "parent,batch_prediction_job";
  190. }
  191. // Gets a BatchPredictionJob
  192. rpc GetBatchPredictionJob(GetBatchPredictionJobRequest) returns (BatchPredictionJob) {
  193. option (google.api.http) = {
  194. get: "/v1/{name=projects/*/locations/*/batchPredictionJobs/*}"
  195. };
  196. option (google.api.method_signature) = "name";
  197. }
  198. // Lists BatchPredictionJobs in a Location.
  199. rpc ListBatchPredictionJobs(ListBatchPredictionJobsRequest) returns (ListBatchPredictionJobsResponse) {
  200. option (google.api.http) = {
  201. get: "/v1/{parent=projects/*/locations/*}/batchPredictionJobs"
  202. };
  203. option (google.api.method_signature) = "parent";
  204. }
  205. // Deletes a BatchPredictionJob. Can only be called on jobs that already
  206. // finished.
  207. rpc DeleteBatchPredictionJob(DeleteBatchPredictionJobRequest) returns (google.longrunning.Operation) {
  208. option (google.api.http) = {
  209. delete: "/v1/{name=projects/*/locations/*/batchPredictionJobs/*}"
  210. };
  211. option (google.api.method_signature) = "name";
  212. option (google.longrunning.operation_info) = {
  213. response_type: "google.protobuf.Empty"
  214. metadata_type: "DeleteOperationMetadata"
  215. };
  216. }
  217. // Cancels a BatchPredictionJob.
  218. //
  219. // Starts asynchronous cancellation on the BatchPredictionJob. The server
  220. // makes the best effort to cancel the job, but success is not
  221. // guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] or
  222. // other methods to check whether the cancellation succeeded or whether the
  223. // job completed despite cancellation. On a successful cancellation,
  224. // the BatchPredictionJob is not deleted;instead its
  225. // [BatchPredictionJob.state][google.cloud.aiplatform.v1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already
  226. // outputted by the job are not deleted.
  227. rpc CancelBatchPredictionJob(CancelBatchPredictionJobRequest) returns (google.protobuf.Empty) {
  228. option (google.api.http) = {
  229. post: "/v1/{name=projects/*/locations/*/batchPredictionJobs/*}:cancel"
  230. body: "*"
  231. };
  232. option (google.api.method_signature) = "name";
  233. }
  234. }
  235. // Request message for [JobService.CreateCustomJob][google.cloud.aiplatform.v1.JobService.CreateCustomJob].
  236. message CreateCustomJobRequest {
  237. // Required. The resource name of the Location to create the CustomJob in.
  238. // Format: `projects/{project}/locations/{location}`
  239. string parent = 1 [
  240. (google.api.field_behavior) = REQUIRED,
  241. (google.api.resource_reference) = {
  242. type: "locations.googleapis.com/Location"
  243. }
  244. ];
  245. // Required. The CustomJob to create.
  246. CustomJob custom_job = 2 [(google.api.field_behavior) = REQUIRED];
  247. }
  248. // Request message for [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob].
  249. message GetCustomJobRequest {
  250. // Required. The name of the CustomJob resource.
  251. // Format:
  252. // `projects/{project}/locations/{location}/customJobs/{custom_job}`
  253. string name = 1 [
  254. (google.api.field_behavior) = REQUIRED,
  255. (google.api.resource_reference) = {
  256. type: "aiplatform.googleapis.com/CustomJob"
  257. }
  258. ];
  259. }
  260. // Request message for [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs].
  261. message ListCustomJobsRequest {
  262. // Required. The resource name of the Location to list the CustomJobs from.
  263. // Format: `projects/{project}/locations/{location}`
  264. string parent = 1 [
  265. (google.api.field_behavior) = REQUIRED,
  266. (google.api.resource_reference) = {
  267. type: "locations.googleapis.com/Location"
  268. }
  269. ];
  270. // The standard list filter.
  271. //
  272. // Supported fields:
  273. //
  274. // * `display_name` supports = and !=.
  275. //
  276. // * `state` supports = and !=.
  277. //
  278. // Some examples of using the filter are:
  279. //
  280. // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
  281. //
  282. // * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
  283. //
  284. // * `NOT display_name="my_job"`
  285. //
  286. // * `state="JOB_STATE_FAILED"`
  287. string filter = 2;
  288. // The standard list page size.
  289. int32 page_size = 3;
  290. // The standard list page token.
  291. // Typically obtained via
  292. // [ListCustomJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token] of the previous
  293. // [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs] call.
  294. string page_token = 4;
  295. // Mask specifying which fields to read.
  296. google.protobuf.FieldMask read_mask = 5;
  297. }
  298. // Response message for [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs]
  299. message ListCustomJobsResponse {
  300. // List of CustomJobs in the requested page.
  301. repeated CustomJob custom_jobs = 1;
  302. // A token to retrieve the next page of results.
  303. // Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1.ListCustomJobsRequest.page_token] to obtain that page.
  304. string next_page_token = 2;
  305. }
  306. // Request message for [JobService.DeleteCustomJob][google.cloud.aiplatform.v1.JobService.DeleteCustomJob].
  307. message DeleteCustomJobRequest {
  308. // Required. The name of the CustomJob resource to be deleted.
  309. // Format:
  310. // `projects/{project}/locations/{location}/customJobs/{custom_job}`
  311. string name = 1 [
  312. (google.api.field_behavior) = REQUIRED,
  313. (google.api.resource_reference) = {
  314. type: "aiplatform.googleapis.com/CustomJob"
  315. }
  316. ];
  317. }
  318. // Request message for [JobService.CancelCustomJob][google.cloud.aiplatform.v1.JobService.CancelCustomJob].
  319. message CancelCustomJobRequest {
  320. // Required. The name of the CustomJob to cancel.
  321. // Format:
  322. // `projects/{project}/locations/{location}/customJobs/{custom_job}`
  323. string name = 1 [
  324. (google.api.field_behavior) = REQUIRED,
  325. (google.api.resource_reference) = {
  326. type: "aiplatform.googleapis.com/CustomJob"
  327. }
  328. ];
  329. }
  330. // Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob].
  331. message CreateDataLabelingJobRequest {
  332. // Required. The parent of the DataLabelingJob.
  333. // Format: `projects/{project}/locations/{location}`
  334. string parent = 1 [
  335. (google.api.field_behavior) = REQUIRED,
  336. (google.api.resource_reference) = {
  337. type: "locations.googleapis.com/Location"
  338. }
  339. ];
  340. // Required. The DataLabelingJob to create.
  341. DataLabelingJob data_labeling_job = 2 [(google.api.field_behavior) = REQUIRED];
  342. }
  343. // Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1.JobService.GetDataLabelingJob].
  344. message GetDataLabelingJobRequest {
  345. // Required. The name of the DataLabelingJob.
  346. // Format:
  347. // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
  348. string name = 1 [
  349. (google.api.field_behavior) = REQUIRED,
  350. (google.api.resource_reference) = {
  351. type: "aiplatform.googleapis.com/DataLabelingJob"
  352. }
  353. ];
  354. }
  355. // Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs].
  356. message ListDataLabelingJobsRequest {
  357. // Required. The parent of the DataLabelingJob.
  358. // Format: `projects/{project}/locations/{location}`
  359. string parent = 1 [
  360. (google.api.field_behavior) = REQUIRED,
  361. (google.api.resource_reference) = {
  362. type: "locations.googleapis.com/Location"
  363. }
  364. ];
  365. // The standard list filter.
  366. //
  367. // Supported fields:
  368. //
  369. // * `display_name` supports = and !=.
  370. //
  371. // * `state` supports = and !=.
  372. //
  373. // Some examples of using the filter are:
  374. //
  375. // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
  376. //
  377. // * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
  378. //
  379. // * `NOT display_name="my_job"`
  380. //
  381. // * `state="JOB_STATE_FAILED"`
  382. string filter = 2;
  383. // The standard list page size.
  384. int32 page_size = 3;
  385. // The standard list page token.
  386. string page_token = 4;
  387. // Mask specifying which fields to read. FieldMask represents a set of
  388. // symbolic field paths. For example, the mask can be `paths: "name"`. The
  389. // "name" here is a field in DataLabelingJob.
  390. // If this field is not set, all fields of the DataLabelingJob are returned.
  391. google.protobuf.FieldMask read_mask = 5;
  392. // A comma-separated list of fields to order by, sorted in ascending order by
  393. // default.
  394. // Use `desc` after a field name for descending.
  395. string order_by = 6;
  396. }
  397. // Response message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs].
  398. message ListDataLabelingJobsResponse {
  399. // A list of DataLabelingJobs that matches the specified filter in the
  400. // request.
  401. repeated DataLabelingJob data_labeling_jobs = 1;
  402. // The standard List next-page token.
  403. string next_page_token = 2;
  404. }
  405. // Request message for [JobService.DeleteDataLabelingJob][google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJob].
  406. message DeleteDataLabelingJobRequest {
  407. // Required. The name of the DataLabelingJob to be deleted.
  408. // Format:
  409. // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
  410. string name = 1 [
  411. (google.api.field_behavior) = REQUIRED,
  412. (google.api.resource_reference) = {
  413. type: "aiplatform.googleapis.com/DataLabelingJob"
  414. }
  415. ];
  416. }
  417. // Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob].
  418. message CancelDataLabelingJobRequest {
  419. // Required. The name of the DataLabelingJob.
  420. // Format:
  421. // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
  422. string name = 1 [
  423. (google.api.field_behavior) = REQUIRED,
  424. (google.api.resource_reference) = {
  425. type: "aiplatform.googleapis.com/DataLabelingJob"
  426. }
  427. ];
  428. }
  429. // Request message for [JobService.CreateHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJob].
  430. message CreateHyperparameterTuningJobRequest {
  431. // Required. The resource name of the Location to create the HyperparameterTuningJob in.
  432. // Format: `projects/{project}/locations/{location}`
  433. string parent = 1 [
  434. (google.api.field_behavior) = REQUIRED,
  435. (google.api.resource_reference) = {
  436. type: "locations.googleapis.com/Location"
  437. }
  438. ];
  439. // Required. The HyperparameterTuningJob to create.
  440. HyperparameterTuningJob hyperparameter_tuning_job = 2 [(google.api.field_behavior) = REQUIRED];
  441. }
  442. // Request message for [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob].
  443. message GetHyperparameterTuningJobRequest {
  444. // Required. The name of the HyperparameterTuningJob resource.
  445. // Format:
  446. // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
  447. string name = 1 [
  448. (google.api.field_behavior) = REQUIRED,
  449. (google.api.resource_reference) = {
  450. type: "aiplatform.googleapis.com/HyperparameterTuningJob"
  451. }
  452. ];
  453. }
  454. // Request message for [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs].
  455. message ListHyperparameterTuningJobsRequest {
  456. // Required. The resource name of the Location to list the HyperparameterTuningJobs
  457. // from. Format: `projects/{project}/locations/{location}`
  458. string parent = 1 [
  459. (google.api.field_behavior) = REQUIRED,
  460. (google.api.resource_reference) = {
  461. type: "locations.googleapis.com/Location"
  462. }
  463. ];
  464. // The standard list filter.
  465. //
  466. // Supported fields:
  467. //
  468. // * `display_name` supports = and !=.
  469. //
  470. // * `state` supports = and !=.
  471. //
  472. // Some examples of using the filter are:
  473. //
  474. // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
  475. //
  476. // * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
  477. //
  478. // * `NOT display_name="my_job"`
  479. //
  480. // * `state="JOB_STATE_FAILED"`
  481. string filter = 2;
  482. // The standard list page size.
  483. int32 page_size = 3;
  484. // The standard list page token.
  485. // Typically obtained via
  486. // [ListHyperparameterTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token] of the previous
  487. // [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs] call.
  488. string page_token = 4;
  489. // Mask specifying which fields to read.
  490. google.protobuf.FieldMask read_mask = 5;
  491. }
  492. // Response message for [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs]
  493. message ListHyperparameterTuningJobsResponse {
  494. // List of HyperparameterTuningJobs in the requested page.
  495. // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials] of the jobs will be not be returned.
  496. repeated HyperparameterTuningJob hyperparameter_tuning_jobs = 1;
  497. // A token to retrieve the next page of results.
  498. // Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.page_token] to obtain that
  499. // page.
  500. string next_page_token = 2;
  501. }
  502. // Request message for [JobService.DeleteHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJob].
  503. message DeleteHyperparameterTuningJobRequest {
  504. // Required. The name of the HyperparameterTuningJob resource to be deleted.
  505. // Format:
  506. // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
  507. string name = 1 [
  508. (google.api.field_behavior) = REQUIRED,
  509. (google.api.resource_reference) = {
  510. type: "aiplatform.googleapis.com/HyperparameterTuningJob"
  511. }
  512. ];
  513. }
  514. // Request message for [JobService.CancelHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJob].
  515. message CancelHyperparameterTuningJobRequest {
  516. // Required. The name of the HyperparameterTuningJob to cancel.
  517. // Format:
  518. // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
  519. string name = 1 [
  520. (google.api.field_behavior) = REQUIRED,
  521. (google.api.resource_reference) = {
  522. type: "aiplatform.googleapis.com/HyperparameterTuningJob"
  523. }
  524. ];
  525. }
  526. // Request message for [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob].
  527. message CreateBatchPredictionJobRequest {
  528. // Required. The resource name of the Location to create the BatchPredictionJob in.
  529. // Format: `projects/{project}/locations/{location}`
  530. string parent = 1 [
  531. (google.api.field_behavior) = REQUIRED,
  532. (google.api.resource_reference) = {
  533. type: "locations.googleapis.com/Location"
  534. }
  535. ];
  536. // Required. The BatchPredictionJob to create.
  537. BatchPredictionJob batch_prediction_job = 2 [(google.api.field_behavior) = REQUIRED];
  538. }
  539. // Request message for [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob].
  540. message GetBatchPredictionJobRequest {
  541. // Required. The name of the BatchPredictionJob resource.
  542. // Format:
  543. // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
  544. string name = 1 [
  545. (google.api.field_behavior) = REQUIRED,
  546. (google.api.resource_reference) = {
  547. type: "aiplatform.googleapis.com/BatchPredictionJob"
  548. }
  549. ];
  550. }
  551. // Request message for [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs].
  552. message ListBatchPredictionJobsRequest {
  553. // Required. The resource name of the Location to list the BatchPredictionJobs
  554. // from. Format: `projects/{project}/locations/{location}`
  555. string parent = 1 [
  556. (google.api.field_behavior) = REQUIRED,
  557. (google.api.resource_reference) = {
  558. type: "locations.googleapis.com/Location"
  559. }
  560. ];
  561. // The standard list filter.
  562. //
  563. // Supported fields:
  564. //
  565. // * `display_name` supports = and !=.
  566. //
  567. // * `state` supports = and !=.
  568. //
  569. // * `model_display_name` supports = and !=
  570. //
  571. // Some examples of using the filter are:
  572. //
  573. // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
  574. //
  575. // * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
  576. //
  577. // * `NOT display_name="my_job"`
  578. //
  579. // * `state="JOB_STATE_FAILED"`
  580. string filter = 2;
  581. // The standard list page size.
  582. int32 page_size = 3;
  583. // The standard list page token.
  584. // Typically obtained via
  585. // [ListBatchPredictionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.next_page_token] of the previous
  586. // [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs] call.
  587. string page_token = 4;
  588. // Mask specifying which fields to read.
  589. google.protobuf.FieldMask read_mask = 5;
  590. }
  591. // Response message for [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs]
  592. message ListBatchPredictionJobsResponse {
  593. // List of BatchPredictionJobs in the requested page.
  594. repeated BatchPredictionJob batch_prediction_jobs = 1;
  595. // A token to retrieve the next page of results.
  596. // Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.page_token] to obtain that
  597. // page.
  598. string next_page_token = 2;
  599. }
  600. // Request message for [JobService.DeleteBatchPredictionJob][google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJob].
  601. message DeleteBatchPredictionJobRequest {
  602. // Required. The name of the BatchPredictionJob resource to be deleted.
  603. // Format:
  604. // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
  605. string name = 1 [
  606. (google.api.field_behavior) = REQUIRED,
  607. (google.api.resource_reference) = {
  608. type: "aiplatform.googleapis.com/BatchPredictionJob"
  609. }
  610. ];
  611. }
  612. // Request message for [JobService.CancelBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJob].
  613. message CancelBatchPredictionJobRequest {
  614. // Required. The name of the BatchPredictionJob to cancel.
  615. // Format:
  616. // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
  617. string name = 1 [
  618. (google.api.field_behavior) = REQUIRED,
  619. (google.api.resource_reference) = {
  620. type: "aiplatform.googleapis.com/BatchPredictionJob"
  621. }
  622. ];
  623. }