config.pb.go 7.5 KB

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