github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/kv/kvserver/closedts/ctpb/service.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: kv/kvserver/closedts/ctpb/service.proto 3 4 package ctpb 5 6 import proto "github.com/gogo/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 import ( 11 context "context" 12 grpc "google.golang.org/grpc" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = 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. 24 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 25 26 // Reference imports to suppress errors if they are not otherwise used. 27 var _ context.Context 28 var _ grpc.ClientConn 29 30 // This is a compile-time assertion to ensure that this generated file 31 // is compatible with the grpc package it is being compiled against. 32 const _ = grpc.SupportPackageIsVersion4 33 34 // ClosedTimestampClient is the client API for ClosedTimestamp service. 35 // 36 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 37 type ClosedTimestampClient interface { 38 Get(ctx context.Context, opts ...grpc.CallOption) (ClosedTimestamp_GetClient, error) 39 } 40 41 type closedTimestampClient struct { 42 cc *grpc.ClientConn 43 } 44 45 func NewClosedTimestampClient(cc *grpc.ClientConn) ClosedTimestampClient { 46 return &closedTimestampClient{cc} 47 } 48 49 func (c *closedTimestampClient) Get(ctx context.Context, opts ...grpc.CallOption) (ClosedTimestamp_GetClient, error) { 50 stream, err := c.cc.NewStream(ctx, &_ClosedTimestamp_serviceDesc.Streams[0], "/cockroach.kv.kvserver.ctupdate.ClosedTimestamp/Get", opts...) 51 if err != nil { 52 return nil, err 53 } 54 x := &closedTimestampGetClient{stream} 55 return x, nil 56 } 57 58 type ClosedTimestamp_GetClient interface { 59 Send(*Reaction) error 60 Recv() (*Entry, error) 61 grpc.ClientStream 62 } 63 64 type closedTimestampGetClient struct { 65 grpc.ClientStream 66 } 67 68 func (x *closedTimestampGetClient) Send(m *Reaction) error { 69 return x.ClientStream.SendMsg(m) 70 } 71 72 func (x *closedTimestampGetClient) Recv() (*Entry, error) { 73 m := new(Entry) 74 if err := x.ClientStream.RecvMsg(m); err != nil { 75 return nil, err 76 } 77 return m, nil 78 } 79 80 // ClosedTimestampServer is the server API for ClosedTimestamp service. 81 type ClosedTimestampServer interface { 82 Get(ClosedTimestamp_GetServer) error 83 } 84 85 func RegisterClosedTimestampServer(s *grpc.Server, srv ClosedTimestampServer) { 86 s.RegisterService(&_ClosedTimestamp_serviceDesc, srv) 87 } 88 89 func _ClosedTimestamp_Get_Handler(srv interface{}, stream grpc.ServerStream) error { 90 return srv.(ClosedTimestampServer).Get(&closedTimestampGetServer{stream}) 91 } 92 93 type ClosedTimestamp_GetServer interface { 94 Send(*Entry) error 95 Recv() (*Reaction, error) 96 grpc.ServerStream 97 } 98 99 type closedTimestampGetServer struct { 100 grpc.ServerStream 101 } 102 103 func (x *closedTimestampGetServer) Send(m *Entry) error { 104 return x.ServerStream.SendMsg(m) 105 } 106 107 func (x *closedTimestampGetServer) Recv() (*Reaction, error) { 108 m := new(Reaction) 109 if err := x.ServerStream.RecvMsg(m); err != nil { 110 return nil, err 111 } 112 return m, nil 113 } 114 115 var _ClosedTimestamp_serviceDesc = grpc.ServiceDesc{ 116 ServiceName: "cockroach.kv.kvserver.ctupdate.ClosedTimestamp", 117 HandlerType: (*ClosedTimestampServer)(nil), 118 Methods: []grpc.MethodDesc{}, 119 Streams: []grpc.StreamDesc{ 120 { 121 StreamName: "Get", 122 Handler: _ClosedTimestamp_Get_Handler, 123 ServerStreams: true, 124 ClientStreams: true, 125 }, 126 }, 127 Metadata: "kv/kvserver/closedts/ctpb/service.proto", 128 } 129 130 func init() { 131 proto.RegisterFile("kv/kvserver/closedts/ctpb/service.proto", fileDescriptor_service_3759bf1dbe758d6d) 132 } 133 134 var fileDescriptor_service_3759bf1dbe758d6d = []byte{ 135 // 230 bytes of a gzipped FileDescriptorProto 136 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x8f, 0xb1, 0x4a, 0x04, 0x31, 137 0x10, 0x86, 0x13, 0x14, 0x8b, 0x6d, 0x84, 0xc5, 0x6a, 0x91, 0x29, 0x84, 0xd3, 0xab, 0x12, 0xd1, 138 0x37, 0x50, 0xc4, 0x5e, 0xac, 0xc4, 0x26, 0x37, 0x37, 0xac, 0xcb, 0xde, 0xed, 0x84, 0x64, 0x0c, 139 0xf8, 0x16, 0x3e, 0xd6, 0x95, 0x57, 0x5e, 0xa9, 0xd9, 0x17, 0x91, 0xec, 0x69, 0xa9, 0x76, 0x3f, 140 0xff, 0xcc, 0x7c, 0x7c, 0x53, 0x5d, 0xf4, 0xc9, 0xf6, 0x29, 0x52, 0x48, 0x14, 0x2c, 0xae, 0x38, 141 0xd2, 0x52, 0xa2, 0x45, 0xf1, 0x0b, 0x5b, 0xca, 0x0e, 0xc9, 0xf8, 0xc0, 0xc2, 0x35, 0x20, 0x63, 142 0x1f, 0xd8, 0xe1, 0x8b, 0xe9, 0x93, 0xf9, 0x39, 0x31, 0x28, 0xaf, 0x7e, 0xe9, 0x84, 0x9a, 0xd9, 143 0xef, 0x20, 0x1a, 0x24, 0xbc, 0xed, 0x31, 0xcd, 0x49, 0xcb, 0x2d, 0x4f, 0xd1, 0x96, 0xf4, 0xdd, 144 0x9e, 0xb6, 0xcc, 0xed, 0x8a, 0xac, 0xf3, 0x9d, 0x75, 0xc3, 0xc0, 0xe2, 0xa4, 0xe3, 0x21, 0xee, 145 0xa7, 0x57, 0x5c, 0x1d, 0xdf, 0x4e, 0xc0, 0xc7, 0x6e, 0x4d, 0x51, 0xdc, 0xda, 0xd7, 0xcf, 0xd5, 146 0xc1, 0x3d, 0x49, 0x3d, 0x37, 0x7f, 0x5b, 0x99, 0x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