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