config.pb.go 6.8 KB

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