# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/workflows/executions/v1beta/executions.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/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/cloud/workflows/executions/v1beta/executions.proto", :syntax => :proto3) do
    add_message "google.cloud.workflows.executions.v1beta.Execution" do
      optional :name, :string, 1
      optional :start_time, :message, 2, "google.protobuf.Timestamp"
      optional :end_time, :message, 3, "google.protobuf.Timestamp"
      optional :state, :enum, 4, "google.cloud.workflows.executions.v1beta.Execution.State"
      optional :argument, :string, 5
      optional :result, :string, 6
      optional :error, :message, 7, "google.cloud.workflows.executions.v1beta.Execution.Error"
      optional :workflow_revision_id, :string, 8
    end
    add_message "google.cloud.workflows.executions.v1beta.Execution.Error" do
      optional :payload, :string, 1
      optional :context, :string, 2
    end
    add_enum "google.cloud.workflows.executions.v1beta.Execution.State" do
      value :STATE_UNSPECIFIED, 0
      value :ACTIVE, 1
      value :SUCCEEDED, 2
      value :FAILED, 3
      value :CANCELLED, 4
    end
    add_message "google.cloud.workflows.executions.v1beta.ListExecutionsRequest" do
      optional :parent, :string, 1
      optional :page_size, :int32, 2
      optional :page_token, :string, 3
      optional :view, :enum, 4, "google.cloud.workflows.executions.v1beta.ExecutionView"
    end
    add_message "google.cloud.workflows.executions.v1beta.ListExecutionsResponse" do
      repeated :executions, :message, 1, "google.cloud.workflows.executions.v1beta.Execution"
      optional :next_page_token, :string, 2
    end
    add_message "google.cloud.workflows.executions.v1beta.CreateExecutionRequest" do
      optional :parent, :string, 1
      optional :execution, :message, 2, "google.cloud.workflows.executions.v1beta.Execution"
    end
    add_message "google.cloud.workflows.executions.v1beta.GetExecutionRequest" do
      optional :name, :string, 1
      optional :view, :enum, 2, "google.cloud.workflows.executions.v1beta.ExecutionView"
    end
    add_message "google.cloud.workflows.executions.v1beta.CancelExecutionRequest" do
      optional :name, :string, 1
    end
    add_enum "google.cloud.workflows.executions.v1beta.ExecutionView" do
      value :EXECUTION_VIEW_UNSPECIFIED, 0
      value :BASIC, 1
      value :FULL, 2
    end
  end
end

module Google
  module Cloud
    module Workflows
      module Executions
        module V1beta
          Execution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.Execution").msgclass
          Execution::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.Execution.Error").msgclass
          Execution::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.Execution.State").enummodule
          ListExecutionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.ListExecutionsRequest").msgclass
          ListExecutionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.ListExecutionsResponse").msgclass
          CreateExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.CreateExecutionRequest").msgclass
          GetExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.GetExecutionRequest").msgclass
          CancelExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.CancelExecutionRequest").msgclass
          ExecutionView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1beta.ExecutionView").enummodule
        end
      end
    end
  end
end