github.com/hashicorp/vault/sdk@v0.11.0/helper/pluginutil/multiplexing_grpc.pb.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 // Code generated by protoc-gen-go-grpc. DO NOT EDIT. 5 // versions: 6 // - protoc-gen-go-grpc v1.3.0 7 // - protoc (unknown) 8 // source: sdk/helper/pluginutil/multiplexing.proto 9 10 package pluginutil 11 12 import ( 13 context "context" 14 grpc "google.golang.org/grpc" 15 codes "google.golang.org/grpc/codes" 16 status "google.golang.org/grpc/status" 17 ) 18 19 // This is a compile-time assertion to ensure that this generated file 20 // is compatible with the grpc package it is being compiled against. 21 // Requires gRPC-Go v1.32.0 or later. 22 const _ = grpc.SupportPackageIsVersion7 23 24 const ( 25 PluginMultiplexing_MultiplexingSupport_FullMethodName = "/pluginutil.multiplexing.PluginMultiplexing/MultiplexingSupport" 26 ) 27 28 // PluginMultiplexingClient is the client API for PluginMultiplexing service. 29 // 30 // 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. 31 type PluginMultiplexingClient interface { 32 MultiplexingSupport(ctx context.Context, in *MultiplexingSupportRequest, opts ...grpc.CallOption) (*MultiplexingSupportResponse, error) 33 } 34 35 type pluginMultiplexingClient struct { 36 cc grpc.ClientConnInterface 37 } 38 39 func NewPluginMultiplexingClient(cc grpc.ClientConnInterface) PluginMultiplexingClient { 40 return &pluginMultiplexingClient{cc} 41 } 42 43 func (c *pluginMultiplexingClient) MultiplexingSupport(ctx context.Context, in *MultiplexingSupportRequest, opts ...grpc.CallOption) (*MultiplexingSupportResponse, error) { 44 out := new(MultiplexingSupportResponse) 45 err := c.cc.Invoke(ctx, PluginMultiplexing_MultiplexingSupport_FullMethodName, in, out, opts...) 46 if err != nil { 47 return nil, err 48 } 49 return out, nil 50 } 51 52 // PluginMultiplexingServer is the server API for PluginMultiplexing service. 53 // All implementations must embed UnimplementedPluginMultiplexingServer 54 // for forward compatibility 55 type PluginMultiplexingServer interface { 56 MultiplexingSupport(context.Context, *MultiplexingSupportRequest) (*MultiplexingSupportResponse, error) 57 mustEmbedUnimplementedPluginMultiplexingServer() 58 } 59 60 // UnimplementedPluginMultiplexingServer must be embedded to have forward compatible implementations. 61 type UnimplementedPluginMultiplexingServer struct { 62 } 63 64 func (UnimplementedPluginMultiplexingServer) MultiplexingSupport(context.Context, *MultiplexingSupportRequest) (*MultiplexingSupportResponse, error) { 65 return nil, status.Errorf(codes.Unimplemented, "method MultiplexingSupport not implemented") 66 } 67 func (UnimplementedPluginMultiplexingServer) mustEmbedUnimplementedPluginMultiplexingServer() {} 68 69 // UnsafePluginMultiplexingServer may be embedded to opt out of forward compatibility for this service. 70 // Use of this interface is not recommended, as added methods to PluginMultiplexingServer will 71 // result in compilation errors. 72 type UnsafePluginMultiplexingServer interface { 73 mustEmbedUnimplementedPluginMultiplexingServer() 74 } 75 76 func RegisterPluginMultiplexingServer(s grpc.ServiceRegistrar, srv PluginMultiplexingServer) { 77 s.RegisterService(&PluginMultiplexing_ServiceDesc, srv) 78 } 79 80 func _PluginMultiplexing_MultiplexingSupport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 81 in := new(MultiplexingSupportRequest) 82 if err := dec(in); err != nil { 83 return nil, err 84 } 85 if interceptor == nil { 86 return srv.(PluginMultiplexingServer).MultiplexingSupport(ctx, in) 87 } 88 info := &grpc.UnaryServerInfo{ 89 Server: srv, 90 FullMethod: PluginMultiplexing_MultiplexingSupport_FullMethodName, 91 } 92 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 93 return srv.(PluginMultiplexingServer).MultiplexingSupport(ctx, req.(*MultiplexingSupportRequest)) 94 } 95 return interceptor(ctx, in, info, handler) 96 } 97 98 // PluginMultiplexing_ServiceDesc is the grpc.ServiceDesc for PluginMultiplexing service. 99 // It's only intended for direct use with grpc.RegisterService, 100 // and not to be introspected or modified (even as a copy) 101 var PluginMultiplexing_ServiceDesc = grpc.ServiceDesc{ 102 ServiceName: "pluginutil.multiplexing.PluginMultiplexing", 103 HandlerType: (*PluginMultiplexingServer)(nil), 104 Methods: []grpc.MethodDesc{ 105 { 106 MethodName: "MultiplexingSupport", 107 Handler: _PluginMultiplexing_MultiplexingSupport_Handler, 108 }, 109 }, 110 Streams: []grpc.StreamDesc{}, 111 Metadata: "sdk/helper/pluginutil/multiplexing.proto", 112 }