# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/batches.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/dataproc/v1/shared_pb' require 'google/longrunning/operations_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/dataproc/v1/batches.proto", :syntax => :proto3) do add_message "google.cloud.dataproc.v1.CreateBatchRequest" do optional :parent, :string, 1 optional :batch, :message, 2, "google.cloud.dataproc.v1.Batch" optional :batch_id, :string, 3 optional :request_id, :string, 4 end add_message "google.cloud.dataproc.v1.GetBatchRequest" do optional :name, :string, 1 end add_message "google.cloud.dataproc.v1.ListBatchesRequest" do optional :parent, :string, 1 optional :page_size, :int32, 2 optional :page_token, :string, 3 end add_message "google.cloud.dataproc.v1.ListBatchesResponse" do repeated :batches, :message, 1, "google.cloud.dataproc.v1.Batch" optional :next_page_token, :string, 2 end add_message "google.cloud.dataproc.v1.DeleteBatchRequest" do optional :name, :string, 1 end add_message "google.cloud.dataproc.v1.Batch" do optional :name, :string, 1 optional :uuid, :string, 2 optional :create_time, :message, 3, "google.protobuf.Timestamp" optional :runtime_info, :message, 8, "google.cloud.dataproc.v1.RuntimeInfo" optional :state, :enum, 9, "google.cloud.dataproc.v1.Batch.State" optional :state_message, :string, 10 optional :state_time, :message, 11, "google.protobuf.Timestamp" optional :creator, :string, 12 map :labels, :string, :string, 13 optional :runtime_config, :message, 14, "google.cloud.dataproc.v1.RuntimeConfig" optional :environment_config, :message, 15, "google.cloud.dataproc.v1.EnvironmentConfig" optional :operation, :string, 16 repeated :state_history, :message, 17, "google.cloud.dataproc.v1.Batch.StateHistory" oneof :batch_config do optional :pyspark_batch, :message, 4, "google.cloud.dataproc.v1.PySparkBatch" optional :spark_batch, :message, 5, "google.cloud.dataproc.v1.SparkBatch" optional :spark_r_batch, :message, 6, "google.cloud.dataproc.v1.SparkRBatch" optional :spark_sql_batch, :message, 7, "google.cloud.dataproc.v1.SparkSqlBatch" end end add_message "google.cloud.dataproc.v1.Batch.StateHistory" do optional :state, :enum, 1, "google.cloud.dataproc.v1.Batch.State" optional :state_message, :string, 2 optional :state_start_time, :message, 3, "google.protobuf.Timestamp" end add_enum "google.cloud.dataproc.v1.Batch.State" do value :STATE_UNSPECIFIED, 0 value :PENDING, 1 value :RUNNING, 2 value :CANCELLING, 3 value :CANCELLED, 4 value :SUCCEEDED, 5 value :FAILED, 6 end add_message "google.cloud.dataproc.v1.PySparkBatch" do optional :main_python_file_uri, :string, 1 repeated :args, :string, 2 repeated :python_file_uris, :string, 3 repeated :jar_file_uris, :string, 4 repeated :file_uris, :string, 5 repeated :archive_uris, :string, 6 end add_message "google.cloud.dataproc.v1.SparkBatch" do repeated :args, :string, 3 repeated :jar_file_uris, :string, 4 repeated :file_uris, :string, 5 repeated :archive_uris, :string, 6 oneof :driver do optional :main_jar_file_uri, :string, 1 optional :main_class, :string, 2 end end add_message "google.cloud.dataproc.v1.SparkRBatch" do optional :main_r_file_uri, :string, 1 repeated :args, :string, 2 repeated :file_uris, :string, 3 repeated :archive_uris, :string, 4 end add_message "google.cloud.dataproc.v1.SparkSqlBatch" do optional :query_file_uri, :string, 1 map :query_variables, :string, :string, 2 repeated :jar_file_uris, :string, 3 end end end module Google module Cloud module Dataproc module V1 CreateBatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.CreateBatchRequest").msgclass GetBatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GetBatchRequest").msgclass ListBatchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListBatchesRequest").msgclass ListBatchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListBatchesResponse").msgclass DeleteBatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DeleteBatchRequest").msgclass Batch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.Batch").msgclass Batch::StateHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.Batch.StateHistory").msgclass Batch::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.Batch.State").enummodule PySparkBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.PySparkBatch").msgclass SparkBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SparkBatch").msgclass SparkRBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SparkRBatch").msgclass SparkSqlBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SparkSqlBatch").msgclass end end end end