// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.7
// 	protoc        v5.27.5
// source: github.com/cloudprober/cloudprober/internal/servers/grpc/proto/config.proto

package proto

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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 ServerConf struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	Port  *int32                 `protobuf:"varint,1,opt,name=port,def=3142" json:"port,omitempty"`
	// Enables gRPC reflection for publicly visible services, allowing grpc_cli to
	// work. See https://grpc.io/grpc/core/md_doc_server_reflection_tutorial.html.
	EnableReflection *bool `protobuf:"varint,2,opt,name=enable_reflection,json=enableReflection,def=0" json:"enable_reflection,omitempty"`
	// If use_dedicated_server is set to true, then create a new gRPC server
	// to handle probes. Otherwise, attempt to reuse gRPC server from runconfig
	// if that was set.
	UseDedicatedServer *bool `protobuf:"varint,3,opt,name=use_dedicated_server,json=useDedicatedServer,def=1" json:"use_dedicated_server,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

// Default values for ServerConf fields.
const (
	Default_ServerConf_Port               = int32(3142)
	Default_ServerConf_EnableReflection   = bool(false)
	Default_ServerConf_UseDedicatedServer = bool(true)
)

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

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

func (*ServerConf) ProtoMessage() {}

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

func (x *ServerConf) GetPort() int32 {
	if x != nil && x.Port != nil {
		return *x.Port
	}
	return Default_ServerConf_Port
}

func (x *ServerConf) GetEnableReflection() bool {
	if x != nil && x.EnableReflection != nil {
		return *x.EnableReflection
	}
	return Default_ServerConf_EnableReflection
}

func (x *ServerConf) GetUseDedicatedServer() bool {
	if x != nil && x.UseDedicatedServer != nil {
		return *x.UseDedicatedServer
	}
	return Default_ServerConf_UseDedicatedServer
}

var File_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto protoreflect.FileDescriptor

const file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDesc = "" +
	"\n" +
	"Kgithub.com/cloudprober/cloudprober/internal/servers/grpc/proto/config.proto\x12\x18cloudprober.servers.grpc\"\x92\x01\n" +
	"\n" +
	"ServerConf\x12\x18\n" +
	"\x04port\x18\x01 \x01(\x05:\x043142R\x04port\x122\n" +
	"\x11enable_reflection\x18\x02 \x01(\b:\x05falseR\x10enableReflection\x126\n" +
	"\x14use_dedicated_server\x18\x03 \x01(\b:\x04trueR\x12useDedicatedServerB@Z>github.com/cloudprober/cloudprober/internal/servers/grpc/proto"

var (
	file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDescOnce sync.Once
	file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDescData []byte
)

func file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDescGZIP() []byte {
	file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDescOnce.Do(func() {
		file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDesc)))
	})
	return file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDescData
}

var file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_goTypes = []any{
	(*ServerConf)(nil), // 0: cloudprober.servers.grpc.ServerConf
}
var file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_init() }
func file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_init() {
	if File_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_goTypes,
		DependencyIndexes: file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_depIdxs,
		MessageInfos:      file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_msgTypes,
	}.Build()
	File_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto = out.File
	file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_goTypes = nil
	file_github_com_cloudprober_cloudprober_internal_servers_grpc_proto_config_proto_depIdxs = nil
}
