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