1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: grpc_controller.proto 3 4package plugin 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9 10import ( 11 context "golang.org/x/net/context" 12 grpc "google.golang.org/grpc" 13) 14 15// Reference imports to suppress errors if they are not otherwise used. 16var _ = proto.Marshal 17var _ = fmt.Errorf 18var _ = math.Inf 19 20// This is a compile-time assertion to ensure that this generated file 21// is compatible with the proto package it is being compiled against. 22// A compilation error at this line likely means your copy of the 23// proto package needs to be updated. 24const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 25 26type Empty struct { 27 XXX_NoUnkeyedLiteral struct{} `json:"-"` 28 XXX_unrecognized []byte `json:"-"` 29 XXX_sizecache int32 `json:"-"` 30} 31 32func (m *Empty) Reset() { *m = Empty{} } 33func (m *Empty) String() string { return proto.CompactTextString(m) } 34func (*Empty) ProtoMessage() {} 35func (*Empty) Descriptor() ([]byte, []int) { 36 return fileDescriptor_grpc_controller_08f8296ef6d80436, []int{0} 37} 38func (m *Empty) XXX_Unmarshal(b []byte) error { 39 return xxx_messageInfo_Empty.Unmarshal(m, b) 40} 41func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 42 return xxx_messageInfo_Empty.Marshal(b, m, deterministic) 43} 44func (dst *Empty) XXX_Merge(src proto.Message) { 45 xxx_messageInfo_Empty.Merge(dst, src) 46} 47func (m *Empty) XXX_Size() int { 48 return xxx_messageInfo_Empty.Size(m) 49} 50func (m *Empty) XXX_DiscardUnknown() { 51 xxx_messageInfo_Empty.DiscardUnknown(m) 52} 53 54var xxx_messageInfo_Empty proto.InternalMessageInfo 55 56func init() { 57 proto.RegisterType((*Empty)(nil), "plugin.Empty") 58} 59 60// Reference imports to suppress errors if they are not otherwise used. 61var _ context.Context 62var _ grpc.ClientConn 63 64// This is a compile-time assertion to ensure that this generated file 65// is compatible with the grpc package it is being compiled against. 66const _ = grpc.SupportPackageIsVersion4 67 68// GRPCControllerClient is the client API for GRPCController service. 69// 70// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 71type GRPCControllerClient interface { 72 Shutdown(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) 73} 74 75type gRPCControllerClient struct { 76 cc *grpc.ClientConn 77} 78 79func NewGRPCControllerClient(cc *grpc.ClientConn) GRPCControllerClient { 80 return &gRPCControllerClient{cc} 81} 82 83func (c *gRPCControllerClient) Shutdown(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { 84 out := new(Empty) 85 err := c.cc.Invoke(ctx, "/plugin.GRPCController/Shutdown", in, out, opts...) 86 if err != nil { 87 return nil, err 88 } 89 return out, nil 90} 91 92// GRPCControllerServer is the server API for GRPCController service. 93type GRPCControllerServer interface { 94 Shutdown(context.Context, *Empty) (*Empty, error) 95} 96 97func RegisterGRPCControllerServer(s *grpc.Server, srv GRPCControllerServer) { 98 s.RegisterService(&_GRPCController_serviceDesc, srv) 99} 100 101func _GRPCController_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 102 in := new(Empty) 103 if err := dec(in); err != nil { 104 return nil, err 105 } 106 if interceptor == nil { 107 return srv.(GRPCControllerServer).Shutdown(ctx, in) 108 } 109 info := &grpc.UnaryServerInfo{ 110 Server: srv, 111 FullMethod: "/plugin.GRPCController/Shutdown", 112 } 113 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 114 return srv.(GRPCControllerServer).Shutdown(ctx, req.(*Empty)) 115 } 116 return interceptor(ctx, in, info, handler) 117} 118 119var _GRPCController_serviceDesc = grpc.ServiceDesc{ 120 ServiceName: "plugin.GRPCController", 121 HandlerType: (*GRPCControllerServer)(nil), 122 Methods: []grpc.MethodDesc{ 123 { 124 MethodName: "Shutdown", 125 Handler: _GRPCController_Shutdown_Handler, 126 }, 127 }, 128 Streams: []grpc.StreamDesc{}, 129 Metadata: "grpc_controller.proto", 130} 131 132func init() { 133 proto.RegisterFile("grpc_controller.proto", fileDescriptor_grpc_controller_08f8296ef6d80436) 134} 135 136var fileDescriptor_grpc_controller_08f8296ef6d80436 = []byte{ 137 // 108 bytes of a gzipped FileDescriptorProto 138 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0x2f, 0x2a, 0x48, 139 0x8e, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0xca, 0xcf, 0xc9, 0x49, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 140 0xc9, 0x17, 0x62, 0x2b, 0xc8, 0x29, 0x4d, 0xcf, 0xcc, 0x53, 0x62, 0xe7, 0x62, 0x75, 0xcd, 0x2d, 141 0x28, 0xa9, 0x34, 0xb2, 0xe2, 0xe2, 0x73, 0x0f, 0x0a, 0x70, 0x76, 0x86, 0x2b, 0x14, 0xd2, 0xe0, 142 0xe2, 0x08, 0xce, 0x28, 0x2d, 0x49, 0xc9, 0x2f, 0xcf, 0x13, 0xe2, 0xd5, 0x83, 0xa8, 0xd7, 0x03, 143 0x2b, 0x96, 0x42, 0xe5, 0x3a, 0x71, 0x44, 0x41, 0x8d, 0x4b, 0x62, 0x03, 0x9b, 0x6e, 0x0c, 0x08, 144 0x00, 0x00, 0xff, 0xff, 0xab, 0x7c, 0x27, 0xe5, 0x76, 0x00, 0x00, 0x00, 145} 146