1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package monitoredres
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 api "google.golang.org/genproto/googleapis/api"
28 label "google.golang.org/genproto/googleapis/api/label"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 structpb "google.golang.org/protobuf/types/known/structpb"
32 )
33
34 const (
35
36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37
38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39 )
40
41
42
43
44
45
46
47
48
49
50
51 type MonitoredResourceDescriptor struct {
52 state protoimpl.MessageState
53 sizeCache protoimpl.SizeCache
54 unknownFields protoimpl.UnknownFields
55
56
57
58
59
60
61
62 Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
63
64
65
66
67
68
69
70
71 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
72
73
74
75
76 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
77
78
79 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
80
81
82
83 Labels []*label.LabelDescriptor `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"`
84
85 LaunchStage api.LaunchStage `protobuf:"varint,7,opt,name=launch_stage,json=launchStage,proto3,enum=google.api.LaunchStage" json:"launch_stage,omitempty"`
86 }
87
88 func (x *MonitoredResourceDescriptor) Reset() {
89 *x = MonitoredResourceDescriptor{}
90 if protoimpl.UnsafeEnabled {
91 mi := &file_google_api_monitored_resource_proto_msgTypes[0]
92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
93 ms.StoreMessageInfo(mi)
94 }
95 }
96
97 func (x *MonitoredResourceDescriptor) String() string {
98 return protoimpl.X.MessageStringOf(x)
99 }
100
101 func (*MonitoredResourceDescriptor) ProtoMessage() {}
102
103 func (x *MonitoredResourceDescriptor) ProtoReflect() protoreflect.Message {
104 mi := &file_google_api_monitored_resource_proto_msgTypes[0]
105 if protoimpl.UnsafeEnabled && x != nil {
106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107 if ms.LoadMessageInfo() == nil {
108 ms.StoreMessageInfo(mi)
109 }
110 return ms
111 }
112 return mi.MessageOf(x)
113 }
114
115
116 func (*MonitoredResourceDescriptor) Descriptor() ([]byte, []int) {
117 return file_google_api_monitored_resource_proto_rawDescGZIP(), []int{0}
118 }
119
120 func (x *MonitoredResourceDescriptor) GetName() string {
121 if x != nil {
122 return x.Name
123 }
124 return ""
125 }
126
127 func (x *MonitoredResourceDescriptor) GetType() string {
128 if x != nil {
129 return x.Type
130 }
131 return ""
132 }
133
134 func (x *MonitoredResourceDescriptor) GetDisplayName() string {
135 if x != nil {
136 return x.DisplayName
137 }
138 return ""
139 }
140
141 func (x *MonitoredResourceDescriptor) GetDescription() string {
142 if x != nil {
143 return x.Description
144 }
145 return ""
146 }
147
148 func (x *MonitoredResourceDescriptor) GetLabels() []*label.LabelDescriptor {
149 if x != nil {
150 return x.Labels
151 }
152 return nil
153 }
154
155 func (x *MonitoredResourceDescriptor) GetLaunchStage() api.LaunchStage {
156 if x != nil {
157 return x.LaunchStage
158 }
159 return api.LaunchStage_LAUNCH_STAGE_UNSPECIFIED
160 }
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178 type MonitoredResource struct {
179 state protoimpl.MessageState
180 sizeCache protoimpl.SizeCache
181 unknownFields protoimpl.UnknownFields
182
183
184
185
186
187
188
189
190 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
191
192
193
194 Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
195 }
196
197 func (x *MonitoredResource) Reset() {
198 *x = MonitoredResource{}
199 if protoimpl.UnsafeEnabled {
200 mi := &file_google_api_monitored_resource_proto_msgTypes[1]
201 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
202 ms.StoreMessageInfo(mi)
203 }
204 }
205
206 func (x *MonitoredResource) String() string {
207 return protoimpl.X.MessageStringOf(x)
208 }
209
210 func (*MonitoredResource) ProtoMessage() {}
211
212 func (x *MonitoredResource) ProtoReflect() protoreflect.Message {
213 mi := &file_google_api_monitored_resource_proto_msgTypes[1]
214 if protoimpl.UnsafeEnabled && x != nil {
215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
216 if ms.LoadMessageInfo() == nil {
217 ms.StoreMessageInfo(mi)
218 }
219 return ms
220 }
221 return mi.MessageOf(x)
222 }
223
224
225 func (*MonitoredResource) Descriptor() ([]byte, []int) {
226 return file_google_api_monitored_resource_proto_rawDescGZIP(), []int{1}
227 }
228
229 func (x *MonitoredResource) GetType() string {
230 if x != nil {
231 return x.Type
232 }
233 return ""
234 }
235
236 func (x *MonitoredResource) GetLabels() map[string]string {
237 if x != nil {
238 return x.Labels
239 }
240 return nil
241 }
242
243
244
245
246
247
248
249 type MonitoredResourceMetadata struct {
250 state protoimpl.MessageState
251 sizeCache protoimpl.SizeCache
252 unknownFields protoimpl.UnknownFields
253
254
255
256
257
258
259
260
261
262
263
264 SystemLabels *structpb.Struct `protobuf:"bytes,1,opt,name=system_labels,json=systemLabels,proto3" json:"system_labels,omitempty"`
265
266 UserLabels map[string]string `protobuf:"bytes,2,rep,name=user_labels,json=userLabels,proto3" json:"user_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
267 }
268
269 func (x *MonitoredResourceMetadata) Reset() {
270 *x = MonitoredResourceMetadata{}
271 if protoimpl.UnsafeEnabled {
272 mi := &file_google_api_monitored_resource_proto_msgTypes[2]
273 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
274 ms.StoreMessageInfo(mi)
275 }
276 }
277
278 func (x *MonitoredResourceMetadata) String() string {
279 return protoimpl.X.MessageStringOf(x)
280 }
281
282 func (*MonitoredResourceMetadata) ProtoMessage() {}
283
284 func (x *MonitoredResourceMetadata) ProtoReflect() protoreflect.Message {
285 mi := &file_google_api_monitored_resource_proto_msgTypes[2]
286 if protoimpl.UnsafeEnabled && x != nil {
287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
288 if ms.LoadMessageInfo() == nil {
289 ms.StoreMessageInfo(mi)
290 }
291 return ms
292 }
293 return mi.MessageOf(x)
294 }
295
296
297 func (*MonitoredResourceMetadata) Descriptor() ([]byte, []int) {
298 return file_google_api_monitored_resource_proto_rawDescGZIP(), []int{2}
299 }
300
301 func (x *MonitoredResourceMetadata) GetSystemLabels() *structpb.Struct {
302 if x != nil {
303 return x.SystemLabels
304 }
305 return nil
306 }
307
308 func (x *MonitoredResourceMetadata) GetUserLabels() map[string]string {
309 if x != nil {
310 return x.UserLabels
311 }
312 return nil
313 }
314
315 var File_google_api_monitored_resource_proto protoreflect.FileDescriptor
316
317 var file_google_api_monitored_resource_proto_rawDesc = []byte{
318 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x6f, 0x6e,
319 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e,
320 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
321 0x69, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61,
322 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
323 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61,
324 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
325 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,
326 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfb, 0x01, 0x0a, 0x1b, 0x4d, 0x6f, 0x6e, 0x69, 0x74,
327 0x6f, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63,
328 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05,
329 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
330 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x21,
331 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
332 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
333 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
334 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
335 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20,
336 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69,
337 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
338 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x6c, 0x61, 0x75, 0x6e,
339 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17,
340 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61, 0x75, 0x6e,
341 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53,
342 0x74, 0x61, 0x67, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
343 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
344 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x41,
345 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29,
346 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x6f, 0x6e, 0x69,
347 0x74, 0x6f, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x4c, 0x61,
348 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c,
349 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
350 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
351 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
352 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf0, 0x01, 0x0a,
353 0x19, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
354 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x79,
355 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
356 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
357 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0c, 0x73, 0x79, 0x73, 0x74,
358 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x56, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72,
359 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e,
360 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74,
361 0x6f, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61,
362 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45,
363 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
364 0x1a, 0x3d, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e,
365 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
366 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
367 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42,
368 0x79, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
369 0x69, 0x42, 0x16, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,
370 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f,
371 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
372 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
373 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64,
374 0x72, 0x65, 0x73, 0x3b, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x72, 0x65, 0x73,
375 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
376 0x6f, 0x33,
377 }
378
379 var (
380 file_google_api_monitored_resource_proto_rawDescOnce sync.Once
381 file_google_api_monitored_resource_proto_rawDescData = file_google_api_monitored_resource_proto_rawDesc
382 )
383
384 func file_google_api_monitored_resource_proto_rawDescGZIP() []byte {
385 file_google_api_monitored_resource_proto_rawDescOnce.Do(func() {
386 file_google_api_monitored_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_monitored_resource_proto_rawDescData)
387 })
388 return file_google_api_monitored_resource_proto_rawDescData
389 }
390
391 var file_google_api_monitored_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
392 var file_google_api_monitored_resource_proto_goTypes = []interface{}{
393 (*MonitoredResourceDescriptor)(nil),
394 (*MonitoredResource)(nil),
395 (*MonitoredResourceMetadata)(nil),
396 nil,
397 nil,
398 (*label.LabelDescriptor)(nil),
399 (api.LaunchStage)(0),
400 (*structpb.Struct)(nil),
401 }
402 var file_google_api_monitored_resource_proto_depIdxs = []int32{
403 5,
404 6,
405 3,
406 7,
407 4,
408 5,
409 5,
410 5,
411 5,
412 0,
413 }
414
415 func init() { file_google_api_monitored_resource_proto_init() }
416 func file_google_api_monitored_resource_proto_init() {
417 if File_google_api_monitored_resource_proto != nil {
418 return
419 }
420 if !protoimpl.UnsafeEnabled {
421 file_google_api_monitored_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
422 switch v := v.(*MonitoredResourceDescriptor); i {
423 case 0:
424 return &v.state
425 case 1:
426 return &v.sizeCache
427 case 2:
428 return &v.unknownFields
429 default:
430 return nil
431 }
432 }
433 file_google_api_monitored_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
434 switch v := v.(*MonitoredResource); i {
435 case 0:
436 return &v.state
437 case 1:
438 return &v.sizeCache
439 case 2:
440 return &v.unknownFields
441 default:
442 return nil
443 }
444 }
445 file_google_api_monitored_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
446 switch v := v.(*MonitoredResourceMetadata); i {
447 case 0:
448 return &v.state
449 case 1:
450 return &v.sizeCache
451 case 2:
452 return &v.unknownFields
453 default:
454 return nil
455 }
456 }
457 }
458 type x struct{}
459 out := protoimpl.TypeBuilder{
460 File: protoimpl.DescBuilder{
461 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
462 RawDescriptor: file_google_api_monitored_resource_proto_rawDesc,
463 NumEnums: 0,
464 NumMessages: 5,
465 NumExtensions: 0,
466 NumServices: 0,
467 },
468 GoTypes: file_google_api_monitored_resource_proto_goTypes,
469 DependencyIndexes: file_google_api_monitored_resource_proto_depIdxs,
470 MessageInfos: file_google_api_monitored_resource_proto_msgTypes,
471 }.Build()
472 File_google_api_monitored_resource_proto = out.File
473 file_google_api_monitored_resource_proto_rawDesc = nil
474 file_google_api_monitored_resource_proto_goTypes = nil
475 file_google_api_monitored_resource_proto_depIdxs = nil
476 }
477
View as plain text