// 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/validators/proto/config.proto

package proto

import (
	proto "github.com/cloudprober/cloudprober/internal/validators/http/proto"
	proto1 "github.com/cloudprober/cloudprober/internal/validators/integrity/proto"
	proto2 "github.com/cloudprober/cloudprober/internal/validators/json/proto"
	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 Validator struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	Name  string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are valid to be assigned to Type:
	//
	//	*Validator_HttpValidator
	//	*Validator_IntegrityValidator
	//	*Validator_JsonValidator
	//	*Validator_Regex
	Type          isValidator_Type `protobuf_oneof:"type"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Validator) ProtoMessage() {}

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

func (x *Validator) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Validator) GetType() isValidator_Type {
	if x != nil {
		return x.Type
	}
	return nil
}

func (x *Validator) GetHttpValidator() *proto.Validator {
	if x != nil {
		if x, ok := x.Type.(*Validator_HttpValidator); ok {
			return x.HttpValidator
		}
	}
	return nil
}

func (x *Validator) GetIntegrityValidator() *proto1.Validator {
	if x != nil {
		if x, ok := x.Type.(*Validator_IntegrityValidator); ok {
			return x.IntegrityValidator
		}
	}
	return nil
}

func (x *Validator) GetJsonValidator() *proto2.Validator {
	if x != nil {
		if x, ok := x.Type.(*Validator_JsonValidator); ok {
			return x.JsonValidator
		}
	}
	return nil
}

func (x *Validator) GetRegex() string {
	if x != nil {
		if x, ok := x.Type.(*Validator_Regex); ok {
			return x.Regex
		}
	}
	return ""
}

type isValidator_Type interface {
	isValidator_Type()
}

type Validator_HttpValidator struct {
	HttpValidator *proto.Validator `protobuf:"bytes,2,opt,name=http_validator,json=httpValidator,proto3,oneof"`
}

type Validator_IntegrityValidator struct {
	// Data integrity validator
	IntegrityValidator *proto1.Validator `protobuf:"bytes,3,opt,name=integrity_validator,json=integrityValidator,proto3,oneof"`
}

type Validator_JsonValidator struct {
	// JSON validator
	JsonValidator *proto2.Validator `protobuf:"bytes,5,opt,name=json_validator,json=jsonValidator,proto3,oneof"`
}

type Validator_Regex struct {
	// Regex validator
	Regex string `protobuf:"bytes,4,opt,name=regex,proto3,oneof"`
}

func (*Validator_HttpValidator) isValidator_Type() {}

func (*Validator_IntegrityValidator) isValidator_Type() {}

func (*Validator_JsonValidator) isValidator_Type() {}

func (*Validator_Regex) isValidator_Type() {}

var File_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto protoreflect.FileDescriptor

const file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDesc = "" +
	"\n" +
	"Igithub.com/cloudprober/cloudprober/internal/validators/proto/config.proto\x12\x16cloudprober.validators\x1aNgithub.com/cloudprober/cloudprober/internal/validators/http/proto/config.proto\x1aSgithub.com/cloudprober/cloudprober/internal/validators/integrity/proto/config.proto\x1aNgithub.com/cloudprober/cloudprober/internal/validators/json/proto/config.proto\"\xc1\x02\n" +
	"\tValidator\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12O\n" +
	"\x0ehttp_validator\x18\x02 \x01(\v2&.cloudprober.validators.http.ValidatorH\x00R\rhttpValidator\x12^\n" +
	"\x13integrity_validator\x18\x03 \x01(\v2+.cloudprober.validators.integrity.ValidatorH\x00R\x12integrityValidator\x12O\n" +
	"\x0ejson_validator\x18\x05 \x01(\v2&.cloudprober.validators.json.ValidatorH\x00R\rjsonValidator\x12\x16\n" +
	"\x05regex\x18\x04 \x01(\tH\x00R\x05regexB\x06\n" +
	"\x04typeB>Z<github.com/cloudprober/cloudprober/internal/validators/protob\x06proto3"

var (
	file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDescOnce sync.Once
	file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDescData []byte
)

func file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDescGZIP() []byte {
	file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDescOnce.Do(func() {
		file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDesc)))
	})
	return file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDescData
}

var file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_goTypes = []any{
	(*Validator)(nil),        // 0: cloudprober.validators.Validator
	(*proto.Validator)(nil),  // 1: cloudprober.validators.http.Validator
	(*proto1.Validator)(nil), // 2: cloudprober.validators.integrity.Validator
	(*proto2.Validator)(nil), // 3: cloudprober.validators.json.Validator
}
var file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_depIdxs = []int32{
	1, // 0: cloudprober.validators.Validator.http_validator:type_name -> cloudprober.validators.http.Validator
	2, // 1: cloudprober.validators.Validator.integrity_validator:type_name -> cloudprober.validators.integrity.Validator
	3, // 2: cloudprober.validators.Validator.json_validator:type_name -> cloudprober.validators.json.Validator
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] 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_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_init() }
func file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_init() {
	if File_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto != nil {
		return
	}
	file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_msgTypes[0].OneofWrappers = []any{
		(*Validator_HttpValidator)(nil),
		(*Validator_IntegrityValidator)(nil),
		(*Validator_JsonValidator)(nil),
		(*Validator_Regex)(nil),
	}
	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_validators_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_goTypes,
		DependencyIndexes: file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_depIdxs,
		MessageInfos:      file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_msgTypes,
	}.Build()
	File_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto = out.File
	file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_goTypes = nil
	file_github_com_cloudprober_cloudprober_internal_validators_proto_config_proto_depIdxs = nil
}
