github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/service/status/v2/csds.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/service/status/v2/csds.proto 6 7 package envoy_service_status_v2 8 9 import ( 10 context "context" 11 _ "github.com/cncf/xds/go/udpa/annotations" 12 v2alpha "github.com/hxx258456/ccgo/go-control-plane/envoy/admin/v2alpha" 13 core "github.com/hxx258456/ccgo/go-control-plane/envoy/api/v2/core" 14 matcher "github.com/hxx258456/ccgo/go-control-plane/envoy/type/matcher" 15 proto "github.com/golang/protobuf/proto" 16 _ "google.golang.org/genproto/googleapis/api/annotations" 17 grpc "github.com/hxx258456/ccgo/grpc" 18 codes "github.com/hxx258456/ccgo/grpc/codes" 19 status "github.com/hxx258456/ccgo/grpc/status" 20 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 21 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 22 reflect "reflect" 23 sync "sync" 24 ) 25 26 const ( 27 // Verify that this generated code is sufficiently up-to-date. 28 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 29 // Verify that runtime/protoimpl is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 31 ) 32 33 // This is a compile-time assertion that a sufficiently up-to-date version 34 // of the legacy proto package is being used. 35 const _ = proto.ProtoPackageIsVersion4 36 37 // Status of a config. 38 type ConfigStatus int32 39 40 const ( 41 // Status info is not available/unknown. 42 ConfigStatus_UNKNOWN ConfigStatus = 0 43 // Management server has sent the config to client and received ACK. 44 ConfigStatus_SYNCED ConfigStatus = 1 45 // Config is not sent. 46 ConfigStatus_NOT_SENT ConfigStatus = 2 47 // Management server has sent the config to client but hasn’t received 48 // ACK/NACK. 49 ConfigStatus_STALE ConfigStatus = 3 50 // Management server has sent the config to client but received NACK. 51 ConfigStatus_ERROR ConfigStatus = 4 52 ) 53 54 // Enum value maps for ConfigStatus. 55 var ( 56 ConfigStatus_name = map[int32]string{ 57 0: "UNKNOWN", 58 1: "SYNCED", 59 2: "NOT_SENT", 60 3: "STALE", 61 4: "ERROR", 62 } 63 ConfigStatus_value = map[string]int32{ 64 "UNKNOWN": 0, 65 "SYNCED": 1, 66 "NOT_SENT": 2, 67 "STALE": 3, 68 "ERROR": 4, 69 } 70 ) 71 72 func (x ConfigStatus) Enum() *ConfigStatus { 73 p := new(ConfigStatus) 74 *p = x 75 return p 76 } 77 78 func (x ConfigStatus) String() string { 79 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 80 } 81 82 func (ConfigStatus) Descriptor() protoreflect.EnumDescriptor { 83 return file_envoy_service_status_v2_csds_proto_enumTypes[0].Descriptor() 84 } 85 86 func (ConfigStatus) Type() protoreflect.EnumType { 87 return &file_envoy_service_status_v2_csds_proto_enumTypes[0] 88 } 89 90 func (x ConfigStatus) Number() protoreflect.EnumNumber { 91 return protoreflect.EnumNumber(x) 92 } 93 94 // Deprecated: Use ConfigStatus.Descriptor instead. 95 func (ConfigStatus) EnumDescriptor() ([]byte, []int) { 96 return file_envoy_service_status_v2_csds_proto_rawDescGZIP(), []int{0} 97 } 98 99 // Request for client status of clients identified by a list of NodeMatchers. 100 type ClientStatusRequest struct { 101 state protoimpl.MessageState 102 sizeCache protoimpl.SizeCache 103 unknownFields protoimpl.UnknownFields 104 105 // Management server can use these match criteria to identify clients. 106 // The match follows OR semantics. 107 NodeMatchers []*matcher.NodeMatcher `protobuf:"bytes,1,rep,name=node_matchers,json=nodeMatchers,proto3" json:"node_matchers,omitempty"` 108 } 109 110 func (x *ClientStatusRequest) Reset() { 111 *x = ClientStatusRequest{} 112 if protoimpl.UnsafeEnabled { 113 mi := &file_envoy_service_status_v2_csds_proto_msgTypes[0] 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 ms.StoreMessageInfo(mi) 116 } 117 } 118 119 func (x *ClientStatusRequest) String() string { 120 return protoimpl.X.MessageStringOf(x) 121 } 122 123 func (*ClientStatusRequest) ProtoMessage() {} 124 125 func (x *ClientStatusRequest) ProtoReflect() protoreflect.Message { 126 mi := &file_envoy_service_status_v2_csds_proto_msgTypes[0] 127 if protoimpl.UnsafeEnabled && x != nil { 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 if ms.LoadMessageInfo() == nil { 130 ms.StoreMessageInfo(mi) 131 } 132 return ms 133 } 134 return mi.MessageOf(x) 135 } 136 137 // Deprecated: Use ClientStatusRequest.ProtoReflect.Descriptor instead. 138 func (*ClientStatusRequest) Descriptor() ([]byte, []int) { 139 return file_envoy_service_status_v2_csds_proto_rawDescGZIP(), []int{0} 140 } 141 142 func (x *ClientStatusRequest) GetNodeMatchers() []*matcher.NodeMatcher { 143 if x != nil { 144 return x.NodeMatchers 145 } 146 return nil 147 } 148 149 // Detailed config (per xDS) with status. 150 // [#next-free-field: 6] 151 type PerXdsConfig struct { 152 state protoimpl.MessageState 153 sizeCache protoimpl.SizeCache 154 unknownFields protoimpl.UnknownFields 155 156 Status ConfigStatus `protobuf:"varint,1,opt,name=status,proto3,enum=envoy.service.status.v2.ConfigStatus" json:"status,omitempty"` 157 // Types that are assignable to PerXdsConfig: 158 // *PerXdsConfig_ListenerConfig 159 // *PerXdsConfig_ClusterConfig 160 // *PerXdsConfig_RouteConfig 161 // *PerXdsConfig_ScopedRouteConfig 162 PerXdsConfig isPerXdsConfig_PerXdsConfig `protobuf_oneof:"per_xds_config"` 163 } 164 165 func (x *PerXdsConfig) Reset() { 166 *x = PerXdsConfig{} 167 if protoimpl.UnsafeEnabled { 168 mi := &file_envoy_service_status_v2_csds_proto_msgTypes[1] 169 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 170 ms.StoreMessageInfo(mi) 171 } 172 } 173 174 func (x *PerXdsConfig) String() string { 175 return protoimpl.X.MessageStringOf(x) 176 } 177 178 func (*PerXdsConfig) ProtoMessage() {} 179 180 func (x *PerXdsConfig) ProtoReflect() protoreflect.Message { 181 mi := &file_envoy_service_status_v2_csds_proto_msgTypes[1] 182 if protoimpl.UnsafeEnabled && x != nil { 183 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 184 if ms.LoadMessageInfo() == nil { 185 ms.StoreMessageInfo(mi) 186 } 187 return ms 188 } 189 return mi.MessageOf(x) 190 } 191 192 // Deprecated: Use PerXdsConfig.ProtoReflect.Descriptor instead. 193 func (*PerXdsConfig) Descriptor() ([]byte, []int) { 194 return file_envoy_service_status_v2_csds_proto_rawDescGZIP(), []int{1} 195 } 196 197 func (x *PerXdsConfig) GetStatus() ConfigStatus { 198 if x != nil { 199 return x.Status 200 } 201 return ConfigStatus_UNKNOWN 202 } 203 204 func (m *PerXdsConfig) GetPerXdsConfig() isPerXdsConfig_PerXdsConfig { 205 if m != nil { 206 return m.PerXdsConfig 207 } 208 return nil 209 } 210 211 func (x *PerXdsConfig) GetListenerConfig() *v2alpha.ListenersConfigDump { 212 if x, ok := x.GetPerXdsConfig().(*PerXdsConfig_ListenerConfig); ok { 213 return x.ListenerConfig 214 } 215 return nil 216 } 217 218 func (x *PerXdsConfig) GetClusterConfig() *v2alpha.ClustersConfigDump { 219 if x, ok := x.GetPerXdsConfig().(*PerXdsConfig_ClusterConfig); ok { 220 return x.ClusterConfig 221 } 222 return nil 223 } 224 225 func (x *PerXdsConfig) GetRouteConfig() *v2alpha.RoutesConfigDump { 226 if x, ok := x.GetPerXdsConfig().(*PerXdsConfig_RouteConfig); ok { 227 return x.RouteConfig 228 } 229 return nil 230 } 231 232 func (x *PerXdsConfig) GetScopedRouteConfig() *v2alpha.ScopedRoutesConfigDump { 233 if x, ok := x.GetPerXdsConfig().(*PerXdsConfig_ScopedRouteConfig); ok { 234 return x.ScopedRouteConfig 235 } 236 return nil 237 } 238 239 type isPerXdsConfig_PerXdsConfig interface { 240 isPerXdsConfig_PerXdsConfig() 241 } 242 243 type PerXdsConfig_ListenerConfig struct { 244 ListenerConfig *v2alpha.ListenersConfigDump `protobuf:"bytes,2,opt,name=listener_config,json=listenerConfig,proto3,oneof"` 245 } 246 247 type PerXdsConfig_ClusterConfig struct { 248 ClusterConfig *v2alpha.ClustersConfigDump `protobuf:"bytes,3,opt,name=cluster_config,json=clusterConfig,proto3,oneof"` 249 } 250 251 type PerXdsConfig_RouteConfig struct { 252 RouteConfig *v2alpha.RoutesConfigDump `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3,oneof"` 253 } 254 255 type PerXdsConfig_ScopedRouteConfig struct { 256 ScopedRouteConfig *v2alpha.ScopedRoutesConfigDump `protobuf:"bytes,5,opt,name=scoped_route_config,json=scopedRouteConfig,proto3,oneof"` 257 } 258 259 func (*PerXdsConfig_ListenerConfig) isPerXdsConfig_PerXdsConfig() {} 260 261 func (*PerXdsConfig_ClusterConfig) isPerXdsConfig_PerXdsConfig() {} 262 263 func (*PerXdsConfig_RouteConfig) isPerXdsConfig_PerXdsConfig() {} 264 265 func (*PerXdsConfig_ScopedRouteConfig) isPerXdsConfig_PerXdsConfig() {} 266 267 // All xds configs for a particular client. 268 type ClientConfig struct { 269 state protoimpl.MessageState 270 sizeCache protoimpl.SizeCache 271 unknownFields protoimpl.UnknownFields 272 273 // Node for a particular client. 274 Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` 275 XdsConfig []*PerXdsConfig `protobuf:"bytes,2,rep,name=xds_config,json=xdsConfig,proto3" json:"xds_config,omitempty"` 276 } 277 278 func (x *ClientConfig) Reset() { 279 *x = ClientConfig{} 280 if protoimpl.UnsafeEnabled { 281 mi := &file_envoy_service_status_v2_csds_proto_msgTypes[2] 282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 283 ms.StoreMessageInfo(mi) 284 } 285 } 286 287 func (x *ClientConfig) String() string { 288 return protoimpl.X.MessageStringOf(x) 289 } 290 291 func (*ClientConfig) ProtoMessage() {} 292 293 func (x *ClientConfig) ProtoReflect() protoreflect.Message { 294 mi := &file_envoy_service_status_v2_csds_proto_msgTypes[2] 295 if protoimpl.UnsafeEnabled && x != nil { 296 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 297 if ms.LoadMessageInfo() == nil { 298 ms.StoreMessageInfo(mi) 299 } 300 return ms 301 } 302 return mi.MessageOf(x) 303 } 304 305 // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead. 306 func (*ClientConfig) Descriptor() ([]byte, []int) { 307 return file_envoy_service_status_v2_csds_proto_rawDescGZIP(), []int{2} 308 } 309 310 func (x *ClientConfig) GetNode() *core.Node { 311 if x != nil { 312 return x.Node 313 } 314 return nil 315 } 316 317 func (x *ClientConfig) GetXdsConfig() []*PerXdsConfig { 318 if x != nil { 319 return x.XdsConfig 320 } 321 return nil 322 } 323 324 type ClientStatusResponse struct { 325 state protoimpl.MessageState 326 sizeCache protoimpl.SizeCache 327 unknownFields protoimpl.UnknownFields 328 329 // Client configs for the clients specified in the ClientStatusRequest. 330 Config []*ClientConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` 331 } 332 333 func (x *ClientStatusResponse) Reset() { 334 *x = ClientStatusResponse{} 335 if protoimpl.UnsafeEnabled { 336 mi := &file_envoy_service_status_v2_csds_proto_msgTypes[3] 337 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 338 ms.StoreMessageInfo(mi) 339 } 340 } 341 342 func (x *ClientStatusResponse) String() string { 343 return protoimpl.X.MessageStringOf(x) 344 } 345 346 func (*ClientStatusResponse) ProtoMessage() {} 347 348 func (x *ClientStatusResponse) ProtoReflect() protoreflect.Message { 349 mi := &file_envoy_service_status_v2_csds_proto_msgTypes[3] 350 if protoimpl.UnsafeEnabled && x != nil { 351 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 352 if ms.LoadMessageInfo() == nil { 353 ms.StoreMessageInfo(mi) 354 } 355 return ms 356 } 357 return mi.MessageOf(x) 358 } 359 360 // Deprecated: Use ClientStatusResponse.ProtoReflect.Descriptor instead. 361 func (*ClientStatusResponse) Descriptor() ([]byte, []int) { 362 return file_envoy_service_status_v2_csds_proto_rawDescGZIP(), []int{3} 363 } 364 365 func (x *ClientStatusResponse) GetConfig() []*ClientConfig { 366 if x != nil { 367 return x.Config 368 } 369 return nil 370 } 371 372 var File_envoy_service_status_v2_csds_proto protoreflect.FileDescriptor 373 374 var file_envoy_service_status_v2_csds_proto_rawDesc = []byte{ 375 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 376 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x73, 0x64, 0x73, 0x2e, 0x70, 377 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 378 0x69, 0x63, 0x65, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x25, 0x65, 379 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 380 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x64, 0x75, 0x6d, 0x70, 0x2e, 0x70, 381 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 382 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 383 0x74, 0x6f, 0x1a, 0x1d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 384 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 385 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 386 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 387 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 388 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5b, 389 0x0a, 0x13, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 390 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x61, 391 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 392 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 393 0x72, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, 0x0c, 0x6e, 394 0x6f, 0x64, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x22, 0xb1, 0x03, 0x0a, 0x0c, 395 0x50, 0x65, 0x72, 0x58, 0x64, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x06, 396 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x65, 397 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x74, 0x61, 398 0x74, 0x75, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x74, 0x61, 399 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x53, 0x0a, 0x0f, 0x6c, 400 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 401 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 402 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 403 0x6e, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x75, 0x6d, 0x70, 0x48, 0x00, 404 0x52, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 405 0x12, 0x50, 0x0a, 0x0e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 406 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 407 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 408 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x75, 0x6d, 409 0x70, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 410 0x69, 0x67, 0x12, 0x4a, 0x0a, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 411 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 412 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 413 0x6f, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x75, 0x6d, 0x70, 0x48, 414 0x00, 0x52, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5d, 415 0x0a, 0x13, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x63, 416 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6e, 417 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 418 0x61, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 419 0x6e, 0x66, 0x69, 0x67, 0x44, 0x75, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x11, 0x73, 0x63, 0x6f, 0x70, 420 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x10, 0x0a, 421 0x0e, 0x70, 0x65, 0x72, 0x5f, 0x78, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 422 0x81, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 423 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 424 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 425 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x44, 0x0a, 426 0x0a, 0x78, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28, 427 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 428 0x65, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x58, 429 0x64, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x78, 0x64, 0x73, 0x43, 0x6f, 0x6e, 430 0x66, 0x69, 0x67, 0x22, 0x55, 0x0a, 0x14, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 431 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x63, 432 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 433 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x74, 0x61, 0x74, 434 0x75, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 435 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2a, 0x4b, 0x0a, 0x0c, 0x43, 0x6f, 436 0x6e, 0x66, 0x69, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 437 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x59, 0x4e, 0x43, 0x45, 438 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x54, 0x10, 439 0x02, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x41, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 440 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x32, 0xb8, 0x02, 0x0a, 0x1c, 0x43, 0x6c, 0x69, 0x65, 441 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 442 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x77, 0x0a, 0x12, 0x53, 0x74, 0x72, 0x65, 443 0x61, 0x6d, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c, 444 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 445 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 446 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 447 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x74, 0x61, 448 0x74, 0x75, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 449 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 450 0x01, 0x12, 0x9e, 0x01, 0x0a, 0x11, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6c, 0x69, 0x65, 0x6e, 451 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 452 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x76, 453 0x32, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 454 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 455 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x76, 0x32, 0x2e, 456 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 457 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x1b, 0x2f, 0x76, 458 0x32, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x3a, 0x63, 0x6c, 0x69, 0x65, 459 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x03, 0x3a, 460 0x01, 0x2a, 0x42, 0x3f, 0x0a, 0x25, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 461 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 462 0x65, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x09, 0x43, 0x73, 0x64, 463 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x88, 0x01, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 464 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 465 } 466 467 var ( 468 file_envoy_service_status_v2_csds_proto_rawDescOnce sync.Once 469 file_envoy_service_status_v2_csds_proto_rawDescData = file_envoy_service_status_v2_csds_proto_rawDesc 470 ) 471 472 func file_envoy_service_status_v2_csds_proto_rawDescGZIP() []byte { 473 file_envoy_service_status_v2_csds_proto_rawDescOnce.Do(func() { 474 file_envoy_service_status_v2_csds_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_status_v2_csds_proto_rawDescData) 475 }) 476 return file_envoy_service_status_v2_csds_proto_rawDescData 477 } 478 479 var file_envoy_service_status_v2_csds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 480 var file_envoy_service_status_v2_csds_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 481 var file_envoy_service_status_v2_csds_proto_goTypes = []interface{}{ 482 (ConfigStatus)(0), // 0: envoy.service.status.v2.ConfigStatus 483 (*ClientStatusRequest)(nil), // 1: envoy.service.status.v2.ClientStatusRequest 484 (*PerXdsConfig)(nil), // 2: envoy.service.status.v2.PerXdsConfig 485 (*ClientConfig)(nil), // 3: envoy.service.status.v2.ClientConfig 486 (*ClientStatusResponse)(nil), // 4: envoy.service.status.v2.ClientStatusResponse 487 (*matcher.NodeMatcher)(nil), // 5: envoy.type.matcher.NodeMatcher 488 (*v2alpha.ListenersConfigDump)(nil), // 6: envoy.admin.v2alpha.ListenersConfigDump 489 (*v2alpha.ClustersConfigDump)(nil), // 7: envoy.admin.v2alpha.ClustersConfigDump 490 (*v2alpha.RoutesConfigDump)(nil), // 8: envoy.admin.v2alpha.RoutesConfigDump 491 (*v2alpha.ScopedRoutesConfigDump)(nil), // 9: envoy.admin.v2alpha.ScopedRoutesConfigDump 492 (*core.Node)(nil), // 10: envoy.api.v2.core.Node 493 } 494 var file_envoy_service_status_v2_csds_proto_depIdxs = []int32{ 495 5, // 0: envoy.service.status.v2.ClientStatusRequest.node_matchers:type_name -> envoy.type.matcher.NodeMatcher 496 0, // 1: envoy.service.status.v2.PerXdsConfig.status:type_name -> envoy.service.status.v2.ConfigStatus 497 6, // 2: envoy.service.status.v2.PerXdsConfig.listener_config:type_name -> envoy.admin.v2alpha.ListenersConfigDump 498 7, // 3: envoy.service.status.v2.PerXdsConfig.cluster_config:type_name -> envoy.admin.v2alpha.ClustersConfigDump 499 8, // 4: envoy.service.status.v2.PerXdsConfig.route_config:type_name -> envoy.admin.v2alpha.RoutesConfigDump 500 9, // 5: envoy.service.status.v2.PerXdsConfig.scoped_route_config:type_name -> envoy.admin.v2alpha.ScopedRoutesConfigDump 501 10, // 6: envoy.service.status.v2.ClientConfig.node:type_name -> envoy.api.v2.core.Node 502 2, // 7: envoy.service.status.v2.ClientConfig.xds_config:type_name -> envoy.service.status.v2.PerXdsConfig 503 3, // 8: envoy.service.status.v2.ClientStatusResponse.config:type_name -> envoy.service.status.v2.ClientConfig 504 1, // 9: envoy.service.status.v2.ClientStatusDiscoveryService.StreamClientStatus:input_type -> envoy.service.status.v2.ClientStatusRequest 505 1, // 10: envoy.service.status.v2.ClientStatusDiscoveryService.FetchClientStatus:input_type -> envoy.service.status.v2.ClientStatusRequest 506 4, // 11: envoy.service.status.v2.ClientStatusDiscoveryService.StreamClientStatus:output_type -> envoy.service.status.v2.ClientStatusResponse 507 4, // 12: envoy.service.status.v2.ClientStatusDiscoveryService.FetchClientStatus:output_type -> envoy.service.status.v2.ClientStatusResponse 508 11, // [11:13] is the sub-list for method output_type 509 9, // [9:11] is the sub-list for method input_type 510 9, // [9:9] is the sub-list for extension type_name 511 9, // [9:9] is the sub-list for extension extendee 512 0, // [0:9] is the sub-list for field type_name 513 } 514 515 func init() { file_envoy_service_status_v2_csds_proto_init() } 516 func file_envoy_service_status_v2_csds_proto_init() { 517 if File_envoy_service_status_v2_csds_proto != nil { 518 return 519 } 520 if !protoimpl.UnsafeEnabled { 521 file_envoy_service_status_v2_csds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 522 switch v := v.(*ClientStatusRequest); i { 523 case 0: 524 return &v.state 525 case 1: 526 return &v.sizeCache 527 case 2: 528 return &v.unknownFields 529 default: 530 return nil 531 } 532 } 533 file_envoy_service_status_v2_csds_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 534 switch v := v.(*PerXdsConfig); i { 535 case 0: 536 return &v.state 537 case 1: 538 return &v.sizeCache 539 case 2: 540 return &v.unknownFields 541 default: 542 return nil 543 } 544 } 545 file_envoy_service_status_v2_csds_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 546 switch v := v.(*ClientConfig); i { 547 case 0: 548 return &v.state 549 case 1: 550 return &v.sizeCache 551 case 2: 552 return &v.unknownFields 553 default: 554 return nil 555 } 556 } 557 file_envoy_service_status_v2_csds_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 558 switch v := v.(*ClientStatusResponse); i { 559 case 0: 560 return &v.state 561 case 1: 562 return &v.sizeCache 563 case 2: 564 return &v.unknownFields 565 default: 566 return nil 567 } 568 } 569 } 570 file_envoy_service_status_v2_csds_proto_msgTypes[1].OneofWrappers = []interface{}{ 571 (*PerXdsConfig_ListenerConfig)(nil), 572 (*PerXdsConfig_ClusterConfig)(nil), 573 (*PerXdsConfig_RouteConfig)(nil), 574 (*PerXdsConfig_ScopedRouteConfig)(nil), 575 } 576 type x struct{} 577 out := protoimpl.TypeBuilder{ 578 File: protoimpl.DescBuilder{ 579 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 580 RawDescriptor: file_envoy_service_status_v2_csds_proto_rawDesc, 581 NumEnums: 1, 582 NumMessages: 4, 583 NumExtensions: 0, 584 NumServices: 1, 585 }, 586 GoTypes: file_envoy_service_status_v2_csds_proto_goTypes, 587 DependencyIndexes: file_envoy_service_status_v2_csds_proto_depIdxs, 588 EnumInfos: file_envoy_service_status_v2_csds_proto_enumTypes, 589 MessageInfos: file_envoy_service_status_v2_csds_proto_msgTypes, 590 }.Build() 591 File_envoy_service_status_v2_csds_proto = out.File 592 file_envoy_service_status_v2_csds_proto_rawDesc = nil 593 file_envoy_service_status_v2_csds_proto_goTypes = nil 594 file_envoy_service_status_v2_csds_proto_depIdxs = nil 595 } 596 597 // Reference imports to suppress errors if they are not otherwise used. 598 var _ context.Context 599 var _ grpc.ClientConnInterface 600 601 // This is a compile-time assertion to ensure that this generated file 602 // is compatible with the grpc package it is being compiled against. 603 const _ = grpc.SupportPackageIsVersion6 604 605 // ClientStatusDiscoveryServiceClient is the client API for ClientStatusDiscoveryService service. 606 // 607 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 608 type ClientStatusDiscoveryServiceClient interface { 609 StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) 610 FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) 611 } 612 613 type clientStatusDiscoveryServiceClient struct { 614 cc grpc.ClientConnInterface 615 } 616 617 func NewClientStatusDiscoveryServiceClient(cc grpc.ClientConnInterface) ClientStatusDiscoveryServiceClient { 618 return &clientStatusDiscoveryServiceClient{cc} 619 } 620 621 func (c *clientStatusDiscoveryServiceClient) StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) { 622 stream, err := c.cc.NewStream(ctx, &_ClientStatusDiscoveryService_serviceDesc.Streams[0], "/envoy.service.status.v2.ClientStatusDiscoveryService/StreamClientStatus", opts...) 623 if err != nil { 624 return nil, err 625 } 626 x := &clientStatusDiscoveryServiceStreamClientStatusClient{stream} 627 return x, nil 628 } 629 630 type ClientStatusDiscoveryService_StreamClientStatusClient interface { 631 Send(*ClientStatusRequest) error 632 Recv() (*ClientStatusResponse, error) 633 grpc.ClientStream 634 } 635 636 type clientStatusDiscoveryServiceStreamClientStatusClient struct { 637 grpc.ClientStream 638 } 639 640 func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Send(m *ClientStatusRequest) error { 641 return x.ClientStream.SendMsg(m) 642 } 643 644 func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Recv() (*ClientStatusResponse, error) { 645 m := new(ClientStatusResponse) 646 if err := x.ClientStream.RecvMsg(m); err != nil { 647 return nil, err 648 } 649 return m, nil 650 } 651 652 func (c *clientStatusDiscoveryServiceClient) FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) { 653 out := new(ClientStatusResponse) 654 err := c.cc.Invoke(ctx, "/envoy.service.status.v2.ClientStatusDiscoveryService/FetchClientStatus", in, out, opts...) 655 if err != nil { 656 return nil, err 657 } 658 return out, nil 659 } 660 661 // ClientStatusDiscoveryServiceServer is the server API for ClientStatusDiscoveryService service. 662 type ClientStatusDiscoveryServiceServer interface { 663 StreamClientStatus(ClientStatusDiscoveryService_StreamClientStatusServer) error 664 FetchClientStatus(context.Context, *ClientStatusRequest) (*ClientStatusResponse, error) 665 } 666 667 // UnimplementedClientStatusDiscoveryServiceServer can be embedded to have forward compatible implementations. 668 type UnimplementedClientStatusDiscoveryServiceServer struct { 669 } 670 671 func (*UnimplementedClientStatusDiscoveryServiceServer) StreamClientStatus(ClientStatusDiscoveryService_StreamClientStatusServer) error { 672 return status.Errorf(codes.Unimplemented, "method StreamClientStatus not implemented") 673 } 674 func (*UnimplementedClientStatusDiscoveryServiceServer) FetchClientStatus(context.Context, *ClientStatusRequest) (*ClientStatusResponse, error) { 675 return nil, status.Errorf(codes.Unimplemented, "method FetchClientStatus not implemented") 676 } 677 678 func RegisterClientStatusDiscoveryServiceServer(s *grpc.Server, srv ClientStatusDiscoveryServiceServer) { 679 s.RegisterService(&_ClientStatusDiscoveryService_serviceDesc, srv) 680 } 681 682 func _ClientStatusDiscoveryService_StreamClientStatus_Handler(srv interface{}, stream grpc.ServerStream) error { 683 return srv.(ClientStatusDiscoveryServiceServer).StreamClientStatus(&clientStatusDiscoveryServiceStreamClientStatusServer{stream}) 684 } 685 686 type ClientStatusDiscoveryService_StreamClientStatusServer interface { 687 Send(*ClientStatusResponse) error 688 Recv() (*ClientStatusRequest, error) 689 grpc.ServerStream 690 } 691 692 type clientStatusDiscoveryServiceStreamClientStatusServer struct { 693 grpc.ServerStream 694 } 695 696 func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Send(m *ClientStatusResponse) error { 697 return x.ServerStream.SendMsg(m) 698 } 699 700 func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Recv() (*ClientStatusRequest, error) { 701 m := new(ClientStatusRequest) 702 if err := x.ServerStream.RecvMsg(m); err != nil { 703 return nil, err 704 } 705 return m, nil 706 } 707 708 func _ClientStatusDiscoveryService_FetchClientStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 709 in := new(ClientStatusRequest) 710 if err := dec(in); err != nil { 711 return nil, err 712 } 713 if interceptor == nil { 714 return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, in) 715 } 716 info := &grpc.UnaryServerInfo{ 717 Server: srv, 718 FullMethod: "/envoy.service.status.v2.ClientStatusDiscoveryService/FetchClientStatus", 719 } 720 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 721 return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, req.(*ClientStatusRequest)) 722 } 723 return interceptor(ctx, in, info, handler) 724 } 725 726 var _ClientStatusDiscoveryService_serviceDesc = grpc.ServiceDesc{ 727 ServiceName: "envoy.service.status.v2.ClientStatusDiscoveryService", 728 HandlerType: (*ClientStatusDiscoveryServiceServer)(nil), 729 Methods: []grpc.MethodDesc{ 730 { 731 MethodName: "FetchClientStatus", 732 Handler: _ClientStatusDiscoveryService_FetchClientStatus_Handler, 733 }, 734 }, 735 Streams: []grpc.StreamDesc{ 736 { 737 StreamName: "StreamClientStatus", 738 Handler: _ClientStatusDiscoveryService_StreamClientStatus_Handler, 739 ServerStreams: true, 740 ClientStreams: true, 741 }, 742 }, 743 Metadata: "envoy/service/status/v2/csds.proto", 744 }