account.pb.go 7.3 KB

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