github.com/MerlinKodo/gvisor@v0.0.0-20231110090155-957f62ecf90e/pkg/sentry/socket/netstack/events_go_proto/events.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/socket/netstack/events.proto 6 7 package events_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 SentryTcpListenEvent struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Port *int32 `protobuf:"varint,1,opt,name=port,proto3,oneof" json:"port,omitempty"` 29 } 30 31 func (x *SentryTcpListenEvent) Reset() { 32 *x = SentryTcpListenEvent{} 33 if protoimpl.UnsafeEnabled { 34 mi := &file_pkg_sentry_socket_netstack_events_proto_msgTypes[0] 35 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 36 ms.StoreMessageInfo(mi) 37 } 38 } 39 40 func (x *SentryTcpListenEvent) String() string { 41 return protoimpl.X.MessageStringOf(x) 42 } 43 44 func (*SentryTcpListenEvent) ProtoMessage() {} 45 46 func (x *SentryTcpListenEvent) ProtoReflect() protoreflect.Message { 47 mi := &file_pkg_sentry_socket_netstack_events_proto_msgTypes[0] 48 if protoimpl.UnsafeEnabled && x != nil { 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 if ms.LoadMessageInfo() == nil { 51 ms.StoreMessageInfo(mi) 52 } 53 return ms 54 } 55 return mi.MessageOf(x) 56 } 57 58 // Deprecated: Use SentryTcpListenEvent.ProtoReflect.Descriptor instead. 59 func (*SentryTcpListenEvent) Descriptor() ([]byte, []int) { 60 return file_pkg_sentry_socket_netstack_events_proto_rawDescGZIP(), []int{0} 61 } 62 63 func (x *SentryTcpListenEvent) GetPort() int32 { 64 if x != nil && x.Port != nil { 65 return *x.Port 66 } 67 return 0 68 } 69 70 var File_pkg_sentry_socket_netstack_events_proto protoreflect.FileDescriptor 71 72 var file_pkg_sentry_socket_netstack_events_proto_rawDesc = []byte{ 73 0x0a, 0x27, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x73, 0x6f, 0x63, 74 0x6b, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x65, 0x76, 0x65, 75 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x76, 0x69, 0x73, 0x6f, 76 0x72, 0x22, 0x38, 0x0a, 0x14, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x54, 0x63, 0x70, 0x4c, 0x69, 77 0x73, 0x74, 0x65, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x6f, 0x72, 78 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x88, 79 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 80 0x74, 0x6f, 0x33, 81 } 82 83 var ( 84 file_pkg_sentry_socket_netstack_events_proto_rawDescOnce sync.Once 85 file_pkg_sentry_socket_netstack_events_proto_rawDescData = file_pkg_sentry_socket_netstack_events_proto_rawDesc 86 ) 87 88 func file_pkg_sentry_socket_netstack_events_proto_rawDescGZIP() []byte { 89 file_pkg_sentry_socket_netstack_events_proto_rawDescOnce.Do(func() { 90 file_pkg_sentry_socket_netstack_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_sentry_socket_netstack_events_proto_rawDescData) 91 }) 92 return file_pkg_sentry_socket_netstack_events_proto_rawDescData 93 } 94 95 var file_pkg_sentry_socket_netstack_events_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 96 var file_pkg_sentry_socket_netstack_events_proto_goTypes = []interface{}{ 97 (*SentryTcpListenEvent)(nil), // 0: gvisor.SentryTcpListenEvent 98 } 99 var file_pkg_sentry_socket_netstack_events_proto_depIdxs = []int32{ 100 0, // [0:0] is the sub-list for method output_type 101 0, // [0:0] is the sub-list for method input_type 102 0, // [0:0] is the sub-list for extension type_name 103 0, // [0:0] is the sub-list for extension extendee 104 0, // [0:0] is the sub-list for field type_name 105 } 106 107 func init() { file_pkg_sentry_socket_netstack_events_proto_init() } 108 func file_pkg_sentry_socket_netstack_events_proto_init() { 109 if File_pkg_sentry_socket_netstack_events_proto != nil { 110 return 111 } 112 if !protoimpl.UnsafeEnabled { 113 file_pkg_sentry_socket_netstack_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 114 switch v := v.(*SentryTcpListenEvent); i { 115 case 0: 116 return &v.state 117 case 1: 118 return &v.sizeCache 119 case 2: 120 return &v.unknownFields 121 default: 122 return nil 123 } 124 } 125 } 126 file_pkg_sentry_socket_netstack_events_proto_msgTypes[0].OneofWrappers = []interface{}{} 127 type x struct{} 128 out := protoimpl.TypeBuilder{ 129 File: protoimpl.DescBuilder{ 130 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 131 RawDescriptor: file_pkg_sentry_socket_netstack_events_proto_rawDesc, 132 NumEnums: 0, 133 NumMessages: 1, 134 NumExtensions: 0, 135 NumServices: 0, 136 }, 137 GoTypes: file_pkg_sentry_socket_netstack_events_proto_goTypes, 138 DependencyIndexes: file_pkg_sentry_socket_netstack_events_proto_depIdxs, 139 MessageInfos: file_pkg_sentry_socket_netstack_events_proto_msgTypes, 140 }.Build() 141 File_pkg_sentry_socket_netstack_events_proto = out.File 142 file_pkg_sentry_socket_netstack_events_proto_rawDesc = nil 143 file_pkg_sentry_socket_netstack_events_proto_goTypes = nil 144 file_pkg_sentry_socket_netstack_events_proto_depIdxs = nil 145 }