config.pb.go 7.1 KB

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