-
Notifications
You must be signed in to change notification settings - Fork 113
/
service.pb.go
135 lines (117 loc) · 5.32 KB
/
service.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
131
132
133
134
135
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: axelar/vote/v1beta1/service.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
golang_proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_proto.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 _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("axelar/vote/v1beta1/service.proto", fileDescriptor_030f863ebca64631) }
func init() {
golang_proto.RegisterFile("axelar/vote/v1beta1/service.proto", fileDescriptor_030f863ebca64631)
}
var fileDescriptor_030f863ebca64631 = []byte{
// 250 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x8f, 0xb1, 0x4a, 0xc4, 0x40,
0x10, 0x86, 0xb3, 0x22, 0x16, 0xe9,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, 0xf2,
0xdd, 0xa2, 0x54, 0x15, 0x3d, 0x8c, 0xd3, 0x0e, 0x79, 0x49, 0xfe, 0x7e, 0xec, 0x8e, 0x2b, 0xf2,
0x08, 0x6d, 0x5c, 0xc9, 0x4f, 0x35, 0x86, 0x72, 0x67, 0xfd, 0xd0, 0xe9, 0x4f, 0x00, 0x00, 0x00,
0xff, 0xff, 0x4a, 0x2d, 0xf7, 0x4b, 0x5c, 0x01, 0x00, 0x00,
}
// 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
// MsgServiceClient is the client API for MsgService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgServiceClient interface {
Vote(ctx context.Context, in *VoteRequest, opts ...grpc.CallOption) (*VoteResponse, error)
}
type msgServiceClient struct {
cc grpc1.ClientConn
}
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient {
return &msgServiceClient{cc}
}
func (c *msgServiceClient) Vote(ctx context.Context, in *VoteRequest, opts ...grpc.CallOption) (*VoteResponse, error) {
out := new(VoteResponse)
err := c.cc.Invoke(ctx, "/axelar.vote.v1beta1.MsgService/Vote", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServiceServer is the server API for MsgService service.
type MsgServiceServer interface {
Vote(context.Context, *VoteRequest) (*VoteResponse, error)
}
// UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServiceServer struct {
}
func (*UnimplementedMsgServiceServer) Vote(ctx context.Context, req *VoteRequest) (*VoteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Vote not implemented")
}
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer) {
s.RegisterService(&_MsgService_serviceDesc, srv)
}
func _MsgService_Vote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VoteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServiceServer).Vote(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.vote.v1beta1.MsgService/Vote",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServiceServer).Vote(ctx, req.(*VoteRequest))
}
return interceptor(ctx, in, info, handler)
}
var _MsgService_serviceDesc = grpc.ServiceDesc{
ServiceName: "axelar.vote.v1beta1.MsgService",
HandlerType: (*MsgServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Vote",
Handler: _MsgService_Vote_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "axelar/vote/v1beta1/service.proto",
}