hyperparameter_tuning_job.proto 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // Copyright 2022 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.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/cloud/aiplatform/v1beta1/custom_job.proto";
  19. import "google/cloud/aiplatform/v1beta1/encryption_spec.proto";
  20. import "google/cloud/aiplatform/v1beta1/job_state.proto";
  21. import "google/cloud/aiplatform/v1beta1/study.proto";
  22. import "google/protobuf/timestamp.proto";
  23. import "google/rpc/status.proto";
  24. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  25. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  26. option java_multiple_files = true;
  27. option java_outer_classname = "HyperparameterTuningJobProto";
  28. option java_package = "com.google.cloud.aiplatform.v1beta1";
  29. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  30. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  31. // Represents a HyperparameterTuningJob. A HyperparameterTuningJob
  32. // has a Study specification and multiple CustomJobs with identical
  33. // CustomJob specification.
  34. message HyperparameterTuningJob {
  35. option (google.api.resource) = {
  36. type: "aiplatform.googleapis.com/HyperparameterTuningJob"
  37. pattern: "projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}"
  38. };
  39. // Output only. Resource name of the HyperparameterTuningJob.
  40. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  41. // Required. The display name of the HyperparameterTuningJob.
  42. // The name can be up to 128 characters long and can be consist of any UTF-8
  43. // characters.
  44. string display_name = 2 [(google.api.field_behavior) = REQUIRED];
  45. // Required. Study configuration of the HyperparameterTuningJob.
  46. StudySpec study_spec = 4 [(google.api.field_behavior) = REQUIRED];
  47. // Required. The desired total number of Trials.
  48. int32 max_trial_count = 5 [(google.api.field_behavior) = REQUIRED];
  49. // Required. The desired number of Trials to run in parallel.
  50. int32 parallel_trial_count = 6 [(google.api.field_behavior) = REQUIRED];
  51. // The number of failed Trials that need to be seen before failing
  52. // the HyperparameterTuningJob.
  53. //
  54. // If set to 0, Vertex AI decides how many Trials must fail
  55. // before the whole job fails.
  56. int32 max_failed_trial_count = 7;
  57. // Required. The spec of a trial job. The same spec applies to the CustomJobs created
  58. // in all the trials.
  59. CustomJobSpec trial_job_spec = 8 [(google.api.field_behavior) = REQUIRED];
  60. // Output only. Trials of the HyperparameterTuningJob.
  61. repeated Trial trials = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  62. // Output only. The detailed state of the job.
  63. JobState state = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. // Output only. Time when the HyperparameterTuningJob was created.
  65. google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  66. // Output only. Time when the HyperparameterTuningJob for the first time entered the
  67. // `JOB_STATE_RUNNING` state.
  68. google.protobuf.Timestamp start_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  69. // Output only. Time when the HyperparameterTuningJob entered any of the following states:
  70. // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`.
  71. google.protobuf.Timestamp end_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  72. // Output only. Time when the HyperparameterTuningJob was most recently updated.
  73. google.protobuf.Timestamp update_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // Output only. Only populated when job's state is JOB_STATE_FAILED or
  75. // JOB_STATE_CANCELLED.
  76. google.rpc.Status error = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  77. // The labels with user-defined metadata to organize HyperparameterTuningJobs.
  78. //
  79. // Label keys and values can be no longer than 64 characters
  80. // (Unicode codepoints), can only contain lowercase letters, numeric
  81. // characters, underscores and dashes. International characters are allowed.
  82. //
  83. // See https://goo.gl/xmQnxf for more information and examples of labels.
  84. map<string, string> labels = 16;
  85. // Customer-managed encryption key options for a HyperparameterTuningJob.
  86. // If this is set, then all resources created by the HyperparameterTuningJob
  87. // will be encrypted with the provided encryption key.
  88. EncryptionSpec encryption_spec = 17;
  89. }