-
Notifications
You must be signed in to change notification settings - Fork 1
/
create.pb.go
381 lines (345 loc) · 15 KB
/
create.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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: create.proto
package subscriber_manager
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
notify "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/notify"
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
//
//PubSubscriberCreate请求
type PubSubscriberCreateRequest struct {
//
//订阅的事件id列表
Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics" form:"topics"`
//
//订阅名称,可以为中文
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
//
//回调url. 处理成功时需要返回 status 2xx
Callback string `protobuf:"bytes,3,opt,name=callback,proto3" json:"callback" form:"callback"`
//
//回调名字服务名。非空时,callback url的域名解析会先经ens
EnsName string `protobuf:"bytes,4,opt,name=ensName,proto3" json:"ensName" form:"ensName"`
//
//retry 为 0 时调用 callback 出错不会重试,否则会无限重试。
Retry int32 `protobuf:"varint,5,opt,name=retry,proto3" json:"retry" form:"retry"`
//
//订阅的事件的版本,隐藏字段,因为_version不会反应关系的修改
TopicVersion int32 `protobuf:"varint,6,opt,name=topicVersion,proto3" json:"topicVersion" form:"topicVersion"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PubSubscriberCreateRequest) Reset() { *m = PubSubscriberCreateRequest{} }
func (m *PubSubscriberCreateRequest) String() string { return proto.CompactTextString(m) }
func (*PubSubscriberCreateRequest) ProtoMessage() {}
func (*PubSubscriberCreateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d26d5dcda09a78, []int{0}
}
func (m *PubSubscriberCreateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PubSubscriberCreateRequest.Unmarshal(m, b)
}
func (m *PubSubscriberCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PubSubscriberCreateRequest.Marshal(b, m, deterministic)
}
func (m *PubSubscriberCreateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PubSubscriberCreateRequest.Merge(m, src)
}
func (m *PubSubscriberCreateRequest) XXX_Size() int {
return xxx_messageInfo_PubSubscriberCreateRequest.Size(m)
}
func (m *PubSubscriberCreateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PubSubscriberCreateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PubSubscriberCreateRequest proto.InternalMessageInfo
func (m *PubSubscriberCreateRequest) GetTopics() []string {
if m != nil {
return m.Topics
}
return nil
}
func (m *PubSubscriberCreateRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PubSubscriberCreateRequest) GetCallback() string {
if m != nil {
return m.Callback
}
return ""
}
func (m *PubSubscriberCreateRequest) GetEnsName() string {
if m != nil {
return m.EnsName
}
return ""
}
func (m *PubSubscriberCreateRequest) GetRetry() int32 {
if m != nil {
return m.Retry
}
return 0
}
func (m *PubSubscriberCreateRequest) GetTopicVersion() int32 {
if m != nil {
return m.TopicVersion
}
return 0
}
//
//PubSubscriberCreate返回
type PubSubscriberCreateResponse struct {
//
//订阅的事件列表
Topics []*notify.Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics" form:"topics"`
//
//订阅ID
InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
//
//订阅名称,可以为中文
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
//
//订阅负责人。如 linus
Admin string `protobuf:"bytes,4,opt,name=admin,proto3" json:"admin" form:"admin"`
//
//回调url. 处理成功时需要返回 status 2xx
Callback string `protobuf:"bytes,5,opt,name=callback,proto3" json:"callback" form:"callback"`
//
//回调名字服务名。非空时,callback url的域名解析会先经ens
EnsName string `protobuf:"bytes,6,opt,name=ensName,proto3" json:"ensName" form:"ensName"`
//
//retry 为 0 时调用 callback 出错不会重试,否则会无限重试。
Retry int32 `protobuf:"varint,7,opt,name=retry,proto3" json:"retry" form:"retry"`
//
//模型修改时间
Mtime string `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
//
//模型版本
XVersion int32 `protobuf:"varint,9,opt,name=_version,json=Version,proto3" json:"_version" form:"_version"`
//
//订阅的事件的版本,隐藏字段,因为_version不会反应关系的修改
TopicVersion int32 `protobuf:"varint,10,opt,name=topicVersion,proto3" json:"topicVersion" form:"topicVersion"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PubSubscriberCreateResponse) Reset() { *m = PubSubscriberCreateResponse{} }
func (m *PubSubscriberCreateResponse) String() string { return proto.CompactTextString(m) }
func (*PubSubscriberCreateResponse) ProtoMessage() {}
func (*PubSubscriberCreateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d26d5dcda09a78, []int{1}
}
func (m *PubSubscriberCreateResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PubSubscriberCreateResponse.Unmarshal(m, b)
}
func (m *PubSubscriberCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PubSubscriberCreateResponse.Marshal(b, m, deterministic)
}
func (m *PubSubscriberCreateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PubSubscriberCreateResponse.Merge(m, src)
}
func (m *PubSubscriberCreateResponse) XXX_Size() int {
return xxx_messageInfo_PubSubscriberCreateResponse.Size(m)
}
func (m *PubSubscriberCreateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PubSubscriberCreateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PubSubscriberCreateResponse proto.InternalMessageInfo
func (m *PubSubscriberCreateResponse) GetTopics() []*notify.Topic {
if m != nil {
return m.Topics
}
return nil
}
func (m *PubSubscriberCreateResponse) GetInstanceId() string {
if m != nil {
return m.InstanceId
}
return ""
}
func (m *PubSubscriberCreateResponse) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PubSubscriberCreateResponse) GetAdmin() string {
if m != nil {
return m.Admin
}
return ""
}
func (m *PubSubscriberCreateResponse) GetCallback() string {
if m != nil {
return m.Callback
}
return ""
}
func (m *PubSubscriberCreateResponse) GetEnsName() string {
if m != nil {
return m.EnsName
}
return ""
}
func (m *PubSubscriberCreateResponse) GetRetry() int32 {
if m != nil {
return m.Retry
}
return 0
}
func (m *PubSubscriberCreateResponse) GetMtime() string {
if m != nil {
return m.Mtime
}
return ""
}
func (m *PubSubscriberCreateResponse) GetXVersion() int32 {
if m != nil {
return m.XVersion
}
return 0
}
func (m *PubSubscriberCreateResponse) GetTopicVersion() int32 {
if m != nil {
return m.TopicVersion
}
return 0
}
//
//PubSubscriberCreateApi返回
type PubSubscriberCreateResponseWrapper struct {
//
//返回码
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
//
//返回码解释
CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
//
//错误详情
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
//
//返回数据
Data *PubSubscriberCreateResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PubSubscriberCreateResponseWrapper) Reset() { *m = PubSubscriberCreateResponseWrapper{} }
func (m *PubSubscriberCreateResponseWrapper) String() string { return proto.CompactTextString(m) }
func (*PubSubscriberCreateResponseWrapper) ProtoMessage() {}
func (*PubSubscriberCreateResponseWrapper) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d26d5dcda09a78, []int{2}
}
func (m *PubSubscriberCreateResponseWrapper) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PubSubscriberCreateResponseWrapper.Unmarshal(m, b)
}
func (m *PubSubscriberCreateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PubSubscriberCreateResponseWrapper.Marshal(b, m, deterministic)
}
func (m *PubSubscriberCreateResponseWrapper) XXX_Merge(src proto.Message) {
xxx_messageInfo_PubSubscriberCreateResponseWrapper.Merge(m, src)
}
func (m *PubSubscriberCreateResponseWrapper) XXX_Size() int {
return xxx_messageInfo_PubSubscriberCreateResponseWrapper.Size(m)
}
func (m *PubSubscriberCreateResponseWrapper) XXX_DiscardUnknown() {
xxx_messageInfo_PubSubscriberCreateResponseWrapper.DiscardUnknown(m)
}
var xxx_messageInfo_PubSubscriberCreateResponseWrapper proto.InternalMessageInfo
func (m *PubSubscriberCreateResponseWrapper) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *PubSubscriberCreateResponseWrapper) GetCodeExplain() string {
if m != nil {
return m.CodeExplain
}
return ""
}
func (m *PubSubscriberCreateResponseWrapper) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *PubSubscriberCreateResponseWrapper) GetData() *PubSubscriberCreateResponse {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*PubSubscriberCreateRequest)(nil), "subscriber_manager.PubSubscriberCreateRequest")
proto.RegisterType((*PubSubscriberCreateResponse)(nil), "subscriber_manager.PubSubscriberCreateResponse")
proto.RegisterType((*PubSubscriberCreateResponseWrapper)(nil), "subscriber_manager.PubSubscriberCreateResponseWrapper")
}
func init() { proto.RegisterFile("create.proto", fileDescriptor_a4d26d5dcda09a78) }
var fileDescriptor_a4d26d5dcda09a78 = []byte{
// 784 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xdd, 0x6e, 0xdb, 0x36,
0x14, 0x86, 0xea, 0xd8, 0x49, 0xe8, 0xf4, 0x4f, 0x05, 0x36, 0x23, 0xbb, 0x90, 0xc7, 0x76, 0x81,
0x34, 0x97, 0x92, 0x7f, 0xb6, 0xa1, 0x71, 0x31, 0x68, 0xcb, 0xb0, 0x8b, 0x02, 0x45, 0x31, 0x68,
0xc1, 0x06, 0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