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