1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package grafeas
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type DeploymentOccurrence_Platform int32
41
42 const (
43
44 DeploymentOccurrence_PLATFORM_UNSPECIFIED DeploymentOccurrence_Platform = 0
45
46 DeploymentOccurrence_GKE DeploymentOccurrence_Platform = 1
47
48 DeploymentOccurrence_FLEX DeploymentOccurrence_Platform = 2
49
50 DeploymentOccurrence_CUSTOM DeploymentOccurrence_Platform = 3
51 )
52
53
54 var (
55 DeploymentOccurrence_Platform_name = map[int32]string{
56 0: "PLATFORM_UNSPECIFIED",
57 1: "GKE",
58 2: "FLEX",
59 3: "CUSTOM",
60 }
61 DeploymentOccurrence_Platform_value = map[string]int32{
62 "PLATFORM_UNSPECIFIED": 0,
63 "GKE": 1,
64 "FLEX": 2,
65 "CUSTOM": 3,
66 }
67 )
68
69 func (x DeploymentOccurrence_Platform) Enum() *DeploymentOccurrence_Platform {
70 p := new(DeploymentOccurrence_Platform)
71 *p = x
72 return p
73 }
74
75 func (x DeploymentOccurrence_Platform) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (DeploymentOccurrence_Platform) Descriptor() protoreflect.EnumDescriptor {
80 return file_grafeas_v1_deployment_proto_enumTypes[0].Descriptor()
81 }
82
83 func (DeploymentOccurrence_Platform) Type() protoreflect.EnumType {
84 return &file_grafeas_v1_deployment_proto_enumTypes[0]
85 }
86
87 func (x DeploymentOccurrence_Platform) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91
92 func (DeploymentOccurrence_Platform) EnumDescriptor() ([]byte, []int) {
93 return file_grafeas_v1_deployment_proto_rawDescGZIP(), []int{1, 0}
94 }
95
96
97 type DeploymentNote struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102
103 ResourceUri []string `protobuf:"bytes,1,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
104 }
105
106 func (x *DeploymentNote) Reset() {
107 *x = DeploymentNote{}
108 if protoimpl.UnsafeEnabled {
109 mi := &file_grafeas_v1_deployment_proto_msgTypes[0]
110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111 ms.StoreMessageInfo(mi)
112 }
113 }
114
115 func (x *DeploymentNote) String() string {
116 return protoimpl.X.MessageStringOf(x)
117 }
118
119 func (*DeploymentNote) ProtoMessage() {}
120
121 func (x *DeploymentNote) ProtoReflect() protoreflect.Message {
122 mi := &file_grafeas_v1_deployment_proto_msgTypes[0]
123 if protoimpl.UnsafeEnabled && x != nil {
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 if ms.LoadMessageInfo() == nil {
126 ms.StoreMessageInfo(mi)
127 }
128 return ms
129 }
130 return mi.MessageOf(x)
131 }
132
133
134 func (*DeploymentNote) Descriptor() ([]byte, []int) {
135 return file_grafeas_v1_deployment_proto_rawDescGZIP(), []int{0}
136 }
137
138 func (x *DeploymentNote) GetResourceUri() []string {
139 if x != nil {
140 return x.ResourceUri
141 }
142 return nil
143 }
144
145
146 type DeploymentOccurrence struct {
147 state protoimpl.MessageState
148 sizeCache protoimpl.SizeCache
149 unknownFields protoimpl.UnknownFields
150
151
152 UserEmail string `protobuf:"bytes,1,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
153
154 DeployTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=deploy_time,json=deployTime,proto3" json:"deploy_time,omitempty"`
155
156 UndeployTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=undeploy_time,json=undeployTime,proto3" json:"undeploy_time,omitempty"`
157
158 Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
159
160 Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
161
162
163 ResourceUri []string `protobuf:"bytes,6,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
164
165 Platform DeploymentOccurrence_Platform `protobuf:"varint,7,opt,name=platform,proto3,enum=grafeas.v1.DeploymentOccurrence_Platform" json:"platform,omitempty"`
166 }
167
168 func (x *DeploymentOccurrence) Reset() {
169 *x = DeploymentOccurrence{}
170 if protoimpl.UnsafeEnabled {
171 mi := &file_grafeas_v1_deployment_proto_msgTypes[1]
172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
173 ms.StoreMessageInfo(mi)
174 }
175 }
176
177 func (x *DeploymentOccurrence) String() string {
178 return protoimpl.X.MessageStringOf(x)
179 }
180
181 func (*DeploymentOccurrence) ProtoMessage() {}
182
183 func (x *DeploymentOccurrence) ProtoReflect() protoreflect.Message {
184 mi := &file_grafeas_v1_deployment_proto_msgTypes[1]
185 if protoimpl.UnsafeEnabled && x != nil {
186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
187 if ms.LoadMessageInfo() == nil {
188 ms.StoreMessageInfo(mi)
189 }
190 return ms
191 }
192 return mi.MessageOf(x)
193 }
194
195
196 func (*DeploymentOccurrence) Descriptor() ([]byte, []int) {
197 return file_grafeas_v1_deployment_proto_rawDescGZIP(), []int{1}
198 }
199
200 func (x *DeploymentOccurrence) GetUserEmail() string {
201 if x != nil {
202 return x.UserEmail
203 }
204 return ""
205 }
206
207 func (x *DeploymentOccurrence) GetDeployTime() *timestamppb.Timestamp {
208 if x != nil {
209 return x.DeployTime
210 }
211 return nil
212 }
213
214 func (x *DeploymentOccurrence) GetUndeployTime() *timestamppb.Timestamp {
215 if x != nil {
216 return x.UndeployTime
217 }
218 return nil
219 }
220
221 func (x *DeploymentOccurrence) GetConfig() string {
222 if x != nil {
223 return x.Config
224 }
225 return ""
226 }
227
228 func (x *DeploymentOccurrence) GetAddress() string {
229 if x != nil {
230 return x.Address
231 }
232 return ""
233 }
234
235 func (x *DeploymentOccurrence) GetResourceUri() []string {
236 if x != nil {
237 return x.ResourceUri
238 }
239 return nil
240 }
241
242 func (x *DeploymentOccurrence) GetPlatform() DeploymentOccurrence_Platform {
243 if x != nil {
244 return x.Platform
245 }
246 return DeploymentOccurrence_PLATFORM_UNSPECIFIED
247 }
248
249 var File_grafeas_v1_deployment_proto protoreflect.FileDescriptor
250
251 var file_grafeas_v1_deployment_proto_rawDesc = []byte{
252 0x0a, 0x1b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x70,
253 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67,
254 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
255 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
256 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x0e, 0x44, 0x65,
257 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c,
258 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x03,
259 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x69, 0x22,
260 0x94, 0x03, 0x0a, 0x14, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x63,
261 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
262 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73,
263 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3b, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f,
264 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
265 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
266 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,
267 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x75, 0x6e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,
268 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
269 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
270 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x75, 0x6e, 0x64, 0x65, 0x70, 0x6c, 0x6f,
271 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
272 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a,
273 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
274 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
275 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x72,
276 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x69, 0x12, 0x45, 0x0a, 0x08, 0x70, 0x6c,
277 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67,
278 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,
279 0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x50,
280 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
281 0x6d, 0x22, 0x43, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x18, 0x0a,
282 0x14, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
283 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x4b, 0x45, 0x10, 0x01,
284 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4c, 0x45, 0x58, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x55,
285 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x03, 0x42, 0x51, 0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61,
286 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
287 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
288 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
289 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66,
290 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
291 0x33,
292 }
293
294 var (
295 file_grafeas_v1_deployment_proto_rawDescOnce sync.Once
296 file_grafeas_v1_deployment_proto_rawDescData = file_grafeas_v1_deployment_proto_rawDesc
297 )
298
299 func file_grafeas_v1_deployment_proto_rawDescGZIP() []byte {
300 file_grafeas_v1_deployment_proto_rawDescOnce.Do(func() {
301 file_grafeas_v1_deployment_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_deployment_proto_rawDescData)
302 })
303 return file_grafeas_v1_deployment_proto_rawDescData
304 }
305
306 var file_grafeas_v1_deployment_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
307 var file_grafeas_v1_deployment_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
308 var file_grafeas_v1_deployment_proto_goTypes = []interface{}{
309 (DeploymentOccurrence_Platform)(0),
310 (*DeploymentNote)(nil),
311 (*DeploymentOccurrence)(nil),
312 (*timestamppb.Timestamp)(nil),
313 }
314 var file_grafeas_v1_deployment_proto_depIdxs = []int32{
315 3,
316 3,
317 0,
318 3,
319 3,
320 3,
321 3,
322 0,
323 }
324
325 func init() { file_grafeas_v1_deployment_proto_init() }
326 func file_grafeas_v1_deployment_proto_init() {
327 if File_grafeas_v1_deployment_proto != nil {
328 return
329 }
330 if !protoimpl.UnsafeEnabled {
331 file_grafeas_v1_deployment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
332 switch v := v.(*DeploymentNote); i {
333 case 0:
334 return &v.state
335 case 1:
336 return &v.sizeCache
337 case 2:
338 return &v.unknownFields
339 default:
340 return nil
341 }
342 }
343 file_grafeas_v1_deployment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
344 switch v := v.(*DeploymentOccurrence); i {
345 case 0:
346 return &v.state
347 case 1:
348 return &v.sizeCache
349 case 2:
350 return &v.unknownFields
351 default:
352 return nil
353 }
354 }
355 }
356 type x struct{}
357 out := protoimpl.TypeBuilder{
358 File: protoimpl.DescBuilder{
359 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
360 RawDescriptor: file_grafeas_v1_deployment_proto_rawDesc,
361 NumEnums: 1,
362 NumMessages: 2,
363 NumExtensions: 0,
364 NumServices: 0,
365 },
366 GoTypes: file_grafeas_v1_deployment_proto_goTypes,
367 DependencyIndexes: file_grafeas_v1_deployment_proto_depIdxs,
368 EnumInfos: file_grafeas_v1_deployment_proto_enumTypes,
369 MessageInfos: file_grafeas_v1_deployment_proto_msgTypes,
370 }.Build()
371 File_grafeas_v1_deployment_proto = out.File
372 file_grafeas_v1_deployment_proto_rawDesc = nil
373 file_grafeas_v1_deployment_proto_goTypes = nil
374 file_grafeas_v1_deployment_proto_depIdxs = nil
375 }
376
View as plain text