lib/google/cloud/dataproc/v1/workflow_templates_pb.rb in google-cloud-dataproc-v1-0.17.0 vs lib/google/cloud/dataproc/v1/workflow_templates_pb.rb in google-cloud-dataproc-v1-0.18.0

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/workflow_templates.proto require 'google/protobuf' @@ -12,153 +13,38 @@ require 'google/longrunning/operations_pb' require 'google/protobuf/duration_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/dataproc/v1/workflow_templates.proto", :syntax => :proto3) do - add_message "google.cloud.dataproc.v1.WorkflowTemplate" do - optional :id, :string, 2 - optional :name, :string, 1 - optional :version, :int32, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - map :labels, :string, :string, 6 - optional :placement, :message, 7, "google.cloud.dataproc.v1.WorkflowTemplatePlacement" - repeated :jobs, :message, 8, "google.cloud.dataproc.v1.OrderedJob" - repeated :parameters, :message, 9, "google.cloud.dataproc.v1.TemplateParameter" - optional :dag_timeout, :message, 10, "google.protobuf.Duration" + +descriptor_data = "\n1google/cloud/dataproc/v1/workflow_templates.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/dataproc/v1/clusters.proto\x1a#google/cloud/dataproc/v1/jobs.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x82\x06\n\x10WorkflowTemplate\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\x06labels\x18\x06 \x03(\x0b\x32\x36.google.cloud.dataproc.v1.WorkflowTemplate.LabelsEntryB\x03\xe0\x41\x01\x12K\n\tplacement\x18\x07 \x01(\x0b\x32\x33.google.cloud.dataproc.v1.WorkflowTemplatePlacementB\x03\xe0\x41\x02\x12\x37\n\x04jobs\x18\x08 \x03(\x0b\x32$.google.cloud.dataproc.v1.OrderedJobB\x03\xe0\x41\x02\x12\x44\n\nparameters\x18\t \x03(\x0b\x32+.google.cloud.dataproc.v1.TemplateParameterB\x03\xe0\x41\x01\x12\x33\n\x0b\x64\x61g_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xca\x01\xea\x41\xc6\x01\n(dataproc.googleapis.com/WorkflowTemplate\x12Iprojects/{project}/regions/{region}/workflowTemplates/{workflow_template}\x12Mprojects/{project}/locations/{location}/workflowTemplates/{workflow_template} \x01\"\xb4\x01\n\x19WorkflowTemplatePlacement\x12\x43\n\x0fmanaged_cluster\x18\x01 \x01(\x0b\x32(.google.cloud.dataproc.v1.ManagedClusterH\x00\x12\x45\n\x10\x63luster_selector\x18\x02 \x01(\x0b\x32).google.cloud.dataproc.v1.ClusterSelectorH\x00\x42\x0b\n\tplacement\"\xe3\x01\n\x0eManagedCluster\x12\x19\n\x0c\x63luster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.ClusterConfigB\x03\xe0\x41\x02\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.ManagedCluster.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb5\x01\n\x0f\x43lusterSelector\x12\x11\n\x04zone\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x0e\x63luster_labels\x18\x02 \x03(\x0b\x32<.google.cloud.dataproc.v1.ClusterSelector.ClusterLabelsEntryB\x03\xe0\x41\x02\x1a\x34\n\x12\x43lusterLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x86\x06\n\nOrderedJob\x12\x14\n\x07step_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12>\n\nhadoop_job\x18\x02 \x01(\x0b\x32#.google.cloud.dataproc.v1.HadoopJobB\x03\xe0\x41\x01H\x00\x12<\n\tspark_job\x18\x03 \x01(\x0b\x32\".google.cloud.dataproc.v1.SparkJobB\x03\xe0\x41\x01H\x00\x12@\n\x0bpyspark_job\x18\x04 \x01(\x0b\x32$.google.cloud.dataproc.v1.PySparkJobB\x03\xe0\x41\x01H\x00\x12:\n\x08hive_job\x18\x05 \x01(\x0b\x32!.google.cloud.dataproc.v1.HiveJobB\x03\xe0\x41\x01H\x00\x12\x38\n\x07pig_job\x18\x06 \x01(\x0b\x32 .google.cloud.dataproc.v1.PigJobB\x03\xe0\x41\x01H\x00\x12?\n\x0bspark_r_job\x18\x0b \x01(\x0b\x32#.google.cloud.dataproc.v1.SparkRJobB\x03\xe0\x41\x01H\x00\x12\x43\n\rspark_sql_job\x18\x07 \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkSqlJobB\x03\xe0\x41\x01H\x00\x12>\n\npresto_job\x18\x0c \x01(\x0b\x32#.google.cloud.dataproc.v1.PrestoJobB\x03\xe0\x41\x01H\x00\x12\x45\n\x06labels\x18\x08 \x03(\x0b\x32\x30.google.cloud.dataproc.v1.OrderedJob.LabelsEntryB\x03\xe0\x41\x01\x12@\n\nscheduling\x18\t \x01(\x0b\x32\'.google.cloud.dataproc.v1.JobSchedulingB\x03\xe0\x41\x01\x12\"\n\x15prerequisite_step_ids\x18\n \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08job_type\"\x9d\x01\n\x11TemplateParameter\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ields\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x46\n\nvalidation\x18\x04 \x01(\x0b\x32-.google.cloud.dataproc.v1.ParameterValidationB\x03\xe0\x41\x01\"\xa1\x01\n\x13ParameterValidation\x12:\n\x05regex\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.RegexValidationH\x00\x12;\n\x06values\x18\x02 \x01(\x0b\x32).google.cloud.dataproc.v1.ValueValidationH\x00\x42\x11\n\x0fvalidation_type\"\'\n\x0fRegexValidation\x12\x14\n\x07regexes\x18\x01 \x03(\tB\x03\xe0\x41\x02\"&\n\x0fValueValidation\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\"\xd4\x06\n\x10WorkflowMetadata\x12\x15\n\x08template\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12G\n\x0e\x63reate_cluster\x18\x03 \x01(\x0b\x32*.google.cloud.dataproc.v1.ClusterOperationB\x03\xe0\x41\x03\x12;\n\x05graph\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.WorkflowGraphB\x03\xe0\x41\x03\x12G\n\x0e\x64\x65lete_cluster\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.ClusterOperationB\x03\xe0\x41\x03\x12\x44\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.WorkflowMetadata.StateB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_name\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12N\n\nparameters\x18\x08 \x03(\x0b\x32:.google.cloud.dataproc.v1.WorkflowMetadata.ParametersEntry\x12\x33\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_uuid\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x33\n\x0b\x64\x61g_timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x37\n\x0e\x64\x61g_start_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0c\x64\x61g_end_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05State\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\"T\n\x10\x43lusterOperation\x12\x19\n\x0coperation_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x65rror\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04\x64one\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\"K\n\rWorkflowGraph\x12:\n\x05nodes\x18\x01 \x03(\x0b\x32&.google.cloud.dataproc.v1.WorkflowNodeB\x03\xe0\x41\x03\"\xa3\x02\n\x0cWorkflowNode\x12\x14\n\x07step_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15prerequisite_step_ids\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x05state\x18\x05 \x01(\x0e\x32\x30.google.cloud.dataproc.v1.WorkflowNode.NodeStateB\x03\xe0\x41\x03\x12\x12\n\x05\x65rror\x18\x06 \x01(\tB\x03\xe0\x41\x03\"j\n\tNodeState\x12\x1a\n\x16NODE_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LOCKED\x10\x01\x12\x0c\n\x08RUNNABLE\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"\xa4\x01\n\x1d\x43reateWorkflowTemplateRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(dataproc.googleapis.com/WorkflowTemplate\x12\x41\n\x08template\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplateB\x03\xe0\x41\x02\"r\n\x1aGetWorkflowTemplateRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dataproc.googleapis.com/WorkflowTemplate\x12\x14\n\x07version\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"\xad\x02\n\"InstantiateWorkflowTemplateRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dataproc.googleapis.com/WorkflowTemplate\x12\x14\n\x07version\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x65\n\nparameters\x18\x06 \x03(\x0b\x32L.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.ParametersEntryB\x03\xe0\x41\x01\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc8\x01\n(InstantiateInlineWorkflowTemplateRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(dataproc.googleapis.com/WorkflowTemplate\x12\x41\n\x08template\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplateB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"b\n\x1dUpdateWorkflowTemplateRequest\x12\x41\n\x08template\x18\x01 \x01(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplateB\x03\xe0\x41\x02\"\x91\x01\n\x1cListWorkflowTemplatesRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(dataproc.googleapis.com/WorkflowTemplate\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x81\x01\n\x1dListWorkflowTemplatesResponse\x12\x42\n\ttemplates\x18\x01 \x03(\x0b\x32*.google.cloud.dataproc.v1.WorkflowTemplateB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"u\n\x1d\x44\x65leteWorkflowTemplateRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dataproc.googleapis.com/WorkflowTemplate\x12\x14\n\x07version\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x32\xe6\x10\n\x17WorkflowTemplateService\x12\x9b\x02\n\x16\x43reateWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"\x9b\x01\x82\xd3\xe4\x93\x02\x82\x01\"5/v1/{parent=projects/*/locations/*}/workflowTemplates:\x08templateZ?\"3/v1/{parent=projects/*/regions/*}/workflowTemplates:\x08template\xda\x41\x0fparent,template\x12\xf4\x01\n\x13GetWorkflowTemplate\x12\x34.google.cloud.dataproc.v1.GetWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"{\x82\xd3\xe4\x93\x02n\x12\x35/v1/{name=projects/*/locations/*/workflowTemplates/*}Z5\x12\x33/v1/{name=projects/*/regions/*/workflowTemplates/*}\xda\x41\x04name\x12\xd5\x02\n\x1bInstantiateWorkflowTemplate\x12<.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation\"\xd8\x01\x82\xd3\xe4\x93\x02\x8c\x01\"A/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate:\x01*ZD\"?/v1/{name=projects/*/regions/*/workflowTemplates/*}:instantiate:\x01*\xda\x41\x04name\xda\x41\x0fname,parameters\xca\x41)\n\x15google.protobuf.Empty\x12\x10WorkflowMetadata\x12\xf4\x02\n!InstantiateInlineWorkflowTemplate\x12\x42.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest\x1a\x1d.google.longrunning.Operation\"\xeb\x01\x82\xd3\xe4\x93\x02\xa6\x01\"G/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline:\x08templateZQ\"E/v1/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline:\x08template\xda\x41\x0fparent,template\xca\x41)\n\x15google.protobuf.Empty\x12\x10WorkflowMetadata\x12\xa6\x02\n\x16UpdateWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest\x1a*.google.cloud.dataproc.v1.WorkflowTemplate\"\xa6\x01\x82\xd3\xe4\x93\x02\x94\x01\x1a>/v1/{template.name=projects/*/locations/*/workflowTemplates/*}:\x08templateZH\x1a</v1/{template.name=projects/*/regions/*/workflowTemplates/*}:\x08template\xda\x41\x08template\x12\x87\x02\n\x15ListWorkflowTemplates\x12\x36.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest\x1a\x37.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse\"}\x82\xd3\xe4\x93\x02n\x12\x35/v1/{parent=projects/*/locations/*}/workflowTemplatesZ5\x12\x33/v1/{parent=projects/*/regions/*}/workflowTemplates\xda\x41\x06parent\x12\xe6\x01\n\x16\x44\x65leteWorkflowTemplate\x12\x37.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest\x1a\x16.google.protobuf.Empty\"{\x82\xd3\xe4\x93\x02n*5/v1/{name=projects/*/locations/*/workflowTemplates/*}Z5*3/v1/{name=projects/*/regions/*/workflowTemplates/*}\xda\x41\x04name\x1aK\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBu\n\x1c\x63om.google.cloud.dataproc.v1B\x16WorkflowTemplatesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError => e + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.cloud.dataproc.v1.ClusterConfig", "google/cloud/dataproc/v1/clusters.proto"], + ["google.cloud.dataproc.v1.HadoopJob", "google/cloud/dataproc/v1/jobs.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_message "google.cloud.dataproc.v1.WorkflowTemplatePlacement" do - oneof :placement do - optional :managed_cluster, :message, 1, "google.cloud.dataproc.v1.ManagedCluster" - optional :cluster_selector, :message, 2, "google.cloud.dataproc.v1.ClusterSelector" - end - end - add_message "google.cloud.dataproc.v1.ManagedCluster" do - optional :cluster_name, :string, 2 - optional :config, :message, 3, "google.cloud.dataproc.v1.ClusterConfig" - map :labels, :string, :string, 4 - end - add_message "google.cloud.dataproc.v1.ClusterSelector" do - optional :zone, :string, 1 - map :cluster_labels, :string, :string, 2 - end - add_message "google.cloud.dataproc.v1.OrderedJob" do - optional :step_id, :string, 1 - map :labels, :string, :string, 8 - optional :scheduling, :message, 9, "google.cloud.dataproc.v1.JobScheduling" - repeated :prerequisite_step_ids, :string, 10 - oneof :job_type do - optional :hadoop_job, :message, 2, "google.cloud.dataproc.v1.HadoopJob" - optional :spark_job, :message, 3, "google.cloud.dataproc.v1.SparkJob" - optional :pyspark_job, :message, 4, "google.cloud.dataproc.v1.PySparkJob" - optional :hive_job, :message, 5, "google.cloud.dataproc.v1.HiveJob" - optional :pig_job, :message, 6, "google.cloud.dataproc.v1.PigJob" - optional :spark_r_job, :message, 11, "google.cloud.dataproc.v1.SparkRJob" - optional :spark_sql_job, :message, 7, "google.cloud.dataproc.v1.SparkSqlJob" - optional :presto_job, :message, 12, "google.cloud.dataproc.v1.PrestoJob" - end - end - add_message "google.cloud.dataproc.v1.TemplateParameter" do - optional :name, :string, 1 - repeated :fields, :string, 2 - optional :description, :string, 3 - optional :validation, :message, 4, "google.cloud.dataproc.v1.ParameterValidation" - end - add_message "google.cloud.dataproc.v1.ParameterValidation" do - oneof :validation_type do - optional :regex, :message, 1, "google.cloud.dataproc.v1.RegexValidation" - optional :values, :message, 2, "google.cloud.dataproc.v1.ValueValidation" - end - end - add_message "google.cloud.dataproc.v1.RegexValidation" do - repeated :regexes, :string, 1 - end - add_message "google.cloud.dataproc.v1.ValueValidation" do - repeated :values, :string, 1 - end - add_message "google.cloud.dataproc.v1.WorkflowMetadata" do - optional :template, :string, 1 - optional :version, :int32, 2 - optional :create_cluster, :message, 3, "google.cloud.dataproc.v1.ClusterOperation" - optional :graph, :message, 4, "google.cloud.dataproc.v1.WorkflowGraph" - optional :delete_cluster, :message, 5, "google.cloud.dataproc.v1.ClusterOperation" - optional :state, :enum, 6, "google.cloud.dataproc.v1.WorkflowMetadata.State" - optional :cluster_name, :string, 7 - map :parameters, :string, :string, 8 - optional :start_time, :message, 9, "google.protobuf.Timestamp" - optional :end_time, :message, 10, "google.protobuf.Timestamp" - optional :cluster_uuid, :string, 11 - optional :dag_timeout, :message, 12, "google.protobuf.Duration" - optional :dag_start_time, :message, 13, "google.protobuf.Timestamp" - optional :dag_end_time, :message, 14, "google.protobuf.Timestamp" - end - add_enum "google.cloud.dataproc.v1.WorkflowMetadata.State" do - value :UNKNOWN, 0 - value :PENDING, 1 - value :RUNNING, 2 - value :DONE, 3 - end - add_message "google.cloud.dataproc.v1.ClusterOperation" do - optional :operation_id, :string, 1 - optional :error, :string, 2 - optional :done, :bool, 3 - end - add_message "google.cloud.dataproc.v1.WorkflowGraph" do - repeated :nodes, :message, 1, "google.cloud.dataproc.v1.WorkflowNode" - end - add_message "google.cloud.dataproc.v1.WorkflowNode" do - optional :step_id, :string, 1 - repeated :prerequisite_step_ids, :string, 2 - optional :job_id, :string, 3 - optional :state, :enum, 5, "google.cloud.dataproc.v1.WorkflowNode.NodeState" - optional :error, :string, 6 - end - add_enum "google.cloud.dataproc.v1.WorkflowNode.NodeState" do - value :NODE_STATE_UNSPECIFIED, 0 - value :BLOCKED, 1 - value :RUNNABLE, 2 - value :RUNNING, 3 - value :COMPLETED, 4 - value :FAILED, 5 - end - add_message "google.cloud.dataproc.v1.CreateWorkflowTemplateRequest" do - optional :parent, :string, 1 - optional :template, :message, 2, "google.cloud.dataproc.v1.WorkflowTemplate" - end - add_message "google.cloud.dataproc.v1.GetWorkflowTemplateRequest" do - optional :name, :string, 1 - optional :version, :int32, 2 - end - add_message "google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest" do - optional :name, :string, 1 - optional :version, :int32, 2 - optional :request_id, :string, 5 - map :parameters, :string, :string, 6 - end - add_message "google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest" do - optional :parent, :string, 1 - optional :template, :message, 2, "google.cloud.dataproc.v1.WorkflowTemplate" - optional :request_id, :string, 3 - end - add_message "google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest" do - optional :template, :message, 1, "google.cloud.dataproc.v1.WorkflowTemplate" - end - add_message "google.cloud.dataproc.v1.ListWorkflowTemplatesRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.dataproc.v1.ListWorkflowTemplatesResponse" do - repeated :templates, :message, 1, "google.cloud.dataproc.v1.WorkflowTemplate" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest" do - optional :name, :string, 1 - optional :version, :int32, 2 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module Dataproc