# frozen_string_literal: true
# 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'


descriptor_data = "\n9google/cloud/workflows/executions/v1beta/executions.proto\x12(google.cloud.workflows.executions.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf8\x04\n\tExecution\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12M\n\x05state\x18\x04 \x01(\x0e\x32\x39.google.cloud.workflows.executions.v1beta.Execution.StateB\x03\xe0\x41\x03\x12\x10\n\x08\x61rgument\x18\x05 \x01(\t\x12\x13\n\x06result\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12M\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x39.google.cloud.workflows.executions.v1beta.Execution.ErrorB\x03\xe0\x41\x03\x12!\n\x14workflow_revision_id\x18\x08 \x01(\tB\x03\xe0\x41\x03\x1a)\n\x05\x45rror\x12\x0f\n\x07payload\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontext\x18\x02 \x01(\t\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04:\x86\x01\xea\x41\x82\x01\n+workflowexecutions.googleapis.com/Execution\x12Sprojects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}\"\xc5\x01\n\x15ListExecutionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!workflows.googleapis.com/Workflow\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12J\n\x04view\x18\x04 \x01(\x0e\x32\x37.google.cloud.workflows.executions.v1beta.ExecutionViewB\x03\xe0\x41\x01\"z\n\x16ListExecutionsResponse\x12G\n\nexecutions\x18\x01 \x03(\x0b\x32\x33.google.cloud.workflows.executions.v1beta.Execution\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa0\x01\n\x16\x43reateExecutionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!workflows.googleapis.com/Workflow\x12K\n\texecution\x18\x02 \x01(\x0b\x32\x33.google.cloud.workflows.executions.v1beta.ExecutionB\x03\xe0\x41\x02\"\xa4\x01\n\x13GetExecutionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+workflowexecutions.googleapis.com/Execution\x12J\n\x04view\x18\x02 \x01(\x0e\x32\x37.google.cloud.workflows.executions.v1beta.ExecutionViewB\x03\xe0\x41\x01\"[\n\x16\x43\x61ncelExecutionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+workflowexecutions.googleapis.com/Execution*D\n\rExecutionView\x12\x1e\n\x1a\x45XECUTION_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x32\xf3\x07\n\nExecutions\x12\xe4\x01\n\x0eListExecutions\x12?.google.cloud.workflows.executions.v1beta.ListExecutionsRequest\x1a@.google.cloud.workflows.executions.v1beta.ListExecutionsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1beta/{parent=projects/*/locations/*/workflows/*}/executions\x12\xee\x01\n\x0f\x43reateExecution\x12@.google.cloud.workflows.executions.v1beta.CreateExecutionRequest\x1a\x33.google.cloud.workflows.executions.v1beta.Execution\"d\xda\x41\x10parent,execution\x82\xd3\xe4\x93\x02K\">/v1beta/{parent=projects/*/locations/*/workflows/*}/executions:\texecution\x12\xd1\x01\n\x0cGetExecution\x12=.google.cloud.workflows.executions.v1beta.GetExecutionRequest\x1a\x33.google.cloud.workflows.executions.v1beta.Execution\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1beta/{name=projects/*/locations/*/workflows/*/executions/*}\x12\xe1\x01\n\x0f\x43\x61ncelExecution\x12@.google.cloud.workflows.executions.v1beta.CancelExecutionRequest\x1a\x33.google.cloud.workflows.executions.v1beta.Execution\"W\xda\x41\x04name\x82\xd3\xe4\x93\x02J\"E/v1beta/{name=projects/*/locations/*/workflows/*/executions/*}:cancel:\x01*\x1aU\xca\x41!workflowexecutions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xf3\x01\n,com.google.cloud.workflows.executions.v1betaB\x0f\x45xecutionsProtoP\x01ZLcloud.google.com/go/workflows/executions/apiv1beta/executionspb;executionspb\xea\x41\x61\n!workflows.googleapis.com/Workflow\x12<projects/{project}/locations/{location}/workflows/{workflow}b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # 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"],
  ]
  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
  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 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
