-
Notifications
You must be signed in to change notification settings - Fork 1
/
search_app_in_system.pb.go
353 lines (319 loc) · 14.1 KB
/
search_app_in_system.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: search_app_in_system.proto
package business_instance
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
_ "github.com/mwitkow/go-proto-validators"
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
//
//SearchAppInSystem请求
type SearchAppInSystemRequest struct {
//
//系统的实例ID
SystemInstanceId string `protobuf:"bytes,1,opt,name=systemInstanceId,proto3" json:"systemInstanceId" form:"systemInstanceId"`
//
//页码
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page" form:"page"`
//
//页大小
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
//
//查询条件,与[实例搜索接口]的query字段说明一致
Query *types.Struct `protobuf:"bytes,4,opt,name=query,proto3" json:"query" form:"query"`
//
//过滤的字段列表, 留空代表返回所有字段(true: 表示指定获取字段, false: 表示指定不获取的字段)(支持关系数据的二级jsonPath格式的指定字段如clusters.name)
Fields *types.Struct `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields" form:"fields"`
//
//按字段排序, 留空默认按照实例ID降序排序(1表示升序, -1表示降序)
Sort *types.Struct `protobuf:"bytes,6,opt,name=sort,proto3" json:"sort" form:"sort"`
//
//按照权限过滤(通用实例都有`read`, `update`, `delete`权限控制, 主机实例在通用实例权限基础上有额外的`operate`权限, 应用实例在通用实例权限基础上有额外的`developClusterOperate`, `testClusterOperate`, `prereleaseClusterOperate`, `productionClusterOperate`权限)
Permission []string `protobuf:"bytes,7,rep,name=permission,proto3" json:"permission" form:"permission"`
//
//对于关联的实例数据是否只获取relation_view中指定的属性, 这个字段为true时, 会覆盖fields字段中指定的二级字段设置
OnlyRelationView bool `protobuf:"varint,8,opt,name=only_relation_view,json=onlyRelationView,proto3" json:"only_relation_view" form:"only_relation_view"`
//
//是否只获取与自己有关的那部分数据, 默认为false
OnlyMyInstance bool `protobuf:"varint,9,opt,name=only_my_instance,json=onlyMyInstance,proto3" json:"only_my_instance" form:"only_my_instance"`
//
//是否包含子系统以及子系统的子系统的应用
IncludeSubSystems bool `protobuf:"varint,10,opt,name=include_sub_systems,json=includeSubSystems,proto3" json:"include_sub_systems" form:"include_sub_systems"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchAppInSystemRequest) Reset() { *m = SearchAppInSystemRequest{} }
func (m *SearchAppInSystemRequest) String() string { return proto.CompactTextString(m) }
func (*SearchAppInSystemRequest) ProtoMessage() {}
func (*SearchAppInSystemRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_22482794e0518a21, []int{0}
}
func (m *SearchAppInSystemRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchAppInSystemRequest.Unmarshal(m, b)
}
func (m *SearchAppInSystemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchAppInSystemRequest.Marshal(b, m, deterministic)
}
func (m *SearchAppInSystemRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchAppInSystemRequest.Merge(m, src)
}
func (m *SearchAppInSystemRequest) XXX_Size() int {
return xxx_messageInfo_SearchAppInSystemRequest.Size(m)
}
func (m *SearchAppInSystemRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchAppInSystemRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchAppInSystemRequest proto.InternalMessageInfo
func (m *SearchAppInSystemRequest) GetSystemInstanceId() string {
if m != nil {
return m.SystemInstanceId
}
return ""
}
func (m *SearchAppInSystemRequest) GetPage() int32 {
if m != nil {
return m.Page
}
return 0
}
func (m *SearchAppInSystemRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *SearchAppInSystemRequest) GetQuery() *types.Struct {
if m != nil {
return m.Query
}
return nil
}
func (m *SearchAppInSystemRequest) GetFields() *types.Struct {
if m != nil {
return m.Fields
}
return nil
}
func (m *SearchAppInSystemRequest) GetSort() *types.Struct {
if m != nil {
return m.Sort
}
return nil
}
func (m *SearchAppInSystemRequest) GetPermission() []string {
if m != nil {
return m.Permission
}
return nil
}
func (m *SearchAppInSystemRequest) GetOnlyRelationView() bool {
if m != nil {
return m.OnlyRelationView
}
return false
}
func (m *SearchAppInSystemRequest) GetOnlyMyInstance() bool {
if m != nil {
return m.OnlyMyInstance
}
return false
}
func (m *SearchAppInSystemRequest) GetIncludeSubSystems() bool {
if m != nil {
return m.IncludeSubSystems
}
return false
}
//
//SearchAppInSystem返回
type SearchAppInSystemResponse struct {
//
//total
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total" form:"total"`
//
//page
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page" form:"page"`
//
//page_size
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
//
//实例列表
List []*types.Struct `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchAppInSystemResponse) Reset() { *m = SearchAppInSystemResponse{} }
func (m *SearchAppInSystemResponse) String() string { return proto.CompactTextString(m) }
func (*SearchAppInSystemResponse) ProtoMessage() {}
func (*SearchAppInSystemResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_22482794e0518a21, []int{1}
}
func (m *SearchAppInSystemResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchAppInSystemResponse.Unmarshal(m, b)
}
func (m *SearchAppInSystemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchAppInSystemResponse.Marshal(b, m, deterministic)
}
func (m *SearchAppInSystemResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchAppInSystemResponse.Merge(m, src)
}
func (m *SearchAppInSystemResponse) XXX_Size() int {
return xxx_messageInfo_SearchAppInSystemResponse.Size(m)
}
func (m *SearchAppInSystemResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SearchAppInSystemResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SearchAppInSystemResponse proto.InternalMessageInfo
func (m *SearchAppInSystemResponse) GetTotal() int32 {
if m != nil {
return m.Total
}
return 0
}
func (m *SearchAppInSystemResponse) GetPage() int32 {
if m != nil {
return m.Page
}
return 0
}
func (m *SearchAppInSystemResponse) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *SearchAppInSystemResponse) GetList() []*types.Struct {
if m != nil {
return m.List
}
return nil
}
//
//SearchAppInSystemApi返回
type SearchAppInSystemResponseWrapper 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 *SearchAppInSystemResponse `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 *SearchAppInSystemResponseWrapper) Reset() { *m = SearchAppInSystemResponseWrapper{} }
func (m *SearchAppInSystemResponseWrapper) String() string { return proto.CompactTextString(m) }
func (*SearchAppInSystemResponseWrapper) ProtoMessage() {}
func (*SearchAppInSystemResponseWrapper) Descriptor() ([]byte, []int) {
return fileDescriptor_22482794e0518a21, []int{2}
}
func (m *SearchAppInSystemResponseWrapper) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchAppInSystemResponseWrapper.Unmarshal(m, b)
}
func (m *SearchAppInSystemResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchAppInSystemResponseWrapper.Marshal(b, m, deterministic)
}
func (m *SearchAppInSystemResponseWrapper) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchAppInSystemResponseWrapper.Merge(m, src)
}
func (m *SearchAppInSystemResponseWrapper) XXX_Size() int {
return xxx_messageInfo_SearchAppInSystemResponseWrapper.Size(m)
}
func (m *SearchAppInSystemResponseWrapper) XXX_DiscardUnknown() {
xxx_messageInfo_SearchAppInSystemResponseWrapper.DiscardUnknown(m)
}
var xxx_messageInfo_SearchAppInSystemResponseWrapper proto.InternalMessageInfo
func (m *SearchAppInSystemResponseWrapper) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *SearchAppInSystemResponseWrapper) GetCodeExplain() string {
if m != nil {
return m.CodeExplain
}
return ""
}
func (m *SearchAppInSystemResponseWrapper) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *SearchAppInSystemResponseWrapper) GetData() *SearchAppInSystemResponse {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*SearchAppInSystemRequest)(nil), "business_instance.SearchAppInSystemRequest")
proto.RegisterType((*SearchAppInSystemResponse)(nil), "business_instance.SearchAppInSystemResponse")
proto.RegisterType((*SearchAppInSystemResponseWrapper)(nil), "business_instance.SearchAppInSystemResponseWrapper")
}
func init() { proto.RegisterFile("search_app_in_system.proto", fileDescriptor_22482794e0518a21) }
var fileDescriptor_22482794e0518a21 = []byte{
// 650 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xdf, 0x6b, 0xd3, 0x40,
0x1c, 0x37, 0x5b, 0x3a, 0xd7, 0x9b, 0xce, 0xf6, 0x44, 0x97, 0xd5, 0x1f, 0x09, 0xa7, 0x48, 0x05,
0x9b, 0xaa, 0xc3, 0x9f, 0x0c, 0xc4, 0xc2, 0x1e, 0x86, 0x28, 0x78, 0x05, 0x7d, 0x18, 0x1a, 0xd2,
0xf6, 0x96, 0x1d, 0xa6, 0xb9, 0xec, 0xee, 0xb2, 0xda, 0x89, 0x7f, 0x98, 0xff, 0x4c, 0x04, 0xc1,
0x7f, 0x20, 0xcf, 0x3e, 0x48, 0xbe, 0xc9, 0xd6, 0xb0, 0x6e, 0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