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

package rpc

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

	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	server_info "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/server_info"
	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 GetServerInfoRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetServerInfoRequest) ProtoMessage() {}

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

type GetServerInfoResponse struct {
	state             protoimpl.MessageState  `protogen:"open.v1"`
	CurrentServerInfo *server_info.ServerInfo `protobuf:"bytes,1,opt,name=current_server_info,proto3" json:"current_server_info,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*GetServerInfoResponse) ProtoMessage() {}

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

func (x *GetServerInfoResponse) GetCurrentServerInfo() *server_info.ServerInfo {
	if x != nil {
		return x.CurrentServerInfo
	}
	return nil
}

var File_internal_module_server_info_rpc_rpc_proto protoreflect.FileDescriptor

const file_internal_module_server_info_rpc_rpc_proto_rawDesc = "" +
	"\n" +
	")internal/module/server_info/rpc/rpc.proto\x12\x1cgitlab.agent.server_info.rpc\x1a-internal/module/server_info/server_info.proto\x1a\x1bbuf/validate/validate.proto\"\x16\n" +
	"\x14GetServerInfoRequest\"w\n" +
	"\x15GetServerInfoResponse\x12^\n" +
	"\x13current_server_info\x18\x01 \x01(\v2$.gitlab.agent.server_info.ServerInfoB\x06\xbaH\x03\xc8\x01\x01R\x13current_server_info2\x8b\x01\n" +
	"\n" +
	"ServerInfo\x12}\n" +
	"\rGetServerInfo\x122.gitlab.agent.server_info.rpc.GetServerInfoRequest\x1a3.gitlab.agent.server_info.rpc.GetServerInfoResponse\"\x03\x90\x02\x01B\\ZZgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/server_info/rpcb\x06proto3"

var (
	file_internal_module_server_info_rpc_rpc_proto_rawDescOnce sync.Once
	file_internal_module_server_info_rpc_rpc_proto_rawDescData []byte
)

func file_internal_module_server_info_rpc_rpc_proto_rawDescGZIP() []byte {
	file_internal_module_server_info_rpc_rpc_proto_rawDescOnce.Do(func() {
		file_internal_module_server_info_rpc_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_module_server_info_rpc_rpc_proto_rawDesc), len(file_internal_module_server_info_rpc_rpc_proto_rawDesc)))
	})
	return file_internal_module_server_info_rpc_rpc_proto_rawDescData
}

var file_internal_module_server_info_rpc_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_internal_module_server_info_rpc_rpc_proto_goTypes = []any{
	(*GetServerInfoRequest)(nil),   // 0: gitlab.agent.server_info.rpc.GetServerInfoRequest
	(*GetServerInfoResponse)(nil),  // 1: gitlab.agent.server_info.rpc.GetServerInfoResponse
	(*server_info.ServerInfo)(nil), // 2: gitlab.agent.server_info.ServerInfo
}
var file_internal_module_server_info_rpc_rpc_proto_depIdxs = []int32{
	2, // 0: gitlab.agent.server_info.rpc.GetServerInfoResponse.current_server_info:type_name -> gitlab.agent.server_info.ServerInfo
	0, // 1: gitlab.agent.server_info.rpc.ServerInfo.GetServerInfo:input_type -> gitlab.agent.server_info.rpc.GetServerInfoRequest
	1, // 2: gitlab.agent.server_info.rpc.ServerInfo.GetServerInfo:output_type -> gitlab.agent.server_info.rpc.GetServerInfoResponse
	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_server_info_rpc_rpc_proto_init() }
func file_internal_module_server_info_rpc_rpc_proto_init() {
	if File_internal_module_server_info_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_server_info_rpc_rpc_proto_rawDesc), len(file_internal_module_server_info_rpc_rpc_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_internal_module_server_info_rpc_rpc_proto_goTypes,
		DependencyIndexes: file_internal_module_server_info_rpc_rpc_proto_depIdxs,
		MessageInfos:      file_internal_module_server_info_rpc_rpc_proto_msgTypes,
	}.Build()
	File_internal_module_server_info_rpc_rpc_proto = out.File
	file_internal_module_server_info_rpc_rpc_proto_goTypes = nil
	file_internal_module_server_info_rpc_rpc_proto_depIdxs = nil
}
