github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/api/v2/rds.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/rds.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 RdsDummy struct { 38 state protoimpl.MessageState 39 sizeCache protoimpl.SizeCache 40 unknownFields protoimpl.UnknownFields 41 } 42 43 func (x *RdsDummy) Reset() { 44 *x = RdsDummy{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_envoy_api_v2_rds_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *RdsDummy) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*RdsDummy) ProtoMessage() {} 57 58 func (x *RdsDummy) ProtoReflect() protoreflect.Message { 59 mi := &file_envoy_api_v2_rds_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 RdsDummy.ProtoReflect.Descriptor instead. 71 func (*RdsDummy) Descriptor() ([]byte, []int) { 72 return file_envoy_api_v2_rds_proto_rawDescGZIP(), []int{0} 73 } 74 75 var File_envoy_api_v2_rds_proto protoreflect.FileDescriptor 76 77 var file_envoy_api_v2_rds_proto_rawDesc = []byte{ 78 0x0a, 0x16, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x72, 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, 0x18, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 91 0x32, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0a, 0x0a, 92 0x08, 0x52, 0x64, 0x73, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0xee, 0x02, 0x0a, 0x15, 0x52, 0x6f, 93 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 94 0x69, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x6f, 0x75, 95 0x74, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 96 0x76, 0x32, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 97 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 98 0x76, 0x32, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 99 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x5e, 0x0a, 0x0b, 0x44, 0x65, 100 0x6c, 0x74, 0x61, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 101 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x44, 0x69, 102 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 103 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 104 0x6c, 0x74, 0x61, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 105 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x75, 0x0a, 0x0b, 0x46, 0x65, 106 0x74, 0x63, 0x68, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 107 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 108 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 109 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 110 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 111 0x02, 0x16, 0x22, 0x14, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 112 0x79, 0x3a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x03, 0x3a, 0x01, 113 0x2a, 0x1a, 0x27, 0x8a, 0xa4, 0x96, 0xf3, 0x07, 0x21, 0x0a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 114 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 115 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xab, 0x01, 0x0a, 0x1b, 0x56, 116 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 117 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x11, 0x44, 0x65, 118 0x6c, 0x74, 0x61, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 119 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x44, 120 0x65, 0x6c, 0x74, 0x61, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 121 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 122 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 123 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 124 0x1a, 0x26, 0x8a, 0xa4, 0x96, 0xf3, 0x07, 0x20, 0x0a, 0x1e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 125 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x56, 0x69, 0x72, 126 0x74, 0x75, 0x61, 0x6c, 0x48, 0x6f, 0x73, 0x74, 0x42, 0x51, 0x0a, 0x1a, 0x69, 0x6f, 0x2e, 0x65, 127 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 128 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x42, 0x08, 0x52, 0x64, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 129 0x50, 0x01, 0x88, 0x01, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x18, 0x12, 0x16, 0x65, 0x6e, 0x76, 130 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 131 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x50, 0x05, 0x62, 0x06, 0x70, 132 0x72, 0x6f, 0x74, 0x6f, 0x33, 133 } 134 135 var ( 136 file_envoy_api_v2_rds_proto_rawDescOnce sync.Once 137 file_envoy_api_v2_rds_proto_rawDescData = file_envoy_api_v2_rds_proto_rawDesc 138 ) 139 140 func file_envoy_api_v2_rds_proto_rawDescGZIP() []byte { 141 file_envoy_api_v2_rds_proto_rawDescOnce.Do(func() { 142 file_envoy_api_v2_rds_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_api_v2_rds_proto_rawDescData) 143 }) 144 return file_envoy_api_v2_rds_proto_rawDescData 145 } 146 147 var file_envoy_api_v2_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 148 var file_envoy_api_v2_rds_proto_goTypes = []interface{}{ 149 (*RdsDummy)(nil), // 0: envoy.api.v2.RdsDummy 150 (*DiscoveryRequest)(nil), // 1: envoy.api.v2.DiscoveryRequest 151 (*DeltaDiscoveryRequest)(nil), // 2: envoy.api.v2.DeltaDiscoveryRequest 152 (*DiscoveryResponse)(nil), // 3: envoy.api.v2.DiscoveryResponse 153 (*DeltaDiscoveryResponse)(nil), // 4: envoy.api.v2.DeltaDiscoveryResponse 154 } 155 var file_envoy_api_v2_rds_proto_depIdxs = []int32{ 156 1, // 0: envoy.api.v2.RouteDiscoveryService.StreamRoutes:input_type -> envoy.api.v2.DiscoveryRequest 157 2, // 1: envoy.api.v2.RouteDiscoveryService.DeltaRoutes:input_type -> envoy.api.v2.DeltaDiscoveryRequest 158 1, // 2: envoy.api.v2.RouteDiscoveryService.FetchRoutes:input_type -> envoy.api.v2.DiscoveryRequest 159 2, // 3: envoy.api.v2.VirtualHostDiscoveryService.DeltaVirtualHosts:input_type -> envoy.api.v2.DeltaDiscoveryRequest 160 3, // 4: envoy.api.v2.RouteDiscoveryService.StreamRoutes:output_type -> envoy.api.v2.DiscoveryResponse 161 4, // 5: envoy.api.v2.RouteDiscoveryService.DeltaRoutes:output_type -> envoy.api.v2.DeltaDiscoveryResponse 162 3, // 6: envoy.api.v2.RouteDiscoveryService.FetchRoutes:output_type -> envoy.api.v2.DiscoveryResponse 163 4, // 7: envoy.api.v2.VirtualHostDiscoveryService.DeltaVirtualHosts:output_type -> envoy.api.v2.DeltaDiscoveryResponse 164 4, // [4:8] is the sub-list for method output_type 165 0, // [0:4] is the sub-list for method input_type 166 0, // [0:0] is the sub-list for extension type_name 167 0, // [0:0] is the sub-list for extension extendee 168 0, // [0:0] is the sub-list for field type_name 169 } 170 171 func init() { file_envoy_api_v2_rds_proto_init() } 172 func file_envoy_api_v2_rds_proto_init() { 173 if File_envoy_api_v2_rds_proto != nil { 174 return 175 } 176 file_envoy_api_v2_discovery_proto_init() 177 file_envoy_api_v2_route_proto_init() 178 if !protoimpl.UnsafeEnabled { 179 file_envoy_api_v2_rds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 180 switch v := v.(*RdsDummy); i { 181 case 0: 182 return &v.state 183 case 1: 184 return &v.sizeCache 185 case 2: 186 return &v.unknownFields 187 default: 188 return nil 189 } 190 } 191 } 192 type x struct{} 193 out := protoimpl.TypeBuilder{ 194 File: protoimpl.DescBuilder{ 195 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 196 RawDescriptor: file_envoy_api_v2_rds_proto_rawDesc, 197 NumEnums: 0, 198 NumMessages: 1, 199 NumExtensions: 0, 200 NumServices: 2, 201 }, 202 GoTypes: file_envoy_api_v2_rds_proto_goTypes, 203 DependencyIndexes: file_envoy_api_v2_rds_proto_depIdxs, 204 MessageInfos: file_envoy_api_v2_rds_proto_msgTypes, 205 }.Build() 206 File_envoy_api_v2_rds_proto = out.File 207 file_envoy_api_v2_rds_proto_rawDesc = nil 208 file_envoy_api_v2_rds_proto_goTypes = nil 209 file_envoy_api_v2_rds_proto_depIdxs = nil 210 } 211 212 // Reference imports to suppress errors if they are not otherwise used. 213 var _ context.Context 214 var _ grpc.ClientConnInterface 215 216 // This is a compile-time assertion to ensure that this generated file 217 // is compatible with the grpc package it is being compiled against. 218 const _ = grpc.SupportPackageIsVersion6 219 220 // RouteDiscoveryServiceClient is the client API for RouteDiscoveryService service. 221 // 222 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 223 type RouteDiscoveryServiceClient interface { 224 StreamRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_StreamRoutesClient, error) 225 DeltaRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_DeltaRoutesClient, error) 226 FetchRoutes(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error) 227 } 228 229 type routeDiscoveryServiceClient struct { 230 cc grpc.ClientConnInterface 231 } 232 233 func NewRouteDiscoveryServiceClient(cc grpc.ClientConnInterface) RouteDiscoveryServiceClient { 234 return &routeDiscoveryServiceClient{cc} 235 } 236 237 func (c *routeDiscoveryServiceClient) StreamRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_StreamRoutesClient, error) { 238 stream, err := c.cc.NewStream(ctx, &_RouteDiscoveryService_serviceDesc.Streams[0], "/envoy.api.v2.RouteDiscoveryService/StreamRoutes", opts...) 239 if err != nil { 240 return nil, err 241 } 242 x := &routeDiscoveryServiceStreamRoutesClient{stream} 243 return x, nil 244 } 245 246 type RouteDiscoveryService_StreamRoutesClient interface { 247 Send(*DiscoveryRequest) error 248 Recv() (*DiscoveryResponse, error) 249 grpc.ClientStream 250 } 251 252 type routeDiscoveryServiceStreamRoutesClient struct { 253 grpc.ClientStream 254 } 255 256 func (x *routeDiscoveryServiceStreamRoutesClient) Send(m *DiscoveryRequest) error { 257 return x.ClientStream.SendMsg(m) 258 } 259 260 func (x *routeDiscoveryServiceStreamRoutesClient) Recv() (*DiscoveryResponse, error) { 261 m := new(DiscoveryResponse) 262 if err := x.ClientStream.RecvMsg(m); err != nil { 263 return nil, err 264 } 265 return m, nil 266 } 267 268 func (c *routeDiscoveryServiceClient) DeltaRoutes(ctx context.Context, opts ...grpc.CallOption) (RouteDiscoveryService_DeltaRoutesClient, error) { 269 stream, err := c.cc.NewStream(ctx, &_RouteDiscoveryService_serviceDesc.Streams[1], "/envoy.api.v2.RouteDiscoveryService/DeltaRoutes", opts...) 270 if err != nil { 271 return nil, err 272 } 273 x := &routeDiscoveryServiceDeltaRoutesClient{stream} 274 return x, nil 275 } 276 277 type RouteDiscoveryService_DeltaRoutesClient interface { 278 Send(*DeltaDiscoveryRequest) error 279 Recv() (*DeltaDiscoveryResponse, error) 280 grpc.ClientStream 281 } 282 283 type routeDiscoveryServiceDeltaRoutesClient struct { 284 grpc.ClientStream 285 } 286 287 func (x *routeDiscoveryServiceDeltaRoutesClient) Send(m *DeltaDiscoveryRequest) error { 288 return x.ClientStream.SendMsg(m) 289 } 290 291 func (x *routeDiscoveryServiceDeltaRoutesClient) Recv() (*DeltaDiscoveryResponse, error) { 292 m := new(DeltaDiscoveryResponse) 293 if err := x.ClientStream.RecvMsg(m); err != nil { 294 return nil, err 295 } 296 return m, nil 297 } 298 299 func (c *routeDiscoveryServiceClient) FetchRoutes(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error) { 300 out := new(DiscoveryResponse) 301 err := c.cc.Invoke(ctx, "/envoy.api.v2.RouteDiscoveryService/FetchRoutes", in, out, opts...) 302 if err != nil { 303 return nil, err 304 } 305 return out, nil 306 } 307 308 // RouteDiscoveryServiceServer is the server API for RouteDiscoveryService service. 309 type RouteDiscoveryServiceServer interface { 310 StreamRoutes(RouteDiscoveryService_StreamRoutesServer) error 311 DeltaRoutes(RouteDiscoveryService_DeltaRoutesServer) error 312 FetchRoutes(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error) 313 } 314 315 // UnimplementedRouteDiscoveryServiceServer can be embedded to have forward compatible implementations. 316 type UnimplementedRouteDiscoveryServiceServer struct { 317 } 318 319 func (*UnimplementedRouteDiscoveryServiceServer) StreamRoutes(RouteDiscoveryService_StreamRoutesServer) error { 320 return status.Errorf(codes.Unimplemented, "method StreamRoutes not implemented") 321 } 322 func (*UnimplementedRouteDiscoveryServiceServer) DeltaRoutes(RouteDiscoveryService_DeltaRoutesServer) error { 323 return status.Errorf(codes.Unimplemented, "method DeltaRoutes not implemented") 324 } 325 func (*UnimplementedRouteDiscoveryServiceServer) FetchRoutes(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error) { 326 return nil, status.Errorf(codes.Unimplemented, "method FetchRoutes not implemented") 327 } 328 329 func RegisterRouteDiscoveryServiceServer(s *grpc.Server, srv RouteDiscoveryServiceServer) { 330 s.RegisterService(&_RouteDiscoveryService_serviceDesc, srv) 331 } 332 333 func _RouteDiscoveryService_StreamRoutes_Handler(srv interface{}, stream grpc.ServerStream) error { 334 return srv.(RouteDiscoveryServiceServer).StreamRoutes(&routeDiscoveryServiceStreamRoutesServer{stream}) 335 } 336 337 type RouteDiscoveryService_StreamRoutesServer interface { 338 Send(*DiscoveryResponse) error 339 Recv() (*DiscoveryRequest, error) 340 grpc.ServerStream 341 } 342 343 type routeDiscoveryServiceStreamRoutesServer struct { 344 grpc.ServerStream 345 } 346 347 func (x *routeDiscoveryServiceStreamRoutesServer) Send(m *DiscoveryResponse) error { 348 return x.ServerStream.SendMsg(m) 349 } 350 351 func (x *routeDiscoveryServiceStreamRoutesServer) Recv() (*DiscoveryRequest, error) { 352 m := new(DiscoveryRequest) 353 if err := x.ServerStream.RecvMsg(m); err != nil { 354 return nil, err 355 } 356 return m, nil 357 } 358 359 func _RouteDiscoveryService_DeltaRoutes_Handler(srv interface{}, stream grpc.ServerStream) error { 360 return srv.(RouteDiscoveryServiceServer).DeltaRoutes(&routeDiscoveryServiceDeltaRoutesServer{stream}) 361 } 362 363 type RouteDiscoveryService_DeltaRoutesServer interface { 364 Send(*DeltaDiscoveryResponse) error 365 Recv() (*DeltaDiscoveryRequest, error) 366 grpc.ServerStream 367 } 368 369 type routeDiscoveryServiceDeltaRoutesServer struct { 370 grpc.ServerStream 371 } 372 373 func (x *routeDiscoveryServiceDeltaRoutesServer) Send(m *DeltaDiscoveryResponse) error { 374 return x.ServerStream.SendMsg(m) 375 } 376 377 func (x *routeDiscoveryServiceDeltaRoutesServer) Recv() (*DeltaDiscoveryRequest, error) { 378 m := new(DeltaDiscoveryRequest) 379 if err := x.ServerStream.RecvMsg(m); err != nil { 380 return nil, err 381 } 382 return m, nil 383 } 384 385 func _RouteDiscoveryService_FetchRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 386 in := new(DiscoveryRequest) 387 if err := dec(in); err != nil { 388 return nil, err 389 } 390 if interceptor == nil { 391 return srv.(RouteDiscoveryServiceServer).FetchRoutes(ctx, in) 392 } 393 info := &grpc.UnaryServerInfo{ 394 Server: srv, 395 FullMethod: "/envoy.api.v2.RouteDiscoveryService/FetchRoutes", 396 } 397 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 398 return srv.(RouteDiscoveryServiceServer).FetchRoutes(ctx, req.(*DiscoveryRequest)) 399 } 400 return interceptor(ctx, in, info, handler) 401 } 402 403 var _RouteDiscoveryService_serviceDesc = grpc.ServiceDesc{ 404 ServiceName: "envoy.api.v2.RouteDiscoveryService", 405 HandlerType: (*RouteDiscoveryServiceServer)(nil), 406 Methods: []grpc.MethodDesc{ 407 { 408 MethodName: "FetchRoutes", 409 Handler: _RouteDiscoveryService_FetchRoutes_Handler, 410 }, 411 }, 412 Streams: []grpc.StreamDesc{ 413 { 414 StreamName: "StreamRoutes", 415 Handler: _RouteDiscoveryService_StreamRoutes_Handler, 416 ServerStreams: true, 417 ClientStreams: true, 418 }, 419 { 420 StreamName: "DeltaRoutes", 421 Handler: _RouteDiscoveryService_DeltaRoutes_Handler, 422 ServerStreams: true, 423 ClientStreams: true, 424 }, 425 }, 426 Metadata: "envoy/api/v2/rds.proto", 427 } 428 429 // VirtualHostDiscoveryServiceClient is the client API for VirtualHostDiscoveryService service. 430 // 431 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 432 type VirtualHostDiscoveryServiceClient interface { 433 DeltaVirtualHosts(ctx context.Context, opts ...grpc.CallOption) (VirtualHostDiscoveryService_DeltaVirtualHostsClient, error) 434 } 435 436 type virtualHostDiscoveryServiceClient struct { 437 cc grpc.ClientConnInterface 438 } 439 440 func NewVirtualHostDiscoveryServiceClient(cc grpc.ClientConnInterface) VirtualHostDiscoveryServiceClient { 441 return &virtualHostDiscoveryServiceClient{cc} 442 } 443 444 func (c *virtualHostDiscoveryServiceClient) DeltaVirtualHosts(ctx context.Context, opts ...grpc.CallOption) (VirtualHostDiscoveryService_DeltaVirtualHostsClient, error) { 445 stream, err := c.cc.NewStream(ctx, &_VirtualHostDiscoveryService_serviceDesc.Streams[0], "/envoy.api.v2.VirtualHostDiscoveryService/DeltaVirtualHosts", opts...) 446 if err != nil { 447 return nil, err 448 } 449 x := &virtualHostDiscoveryServiceDeltaVirtualHostsClient{stream} 450 return x, nil 451 } 452 453 type VirtualHostDiscoveryService_DeltaVirtualHostsClient interface { 454 Send(*DeltaDiscoveryRequest) error 455 Recv() (*DeltaDiscoveryResponse, error) 456 grpc.ClientStream 457 } 458 459 type virtualHostDiscoveryServiceDeltaVirtualHostsClient struct { 460 grpc.ClientStream 461 } 462 463 func (x *virtualHostDiscoveryServiceDeltaVirtualHostsClient) Send(m *DeltaDiscoveryRequest) error { 464 return x.ClientStream.SendMsg(m) 465 } 466 467 func (x *virtualHostDiscoveryServiceDeltaVirtualHostsClient) Recv() (*DeltaDiscoveryResponse, error) { 468 m := new(DeltaDiscoveryResponse) 469 if err := x.ClientStream.RecvMsg(m); err != nil { 470 return nil, err 471 } 472 return m, nil 473 } 474 475 // VirtualHostDiscoveryServiceServer is the server API for VirtualHostDiscoveryService service. 476 type VirtualHostDiscoveryServiceServer interface { 477 DeltaVirtualHosts(VirtualHostDiscoveryService_DeltaVirtualHostsServer) error 478 } 479 480 // UnimplementedVirtualHostDiscoveryServiceServer can be embedded to have forward compatible implementations. 481 type UnimplementedVirtualHostDiscoveryServiceServer struct { 482 } 483 484 func (*UnimplementedVirtualHostDiscoveryServiceServer) DeltaVirtualHosts(VirtualHostDiscoveryService_DeltaVirtualHostsServer) error { 485 return status.Errorf(codes.Unimplemented, "method DeltaVirtualHosts not implemented") 486 } 487 488 func RegisterVirtualHostDiscoveryServiceServer(s *grpc.Server, srv VirtualHostDiscoveryServiceServer) { 489 s.RegisterService(&_VirtualHostDiscoveryService_serviceDesc, srv) 490 } 491 492 func _VirtualHostDiscoveryService_DeltaVirtualHosts_Handler(srv interface{}, stream grpc.ServerStream) error { 493 return srv.(VirtualHostDiscoveryServiceServer).DeltaVirtualHosts(&virtualHostDiscoveryServiceDeltaVirtualHostsServer{stream}) 494 } 495 496 type VirtualHostDiscoveryService_DeltaVirtualHostsServer interface { 497 Send(*DeltaDiscoveryResponse) error 498 Recv() (*DeltaDiscoveryRequest, error) 499 grpc.ServerStream 500 } 501 502 type virtualHostDiscoveryServiceDeltaVirtualHostsServer struct { 503 grpc.ServerStream 504 } 505 506 func (x *virtualHostDiscoveryServiceDeltaVirtualHostsServer) Send(m *DeltaDiscoveryResponse) error { 507 return x.ServerStream.SendMsg(m) 508 } 509 510 func (x *virtualHostDiscoveryServiceDeltaVirtualHostsServer) Recv() (*DeltaDiscoveryRequest, error) { 511 m := new(DeltaDiscoveryRequest) 512 if err := x.ServerStream.RecvMsg(m); err != nil { 513 return nil, err 514 } 515 return m, nil 516 } 517 518 var _VirtualHostDiscoveryService_serviceDesc = grpc.ServiceDesc{ 519 ServiceName: "envoy.api.v2.VirtualHostDiscoveryService", 520 HandlerType: (*VirtualHostDiscoveryServiceServer)(nil), 521 Methods: []grpc.MethodDesc{}, 522 Streams: []grpc.StreamDesc{ 523 { 524 StreamName: "DeltaVirtualHosts", 525 Handler: _VirtualHostDiscoveryService_DeltaVirtualHosts_Handler, 526 ServerStreams: true, 527 ClientStreams: true, 528 }, 529 }, 530 Metadata: "envoy/api/v2/rds.proto", 531 }