-
Notifications
You must be signed in to change notification settings - Fork 1
/
service.pb.go
218 lines (197 loc) · 8.37 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
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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: service.proto
package container
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
//
//Service 资源定义, 用于 CMDB 存储
type Service struct {
//
//service id,服务端自动生成
InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
//
//service 类型, 只能是 Service
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
//
//service 全称,命名规则 clusterId:kind:namespace:name, 创建之后不能修改
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
//
//命名空间, 创建之后不能修改
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
//
//名称
ResourceName string `protobuf:"bytes,5,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
//
//注解
Annotations *types.Struct `protobuf:"bytes,6,opt,name=annotations,proto3" json:"annotations" form:"annotations"`
//
//标签
Labels *types.Struct `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels" form:"labels"`
//
//Service spec 信息
Spec *ServiceSpec `protobuf:"bytes,8,opt,name=spec,proto3" json:"spec" form:"spec"`
//
//service 定义
ResourceSpec string `protobuf:"bytes,9,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
//
//创建时间
CreationTimestamp string `protobuf:"bytes,10,opt,name=creationTimestamp,proto3" json:"creationTimestamp" form:"creationTimestamp"`
//
//创建者, 服务端自动生成
Creator string `protobuf:"bytes,11,opt,name=creator,proto3" json:"creator" form:"creator"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Service) Reset() { *m = Service{} }
func (m *Service) String() string { return proto.CompactTextString(m) }
func (*Service) ProtoMessage() {}
func (*Service) Descriptor() ([]byte, []int) {
return fileDescriptor_a0b84a42fa06f626, []int{0}
}
func (m *Service) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Service.Unmarshal(m, b)
}
func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Service.Marshal(b, m, deterministic)
}
func (m *Service) XXX_Merge(src proto.Message) {
xxx_messageInfo_Service.Merge(m, src)
}
func (m *Service) XXX_Size() int {
return xxx_messageInfo_Service.Size(m)
}
func (m *Service) XXX_DiscardUnknown() {
xxx_messageInfo_Service.DiscardUnknown(m)
}
var xxx_messageInfo_Service proto.InternalMessageInfo
func (m *Service) GetInstanceId() string {
if m != nil {
return m.InstanceId
}
return ""
}
func (m *Service) GetKind() string {
if m != nil {
return m.Kind
}
return ""
}
func (m *Service) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Service) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *Service) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
func (m *Service) GetAnnotations() *types.Struct {
if m != nil {
return m.Annotations
}
return nil
}
func (m *Service) GetLabels() *types.Struct {
if m != nil {
return m.Labels
}
return nil
}
func (m *Service) GetSpec() *ServiceSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *Service) GetResourceSpec() string {
if m != nil {
return m.ResourceSpec
}
return ""
}
func (m *Service) GetCreationTimestamp() string {
if m != nil {
return m.CreationTimestamp
}
return ""
}
func (m *Service) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func init() {
proto.RegisterType((*Service)(nil), "container.Service")
}
func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) }
var fileDescriptor_a0b84a42fa06f626 = []byte{
// 660 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x6e, 0xd3, 0x30,
0x18, 0x57, 0x61, 0xac, 0xd4, 0x65, 0x63, 0x0b, 0x68, 0x8b, 0xa6, 0x89, 0x8c, 0xac, 0x87, 0x94,
0xe1, 0x24, 0x6d, 0x01, 0xa9, 0xdd, 0xa1, 0xa2, 0x88, 0xc3, 0x2e, 0x48, 0xa4, 0x13, 0x87, 0x99,
0x6c, 0x72, 0x53, 0x2f, 0x44, 0x4b, 0xe2, 0x28, 0x4e, 0x37, 0xb1, 0x75, 0xcf, 0xc1, 0x3b, 0x20,
0xf1, 0x2a, 0x3c, 0x42, 0x90, 0x78, 0x84, 0xdc, 0x91, 0x90, 0x9d, 0xb4, 0xcd, 0x18, 0xe2, 0xc4,
0xc9, 0xdf, 0xe7, 0xdf, 0x1f, 0xfb, 0xfb, 0xc5, 0x0a, 0x58,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