config.pb.go 7.3 KB

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