account.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  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. // 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. mi := &file_proxy_vmess_account_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. func (x *Account) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*Account) ProtoMessage() {}
  42. func (x *Account) ProtoReflect() protoreflect.Message {
  43. mi := &file_proxy_vmess_account_proto_msgTypes[0]
  44. if x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  54. func (*Account) Descriptor() ([]byte, []int) {
  55. return file_proxy_vmess_account_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *Account) GetId() string {
  58. if x != nil {
  59. return x.Id
  60. }
  61. return ""
  62. }
  63. func (x *Account) GetSecuritySettings() *protocol.SecurityConfig {
  64. if x != nil {
  65. return x.SecuritySettings
  66. }
  67. return nil
  68. }
  69. func (x *Account) GetTestsEnabled() string {
  70. if x != nil {
  71. return x.TestsEnabled
  72. }
  73. return ""
  74. }
  75. var File_proxy_vmess_account_proto protoreflect.FileDescriptor
  76. var file_proxy_vmess_account_proto_rawDesc = []byte{
  77. 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x61, 0x63,
  78. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x72, 0x61,
  79. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x1a, 0x1d, 0x63,
  80. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x68,
  81. 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a,
  82. 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  83. 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x51, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75,
  84. 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20,
  85. 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  86. 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72,
  87. 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72,
  88. 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x74,
  89. 0x65, 0x73, 0x74, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01,
  90. 0x28, 0x09, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
  91. 0x42, 0x52, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f,
  92. 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68,
  93. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79,
  94. 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73,
  95. 0x73, 0xaa, 0x02, 0x10, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56,
  96. 0x6d, 0x65, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  97. }
  98. var (
  99. file_proxy_vmess_account_proto_rawDescOnce sync.Once
  100. file_proxy_vmess_account_proto_rawDescData = file_proxy_vmess_account_proto_rawDesc
  101. )
  102. func file_proxy_vmess_account_proto_rawDescGZIP() []byte {
  103. file_proxy_vmess_account_proto_rawDescOnce.Do(func() {
  104. file_proxy_vmess_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_account_proto_rawDescData)
  105. })
  106. return file_proxy_vmess_account_proto_rawDescData
  107. }
  108. var file_proxy_vmess_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  109. var file_proxy_vmess_account_proto_goTypes = []any{
  110. (*Account)(nil), // 0: xray.proxy.vmess.Account
  111. (*protocol.SecurityConfig)(nil), // 1: xray.common.protocol.SecurityConfig
  112. }
  113. var file_proxy_vmess_account_proto_depIdxs = []int32{
  114. 1, // 0: xray.proxy.vmess.Account.security_settings:type_name -> xray.common.protocol.SecurityConfig
  115. 1, // [1:1] is the sub-list for method output_type
  116. 1, // [1:1] is the sub-list for method input_type
  117. 1, // [1:1] is the sub-list for extension type_name
  118. 1, // [1:1] is the sub-list for extension extendee
  119. 0, // [0:1] is the sub-list for field type_name
  120. }
  121. func init() { file_proxy_vmess_account_proto_init() }
  122. func file_proxy_vmess_account_proto_init() {
  123. if File_proxy_vmess_account_proto != nil {
  124. return
  125. }
  126. type x struct{}
  127. out := protoimpl.TypeBuilder{
  128. File: protoimpl.DescBuilder{
  129. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  130. RawDescriptor: file_proxy_vmess_account_proto_rawDesc,
  131. NumEnums: 0,
  132. NumMessages: 1,
  133. NumExtensions: 0,
  134. NumServices: 0,
  135. },
  136. GoTypes: file_proxy_vmess_account_proto_goTypes,
  137. DependencyIndexes: file_proxy_vmess_account_proto_depIdxs,
  138. MessageInfos: file_proxy_vmess_account_proto_msgTypes,
  139. }.Build()
  140. File_proxy_vmess_account_proto = out.File
  141. file_proxy_vmess_account_proto_rawDesc = nil
  142. file_proxy_vmess_account_proto_goTypes = nil
  143. file_proxy_vmess_account_proto_depIdxs = nil
  144. }