account.pb.go 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. package vless
  2. import (
  3. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  4. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  5. reflect "reflect"
  6. sync "sync"
  7. )
  8. const (
  9. // Verify that this generated code is sufficiently up-to-date.
  10. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  11. // Verify that runtime/protoimpl is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  13. )
  14. type Account struct {
  15. state protoimpl.MessageState
  16. sizeCache protoimpl.SizeCache
  17. unknownFields protoimpl.UnknownFields
  18. // ID of the account, in the form of a UUID, e.g., "66ad4540-b58c-4ad2-9926-ea63445a9b57".
  19. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  20. // Flow settings.
  21. Flow string `protobuf:"bytes,2,opt,name=flow,proto3" json:"flow,omitempty"`
  22. // Encryption settings. Only applies to client side, and only accepts "none" for now.
  23. Encryption string `protobuf:"bytes,3,opt,name=encryption,proto3" json:"encryption,omitempty"`
  24. }
  25. func (x *Account) Reset() {
  26. *x = Account{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_proxy_vless_account_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *Account) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*Account) ProtoMessage() {}
  37. func (x *Account) ProtoReflect() protoreflect.Message {
  38. mi := &file_proxy_vless_account_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  49. func (*Account) Descriptor() ([]byte, []int) {
  50. return file_proxy_vless_account_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *Account) GetId() string {
  53. if x != nil {
  54. return x.Id
  55. }
  56. return ""
  57. }
  58. func (x *Account) GetFlow() string {
  59. if x != nil {
  60. return x.Flow
  61. }
  62. return ""
  63. }
  64. func (x *Account) GetEncryption() string {
  65. if x != nil {
  66. return x.Encryption
  67. }
  68. return ""
  69. }
  70. var File_proxy_vless_account_proto protoreflect.FileDescriptor
  71. var file_proxy_vless_account_proto_rawDesc = []byte{
  72. 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2f, 0x61, 0x63,
  73. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72,
  74. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c,
  75. 0x65, 0x73, 0x73, 0x22, 0x4d, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e,
  76. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
  77. 0x0a, 0x04, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6c,
  78. 0x6f, 0x77, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  79. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69,
  80. 0x6f, 0x6e, 0x42, 0x63, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  81. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73,
  82. 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76,
  83. 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  84. 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0xaa, 0x02,
  85. 0x16, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78,
  86. 0x79, 0x2e, 0x56, 0x6c, 0x65, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  87. }
  88. var (
  89. file_proxy_vless_account_proto_rawDescOnce sync.Once
  90. file_proxy_vless_account_proto_rawDescData = file_proxy_vless_account_proto_rawDesc
  91. )
  92. func file_proxy_vless_account_proto_rawDescGZIP() []byte {
  93. file_proxy_vless_account_proto_rawDescOnce.Do(func() {
  94. file_proxy_vless_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vless_account_proto_rawDescData)
  95. })
  96. return file_proxy_vless_account_proto_rawDescData
  97. }
  98. var file_proxy_vless_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  99. var file_proxy_vless_account_proto_goTypes = []interface{}{
  100. (*Account)(nil), // 0: v2ray.core.proxy.vless.Account
  101. }
  102. var file_proxy_vless_account_proto_depIdxs = []int32{
  103. 0, // [0:0] is the sub-list for method output_type
  104. 0, // [0:0] is the sub-list for method input_type
  105. 0, // [0:0] is the sub-list for extension type_name
  106. 0, // [0:0] is the sub-list for extension extendee
  107. 0, // [0:0] is the sub-list for field type_name
  108. }
  109. func init() { file_proxy_vless_account_proto_init() }
  110. func file_proxy_vless_account_proto_init() {
  111. if File_proxy_vless_account_proto != nil {
  112. return
  113. }
  114. if !protoimpl.UnsafeEnabled {
  115. file_proxy_vless_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  116. switch v := v.(*Account); i {
  117. case 0:
  118. return &v.state
  119. case 1:
  120. return &v.sizeCache
  121. case 2:
  122. return &v.unknownFields
  123. default:
  124. return nil
  125. }
  126. }
  127. }
  128. type x struct{}
  129. out := protoimpl.TypeBuilder{
  130. File: protoimpl.DescBuilder{
  131. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  132. RawDescriptor: file_proxy_vless_account_proto_rawDesc,
  133. NumEnums: 0,
  134. NumMessages: 1,
  135. NumExtensions: 0,
  136. NumServices: 0,
  137. },
  138. GoTypes: file_proxy_vless_account_proto_goTypes,
  139. DependencyIndexes: file_proxy_vless_account_proto_depIdxs,
  140. MessageInfos: file_proxy_vless_account_proto_msgTypes,
  141. }.Build()
  142. File_proxy_vless_account_proto = out.File
  143. file_proxy_vless_account_proto_rawDesc = nil
  144. file_proxy_vless_account_proto_goTypes = nil
  145. file_proxy_vless_account_proto_depIdxs = nil
  146. }