123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279 |
- syntax = "proto3";
- package google.cloud.aiplatform.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/aiplatform/v1/encryption_spec.proto";
- import "google/cloud/aiplatform/v1/env_var.proto";
- import "google/cloud/aiplatform/v1/io.proto";
- import "google/cloud/aiplatform/v1/job_state.proto";
- import "google/cloud/aiplatform/v1/machine_resources.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- import "google/rpc/status.proto";
- option csharp_namespace = "Google.Cloud.AIPlatform.V1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
- option java_multiple_files = true;
- option java_outer_classname = "CustomJobProto";
- option java_package = "com.google.cloud.aiplatform.v1";
- option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
- option ruby_package = "Google::Cloud::AIPlatform::V1";
- message CustomJob {
- option (google.api.resource) = {
- type: "aiplatform.googleapis.com/CustomJob"
- pattern: "projects/{project}/locations/{location}/customJobs/{custom_job}"
- };
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- string display_name = 2 [(google.api.field_behavior) = REQUIRED];
-
- CustomJobSpec job_spec = 4 [(google.api.field_behavior) = REQUIRED];
-
- JobState state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp start_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.rpc.Status error = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
-
- map<string, string> labels = 11;
-
-
-
- EncryptionSpec encryption_spec = 12;
-
-
-
-
-
-
-
-
-
-
-
- map<string, string> web_access_uris = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message CustomJobSpec {
-
-
-
- repeated WorkerPoolSpec worker_pool_specs = 1 [(google.api.field_behavior) = REQUIRED];
-
- Scheduling scheduling = 3;
-
-
-
-
-
- string service_account = 4;
-
-
-
-
-
-
-
-
-
-
-
-
-
- string network = 5 [
- (google.api.field_behavior) = OPTIONAL,
- (google.api.resource_reference) = {
- type: "compute.googleapis.com/Network"
- }
- ];
-
-
-
-
-
-
-
-
- repeated string reserved_ip_ranges = 13 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- GcsDestination base_output_directory = 6;
-
-
-
-
- string tensorboard = 7 [
- (google.api.field_behavior) = OPTIONAL,
- (google.api.resource_reference) = {
- type: "aiplatform.googleapis.com/Tensorboard"
- }
- ];
-
-
-
-
-
-
-
- bool enable_web_access = 10 [(google.api.field_behavior) = OPTIONAL];
- }
- message WorkerPoolSpec {
-
- oneof task {
-
- ContainerSpec container_spec = 6;
-
- PythonPackageSpec python_package_spec = 7;
- }
-
- MachineSpec machine_spec = 1 [
- (google.api.field_behavior) = OPTIONAL,
- (google.api.field_behavior) = IMMUTABLE
- ];
-
- int64 replica_count = 2 [(google.api.field_behavior) = OPTIONAL];
-
- repeated NfsMount nfs_mounts = 4 [(google.api.field_behavior) = OPTIONAL];
-
- DiskSpec disk_spec = 5;
- }
- message ContainerSpec {
-
-
- string image_uri = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- repeated string command = 2;
-
- repeated string args = 3;
-
-
- repeated EnvVar env = 4;
- }
- message PythonPackageSpec {
-
-
-
-
-
-
- string executor_image_uri = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- repeated string package_uris = 2 [(google.api.field_behavior) = REQUIRED];
-
- string python_module = 3 [(google.api.field_behavior) = REQUIRED];
-
- repeated string args = 4;
-
-
- repeated EnvVar env = 5;
- }
- message Scheduling {
-
- google.protobuf.Duration timeout = 1;
-
-
-
- bool restart_job_on_worker_restart = 3;
- }
|