account.pb.go 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.12
  5. // source: proxy/vmess/account.proto
  6. package vmess
  7. import (
  8. protocol "github.com/xtls/xray-core/common/protocol"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Account struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  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. 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. func (x *Account) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*Account) ProtoMessage() {}
  46. func (x *Account) ProtoReflect() protoreflect.Message {
  47. mi := &file_proxy_vmess_account_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  58. func (*Account) Descriptor() ([]byte, []int) {
  59. return file_proxy_vmess_account_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *Account) GetId() string {
  62. if x != nil {
  63. return x.Id
  64. }
  65. return ""
  66. }
  67. func (x *Account) GetAlterId() uint32 {
  68. if x != nil {
  69. return x.AlterId
  70. }
  71. return 0
  72. }
  73. func (x *Account) GetSecuritySettings() *protocol.SecurityConfig {
  74. if x != nil {
  75. return x.SecuritySettings
  76. }
  77. return nil
  78. }
  79. func (x *Account) GetTestsEnabled() string {
  80. if x != nil {
  81. return x.TestsEnabled
  82. }
  83. return ""
  84. }
  85. var File_proxy_vmess_account_proto protoreflect.FileDescriptor
  86. var file_proxy_vmess_account_proto_rawDesc = []byte{
  87. 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x61, 0x63,
  88. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x72, 0x61,
  89. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x1a, 0x1d, 0x63,
  90. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x68,
  91. 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a,
  92. 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  93. 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x65,
  94. 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x6c, 0x74, 0x65,
  95. 0x72, 0x49, 0x64, 0x12, 0x51, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f,
  96. 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24,
  97. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
  98. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f,
  99. 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65,
  100. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x65, 0x73, 0x74, 0x73, 0x5f,
  101. 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74,
  102. 0x65, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x52, 0x0a, 0x14, 0x63,
  103. 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d,
  104. 0x65, 0x73, 0x73, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
  105. 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  106. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0xaa, 0x02, 0x10, 0x58,
  107. 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x62,
  108. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  109. }
  110. var (
  111. file_proxy_vmess_account_proto_rawDescOnce sync.Once
  112. file_proxy_vmess_account_proto_rawDescData = file_proxy_vmess_account_proto_rawDesc
  113. )
  114. func file_proxy_vmess_account_proto_rawDescGZIP() []byte {
  115. file_proxy_vmess_account_proto_rawDescOnce.Do(func() {
  116. file_proxy_vmess_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_account_proto_rawDescData)
  117. })
  118. return file_proxy_vmess_account_proto_rawDescData
  119. }
  120. var file_proxy_vmess_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  121. var file_proxy_vmess_account_proto_goTypes = []interface{}{
  122. (*Account)(nil), // 0: xray.proxy.vmess.Account
  123. (*protocol.SecurityConfig)(nil), // 1: xray.common.protocol.SecurityConfig
  124. }
  125. var file_proxy_vmess_account_proto_depIdxs = []int32{
  126. 1, // 0: xray.proxy.vmess.Account.security_settings:type_name -> xray.common.protocol.SecurityConfig
  127. 1, // [1:1] is the sub-list for method output_type
  128. 1, // [1:1] is the sub-list for method input_type
  129. 1, // [1:1] is the sub-list for extension type_name
  130. 1, // [1:1] is the sub-list for extension extendee
  131. 0, // [0:1] is the sub-list for field type_name
  132. }
  133. func init() { file_proxy_vmess_account_proto_init() }
  134. func file_proxy_vmess_account_proto_init() {
  135. if File_proxy_vmess_account_proto != nil {
  136. return
  137. }
  138. if !protoimpl.UnsafeEnabled {
  139. file_proxy_vmess_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  140. switch v := v.(*Account); i {
  141. case 0:
  142. return &v.state
  143. case 1:
  144. return &v.sizeCache
  145. case 2:
  146. return &v.unknownFields
  147. default:
  148. return nil
  149. }
  150. }
  151. }
  152. type x struct{}
  153. out := protoimpl.TypeBuilder{
  154. File: protoimpl.DescBuilder{
  155. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  156. RawDescriptor: file_proxy_vmess_account_proto_rawDesc,
  157. NumEnums: 0,
  158. NumMessages: 1,
  159. NumExtensions: 0,
  160. NumServices: 0,
  161. },
  162. GoTypes: file_proxy_vmess_account_proto_goTypes,
  163. DependencyIndexes: file_proxy_vmess_account_proto_depIdxs,
  164. MessageInfos: file_proxy_vmess_account_proto_msgTypes,
  165. }.Build()
  166. File_proxy_vmess_account_proto = out.File
  167. file_proxy_vmess_account_proto_rawDesc = nil
  168. file_proxy_vmess_account_proto_goTypes = nil
  169. file_proxy_vmess_account_proto_depIdxs = nil
  170. }