config.pb.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  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 `protogen:"open.v1"`
  22. unknownFields protoimpl.UnknownFields
  23. sizeCache protoimpl.SizeCache
  24. }
  25. func (x *Config) Reset() {
  26. *x = Config{}
  27. mi := &file_app_stats_config_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. func (x *Config) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*Config) ProtoMessage() {}
  35. func (x *Config) ProtoReflect() protoreflect.Message {
  36. mi := &file_app_stats_config_proto_msgTypes[0]
  37. if x != nil {
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. if ms.LoadMessageInfo() == nil {
  40. ms.StoreMessageInfo(mi)
  41. }
  42. return ms
  43. }
  44. return mi.MessageOf(x)
  45. }
  46. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  47. func (*Config) Descriptor() ([]byte, []int) {
  48. return file_app_stats_config_proto_rawDescGZIP(), []int{0}
  49. }
  50. type ChannelConfig struct {
  51. state protoimpl.MessageState `protogen:"open.v1"`
  52. Blocking bool `protobuf:"varint,1,opt,name=Blocking,proto3" json:"Blocking,omitempty"`
  53. SubscriberLimit int32 `protobuf:"varint,2,opt,name=SubscriberLimit,proto3" json:"SubscriberLimit,omitempty"`
  54. BufferSize int32 `protobuf:"varint,3,opt,name=BufferSize,proto3" json:"BufferSize,omitempty"`
  55. unknownFields protoimpl.UnknownFields
  56. sizeCache protoimpl.SizeCache
  57. }
  58. func (x *ChannelConfig) Reset() {
  59. *x = ChannelConfig{}
  60. mi := &file_app_stats_config_proto_msgTypes[1]
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. ms.StoreMessageInfo(mi)
  63. }
  64. func (x *ChannelConfig) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*ChannelConfig) ProtoMessage() {}
  68. func (x *ChannelConfig) ProtoReflect() protoreflect.Message {
  69. mi := &file_app_stats_config_proto_msgTypes[1]
  70. if x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use ChannelConfig.ProtoReflect.Descriptor instead.
  80. func (*ChannelConfig) Descriptor() ([]byte, []int) {
  81. return file_app_stats_config_proto_rawDescGZIP(), []int{1}
  82. }
  83. func (x *ChannelConfig) GetBlocking() bool {
  84. if x != nil {
  85. return x.Blocking
  86. }
  87. return false
  88. }
  89. func (x *ChannelConfig) GetSubscriberLimit() int32 {
  90. if x != nil {
  91. return x.SubscriberLimit
  92. }
  93. return 0
  94. }
  95. func (x *ChannelConfig) GetBufferSize() int32 {
  96. if x != nil {
  97. return x.BufferSize
  98. }
  99. return 0
  100. }
  101. var File_app_stats_config_proto protoreflect.FileDescriptor
  102. const file_app_stats_config_proto_rawDesc = "" +
  103. "\n" +
  104. "\x16app/stats/config.proto\x12\x0exray.app.stats\"\b\n" +
  105. "\x06Config\"u\n" +
  106. "\rChannelConfig\x12\x1a\n" +
  107. "\bBlocking\x18\x01 \x01(\bR\bBlocking\x12(\n" +
  108. "\x0fSubscriberLimit\x18\x02 \x01(\x05R\x0fSubscriberLimit\x12\x1e\n" +
  109. "\n" +
  110. "BufferSize\x18\x03 \x01(\x05R\n" +
  111. "BufferSizeBL\n" +
  112. "\x12com.xray.app.statsP\x01Z#github.com/xtls/xray-core/app/stats\xaa\x02\x0eXray.App.Statsb\x06proto3"
  113. var (
  114. file_app_stats_config_proto_rawDescOnce sync.Once
  115. file_app_stats_config_proto_rawDescData []byte
  116. )
  117. func file_app_stats_config_proto_rawDescGZIP() []byte {
  118. file_app_stats_config_proto_rawDescOnce.Do(func() {
  119. 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)))
  120. })
  121. return file_app_stats_config_proto_rawDescData
  122. }
  123. var file_app_stats_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  124. var file_app_stats_config_proto_goTypes = []any{
  125. (*Config)(nil), // 0: xray.app.stats.Config
  126. (*ChannelConfig)(nil), // 1: xray.app.stats.ChannelConfig
  127. }
  128. var file_app_stats_config_proto_depIdxs = []int32{
  129. 0, // [0:0] is the sub-list for method output_type
  130. 0, // [0:0] is the sub-list for method input_type
  131. 0, // [0:0] is the sub-list for extension type_name
  132. 0, // [0:0] is the sub-list for extension extendee
  133. 0, // [0:0] is the sub-list for field type_name
  134. }
  135. func init() { file_app_stats_config_proto_init() }
  136. func file_app_stats_config_proto_init() {
  137. if File_app_stats_config_proto != nil {
  138. return
  139. }
  140. type x struct{}
  141. out := protoimpl.TypeBuilder{
  142. File: protoimpl.DescBuilder{
  143. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  144. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_stats_config_proto_rawDesc), len(file_app_stats_config_proto_rawDesc)),
  145. NumEnums: 0,
  146. NumMessages: 2,
  147. NumExtensions: 0,
  148. NumServices: 0,
  149. },
  150. GoTypes: file_app_stats_config_proto_goTypes,
  151. DependencyIndexes: file_app_stats_config_proto_depIdxs,
  152. MessageInfos: file_app_stats_config_proto_msgTypes,
  153. }.Build()
  154. File_app_stats_config_proto = out.File
  155. file_app_stats_config_proto_goTypes = nil
  156. file_app_stats_config_proto_depIdxs = nil
  157. }