subscription_rpc.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. package subscription
  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. unsafe "unsafe"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. type SubscriptionServer struct {
  16. state protoimpl.MessageState `protogen:"open.v1"`
  17. ServerMetadata map[string]string `protobuf:"bytes,2,rep,name=serverMetadata,proto3" json:"serverMetadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  18. Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
  19. unknownFields protoimpl.UnknownFields
  20. sizeCache protoimpl.SizeCache
  21. }
  22. func (x *SubscriptionServer) Reset() {
  23. *x = SubscriptionServer{}
  24. mi := &file_app_subscription_subscription_rpc_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. func (x *SubscriptionServer) String() string {
  29. return protoimpl.X.MessageStringOf(x)
  30. }
  31. func (*SubscriptionServer) ProtoMessage() {}
  32. func (x *SubscriptionServer) ProtoReflect() protoreflect.Message {
  33. mi := &file_app_subscription_subscription_rpc_proto_msgTypes[0]
  34. if x != nil {
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. if ms.LoadMessageInfo() == nil {
  37. ms.StoreMessageInfo(mi)
  38. }
  39. return ms
  40. }
  41. return mi.MessageOf(x)
  42. }
  43. // Deprecated: Use SubscriptionServer.ProtoReflect.Descriptor instead.
  44. func (*SubscriptionServer) Descriptor() ([]byte, []int) {
  45. return file_app_subscription_subscription_rpc_proto_rawDescGZIP(), []int{0}
  46. }
  47. func (x *SubscriptionServer) GetServerMetadata() map[string]string {
  48. if x != nil {
  49. return x.ServerMetadata
  50. }
  51. return nil
  52. }
  53. func (x *SubscriptionServer) GetTag() string {
  54. if x != nil {
  55. return x.Tag
  56. }
  57. return ""
  58. }
  59. type TrackedSubscriptionStatus struct {
  60. state protoimpl.MessageState `protogen:"open.v1"`
  61. Servers map[string]*SubscriptionServer `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  62. DocumentMetadata map[string]string `protobuf:"bytes,2,rep,name=documentMetadata,proto3" json:"documentMetadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  63. ImportSource *ImportSource `protobuf:"bytes,3,opt,name=importSource,proto3" json:"importSource,omitempty"`
  64. AddedByApi bool `protobuf:"varint,4,opt,name=added_by_api,json=addedByApi,proto3" json:"added_by_api,omitempty"`
  65. unknownFields protoimpl.UnknownFields
  66. sizeCache protoimpl.SizeCache
  67. }
  68. func (x *TrackedSubscriptionStatus) Reset() {
  69. *x = TrackedSubscriptionStatus{}
  70. mi := &file_app_subscription_subscription_rpc_proto_msgTypes[1]
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. ms.StoreMessageInfo(mi)
  73. }
  74. func (x *TrackedSubscriptionStatus) String() string {
  75. return protoimpl.X.MessageStringOf(x)
  76. }
  77. func (*TrackedSubscriptionStatus) ProtoMessage() {}
  78. func (x *TrackedSubscriptionStatus) ProtoReflect() protoreflect.Message {
  79. mi := &file_app_subscription_subscription_rpc_proto_msgTypes[1]
  80. if x != nil {
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. if ms.LoadMessageInfo() == nil {
  83. ms.StoreMessageInfo(mi)
  84. }
  85. return ms
  86. }
  87. return mi.MessageOf(x)
  88. }
  89. // Deprecated: Use TrackedSubscriptionStatus.ProtoReflect.Descriptor instead.
  90. func (*TrackedSubscriptionStatus) Descriptor() ([]byte, []int) {
  91. return file_app_subscription_subscription_rpc_proto_rawDescGZIP(), []int{1}
  92. }
  93. func (x *TrackedSubscriptionStatus) GetServers() map[string]*SubscriptionServer {
  94. if x != nil {
  95. return x.Servers
  96. }
  97. return nil
  98. }
  99. func (x *TrackedSubscriptionStatus) GetDocumentMetadata() map[string]string {
  100. if x != nil {
  101. return x.DocumentMetadata
  102. }
  103. return nil
  104. }
  105. func (x *TrackedSubscriptionStatus) GetImportSource() *ImportSource {
  106. if x != nil {
  107. return x.ImportSource
  108. }
  109. return nil
  110. }
  111. func (x *TrackedSubscriptionStatus) GetAddedByApi() bool {
  112. if x != nil {
  113. return x.AddedByApi
  114. }
  115. return false
  116. }
  117. var File_app_subscription_subscription_rpc_proto protoreflect.FileDescriptor
  118. var file_app_subscription_subscription_rpc_proto_rawDesc = string([]byte{
  119. 0x0a, 0x27, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  120. 0x6f, 0x6e, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
  121. 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x76, 0x32, 0x72, 0x61, 0x79,
  122. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72,
  123. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73,
  124. 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  125. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x01, 0x0a, 0x12, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
  126. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x6b, 0x0a, 0x0e,
  127. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02,
  128. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  129. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  130. 0x6f, 0x6e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53,
  131. 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61,
  132. 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65,
  133. 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67,
  134. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x1a, 0x41, 0x0a, 0x13, 0x53,
  135. 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74,
  136. 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  137. 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
  138. 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x97,
  139. 0x04, 0x0a, 0x19, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
  140. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x5d, 0x0a, 0x07,
  141. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e,
  142. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73,
  143. 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x72, 0x61, 0x63,
  144. 0x6b, 0x65, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53,
  145. 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74,
  146. 0x72, 0x79, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x78, 0x0a, 0x10, 0x64,
  147. 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
  148. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  149. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  150. 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63,
  151. 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x44, 0x6f,
  152. 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e,
  153. 0x74, 0x72, 0x79, 0x52, 0x10, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74,
  154. 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4d, 0x0a, 0x0c, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53,
  155. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32,
  156. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x75, 0x62,
  157. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74,
  158. 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x6f,
  159. 0x75, 0x72, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x62, 0x79,
  160. 0x5f, 0x61, 0x70, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x65,
  161. 0x64, 0x42, 0x79, 0x41, 0x70, 0x69, 0x1a, 0x6b, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  162. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  163. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  164. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  165. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
  166. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  167. 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
  168. 0x02, 0x38, 0x01, 0x1a, 0x43, 0x0a, 0x15, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d,
  169. 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
  170. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
  171. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
  172. 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x72, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e,
  173. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73,
  174. 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x2f, 0x67,
  175. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
  176. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70,
  177. 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02,
  178. 0x1b, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e,
  179. 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72,
  180. 0x6f, 0x74, 0x6f, 0x33,
  181. })
  182. var (
  183. file_app_subscription_subscription_rpc_proto_rawDescOnce sync.Once
  184. file_app_subscription_subscription_rpc_proto_rawDescData []byte
  185. )
  186. func file_app_subscription_subscription_rpc_proto_rawDescGZIP() []byte {
  187. file_app_subscription_subscription_rpc_proto_rawDescOnce.Do(func() {
  188. file_app_subscription_subscription_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_subscription_subscription_rpc_proto_rawDesc), len(file_app_subscription_subscription_rpc_proto_rawDesc)))
  189. })
  190. return file_app_subscription_subscription_rpc_proto_rawDescData
  191. }
  192. var file_app_subscription_subscription_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  193. var file_app_subscription_subscription_rpc_proto_goTypes = []any{
  194. (*SubscriptionServer)(nil), // 0: v2ray.core.app.subscription.SubscriptionServer
  195. (*TrackedSubscriptionStatus)(nil), // 1: v2ray.core.app.subscription.TrackedSubscriptionStatus
  196. nil, // 2: v2ray.core.app.subscription.SubscriptionServer.ServerMetadataEntry
  197. nil, // 3: v2ray.core.app.subscription.TrackedSubscriptionStatus.ServersEntry
  198. nil, // 4: v2ray.core.app.subscription.TrackedSubscriptionStatus.DocumentMetadataEntry
  199. (*ImportSource)(nil), // 5: v2ray.core.app.subscription.ImportSource
  200. }
  201. var file_app_subscription_subscription_rpc_proto_depIdxs = []int32{
  202. 2, // 0: v2ray.core.app.subscription.SubscriptionServer.serverMetadata:type_name -> v2ray.core.app.subscription.SubscriptionServer.ServerMetadataEntry
  203. 3, // 1: v2ray.core.app.subscription.TrackedSubscriptionStatus.servers:type_name -> v2ray.core.app.subscription.TrackedSubscriptionStatus.ServersEntry
  204. 4, // 2: v2ray.core.app.subscription.TrackedSubscriptionStatus.documentMetadata:type_name -> v2ray.core.app.subscription.TrackedSubscriptionStatus.DocumentMetadataEntry
  205. 5, // 3: v2ray.core.app.subscription.TrackedSubscriptionStatus.importSource:type_name -> v2ray.core.app.subscription.ImportSource
  206. 0, // 4: v2ray.core.app.subscription.TrackedSubscriptionStatus.ServersEntry.value:type_name -> v2ray.core.app.subscription.SubscriptionServer
  207. 5, // [5:5] is the sub-list for method output_type
  208. 5, // [5:5] is the sub-list for method input_type
  209. 5, // [5:5] is the sub-list for extension type_name
  210. 5, // [5:5] is the sub-list for extension extendee
  211. 0, // [0:5] is the sub-list for field type_name
  212. }
  213. func init() { file_app_subscription_subscription_rpc_proto_init() }
  214. func file_app_subscription_subscription_rpc_proto_init() {
  215. if File_app_subscription_subscription_rpc_proto != nil {
  216. return
  217. }
  218. file_app_subscription_config_proto_init()
  219. type x struct{}
  220. out := protoimpl.TypeBuilder{
  221. File: protoimpl.DescBuilder{
  222. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  223. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_subscription_subscription_rpc_proto_rawDesc), len(file_app_subscription_subscription_rpc_proto_rawDesc)),
  224. NumEnums: 0,
  225. NumMessages: 5,
  226. NumExtensions: 0,
  227. NumServices: 0,
  228. },
  229. GoTypes: file_app_subscription_subscription_rpc_proto_goTypes,
  230. DependencyIndexes: file_app_subscription_subscription_rpc_proto_depIdxs,
  231. MessageInfos: file_app_subscription_subscription_rpc_proto_msgTypes,
  232. }.Build()
  233. File_app_subscription_subscription_rpc_proto = out.File
  234. file_app_subscription_subscription_rpc_proto_goTypes = nil
  235. file_app_subscription_subscription_rpc_proto_depIdxs = nil
  236. }