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