// SPDX-License-Identifier: MIT

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.30.0
// 	protoc        v4.23.4
// source: sysctl.proto

package sysctl

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

type SysctlType int32

const (
	SysctlType_CTL_STR SysctlType = 5
	SysctlType_CTL_32  SysctlType = 6
)

// Enum value maps for SysctlType.
var (
	SysctlType_name = map[int32]string{
		5: "CTL_STR",
		6: "CTL_32",
	}
	SysctlType_value = map[string]int32{
		"CTL_STR": 5,
		"CTL_32":  6,
	}
)

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

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

func (SysctlType) Descriptor() protoreflect.EnumDescriptor {
	return file_sysctl_proto_enumTypes[0].Descriptor()
}

func (SysctlType) Type() protoreflect.EnumType {
	return &file_sysctl_proto_enumTypes[0]
}

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

// Deprecated: Do not use.
func (x *SysctlType) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = SysctlType(num)
	return nil
}

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

type SysctlEntry struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Type *SysctlType `protobuf:"varint,1,req,name=type,enum=SysctlType" json:"type,omitempty"`
	Iarg *int32      `protobuf:"varint,2,opt,name=iarg" json:"iarg,omitempty"`
	Sarg *string     `protobuf:"bytes,3,opt,name=sarg" json:"sarg,omitempty"`
}

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

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

func (*SysctlEntry) ProtoMessage() {}

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

func (x *SysctlEntry) GetType() SysctlType {
	if x != nil && x.Type != nil {
		return *x.Type
	}
	return SysctlType_CTL_STR
}

func (x *SysctlEntry) GetIarg() int32 {
	if x != nil && x.Iarg != nil {
		return *x.Iarg
	}
	return 0
}

func (x *SysctlEntry) GetSarg() string {
	if x != nil && x.Sarg != nil {
		return *x.Sarg
	}
	return ""
}

var File_sysctl_proto protoreflect.FileDescriptor

var file_sysctl_proto_rawDesc = []byte{
	0x0a, 0x0c, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57,
	0x0a, 0x0c, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1f,
	0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x53,
	0x79, 0x73, 0x63, 0x74, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
	0x12, 0x0a, 0x04, 0x69, 0x61, 0x72, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x69,
	0x61, 0x72, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x72, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x04, 0x73, 0x61, 0x72, 0x67, 0x2a, 0x25, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x63, 0x74,
	0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x54, 0x4c, 0x5f, 0x53, 0x54, 0x52,
	0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x54, 0x4c, 0x5f, 0x33, 0x32, 0x10, 0x06,
}

var (
	file_sysctl_proto_rawDescOnce sync.Once
	file_sysctl_proto_rawDescData = file_sysctl_proto_rawDesc
)

func file_sysctl_proto_rawDescGZIP() []byte {
	file_sysctl_proto_rawDescOnce.Do(func() {
		file_sysctl_proto_rawDescData = protoimpl.X.CompressGZIP(file_sysctl_proto_rawDescData)
	})
	return file_sysctl_proto_rawDescData
}

var file_sysctl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_sysctl_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_sysctl_proto_goTypes = []interface{}{
	(SysctlType)(0),     // 0: SysctlType
	(*SysctlEntry)(nil), // 1: sysctl_entry
}
var file_sysctl_proto_depIdxs = []int32{
	0, // 0: sysctl_entry.type:type_name -> SysctlType
	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_sysctl_proto_init() }
func file_sysctl_proto_init() {
	if File_sysctl_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_sysctl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*SysctlEntry); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_sysctl_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_sysctl_proto_goTypes,
		DependencyIndexes: file_sysctl_proto_depIdxs,
		EnumInfos:         file_sysctl_proto_enumTypes,
		MessageInfos:      file_sysctl_proto_msgTypes,
	}.Build()
	File_sysctl_proto = out.File
	file_sysctl_proto_rawDesc = nil
	file_sysctl_proto_goTypes = nil
	file_sysctl_proto_depIdxs = nil
}
