// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.7
// 	protoc        v6.32.0
// source: internal/module/autoflow/rpc/rpc.proto

package rpc

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	event "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/pkg/event"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type CloudEventRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Event         *event.CloudEvent      `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	FlowProject   *event.Project         `protobuf:"bytes,2,opt,name=flow_project,json=flowProject,proto3" json:"flow_project,omitempty"`
	Variables     map[string]string      `protobuf:"bytes,3,rep,name=variables,proto3" json:"variables,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CloudEventRequest) Reset() {
	*x = CloudEventRequest{}
	mi := &file_internal_module_autoflow_rpc_rpc_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CloudEventRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CloudEventRequest) ProtoMessage() {}

func (x *CloudEventRequest) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_autoflow_rpc_rpc_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CloudEventRequest.ProtoReflect.Descriptor instead.
func (*CloudEventRequest) Descriptor() ([]byte, []int) {
	return file_internal_module_autoflow_rpc_rpc_proto_rawDescGZIP(), []int{0}
}

func (x *CloudEventRequest) GetEvent() *event.CloudEvent {
	if x != nil {
		return x.Event
	}
	return nil
}

func (x *CloudEventRequest) GetFlowProject() *event.Project {
	if x != nil {
		return x.FlowProject
	}
	return nil
}

func (x *CloudEventRequest) GetVariables() map[string]string {
	if x != nil {
		return x.Variables
	}
	return nil
}

type CloudEventResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CloudEventResponse) Reset() {
	*x = CloudEventResponse{}
	mi := &file_internal_module_autoflow_rpc_rpc_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CloudEventResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CloudEventResponse) ProtoMessage() {}

func (x *CloudEventResponse) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_autoflow_rpc_rpc_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CloudEventResponse.ProtoReflect.Descriptor instead.
func (*CloudEventResponse) Descriptor() ([]byte, []int) {
	return file_internal_module_autoflow_rpc_rpc_proto_rawDescGZIP(), []int{1}
}

var File_internal_module_autoflow_rpc_rpc_proto protoreflect.FileDescriptor

const file_internal_module_autoflow_rpc_rpc_proto_rawDesc = "" +
	"\n" +
	"&internal/module/autoflow/rpc/rpc.proto\x12\x19gitlab.agent.autoflow.rpc\x1a\x1bbuf/validate/validate.proto\x1a\x15pkg/event/event.proto\"\xb2\x02\n" +
	"\x11CloudEventRequest\x12<\n" +
	"\x05event\x18\x01 \x01(\v2\x1e.gitlab.agent.event.CloudEventB\x06\xbaH\x03\xc8\x01\x01R\x05event\x12F\n" +
	"\fflow_project\x18\x02 \x01(\v2\x1b.gitlab.agent.event.ProjectB\x06\xbaH\x03\xc8\x01\x01R\vflowProject\x12Y\n" +
	"\tvariables\x18\x03 \x03(\v2;.gitlab.agent.autoflow.rpc.CloudEventRequest.VariablesEntryR\tvariables\x1a<\n" +
	"\x0eVariablesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x14\n" +
	"\x12CloudEventResponse2w\n" +
	"\bAutoFlow\x12k\n" +
	"\n" +
	"CloudEvent\x12,.gitlab.agent.autoflow.rpc.CloudEventRequest\x1a-.gitlab.agent.autoflow.rpc.CloudEventResponse\"\x00BxZWgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/autoflow/rpc\xea\x02\x1cGitlab::Agent::AutoFlow::Rpcb\x06proto3"

var (
	file_internal_module_autoflow_rpc_rpc_proto_rawDescOnce sync.Once
	file_internal_module_autoflow_rpc_rpc_proto_rawDescData []byte
)

func file_internal_module_autoflow_rpc_rpc_proto_rawDescGZIP() []byte {
	file_internal_module_autoflow_rpc_rpc_proto_rawDescOnce.Do(func() {
		file_internal_module_autoflow_rpc_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_module_autoflow_rpc_rpc_proto_rawDesc), len(file_internal_module_autoflow_rpc_rpc_proto_rawDesc)))
	})
	return file_internal_module_autoflow_rpc_rpc_proto_rawDescData
}

var file_internal_module_autoflow_rpc_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_internal_module_autoflow_rpc_rpc_proto_goTypes = []any{
	(*CloudEventRequest)(nil),  // 0: gitlab.agent.autoflow.rpc.CloudEventRequest
	(*CloudEventResponse)(nil), // 1: gitlab.agent.autoflow.rpc.CloudEventResponse
	nil,                        // 2: gitlab.agent.autoflow.rpc.CloudEventRequest.VariablesEntry
	(*event.CloudEvent)(nil),   // 3: gitlab.agent.event.CloudEvent
	(*event.Project)(nil),      // 4: gitlab.agent.event.Project
}
var file_internal_module_autoflow_rpc_rpc_proto_depIdxs = []int32{
	3, // 0: gitlab.agent.autoflow.rpc.CloudEventRequest.event:type_name -> gitlab.agent.event.CloudEvent
	4, // 1: gitlab.agent.autoflow.rpc.CloudEventRequest.flow_project:type_name -> gitlab.agent.event.Project
	2, // 2: gitlab.agent.autoflow.rpc.CloudEventRequest.variables:type_name -> gitlab.agent.autoflow.rpc.CloudEventRequest.VariablesEntry
	0, // 3: gitlab.agent.autoflow.rpc.AutoFlow.CloudEvent:input_type -> gitlab.agent.autoflow.rpc.CloudEventRequest
	1, // 4: gitlab.agent.autoflow.rpc.AutoFlow.CloudEvent:output_type -> gitlab.agent.autoflow.rpc.CloudEventResponse
	4, // [4:5] is the sub-list for method output_type
	3, // [3:4] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_internal_module_autoflow_rpc_rpc_proto_init() }
func file_internal_module_autoflow_rpc_rpc_proto_init() {
	if File_internal_module_autoflow_rpc_rpc_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_module_autoflow_rpc_rpc_proto_rawDesc), len(file_internal_module_autoflow_rpc_rpc_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_internal_module_autoflow_rpc_rpc_proto_goTypes,
		DependencyIndexes: file_internal_module_autoflow_rpc_rpc_proto_depIdxs,
		MessageInfos:      file_internal_module_autoflow_rpc_rpc_proto_msgTypes,
	}.Build()
	File_internal_module_autoflow_rpc_rpc_proto = out.File
	file_internal_module_autoflow_rpc_rpc_proto_goTypes = nil
	file_internal_module_autoflow_rpc_rpc_proto_depIdxs = nil
}
