-
Notifications
You must be signed in to change notification settings - Fork 56
/
moc_common_validation.pb.go
225 lines (191 loc) · 8.22 KB
/
moc_common_validation.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: admin/validation/moc_common_validation.proto
package admin
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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.ProtoPackageIsVersion3 // please upgrade the proto package
type ValidationOperation int32
const (
ValidationOperation_VALIDATE ValidationOperation = 0
)
var ValidationOperation_name = map[int32]string{
0: "VALIDATE",
}
var ValidationOperation_value = map[string]int32{
"VALIDATE": 0,
}
func (x ValidationOperation) String() string {
return proto.EnumName(ValidationOperation_name, int32(x))
}
func (ValidationOperation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_7a61d2e744c19ce7, []int{0}
}
type ValidationRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ValidationRequest) Reset() { *m = ValidationRequest{} }
func (m *ValidationRequest) String() string { return proto.CompactTextString(m) }
func (*ValidationRequest) ProtoMessage() {}
func (*ValidationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7a61d2e744c19ce7, []int{0}
}
func (m *ValidationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValidationRequest.Unmarshal(m, b)
}
func (m *ValidationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValidationRequest.Marshal(b, m, deterministic)
}
func (m *ValidationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValidationRequest.Merge(m, src)
}
func (m *ValidationRequest) XXX_Size() int {
return xxx_messageInfo_ValidationRequest.Size(m)
}
func (m *ValidationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ValidationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ValidationRequest proto.InternalMessageInfo
type ValidationResponse struct {
Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ValidationResponse) Reset() { *m = ValidationResponse{} }
func (m *ValidationResponse) String() string { return proto.CompactTextString(m) }
func (*ValidationResponse) ProtoMessage() {}
func (*ValidationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7a61d2e744c19ce7, []int{1}
}
func (m *ValidationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValidationResponse.Unmarshal(m, b)
}
func (m *ValidationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValidationResponse.Marshal(b, m, deterministic)
}
func (m *ValidationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValidationResponse.Merge(m, src)
}
func (m *ValidationResponse) XXX_Size() int {
return xxx_messageInfo_ValidationResponse.Size(m)
}
func (m *ValidationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ValidationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ValidationResponse proto.InternalMessageInfo
func (m *ValidationResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func init() {
proto.RegisterEnum("moc.common.admin.ValidationOperation", ValidationOperation_name, ValidationOperation_value)
proto.RegisterType((*ValidationRequest)(nil), "moc.common.admin.ValidationRequest")
proto.RegisterType((*ValidationResponse)(nil), "moc.common.admin.ValidationResponse")
}
func init() {
proto.RegisterFile("admin/validation/moc_common_validation.proto", fileDescriptor_7a61d2e744c19ce7)
}
var fileDescriptor_7a61d2e744c19ce7 = []byte{
// 221 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x49, 0x4c, 0xc9, 0xcd,
0xcc, 0xd3, 0x2f, 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0xcf, 0xcd, 0x4f,
0x8e, 0x4f, 0xce, 0xcf, 0xcd, 0xcd, 0xcf, 0x8b, 0x47, 0x88, 0xea, 0x15, 0x14, 0xe5, 0x97, 0xe4,
0x0b, 0x09, 0xe4, 0xe6, 0x27, 0xeb, 0x41, 0x24, 0xf5, 0xc0, 0x1a, 0x95, 0x84, 0xb9, 0x04, 0xc3,
0xe0, 0xaa, 0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x94, 0xb4, 0xb8, 0x84, 0x90, 0x05, 0x8b,
0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x85, 0x44, 0xb8, 0x58, 0x5d, 0x8b, 0x8a, 0xf2, 0x8b, 0x24, 0x18,
0x15, 0x18, 0x35, 0x38, 0x83, 0x20, 0x1c, 0x2d, 0x65, 0x2e, 0x61, 0x84, 0x5a, 0xff, 0x82, 0xd4,
0x22, 0x30, 0x43, 0x88, 0x87, 0x8b, 0x23, 0xcc, 0xd1, 0xc7, 0xd3, 0xc5, 0x31, 0xc4, 0x55, 0x80,
0xc1, 0x28, 0x83, 0x8b, 0x1f, 0xa1, 0xc8, 0x31, 0x3d, 0x35, 0xaf, 0x44, 0x28, 0x94, 0x8b, 0xcd,
0x33, 0xaf, 0x2c, 0x3f, 0x3b, 0x55, 0x48, 0x59, 0x0f, 0xdd, 0x55, 0x7a, 0x18, 0x4e, 0x92, 0x52,
0xc1, 0xaf, 0x08, 0xe2, 0x44, 0x25, 0x06, 0x27, 0xed, 0x28, 0xcd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2,
0x24, 0x90, 0x5a, 0xfd, 0xdc, 0xcc, 0xe4, 0xa2, 0xfc, 0xe2, 0xfc, 0xb4, 0x12, 0x50, 0xa8, 0xe8,
0x17, 0x15, 0x24, 0xeb, 0x43, 0x4c, 0xd0, 0x07, 0x9b, 0x90, 0xc4, 0x06, 0x0e, 0x15, 0x63, 0x40,
0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xcc, 0x8e, 0x08, 0x45, 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
// ValidationAgentClient is the client API for ValidationAgent service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ValidationAgentClient interface {
Invoke(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*ValidationResponse, error)
}
type validationAgentClient struct {
cc *grpc.ClientConn
}
func NewValidationAgentClient(cc *grpc.ClientConn) ValidationAgentClient {
return &validationAgentClient{cc}
}
func (c *validationAgentClient) Invoke(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*ValidationResponse, error) {
out := new(ValidationResponse)
err := c.cc.Invoke(ctx, "/moc.common.admin.ValidationAgent/Invoke", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ValidationAgentServer is the server API for ValidationAgent service.
type ValidationAgentServer interface {
Invoke(context.Context, *ValidationRequest) (*ValidationResponse, error)
}
// UnimplementedValidationAgentServer can be embedded to have forward compatible implementations.
type UnimplementedValidationAgentServer struct {
}
func (*UnimplementedValidationAgentServer) Invoke(ctx context.Context, req *ValidationRequest) (*ValidationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
}
func RegisterValidationAgentServer(s *grpc.Server, srv ValidationAgentServer) {
s.RegisterService(&_ValidationAgent_serviceDesc, srv)
}
func _ValidationAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ValidationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ValidationAgentServer).Invoke(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/moc.common.admin.ValidationAgent/Invoke",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ValidationAgentServer).Invoke(ctx, req.(*ValidationRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ValidationAgent_serviceDesc = grpc.ServiceDesc{
ServiceName: "moc.common.admin.ValidationAgent",
HandlerType: (*ValidationAgentServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Invoke",
Handler: _ValidationAgent_Invoke_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "admin/validation/moc_common_validation.proto",
}