OSDN Git Service

Thanos did someting
[bytom/vapor.git] / vendor / github.com / hashicorp / go-plugin / examples / bidirectional / proto / kv.pb.go
diff --git a/vendor/github.com/hashicorp/go-plugin/examples/bidirectional/proto/kv.pb.go b/vendor/github.com/hashicorp/go-plugin/examples/bidirectional/proto/kv.pb.go
deleted file mode 100644 (file)
index e71ec61..0000000
+++ /dev/null
@@ -1,350 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// source: kv.proto
-
-/*
-Package proto is a generated protocol buffer package.
-
-It is generated from these files:
-       kv.proto
-
-It has these top-level messages:
-       GetRequest
-       GetResponse
-       PutRequest
-       Empty
-       SumRequest
-       SumResponse
-*/
-package proto
-
-import proto1 "github.com/golang/protobuf/proto"
-import fmt "fmt"
-import math "math"
-
-import (
-       context "golang.org/x/net/context"
-       grpc "google.golang.org/grpc"
-)
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = proto1.Marshal
-var _ = fmt.Errorf
-var _ = math.Inf
-
-// This is a compile-time assertion to ensure that this generated file
-// is compatible with the proto package it is being compiled against.
-// A compilation error at this line likely means your copy of the
-// proto package needs to be updated.
-const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package
-
-type GetRequest struct {
-       Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
-}
-
-func (m *GetRequest) Reset()                    { *m = GetRequest{} }
-func (m *GetRequest) String() string            { return proto1.CompactTextString(m) }
-func (*GetRequest) ProtoMessage()               {}
-func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
-
-func (m *GetRequest) GetKey() string {
-       if m != nil {
-               return m.Key
-       }
-       return ""
-}
-
-type GetResponse struct {
-       Value int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
-}
-
-func (m *GetResponse) Reset()                    { *m = GetResponse{} }
-func (m *GetResponse) String() string            { return proto1.CompactTextString(m) }
-func (*GetResponse) ProtoMessage()               {}
-func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
-
-func (m *GetResponse) GetValue() int64 {
-       if m != nil {
-               return m.Value
-       }
-       return 0
-}
-
-type PutRequest struct {
-       AddServer uint32 `protobuf:"varint,1,opt,name=add_server,json=addServer" json:"add_server,omitempty"`
-       Key       string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
-       Value     int64  `protobuf:"varint,3,opt,name=value" json:"value,omitempty"`
-}
-
-func (m *PutRequest) Reset()                    { *m = PutRequest{} }
-func (m *PutRequest) String() string            { return proto1.CompactTextString(m) }
-func (*PutRequest) ProtoMessage()               {}
-func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
-
-func (m *PutRequest) GetAddServer() uint32 {
-       if m != nil {
-               return m.AddServer
-       }
-       return 0
-}
-
-func (m *PutRequest) GetKey() string {
-       if m != nil {
-               return m.Key
-       }
-       return ""
-}
-
-func (m *PutRequest) GetValue() int64 {
-       if m != nil {
-               return m.Value
-       }
-       return 0
-}
-
-type Empty struct {
-}
-
-func (m *Empty) Reset()                    { *m = Empty{} }
-func (m *Empty) String() string            { return proto1.CompactTextString(m) }
-func (*Empty) ProtoMessage()               {}
-func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
-
-type SumRequest struct {
-       A int64 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
-       B int64 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"`
-}
-
-func (m *SumRequest) Reset()                    { *m = SumRequest{} }
-func (m *SumRequest) String() string            { return proto1.CompactTextString(m) }
-func (*SumRequest) ProtoMessage()               {}
-func (*SumRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
-
-func (m *SumRequest) GetA() int64 {
-       if m != nil {
-               return m.A
-       }
-       return 0
-}
-
-func (m *SumRequest) GetB() int64 {
-       if m != nil {
-               return m.B
-       }
-       return 0
-}
-
-type SumResponse struct {
-       R int64 `protobuf:"varint,1,opt,name=r" json:"r,omitempty"`
-}
-
-func (m *SumResponse) Reset()                    { *m = SumResponse{} }
-func (m *SumResponse) String() string            { return proto1.CompactTextString(m) }
-func (*SumResponse) ProtoMessage()               {}
-func (*SumResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
-
-func (m *SumResponse) GetR() int64 {
-       if m != nil {
-               return m.R
-       }
-       return 0
-}
-
-func init() {
-       proto1.RegisterType((*GetRequest)(nil), "proto.GetRequest")
-       proto1.RegisterType((*GetResponse)(nil), "proto.GetResponse")
-       proto1.RegisterType((*PutRequest)(nil), "proto.PutRequest")
-       proto1.RegisterType((*Empty)(nil), "proto.Empty")
-       proto1.RegisterType((*SumRequest)(nil), "proto.SumRequest")
-       proto1.RegisterType((*SumResponse)(nil), "proto.SumResponse")
-}
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ context.Context
-var _ grpc.ClientConn
-
-// This is a compile-time assertion to ensure that this generated file
-// is compatible with the grpc package it is being compiled against.
-const _ = grpc.SupportPackageIsVersion4
-
-// Client API for Counter service
-
-type CounterClient interface {
-       Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
-       Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*Empty, error)
-}
-
-type counterClient struct {
-       cc *grpc.ClientConn
-}
-
-func NewCounterClient(cc *grpc.ClientConn) CounterClient {
-       return &counterClient{cc}
-}
-
-func (c *counterClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
-       out := new(GetResponse)
-       err := grpc.Invoke(ctx, "/proto.Counter/Get", in, out, c.cc, opts...)
-       if err != nil {
-               return nil, err
-       }
-       return out, nil
-}
-
-func (c *counterClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*Empty, error) {
-       out := new(Empty)
-       err := grpc.Invoke(ctx, "/proto.Counter/Put", in, out, c.cc, opts...)
-       if err != nil {
-               return nil, err
-       }
-       return out, nil
-}
-
-// Server API for Counter service
-
-type CounterServer interface {
-       Get(context.Context, *GetRequest) (*GetResponse, error)
-       Put(context.Context, *PutRequest) (*Empty, error)
-}
-
-func RegisterCounterServer(s *grpc.Server, srv CounterServer) {
-       s.RegisterService(&_Counter_serviceDesc, srv)
-}
-
-func _Counter_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-       in := new(GetRequest)
-       if err := dec(in); err != nil {
-               return nil, err
-       }
-       if interceptor == nil {
-               return srv.(CounterServer).Get(ctx, in)
-       }
-       info := &grpc.UnaryServerInfo{
-               Server:     srv,
-               FullMethod: "/proto.Counter/Get",
-       }
-       handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-               return srv.(CounterServer).Get(ctx, req.(*GetRequest))
-       }
-       return interceptor(ctx, in, info, handler)
-}
-
-func _Counter_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-       in := new(PutRequest)
-       if err := dec(in); err != nil {
-               return nil, err
-       }
-       if interceptor == nil {
-               return srv.(CounterServer).Put(ctx, in)
-       }
-       info := &grpc.UnaryServerInfo{
-               Server:     srv,
-               FullMethod: "/proto.Counter/Put",
-       }
-       handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-               return srv.(CounterServer).Put(ctx, req.(*PutRequest))
-       }
-       return interceptor(ctx, in, info, handler)
-}
-
-var _Counter_serviceDesc = grpc.ServiceDesc{
-       ServiceName: "proto.Counter",
-       HandlerType: (*CounterServer)(nil),
-       Methods: []grpc.MethodDesc{
-               {
-                       MethodName: "Get",
-                       Handler:    _Counter_Get_Handler,
-               },
-               {
-                       MethodName: "Put",
-                       Handler:    _Counter_Put_Handler,
-               },
-       },
-       Streams:  []grpc.StreamDesc{},
-       Metadata: "kv.proto",
-}
-
-// Client API for AddHelper service
-
-type AddHelperClient interface {
-       Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumResponse, error)
-}
-
-type addHelperClient struct {
-       cc *grpc.ClientConn
-}
-
-func NewAddHelperClient(cc *grpc.ClientConn) AddHelperClient {
-       return &addHelperClient{cc}
-}
-
-func (c *addHelperClient) Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumResponse, error) {
-       out := new(SumResponse)
-       err := grpc.Invoke(ctx, "/proto.AddHelper/Sum", in, out, c.cc, opts...)
-       if err != nil {
-               return nil, err
-       }
-       return out, nil
-}
-
-// Server API for AddHelper service
-
-type AddHelperServer interface {
-       Sum(context.Context, *SumRequest) (*SumResponse, error)
-}
-
-func RegisterAddHelperServer(s *grpc.Server, srv AddHelperServer) {
-       s.RegisterService(&_AddHelper_serviceDesc, srv)
-}
-
-func _AddHelper_Sum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-       in := new(SumRequest)
-       if err := dec(in); err != nil {
-               return nil, err
-       }
-       if interceptor == nil {
-               return srv.(AddHelperServer).Sum(ctx, in)
-       }
-       info := &grpc.UnaryServerInfo{
-               Server:     srv,
-               FullMethod: "/proto.AddHelper/Sum",
-       }
-       handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-               return srv.(AddHelperServer).Sum(ctx, req.(*SumRequest))
-       }
-       return interceptor(ctx, in, info, handler)
-}
-
-var _AddHelper_serviceDesc = grpc.ServiceDesc{
-       ServiceName: "proto.AddHelper",
-       HandlerType: (*AddHelperServer)(nil),
-       Methods: []grpc.MethodDesc{
-               {
-                       MethodName: "Sum",
-                       Handler:    _AddHelper_Sum_Handler,
-               },
-       },
-       Streams:  []grpc.StreamDesc{},
-       Metadata: "kv.proto",
-}
-
-func init() { proto1.RegisterFile("kv.proto", fileDescriptor0) }
-
-var fileDescriptor0 = []byte{
-       // 253 bytes of a gzipped FileDescriptorProto
-       0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x4f, 0x4b, 0x03, 0x31,
-       0x10, 0xc5, 0x89, 0x61, 0xad, 0xfb, 0xba, 0x82, 0x06, 0x0f, 0x52, 0x51, 0x24, 0x82, 0xf4, 0x20,
-       0x3d, 0xd4, 0x93, 0x47, 0x11, 0xa9, 0xc7, 0x92, 0xfd, 0x00, 0x25, 0x4b, 0xe6, 0xd4, 0x6e, 0x77,
-       0xcd, 0x26, 0x0b, 0xfd, 0xf6, 0xa5, 0xd9, 0x3f, 0xd9, 0x53, 0x32, 0x2f, 0x2f, 0xbf, 0x37, 0x33,
-       0xb8, 0xd9, 0xb7, 0xab, 0xda, 0x56, 0xae, 0x12, 0x49, 0x38, 0xe4, 0x0b, 0xb0, 0x21, 0xa7, 0xe8,
-       0xdf, 0x53, 0xe3, 0xc4, 0x1d, 0xf8, 0x9e, 0x4e, 0x8f, 0xec, 0x95, 0x2d, 0x53, 0x75, 0xb9, 0xca,
-       0x37, 0xcc, 0xc3, 0x7b, 0x53, 0x57, 0xc7, 0x86, 0xc4, 0x03, 0x92, 0x56, 0x1f, 0x3c, 0x05, 0x0b,
-       0x57, 0x5d, 0x21, 0x73, 0x60, 0xeb, 0x47, 0xc8, 0x33, 0xa0, 0x8d, 0xd9, 0x35, 0x64, 0x5b, 0xb2,
-       0xc1, 0x78, 0xab, 0x52, 0x6d, 0x4c, 0x1e, 0x84, 0x21, 0xe3, 0x6a, 0xcc, 0x88, 0x50, 0x3e, 0x85,
-       0xce, 0x90, 0xfc, 0x96, 0xb5, 0x3b, 0xc9, 0x25, 0x90, 0xfb, 0x72, 0xa0, 0x67, 0x60, 0xba, 0x4f,
-       0x67, 0xfa, 0x52, 0x15, 0x01, 0xc5, 0x15, 0x2b, 0xe4, 0x13, 0xe6, 0xc1, 0xd9, 0x37, 0x9b, 0x81,
-       0xd9, 0xc1, 0x6a, 0xd7, 0x3b, 0xcc, 0x7e, 0x2a, 0x7f, 0x74, 0x64, 0xc5, 0x07, 0xf8, 0x86, 0x9c,
-       0xb8, 0xef, 0x56, 0xb1, 0x8a, 0x0b, 0x58, 0x88, 0xa9, 0xd4, 0x63, 0xde, 0xc1, 0xb7, 0x3e, 0xba,
-       0xe3, 0xa4, 0x8b, 0xac, 0x97, 0x42, 0x9f, 0xeb, 0x2f, 0xa4, 0xdf, 0xc6, 0xfc, 0xd1, 0xa1, 0xee,
-       0x22, 0x72, 0x5f, 0x8e, 0x9f, 0xe2, 0x00, 0x63, 0xc4, 0xa4, 0xd3, 0xe2, 0x3a, 0x48, 0x9f, 0xe7,
-       0x00, 0x00, 0x00, 0xff, 0xff, 0x40, 0xa3, 0x85, 0x07, 0x9f, 0x01, 0x00, 0x00,
-}