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

package rpc

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

	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	agentcfg "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/pkg/agentcfg"
	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 ConfigurationRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	CommitId      string                 `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ConfigurationRequest) ProtoMessage() {}

func (x *ConfigurationRequest) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_agent_configuration_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 ConfigurationRequest.ProtoReflect.Descriptor instead.
func (*ConfigurationRequest) Descriptor() ([]byte, []int) {
	return file_internal_module_agent_configuration_rpc_rpc_proto_rawDescGZIP(), []int{0}
}

func (x *ConfigurationRequest) GetCommitId() string {
	if x != nil {
		return x.CommitId
	}
	return ""
}

type ConfigurationResponse struct {
	state         protoimpl.MessageState       `protogen:"open.v1"`
	Configuration *agentcfg.AgentConfiguration `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"`
	CommitId      string                       `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ConfigurationResponse) ProtoMessage() {}

func (x *ConfigurationResponse) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_agent_configuration_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 ConfigurationResponse.ProtoReflect.Descriptor instead.
func (*ConfigurationResponse) Descriptor() ([]byte, []int) {
	return file_internal_module_agent_configuration_rpc_rpc_proto_rawDescGZIP(), []int{1}
}

func (x *ConfigurationResponse) GetConfiguration() *agentcfg.AgentConfiguration {
	if x != nil {
		return x.Configuration
	}
	return nil
}

func (x *ConfigurationResponse) GetCommitId() string {
	if x != nil {
		return x.CommitId
	}
	return ""
}

var File_internal_module_agent_configuration_rpc_rpc_proto protoreflect.FileDescriptor

const file_internal_module_agent_configuration_rpc_rpc_proto_rawDesc = "" +
	"\n" +
	"1internal/module/agent_configuration/rpc/rpc.proto\x12$gitlab.agent.agent_configuration.rpc\x1a\x1bpkg/agentcfg/agentcfg.proto\x1a\x1bbuf/validate/validate.proto\"?\n" +
	"\x14ConfigurationRequest\x12\x1b\n" +
	"\tcommit_id\x18\x01 \x01(\tR\bcommitIdJ\x04\b\x02\x10\x03J\x04\b\x03\x10\x04\"\x96\x01\n" +
	"\x15ConfigurationResponse\x12W\n" +
	"\rconfiguration\x18\x01 \x01(\v2).gitlab.agent.agentcfg.AgentConfigurationB\x06\xbaH\x03\xc8\x01\x01R\rconfiguration\x12$\n" +
	"\tcommit_id\x18\x02 \x01(\tB\a\xbaH\x04r\x02 \x01R\bcommitId2\xa9\x01\n" +
	"\x12AgentConfiguration\x12\x92\x01\n" +
	"\x10GetConfiguration\x12:.gitlab.agent.agent_configuration.rpc.ConfigurationRequest\x1a;.gitlab.agent.agent_configuration.rpc.ConfigurationResponse\"\x03\x90\x02\x020\x01BdZbgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/agent_configuration/rpcb\x06proto3"

var (
	file_internal_module_agent_configuration_rpc_rpc_proto_rawDescOnce sync.Once
	file_internal_module_agent_configuration_rpc_rpc_proto_rawDescData []byte
)

func file_internal_module_agent_configuration_rpc_rpc_proto_rawDescGZIP() []byte {
	file_internal_module_agent_configuration_rpc_rpc_proto_rawDescOnce.Do(func() {
		file_internal_module_agent_configuration_rpc_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_module_agent_configuration_rpc_rpc_proto_rawDesc), len(file_internal_module_agent_configuration_rpc_rpc_proto_rawDesc)))
	})
	return file_internal_module_agent_configuration_rpc_rpc_proto_rawDescData
}

var file_internal_module_agent_configuration_rpc_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_internal_module_agent_configuration_rpc_rpc_proto_goTypes = []any{
	(*ConfigurationRequest)(nil),        // 0: gitlab.agent.agent_configuration.rpc.ConfigurationRequest
	(*ConfigurationResponse)(nil),       // 1: gitlab.agent.agent_configuration.rpc.ConfigurationResponse
	(*agentcfg.AgentConfiguration)(nil), // 2: gitlab.agent.agentcfg.AgentConfiguration
}
var file_internal_module_agent_configuration_rpc_rpc_proto_depIdxs = []int32{
	2, // 0: gitlab.agent.agent_configuration.rpc.ConfigurationResponse.configuration:type_name -> gitlab.agent.agentcfg.AgentConfiguration
	0, // 1: gitlab.agent.agent_configuration.rpc.AgentConfiguration.GetConfiguration:input_type -> gitlab.agent.agent_configuration.rpc.ConfigurationRequest
	1, // 2: gitlab.agent.agent_configuration.rpc.AgentConfiguration.GetConfiguration:output_type -> gitlab.agent.agent_configuration.rpc.ConfigurationResponse
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_internal_module_agent_configuration_rpc_rpc_proto_init() }
func file_internal_module_agent_configuration_rpc_rpc_proto_init() {
	if File_internal_module_agent_configuration_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_agent_configuration_rpc_rpc_proto_rawDesc), len(file_internal_module_agent_configuration_rpc_rpc_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_internal_module_agent_configuration_rpc_rpc_proto_goTypes,
		DependencyIndexes: file_internal_module_agent_configuration_rpc_rpc_proto_depIdxs,
		MessageInfos:      file_internal_module_agent_configuration_rpc_rpc_proto_msgTypes,
	}.Build()
	File_internal_module_agent_configuration_rpc_rpc_proto = out.File
	file_internal_module_agent_configuration_rpc_rpc_proto_goTypes = nil
	file_internal_module_agent_configuration_rpc_rpc_proto_depIdxs = nil
}
