github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/sentry/strace/strace_go_proto/strace.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.30.0
     4  // 	protoc        v3.21.7
     5  // source: pkg/sentry/strace/strace.proto
     6  
     7  package strace_go_proto
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Strace struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Process  string   `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"`
    29  	Function string   `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
    30  	Args     []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
    31  	// Types that are assignable to Info:
    32  	//
    33  	//	*Strace_Enter
    34  	//	*Strace_Exit
    35  	Info isStrace_Info `protobuf_oneof:"info"`
    36  }
    37  
    38  func (x *Strace) Reset() {
    39  	*x = Strace{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_pkg_sentry_strace_strace_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *Strace) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*Strace) ProtoMessage() {}
    52  
    53  func (x *Strace) ProtoReflect() protoreflect.Message {
    54  	mi := &file_pkg_sentry_strace_strace_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use Strace.ProtoReflect.Descriptor instead.
    66  func (*Strace) Descriptor() ([]byte, []int) {
    67  	return file_pkg_sentry_strace_strace_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *Strace) GetProcess() string {
    71  	if x != nil {
    72  		return x.Process
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *Strace) GetFunction() string {
    78  	if x != nil {
    79  		return x.Function
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *Strace) GetArgs() []string {
    85  	if x != nil {
    86  		return x.Args
    87  	}
    88  	return nil
    89  }
    90  
    91  func (m *Strace) GetInfo() isStrace_Info {
    92  	if m != nil {
    93  		return m.Info
    94  	}
    95  	return nil
    96  }
    97  
    98  func (x *Strace) GetEnter() *StraceEnter {
    99  	if x, ok := x.GetInfo().(*Strace_Enter); ok {
   100  		return x.Enter
   101  	}
   102  	return nil
   103  }
   104  
   105  func (x *Strace) GetExit() *StraceExit {
   106  	if x, ok := x.GetInfo().(*Strace_Exit); ok {
   107  		return x.Exit
   108  	}
   109  	return nil
   110  }
   111  
   112  type isStrace_Info interface {
   113  	isStrace_Info()
   114  }
   115  
   116  type Strace_Enter struct {
   117  	Enter *StraceEnter `protobuf:"bytes,4,opt,name=enter,proto3,oneof"`
   118  }
   119  
   120  type Strace_Exit struct {
   121  	Exit *StraceExit `protobuf:"bytes,5,opt,name=exit,proto3,oneof"`
   122  }
   123  
   124  func (*Strace_Enter) isStrace_Info() {}
   125  
   126  func (*Strace_Exit) isStrace_Info() {}
   127  
   128  type StraceEnter struct {
   129  	state         protoimpl.MessageState
   130  	sizeCache     protoimpl.SizeCache
   131  	unknownFields protoimpl.UnknownFields
   132  }
   133  
   134  func (x *StraceEnter) Reset() {
   135  	*x = StraceEnter{}
   136  	if protoimpl.UnsafeEnabled {
   137  		mi := &file_pkg_sentry_strace_strace_proto_msgTypes[1]
   138  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   139  		ms.StoreMessageInfo(mi)
   140  	}
   141  }
   142  
   143  func (x *StraceEnter) String() string {
   144  	return protoimpl.X.MessageStringOf(x)
   145  }
   146  
   147  func (*StraceEnter) ProtoMessage() {}
   148  
   149  func (x *StraceEnter) ProtoReflect() protoreflect.Message {
   150  	mi := &file_pkg_sentry_strace_strace_proto_msgTypes[1]
   151  	if protoimpl.UnsafeEnabled && x != nil {
   152  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   153  		if ms.LoadMessageInfo() == nil {
   154  			ms.StoreMessageInfo(mi)
   155  		}
   156  		return ms
   157  	}
   158  	return mi.MessageOf(x)
   159  }
   160  
   161  // Deprecated: Use StraceEnter.ProtoReflect.Descriptor instead.
   162  func (*StraceEnter) Descriptor() ([]byte, []int) {
   163  	return file_pkg_sentry_strace_strace_proto_rawDescGZIP(), []int{1}
   164  }
   165  
   166  type StraceExit struct {
   167  	state         protoimpl.MessageState
   168  	sizeCache     protoimpl.SizeCache
   169  	unknownFields protoimpl.UnknownFields
   170  
   171  	Return    string `protobuf:"bytes,1,opt,name=return,proto3" json:"return,omitempty"`
   172  	Error     string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
   173  	ErrNo     int64  `protobuf:"varint,3,opt,name=err_no,json=errNo,proto3" json:"err_no,omitempty"`
   174  	ElapsedNs int64  `protobuf:"varint,4,opt,name=elapsed_ns,json=elapsedNs,proto3" json:"elapsed_ns,omitempty"`
   175  }
   176  
   177  func (x *StraceExit) Reset() {
   178  	*x = StraceExit{}
   179  	if protoimpl.UnsafeEnabled {
   180  		mi := &file_pkg_sentry_strace_strace_proto_msgTypes[2]
   181  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   182  		ms.StoreMessageInfo(mi)
   183  	}
   184  }
   185  
   186  func (x *StraceExit) String() string {
   187  	return protoimpl.X.MessageStringOf(x)
   188  }
   189  
   190  func (*StraceExit) ProtoMessage() {}
   191  
   192  func (x *StraceExit) ProtoReflect() protoreflect.Message {
   193  	mi := &file_pkg_sentry_strace_strace_proto_msgTypes[2]
   194  	if protoimpl.UnsafeEnabled && x != nil {
   195  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   196  		if ms.LoadMessageInfo() == nil {
   197  			ms.StoreMessageInfo(mi)
   198  		}
   199  		return ms
   200  	}
   201  	return mi.MessageOf(x)
   202  }
   203  
   204  // Deprecated: Use StraceExit.ProtoReflect.Descriptor instead.
   205  func (*StraceExit) Descriptor() ([]byte, []int) {
   206  	return file_pkg_sentry_strace_strace_proto_rawDescGZIP(), []int{2}
   207  }
   208  
   209  func (x *StraceExit) GetReturn() string {
   210  	if x != nil {
   211  		return x.Return
   212  	}
   213  	return ""
   214  }
   215  
   216  func (x *StraceExit) GetError() string {
   217  	if x != nil {
   218  		return x.Error
   219  	}
   220  	return ""
   221  }
   222  
   223  func (x *StraceExit) GetErrNo() int64 {
   224  	if x != nil {
   225  		return x.ErrNo
   226  	}
   227  	return 0
   228  }
   229  
   230  func (x *StraceExit) GetElapsedNs() int64 {
   231  	if x != nil {
   232  		return x.ElapsedNs
   233  	}
   234  	return 0
   235  }
   236  
   237  var File_pkg_sentry_strace_strace_proto protoreflect.FileDescriptor
   238  
   239  var file_pkg_sentry_strace_strace_proto_rawDesc = []byte{
   240  	0x0a, 0x1e, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x72,
   241  	0x61, 0x63, 0x65, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   242  	0x12, 0x06, 0x67, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x72,
   243  	0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01,
   244  	0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a,
   245  	0x08, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   246  	0x08, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67,
   247  	0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x2b, 0x0a,
   248  	0x05, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67,
   249  	0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x65,
   250  	0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x04, 0x65, 0x78,
   251  	0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x76, 0x69, 0x73, 0x6f,
   252  	0x72, 0x2e, 0x53, 0x74, 0x72, 0x61, 0x63, 0x65, 0x45, 0x78, 0x69, 0x74, 0x48, 0x00, 0x52, 0x04,
   253  	0x65, 0x78, 0x69, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x0d, 0x0a, 0x0b,
   254  	0x53, 0x74, 0x72, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x70, 0x0a, 0x0a, 0x53,
   255  	0x74, 0x72, 0x61, 0x63, 0x65, 0x45, 0x78, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x74,
   256  	0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x74, 0x75, 0x72,
   257  	0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   258  	0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x5f, 0x6e,
   259  	0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x4e, 0x6f, 0x12, 0x1d,
   260  	0x0a, 0x0a, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01,
   261  	0x28, 0x03, 0x52, 0x09, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x4e, 0x73, 0x62, 0x06, 0x70,
   262  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   263  }
   264  
   265  var (
   266  	file_pkg_sentry_strace_strace_proto_rawDescOnce sync.Once
   267  	file_pkg_sentry_strace_strace_proto_rawDescData = file_pkg_sentry_strace_strace_proto_rawDesc
   268  )
   269  
   270  func file_pkg_sentry_strace_strace_proto_rawDescGZIP() []byte {
   271  	file_pkg_sentry_strace_strace_proto_rawDescOnce.Do(func() {
   272  		file_pkg_sentry_strace_strace_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_sentry_strace_strace_proto_rawDescData)
   273  	})
   274  	return file_pkg_sentry_strace_strace_proto_rawDescData
   275  }
   276  
   277  var file_pkg_sentry_strace_strace_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   278  var file_pkg_sentry_strace_strace_proto_goTypes = []interface{}{
   279  	(*Strace)(nil),      // 0: gvisor.Strace
   280  	(*StraceEnter)(nil), // 1: gvisor.StraceEnter
   281  	(*StraceExit)(nil),  // 2: gvisor.StraceExit
   282  }
   283  var file_pkg_sentry_strace_strace_proto_depIdxs = []int32{
   284  	1, // 0: gvisor.Strace.enter:type_name -> gvisor.StraceEnter
   285  	2, // 1: gvisor.Strace.exit:type_name -> gvisor.StraceExit
   286  	2, // [2:2] is the sub-list for method output_type
   287  	2, // [2:2] is the sub-list for method input_type
   288  	2, // [2:2] is the sub-list for extension type_name
   289  	2, // [2:2] is the sub-list for extension extendee
   290  	0, // [0:2] is the sub-list for field type_name
   291  }
   292  
   293  func init() { file_pkg_sentry_strace_strace_proto_init() }
   294  func file_pkg_sentry_strace_strace_proto_init() {
   295  	if File_pkg_sentry_strace_strace_proto != nil {
   296  		return
   297  	}
   298  	if !protoimpl.UnsafeEnabled {
   299  		file_pkg_sentry_strace_strace_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   300  			switch v := v.(*Strace); i {
   301  			case 0:
   302  				return &v.state
   303  			case 1:
   304  				return &v.sizeCache
   305  			case 2:
   306  				return &v.unknownFields
   307  			default:
   308  				return nil
   309  			}
   310  		}
   311  		file_pkg_sentry_strace_strace_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   312  			switch v := v.(*StraceEnter); i {
   313  			case 0:
   314  				return &v.state
   315  			case 1:
   316  				return &v.sizeCache
   317  			case 2:
   318  				return &v.unknownFields
   319  			default:
   320  				return nil
   321  			}
   322  		}
   323  		file_pkg_sentry_strace_strace_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   324  			switch v := v.(*StraceExit); i {
   325  			case 0:
   326  				return &v.state
   327  			case 1:
   328  				return &v.sizeCache
   329  			case 2:
   330  				return &v.unknownFields
   331  			default:
   332  				return nil
   333  			}
   334  		}
   335  	}
   336  	file_pkg_sentry_strace_strace_proto_msgTypes[0].OneofWrappers = []interface{}{
   337  		(*Strace_Enter)(nil),
   338  		(*Strace_Exit)(nil),
   339  	}
   340  	type x struct{}
   341  	out := protoimpl.TypeBuilder{
   342  		File: protoimpl.DescBuilder{
   343  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   344  			RawDescriptor: file_pkg_sentry_strace_strace_proto_rawDesc,
   345  			NumEnums:      0,
   346  			NumMessages:   3,
   347  			NumExtensions: 0,
   348  			NumServices:   0,
   349  		},
   350  		GoTypes:           file_pkg_sentry_strace_strace_proto_goTypes,
   351  		DependencyIndexes: file_pkg_sentry_strace_strace_proto_depIdxs,
   352  		MessageInfos:      file_pkg_sentry_strace_strace_proto_msgTypes,
   353  	}.Build()
   354  	File_pkg_sentry_strace_strace_proto = out.File
   355  	file_pkg_sentry_strace_strace_proto_rawDesc = nil
   356  	file_pkg_sentry_strace_strace_proto_goTypes = nil
   357  	file_pkg_sentry_strace_strace_proto_depIdxs = nil
   358  }