config.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.18.0
  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, 0x0e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  108. 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66,
  109. 0x69, 0x67, 0x22, 0x75, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6e,
  110. 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x18,
  111. 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x12,
  112. 0x28, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x6d,
  113. 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
  114. 0x69, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x42, 0x75, 0x66,
  115. 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x42,
  116. 0x75, 0x66, 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x4c, 0x0a, 0x12, 0x63, 0x6f, 0x6d,
  117. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x50,
  118. 0x01, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74,
  119. 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70,
  120. 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0xaa, 0x02, 0x0e, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70,
  121. 0x70, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  122. }
  123. var (
  124. file_app_stats_config_proto_rawDescOnce sync.Once
  125. file_app_stats_config_proto_rawDescData = file_app_stats_config_proto_rawDesc
  126. )
  127. func file_app_stats_config_proto_rawDescGZIP() []byte {
  128. file_app_stats_config_proto_rawDescOnce.Do(func() {
  129. file_app_stats_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_stats_config_proto_rawDescData)
  130. })
  131. return file_app_stats_config_proto_rawDescData
  132. }
  133. var file_app_stats_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  134. var file_app_stats_config_proto_goTypes = []interface{}{
  135. (*Config)(nil), // 0: xray.app.stats.Config
  136. (*ChannelConfig)(nil), // 1: xray.app.stats.ChannelConfig
  137. }
  138. var file_app_stats_config_proto_depIdxs = []int32{
  139. 0, // [0:0] is the sub-list for method output_type
  140. 0, // [0:0] is the sub-list for method input_type
  141. 0, // [0:0] is the sub-list for extension type_name
  142. 0, // [0:0] is the sub-list for extension extendee
  143. 0, // [0:0] is the sub-list for field type_name
  144. }
  145. func init() { file_app_stats_config_proto_init() }
  146. func file_app_stats_config_proto_init() {
  147. if File_app_stats_config_proto != nil {
  148. return
  149. }
  150. if !protoimpl.UnsafeEnabled {
  151. file_app_stats_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  152. switch v := v.(*Config); i {
  153. case 0:
  154. return &v.state
  155. case 1:
  156. return &v.sizeCache
  157. case 2:
  158. return &v.unknownFields
  159. default:
  160. return nil
  161. }
  162. }
  163. file_app_stats_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  164. switch v := v.(*ChannelConfig); i {
  165. case 0:
  166. return &v.state
  167. case 1:
  168. return &v.sizeCache
  169. case 2:
  170. return &v.unknownFields
  171. default:
  172. return nil
  173. }
  174. }
  175. }
  176. type x struct{}
  177. out := protoimpl.TypeBuilder{
  178. File: protoimpl.DescBuilder{
  179. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  180. RawDescriptor: file_app_stats_config_proto_rawDesc,
  181. NumEnums: 0,
  182. NumMessages: 2,
  183. NumExtensions: 0,
  184. NumServices: 0,
  185. },
  186. GoTypes: file_app_stats_config_proto_goTypes,
  187. DependencyIndexes: file_app_stats_config_proto_depIdxs,
  188. MessageInfos: file_app_stats_config_proto_msgTypes,
  189. }.Build()
  190. File_app_stats_config_proto = out.File
  191. file_app_stats_config_proto_rawDesc = nil
  192. file_app_stats_config_proto_goTypes = nil
  193. file_app_stats_config_proto_depIdxs = nil
  194. }