gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/service/endpoint/v3/leds.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/endpoint/v3/leds.proto 6 7 package envoy_service_endpoint_v3 8 9 import ( 10 context "context" 11 _ "github.com/cncf/xds/go/udpa/annotations" 12 _ "gitee.com/ks-custle/core-gm/go-control-plane/envoy/annotations" 13 v3 "gitee.com/ks-custle/core-gm/go-control-plane/envoy/service/discovery/v3" 14 proto "github.com/golang/protobuf/proto" 15 grpc "gitee.com/ks-custle/core-gm/grpc" 16 codes "gitee.com/ks-custle/core-gm/grpc/codes" 17 status "gitee.com/ks-custle/core-gm/grpc/status" 18 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 19 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 20 reflect "reflect" 21 sync "sync" 22 ) 23 24 const ( 25 // Verify that this generated code is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 27 // Verify that runtime/protoimpl is sufficiently up-to-date. 28 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 29 ) 30 31 // This is a compile-time assertion that a sufficiently up-to-date version 32 // of the legacy proto package is being used. 33 const _ = proto.ProtoPackageIsVersion4 34 35 // [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing 36 // services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file. 37 type LedsDummy struct { 38 state protoimpl.MessageState 39 sizeCache protoimpl.SizeCache 40 unknownFields protoimpl.UnknownFields 41 } 42 43 func (x *LedsDummy) Reset() { 44 *x = LedsDummy{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_envoy_service_endpoint_v3_leds_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *LedsDummy) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*LedsDummy) ProtoMessage() {} 57 58 func (x *LedsDummy) ProtoReflect() protoreflect.Message { 59 mi := &file_envoy_service_endpoint_v3_leds_proto_msgTypes[0] 60 if protoimpl.UnsafeEnabled && x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use LedsDummy.ProtoReflect.Descriptor instead. 71 func (*LedsDummy) Descriptor() ([]byte, []int) { 72 return file_envoy_service_endpoint_v3_leds_proto_rawDescGZIP(), []int{0} 73 } 74 75 var File_envoy_service_endpoint_v3_leds_proto protoreflect.FileDescriptor 76 77 var file_envoy_service_endpoint_v3_leds_proto_rawDesc = []byte{ 78 0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 79 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x6c, 0x65, 0x64, 0x73, 80 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 81 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x76, 82 0x33, 0x1a, 0x2a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 83 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x33, 0x2f, 0x64, 0x69, 84 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x65, 85 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 86 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 87 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 88 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0b, 89 0x0a, 0x09, 0x4c, 0x65, 0x64, 0x73, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0xd7, 0x01, 0x0a, 0x20, 90 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 91 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 92 0x12, 0x85, 0x01, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 93 0x74, 0x79, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x31, 0x2e, 0x65, 0x6e, 94 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 95 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x44, 0x69, 96 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 97 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 98 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x65, 0x6c, 0x74, 99 0x61, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 100 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x1a, 0x2b, 0x8a, 0xa4, 0x96, 0xf3, 0x07, 0x25, 101 0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x65, 102 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x62, 0x45, 0x6e, 0x64, 103 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x41, 0x0a, 0x27, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 104 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 105 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x33, 106 0x42, 0x09, 0x4c, 0x65, 0x64, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x88, 0x01, 0x01, 107 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 108 } 109 110 var ( 111 file_envoy_service_endpoint_v3_leds_proto_rawDescOnce sync.Once 112 file_envoy_service_endpoint_v3_leds_proto_rawDescData = file_envoy_service_endpoint_v3_leds_proto_rawDesc 113 ) 114 115 func file_envoy_service_endpoint_v3_leds_proto_rawDescGZIP() []byte { 116 file_envoy_service_endpoint_v3_leds_proto_rawDescOnce.Do(func() { 117 file_envoy_service_endpoint_v3_leds_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_endpoint_v3_leds_proto_rawDescData) 118 }) 119 return file_envoy_service_endpoint_v3_leds_proto_rawDescData 120 } 121 122 var file_envoy_service_endpoint_v3_leds_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 123 var file_envoy_service_endpoint_v3_leds_proto_goTypes = []interface{}{ 124 (*LedsDummy)(nil), // 0: envoy.service.endpoint.v3.LedsDummy 125 (*v3.DeltaDiscoveryRequest)(nil), // 1: envoy.service.discovery.v3.DeltaDiscoveryRequest 126 (*v3.DeltaDiscoveryResponse)(nil), // 2: envoy.service.discovery.v3.DeltaDiscoveryResponse 127 } 128 var file_envoy_service_endpoint_v3_leds_proto_depIdxs = []int32{ 129 1, // 0: envoy.service.endpoint.v3.LocalityEndpointDiscoveryService.DeltaLocalityEndpoints:input_type -> envoy.service.discovery.v3.DeltaDiscoveryRequest 130 2, // 1: envoy.service.endpoint.v3.LocalityEndpointDiscoveryService.DeltaLocalityEndpoints:output_type -> envoy.service.discovery.v3.DeltaDiscoveryResponse 131 1, // [1:2] is the sub-list for method output_type 132 0, // [0:1] is the sub-list for method input_type 133 0, // [0:0] is the sub-list for extension type_name 134 0, // [0:0] is the sub-list for extension extendee 135 0, // [0:0] is the sub-list for field type_name 136 } 137 138 func init() { file_envoy_service_endpoint_v3_leds_proto_init() } 139 func file_envoy_service_endpoint_v3_leds_proto_init() { 140 if File_envoy_service_endpoint_v3_leds_proto != nil { 141 return 142 } 143 if !protoimpl.UnsafeEnabled { 144 file_envoy_service_endpoint_v3_leds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 145 switch v := v.(*LedsDummy); i { 146 case 0: 147 return &v.state 148 case 1: 149 return &v.sizeCache 150 case 2: 151 return &v.unknownFields 152 default: 153 return nil 154 } 155 } 156 } 157 type x struct{} 158 out := protoimpl.TypeBuilder{ 159 File: protoimpl.DescBuilder{ 160 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 161 RawDescriptor: file_envoy_service_endpoint_v3_leds_proto_rawDesc, 162 NumEnums: 0, 163 NumMessages: 1, 164 NumExtensions: 0, 165 NumServices: 1, 166 }, 167 GoTypes: file_envoy_service_endpoint_v3_leds_proto_goTypes, 168 DependencyIndexes: file_envoy_service_endpoint_v3_leds_proto_depIdxs, 169 MessageInfos: file_envoy_service_endpoint_v3_leds_proto_msgTypes, 170 }.Build() 171 File_envoy_service_endpoint_v3_leds_proto = out.File 172 file_envoy_service_endpoint_v3_leds_proto_rawDesc = nil 173 file_envoy_service_endpoint_v3_leds_proto_goTypes = nil 174 file_envoy_service_endpoint_v3_leds_proto_depIdxs = nil 175 } 176 177 // Reference imports to suppress errors if they are not otherwise used. 178 var _ context.Context 179 var _ grpc.ClientConnInterface 180 181 // This is a compile-time assertion to ensure that this generated file 182 // is compatible with the grpc package it is being compiled against. 183 const _ = grpc.SupportPackageIsVersion6 184 185 // LocalityEndpointDiscoveryServiceClient is the client API for LocalityEndpointDiscoveryService service. 186 // 187 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 188 type LocalityEndpointDiscoveryServiceClient interface { 189 // The resource_names_subscribe resource_names_unsubscribe fields in DeltaDiscoveryRequest 190 // specify a list of glob collections to subscribe to updates for. 191 DeltaLocalityEndpoints(ctx context.Context, opts ...grpc.CallOption) (LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient, error) 192 } 193 194 type localityEndpointDiscoveryServiceClient struct { 195 cc grpc.ClientConnInterface 196 } 197 198 func NewLocalityEndpointDiscoveryServiceClient(cc grpc.ClientConnInterface) LocalityEndpointDiscoveryServiceClient { 199 return &localityEndpointDiscoveryServiceClient{cc} 200 } 201 202 func (c *localityEndpointDiscoveryServiceClient) DeltaLocalityEndpoints(ctx context.Context, opts ...grpc.CallOption) (LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient, error) { 203 stream, err := c.cc.NewStream(ctx, &_LocalityEndpointDiscoveryService_serviceDesc.Streams[0], "/envoy.service.endpoint.v3.LocalityEndpointDiscoveryService/DeltaLocalityEndpoints", opts...) 204 if err != nil { 205 return nil, err 206 } 207 x := &localityEndpointDiscoveryServiceDeltaLocalityEndpointsClient{stream} 208 return x, nil 209 } 210 211 type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient interface { 212 Send(*v3.DeltaDiscoveryRequest) error 213 Recv() (*v3.DeltaDiscoveryResponse, error) 214 grpc.ClientStream 215 } 216 217 type localityEndpointDiscoveryServiceDeltaLocalityEndpointsClient struct { 218 grpc.ClientStream 219 } 220 221 func (x *localityEndpointDiscoveryServiceDeltaLocalityEndpointsClient) Send(m *v3.DeltaDiscoveryRequest) error { 222 return x.ClientStream.SendMsg(m) 223 } 224 225 func (x *localityEndpointDiscoveryServiceDeltaLocalityEndpointsClient) Recv() (*v3.DeltaDiscoveryResponse, error) { 226 m := new(v3.DeltaDiscoveryResponse) 227 if err := x.ClientStream.RecvMsg(m); err != nil { 228 return nil, err 229 } 230 return m, nil 231 } 232 233 // LocalityEndpointDiscoveryServiceServer is the server API for LocalityEndpointDiscoveryService service. 234 type LocalityEndpointDiscoveryServiceServer interface { 235 // The resource_names_subscribe resource_names_unsubscribe fields in DeltaDiscoveryRequest 236 // specify a list of glob collections to subscribe to updates for. 237 DeltaLocalityEndpoints(LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer) error 238 } 239 240 // UnimplementedLocalityEndpointDiscoveryServiceServer can be embedded to have forward compatible implementations. 241 type UnimplementedLocalityEndpointDiscoveryServiceServer struct { 242 } 243 244 func (*UnimplementedLocalityEndpointDiscoveryServiceServer) DeltaLocalityEndpoints(LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer) error { 245 return status.Errorf(codes.Unimplemented, "method DeltaLocalityEndpoints not implemented") 246 } 247 248 func RegisterLocalityEndpointDiscoveryServiceServer(s *grpc.Server, srv LocalityEndpointDiscoveryServiceServer) { 249 s.RegisterService(&_LocalityEndpointDiscoveryService_serviceDesc, srv) 250 } 251 252 func _LocalityEndpointDiscoveryService_DeltaLocalityEndpoints_Handler(srv interface{}, stream grpc.ServerStream) error { 253 return srv.(LocalityEndpointDiscoveryServiceServer).DeltaLocalityEndpoints(&localityEndpointDiscoveryServiceDeltaLocalityEndpointsServer{stream}) 254 } 255 256 type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer interface { 257 Send(*v3.DeltaDiscoveryResponse) error 258 Recv() (*v3.DeltaDiscoveryRequest, error) 259 grpc.ServerStream 260 } 261 262 type localityEndpointDiscoveryServiceDeltaLocalityEndpointsServer struct { 263 grpc.ServerStream 264 } 265 266 func (x *localityEndpointDiscoveryServiceDeltaLocalityEndpointsServer) Send(m *v3.DeltaDiscoveryResponse) error { 267 return x.ServerStream.SendMsg(m) 268 } 269 270 func (x *localityEndpointDiscoveryServiceDeltaLocalityEndpointsServer) Recv() (*v3.DeltaDiscoveryRequest, error) { 271 m := new(v3.DeltaDiscoveryRequest) 272 if err := x.ServerStream.RecvMsg(m); err != nil { 273 return nil, err 274 } 275 return m, nil 276 } 277 278 var _LocalityEndpointDiscoveryService_serviceDesc = grpc.ServiceDesc{ 279 ServiceName: "envoy.service.endpoint.v3.LocalityEndpointDiscoveryService", 280 HandlerType: (*LocalityEndpointDiscoveryServiceServer)(nil), 281 Methods: []grpc.MethodDesc{}, 282 Streams: []grpc.StreamDesc{ 283 { 284 StreamName: "DeltaLocalityEndpoints", 285 Handler: _LocalityEndpointDiscoveryService_DeltaLocalityEndpoints_Handler, 286 ServerStreams: true, 287 ClientStreams: true, 288 }, 289 }, 290 Metadata: "envoy/service/endpoint/v3/leds.proto", 291 }