// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.8
// 	protoc        v6.33.2
// source: pkg/sentry/strace/strace.proto

package strace_go_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 Strace struct {
	state    protoimpl.MessageState `protogen:"open.v1"`
	Process  string                 `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"`
	Function string                 `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
	Args     []string               `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// Types that are valid to be assigned to Info:
	//
	//	*Strace_Enter
	//	*Strace_Exit
	Info          isStrace_Info `protobuf_oneof:"info"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Strace) ProtoMessage() {}

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

func (x *Strace) GetProcess() string {
	if x != nil {
		return x.Process
	}
	return ""
}

func (x *Strace) GetFunction() string {
	if x != nil {
		return x.Function
	}
	return ""
}

func (x *Strace) GetArgs() []string {
	if x != nil {
		return x.Args
	}
	return nil
}

func (x *Strace) GetInfo() isStrace_Info {
	if x != nil {
		return x.Info
	}
	return nil
}

func (x *Strace) GetEnter() *StraceEnter {
	if x != nil {
		if x, ok := x.Info.(*Strace_Enter); ok {
			return x.Enter
		}
	}
	return nil
}

func (x *Strace) GetExit() *StraceExit {
	if x != nil {
		if x, ok := x.Info.(*Strace_Exit); ok {
			return x.Exit
		}
	}
	return nil
}

type isStrace_Info interface {
	isStrace_Info()
}

type Strace_Enter struct {
	Enter *StraceEnter `protobuf:"bytes,4,opt,name=enter,proto3,oneof"`
}

type Strace_Exit struct {
	Exit *StraceExit `protobuf:"bytes,5,opt,name=exit,proto3,oneof"`
}

func (*Strace_Enter) isStrace_Info() {}

func (*Strace_Exit) isStrace_Info() {}

type StraceEnter struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*StraceEnter) ProtoMessage() {}

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

type StraceExit struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Return        string                 `protobuf:"bytes,1,opt,name=return,proto3" json:"return,omitempty"`
	Error         string                 `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	ErrNo         int64                  `protobuf:"varint,3,opt,name=err_no,json=errNo,proto3" json:"err_no,omitempty"`
	ElapsedNs     int64                  `protobuf:"varint,4,opt,name=elapsed_ns,json=elapsedNs,proto3" json:"elapsed_ns,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*StraceExit) ProtoMessage() {}

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

func (x *StraceExit) GetReturn() string {
	if x != nil {
		return x.Return
	}
	return ""
}

func (x *StraceExit) GetError() string {
	if x != nil {
		return x.Error
	}
	return ""
}

func (x *StraceExit) GetErrNo() int64 {
	if x != nil {
		return x.ErrNo
	}
	return 0
}

func (x *StraceExit) GetElapsedNs() int64 {
	if x != nil {
		return x.ElapsedNs
	}
	return 0
}

var File_pkg_sentry_strace_strace_proto protoreflect.FileDescriptor

const file_pkg_sentry_strace_strace_proto_rawDesc = "" +
	"\n" +
	"\x1epkg/sentry/strace/strace.proto\x12\x06gvisor\"\xb1\x01\n" +
	"\x06Strace\x12\x18\n" +
	"\aprocess\x18\x01 \x01(\tR\aprocess\x12\x1a\n" +
	"\bfunction\x18\x02 \x01(\tR\bfunction\x12\x12\n" +
	"\x04args\x18\x03 \x03(\tR\x04args\x12+\n" +
	"\x05enter\x18\x04 \x01(\v2\x13.gvisor.StraceEnterH\x00R\x05enter\x12(\n" +
	"\x04exit\x18\x05 \x01(\v2\x12.gvisor.StraceExitH\x00R\x04exitB\x06\n" +
	"\x04info\"\r\n" +
	"\vStraceEnter\"p\n" +
	"\n" +
	"StraceExit\x12\x16\n" +
	"\x06return\x18\x01 \x01(\tR\x06return\x12\x14\n" +
	"\x05error\x18\x02 \x01(\tR\x05error\x12\x15\n" +
	"\x06err_no\x18\x03 \x01(\x03R\x05errNo\x12\x1d\n" +
	"\n" +
	"elapsed_ns\x18\x04 \x01(\x03R\telapsedNsb\x06proto3"

var (
	file_pkg_sentry_strace_strace_proto_rawDescOnce sync.Once
	file_pkg_sentry_strace_strace_proto_rawDescData []byte
)

func file_pkg_sentry_strace_strace_proto_rawDescGZIP() []byte {
	file_pkg_sentry_strace_strace_proto_rawDescOnce.Do(func() {
		file_pkg_sentry_strace_strace_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_sentry_strace_strace_proto_rawDesc), len(file_pkg_sentry_strace_strace_proto_rawDesc)))
	})
	return file_pkg_sentry_strace_strace_proto_rawDescData
}

var file_pkg_sentry_strace_strace_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_pkg_sentry_strace_strace_proto_goTypes = []any{
	(*Strace)(nil),      // 0: gvisor.Strace
	(*StraceEnter)(nil), // 1: gvisor.StraceEnter
	(*StraceExit)(nil),  // 2: gvisor.StraceExit
}
var file_pkg_sentry_strace_strace_proto_depIdxs = []int32{
	1, // 0: gvisor.Strace.enter:type_name -> gvisor.StraceEnter
	2, // 1: gvisor.Strace.exit:type_name -> gvisor.StraceExit
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_pkg_sentry_strace_strace_proto_init() }
func file_pkg_sentry_strace_strace_proto_init() {
	if File_pkg_sentry_strace_strace_proto != nil {
		return
	}
	file_pkg_sentry_strace_strace_proto_msgTypes[0].OneofWrappers = []any{
		(*Strace_Enter)(nil),
		(*Strace_Exit)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_sentry_strace_strace_proto_rawDesc), len(file_pkg_sentry_strace_strace_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_pkg_sentry_strace_strace_proto_goTypes,
		DependencyIndexes: file_pkg_sentry_strace_strace_proto_depIdxs,
		MessageInfos:      file_pkg_sentry_strace_strace_proto_msgTypes,
	}.Build()
	File_pkg_sentry_strace_strace_proto = out.File
	file_pkg_sentry_strace_strace_proto_goTypes = nil
	file_pkg_sentry_strace_strace_proto_depIdxs = nil
}
