1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package monitoringpb
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 emptypb "google.golang.org/protobuf/types/known/emptypb"
35 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
36 )
37
38 const (
39
40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41
42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43 )
44
45
46 type CreateAlertPolicyRequest struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
65
66
67
68 AlertPolicy *AlertPolicy `protobuf:"bytes,2,opt,name=alert_policy,json=alertPolicy,proto3" json:"alert_policy,omitempty"`
69 }
70
71 func (x *CreateAlertPolicyRequest) Reset() {
72 *x = CreateAlertPolicyRequest{}
73 if protoimpl.UnsafeEnabled {
74 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[0]
75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76 ms.StoreMessageInfo(mi)
77 }
78 }
79
80 func (x *CreateAlertPolicyRequest) String() string {
81 return protoimpl.X.MessageStringOf(x)
82 }
83
84 func (*CreateAlertPolicyRequest) ProtoMessage() {}
85
86 func (x *CreateAlertPolicyRequest) ProtoReflect() protoreflect.Message {
87 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[0]
88 if protoimpl.UnsafeEnabled && x != nil {
89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90 if ms.LoadMessageInfo() == nil {
91 ms.StoreMessageInfo(mi)
92 }
93 return ms
94 }
95 return mi.MessageOf(x)
96 }
97
98
99 func (*CreateAlertPolicyRequest) Descriptor() ([]byte, []int) {
100 return file_google_monitoring_v3_alert_service_proto_rawDescGZIP(), []int{0}
101 }
102
103 func (x *CreateAlertPolicyRequest) GetName() string {
104 if x != nil {
105 return x.Name
106 }
107 return ""
108 }
109
110 func (x *CreateAlertPolicyRequest) GetAlertPolicy() *AlertPolicy {
111 if x != nil {
112 return x.AlertPolicy
113 }
114 return nil
115 }
116
117
118 type GetAlertPolicyRequest struct {
119 state protoimpl.MessageState
120 sizeCache protoimpl.SizeCache
121 unknownFields protoimpl.UnknownFields
122
123
124
125
126 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
127 }
128
129 func (x *GetAlertPolicyRequest) Reset() {
130 *x = GetAlertPolicyRequest{}
131 if protoimpl.UnsafeEnabled {
132 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[1]
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 ms.StoreMessageInfo(mi)
135 }
136 }
137
138 func (x *GetAlertPolicyRequest) String() string {
139 return protoimpl.X.MessageStringOf(x)
140 }
141
142 func (*GetAlertPolicyRequest) ProtoMessage() {}
143
144 func (x *GetAlertPolicyRequest) ProtoReflect() protoreflect.Message {
145 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[1]
146 if protoimpl.UnsafeEnabled && x != nil {
147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
148 if ms.LoadMessageInfo() == nil {
149 ms.StoreMessageInfo(mi)
150 }
151 return ms
152 }
153 return mi.MessageOf(x)
154 }
155
156
157 func (*GetAlertPolicyRequest) Descriptor() ([]byte, []int) {
158 return file_google_monitoring_v3_alert_service_proto_rawDescGZIP(), []int{1}
159 }
160
161 func (x *GetAlertPolicyRequest) GetName() string {
162 if x != nil {
163 return x.Name
164 }
165 return ""
166 }
167
168
169 type ListAlertPoliciesRequest struct {
170 state protoimpl.MessageState
171 sizeCache protoimpl.SizeCache
172 unknownFields protoimpl.UnknownFields
173
174
175
176
177
178
179
180
181
182
183
184
185 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
186
187
188
189
190
191 Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
192
193
194
195
196
197
198 OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
199
200 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
201
202
203
204 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
205 }
206
207 func (x *ListAlertPoliciesRequest) Reset() {
208 *x = ListAlertPoliciesRequest{}
209 if protoimpl.UnsafeEnabled {
210 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[2]
211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
212 ms.StoreMessageInfo(mi)
213 }
214 }
215
216 func (x *ListAlertPoliciesRequest) String() string {
217 return protoimpl.X.MessageStringOf(x)
218 }
219
220 func (*ListAlertPoliciesRequest) ProtoMessage() {}
221
222 func (x *ListAlertPoliciesRequest) ProtoReflect() protoreflect.Message {
223 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[2]
224 if protoimpl.UnsafeEnabled && x != nil {
225 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
226 if ms.LoadMessageInfo() == nil {
227 ms.StoreMessageInfo(mi)
228 }
229 return ms
230 }
231 return mi.MessageOf(x)
232 }
233
234
235 func (*ListAlertPoliciesRequest) Descriptor() ([]byte, []int) {
236 return file_google_monitoring_v3_alert_service_proto_rawDescGZIP(), []int{2}
237 }
238
239 func (x *ListAlertPoliciesRequest) GetName() string {
240 if x != nil {
241 return x.Name
242 }
243 return ""
244 }
245
246 func (x *ListAlertPoliciesRequest) GetFilter() string {
247 if x != nil {
248 return x.Filter
249 }
250 return ""
251 }
252
253 func (x *ListAlertPoliciesRequest) GetOrderBy() string {
254 if x != nil {
255 return x.OrderBy
256 }
257 return ""
258 }
259
260 func (x *ListAlertPoliciesRequest) GetPageSize() int32 {
261 if x != nil {
262 return x.PageSize
263 }
264 return 0
265 }
266
267 func (x *ListAlertPoliciesRequest) GetPageToken() string {
268 if x != nil {
269 return x.PageToken
270 }
271 return ""
272 }
273
274
275 type ListAlertPoliciesResponse struct {
276 state protoimpl.MessageState
277 sizeCache protoimpl.SizeCache
278 unknownFields protoimpl.UnknownFields
279
280
281 AlertPolicies []*AlertPolicy `protobuf:"bytes,3,rep,name=alert_policies,json=alertPolicies,proto3" json:"alert_policies,omitempty"`
282
283
284
285 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
286
287
288 TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
289 }
290
291 func (x *ListAlertPoliciesResponse) Reset() {
292 *x = ListAlertPoliciesResponse{}
293 if protoimpl.UnsafeEnabled {
294 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[3]
295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
296 ms.StoreMessageInfo(mi)
297 }
298 }
299
300 func (x *ListAlertPoliciesResponse) String() string {
301 return protoimpl.X.MessageStringOf(x)
302 }
303
304 func (*ListAlertPoliciesResponse) ProtoMessage() {}
305
306 func (x *ListAlertPoliciesResponse) ProtoReflect() protoreflect.Message {
307 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[3]
308 if protoimpl.UnsafeEnabled && x != nil {
309 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
310 if ms.LoadMessageInfo() == nil {
311 ms.StoreMessageInfo(mi)
312 }
313 return ms
314 }
315 return mi.MessageOf(x)
316 }
317
318
319 func (*ListAlertPoliciesResponse) Descriptor() ([]byte, []int) {
320 return file_google_monitoring_v3_alert_service_proto_rawDescGZIP(), []int{3}
321 }
322
323 func (x *ListAlertPoliciesResponse) GetAlertPolicies() []*AlertPolicy {
324 if x != nil {
325 return x.AlertPolicies
326 }
327 return nil
328 }
329
330 func (x *ListAlertPoliciesResponse) GetNextPageToken() string {
331 if x != nil {
332 return x.NextPageToken
333 }
334 return ""
335 }
336
337 func (x *ListAlertPoliciesResponse) GetTotalSize() int32 {
338 if x != nil {
339 return x.TotalSize
340 }
341 return 0
342 }
343
344
345 type UpdateAlertPolicyRequest struct {
346 state protoimpl.MessageState
347 sizeCache protoimpl.SizeCache
348 unknownFields protoimpl.UnknownFields
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
372
373
374
375
376 AlertPolicy *AlertPolicy `protobuf:"bytes,3,opt,name=alert_policy,json=alertPolicy,proto3" json:"alert_policy,omitempty"`
377 }
378
379 func (x *UpdateAlertPolicyRequest) Reset() {
380 *x = UpdateAlertPolicyRequest{}
381 if protoimpl.UnsafeEnabled {
382 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[4]
383 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
384 ms.StoreMessageInfo(mi)
385 }
386 }
387
388 func (x *UpdateAlertPolicyRequest) String() string {
389 return protoimpl.X.MessageStringOf(x)
390 }
391
392 func (*UpdateAlertPolicyRequest) ProtoMessage() {}
393
394 func (x *UpdateAlertPolicyRequest) ProtoReflect() protoreflect.Message {
395 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[4]
396 if protoimpl.UnsafeEnabled && 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
407 func (*UpdateAlertPolicyRequest) Descriptor() ([]byte, []int) {
408 return file_google_monitoring_v3_alert_service_proto_rawDescGZIP(), []int{4}
409 }
410
411 func (x *UpdateAlertPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
412 if x != nil {
413 return x.UpdateMask
414 }
415 return nil
416 }
417
418 func (x *UpdateAlertPolicyRequest) GetAlertPolicy() *AlertPolicy {
419 if x != nil {
420 return x.AlertPolicy
421 }
422 return nil
423 }
424
425
426 type DeleteAlertPolicyRequest struct {
427 state protoimpl.MessageState
428 sizeCache protoimpl.SizeCache
429 unknownFields protoimpl.UnknownFields
430
431
432
433
434
435
436 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
437 }
438
439 func (x *DeleteAlertPolicyRequest) Reset() {
440 *x = DeleteAlertPolicyRequest{}
441 if protoimpl.UnsafeEnabled {
442 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[5]
443 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
444 ms.StoreMessageInfo(mi)
445 }
446 }
447
448 func (x *DeleteAlertPolicyRequest) String() string {
449 return protoimpl.X.MessageStringOf(x)
450 }
451
452 func (*DeleteAlertPolicyRequest) ProtoMessage() {}
453
454 func (x *DeleteAlertPolicyRequest) ProtoReflect() protoreflect.Message {
455 mi := &file_google_monitoring_v3_alert_service_proto_msgTypes[5]
456 if protoimpl.UnsafeEnabled && x != nil {
457 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
458 if ms.LoadMessageInfo() == nil {
459 ms.StoreMessageInfo(mi)
460 }
461 return ms
462 }
463 return mi.MessageOf(x)
464 }
465
466
467 func (*DeleteAlertPolicyRequest) Descriptor() ([]byte, []int) {
468 return file_google_monitoring_v3_alert_service_proto_rawDescGZIP(), []int{5}
469 }
470
471 func (x *DeleteAlertPolicyRequest) GetName() string {
472 if x != nil {
473 return x.Name
474 }
475 return ""
476 }
477
478 var File_google_monitoring_v3_alert_service_proto protoreflect.FileDescriptor
479
480 var file_google_monitoring_v3_alert_service_proto_rawDesc = []byte{
481 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
482 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x72,
483 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6f, 0x6f, 0x67,
484 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
485 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
486 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
487 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
488 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
489 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69,
490 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
491 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72,
492 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69,
493 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e,
494 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
495 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f,
496 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
497 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70,
498 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x01, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
499 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
500 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42,
501 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x12, 0x25, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
502 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
503 0x6f, 0x6d, 0x2f, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04,
504 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x70, 0x6f,
505 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f,
506 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
507 0x33, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0,
508 0x41, 0x02, 0x52, 0x0b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,
509 0x5a, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,
510 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
511 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25,
512 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
513 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50,
514 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xcc, 0x01, 0x0a, 0x18,
515 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
516 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
517 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x12, 0x25,
518 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
519 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50,
520 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66,
521 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c,
522 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18,
523 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x1b,
524 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
525 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
526 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
527 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xac, 0x01, 0x0a, 0x19, 0x4c,
528 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
529 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x61, 0x6c, 0x65, 0x72,
530 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
531 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f,
532 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c,
533 0x69, 0x63, 0x79, 0x52, 0x0d, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,
534 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f,
535 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78,
536 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f,
537 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
538 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x18, 0x55, 0x70,
539 0x64, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
540 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
541 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
542 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69,
543 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,
544 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0c, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c,
545 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
546 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
547 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41,
548 0x02, 0x52, 0x0b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x5d,
549 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c,
550 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61,
551 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27,
552 0x0a, 0x25, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f,
553 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x6c, 0x65, 0x72,
554 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0x9e, 0x08,
555 0x0a, 0x12, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72,
556 0x76, 0x69, 0x63, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65,
557 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f,
558 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
559 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,
560 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x6f, 0x6f,
561 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
562 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,
563 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0xda, 0x41, 0x04,
564 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x76, 0x33, 0x2f,
565 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,
566 0x7d, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12,
567 0x96, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69,
568 0x63, 0x79, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69,
569 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65,
570 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
571 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
572 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69,
573 0x63, 0x79, 0x22, 0x34, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,
574 0x27, 0x12, 0x25, 0x2f, 0x76, 0x33, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,
575 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c,
576 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb5, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65,
577 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e,
578 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69,
579 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72,
580 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
581 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69,
582 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63,
583 0x79, 0x22, 0x4d, 0xda, 0x41, 0x11, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x61, 0x6c, 0x65, 0x72, 0x74,
584 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x0c, 0x61,
585 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x23, 0x2f, 0x76, 0x33,
586 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
587 0x2a, 0x7d, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
588 0x12, 0x91, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74,
589 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
590 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x65,
591 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
592 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
593 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x34,
594 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x2a, 0x25, 0x2f,
595 0x76, 0x33, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
596 0x73, 0x2f, 0x2a, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
597 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xcb, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41,
598 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f,
599 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
600 0x33, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c,
601 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f,
602 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
603 0x33, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x63, 0xda,
604 0x41, 0x18, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2c, 0x61, 0x6c,
605 0x65, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42,
606 0x3a, 0x0c, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x32,
607 0x2f, 0x76, 0x33, 0x2f, 0x7b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
608 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
609 0x2a, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f,
610 0x2a, 0x7d, 0x1a, 0xa9, 0x01, 0xca, 0x41, 0x19, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69,
611 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
612 0x6d, 0xd2, 0x41, 0x89, 0x01, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77,
613 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
614 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66,
615 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e,
616 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61,
617 0x75, 0x74, 0x68, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2c, 0x68,
618 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
619 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6d,
620 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x42, 0xcc,
621 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f,
622 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x42, 0x11, 0x41, 0x6c, 0x65,
623 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
624 0x5a, 0x41, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
625 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67,
626 0x2f, 0x61, 0x70, 0x69, 0x76, 0x33, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f,
627 0x72, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e,
628 0x67, 0x70, 0x62, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f,
629 0x75, 0x64, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x33,
630 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
631 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x33, 0xea, 0x02, 0x1d,
632 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4d,
633 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70,
634 0x72, 0x6f, 0x74, 0x6f, 0x33,
635 }
636
637 var (
638 file_google_monitoring_v3_alert_service_proto_rawDescOnce sync.Once
639 file_google_monitoring_v3_alert_service_proto_rawDescData = file_google_monitoring_v3_alert_service_proto_rawDesc
640 )
641
642 func file_google_monitoring_v3_alert_service_proto_rawDescGZIP() []byte {
643 file_google_monitoring_v3_alert_service_proto_rawDescOnce.Do(func() {
644 file_google_monitoring_v3_alert_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_monitoring_v3_alert_service_proto_rawDescData)
645 })
646 return file_google_monitoring_v3_alert_service_proto_rawDescData
647 }
648
649 var file_google_monitoring_v3_alert_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
650 var file_google_monitoring_v3_alert_service_proto_goTypes = []interface{}{
651 (*CreateAlertPolicyRequest)(nil),
652 (*GetAlertPolicyRequest)(nil),
653 (*ListAlertPoliciesRequest)(nil),
654 (*ListAlertPoliciesResponse)(nil),
655 (*UpdateAlertPolicyRequest)(nil),
656 (*DeleteAlertPolicyRequest)(nil),
657 (*AlertPolicy)(nil),
658 (*fieldmaskpb.FieldMask)(nil),
659 (*emptypb.Empty)(nil),
660 }
661 var file_google_monitoring_v3_alert_service_proto_depIdxs = []int32{
662 6,
663 6,
664 7,
665 6,
666 2,
667 1,
668 0,
669 5,
670 4,
671 3,
672 6,
673 6,
674 8,
675 6,
676 9,
677 4,
678 4,
679 4,
680 0,
681 }
682
683 func init() { file_google_monitoring_v3_alert_service_proto_init() }
684 func file_google_monitoring_v3_alert_service_proto_init() {
685 if File_google_monitoring_v3_alert_service_proto != nil {
686 return
687 }
688 file_google_monitoring_v3_alert_proto_init()
689 if !protoimpl.UnsafeEnabled {
690 file_google_monitoring_v3_alert_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
691 switch v := v.(*CreateAlertPolicyRequest); i {
692 case 0:
693 return &v.state
694 case 1:
695 return &v.sizeCache
696 case 2:
697 return &v.unknownFields
698 default:
699 return nil
700 }
701 }
702 file_google_monitoring_v3_alert_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
703 switch v := v.(*GetAlertPolicyRequest); i {
704 case 0:
705 return &v.state
706 case 1:
707 return &v.sizeCache
708 case 2:
709 return &v.unknownFields
710 default:
711 return nil
712 }
713 }
714 file_google_monitoring_v3_alert_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
715 switch v := v.(*ListAlertPoliciesRequest); i {
716 case 0:
717 return &v.state
718 case 1:
719 return &v.sizeCache
720 case 2:
721 return &v.unknownFields
722 default:
723 return nil
724 }
725 }
726 file_google_monitoring_v3_alert_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
727 switch v := v.(*ListAlertPoliciesResponse); i {
728 case 0:
729 return &v.state
730 case 1:
731 return &v.sizeCache
732 case 2:
733 return &v.unknownFields
734 default:
735 return nil
736 }
737 }
738 file_google_monitoring_v3_alert_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
739 switch v := v.(*UpdateAlertPolicyRequest); i {
740 case 0:
741 return &v.state
742 case 1:
743 return &v.sizeCache
744 case 2:
745 return &v.unknownFields
746 default:
747 return nil
748 }
749 }
750 file_google_monitoring_v3_alert_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
751 switch v := v.(*DeleteAlertPolicyRequest); i {
752 case 0:
753 return &v.state
754 case 1:
755 return &v.sizeCache
756 case 2:
757 return &v.unknownFields
758 default:
759 return nil
760 }
761 }
762 }
763 type x struct{}
764 out := protoimpl.TypeBuilder{
765 File: protoimpl.DescBuilder{
766 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
767 RawDescriptor: file_google_monitoring_v3_alert_service_proto_rawDesc,
768 NumEnums: 0,
769 NumMessages: 6,
770 NumExtensions: 0,
771 NumServices: 1,
772 },
773 GoTypes: file_google_monitoring_v3_alert_service_proto_goTypes,
774 DependencyIndexes: file_google_monitoring_v3_alert_service_proto_depIdxs,
775 MessageInfos: file_google_monitoring_v3_alert_service_proto_msgTypes,
776 }.Build()
777 File_google_monitoring_v3_alert_service_proto = out.File
778 file_google_monitoring_v3_alert_service_proto_rawDesc = nil
779 file_google_monitoring_v3_alert_service_proto_goTypes = nil
780 file_google_monitoring_v3_alert_service_proto_depIdxs = nil
781 }
782
783
784 var _ context.Context
785 var _ grpc.ClientConnInterface
786
787
788
789 const _ = grpc.SupportPackageIsVersion6
790
791
792
793
794 type AlertPolicyServiceClient interface {
795
796 ListAlertPolicies(ctx context.Context, in *ListAlertPoliciesRequest, opts ...grpc.CallOption) (*ListAlertPoliciesResponse, error)
797
798 GetAlertPolicy(ctx context.Context, in *GetAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
799
800
801
802
803
804 CreateAlertPolicy(ctx context.Context, in *CreateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
805
806
807
808
809
810 DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
811
812
813
814
815
816
817
818
819 UpdateAlertPolicy(ctx context.Context, in *UpdateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
820 }
821
822 type alertPolicyServiceClient struct {
823 cc grpc.ClientConnInterface
824 }
825
826 func NewAlertPolicyServiceClient(cc grpc.ClientConnInterface) AlertPolicyServiceClient {
827 return &alertPolicyServiceClient{cc}
828 }
829
830 func (c *alertPolicyServiceClient) ListAlertPolicies(ctx context.Context, in *ListAlertPoliciesRequest, opts ...grpc.CallOption) (*ListAlertPoliciesResponse, error) {
831 out := new(ListAlertPoliciesResponse)
832 err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/ListAlertPolicies", in, out, opts...)
833 if err != nil {
834 return nil, err
835 }
836 return out, nil
837 }
838
839 func (c *alertPolicyServiceClient) GetAlertPolicy(ctx context.Context, in *GetAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error) {
840 out := new(AlertPolicy)
841 err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/GetAlertPolicy", in, out, opts...)
842 if err != nil {
843 return nil, err
844 }
845 return out, nil
846 }
847
848 func (c *alertPolicyServiceClient) CreateAlertPolicy(ctx context.Context, in *CreateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error) {
849 out := new(AlertPolicy)
850 err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/CreateAlertPolicy", in, out, opts...)
851 if err != nil {
852 return nil, err
853 }
854 return out, nil
855 }
856
857 func (c *alertPolicyServiceClient) DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
858 out := new(emptypb.Empty)
859 err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy", in, out, opts...)
860 if err != nil {
861 return nil, err
862 }
863 return out, nil
864 }
865
866 func (c *alertPolicyServiceClient) UpdateAlertPolicy(ctx context.Context, in *UpdateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error) {
867 out := new(AlertPolicy)
868 err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/UpdateAlertPolicy", in, out, opts...)
869 if err != nil {
870 return nil, err
871 }
872 return out, nil
873 }
874
875
876 type AlertPolicyServiceServer interface {
877
878 ListAlertPolicies(context.Context, *ListAlertPoliciesRequest) (*ListAlertPoliciesResponse, error)
879
880 GetAlertPolicy(context.Context, *GetAlertPolicyRequest) (*AlertPolicy, error)
881
882
883
884
885
886 CreateAlertPolicy(context.Context, *CreateAlertPolicyRequest) (*AlertPolicy, error)
887
888
889
890
891
892 DeleteAlertPolicy(context.Context, *DeleteAlertPolicyRequest) (*emptypb.Empty, error)
893
894
895
896
897
898
899
900
901 UpdateAlertPolicy(context.Context, *UpdateAlertPolicyRequest) (*AlertPolicy, error)
902 }
903
904
905 type UnimplementedAlertPolicyServiceServer struct {
906 }
907
908 func (*UnimplementedAlertPolicyServiceServer) ListAlertPolicies(context.Context, *ListAlertPoliciesRequest) (*ListAlertPoliciesResponse, error) {
909 return nil, status.Errorf(codes.Unimplemented, "method ListAlertPolicies not implemented")
910 }
911 func (*UnimplementedAlertPolicyServiceServer) GetAlertPolicy(context.Context, *GetAlertPolicyRequest) (*AlertPolicy, error) {
912 return nil, status.Errorf(codes.Unimplemented, "method GetAlertPolicy not implemented")
913 }
914 func (*UnimplementedAlertPolicyServiceServer) CreateAlertPolicy(context.Context, *CreateAlertPolicyRequest) (*AlertPolicy, error) {
915 return nil, status.Errorf(codes.Unimplemented, "method CreateAlertPolicy not implemented")
916 }
917 func (*UnimplementedAlertPolicyServiceServer) DeleteAlertPolicy(context.Context, *DeleteAlertPolicyRequest) (*emptypb.Empty, error) {
918 return nil, status.Errorf(codes.Unimplemented, "method DeleteAlertPolicy not implemented")
919 }
920 func (*UnimplementedAlertPolicyServiceServer) UpdateAlertPolicy(context.Context, *UpdateAlertPolicyRequest) (*AlertPolicy, error) {
921 return nil, status.Errorf(codes.Unimplemented, "method UpdateAlertPolicy not implemented")
922 }
923
924 func RegisterAlertPolicyServiceServer(s *grpc.Server, srv AlertPolicyServiceServer) {
925 s.RegisterService(&_AlertPolicyService_serviceDesc, srv)
926 }
927
928 func _AlertPolicyService_ListAlertPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
929 in := new(ListAlertPoliciesRequest)
930 if err := dec(in); err != nil {
931 return nil, err
932 }
933 if interceptor == nil {
934 return srv.(AlertPolicyServiceServer).ListAlertPolicies(ctx, in)
935 }
936 info := &grpc.UnaryServerInfo{
937 Server: srv,
938 FullMethod: "/google.monitoring.v3.AlertPolicyService/ListAlertPolicies",
939 }
940 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
941 return srv.(AlertPolicyServiceServer).ListAlertPolicies(ctx, req.(*ListAlertPoliciesRequest))
942 }
943 return interceptor(ctx, in, info, handler)
944 }
945
946 func _AlertPolicyService_GetAlertPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
947 in := new(GetAlertPolicyRequest)
948 if err := dec(in); err != nil {
949 return nil, err
950 }
951 if interceptor == nil {
952 return srv.(AlertPolicyServiceServer).GetAlertPolicy(ctx, in)
953 }
954 info := &grpc.UnaryServerInfo{
955 Server: srv,
956 FullMethod: "/google.monitoring.v3.AlertPolicyService/GetAlertPolicy",
957 }
958 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
959 return srv.(AlertPolicyServiceServer).GetAlertPolicy(ctx, req.(*GetAlertPolicyRequest))
960 }
961 return interceptor(ctx, in, info, handler)
962 }
963
964 func _AlertPolicyService_CreateAlertPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
965 in := new(CreateAlertPolicyRequest)
966 if err := dec(in); err != nil {
967 return nil, err
968 }
969 if interceptor == nil {
970 return srv.(AlertPolicyServiceServer).CreateAlertPolicy(ctx, in)
971 }
972 info := &grpc.UnaryServerInfo{
973 Server: srv,
974 FullMethod: "/google.monitoring.v3.AlertPolicyService/CreateAlertPolicy",
975 }
976 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
977 return srv.(AlertPolicyServiceServer).CreateAlertPolicy(ctx, req.(*CreateAlertPolicyRequest))
978 }
979 return interceptor(ctx, in, info, handler)
980 }
981
982 func _AlertPolicyService_DeleteAlertPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
983 in := new(DeleteAlertPolicyRequest)
984 if err := dec(in); err != nil {
985 return nil, err
986 }
987 if interceptor == nil {
988 return srv.(AlertPolicyServiceServer).DeleteAlertPolicy(ctx, in)
989 }
990 info := &grpc.UnaryServerInfo{
991 Server: srv,
992 FullMethod: "/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy",
993 }
994 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
995 return srv.(AlertPolicyServiceServer).DeleteAlertPolicy(ctx, req.(*DeleteAlertPolicyRequest))
996 }
997 return interceptor(ctx, in, info, handler)
998 }
999
1000 func _AlertPolicyService_UpdateAlertPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1001 in := new(UpdateAlertPolicyRequest)
1002 if err := dec(in); err != nil {
1003 return nil, err
1004 }
1005 if interceptor == nil {
1006 return srv.(AlertPolicyServiceServer).UpdateAlertPolicy(ctx, in)
1007 }
1008 info := &grpc.UnaryServerInfo{
1009 Server: srv,
1010 FullMethod: "/google.monitoring.v3.AlertPolicyService/UpdateAlertPolicy",
1011 }
1012 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1013 return srv.(AlertPolicyServiceServer).UpdateAlertPolicy(ctx, req.(*UpdateAlertPolicyRequest))
1014 }
1015 return interceptor(ctx, in, info, handler)
1016 }
1017
1018 var _AlertPolicyService_serviceDesc = grpc.ServiceDesc{
1019 ServiceName: "google.monitoring.v3.AlertPolicyService",
1020 HandlerType: (*AlertPolicyServiceServer)(nil),
1021 Methods: []grpc.MethodDesc{
1022 {
1023 MethodName: "ListAlertPolicies",
1024 Handler: _AlertPolicyService_ListAlertPolicies_Handler,
1025 },
1026 {
1027 MethodName: "GetAlertPolicy",
1028 Handler: _AlertPolicyService_GetAlertPolicy_Handler,
1029 },
1030 {
1031 MethodName: "CreateAlertPolicy",
1032 Handler: _AlertPolicyService_CreateAlertPolicy_Handler,
1033 },
1034 {
1035 MethodName: "DeleteAlertPolicy",
1036 Handler: _AlertPolicyService_DeleteAlertPolicy_Handler,
1037 },
1038 {
1039 MethodName: "UpdateAlertPolicy",
1040 Handler: _AlertPolicyService_UpdateAlertPolicy_Handler,
1041 },
1042 },
1043 Streams: []grpc.StreamDesc{},
1044 Metadata: "google/monitoring/v3/alert_service.proto",
1045 }
1046
View as plain text