123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924 |
- syntax = "proto3";
- package google.cloud.dataproc.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/longrunning/operations.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- import "google/protobuf/timestamp.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc";
- option java_multiple_files = true;
- option java_outer_classname = "JobsProto";
- option java_package = "com.google.cloud.dataproc.v1";
- service JobController {
- option (google.api.default_host) = "dataproc.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc SubmitJob(SubmitJobRequest) returns (Job) {
- option (google.api.http) = {
- post: "/v1/projects/{project_id}/regions/{region}/jobs:submit"
- body: "*"
- };
- option (google.api.method_signature) = "project_id,region,job";
- }
-
- rpc SubmitJobAsOperation(SubmitJobRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/projects/{project_id}/regions/{region}/jobs:submitAsOperation"
- body: "*"
- };
- option (google.api.method_signature) = "project_id, region, job";
- option (google.longrunning.operation_info) = {
- response_type: "Job"
- metadata_type: "JobMetadata"
- };
- }
-
- rpc GetJob(GetJobRequest) returns (Job) {
- option (google.api.http) = {
- get: "/v1/projects/{project_id}/regions/{region}/jobs/{job_id}"
- };
- option (google.api.method_signature) = "project_id,region,job_id";
- }
-
- rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) {
- option (google.api.http) = {
- get: "/v1/projects/{project_id}/regions/{region}/jobs"
- };
- option (google.api.method_signature) = "project_id,region";
- option (google.api.method_signature) = "project_id,region,filter";
- }
-
- rpc UpdateJob(UpdateJobRequest) returns (Job) {
- option (google.api.http) = {
- patch: "/v1/projects/{project_id}/regions/{region}/jobs/{job_id}"
- body: "job"
- };
- }
-
-
-
-
-
- rpc CancelJob(CancelJobRequest) returns (Job) {
- option (google.api.http) = {
- post: "/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel"
- body: "*"
- };
- option (google.api.method_signature) = "project_id,region,job_id";
- }
-
-
- rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1/projects/{project_id}/regions/{region}/jobs/{job_id}"
- };
- option (google.api.method_signature) = "project_id,region,job_id";
- }
- }
- message LoggingConfig {
-
-
-
- enum Level {
-
- LEVEL_UNSPECIFIED = 0;
-
- ALL = 1;
-
- TRACE = 2;
-
- DEBUG = 3;
-
- INFO = 4;
-
- WARN = 5;
-
- ERROR = 6;
-
- FATAL = 7;
-
- OFF = 8;
- }
-
-
-
-
- map<string, Level> driver_log_levels = 2;
- }
- message HadoopJob {
-
-
-
-
- oneof driver {
-
-
-
-
-
- string main_jar_file_uri = 1;
-
-
- string main_class = 2;
- }
-
-
-
-
- repeated string args = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- map<string, string> properties = 7 [(google.api.field_behavior) = OPTIONAL];
-
- LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL];
- }
- message SparkJob {
-
-
-
-
-
- oneof driver {
-
- string main_jar_file_uri = 1;
-
-
- string main_class = 2;
- }
-
-
-
- repeated string args = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- map<string, string> properties = 7 [(google.api.field_behavior) = OPTIONAL];
-
- LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL];
- }
- message PySparkJob {
-
-
- string main_python_file_uri = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- repeated string args = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string python_file_uris = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- map<string, string> properties = 7 [(google.api.field_behavior) = OPTIONAL];
-
- LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL];
- }
- message QueryList {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- repeated string queries = 1 [(google.api.field_behavior) = REQUIRED];
- }
- message HiveJob {
-
-
- oneof queries {
-
- string query_file_uri = 1;
-
- QueryList query_list = 2;
- }
-
-
-
- bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- map<string, string> script_variables = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- map<string, string> properties = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string jar_file_uris = 6 [(google.api.field_behavior) = OPTIONAL];
- }
- message SparkSqlJob {
-
-
- oneof queries {
-
- string query_file_uri = 1;
-
- QueryList query_list = 2;
- }
-
-
- map<string, string> script_variables = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- map<string, string> properties = 4 [(google.api.field_behavior) = OPTIONAL];
-
- repeated string jar_file_uris = 56 [(google.api.field_behavior) = OPTIONAL];
-
- LoggingConfig logging_config = 6 [(google.api.field_behavior) = OPTIONAL];
- }
- message PigJob {
-
-
- oneof queries {
-
- string query_file_uri = 1;
-
- QueryList query_list = 2;
- }
-
-
-
- bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- map<string, string> script_variables = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- map<string, string> properties = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string jar_file_uris = 6 [(google.api.field_behavior) = OPTIONAL];
-
- LoggingConfig logging_config = 7 [(google.api.field_behavior) = OPTIONAL];
- }
- message SparkRJob {
-
-
- string main_r_file_uri = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- repeated string args = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- map<string, string> properties = 5 [(google.api.field_behavior) = OPTIONAL];
-
- LoggingConfig logging_config = 6 [(google.api.field_behavior) = OPTIONAL];
- }
- message PrestoJob {
-
-
- oneof queries {
-
- string query_file_uri = 1;
-
- QueryList query_list = 2;
- }
-
-
-
- bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- string output_format = 4 [(google.api.field_behavior) = OPTIONAL];
-
- repeated string client_tags = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- map<string, string> properties = 6 [(google.api.field_behavior) = OPTIONAL];
-
- LoggingConfig logging_config = 7 [(google.api.field_behavior) = OPTIONAL];
- }
- message JobPlacement {
-
- string cluster_name = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- string cluster_uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- map<string, string> cluster_labels = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message JobStatus {
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- PENDING = 1;
-
-
- SETUP_DONE = 8;
-
- RUNNING = 2;
-
- CANCEL_PENDING = 3;
-
-
- CANCEL_STARTED = 7;
-
- CANCELLED = 4;
-
- DONE = 5;
-
- ERROR = 6;
-
-
-
-
- ATTEMPT_FAILURE = 9;
- }
-
- enum Substate {
-
- UNSPECIFIED = 0;
-
-
-
- SUBMITTED = 1;
-
-
-
-
-
- QUEUED = 2;
-
-
-
-
-
- STALE_STATUS = 3;
- }
-
- State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string details = 2 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = OPTIONAL
- ];
-
- google.protobuf.Timestamp state_start_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- Substate substate = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message JobReference {
-
-
- string project_id = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- string job_id = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message YarnApplication {
-
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- NEW = 1;
-
- NEW_SAVING = 2;
-
- SUBMITTED = 3;
-
- ACCEPTED = 4;
-
- RUNNING = 5;
-
- FINISHED = 6;
-
- FAILED = 7;
-
- KILLED = 8;
- }
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
-
- State state = 2 [(google.api.field_behavior) = REQUIRED];
-
- float progress = 3 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- string tracking_url = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message Job {
-
-
-
-
- JobReference reference = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
- JobPlacement placement = 2 [(google.api.field_behavior) = REQUIRED];
-
- oneof type_job {
-
- HadoopJob hadoop_job = 3 [(google.api.field_behavior) = OPTIONAL];
-
- SparkJob spark_job = 4 [(google.api.field_behavior) = OPTIONAL];
-
- PySparkJob pyspark_job = 5 [(google.api.field_behavior) = OPTIONAL];
-
- HiveJob hive_job = 6 [(google.api.field_behavior) = OPTIONAL];
-
- PigJob pig_job = 7 [(google.api.field_behavior) = OPTIONAL];
-
- SparkRJob spark_r_job = 21 [(google.api.field_behavior) = OPTIONAL];
-
- SparkSqlJob spark_sql_job = 12 [(google.api.field_behavior) = OPTIONAL];
-
- PrestoJob presto_job = 23 [(google.api.field_behavior) = OPTIONAL];
- }
-
-
-
- JobStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- repeated JobStatus status_history = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- repeated YarnApplication yarn_applications = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string driver_output_resource_uri = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- string driver_control_files_uri = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
-
- map<string, string> labels = 18 [(google.api.field_behavior) = OPTIONAL];
-
- JobScheduling scheduling = 20 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string job_uuid = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- bool done = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message JobScheduling {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- int32 max_failures_per_hour = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
-
- int32 max_failures_total = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message SubmitJobRequest {
-
-
- string project_id = 1 [(google.api.field_behavior) = REQUIRED];
-
- string region = 3 [(google.api.field_behavior) = REQUIRED];
-
- Job job = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
-
-
-
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message JobMetadata {
-
- string job_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- JobStatus status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string operation_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message GetJobRequest {
-
-
- string project_id = 1 [(google.api.field_behavior) = REQUIRED];
-
- string region = 3 [(google.api.field_behavior) = REQUIRED];
-
- string job_id = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message ListJobsRequest {
-
- enum JobStateMatcher {
-
- ALL = 0;
-
-
- ACTIVE = 1;
-
- NON_ACTIVE = 2;
- }
-
-
- string project_id = 1 [(google.api.field_behavior) = REQUIRED];
-
- string region = 6 [(google.api.field_behavior) = REQUIRED];
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- string cluster_name = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- JobStateMatcher job_state_matcher = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string filter = 7 [(google.api.field_behavior) = OPTIONAL];
- }
- message UpdateJobRequest {
-
-
- string project_id = 1 [(google.api.field_behavior) = REQUIRED];
-
- string region = 2 [(google.api.field_behavior) = REQUIRED];
-
- string job_id = 3 [(google.api.field_behavior) = REQUIRED];
-
- Job job = 4 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
- google.protobuf.FieldMask update_mask = 5 [(google.api.field_behavior) = REQUIRED];
- }
- message ListJobsResponse {
-
- repeated Job jobs = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message CancelJobRequest {
-
-
- string project_id = 1 [(google.api.field_behavior) = REQUIRED];
-
- string region = 3 [(google.api.field_behavior) = REQUIRED];
-
- string job_id = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message DeleteJobRequest {
-
-
- string project_id = 1 [(google.api.field_behavior) = REQUIRED];
-
- string region = 3 [(google.api.field_behavior) = REQUIRED];
-
- string job_id = 2 [(google.api.field_behavior) = REQUIRED];
- }
|