| 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/status/v2/csds.proto |
| 6 |
|
| 7 |
package statusv2 |
| 8 |
|
| 9 |
import ( |
| 10 |
context "context" |
| 11 |
grpc "google.golang.org/grpc" |
| 12 |
codes "google.golang.org/grpc/codes" |
| 13 |
status "google.golang.org/grpc/status" |
| 14 |
) |
| 15 |
|
| 16 |
// This is a compile-time assertion to ensure that this generated file |
| 17 |
// is compatible with the grpc package it is being compiled against. |
| 18 |
// Requires gRPC-Go v1.32.0 or later. |
| 19 |
const _ = grpc.SupportPackageIsVersion7 |
| 20 |
|
| 21 |
const ( |
| 22 |
ClientStatusDiscoveryService_StreamClientStatus_FullMethodName = "/envoy.service.status.v2.ClientStatusDiscoveryService/StreamClientStatus" |
| 23 |
ClientStatusDiscoveryService_FetchClientStatus_FullMethodName = "/envoy.service.status.v2.ClientStatusDiscoveryService/FetchClientStatus" |
| 24 |
) |
| 25 |
|
| 26 |
// ClientStatusDiscoveryServiceClient is the client API for ClientStatusDiscoveryService 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 ClientStatusDiscoveryServiceClient interface { |
| 30 |
StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) |
| 31 |
FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) |
| 32 |
} |
| 33 |
|
| 34 |
type clientStatusDiscoveryServiceClient struct { |
| 35 |
cc grpc.ClientConnInterface |
| 36 |
} |
| 37 |
|
| 38 |
func NewClientStatusDiscoveryServiceClient(cc grpc.ClientConnInterface) ClientStatusDiscoveryServiceClient { |
| 39 |
return &clientStatusDiscoveryServiceClient{cc} |
| 40 |
} |
| 41 |
|
| 42 |
func (c *clientStatusDiscoveryServiceClient) StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) { |
| 43 |
stream, err := c.cc.NewStream(ctx, &ClientStatusDiscoveryService_ServiceDesc.Streams[0], ClientStatusDiscoveryService_StreamClientStatus_FullMethodName, opts...) |
| 44 |
if err != nil { |
| 45 |
return nil, err |
| 46 |
} |
| 47 |
x := &clientStatusDiscoveryServiceStreamClientStatusClient{stream} |
| 48 |
return x, nil |
| 49 |
} |
| 50 |
|
| 51 |
type ClientStatusDiscoveryService_StreamClientStatusClient interface { |
| 52 |
Send(*ClientStatusRequest) error |
| 53 |
Recv() (*ClientStatusResponse, error) |
| 54 |
grpc.ClientStream |
| 55 |
} |
| 56 |
|
| 57 |
type clientStatusDiscoveryServiceStreamClientStatusClient struct { |
| 58 |
grpc.ClientStream |
| 59 |
} |
| 60 |
|
| 61 |
func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Send(m *ClientStatusRequest) error { |
| 62 |
return x.ClientStream.SendMsg(m) |
| 63 |
} |
| 64 |
|
| 65 |
func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Recv() (*ClientStatusResponse, error) { |
| 66 |
m := new(ClientStatusResponse) |
| 67 |
if err := x.ClientStream.RecvMsg(m); err != nil { |
| 68 |
return nil, err |
| 69 |
} |
| 70 |
return m, nil |
| 71 |
} |
| 72 |
|
| 73 |
func (c *clientStatusDiscoveryServiceClient) FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) { |
| 74 |
out := new(ClientStatusResponse) |
| 75 |
err := c.cc.Invoke(ctx, ClientStatusDiscoveryService_FetchClientStatus_FullMethodName, in, out, opts...) |
| 76 |
if err != nil { |
| 77 |
return nil, err |
| 78 |
} |
| 79 |
return out, nil |
| 80 |
} |
| 81 |
|
| 82 |
// ClientStatusDiscoveryServiceServer is the server API for ClientStatusDiscoveryService service. |
| 83 |
// All implementations should embed UnimplementedClientStatusDiscoveryServiceServer |
| 84 |
// for forward compatibility |
| 85 |
type ClientStatusDiscoveryServiceServer interface { |
| 86 |
StreamClientStatus(ClientStatusDiscoveryService_StreamClientStatusServer) error |
| 87 |
FetchClientStatus(context.Context, *ClientStatusRequest) (*ClientStatusResponse, error) |
| 88 |
} |
| 89 |
|
| 90 |
// UnimplementedClientStatusDiscoveryServiceServer should be embedded to have forward compatible implementations. |
| 91 |
type UnimplementedClientStatusDiscoveryServiceServer struct { |
| 92 |
} |
| 93 |
|
| 94 |
func (UnimplementedClientStatusDiscoveryServiceServer) StreamClientStatus(ClientStatusDiscoveryService_StreamClientStatusServer) error { |
| 95 |
return status.Errorf(codes.Unimplemented, "method StreamClientStatus not implemented") |
| 96 |
} |
| 97 |
func (UnimplementedClientStatusDiscoveryServiceServer) FetchClientStatus(context.Context, *ClientStatusRequest) (*ClientStatusResponse, error) { |
| 98 |
return nil, status.Errorf(codes.Unimplemented, "method FetchClientStatus not implemented") |
| 99 |
} |
| 100 |
|
| 101 |
// UnsafeClientStatusDiscoveryServiceServer may be embedded to opt out of forward compatibility for this service. |
| 102 |
// Use of this interface is not recommended, as added methods to ClientStatusDiscoveryServiceServer will |
| 103 |
// result in compilation errors. |
| 104 |
type UnsafeClientStatusDiscoveryServiceServer interface { |
| 105 |
mustEmbedUnimplementedClientStatusDiscoveryServiceServer() |
| 106 |
} |
| 107 |
|
| 108 |
func RegisterClientStatusDiscoveryServiceServer(s grpc.ServiceRegistrar, srv ClientStatusDiscoveryServiceServer) { |
| 109 |
s.RegisterService(&ClientStatusDiscoveryService_ServiceDesc, srv) |
| 110 |
} |
| 111 |
|
| 112 |
func _ClientStatusDiscoveryService_StreamClientStatus_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 113 |
return srv.(ClientStatusDiscoveryServiceServer).StreamClientStatus(&clientStatusDiscoveryServiceStreamClientStatusServer{stream}) |
| 114 |
} |
| 115 |
|
| 116 |
type ClientStatusDiscoveryService_StreamClientStatusServer interface { |
| 117 |
Send(*ClientStatusResponse) error |
| 118 |
Recv() (*ClientStatusRequest, error) |
| 119 |
grpc.ServerStream |
| 120 |
} |
| 121 |
|
| 122 |
type clientStatusDiscoveryServiceStreamClientStatusServer struct { |
| 123 |
grpc.ServerStream |
| 124 |
} |
| 125 |
|
| 126 |
func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Send(m *ClientStatusResponse) error { |
| 127 |
return x.ServerStream.SendMsg(m) |
| 128 |
} |
| 129 |
|
| 130 |
func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Recv() (*ClientStatusRequest, error) { |
| 131 |
m := new(ClientStatusRequest) |
| 132 |
if err := x.ServerStream.RecvMsg(m); err != nil { |
| 133 |
return nil, err |
| 134 |
} |
| 135 |
return m, nil |
| 136 |
} |
| 137 |
|
| 138 |
func _ClientStatusDiscoveryService_FetchClientStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 139 |
in := new(ClientStatusRequest) |
| 140 |
if err := dec(in); err != nil { |
| 141 |
return nil, err |
| 142 |
} |
| 143 |
if interceptor == nil { |
| 144 |
return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, in) |
| 145 |
} |
| 146 |
info := &grpc.UnaryServerInfo{ |
| 147 |
Server: srv, |
| 148 |
FullMethod: ClientStatusDiscoveryService_FetchClientStatus_FullMethodName, |
| 149 |
} |
| 150 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 151 |
return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, req.(*ClientStatusRequest)) |
| 152 |
} |
| 153 |
return interceptor(ctx, in, info, handler) |
| 154 |
} |
| 155 |
|
| 156 |
// ClientStatusDiscoveryService_ServiceDesc is the grpc.ServiceDesc for ClientStatusDiscoveryService service. |
| 157 |
// It's only intended for direct use with grpc.RegisterService, |
| 158 |
// and not to be introspected or modified (even as a copy) |
| 159 |
var ClientStatusDiscoveryService_ServiceDesc = grpc.ServiceDesc{ |
| 160 |
ServiceName: "envoy.service.status.v2.ClientStatusDiscoveryService", |
| 161 |
HandlerType: (*ClientStatusDiscoveryServiceServer)(nil), |
| 162 |
Methods: []grpc.MethodDesc{ |
| 163 |
{ |
| 164 |
MethodName: "FetchClientStatus", |
| 165 |
Handler: _ClientStatusDiscoveryService_FetchClientStatus_Handler, |
| 166 |
}, |
| 167 |
}, |
| 168 |
Streams: []grpc.StreamDesc{ |
| 169 |
{ |
| 170 |
StreamName: "StreamClientStatus", |
| 171 |
Handler: _ClientStatusDiscoveryService_StreamClientStatus_Handler, |
| 172 |
ServerStreams: true, |
| 173 |
ClientStreams: true, |
| 174 |
}, |
| 175 |
}, |
| 176 |
Metadata: "envoy/service/status/v2/csds.proto", |
| 177 |
} |