// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.31.0
// 	protoc        (unknown)
// source: jsonfilter/v1/jsonfilter.proto

package v1

import (
	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

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)
)

// JSONOperator represents supported JSON filter operators.
type JSONOperator int32

const (
	JSONOperator_JSON_OPERATOR_UNSPECIFIED JSONOperator = 0
	JSONOperator_JSON_OPERATOR_EQ          JSONOperator = 1
	JSONOperator_JSON_OPERATOR_NEQ         JSONOperator = 2
	JSONOperator_JSON_OPERATOR_IN          JSONOperator = 3
)

// Enum value maps for JSONOperator.
var (
	JSONOperator_name = map[int32]string{
		0: "JSON_OPERATOR_UNSPECIFIED",
		1: "JSON_OPERATOR_EQ",
		2: "JSON_OPERATOR_NEQ",
		3: "JSON_OPERATOR_IN",
	}
	JSONOperator_value = map[string]int32{
		"JSON_OPERATOR_UNSPECIFIED": 0,
		"JSON_OPERATOR_EQ":          1,
		"JSON_OPERATOR_NEQ":         2,
		"JSON_OPERATOR_IN":          3,
	}
)

func (x JSONOperator) Enum() *JSONOperator {
	p := new(JSONOperator)
	*p = x
	return p
}

func (x JSONOperator) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (JSONOperator) Descriptor() protoreflect.EnumDescriptor {
	return file_jsonfilter_v1_jsonfilter_proto_enumTypes[0].Descriptor()
}

func (JSONOperator) Type() protoreflect.EnumType {
	return &file_jsonfilter_v1_jsonfilter_proto_enumTypes[0]
}

func (x JSONOperator) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use JSONOperator.Descriptor instead.
func (JSONOperator) EnumDescriptor() ([]byte, []int) {
	return file_jsonfilter_v1_jsonfilter_proto_rawDescGZIP(), []int{0}
}

// JSONFilter represents a filter for JSON fields.
type JSONFilter struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FieldPath string       `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"`
	Operator  JSONOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=jsonfilter.v1.JSONOperator" json:"operator,omitempty"`
	Value     *string      `protobuf:"bytes,43,opt,name=value,proto3,oneof" json:"value,omitempty"`
}

func (x *JSONFilter) Reset() {
	*x = JSONFilter{}
	if protoimpl.UnsafeEnabled {
		mi := &file_jsonfilter_v1_jsonfilter_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*JSONFilter) ProtoMessage() {}

func (x *JSONFilter) ProtoReflect() protoreflect.Message {
	mi := &file_jsonfilter_v1_jsonfilter_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use JSONFilter.ProtoReflect.Descriptor instead.
func (*JSONFilter) Descriptor() ([]byte, []int) {
	return file_jsonfilter_v1_jsonfilter_proto_rawDescGZIP(), []int{0}
}

func (x *JSONFilter) GetFieldPath() string {
	if x != nil {
		return x.FieldPath
	}
	return ""
}

func (x *JSONFilter) GetOperator() JSONOperator {
	if x != nil {
		return x.Operator
	}
	return JSONOperator_JSON_OPERATOR_UNSPECIFIED
}

func (x *JSONFilter) GetValue() string {
	if x != nil && x.Value != nil {
		return *x.Value
	}
	return ""
}

var File_jsonfilter_v1_jsonfilter_proto protoreflect.FileDescriptor

var file_jsonfilter_v1_jsonfilter_proto_rawDesc = []byte{
	0x0a, 0x1e, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f,
	0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
	0x12, 0x0d, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a,
	0x1b, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61,
	0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x01, 0x0a,
	0x0a, 0x4a, 0x53, 0x4f, 0x4e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0a, 0x66,
	0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
	0x07, 0xba, 0x48, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50,
	0x61, 0x74, 0x68, 0x12, 0x41, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18,
	0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x69, 0x6c, 0x74,
	0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x53, 0x4f, 0x4e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
	0x6f, 0x72, 0x42, 0x08, 0xba, 0x48, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x08, 0x6f, 0x70,
	0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
	0x2b, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01,
	0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x70, 0x0a, 0x0c, 0x4a,
	0x53, 0x4f, 0x4e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x19, 0x4a,
	0x53, 0x4f, 0x4e, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53,
	0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4a, 0x53,
	0x4f, 0x4e, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x10, 0x01,
	0x12, 0x15, 0x0a, 0x11, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f,
	0x52, 0x5f, 0x4e, 0x45, 0x51, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x4a, 0x53, 0x4f, 0x4e, 0x5f,
	0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x10, 0x03, 0x42, 0x47, 0x5a,
	0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x61, 0x69,
	0x6e, 0x6c, 0x6f, 0x6f, 0x70, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x6c,
	0x6f, 0x6f, 0x70, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x70,
	0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x66, 0x69, 0x6c,
	0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_jsonfilter_v1_jsonfilter_proto_rawDescOnce sync.Once
	file_jsonfilter_v1_jsonfilter_proto_rawDescData = file_jsonfilter_v1_jsonfilter_proto_rawDesc
)

func file_jsonfilter_v1_jsonfilter_proto_rawDescGZIP() []byte {
	file_jsonfilter_v1_jsonfilter_proto_rawDescOnce.Do(func() {
		file_jsonfilter_v1_jsonfilter_proto_rawDescData = protoimpl.X.CompressGZIP(file_jsonfilter_v1_jsonfilter_proto_rawDescData)
	})
	return file_jsonfilter_v1_jsonfilter_proto_rawDescData
}

var file_jsonfilter_v1_jsonfilter_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_jsonfilter_v1_jsonfilter_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_jsonfilter_v1_jsonfilter_proto_goTypes = []interface{}{
	(JSONOperator)(0),  // 0: jsonfilter.v1.JSONOperator
	(*JSONFilter)(nil), // 1: jsonfilter.v1.JSONFilter
}
var file_jsonfilter_v1_jsonfilter_proto_depIdxs = []int32{
	0, // 0: jsonfilter.v1.JSONFilter.operator:type_name -> jsonfilter.v1.JSONOperator
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] 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_jsonfilter_v1_jsonfilter_proto_init() }
func file_jsonfilter_v1_jsonfilter_proto_init() {
	if File_jsonfilter_v1_jsonfilter_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_jsonfilter_v1_jsonfilter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*JSONFilter); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	file_jsonfilter_v1_jsonfilter_proto_msgTypes[0].OneofWrappers = []interface{}{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_jsonfilter_v1_jsonfilter_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_jsonfilter_v1_jsonfilter_proto_goTypes,
		DependencyIndexes: file_jsonfilter_v1_jsonfilter_proto_depIdxs,
		EnumInfos:         file_jsonfilter_v1_jsonfilter_proto_enumTypes,
		MessageInfos:      file_jsonfilter_v1_jsonfilter_proto_msgTypes,
	}.Build()
	File_jsonfilter_v1_jsonfilter_proto = out.File
	file_jsonfilter_v1_jsonfilter_proto_rawDesc = nil
	file_jsonfilter_v1_jsonfilter_proto_goTypes = nil
	file_jsonfilter_v1_jsonfilter_proto_depIdxs = nil
}
