account.pb.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type Account struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. // ID of the account, in the form of a UUID, e.g.,
  24. // "66ad4540-b58c-4ad2-9926-ea63445a9b57".
  25. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  26. // Security settings. Only applies to client side.
  27. SecuritySettings *protocol.SecurityConfig `protobuf:"bytes,3,opt,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
  28. // Define tests enabled for this account
  29. TestsEnabled string `protobuf:"bytes,4,opt,name=tests_enabled,json=testsEnabled,proto3" json:"tests_enabled,omitempty"`
  30. unknownFields protoimpl.UnknownFields
  31. sizeCache protoimpl.SizeCache
  32. }
  33. func (x *Account) Reset() {
  34. *x = Account{}
  35. mi := &file_proxy_vmess_account_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. func (x *Account) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*Account) ProtoMessage() {}
  43. func (x *Account) ProtoReflect() protoreflect.Message {
  44. mi := &file_proxy_vmess_account_proto_msgTypes[0]
  45. if x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  55. func (*Account) Descriptor() ([]byte, []int) {
  56. return file_proxy_vmess_account_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *Account) GetId() string {
  59. if x != nil {
  60. return x.Id
  61. }
  62. return ""
  63. }
  64. func (x *Account) GetSecuritySettings() *protocol.SecurityConfig {
  65. if x != nil {
  66. return x.SecuritySettings
  67. }
  68. return nil
  69. }
  70. func (x *Account) GetTestsEnabled() string {
  71. if x != nil {
  72. return x.TestsEnabled
  73. }
  74. return ""
  75. }
  76. var File_proxy_vmess_account_proto protoreflect.FileDescriptor
  77. const file_proxy_vmess_account_proto_rawDesc = "" +
  78. "\n" +
  79. "\x19proxy/vmess/account.proto\x12\x10xray.proxy.vmess\x1a\x1dcommon/protocol/headers.proto\"\x91\x01\n" +
  80. "\aAccount\x12\x0e\n" +
  81. "\x02id\x18\x01 \x01(\tR\x02id\x12Q\n" +
  82. "\x11security_settings\x18\x03 \x01(\v2$.xray.common.protocol.SecurityConfigR\x10securitySettings\x12#\n" +
  83. "\rtests_enabled\x18\x04 \x01(\tR\ftestsEnabledBR\n" +
  84. "\x14com.xray.proxy.vmessP\x01Z%github.com/xtls/xray-core/proxy/vmess\xaa\x02\x10Xray.Proxy.Vmessb\x06proto3"
  85. var (
  86. file_proxy_vmess_account_proto_rawDescOnce sync.Once
  87. file_proxy_vmess_account_proto_rawDescData []byte
  88. )
  89. func file_proxy_vmess_account_proto_rawDescGZIP() []byte {
  90. file_proxy_vmess_account_proto_rawDescOnce.Do(func() {
  91. file_proxy_vmess_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_vmess_account_proto_rawDesc), len(file_proxy_vmess_account_proto_rawDesc)))
  92. })
  93. return file_proxy_vmess_account_proto_rawDescData
  94. }
  95. var file_proxy_vmess_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  96. var file_proxy_vmess_account_proto_goTypes = []any{
  97. (*Account)(nil), // 0: xray.proxy.vmess.Account
  98. (*protocol.SecurityConfig)(nil), // 1: xray.common.protocol.SecurityConfig
  99. }
  100. var file_proxy_vmess_account_proto_depIdxs = []int32{
  101. 1, // 0: xray.proxy.vmess.Account.security_settings:type_name -> xray.common.protocol.SecurityConfig
  102. 1, // [1:1] is the sub-list for method output_type
  103. 1, // [1:1] is the sub-list for method input_type
  104. 1, // [1:1] is the sub-list for extension type_name
  105. 1, // [1:1] is the sub-list for extension extendee
  106. 0, // [0:1] is the sub-list for field type_name
  107. }
  108. func init() { file_proxy_vmess_account_proto_init() }
  109. func file_proxy_vmess_account_proto_init() {
  110. if File_proxy_vmess_account_proto != nil {
  111. return
  112. }
  113. type x struct{}
  114. out := protoimpl.TypeBuilder{
  115. File: protoimpl.DescBuilder{
  116. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  117. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_vmess_account_proto_rawDesc), len(file_proxy_vmess_account_proto_rawDesc)),
  118. NumEnums: 0,
  119. NumMessages: 1,
  120. NumExtensions: 0,
  121. NumServices: 0,
  122. },
  123. GoTypes: file_proxy_vmess_account_proto_goTypes,
  124. DependencyIndexes: file_proxy_vmess_account_proto_depIdxs,
  125. MessageInfos: file_proxy_vmess_account_proto_msgTypes,
  126. }.Build()
  127. File_proxy_vmess_account_proto = out.File
  128. file_proxy_vmess_account_proto_goTypes = nil
  129. file_proxy_vmess_account_proto_depIdxs = nil
  130. }