config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: app/observatory/burst/config.proto
  6. package burst
  7. import (
  8. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  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. type Config struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. // @Document The selectors for outbound under observation
  25. SubjectSelector []string `protobuf:"bytes,2,rep,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"`
  26. PingConfig *HealthPingConfig `protobuf:"bytes,3,opt,name=ping_config,json=pingConfig,proto3" json:"ping_config,omitempty"`
  27. }
  28. func (x *Config) Reset() {
  29. *x = Config{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_app_observatory_burst_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_observatory_burst_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_observatory_burst_config_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *Config) GetSubjectSelector() []string {
  56. if x != nil {
  57. return x.SubjectSelector
  58. }
  59. return nil
  60. }
  61. func (x *Config) GetPingConfig() *HealthPingConfig {
  62. if x != nil {
  63. return x.PingConfig
  64. }
  65. return nil
  66. }
  67. type HealthPingConfig struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. // destination url, need 204 for success return
  72. // default http://www.google.com/gen_204
  73. Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
  74. // connectivity check url
  75. Connectivity string `protobuf:"bytes,2,opt,name=connectivity,proto3" json:"connectivity,omitempty"`
  76. // health check interval, int64 values of time.Duration
  77. Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"`
  78. // sampling count is the amount of recent ping results which are kept for calculation
  79. SamplingCount int32 `protobuf:"varint,4,opt,name=samplingCount,proto3" json:"samplingCount,omitempty"`
  80. // ping timeout, int64 values of time.Duration
  81. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
  82. }
  83. func (x *HealthPingConfig) Reset() {
  84. *x = HealthPingConfig{}
  85. if protoimpl.UnsafeEnabled {
  86. mi := &file_app_observatory_burst_config_proto_msgTypes[1]
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. ms.StoreMessageInfo(mi)
  89. }
  90. }
  91. func (x *HealthPingConfig) String() string {
  92. return protoimpl.X.MessageStringOf(x)
  93. }
  94. func (*HealthPingConfig) ProtoMessage() {}
  95. func (x *HealthPingConfig) ProtoReflect() protoreflect.Message {
  96. mi := &file_app_observatory_burst_config_proto_msgTypes[1]
  97. if protoimpl.UnsafeEnabled && x != nil {
  98. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  99. if ms.LoadMessageInfo() == nil {
  100. ms.StoreMessageInfo(mi)
  101. }
  102. return ms
  103. }
  104. return mi.MessageOf(x)
  105. }
  106. // Deprecated: Use HealthPingConfig.ProtoReflect.Descriptor instead.
  107. func (*HealthPingConfig) Descriptor() ([]byte, []int) {
  108. return file_app_observatory_burst_config_proto_rawDescGZIP(), []int{1}
  109. }
  110. func (x *HealthPingConfig) GetDestination() string {
  111. if x != nil {
  112. return x.Destination
  113. }
  114. return ""
  115. }
  116. func (x *HealthPingConfig) GetConnectivity() string {
  117. if x != nil {
  118. return x.Connectivity
  119. }
  120. return ""
  121. }
  122. func (x *HealthPingConfig) GetInterval() int64 {
  123. if x != nil {
  124. return x.Interval
  125. }
  126. return 0
  127. }
  128. func (x *HealthPingConfig) GetSamplingCount() int32 {
  129. if x != nil {
  130. return x.SamplingCount
  131. }
  132. return 0
  133. }
  134. func (x *HealthPingConfig) GetTimeout() int64 {
  135. if x != nil {
  136. return x.Timeout
  137. }
  138. return 0
  139. }
  140. var File_app_observatory_burst_config_proto protoreflect.FileDescriptor
  141. var file_app_observatory_burst_config_proto_rawDesc = []byte{
  142. 0x0a, 0x22, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
  143. 0x79, 0x2f, 0x62, 0x75, 0x72, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
  144. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  145. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79,
  146. 0x2e, 0x62, 0x75, 0x72, 0x73, 0x74, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
  147. 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  148. 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  149. 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73,
  150. 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73,
  151. 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x53,
  152. 0x0a, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20,
  153. 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  154. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79,
  155. 0x2e, 0x62, 0x75, 0x72, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e,
  156. 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e,
  157. 0x66, 0x69, 0x67, 0x3a, 0x23, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
  158. 0x63, 0x65, 0x82, 0xb5, 0x18, 0x12, 0x12, 0x10, 0x62, 0x75, 0x72, 0x73, 0x74, 0x4f, 0x62, 0x73,
  159. 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x22, 0xb4, 0x01, 0x0a, 0x10, 0x48, 0x65, 0x61,
  160. 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x20, 0x0a,
  161. 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
  162. 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
  163. 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18,
  164. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76,
  165. 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18,
  166. 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12,
  167. 0x24, 0x0a, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  168. 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67,
  169. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  170. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42,
  171. 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  172. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f,
  173. 0x72, 0x79, 0x2e, 0x62, 0x75, 0x72, 0x73, 0x74, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68,
  174. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72,
  175. 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6f,
  176. 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x62, 0x75, 0x72, 0x73, 0x74,
  177. 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70,
  178. 0x70, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x42, 0x75,
  179. 0x72, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  180. }
  181. var (
  182. file_app_observatory_burst_config_proto_rawDescOnce sync.Once
  183. file_app_observatory_burst_config_proto_rawDescData = file_app_observatory_burst_config_proto_rawDesc
  184. )
  185. func file_app_observatory_burst_config_proto_rawDescGZIP() []byte {
  186. file_app_observatory_burst_config_proto_rawDescOnce.Do(func() {
  187. file_app_observatory_burst_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_observatory_burst_config_proto_rawDescData)
  188. })
  189. return file_app_observatory_burst_config_proto_rawDescData
  190. }
  191. var file_app_observatory_burst_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  192. var file_app_observatory_burst_config_proto_goTypes = []interface{}{
  193. (*Config)(nil), // 0: v2ray.core.app.observatory.burst.Config
  194. (*HealthPingConfig)(nil), // 1: v2ray.core.app.observatory.burst.HealthPingConfig
  195. }
  196. var file_app_observatory_burst_config_proto_depIdxs = []int32{
  197. 1, // 0: v2ray.core.app.observatory.burst.Config.ping_config:type_name -> v2ray.core.app.observatory.burst.HealthPingConfig
  198. 1, // [1:1] is the sub-list for method output_type
  199. 1, // [1:1] is the sub-list for method input_type
  200. 1, // [1:1] is the sub-list for extension type_name
  201. 1, // [1:1] is the sub-list for extension extendee
  202. 0, // [0:1] is the sub-list for field type_name
  203. }
  204. func init() { file_app_observatory_burst_config_proto_init() }
  205. func file_app_observatory_burst_config_proto_init() {
  206. if File_app_observatory_burst_config_proto != nil {
  207. return
  208. }
  209. if !protoimpl.UnsafeEnabled {
  210. file_app_observatory_burst_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  211. switch v := v.(*Config); i {
  212. case 0:
  213. return &v.state
  214. case 1:
  215. return &v.sizeCache
  216. case 2:
  217. return &v.unknownFields
  218. default:
  219. return nil
  220. }
  221. }
  222. file_app_observatory_burst_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  223. switch v := v.(*HealthPingConfig); i {
  224. case 0:
  225. return &v.state
  226. case 1:
  227. return &v.sizeCache
  228. case 2:
  229. return &v.unknownFields
  230. default:
  231. return nil
  232. }
  233. }
  234. }
  235. type x struct{}
  236. out := protoimpl.TypeBuilder{
  237. File: protoimpl.DescBuilder{
  238. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  239. RawDescriptor: file_app_observatory_burst_config_proto_rawDesc,
  240. NumEnums: 0,
  241. NumMessages: 2,
  242. NumExtensions: 0,
  243. NumServices: 0,
  244. },
  245. GoTypes: file_app_observatory_burst_config_proto_goTypes,
  246. DependencyIndexes: file_app_observatory_burst_config_proto_depIdxs,
  247. MessageInfos: file_app_observatory_burst_config_proto_msgTypes,
  248. }.Build()
  249. File_app_observatory_burst_config_proto = out.File
  250. file_app_observatory_burst_config_proto_rawDesc = nil
  251. file_app_observatory_burst_config_proto_goTypes = nil
  252. file_app_observatory_burst_config_proto_depIdxs = nil
  253. }