// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.19.0
// source: interservice/cfgmgmt/request/parameters.proto

package request

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 Order int32

const (
	Order_ASC  Order = 0 // By default we order ascending
	Order_DESC Order = 1
)

// Enum value maps for Order.
var (
	Order_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	Order_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

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

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

func (Order) Descriptor() protoreflect.EnumDescriptor {
	return file_interservice_cfgmgmt_request_parameters_proto_enumTypes[0].Descriptor()
}

func (Order) Type() protoreflect.EnumType {
	return &file_interservice_cfgmgmt_request_parameters_proto_enumTypes[0]
}

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

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

type Pagination struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Page          int32                  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty" toml:"page,omitempty" mapstructure:"page,omitempty"`
	Size          int32                  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty" toml:"size,omitempty" mapstructure:"size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Pagination) ProtoMessage() {}

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

func (x *Pagination) GetPage() int32 {
	if x != nil {
		return x.Page
	}
	return 0
}

func (x *Pagination) GetSize() int32 {
	if x != nil {
		return x.Size
	}
	return 0
}

type Sorting struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Field         string                 `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty" toml:"field,omitempty" mapstructure:"field,omitempty"`
	Order         Order                  `protobuf:"varint,2,opt,name=order,proto3,enum=chef.automate.domain.cfgmgmt.request.Order" json:"order,omitempty" toml:"order,omitempty" mapstructure:"order,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Sorting) ProtoMessage() {}

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

func (x *Sorting) GetField() string {
	if x != nil {
		return x.Field
	}
	return ""
}

func (x *Sorting) GetOrder() Order {
	if x != nil {
		return x.Order
	}
	return Order_ASC
}

type Suggestion struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Type          string                 `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty" toml:"type,omitempty" mapstructure:"type,omitempty"`
	Text          string                 `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty" toml:"text,omitempty" mapstructure:"text,omitempty"`
	Filter        []string               `protobuf:"bytes,3,rep,name=filter,proto3" json:"filter,omitempty" toml:"filter,omitempty" mapstructure:"filter,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Suggestion) Reset() {
	*x = Suggestion{}
	mi := &file_interservice_cfgmgmt_request_parameters_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Suggestion) ProtoMessage() {}

func (x *Suggestion) ProtoReflect() protoreflect.Message {
	mi := &file_interservice_cfgmgmt_request_parameters_proto_msgTypes[2]
	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 Suggestion.ProtoReflect.Descriptor instead.
func (*Suggestion) Descriptor() ([]byte, []int) {
	return file_interservice_cfgmgmt_request_parameters_proto_rawDescGZIP(), []int{2}
}

func (x *Suggestion) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *Suggestion) GetText() string {
	if x != nil {
		return x.Text
	}
	return ""
}

func (x *Suggestion) GetFilter() []string {
	if x != nil {
		return x.Filter
	}
	return nil
}

var File_interservice_cfgmgmt_request_parameters_proto protoreflect.FileDescriptor

const file_interservice_cfgmgmt_request_parameters_proto_rawDesc = "" +
	"\n" +
	"-interservice/cfgmgmt/request/parameters.proto\x12$chef.automate.domain.cfgmgmt.request\"4\n" +
	"\n" +
	"Pagination\x12\x12\n" +
	"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
	"\x04size\x18\x02 \x01(\x05R\x04size\"b\n" +
	"\aSorting\x12\x14\n" +
	"\x05field\x18\x01 \x01(\tR\x05field\x12A\n" +
	"\x05order\x18\x02 \x01(\x0e2+.chef.automate.domain.cfgmgmt.request.OrderR\x05order\"L\n" +
	"\n" +
	"Suggestion\x12\x12\n" +
	"\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n" +
	"\x04text\x18\x02 \x01(\tR\x04text\x12\x16\n" +
	"\x06filter\x18\x03 \x03(\tR\x06filter*\x1a\n" +
	"\x05Order\x12\a\n" +
	"\x03ASC\x10\x00\x12\b\n" +
	"\x04DESC\x10\x01B;Z9github.com/chef/automate/api/interservice/cfgmgmt/requestb\x06proto3"

var (
	file_interservice_cfgmgmt_request_parameters_proto_rawDescOnce sync.Once
	file_interservice_cfgmgmt_request_parameters_proto_rawDescData []byte
)

func file_interservice_cfgmgmt_request_parameters_proto_rawDescGZIP() []byte {
	file_interservice_cfgmgmt_request_parameters_proto_rawDescOnce.Do(func() {
		file_interservice_cfgmgmt_request_parameters_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_interservice_cfgmgmt_request_parameters_proto_rawDesc), len(file_interservice_cfgmgmt_request_parameters_proto_rawDesc)))
	})
	return file_interservice_cfgmgmt_request_parameters_proto_rawDescData
}

var file_interservice_cfgmgmt_request_parameters_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_interservice_cfgmgmt_request_parameters_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_interservice_cfgmgmt_request_parameters_proto_goTypes = []any{
	(Order)(0),         // 0: chef.automate.domain.cfgmgmt.request.Order
	(*Pagination)(nil), // 1: chef.automate.domain.cfgmgmt.request.Pagination
	(*Sorting)(nil),    // 2: chef.automate.domain.cfgmgmt.request.Sorting
	(*Suggestion)(nil), // 3: chef.automate.domain.cfgmgmt.request.Suggestion
}
var file_interservice_cfgmgmt_request_parameters_proto_depIdxs = []int32{
	0, // 0: chef.automate.domain.cfgmgmt.request.Sorting.order:type_name -> chef.automate.domain.cfgmgmt.request.Order
	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_interservice_cfgmgmt_request_parameters_proto_init() }
func file_interservice_cfgmgmt_request_parameters_proto_init() {
	if File_interservice_cfgmgmt_request_parameters_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_interservice_cfgmgmt_request_parameters_proto_rawDesc), len(file_interservice_cfgmgmt_request_parameters_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_interservice_cfgmgmt_request_parameters_proto_goTypes,
		DependencyIndexes: file_interservice_cfgmgmt_request_parameters_proto_depIdxs,
		EnumInfos:         file_interservice_cfgmgmt_request_parameters_proto_enumTypes,
		MessageInfos:      file_interservice_cfgmgmt_request_parameters_proto_msgTypes,
	}.Build()
	File_interservice_cfgmgmt_request_parameters_proto = out.File
	file_interservice_cfgmgmt_request_parameters_proto_goTypes = nil
	file_interservice_cfgmgmt_request_parameters_proto_depIdxs = nil
}
