github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/vmess/account.pb.go (about) 1 package vmess 2 3 import ( 4 protocol "github.com/v2fly/v2ray-core/v5/common/protocol" 5 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 6 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 type Account struct { 19 state protoimpl.MessageState 20 sizeCache protoimpl.SizeCache 21 unknownFields protoimpl.UnknownFields 22 23 // ID of the account, in the form of a UUID, e.g., 24 // "66ad4540-b58c-4ad2-9926-ea63445a9b57". 25 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 26 // Number of alternative IDs. Client and server must share the same number. 27 AlterId uint32 `protobuf:"varint,2,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"` 28 // Security settings. Only applies to client side. 29 SecuritySettings *protocol.SecurityConfig `protobuf:"bytes,3,opt,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"` 30 // Define tests enabled for this account 31 TestsEnabled string `protobuf:"bytes,4,opt,name=tests_enabled,json=testsEnabled,proto3" json:"tests_enabled,omitempty"` 32 } 33 34 func (x *Account) Reset() { 35 *x = Account{} 36 if protoimpl.UnsafeEnabled { 37 mi := &file_proxy_vmess_account_proto_msgTypes[0] 38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 39 ms.StoreMessageInfo(mi) 40 } 41 } 42 43 func (x *Account) String() string { 44 return protoimpl.X.MessageStringOf(x) 45 } 46 47 func (*Account) ProtoMessage() {} 48 49 func (x *Account) ProtoReflect() protoreflect.Message { 50 mi := &file_proxy_vmess_account_proto_msgTypes[0] 51 if protoimpl.UnsafeEnabled && x != nil { 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 if ms.LoadMessageInfo() == nil { 54 ms.StoreMessageInfo(mi) 55 } 56 return ms 57 } 58 return mi.MessageOf(x) 59 } 60 61 // Deprecated: Use Account.ProtoReflect.Descriptor instead. 62 func (*Account) Descriptor() ([]byte, []int) { 63 return file_proxy_vmess_account_proto_rawDescGZIP(), []int{0} 64 } 65 66 func (x *Account) GetId() string { 67 if x != nil { 68 return x.Id 69 } 70 return "" 71 } 72 73 func (x *Account) GetAlterId() uint32 { 74 if x != nil { 75 return x.AlterId 76 } 77 return 0 78 } 79 80 func (x *Account) GetSecuritySettings() *protocol.SecurityConfig { 81 if x != nil { 82 return x.SecuritySettings 83 } 84 return nil 85 } 86 87 func (x *Account) GetTestsEnabled() string { 88 if x != nil { 89 return x.TestsEnabled 90 } 91 return "" 92 } 93 94 var File_proxy_vmess_account_proto protoreflect.FileDescriptor 95 96 var file_proxy_vmess_account_proto_rawDesc = []byte{ 97 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x61, 0x63, 98 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72, 99 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 100 0x65, 0x73, 0x73, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 101 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 102 0x74, 0x6f, 0x22, 0xb2, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 103 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 104 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 105 0x52, 0x07, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x57, 0x0a, 0x11, 0x73, 0x65, 0x63, 106 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 107 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 108 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 109 0x6c, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 110 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 111 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 112 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x73, 113 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x63, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 114 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 115 0x76, 0x6d, 0x65, 0x73, 0x73, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 116 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 117 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 118 0x65, 0x73, 0x73, 0xaa, 0x02, 0x16, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 119 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 120 0x6f, 0x74, 0x6f, 0x33, 121 } 122 123 var ( 124 file_proxy_vmess_account_proto_rawDescOnce sync.Once 125 file_proxy_vmess_account_proto_rawDescData = file_proxy_vmess_account_proto_rawDesc 126 ) 127 128 func file_proxy_vmess_account_proto_rawDescGZIP() []byte { 129 file_proxy_vmess_account_proto_rawDescOnce.Do(func() { 130 file_proxy_vmess_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_account_proto_rawDescData) 131 }) 132 return file_proxy_vmess_account_proto_rawDescData 133 } 134 135 var file_proxy_vmess_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 136 var file_proxy_vmess_account_proto_goTypes = []interface{}{ 137 (*Account)(nil), // 0: v2ray.core.proxy.vmess.Account 138 (*protocol.SecurityConfig)(nil), // 1: v2ray.core.common.protocol.SecurityConfig 139 } 140 var file_proxy_vmess_account_proto_depIdxs = []int32{ 141 1, // 0: v2ray.core.proxy.vmess.Account.security_settings:type_name -> v2ray.core.common.protocol.SecurityConfig 142 1, // [1:1] is the sub-list for method output_type 143 1, // [1:1] is the sub-list for method input_type 144 1, // [1:1] is the sub-list for extension type_name 145 1, // [1:1] is the sub-list for extension extendee 146 0, // [0:1] is the sub-list for field type_name 147 } 148 149 func init() { file_proxy_vmess_account_proto_init() } 150 func file_proxy_vmess_account_proto_init() { 151 if File_proxy_vmess_account_proto != nil { 152 return 153 } 154 if !protoimpl.UnsafeEnabled { 155 file_proxy_vmess_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 156 switch v := v.(*Account); i { 157 case 0: 158 return &v.state 159 case 1: 160 return &v.sizeCache 161 case 2: 162 return &v.unknownFields 163 default: 164 return nil 165 } 166 } 167 } 168 type x struct{} 169 out := protoimpl.TypeBuilder{ 170 File: protoimpl.DescBuilder{ 171 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 172 RawDescriptor: file_proxy_vmess_account_proto_rawDesc, 173 NumEnums: 0, 174 NumMessages: 1, 175 NumExtensions: 0, 176 NumServices: 0, 177 }, 178 GoTypes: file_proxy_vmess_account_proto_goTypes, 179 DependencyIndexes: file_proxy_vmess_account_proto_depIdxs, 180 MessageInfos: file_proxy_vmess_account_proto_msgTypes, 181 }.Build() 182 File_proxy_vmess_account_proto = out.File 183 file_proxy_vmess_account_proto_rawDesc = nil 184 file_proxy_vmess_account_proto_goTypes = nil 185 file_proxy_vmess_account_proto_depIdxs = nil 186 }