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