/
service.pb.go
138 lines (120 loc) · 5.67 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
136
137
138
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: assets/queries/asset/service.proto
package asset
import (
context "context"
fmt "fmt"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/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 _ = 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("assets/queries/asset/service.proto", fileDescriptor_4da1d278572d7aae)
}
var fileDescriptor_4da1d278572d7aae = []byte{
// 353 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x3f, 0x4b, 0xf3, 0x50,
0x14, 0xc6, 0x9b, 0x40, 0x3b, 0x84, 0x77, 0xca, 0x18, 0xca, 0x1d, 0xca, 0x3b, 0x54, 0x28, 0xf7,
0x52, 0xff, 0x42, 0xb6, 0x74, 0xd1, 0x25, 0xd0, 0xea, 0x26, 0x01, 0xb9, 0x6d, 0x0f, 0x35, 0x90,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, 0xef, 0x6b, 0xd2, 0x70, 0x7a, 0x13,
0x99, 0xd6, 0x0e, 0x1f, 0xfc, 0x3b, 0xc3, 0x0f, 0x34, 0x2c, 0x4f, 0x30, 0xb4, 0xce, 0x0f, 0x66,
0xb1, 0xbe, 0xcc, 0xc7, 0x74, 0x22, 0x53, 0x16, 0x94, 0x8e, 0x10, 0x5b, 0x98, 0x25, 0xec, 0x8a,
0x6d, 0x3b, 0xf7, 0x83, 0xdd, 0x0c, 0xc2, 0x60, 0x14, 0x3c, 0xd9, 0xdd, 0x60, 0x23, 0x39, 0x34,
0xc9, 0x01, 0x26, 0x8f, 0x4c, 0x72, 0x25, 0x5f, 0x7e, 0x58, 0x23, 0x63, 0x8d, 0xd0, 0x1a, 0x19,
0x2b, 0xca, 0xc2, 0xde, 0xaf, 0x6b, 0x8d, 0x8e, 0x87, 0x83, 0x10, 0x34, 0x9f, 0x72, 0xcd, 0xbf,
0xec, 0xde, 0x06, 0xe6, 0xfb, 0x86, 0xf3, 0x7d, 0x04, 0x7d, 0xdf, 0x90, 0x66, 0x30, 0x6e, 0x55,
0xbf, 0xc1, 0xde, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x62, 0xda, 0x12, 0xc9, 0x02, 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
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
Handle(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
}
type queryClient struct {
cc grpc1.ClientConn
}
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Handle(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) {
out := new(QueryResponse)
err := c.cc.Invoke(ctx, "/assetmantle.modules.assets.queries.asset.Query/Handle", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
type QueryServer interface {
Handle(context.Context, *QueryRequest) (*QueryResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (*UnimplementedQueryServer) Handle(ctx context.Context, req *QueryRequest) (*QueryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Handle not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
}
func _Query_Handle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Handle(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/assetmantle.modules.assets.queries.asset.Query/Handle",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Handle(ctx, req.(*QueryRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "assetmantle.modules.assets.queries.asset.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Handle",
Handler: _Query_Handle_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "assets/queries/asset/service.proto",
}