config.pb.go 10 KB

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