github.com/v2fly/v2ray-core/v4@v4.45.2/common/protocol/user.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: common/protocol/user.proto 6 7 package protocol 8 9 import ( 10 serial "github.com/v2fly/v2ray-core/v4/common/serial" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // User is a generic user for all procotols. 25 type User struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"` 31 Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` 32 // Protocol specific account information. Must be the account proto in one of 33 // the proxies. 34 Account *serial.TypedMessage `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` 35 } 36 37 func (x *User) Reset() { 38 *x = User{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_common_protocol_user_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *User) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*User) ProtoMessage() {} 51 52 func (x *User) ProtoReflect() protoreflect.Message { 53 mi := &file_common_protocol_user_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use User.ProtoReflect.Descriptor instead. 65 func (*User) Descriptor() ([]byte, []int) { 66 return file_common_protocol_user_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *User) GetLevel() uint32 { 70 if x != nil { 71 return x.Level 72 } 73 return 0 74 } 75 76 func (x *User) GetEmail() string { 77 if x != nil { 78 return x.Email 79 } 80 return "" 81 } 82 83 func (x *User) GetAccount() *serial.TypedMessage { 84 if x != nil { 85 return x.Account 86 } 87 return nil 88 } 89 90 var File_common_protocol_user_proto protoreflect.FileDescriptor 91 92 var file_common_protocol_user_proto_rawDesc = []byte{ 93 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 94 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x76, 0x32, 95 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 96 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 97 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 98 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74, 0x0a, 0x04, 0x55, 99 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 100 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 101 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 102 0x40, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 103 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 104 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 105 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 106 0x74, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 107 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 108 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 109 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 110 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 111 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 112 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 113 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 114 } 115 116 var ( 117 file_common_protocol_user_proto_rawDescOnce sync.Once 118 file_common_protocol_user_proto_rawDescData = file_common_protocol_user_proto_rawDesc 119 ) 120 121 func file_common_protocol_user_proto_rawDescGZIP() []byte { 122 file_common_protocol_user_proto_rawDescOnce.Do(func() { 123 file_common_protocol_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protocol_user_proto_rawDescData) 124 }) 125 return file_common_protocol_user_proto_rawDescData 126 } 127 128 var file_common_protocol_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 129 var file_common_protocol_user_proto_goTypes = []interface{}{ 130 (*User)(nil), // 0: v2ray.core.common.protocol.User 131 (*serial.TypedMessage)(nil), // 1: v2ray.core.common.serial.TypedMessage 132 } 133 var file_common_protocol_user_proto_depIdxs = []int32{ 134 1, // 0: v2ray.core.common.protocol.User.account:type_name -> v2ray.core.common.serial.TypedMessage 135 1, // [1:1] is the sub-list for method output_type 136 1, // [1:1] is the sub-list for method input_type 137 1, // [1:1] is the sub-list for extension type_name 138 1, // [1:1] is the sub-list for extension extendee 139 0, // [0:1] is the sub-list for field type_name 140 } 141 142 func init() { file_common_protocol_user_proto_init() } 143 func file_common_protocol_user_proto_init() { 144 if File_common_protocol_user_proto != nil { 145 return 146 } 147 if !protoimpl.UnsafeEnabled { 148 file_common_protocol_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 149 switch v := v.(*User); i { 150 case 0: 151 return &v.state 152 case 1: 153 return &v.sizeCache 154 case 2: 155 return &v.unknownFields 156 default: 157 return nil 158 } 159 } 160 } 161 type x struct{} 162 out := protoimpl.TypeBuilder{ 163 File: protoimpl.DescBuilder{ 164 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 165 RawDescriptor: file_common_protocol_user_proto_rawDesc, 166 NumEnums: 0, 167 NumMessages: 1, 168 NumExtensions: 0, 169 NumServices: 0, 170 }, 171 GoTypes: file_common_protocol_user_proto_goTypes, 172 DependencyIndexes: file_common_protocol_user_proto_depIdxs, 173 MessageInfos: file_common_protocol_user_proto_msgTypes, 174 }.Build() 175 File_common_protocol_user_proto = out.File 176 file_common_protocol_user_proto_rawDesc = nil 177 file_common_protocol_user_proto_goTypes = nil 178 file_common_protocol_user_proto_depIdxs = nil 179 }