| 1 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// - protoc-gen-go-grpc v1.3.0 |
| 4 |
// - protoc v5.29.1 |
| 5 |
// source: envoy/service/endpoint/v3/leds.proto |
| 6 |
|
| 7 |
package endpointv3 |
| 8 |
|
| 9 |
import ( |
| 10 |
context "context" |
| 11 |
v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" |
| 12 |
grpc "google.golang.org/grpc" |
| 13 |
codes "google.golang.org/grpc/codes" |
| 14 |
status "google.golang.org/grpc/status" |
| 15 |
) |
| 16 |
|
| 17 |
// This is a compile-time assertion to ensure that this generated file |
| 18 |
// is compatible with the grpc package it is being compiled against. |
| 19 |
// Requires gRPC-Go v1.32.0 or later. |
| 20 |
const _ = grpc.SupportPackageIsVersion7 |
| 21 |
|
| 22 |
const ( |
| 23 |
LocalityEndpointDiscoveryService_DeltaLocalityEndpoints_FullMethodName = "/envoy.service.endpoint.v3.LocalityEndpointDiscoveryService/DeltaLocalityEndpoints" |
| 24 |
) |
| 25 |
|
| 26 |
// LocalityEndpointDiscoveryServiceClient is the client API for LocalityEndpointDiscoveryService service. |
| 27 |
// |
| 28 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 29 |
type LocalityEndpointDiscoveryServiceClient interface { |
| 30 |
// The resource_names_subscribe resource_names_unsubscribe fields in DeltaDiscoveryRequest |
| 31 |
// specify a list of glob collections to subscribe to updates for. |
| 32 |
DeltaLocalityEndpoints(ctx context.Context, opts ...grpc.CallOption) (LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient, error) |
| 33 |
} |
| 34 |
|
| 35 |
type localityEndpointDiscoveryServiceClient struct { |
| 36 |
cc grpc.ClientConnInterface |
| 37 |
} |
| 38 |
|
| 39 |
func NewLocalityEndpointDiscoveryServiceClient(cc grpc.ClientConnInterface) LocalityEndpointDiscoveryServiceClient { |
| 40 |
return &localityEndpointDiscoveryServiceClient{cc} |
| 41 |
} |
| 42 |
|
| 43 |
func (c *localityEndpointDiscoveryServiceClient) DeltaLocalityEndpoints(ctx context.Context, opts ...grpc.CallOption) (LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient, error) { |
| 44 |
stream, err := c.cc.NewStream(ctx, &LocalityEndpointDiscoveryService_ServiceDesc.Streams[0], LocalityEndpointDiscoveryService_DeltaLocalityEndpoints_FullMethodName, opts...) |
| 45 |
if err != nil { |
| 46 |
return nil, err |
| 47 |
} |
| 48 |
x := &localityEndpointDiscoveryServiceDeltaLocalityEndpointsClient{stream} |
| 49 |
return x, nil |
| 50 |
} |
| 51 |
|
| 52 |
type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsClient interface { |
| 53 |
Send(*v3.DeltaDiscoveryRequest) error |
| 54 |
Recv() (*v3.DeltaDiscoveryResponse, error) |
| 55 |
grpc.ClientStream |
| 56 |
} |
| 57 |
|
| 58 |
type localityEndpointDiscoveryServiceDeltaLocalityEndpointsClient struct { |
| 59 |
grpc.ClientStream |
| 60 |
} |
| 61 |
|
| 62 |
func (x *localityEndpointDiscoveryServiceDeltaLocalityEndpointsClient) Send(m *v3.DeltaDiscoveryRequest) error { |
| 63 |
return x.ClientStream.SendMsg(m) |
| 64 |
} |
| 65 |
|
| 66 |
func (x *localityEndpointDiscoveryServiceDeltaLocalityEndpointsClient) Recv() (*v3.DeltaDiscoveryResponse, error) { |
| 67 |
m := new(v3.DeltaDiscoveryResponse) |
| 68 |
if err := x.ClientStream.RecvMsg(m); err != nil { |
| 69 |
return nil, err |
| 70 |
} |
| 71 |
return m, nil |
| 72 |
} |
| 73 |
|
| 74 |
// LocalityEndpointDiscoveryServiceServer is the server API for LocalityEndpointDiscoveryService service. |
| 75 |
// All implementations should embed UnimplementedLocalityEndpointDiscoveryServiceServer |
| 76 |
// for forward compatibility |
| 77 |
type LocalityEndpointDiscoveryServiceServer interface { |
| 78 |
// The resource_names_subscribe resource_names_unsubscribe fields in DeltaDiscoveryRequest |
| 79 |
// specify a list of glob collections to subscribe to updates for. |
| 80 |
DeltaLocalityEndpoints(LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer) error |
| 81 |
} |
| 82 |
|
| 83 |
// UnimplementedLocalityEndpointDiscoveryServiceServer should be embedded to have forward compatible implementations. |
| 84 |
type UnimplementedLocalityEndpointDiscoveryServiceServer struct { |
| 85 |
} |
| 86 |
|
| 87 |
func (UnimplementedLocalityEndpointDiscoveryServiceServer) DeltaLocalityEndpoints(LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer) error { |
| 88 |
return status.Errorf(codes.Unimplemented, "method DeltaLocalityEndpoints not implemented") |
| 89 |
} |
| 90 |
|
| 91 |
// UnsafeLocalityEndpointDiscoveryServiceServer may be embedded to opt out of forward compatibility for this service. |
| 92 |
// Use of this interface is not recommended, as added methods to LocalityEndpointDiscoveryServiceServer will |
| 93 |
// result in compilation errors. |
| 94 |
type UnsafeLocalityEndpointDiscoveryServiceServer interface { |
| 95 |
mustEmbedUnimplementedLocalityEndpointDiscoveryServiceServer() |
| 96 |
} |
| 97 |
|
| 98 |
func RegisterLocalityEndpointDiscoveryServiceServer(s grpc.ServiceRegistrar, srv LocalityEndpointDiscoveryServiceServer) { |
| 99 |
s.RegisterService(&LocalityEndpointDiscoveryService_ServiceDesc, srv) |
| 100 |
} |
| 101 |
|
| 102 |
func _LocalityEndpointDiscoveryService_DeltaLocalityEndpoints_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 103 |
return srv.(LocalityEndpointDiscoveryServiceServer).DeltaLocalityEndpoints(&localityEndpointDiscoveryServiceDeltaLocalityEndpointsServer{stream}) |
| 104 |
} |
| 105 |
|
| 106 |
type LocalityEndpointDiscoveryService_DeltaLocalityEndpointsServer interface { |
| 107 |
Send(*v3.DeltaDiscoveryResponse) error |
| 108 |
Recv() (*v3.DeltaDiscoveryRequest, error) |
| 109 |
grpc.ServerStream |
| 110 |
} |
| 111 |
|
| 112 |
type localityEndpointDiscoveryServiceDeltaLocalityEndpointsServer struct { |
| 113 |
grpc.ServerStream |
| 114 |
} |
| 115 |
|
| 116 |
func (x *localityEndpointDiscoveryServiceDeltaLocalityEndpointsServer) Send(m *v3.DeltaDiscoveryResponse) error { |
| 117 |
return x.ServerStream.SendMsg(m) |
| 118 |
} |
| 119 |
|
| 120 |
func (x *localityEndpointDiscoveryServiceDeltaLocalityEndpointsServer) Recv() (*v3.DeltaDiscoveryRequest, error) { |
| 121 |
m := new(v3.DeltaDiscoveryRequest) |
| 122 |
if err := x.ServerStream.RecvMsg(m); err != nil { |
| 123 |
return nil, err |
| 124 |
} |
| 125 |
return m, nil |
| 126 |
} |
| 127 |
|
| 128 |
// LocalityEndpointDiscoveryService_ServiceDesc is the grpc.ServiceDesc for LocalityEndpointDiscoveryService service. |
| 129 |
// It's only intended for direct use with grpc.RegisterService, |
| 130 |
// and not to be introspected or modified (even as a copy) |
| 131 |
var LocalityEndpointDiscoveryService_ServiceDesc = grpc.ServiceDesc{ |
| 132 |
ServiceName: "envoy.service.endpoint.v3.LocalityEndpointDiscoveryService", |
| 133 |
HandlerType: (*LocalityEndpointDiscoveryServiceServer)(nil), |
| 134 |
Methods: []grpc.MethodDesc{}, |
| 135 |
Streams: []grpc.StreamDesc{ |
| 136 |
{ |
| 137 |
StreamName: "DeltaLocalityEndpoints", |
| 138 |
Handler: _LocalityEndpointDiscoveryService_DeltaLocalityEndpoints_Handler, |
| 139 |
ServerStreams: true, |
| 140 |
ClientStreams: true, |
| 141 |
}, |
| 142 |
}, |
| 143 |
Metadata: "envoy/service/endpoint/v3/leds.proto", |
| 144 |
} |