forked from berty/berty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbertyreplication.pb.go
130 lines (110 loc) · 5.25 KB
/
bertyreplication.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: bertyreplication.proto
package bertyprotocol
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protocoltypes "berty.tech/berty/v2/go/pkg/protocoltypes"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = proto.Marshal
_ = fmt.Errorf
_ = 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 _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("bertyreplication.proto", fileDescriptor_07ad8506da4f8389) }
var fileDescriptor_07ad8506da4f8389 = []byte{
// 153 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0x4a, 0x2d, 0x2a,
0xa9, 0x2c, 0x4a, 0x2d, 0xc8, 0xc9, 0x4c, 0x4e, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca,
0x2f, 0xc9, 0x17, 0x12, 0x04, 0x8b, 0x43, 0x38, 0xc9, 0xf9, 0x39, 0x7a, 0x65, 0x86, 0x52, 0xc2,
0x30, 0x4e, 0x49, 0x65, 0x41, 0x6a, 0x31, 0x44, 0xca, 0x68, 0x3e, 0x23, 0x97, 0x50, 0x10, 0x42,
0x77, 0x70, 0x6a, 0x51, 0x59, 0x66, 0x72, 0xaa, 0x50, 0x07, 0x23, 0x17, 0x1f, 0x4c, 0x38, 0xd5,
0xbd, 0x28, 0xbf, 0xb4, 0x40, 0xc8, 0x5a, 0x0f, 0xc3, 0x48, 0x3d, 0x4c, 0x9d, 0xa8, 0x9a, 0xf4,
0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0xa4, 0x2c, 0xc9, 0xd3, 0x5c, 0x90, 0x53, 0xe9, 0xa4,
0x1e, 0xa5, 0x0a, 0xd1, 0x5b, 0x92, 0x9a, 0x9c, 0xa1, 0x0f, 0x66, 0xea, 0xa7, 0xe7, 0xeb, 0x17,
0x64, 0xa7, 0x43, 0x38, 0x30, 0x23, 0x93, 0xd8, 0xc0, 0x2c, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff,
0xff, 0x59, 0x67, 0x56, 0xfa, 0x13, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var (
_ context.Context
_ 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
// ReplicationServiceClient is the client API for ReplicationService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ReplicationServiceClient interface {
// ReplicateGroup
ReplicateGroup(ctx context.Context, in *protocoltypes.ReplicationServiceReplicateGroup_Request, opts ...grpc.CallOption) (*protocoltypes.ReplicationServiceReplicateGroup_Reply, error)
}
type replicationServiceClient struct {
cc *grpc.ClientConn
}
func NewReplicationServiceClient(cc *grpc.ClientConn) ReplicationServiceClient {
return &replicationServiceClient{cc}
}
func (c *replicationServiceClient) ReplicateGroup(ctx context.Context, in *protocoltypes.ReplicationServiceReplicateGroup_Request, opts ...grpc.CallOption) (*protocoltypes.ReplicationServiceReplicateGroup_Reply, error) {
out := new(protocoltypes.ReplicationServiceReplicateGroup_Reply)
err := c.cc.Invoke(ctx, "/berty.protocol.v1.ReplicationService/ReplicateGroup", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ReplicationServiceServer is the server API for ReplicationService service.
type ReplicationServiceServer interface {
// ReplicateGroup
ReplicateGroup(context.Context, *protocoltypes.ReplicationServiceReplicateGroup_Request) (*protocoltypes.ReplicationServiceReplicateGroup_Reply, error)
}
// UnimplementedReplicationServiceServer can be embedded to have forward compatible implementations.
type UnimplementedReplicationServiceServer struct {
}
func (*UnimplementedReplicationServiceServer) ReplicateGroup(ctx context.Context, req *protocoltypes.ReplicationServiceReplicateGroup_Request) (*protocoltypes.ReplicationServiceReplicateGroup_Reply, error) {
return nil, status.Errorf(codes.Unimplemented, "method ReplicateGroup not implemented")
}
func RegisterReplicationServiceServer(s *grpc.Server, srv ReplicationServiceServer) {
s.RegisterService(&_ReplicationService_serviceDesc, srv)
}
func _ReplicationService_ReplicateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(protocoltypes.ReplicationServiceReplicateGroup_Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ReplicationServiceServer).ReplicateGroup(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/berty.protocol.v1.ReplicationService/ReplicateGroup",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReplicationServiceServer).ReplicateGroup(ctx, req.(*protocoltypes.ReplicationServiceReplicateGroup_Request))
}
return interceptor(ctx, in, info, handler)
}
var _ReplicationService_serviceDesc = grpc.ServiceDesc{
ServiceName: "berty.protocol.v1.ReplicationService",
HandlerType: (*ReplicationServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ReplicateGroup",
Handler: _ReplicationService_ReplicateGroup_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "bertyreplication.proto",
}