github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/app/observatory/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc v4.23.1 5 // source: app/observatory/config.proto 6 7 package observatory 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type ObservationResult struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Status []*OutboundStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"` 29 } 30 31 func (x *ObservationResult) Reset() { 32 *x = ObservationResult{} 33 if protoimpl.UnsafeEnabled { 34 mi := &file_app_observatory_config_proto_msgTypes[0] 35 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 36 ms.StoreMessageInfo(mi) 37 } 38 } 39 40 func (x *ObservationResult) String() string { 41 return protoimpl.X.MessageStringOf(x) 42 } 43 44 func (*ObservationResult) ProtoMessage() {} 45 46 func (x *ObservationResult) ProtoReflect() protoreflect.Message { 47 mi := &file_app_observatory_config_proto_msgTypes[0] 48 if protoimpl.UnsafeEnabled && x != nil { 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 if ms.LoadMessageInfo() == nil { 51 ms.StoreMessageInfo(mi) 52 } 53 return ms 54 } 55 return mi.MessageOf(x) 56 } 57 58 // Deprecated: Use ObservationResult.ProtoReflect.Descriptor instead. 59 func (*ObservationResult) Descriptor() ([]byte, []int) { 60 return file_app_observatory_config_proto_rawDescGZIP(), []int{0} 61 } 62 63 func (x *ObservationResult) GetStatus() []*OutboundStatus { 64 if x != nil { 65 return x.Status 66 } 67 return nil 68 } 69 70 type HealthPingMeasurementResult struct { 71 state protoimpl.MessageState 72 sizeCache protoimpl.SizeCache 73 unknownFields protoimpl.UnknownFields 74 75 All int64 `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` 76 Fail int64 `protobuf:"varint,2,opt,name=fail,proto3" json:"fail,omitempty"` 77 Deviation int64 `protobuf:"varint,3,opt,name=deviation,proto3" json:"deviation,omitempty"` 78 Average int64 `protobuf:"varint,4,opt,name=average,proto3" json:"average,omitempty"` 79 Max int64 `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty"` 80 Min int64 `protobuf:"varint,6,opt,name=min,proto3" json:"min,omitempty"` 81 } 82 83 func (x *HealthPingMeasurementResult) Reset() { 84 *x = HealthPingMeasurementResult{} 85 if protoimpl.UnsafeEnabled { 86 mi := &file_app_observatory_config_proto_msgTypes[1] 87 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 88 ms.StoreMessageInfo(mi) 89 } 90 } 91 92 func (x *HealthPingMeasurementResult) String() string { 93 return protoimpl.X.MessageStringOf(x) 94 } 95 96 func (*HealthPingMeasurementResult) ProtoMessage() {} 97 98 func (x *HealthPingMeasurementResult) ProtoReflect() protoreflect.Message { 99 mi := &file_app_observatory_config_proto_msgTypes[1] 100 if protoimpl.UnsafeEnabled && x != nil { 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 if ms.LoadMessageInfo() == nil { 103 ms.StoreMessageInfo(mi) 104 } 105 return ms 106 } 107 return mi.MessageOf(x) 108 } 109 110 // Deprecated: Use HealthPingMeasurementResult.ProtoReflect.Descriptor instead. 111 func (*HealthPingMeasurementResult) Descriptor() ([]byte, []int) { 112 return file_app_observatory_config_proto_rawDescGZIP(), []int{1} 113 } 114 115 func (x *HealthPingMeasurementResult) GetAll() int64 { 116 if x != nil { 117 return x.All 118 } 119 return 0 120 } 121 122 func (x *HealthPingMeasurementResult) GetFail() int64 { 123 if x != nil { 124 return x.Fail 125 } 126 return 0 127 } 128 129 func (x *HealthPingMeasurementResult) GetDeviation() int64 { 130 if x != nil { 131 return x.Deviation 132 } 133 return 0 134 } 135 136 func (x *HealthPingMeasurementResult) GetAverage() int64 { 137 if x != nil { 138 return x.Average 139 } 140 return 0 141 } 142 143 func (x *HealthPingMeasurementResult) GetMax() int64 { 144 if x != nil { 145 return x.Max 146 } 147 return 0 148 } 149 150 func (x *HealthPingMeasurementResult) GetMin() int64 { 151 if x != nil { 152 return x.Min 153 } 154 return 0 155 } 156 157 type OutboundStatus struct { 158 state protoimpl.MessageState 159 sizeCache protoimpl.SizeCache 160 unknownFields protoimpl.UnknownFields 161 162 // @Document Whether this outbound is usable 163 // @Restriction ReadOnlyForUser 164 Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"` 165 // @Document The time for probe request to finish. 166 // @Type time.ms 167 // @Restriction ReadOnlyForUser 168 Delay int64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"` 169 // @Document The last error caused this outbound failed to relay probe request 170 // @Restriction NotMachineReadable 171 LastErrorReason string `protobuf:"bytes,3,opt,name=last_error_reason,json=lastErrorReason,proto3" json:"last_error_reason,omitempty"` 172 // @Document The outbound tag for this Server 173 // @Type id.outboundTag 174 OutboundTag string `protobuf:"bytes,4,opt,name=outbound_tag,json=outboundTag,proto3" json:"outbound_tag,omitempty"` 175 // @Document The time this outbound is known to be alive 176 // @Type id.outboundTag 177 LastSeenTime int64 `protobuf:"varint,5,opt,name=last_seen_time,json=lastSeenTime,proto3" json:"last_seen_time,omitempty"` 178 // @Document The time this outbound is tried 179 // @Type id.outboundTag 180 LastTryTime int64 `protobuf:"varint,6,opt,name=last_try_time,json=lastTryTime,proto3" json:"last_try_time,omitempty"` 181 HealthPing *HealthPingMeasurementResult `protobuf:"bytes,7,opt,name=health_ping,json=healthPing,proto3" json:"health_ping,omitempty"` 182 } 183 184 func (x *OutboundStatus) Reset() { 185 *x = OutboundStatus{} 186 if protoimpl.UnsafeEnabled { 187 mi := &file_app_observatory_config_proto_msgTypes[2] 188 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 189 ms.StoreMessageInfo(mi) 190 } 191 } 192 193 func (x *OutboundStatus) String() string { 194 return protoimpl.X.MessageStringOf(x) 195 } 196 197 func (*OutboundStatus) ProtoMessage() {} 198 199 func (x *OutboundStatus) ProtoReflect() protoreflect.Message { 200 mi := &file_app_observatory_config_proto_msgTypes[2] 201 if protoimpl.UnsafeEnabled && x != nil { 202 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 203 if ms.LoadMessageInfo() == nil { 204 ms.StoreMessageInfo(mi) 205 } 206 return ms 207 } 208 return mi.MessageOf(x) 209 } 210 211 // Deprecated: Use OutboundStatus.ProtoReflect.Descriptor instead. 212 func (*OutboundStatus) Descriptor() ([]byte, []int) { 213 return file_app_observatory_config_proto_rawDescGZIP(), []int{2} 214 } 215 216 func (x *OutboundStatus) GetAlive() bool { 217 if x != nil { 218 return x.Alive 219 } 220 return false 221 } 222 223 func (x *OutboundStatus) GetDelay() int64 { 224 if x != nil { 225 return x.Delay 226 } 227 return 0 228 } 229 230 func (x *OutboundStatus) GetLastErrorReason() string { 231 if x != nil { 232 return x.LastErrorReason 233 } 234 return "" 235 } 236 237 func (x *OutboundStatus) GetOutboundTag() string { 238 if x != nil { 239 return x.OutboundTag 240 } 241 return "" 242 } 243 244 func (x *OutboundStatus) GetLastSeenTime() int64 { 245 if x != nil { 246 return x.LastSeenTime 247 } 248 return 0 249 } 250 251 func (x *OutboundStatus) GetLastTryTime() int64 { 252 if x != nil { 253 return x.LastTryTime 254 } 255 return 0 256 } 257 258 func (x *OutboundStatus) GetHealthPing() *HealthPingMeasurementResult { 259 if x != nil { 260 return x.HealthPing 261 } 262 return nil 263 } 264 265 type ProbeResult struct { 266 state protoimpl.MessageState 267 sizeCache protoimpl.SizeCache 268 unknownFields protoimpl.UnknownFields 269 270 // @Document Whether this outbound is usable 271 // @Restriction ReadOnlyForUser 272 Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"` 273 // @Document The time for probe request to finish. 274 // @Type time.ms 275 // @Restriction ReadOnlyForUser 276 Delay int64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"` 277 // @Document The error caused this outbound failed to relay probe request 278 // @Restriction NotMachineReadable 279 LastErrorReason string `protobuf:"bytes,3,opt,name=last_error_reason,json=lastErrorReason,proto3" json:"last_error_reason,omitempty"` 280 } 281 282 func (x *ProbeResult) Reset() { 283 *x = ProbeResult{} 284 if protoimpl.UnsafeEnabled { 285 mi := &file_app_observatory_config_proto_msgTypes[3] 286 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 287 ms.StoreMessageInfo(mi) 288 } 289 } 290 291 func (x *ProbeResult) String() string { 292 return protoimpl.X.MessageStringOf(x) 293 } 294 295 func (*ProbeResult) ProtoMessage() {} 296 297 func (x *ProbeResult) ProtoReflect() protoreflect.Message { 298 mi := &file_app_observatory_config_proto_msgTypes[3] 299 if protoimpl.UnsafeEnabled && x != nil { 300 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 301 if ms.LoadMessageInfo() == nil { 302 ms.StoreMessageInfo(mi) 303 } 304 return ms 305 } 306 return mi.MessageOf(x) 307 } 308 309 // Deprecated: Use ProbeResult.ProtoReflect.Descriptor instead. 310 func (*ProbeResult) Descriptor() ([]byte, []int) { 311 return file_app_observatory_config_proto_rawDescGZIP(), []int{3} 312 } 313 314 func (x *ProbeResult) GetAlive() bool { 315 if x != nil { 316 return x.Alive 317 } 318 return false 319 } 320 321 func (x *ProbeResult) GetDelay() int64 { 322 if x != nil { 323 return x.Delay 324 } 325 return 0 326 } 327 328 func (x *ProbeResult) GetLastErrorReason() string { 329 if x != nil { 330 return x.LastErrorReason 331 } 332 return "" 333 } 334 335 type Intensity struct { 336 state protoimpl.MessageState 337 sizeCache protoimpl.SizeCache 338 unknownFields protoimpl.UnknownFields 339 340 // @Document The time interval for a probe request in ms. 341 // @Type time.ms 342 ProbeInterval uint32 `protobuf:"varint,1,opt,name=probe_interval,json=probeInterval,proto3" json:"probe_interval,omitempty"` 343 } 344 345 func (x *Intensity) Reset() { 346 *x = Intensity{} 347 if protoimpl.UnsafeEnabled { 348 mi := &file_app_observatory_config_proto_msgTypes[4] 349 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 350 ms.StoreMessageInfo(mi) 351 } 352 } 353 354 func (x *Intensity) String() string { 355 return protoimpl.X.MessageStringOf(x) 356 } 357 358 func (*Intensity) ProtoMessage() {} 359 360 func (x *Intensity) ProtoReflect() protoreflect.Message { 361 mi := &file_app_observatory_config_proto_msgTypes[4] 362 if protoimpl.UnsafeEnabled && x != nil { 363 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 364 if ms.LoadMessageInfo() == nil { 365 ms.StoreMessageInfo(mi) 366 } 367 return ms 368 } 369 return mi.MessageOf(x) 370 } 371 372 // Deprecated: Use Intensity.ProtoReflect.Descriptor instead. 373 func (*Intensity) Descriptor() ([]byte, []int) { 374 return file_app_observatory_config_proto_rawDescGZIP(), []int{4} 375 } 376 377 func (x *Intensity) GetProbeInterval() uint32 { 378 if x != nil { 379 return x.ProbeInterval 380 } 381 return 0 382 } 383 384 type Config struct { 385 state protoimpl.MessageState 386 sizeCache protoimpl.SizeCache 387 unknownFields protoimpl.UnknownFields 388 389 // @Document The selectors for outbound under observation 390 SubjectSelector []string `protobuf:"bytes,2,rep,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"` 391 ProbeUrl string `protobuf:"bytes,3,opt,name=probe_url,json=probeUrl,proto3" json:"probe_url,omitempty"` 392 ProbeInterval int64 `protobuf:"varint,4,opt,name=probe_interval,json=probeInterval,proto3" json:"probe_interval,omitempty"` 393 EnableConcurrency bool `protobuf:"varint,5,opt,name=enable_concurrency,json=enableConcurrency,proto3" json:"enable_concurrency,omitempty"` 394 } 395 396 func (x *Config) Reset() { 397 *x = Config{} 398 if protoimpl.UnsafeEnabled { 399 mi := &file_app_observatory_config_proto_msgTypes[5] 400 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 401 ms.StoreMessageInfo(mi) 402 } 403 } 404 405 func (x *Config) String() string { 406 return protoimpl.X.MessageStringOf(x) 407 } 408 409 func (*Config) ProtoMessage() {} 410 411 func (x *Config) ProtoReflect() protoreflect.Message { 412 mi := &file_app_observatory_config_proto_msgTypes[5] 413 if protoimpl.UnsafeEnabled && x != nil { 414 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 415 if ms.LoadMessageInfo() == nil { 416 ms.StoreMessageInfo(mi) 417 } 418 return ms 419 } 420 return mi.MessageOf(x) 421 } 422 423 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 424 func (*Config) Descriptor() ([]byte, []int) { 425 return file_app_observatory_config_proto_rawDescGZIP(), []int{5} 426 } 427 428 func (x *Config) GetSubjectSelector() []string { 429 if x != nil { 430 return x.SubjectSelector 431 } 432 return nil 433 } 434 435 func (x *Config) GetProbeUrl() string { 436 if x != nil { 437 return x.ProbeUrl 438 } 439 return "" 440 } 441 442 func (x *Config) GetProbeInterval() int64 { 443 if x != nil { 444 return x.ProbeInterval 445 } 446 return 0 447 } 448 449 func (x *Config) GetEnableConcurrency() bool { 450 if x != nil { 451 return x.EnableConcurrency 452 } 453 return false 454 } 455 456 var File_app_observatory_config_proto protoreflect.FileDescriptor 457 458 var file_app_observatory_config_proto_rawDesc = []byte{ 459 0x0a, 0x1c, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 460 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 461 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 462 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x56, 0x0a, 0x11, 0x4f, 0x62, 0x73, 463 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x41, 464 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 465 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 466 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 467 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 468 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x1b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e, 0x67, 469 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 470 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 471 0x61, 0x6c, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 472 0x03, 0x52, 0x04, 0x66, 0x61, 0x69, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x61, 473 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x76, 0x69, 474 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 475 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x12, 476 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6d, 0x61, 477 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 478 0x6d, 0x69, 0x6e, 0x22, 0xae, 0x02, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 479 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, 480 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x12, 0x14, 0x0a, 0x05, 481 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x64, 0x65, 0x6c, 482 0x61, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 483 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 484 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x21, 485 0x0a, 0x0c, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x04, 486 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 487 0x67, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x5f, 0x74, 488 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x53, 489 0x65, 0x65, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 490 0x74, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 491 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x0b, 0x68, 492 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 493 0x32, 0x36, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 494 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x48, 0x65, 0x61, 495 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 496 0x6e, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 497 0x50, 0x69, 0x6e, 0x67, 0x22, 0x65, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x65, 0x73, 498 0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 499 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 500 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x12, 501 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 502 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 503 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x32, 0x0a, 0x09, 0x49, 504 0x6e, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x62, 505 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 506 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 507 0xa6, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x75, 508 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 509 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x6c, 510 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x5f, 0x75, 511 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x55, 512 0x72, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 513 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x62, 514 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x65, 0x6e, 0x61, 515 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 516 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 517 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x5e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 518 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 519 0x74, 0x6f, 0x72, 0x79, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 520 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 521 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 522 0x79, 0xaa, 0x02, 0x14, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4f, 0x62, 0x73, 523 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 524 } 525 526 var ( 527 file_app_observatory_config_proto_rawDescOnce sync.Once 528 file_app_observatory_config_proto_rawDescData = file_app_observatory_config_proto_rawDesc 529 ) 530 531 func file_app_observatory_config_proto_rawDescGZIP() []byte { 532 file_app_observatory_config_proto_rawDescOnce.Do(func() { 533 file_app_observatory_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_observatory_config_proto_rawDescData) 534 }) 535 return file_app_observatory_config_proto_rawDescData 536 } 537 538 var file_app_observatory_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 539 var file_app_observatory_config_proto_goTypes = []interface{}{ 540 (*ObservationResult)(nil), // 0: xray.core.app.observatory.ObservationResult 541 (*HealthPingMeasurementResult)(nil), // 1: xray.core.app.observatory.HealthPingMeasurementResult 542 (*OutboundStatus)(nil), // 2: xray.core.app.observatory.OutboundStatus 543 (*ProbeResult)(nil), // 3: xray.core.app.observatory.ProbeResult 544 (*Intensity)(nil), // 4: xray.core.app.observatory.Intensity 545 (*Config)(nil), // 5: xray.core.app.observatory.Config 546 } 547 var file_app_observatory_config_proto_depIdxs = []int32{ 548 2, // 0: xray.core.app.observatory.ObservationResult.status:type_name -> xray.core.app.observatory.OutboundStatus 549 1, // 1: xray.core.app.observatory.OutboundStatus.health_ping:type_name -> xray.core.app.observatory.HealthPingMeasurementResult 550 2, // [2:2] is the sub-list for method output_type 551 2, // [2:2] is the sub-list for method input_type 552 2, // [2:2] is the sub-list for extension type_name 553 2, // [2:2] is the sub-list for extension extendee 554 0, // [0:2] is the sub-list for field type_name 555 } 556 557 func init() { file_app_observatory_config_proto_init() } 558 func file_app_observatory_config_proto_init() { 559 if File_app_observatory_config_proto != nil { 560 return 561 } 562 if !protoimpl.UnsafeEnabled { 563 file_app_observatory_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 564 switch v := v.(*ObservationResult); i { 565 case 0: 566 return &v.state 567 case 1: 568 return &v.sizeCache 569 case 2: 570 return &v.unknownFields 571 default: 572 return nil 573 } 574 } 575 file_app_observatory_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 576 switch v := v.(*HealthPingMeasurementResult); i { 577 case 0: 578 return &v.state 579 case 1: 580 return &v.sizeCache 581 case 2: 582 return &v.unknownFields 583 default: 584 return nil 585 } 586 } 587 file_app_observatory_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 588 switch v := v.(*OutboundStatus); i { 589 case 0: 590 return &v.state 591 case 1: 592 return &v.sizeCache 593 case 2: 594 return &v.unknownFields 595 default: 596 return nil 597 } 598 } 599 file_app_observatory_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 600 switch v := v.(*ProbeResult); i { 601 case 0: 602 return &v.state 603 case 1: 604 return &v.sizeCache 605 case 2: 606 return &v.unknownFields 607 default: 608 return nil 609 } 610 } 611 file_app_observatory_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 612 switch v := v.(*Intensity); i { 613 case 0: 614 return &v.state 615 case 1: 616 return &v.sizeCache 617 case 2: 618 return &v.unknownFields 619 default: 620 return nil 621 } 622 } 623 file_app_observatory_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 624 switch v := v.(*Config); i { 625 case 0: 626 return &v.state 627 case 1: 628 return &v.sizeCache 629 case 2: 630 return &v.unknownFields 631 default: 632 return nil 633 } 634 } 635 } 636 type x struct{} 637 out := protoimpl.TypeBuilder{ 638 File: protoimpl.DescBuilder{ 639 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 640 RawDescriptor: file_app_observatory_config_proto_rawDesc, 641 NumEnums: 0, 642 NumMessages: 6, 643 NumExtensions: 0, 644 NumServices: 0, 645 }, 646 GoTypes: file_app_observatory_config_proto_goTypes, 647 DependencyIndexes: file_app_observatory_config_proto_depIdxs, 648 MessageInfos: file_app_observatory_config_proto_msgTypes, 649 }.Build() 650 File_app_observatory_config_proto = out.File 651 file_app_observatory_config_proto_rawDesc = nil 652 file_app_observatory_config_proto_goTypes = nil 653 file_app_observatory_config_proto_depIdxs = nil 654 }