github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/api/v2/eds.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/api/v2/eds.proto 6 7 package envoy_api_v2 8 9 import ( 10 context "context" 11 _ "github.com/cncf/xds/go/udpa/annotations" 12 _ "github.com/hxx258456/ccgo/go-control-plane/envoy/annotations" 13 proto "github.com/golang/protobuf/proto" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 grpc "github.com/hxx258456/ccgo/grpc" 16 codes "github.com/hxx258456/ccgo/grpc/codes" 17 status "github.com/hxx258456/ccgo/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 EdsDummy struct { 38 state protoimpl.MessageState 39 sizeCache protoimpl.SizeCache 40 unknownFields protoimpl.UnknownFields 41 } 42 43 func (x *EdsDummy) Reset() { 44 *x = EdsDummy{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_envoy_api_v2_eds_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *EdsDummy) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*EdsDummy) ProtoMessage() {} 57 58 func (x *EdsDummy) ProtoReflect() protoreflect.Message { 59 mi := &file_envoy_api_v2_eds_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 EdsDummy.ProtoReflect.Descriptor instead. 71 func (*EdsDummy) Descriptor() ([]byte, []int) { 72 return file_envoy_api_v2_eds_proto_rawDescGZIP(), []int{0} 73 } 74 75 var File_envoy_api_v2_eds_proto protoreflect.FileDescriptor 76 77 var file_envoy_api_v2_eds_proto_rawDesc = []byte{ 78 0x0a, 0x16, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x65, 79 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 80 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 81 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x70, 82 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 83 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 84 0x74, 0x6f, 0x1a, 0x20, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 85 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 86 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 87 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 88 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 89 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 90 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 91 0x32, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 92 0x22, 0x0a, 0x0a, 0x08, 0x45, 0x64, 0x73, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x80, 0x03, 0x0a, 93 0x18, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 94 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x0f, 0x53, 0x74, 0x72, 95 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x1e, 0x2e, 0x65, 96 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x69, 0x73, 0x63, 97 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 98 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x69, 0x73, 0x63, 99 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 100 0x01, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x45, 0x6e, 0x64, 0x70, 101 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 102 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 103 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x65, 0x6e, 0x76, 104 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x44, 105 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 106 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x7b, 0x0a, 0x0e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x45, 107 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x1e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 108 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 109 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 110 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 111 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 112 0x19, 0x22, 0x17, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 113 0x3a, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x03, 114 0x3a, 0x01, 0x2a, 0x1a, 0x2a, 0x8a, 0xa4, 0x96, 0xf3, 0x07, 0x24, 0x0a, 0x22, 0x65, 0x6e, 0x76, 115 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 116 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 117 0x54, 0x0a, 0x1a, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 118 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x42, 0x08, 0x45, 119 0x64, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x88, 0x01, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 120 0x05, 0x1b, 0x12, 0x19, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 121 0x65, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 122 0xd1, 0x06, 0x02, 0x10, 0x01, 0x50, 0x05, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 123 } 124 125 var ( 126 file_envoy_api_v2_eds_proto_rawDescOnce sync.Once 127 file_envoy_api_v2_eds_proto_rawDescData = file_envoy_api_v2_eds_proto_rawDesc 128 ) 129 130 func file_envoy_api_v2_eds_proto_rawDescGZIP() []byte { 131 file_envoy_api_v2_eds_proto_rawDescOnce.Do(func() { 132 file_envoy_api_v2_eds_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_api_v2_eds_proto_rawDescData) 133 }) 134 return file_envoy_api_v2_eds_proto_rawDescData 135 } 136 137 var file_envoy_api_v2_eds_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 138 var file_envoy_api_v2_eds_proto_goTypes = []interface{}{ 139 (*EdsDummy)(nil), // 0: envoy.api.v2.EdsDummy 140 (*DiscoveryRequest)(nil), // 1: envoy.api.v2.DiscoveryRequest 141 (*DeltaDiscoveryRequest)(nil), // 2: envoy.api.v2.DeltaDiscoveryRequest 142 (*DiscoveryResponse)(nil), // 3: envoy.api.v2.DiscoveryResponse 143 (*DeltaDiscoveryResponse)(nil), // 4: envoy.api.v2.DeltaDiscoveryResponse 144 } 145 var file_envoy_api_v2_eds_proto_depIdxs = []int32{ 146 1, // 0: envoy.api.v2.EndpointDiscoveryService.StreamEndpoints:input_type -> envoy.api.v2.DiscoveryRequest 147 2, // 1: envoy.api.v2.EndpointDiscoveryService.DeltaEndpoints:input_type -> envoy.api.v2.DeltaDiscoveryRequest 148 1, // 2: envoy.api.v2.EndpointDiscoveryService.FetchEndpoints:input_type -> envoy.api.v2.DiscoveryRequest 149 3, // 3: envoy.api.v2.EndpointDiscoveryService.StreamEndpoints:output_type -> envoy.api.v2.DiscoveryResponse 150 4, // 4: envoy.api.v2.EndpointDiscoveryService.DeltaEndpoints:output_type -> envoy.api.v2.DeltaDiscoveryResponse 151 3, // 5: envoy.api.v2.EndpointDiscoveryService.FetchEndpoints:output_type -> envoy.api.v2.DiscoveryResponse 152 3, // [3:6] is the sub-list for method output_type 153 0, // [0:3] is the sub-list for method input_type 154 0, // [0:0] is the sub-list for extension type_name 155 0, // [0:0] is the sub-list for extension extendee 156 0, // [0:0] is the sub-list for field type_name 157 } 158 159 func init() { file_envoy_api_v2_eds_proto_init() } 160 func file_envoy_api_v2_eds_proto_init() { 161 if File_envoy_api_v2_eds_proto != nil { 162 return 163 } 164 file_envoy_api_v2_discovery_proto_init() 165 file_envoy_api_v2_endpoint_proto_init() 166 if !protoimpl.UnsafeEnabled { 167 file_envoy_api_v2_eds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 168 switch v := v.(*EdsDummy); i { 169 case 0: 170 return &v.state 171 case 1: 172 return &v.sizeCache 173 case 2: 174 return &v.unknownFields 175 default: 176 return nil 177 } 178 } 179 } 180 type x struct{} 181 out := protoimpl.TypeBuilder{ 182 File: protoimpl.DescBuilder{ 183 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 184 RawDescriptor: file_envoy_api_v2_eds_proto_rawDesc, 185 NumEnums: 0, 186 NumMessages: 1, 187 NumExtensions: 0, 188 NumServices: 1, 189 }, 190 GoTypes: file_envoy_api_v2_eds_proto_goTypes, 191 DependencyIndexes: file_envoy_api_v2_eds_proto_depIdxs, 192 MessageInfos: file_envoy_api_v2_eds_proto_msgTypes, 193 }.Build() 194 File_envoy_api_v2_eds_proto = out.File 195 file_envoy_api_v2_eds_proto_rawDesc = nil 196 file_envoy_api_v2_eds_proto_goTypes = nil 197 file_envoy_api_v2_eds_proto_depIdxs = nil 198 } 199 200 // Reference imports to suppress errors if they are not otherwise used. 201 var _ context.Context 202 var _ grpc.ClientConnInterface 203 204 // This is a compile-time assertion to ensure that this generated file 205 // is compatible with the grpc package it is being compiled against. 206 const _ = grpc.SupportPackageIsVersion6 207 208 // EndpointDiscoveryServiceClient is the client API for EndpointDiscoveryService service. 209 // 210 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 211 type EndpointDiscoveryServiceClient interface { 212 // The resource_names field in DiscoveryRequest specifies a list of clusters 213 // to subscribe to updates for. 214 StreamEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_StreamEndpointsClient, error) 215 DeltaEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_DeltaEndpointsClient, error) 216 FetchEndpoints(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error) 217 } 218 219 type endpointDiscoveryServiceClient struct { 220 cc grpc.ClientConnInterface 221 } 222 223 func NewEndpointDiscoveryServiceClient(cc grpc.ClientConnInterface) EndpointDiscoveryServiceClient { 224 return &endpointDiscoveryServiceClient{cc} 225 } 226 227 func (c *endpointDiscoveryServiceClient) StreamEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_StreamEndpointsClient, error) { 228 stream, err := c.cc.NewStream(ctx, &_EndpointDiscoveryService_serviceDesc.Streams[0], "/envoy.api.v2.EndpointDiscoveryService/StreamEndpoints", opts...) 229 if err != nil { 230 return nil, err 231 } 232 x := &endpointDiscoveryServiceStreamEndpointsClient{stream} 233 return x, nil 234 } 235 236 type EndpointDiscoveryService_StreamEndpointsClient interface { 237 Send(*DiscoveryRequest) error 238 Recv() (*DiscoveryResponse, error) 239 grpc.ClientStream 240 } 241 242 type endpointDiscoveryServiceStreamEndpointsClient struct { 243 grpc.ClientStream 244 } 245 246 func (x *endpointDiscoveryServiceStreamEndpointsClient) Send(m *DiscoveryRequest) error { 247 return x.ClientStream.SendMsg(m) 248 } 249 250 func (x *endpointDiscoveryServiceStreamEndpointsClient) Recv() (*DiscoveryResponse, error) { 251 m := new(DiscoveryResponse) 252 if err := x.ClientStream.RecvMsg(m); err != nil { 253 return nil, err 254 } 255 return m, nil 256 } 257 258 func (c *endpointDiscoveryServiceClient) DeltaEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_DeltaEndpointsClient, error) { 259 stream, err := c.cc.NewStream(ctx, &_EndpointDiscoveryService_serviceDesc.Streams[1], "/envoy.api.v2.EndpointDiscoveryService/DeltaEndpoints", opts...) 260 if err != nil { 261 return nil, err 262 } 263 x := &endpointDiscoveryServiceDeltaEndpointsClient{stream} 264 return x, nil 265 } 266 267 type EndpointDiscoveryService_DeltaEndpointsClient interface { 268 Send(*DeltaDiscoveryRequest) error 269 Recv() (*DeltaDiscoveryResponse, error) 270 grpc.ClientStream 271 } 272 273 type endpointDiscoveryServiceDeltaEndpointsClient struct { 274 grpc.ClientStream 275 } 276 277 func (x *endpointDiscoveryServiceDeltaEndpointsClient) Send(m *DeltaDiscoveryRequest) error { 278 return x.ClientStream.SendMsg(m) 279 } 280 281 func (x *endpointDiscoveryServiceDeltaEndpointsClient) Recv() (*DeltaDiscoveryResponse, error) { 282 m := new(DeltaDiscoveryResponse) 283 if err := x.ClientStream.RecvMsg(m); err != nil { 284 return nil, err 285 } 286 return m, nil 287 } 288 289 func (c *endpointDiscoveryServiceClient) FetchEndpoints(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error) { 290 out := new(DiscoveryResponse) 291 err := c.cc.Invoke(ctx, "/envoy.api.v2.EndpointDiscoveryService/FetchEndpoints", in, out, opts...) 292 if err != nil { 293 return nil, err 294 } 295 return out, nil 296 } 297 298 // EndpointDiscoveryServiceServer is the server API for EndpointDiscoveryService service. 299 type EndpointDiscoveryServiceServer interface { 300 // The resource_names field in DiscoveryRequest specifies a list of clusters 301 // to subscribe to updates for. 302 StreamEndpoints(EndpointDiscoveryService_StreamEndpointsServer) error 303 DeltaEndpoints(EndpointDiscoveryService_DeltaEndpointsServer) error 304 FetchEndpoints(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error) 305 } 306 307 // UnimplementedEndpointDiscoveryServiceServer can be embedded to have forward compatible implementations. 308 type UnimplementedEndpointDiscoveryServiceServer struct { 309 } 310 311 func (*UnimplementedEndpointDiscoveryServiceServer) StreamEndpoints(EndpointDiscoveryService_StreamEndpointsServer) error { 312 return status.Errorf(codes.Unimplemented, "method StreamEndpoints not implemented") 313 } 314 func (*UnimplementedEndpointDiscoveryServiceServer) DeltaEndpoints(EndpointDiscoveryService_DeltaEndpointsServer) error { 315 return status.Errorf(codes.Unimplemented, "method DeltaEndpoints not implemented") 316 } 317 func (*UnimplementedEndpointDiscoveryServiceServer) FetchEndpoints(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error) { 318 return nil, status.Errorf(codes.Unimplemented, "method FetchEndpoints not implemented") 319 } 320 321 func RegisterEndpointDiscoveryServiceServer(s *grpc.Server, srv EndpointDiscoveryServiceServer) { 322 s.RegisterService(&_EndpointDiscoveryService_serviceDesc, srv) 323 } 324 325 func _EndpointDiscoveryService_StreamEndpoints_Handler(srv interface{}, stream grpc.ServerStream) error { 326 return srv.(EndpointDiscoveryServiceServer).StreamEndpoints(&endpointDiscoveryServiceStreamEndpointsServer{stream}) 327 } 328 329 type EndpointDiscoveryService_StreamEndpointsServer interface { 330 Send(*DiscoveryResponse) error 331 Recv() (*DiscoveryRequest, error) 332 grpc.ServerStream 333 } 334 335 type endpointDiscoveryServiceStreamEndpointsServer struct { 336 grpc.ServerStream 337 } 338 339 func (x *endpointDiscoveryServiceStreamEndpointsServer) Send(m *DiscoveryResponse) error { 340 return x.ServerStream.SendMsg(m) 341 } 342 343 func (x *endpointDiscoveryServiceStreamEndpointsServer) Recv() (*DiscoveryRequest, error) { 344 m := new(DiscoveryRequest) 345 if err := x.ServerStream.RecvMsg(m); err != nil { 346 return nil, err 347 } 348 return m, nil 349 } 350 351 func _EndpointDiscoveryService_DeltaEndpoints_Handler(srv interface{}, stream grpc.ServerStream) error { 352 return srv.(EndpointDiscoveryServiceServer).DeltaEndpoints(&endpointDiscoveryServiceDeltaEndpointsServer{stream}) 353 } 354 355 type EndpointDiscoveryService_DeltaEndpointsServer interface { 356 Send(*DeltaDiscoveryResponse) error 357 Recv() (*DeltaDiscoveryRequest, error) 358 grpc.ServerStream 359 } 360 361 type endpointDiscoveryServiceDeltaEndpointsServer struct { 362 grpc.ServerStream 363 } 364 365 func (x *endpointDiscoveryServiceDeltaEndpointsServer) Send(m *DeltaDiscoveryResponse) error { 366 return x.ServerStream.SendMsg(m) 367 } 368 369 func (x *endpointDiscoveryServiceDeltaEndpointsServer) Recv() (*DeltaDiscoveryRequest, error) { 370 m := new(DeltaDiscoveryRequest) 371 if err := x.ServerStream.RecvMsg(m); err != nil { 372 return nil, err 373 } 374 return m, nil 375 } 376 377 func _EndpointDiscoveryService_FetchEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 378 in := new(DiscoveryRequest) 379 if err := dec(in); err != nil { 380 return nil, err 381 } 382 if interceptor == nil { 383 return srv.(EndpointDiscoveryServiceServer).FetchEndpoints(ctx, in) 384 } 385 info := &grpc.UnaryServerInfo{ 386 Server: srv, 387 FullMethod: "/envoy.api.v2.EndpointDiscoveryService/FetchEndpoints", 388 } 389 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 390 return srv.(EndpointDiscoveryServiceServer).FetchEndpoints(ctx, req.(*DiscoveryRequest)) 391 } 392 return interceptor(ctx, in, info, handler) 393 } 394 395 var _EndpointDiscoveryService_serviceDesc = grpc.ServiceDesc{ 396 ServiceName: "envoy.api.v2.EndpointDiscoveryService", 397 HandlerType: (*EndpointDiscoveryServiceServer)(nil), 398 Methods: []grpc.MethodDesc{ 399 { 400 MethodName: "FetchEndpoints", 401 Handler: _EndpointDiscoveryService_FetchEndpoints_Handler, 402 }, 403 }, 404 Streams: []grpc.StreamDesc{ 405 { 406 StreamName: "StreamEndpoints", 407 Handler: _EndpointDiscoveryService_StreamEndpoints_Handler, 408 ServerStreams: true, 409 ClientStreams: true, 410 }, 411 { 412 StreamName: "DeltaEndpoints", 413 Handler: _EndpointDiscoveryService_DeltaEndpoints_Handler, 414 ServerStreams: true, 415 ClientStreams: true, 416 }, 417 }, 418 Metadata: "envoy/api/v2/eds.proto", 419 }