account.pb.go 7.6 KB

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