Debian Codegraph @

apphub/apiv1/apphubpb/workload.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/apphub/v1/workload.proto
20
21 package apphubpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // Workload state.
40 type Workload_State int32
41
42 const (
43 // Unspecified state.
44 Workload_STATE_UNSPECIFIED Workload_State = 0
45 // The Workload is being created.
46 Workload_CREATING Workload_State = 1
47 // The Workload is ready.
48 Workload_ACTIVE Workload_State = 2
49 // The Workload is being deleted.
50 Workload_DELETING Workload_State = 3
51 // The underlying compute resources have been deleted.
52 Workload_DETACHED Workload_State = 4
53 )
54
55 // Enum value maps for Workload_State.
56 var (
57 Workload_State_name = map[int32]string{
58 0: "STATE_UNSPECIFIED",
59 1: "CREATING",
60 2: "ACTIVE",
61 3: "DELETING",
62 4: "DETACHED",
63 }
64 Workload_State_value = map[string]int32{
65 "STATE_UNSPECIFIED": 0,
66 "CREATING": 1,
67 "ACTIVE": 2,
68 "DELETING": 3,
69 "DETACHED": 4,
70 }
71 )
72
73 func (x Workload_State) Enum() *Workload_State {
74 p := new(Workload_State)
75 *p = x
76 return p
77 }
78
79 func (x Workload_State) String() string {
80 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
81 }
82
83 func (Workload_State) Descriptor() protoreflect.EnumDescriptor {
84 return file_google_cloud_apphub_v1_workload_proto_enumTypes[0].Descriptor()
85 }
86
87 func (Workload_State) Type() protoreflect.EnumType {
88 return &file_google_cloud_apphub_v1_workload_proto_enumTypes[0]
89 }
90
91 func (x Workload_State) Number() protoreflect.EnumNumber {
92 return protoreflect.EnumNumber(x)
93 }
94
95 // Deprecated: Use Workload_State.Descriptor instead.
96 func (Workload_State) EnumDescriptor() ([]byte, []int) {
97 return file_google_cloud_apphub_v1_workload_proto_rawDescGZIP(), []int{0, 0}
98 }
99
100 // Workload is an App Hub data model that contains a discovered workload, which
101 // represents a binary deployment (such as managed instance groups (MIGs) and
102 // GKE deployments) that performs the smallest logical subset of business
103 // functionality.
104 type Workload struct {
105 state protoimpl.MessageState
106 sizeCache protoimpl.SizeCache
107 unknownFields protoimpl.UnknownFields
108
109 // Identifier. The resource name of the Workload. Format:
110 // `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
111 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
112 // Optional. User-defined name for the Workload.
113 // Can have a maximum length of 63 characters.
114 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
115 // Optional. User-defined description of a Workload.
116 // Can have a maximum length of 2048 characters.
117 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
118 // Output only. Reference of an underlying compute resource represented by the
119 // Workload. These are immutable.
120 WorkloadReference *WorkloadReference `protobuf:"bytes,4,opt,name=workload_reference,json=workloadReference,proto3" json:"workload_reference,omitempty"`
121 // Output only. Properties of an underlying compute resource represented by
122 // the Workload. These are immutable.
123 WorkloadProperties *WorkloadProperties `protobuf:"bytes,5,opt,name=workload_properties,json=workloadProperties,proto3" json:"workload_properties,omitempty"`
124 // Required. Immutable. The resource name of the original discovered workload.
125 DiscoveredWorkload string `protobuf:"bytes,6,opt,name=discovered_workload,json=discoveredWorkload,proto3" json:"discovered_workload,omitempty"`
126 // Optional. Consumer provided attributes.
127 Attributes *Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
128 // Output only. Create time.
129 CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
130 // Output only. Update time.
131 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
132 // Output only. A universally unique identifier (UUID) for the `Workload` in
133 // the UUID4 format.
134 Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"`
135 // Output only. Workload state.
136 State Workload_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.apphub.v1.Workload_State" json:"state,omitempty"`
137 }
138
139 func (x *Workload) Reset() {
140 *x = Workload{}
141 mi := &file_google_cloud_apphub_v1_workload_proto_msgTypes[0]
142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143 ms.StoreMessageInfo(mi)
144 }
145
146 func (x *Workload) String() string {
147 return protoimpl.X.MessageStringOf(x)
148 }
149
150 func (*Workload) ProtoMessage() {}
151
152 func (x *Workload) ProtoReflect() protoreflect.Message {
153 mi := &file_google_cloud_apphub_v1_workload_proto_msgTypes[0]
154 if x != nil {
155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156 if ms.LoadMessageInfo() == nil {
157 ms.StoreMessageInfo(mi)
158 }
159 return ms
160 }
161 return mi.MessageOf(x)
162 }
163
164 // Deprecated: Use Workload.ProtoReflect.Descriptor instead.
165 func (*Workload) Descriptor() ([]byte, []int) {
166 return file_google_cloud_apphub_v1_workload_proto_rawDescGZIP(), []int{0}
167 }
168
169 func (x *Workload) GetName() string {
170 if x != nil {
171 return x.Name
172 }
173 return ""
174 }
175
176 func (x *Workload) GetDisplayName() string {
177 if x != nil {
178 return x.DisplayName
179 }
180 return ""
181 }
182
183 func (x *Workload) GetDescription() string {
184 if x != nil {
185 return x.Description
186 }
187 return ""
188 }
189
190 func (x *Workload) GetWorkloadReference() *WorkloadReference {
191 if x != nil {
192 return x.WorkloadReference
193 }
194 return nil
195 }
196
197 func (x *Workload) GetWorkloadProperties() *WorkloadProperties {
198 if x != nil {
199 return x.WorkloadProperties
200 }
201 return nil
202 }
203
204 func (x *Workload) GetDiscoveredWorkload() string {
205 if x != nil {
206 return x.DiscoveredWorkload
207 }
208 return ""
209 }
210
211 func (x *Workload) GetAttributes() *Attributes {
212 if x != nil {
213 return x.Attributes
214 }
215 return nil
216 }
217
218 func (x *Workload) GetCreateTime() *timestamppb.Timestamp {
219 if x != nil {
220 return x.CreateTime
221 }
222 return nil
223 }
224
225 func (x *Workload) GetUpdateTime() *timestamppb.Timestamp {
226 if x != nil {
227 return x.UpdateTime
228 }
229 return nil
230 }
231
232 func (x *Workload) GetUid() string {
233 if x != nil {
234 return x.Uid
235 }
236 return ""
237 }
238
239 func (x *Workload) GetState() Workload_State {
240 if x != nil {
241 return x.State
242 }
243 return Workload_STATE_UNSPECIFIED
244 }
245
246 // Reference of an underlying compute resource represented by the Workload.
247 type WorkloadReference struct {
248 state protoimpl.MessageState
249 sizeCache protoimpl.SizeCache
250 unknownFields protoimpl.UnknownFields
251
252 // Output only. The underlying compute resource uri.
253 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
254 }
255
256 func (x *WorkloadReference) Reset() {
257 *x = WorkloadReference{}
258 mi := &file_google_cloud_apphub_v1_workload_proto_msgTypes[1]
259 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
260 ms.StoreMessageInfo(mi)
261 }
262
263 func (x *WorkloadReference) String() string {
264 return protoimpl.X.MessageStringOf(x)
265 }
266
267 func (*WorkloadReference) ProtoMessage() {}
268
269 func (x *WorkloadReference) ProtoReflect() protoreflect.Message {
270 mi := &file_google_cloud_apphub_v1_workload_proto_msgTypes[1]
271 if x != nil {
272 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
273 if ms.LoadMessageInfo() == nil {
274 ms.StoreMessageInfo(mi)
275 }
276 return ms
277 }
278 return mi.MessageOf(x)
279 }
280
281 // Deprecated: Use WorkloadReference.ProtoReflect.Descriptor instead.
282 func (*WorkloadReference) Descriptor() ([]byte, []int) {
283 return file_google_cloud_apphub_v1_workload_proto_rawDescGZIP(), []int{1}
284 }
285
286 func (x *WorkloadReference) GetUri() string {
287 if x != nil {
288 return x.Uri
289 }
290 return ""
291 }
292
293 // Properties of an underlying compute resource represented by the Workload.
294 type WorkloadProperties struct {
295 state protoimpl.MessageState
296 sizeCache protoimpl.SizeCache
297 unknownFields protoimpl.UnknownFields
298
299 // Output only. The service project identifier that the underlying cloud
300 // resource resides in. Empty for non-cloud resources.
301 GcpProject string `protobuf:"bytes,1,opt,name=gcp_project,json=gcpProject,proto3" json:"gcp_project,omitempty"`
302 // Output only. The location that the underlying compute resource resides in
303 // (for example, us-west1).
304 Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
305 // Output only. The location that the underlying compute resource resides in
306 // if it is zonal (for example, us-west1-a).
307 Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`
308 }
309
310 func (x *WorkloadProperties) Reset() {
311 *x = WorkloadProperties{}
312 mi := &file_google_cloud_apphub_v1_workload_proto_msgTypes[2]
313 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
314 ms.StoreMessageInfo(mi)
315 }
316
317 func (x *WorkloadProperties) String() string {
318 return protoimpl.X.MessageStringOf(x)
319 }
320
321 func (*WorkloadProperties) ProtoMessage() {}
322
323 func (x *WorkloadProperties) ProtoReflect() protoreflect.Message {
324 mi := &file_google_cloud_apphub_v1_workload_proto_msgTypes[2]
325 if x != nil {
326 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
327 if ms.LoadMessageInfo() == nil {
328 ms.StoreMessageInfo(mi)
329 }
330 return ms
331 }
332 return mi.MessageOf(x)
333 }
334
335 // Deprecated: Use WorkloadProperties.ProtoReflect.Descriptor instead.
336 func (*WorkloadProperties) Descriptor() ([]byte, []int) {
337 return file_google_cloud_apphub_v1_workload_proto_rawDescGZIP(), []int{2}
338 }
339
340 func (x *WorkloadProperties) GetGcpProject() string {
341 if x != nil {
342 return x.GcpProject
343 }
344 return ""
345 }
346
347 func (x *WorkloadProperties) GetLocation() string {
348 if x != nil {
349 return x.Location
350 }
351 return ""
352 }
353
354 func (x *WorkloadProperties) GetZone() string {
355 if x != nil {
356 return x.Zone
357 }
358 return ""
359 }
360
361 // DiscoveredWorkload is a binary deployment (such as managed instance groups
362 // (MIGs) and GKE deployments) that performs the smallest logical subset of
363 // business functionality. A discovered workload can be registered to an App Hub
364 // Workload.
365 type DiscoveredWorkload struct {
366 state protoimpl.MessageState
367 sizeCache protoimpl.SizeCache
368 unknownFields protoimpl.UnknownFields
369
370 // Identifier. The resource name of the discovered workload. Format:
371 // `"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"`
372 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
373 // Output only. Reference of an underlying compute resource represented by the
374 // Workload. These are immutable.
375 WorkloadReference *WorkloadReference `protobuf:"bytes,2,opt,name=workload_reference,json=workloadReference,proto3" json:"workload_reference,omitempty"`
376 // Output only. Properties of an underlying compute resource represented by
377 // the Workload. These are immutable.
378 WorkloadProperties *WorkloadProperties `protobuf:"bytes,3,opt,name=workload_properties,json=workloadProperties,proto3" json:"workload_properties,omitempty"`
379 }
380
381 func (x *DiscoveredWorkload) Reset() {
382 *x = DiscoveredWorkload{}
383 mi := &file_google_cloud_apphub_v1_workload_proto_msgTypes[3]
384 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
385 ms.StoreMessageInfo(mi)
386 }
387
388 func (x *DiscoveredWorkload) String() string {
389 return protoimpl.X.MessageStringOf(x)
390 }
391
392 func (*DiscoveredWorkload) ProtoMessage() {}
393
394 func (x *DiscoveredWorkload) ProtoReflect() protoreflect.Message {
395 mi := &file_google_cloud_apphub_v1_workload_proto_msgTypes[3]
396 if x != nil {
397 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
398 if ms.LoadMessageInfo() == nil {
399 ms.StoreMessageInfo(mi)
400 }
401 return ms
402 }
403 return mi.MessageOf(x)
404 }
405
406 // Deprecated: Use DiscoveredWorkload.ProtoReflect.Descriptor instead.
407 func (*DiscoveredWorkload) Descriptor() ([]byte, []int) {
408 return file_google_cloud_apphub_v1_workload_proto_rawDescGZIP(), []int{3}
409 }
410
411 func (x *DiscoveredWorkload) GetName() string {
412 if x != nil {
413 return x.Name
414 }
415 return ""
416 }
417
418 func (x *DiscoveredWorkload) GetWorkloadReference() *WorkloadReference {
419 if x != nil {
420 return x.WorkloadReference
421 }
422 return nil
423 }
424
425 func (x *DiscoveredWorkload) GetWorkloadProperties() *WorkloadProperties {
426 if x != nil {
427 return x.WorkloadProperties
428 }
429 return nil
430 }
431
432 var File_google_cloud_apphub_v1_workload_proto protoreflect.FileDescriptor
433
434 var file_google_cloud_apphub_v1_workload_proto_rawDesc = []byte{
435 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
436 0x70, 0x70, 0x68, 0x75, 0x62, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61,
437 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
438 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x1a,
439 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,
440 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
441 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
442 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67,
443 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
444 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
445 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2f, 0x76, 0x31,
446 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
447 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
448 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
449 0x74, 0x6f, 0x22, 0xb3, 0x07, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12,
450 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
451 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70,
452 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
453 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65,
454 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
455 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
456 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x6c,
457 0x6f, 0x61, 0x64, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20,
458 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
459 0x75, 0x64, 0x2e, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72,
460 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x03,
461 0xe0, 0x41, 0x03, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x66,
462 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x60, 0x0a, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f,
463 0x61, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20,
464 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
465 0x75, 0x64, 0x2e, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72,
466 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x42,
467 0x03, 0xe0, 0x41, 0x03, 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72,
468 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x64, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x63,
469 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x18,
470 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0xfa, 0x41, 0x2a,
471 0x12, 0x28, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
472 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72,
473 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x12, 0x64, 0x69, 0x73, 0x63,
474 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x47,
475 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01,
476 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
477 0x64, 0x2e, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72,
478 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x61, 0x74, 0x74,
479 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,
480 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
481 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
482 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63,
483 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64,
484 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
485 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
486 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
487 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x03, 0x75,
488 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xe0, 0x41, 0x03, 0xe2, 0x8c, 0xcf,
489 0xd7, 0x08, 0x02, 0x08, 0x01, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74,
490 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
491 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e,
492 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x53, 0x74, 0x61, 0x74,
493 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x54, 0x0a,
494 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f,
495 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a,
496 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41,
497 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54,
498 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x54, 0x41, 0x43, 0x48, 0x45,
499 0x44, 0x10, 0x04, 0x3a, 0x92, 0x01, 0xea, 0x41, 0x8e, 0x01, 0x0a, 0x1e, 0x61, 0x70, 0x70, 0x68,
500 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
501 0x6d, 0x2f, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x57, 0x70, 0x72, 0x6f, 0x6a,
502 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c,
503 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
504 0x6f, 0x6e, 0x7d, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
505 0x2f, 0x7b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x77,
506 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f,
507 0x61, 0x64, 0x7d, 0x2a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x32, 0x08,
508 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x2a, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b,
509 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x15, 0x0a,
510 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
511 0x03, 0x75, 0x72, 0x69, 0x22, 0x74, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64,
512 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0b, 0x67, 0x63,
513 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
514 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x67, 0x63, 0x70, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
515 0x12, 0x1f, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
516 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
517 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42,
518 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x22, 0x9b, 0x03, 0x0a, 0x12, 0x44,
519 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61,
520 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
521 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x77, 0x6f,
522 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
523 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
524 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e,
525 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
526 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64,
527 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x60, 0x0a, 0x13, 0x77, 0x6f, 0x72,
528 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73,
529 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
530 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e,
531 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69,
532 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61,
533 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x3a, 0xaa, 0x01, 0xea, 0x41,
534 0xa6, 0x01, 0x0a, 0x28, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
535 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76,
536 0x65, 0x72, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x51, 0x70, 0x72,
537 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d,
538 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61,
539 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64,
540 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x2f, 0x7b, 0x64, 0x69, 0x73, 0x63, 0x6f,
541 0x76, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x7d, 0x2a,
542 0x13, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x6c,
543 0x6f, 0x61, 0x64, 0x73, 0x32, 0x12, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64,
544 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0xaf, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d,
545 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70,
546 0x70, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61,
547 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
548 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x70,
549 0x70, 0x68, 0x75, 0x62, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x70, 0x68, 0x75,
550 0x62, 0x70, 0x62, 0x3b, 0x61, 0x70, 0x70, 0x68, 0x75, 0x62, 0x70, 0x62, 0xaa, 0x02, 0x16, 0x47,
551 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x48,
552 0x75, 0x62, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43,
553 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x70, 0x70, 0x48, 0x75, 0x62, 0x5c, 0x56, 0x31, 0xea, 0x02,
554 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a,
555 0x41, 0x70, 0x70, 0x48, 0x75, 0x62, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
556 0x6f, 0x33,
557 }
558
559 var (
560 file_google_cloud_apphub_v1_workload_proto_rawDescOnce sync.Once
561 file_google_cloud_apphub_v1_workload_proto_rawDescData = file_google_cloud_apphub_v1_workload_proto_rawDesc
562 )
563
564 func file_google_cloud_apphub_v1_workload_proto_rawDescGZIP() []byte {
565 file_google_cloud_apphub_v1_workload_proto_rawDescOnce.Do(func() {
566 file_google_cloud_apphub_v1_workload_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_apphub_v1_workload_proto_rawDescData)
567 })
568 return file_google_cloud_apphub_v1_workload_proto_rawDescData
569 }
570
571 var file_google_cloud_apphub_v1_workload_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
572 var file_google_cloud_apphub_v1_workload_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
573 var file_google_cloud_apphub_v1_workload_proto_goTypes = []any{
574 (Workload_State)(0), // 0: google.cloud.apphub.v1.Workload.State
575 (*Workload)(nil), // 1: google.cloud.apphub.v1.Workload
576 (*WorkloadReference)(nil), // 2: google.cloud.apphub.v1.WorkloadReference
577 (*WorkloadProperties)(nil), // 3: google.cloud.apphub.v1.WorkloadProperties
578 (*DiscoveredWorkload)(nil), // 4: google.cloud.apphub.v1.DiscoveredWorkload
579 (*Attributes)(nil), // 5: google.cloud.apphub.v1.Attributes
580 (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
581 }
582 var file_google_cloud_apphub_v1_workload_proto_depIdxs = []int32{
583 2, // 0: google.cloud.apphub.v1.Workload.workload_reference:type_name -> google.cloud.apphub.v1.WorkloadReference
584 3, // 1: google.cloud.apphub.v1.Workload.workload_properties:type_name -> google.cloud.apphub.v1.WorkloadProperties
585 5, // 2: google.cloud.apphub.v1.Workload.attributes:type_name -> google.cloud.apphub.v1.Attributes
586 6, // 3: google.cloud.apphub.v1.Workload.create_time:type_name -> google.protobuf.Timestamp
587 6, // 4: google.cloud.apphub.v1.Workload.update_time:type_name -> google.protobuf.Timestamp
588 0, // 5: google.cloud.apphub.v1.Workload.state:type_name -> google.cloud.apphub.v1.Workload.State
589 2, // 6: google.cloud.apphub.v1.DiscoveredWorkload.workload_reference:type_name -> google.cloud.apphub.v1.WorkloadReference
590 3, // 7: google.cloud.apphub.v1.DiscoveredWorkload.workload_properties:type_name -> google.cloud.apphub.v1.WorkloadProperties
591 8, // [8:8] is the sub-list for method output_type
592 8, // [8:8] is the sub-list for method input_type
593 8, // [8:8] is the sub-list for extension type_name
594 8, // [8:8] is the sub-list for extension extendee
595 0, // [0:8] is the sub-list for field type_name
596 }
597
598 func init() { file_google_cloud_apphub_v1_workload_proto_init() }
599 func file_google_cloud_apphub_v1_workload_proto_init() {
600 if File_google_cloud_apphub_v1_workload_proto != nil {
601 return
602 }
603 file_google_cloud_apphub_v1_attributes_proto_init()
604 type x struct{}
605 out := protoimpl.TypeBuilder{
606 File: protoimpl.DescBuilder{
607 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
608 RawDescriptor: file_google_cloud_apphub_v1_workload_proto_rawDesc,
609 NumEnums: 1,
610 NumMessages: 4,
611 NumExtensions: 0,
612 NumServices: 0,
613 },
614 GoTypes: file_google_cloud_apphub_v1_workload_proto_goTypes,
615 DependencyIndexes: file_google_cloud_apphub_v1_workload_proto_depIdxs,
616 EnumInfos: file_google_cloud_apphub_v1_workload_proto_enumTypes,
617 MessageInfos: file_google_cloud_apphub_v1_workload_proto_msgTypes,
618 }.Build()
619 File_google_cloud_apphub_v1_workload_proto = out.File
620 file_google_cloud_apphub_v1_workload_proto_rawDesc = nil
621 file_google_cloud_apphub_v1_workload_proto_goTypes = nil
622 file_google_cloud_apphub_v1_workload_proto_depIdxs = nil
623 }