account.pb.go 7.0 KB

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