// 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/surfacers/internal/probestatus/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 SurfacerConf struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// default 60s
	ResolutionSec *int32 `protobuf:"varint,1,opt,name=resolution_sec,json=resolutionSec,def=60" json:"resolution_sec,omitempty"`
	// Number of points in each timeseries. This field dictates how far back
	// can you go up to (resolution_sec * timeseries_size). Note that higher
	// this number, more memory you'll use.
	TimeseriesSize *int32 `protobuf:"varint,2,opt,name=timeseries_size,json=timeseriesSize,def=4320" json:"timeseries_size,omitempty"`
	// Max targets per probe.
	MaxTargetsPerProbe *int32 `protobuf:"varint,3,opt,name=max_targets_per_probe,json=maxTargetsPerProbe,def=20" json:"max_targets_per_probe,omitempty"`
	// ProbeStatus URL
	// This field is now deprecated and soon setting it will result in an
	// error.
	// Note that older default URL /probestatus forwards to this URL to avoid
	// breaking older default setups.
	Url *string `protobuf:"bytes,4,opt,name=url,def=/status" json:"url,omitempty"`
	// Page cache time
	CacheTimeSec *int32 `protobuf:"varint,5,opt,name=cache_time_sec,json=cacheTimeSec,def=2" json:"cache_time_sec,omitempty"`
	// Probestatus surfacer is enabled by default. To disable it, set this
	// option.
	Disable       *bool `protobuf:"varint,6,opt,name=disable" json:"disable,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

// Default values for SurfacerConf fields.
const (
	Default_SurfacerConf_ResolutionSec      = int32(60)
	Default_SurfacerConf_TimeseriesSize     = int32(4320)
	Default_SurfacerConf_MaxTargetsPerProbe = int32(20)
	Default_SurfacerConf_Url                = string("/status")
	Default_SurfacerConf_CacheTimeSec       = int32(2)
)

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

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

func (*SurfacerConf) ProtoMessage() {}

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

func (x *SurfacerConf) GetResolutionSec() int32 {
	if x != nil && x.ResolutionSec != nil {
		return *x.ResolutionSec
	}
	return Default_SurfacerConf_ResolutionSec
}

func (x *SurfacerConf) GetTimeseriesSize() int32 {
	if x != nil && x.TimeseriesSize != nil {
		return *x.TimeseriesSize
	}
	return Default_SurfacerConf_TimeseriesSize
}

func (x *SurfacerConf) GetMaxTargetsPerProbe() int32 {
	if x != nil && x.MaxTargetsPerProbe != nil {
		return *x.MaxTargetsPerProbe
	}
	return Default_SurfacerConf_MaxTargetsPerProbe
}

func (x *SurfacerConf) GetUrl() string {
	if x != nil && x.Url != nil {
		return *x.Url
	}
	return Default_SurfacerConf_Url
}

func (x *SurfacerConf) GetCacheTimeSec() int32 {
	if x != nil && x.CacheTimeSec != nil {
		return *x.CacheTimeSec
	}
	return Default_SurfacerConf_CacheTimeSec
}

func (x *SurfacerConf) GetDisable() bool {
	if x != nil && x.Disable != nil {
		return *x.Disable
	}
	return false
}

var File_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto protoreflect.FileDescriptor

const file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDesc = "" +
	"\n" +
	"Tgithub.com/cloudprober/cloudprober/surfacers/internal/probestatus/proto/config.proto\x12 cloudprober.surfacer.probestatus\"\xfd\x01\n" +
	"\fSurfacerConf\x12)\n" +
	"\x0eresolution_sec\x18\x01 \x01(\x05:\x0260R\rresolutionSec\x12-\n" +
	"\x0ftimeseries_size\x18\x02 \x01(\x05:\x044320R\x0etimeseriesSize\x125\n" +
	"\x15max_targets_per_probe\x18\x03 \x01(\x05:\x0220R\x12maxTargetsPerProbe\x12\x19\n" +
	"\x03url\x18\x04 \x01(\t:\a/statusR\x03url\x12'\n" +
	"\x0ecache_time_sec\x18\x05 \x01(\x05:\x012R\fcacheTimeSec\x12\x18\n" +
	"\adisable\x18\x06 \x01(\bR\adisableBIZGgithub.com/cloudprober/cloudprober/surfacers/internal/probestatus/proto"

var (
	file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDescOnce sync.Once
	file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDescData []byte
)

func file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDescGZIP() []byte {
	file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDescOnce.Do(func() {
		file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDesc)))
	})
	return file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDescData
}

var file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_goTypes = []any{
	(*SurfacerConf)(nil), // 0: cloudprober.surfacer.probestatus.SurfacerConf
}
var file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_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_surfacers_internal_probestatus_proto_config_proto_init()
}
func file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_init() {
	if File_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_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_surfacers_internal_probestatus_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_goTypes,
		DependencyIndexes: file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_depIdxs,
		MessageInfos:      file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_msgTypes,
	}.Build()
	File_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto = out.File
	file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_goTypes = nil
	file_github_com_cloudprober_cloudprober_surfacers_internal_probestatus_proto_config_proto_depIdxs = nil
}
