config.pb.go 9.6 KB

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