config.pb.go 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. package stats
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  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 Config struct {
  16. state protoimpl.MessageState
  17. sizeCache protoimpl.SizeCache
  18. unknownFields protoimpl.UnknownFields
  19. }
  20. func (x *Config) Reset() {
  21. *x = Config{}
  22. if protoimpl.UnsafeEnabled {
  23. mi := &file_app_stats_config_proto_msgTypes[0]
  24. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  25. ms.StoreMessageInfo(mi)
  26. }
  27. }
  28. func (x *Config) String() string {
  29. return protoimpl.X.MessageStringOf(x)
  30. }
  31. func (*Config) ProtoMessage() {}
  32. func (x *Config) ProtoReflect() protoreflect.Message {
  33. mi := &file_app_stats_config_proto_msgTypes[0]
  34. if protoimpl.UnsafeEnabled && 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 Config.ProtoReflect.Descriptor instead.
  44. func (*Config) Descriptor() ([]byte, []int) {
  45. return file_app_stats_config_proto_rawDescGZIP(), []int{0}
  46. }
  47. type ChannelConfig struct {
  48. state protoimpl.MessageState
  49. sizeCache protoimpl.SizeCache
  50. unknownFields protoimpl.UnknownFields
  51. Blocking bool `protobuf:"varint,1,opt,name=Blocking,proto3" json:"Blocking,omitempty"`
  52. SubscriberLimit int32 `protobuf:"varint,2,opt,name=SubscriberLimit,proto3" json:"SubscriberLimit,omitempty"`
  53. BufferSize int32 `protobuf:"varint,3,opt,name=BufferSize,proto3" json:"BufferSize,omitempty"`
  54. }
  55. func (x *ChannelConfig) Reset() {
  56. *x = ChannelConfig{}
  57. if protoimpl.UnsafeEnabled {
  58. mi := &file_app_stats_config_proto_msgTypes[1]
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. ms.StoreMessageInfo(mi)
  61. }
  62. }
  63. func (x *ChannelConfig) String() string {
  64. return protoimpl.X.MessageStringOf(x)
  65. }
  66. func (*ChannelConfig) ProtoMessage() {}
  67. func (x *ChannelConfig) ProtoReflect() protoreflect.Message {
  68. mi := &file_app_stats_config_proto_msgTypes[1]
  69. if protoimpl.UnsafeEnabled && x != nil {
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. if ms.LoadMessageInfo() == nil {
  72. ms.StoreMessageInfo(mi)
  73. }
  74. return ms
  75. }
  76. return mi.MessageOf(x)
  77. }
  78. // Deprecated: Use ChannelConfig.ProtoReflect.Descriptor instead.
  79. func (*ChannelConfig) Descriptor() ([]byte, []int) {
  80. return file_app_stats_config_proto_rawDescGZIP(), []int{1}
  81. }
  82. func (x *ChannelConfig) GetBlocking() bool {
  83. if x != nil {
  84. return x.Blocking
  85. }
  86. return false
  87. }
  88. func (x *ChannelConfig) GetSubscriberLimit() int32 {
  89. if x != nil {
  90. return x.SubscriberLimit
  91. }
  92. return 0
  93. }
  94. func (x *ChannelConfig) GetBufferSize() int32 {
  95. if x != nil {
  96. return x.BufferSize
  97. }
  98. return 0
  99. }
  100. var File_app_stats_config_proto protoreflect.FileDescriptor
  101. var file_app_stats_config_proto_rawDesc = []byte{
  102. 0x0a, 0x16, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
  103. 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  104. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x20,
  105. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f,
  106. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  107. 0x22, 0x1e, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x14, 0x82, 0xb5, 0x18, 0x10,
  108. 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73,
  109. 0x22, 0x75, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  110. 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20,
  111. 0x01, 0x28, 0x08, 0x52, 0x08, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a,
  112. 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x6d, 0x69, 0x74,
  113. 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
  114. 0x65, 0x72, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x42, 0x75, 0x66, 0x66, 0x65,
  115. 0x72, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x42, 0x75, 0x66,
  116. 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x5d, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
  117. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74,
  118. 0x61, 0x74, 0x73, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
  119. 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
  120. 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0xaa,
  121. 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70,
  122. 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  123. }
  124. var (
  125. file_app_stats_config_proto_rawDescOnce sync.Once
  126. file_app_stats_config_proto_rawDescData = file_app_stats_config_proto_rawDesc
  127. )
  128. func file_app_stats_config_proto_rawDescGZIP() []byte {
  129. file_app_stats_config_proto_rawDescOnce.Do(func() {
  130. file_app_stats_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_stats_config_proto_rawDescData)
  131. })
  132. return file_app_stats_config_proto_rawDescData
  133. }
  134. var file_app_stats_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  135. var file_app_stats_config_proto_goTypes = []interface{}{
  136. (*Config)(nil), // 0: v2ray.core.app.stats.Config
  137. (*ChannelConfig)(nil), // 1: v2ray.core.app.stats.ChannelConfig
  138. }
  139. var file_app_stats_config_proto_depIdxs = []int32{
  140. 0, // [0:0] is the sub-list for method output_type
  141. 0, // [0:0] is the sub-list for method input_type
  142. 0, // [0:0] is the sub-list for extension type_name
  143. 0, // [0:0] is the sub-list for extension extendee
  144. 0, // [0:0] is the sub-list for field type_name
  145. }
  146. func init() { file_app_stats_config_proto_init() }
  147. func file_app_stats_config_proto_init() {
  148. if File_app_stats_config_proto != nil {
  149. return
  150. }
  151. if !protoimpl.UnsafeEnabled {
  152. file_app_stats_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  153. switch v := v.(*Config); i {
  154. case 0:
  155. return &v.state
  156. case 1:
  157. return &v.sizeCache
  158. case 2:
  159. return &v.unknownFields
  160. default:
  161. return nil
  162. }
  163. }
  164. file_app_stats_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  165. switch v := v.(*ChannelConfig); i {
  166. case 0:
  167. return &v.state
  168. case 1:
  169. return &v.sizeCache
  170. case 2:
  171. return &v.unknownFields
  172. default:
  173. return nil
  174. }
  175. }
  176. }
  177. type x struct{}
  178. out := protoimpl.TypeBuilder{
  179. File: protoimpl.DescBuilder{
  180. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  181. RawDescriptor: file_app_stats_config_proto_rawDesc,
  182. NumEnums: 0,
  183. NumMessages: 2,
  184. NumExtensions: 0,
  185. NumServices: 0,
  186. },
  187. GoTypes: file_app_stats_config_proto_goTypes,
  188. DependencyIndexes: file_app_stats_config_proto_depIdxs,
  189. MessageInfos: file_app_stats_config_proto_msgTypes,
  190. }.Build()
  191. File_app_stats_config_proto = out.File
  192. file_app_stats_config_proto_rawDesc = nil
  193. file_app_stats_config_proto_goTypes = nil
  194. file_app_stats_config_proto_depIdxs = nil
  195. }