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