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 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
35 )
36
37 const (
38
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44
45
46 type CreateSnoozeRequest struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51
52
53
54
55
56 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
57
58
59 Snooze *Snooze `protobuf:"bytes,2,opt,name=snooze,proto3" json:"snooze,omitempty"`
60 }
61
62 func (x *CreateSnoozeRequest) Reset() {
63 *x = CreateSnoozeRequest{}
64 if protoimpl.UnsafeEnabled {
65 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[0]
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 ms.StoreMessageInfo(mi)
68 }
69 }
70
71 func (x *CreateSnoozeRequest) String() string {
72 return protoimpl.X.MessageStringOf(x)
73 }
74
75 func (*CreateSnoozeRequest) ProtoMessage() {}
76
77 func (x *CreateSnoozeRequest) ProtoReflect() protoreflect.Message {
78 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[0]
79 if protoimpl.UnsafeEnabled && x != nil {
80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
81 if ms.LoadMessageInfo() == nil {
82 ms.StoreMessageInfo(mi)
83 }
84 return ms
85 }
86 return mi.MessageOf(x)
87 }
88
89
90 func (*CreateSnoozeRequest) Descriptor() ([]byte, []int) {
91 return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{0}
92 }
93
94 func (x *CreateSnoozeRequest) GetParent() string {
95 if x != nil {
96 return x.Parent
97 }
98 return ""
99 }
100
101 func (x *CreateSnoozeRequest) GetSnooze() *Snooze {
102 if x != nil {
103 return x.Snooze
104 }
105 return nil
106 }
107
108
109
110 type ListSnoozesRequest struct {
111 state protoimpl.MessageState
112 sizeCache protoimpl.SizeCache
113 unknownFields protoimpl.UnknownFields
114
115
116
117
118
119
120 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
121
122
123
124
125
126
127
128
129
130
131
132
133 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
134
135
136
137
138
139 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
140
141
142 PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
143 }
144
145 func (x *ListSnoozesRequest) Reset() {
146 *x = ListSnoozesRequest{}
147 if protoimpl.UnsafeEnabled {
148 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[1]
149 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
150 ms.StoreMessageInfo(mi)
151 }
152 }
153
154 func (x *ListSnoozesRequest) String() string {
155 return protoimpl.X.MessageStringOf(x)
156 }
157
158 func (*ListSnoozesRequest) ProtoMessage() {}
159
160 func (x *ListSnoozesRequest) ProtoReflect() protoreflect.Message {
161 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[1]
162 if protoimpl.UnsafeEnabled && x != nil {
163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
164 if ms.LoadMessageInfo() == nil {
165 ms.StoreMessageInfo(mi)
166 }
167 return ms
168 }
169 return mi.MessageOf(x)
170 }
171
172
173 func (*ListSnoozesRequest) Descriptor() ([]byte, []int) {
174 return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{1}
175 }
176
177 func (x *ListSnoozesRequest) GetParent() string {
178 if x != nil {
179 return x.Parent
180 }
181 return ""
182 }
183
184 func (x *ListSnoozesRequest) GetFilter() string {
185 if x != nil {
186 return x.Filter
187 }
188 return ""
189 }
190
191 func (x *ListSnoozesRequest) GetPageSize() int32 {
192 if x != nil {
193 return x.PageSize
194 }
195 return 0
196 }
197
198 func (x *ListSnoozesRequest) GetPageToken() string {
199 if x != nil {
200 return x.PageToken
201 }
202 return ""
203 }
204
205
206
207 type ListSnoozesResponse struct {
208 state protoimpl.MessageState
209 sizeCache protoimpl.SizeCache
210 unknownFields protoimpl.UnknownFields
211
212
213 Snoozes []*Snooze `protobuf:"bytes,1,rep,name=snoozes,proto3" json:"snoozes,omitempty"`
214
215
216 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
217 }
218
219 func (x *ListSnoozesResponse) Reset() {
220 *x = ListSnoozesResponse{}
221 if protoimpl.UnsafeEnabled {
222 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[2]
223 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
224 ms.StoreMessageInfo(mi)
225 }
226 }
227
228 func (x *ListSnoozesResponse) String() string {
229 return protoimpl.X.MessageStringOf(x)
230 }
231
232 func (*ListSnoozesResponse) ProtoMessage() {}
233
234 func (x *ListSnoozesResponse) ProtoReflect() protoreflect.Message {
235 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[2]
236 if protoimpl.UnsafeEnabled && x != nil {
237 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
238 if ms.LoadMessageInfo() == nil {
239 ms.StoreMessageInfo(mi)
240 }
241 return ms
242 }
243 return mi.MessageOf(x)
244 }
245
246
247 func (*ListSnoozesResponse) Descriptor() ([]byte, []int) {
248 return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{2}
249 }
250
251 func (x *ListSnoozesResponse) GetSnoozes() []*Snooze {
252 if x != nil {
253 return x.Snoozes
254 }
255 return nil
256 }
257
258 func (x *ListSnoozesResponse) GetNextPageToken() string {
259 if x != nil {
260 return x.NextPageToken
261 }
262 return ""
263 }
264
265
266
267 type GetSnoozeRequest struct {
268 state protoimpl.MessageState
269 sizeCache protoimpl.SizeCache
270 unknownFields protoimpl.UnknownFields
271
272
273
274
275 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
276 }
277
278 func (x *GetSnoozeRequest) Reset() {
279 *x = GetSnoozeRequest{}
280 if protoimpl.UnsafeEnabled {
281 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[3]
282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
283 ms.StoreMessageInfo(mi)
284 }
285 }
286
287 func (x *GetSnoozeRequest) String() string {
288 return protoimpl.X.MessageStringOf(x)
289 }
290
291 func (*GetSnoozeRequest) ProtoMessage() {}
292
293 func (x *GetSnoozeRequest) ProtoReflect() protoreflect.Message {
294 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[3]
295 if protoimpl.UnsafeEnabled && x != nil {
296 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
297 if ms.LoadMessageInfo() == nil {
298 ms.StoreMessageInfo(mi)
299 }
300 return ms
301 }
302 return mi.MessageOf(x)
303 }
304
305
306 func (*GetSnoozeRequest) Descriptor() ([]byte, []int) {
307 return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{3}
308 }
309
310 func (x *GetSnoozeRequest) GetName() string {
311 if x != nil {
312 return x.Name
313 }
314 return ""
315 }
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330 type UpdateSnoozeRequest struct {
331 state protoimpl.MessageState
332 sizeCache protoimpl.SizeCache
333 unknownFields protoimpl.UnknownFields
334
335
336 Snooze *Snooze `protobuf:"bytes,1,opt,name=snooze,proto3" json:"snooze,omitempty"`
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
360 }
361
362 func (x *UpdateSnoozeRequest) Reset() {
363 *x = UpdateSnoozeRequest{}
364 if protoimpl.UnsafeEnabled {
365 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[4]
366 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
367 ms.StoreMessageInfo(mi)
368 }
369 }
370
371 func (x *UpdateSnoozeRequest) String() string {
372 return protoimpl.X.MessageStringOf(x)
373 }
374
375 func (*UpdateSnoozeRequest) ProtoMessage() {}
376
377 func (x *UpdateSnoozeRequest) ProtoReflect() protoreflect.Message {
378 mi := &file_google_monitoring_v3_snooze_service_proto_msgTypes[4]
379 if protoimpl.UnsafeEnabled && x != nil {
380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
381 if ms.LoadMessageInfo() == nil {
382 ms.StoreMessageInfo(mi)
383 }
384 return ms
385 }
386 return mi.MessageOf(x)
387 }
388
389
390 func (*UpdateSnoozeRequest) Descriptor() ([]byte, []int) {
391 return file_google_monitoring_v3_snooze_service_proto_rawDescGZIP(), []int{4}
392 }
393
394 func (x *UpdateSnoozeRequest) GetSnooze() *Snooze {
395 if x != nil {
396 return x.Snooze
397 }
398 return nil
399 }
400
401 func (x *UpdateSnoozeRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
402 if x != nil {
403 return x.UpdateMask
404 }
405 return nil
406 }
407
408 var File_google_monitoring_v3_snooze_service_proto protoreflect.FileDescriptor
409
410 var file_google_monitoring_v3_snooze_service_proto_rawDesc = []byte{
411 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
412 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x5f, 0x73, 0x65,
413 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6f, 0x6f,
414 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
415 0x33, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
416 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
417 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65,
418 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
419 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
420 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
421 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
422 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e,
423 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x7a,
424 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
425 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d,
426 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, 0x0a, 0x13, 0x43, 0x72,
427 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
428 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
429 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x6d, 0x6f, 0x6e, 0x69, 0x74,
430 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
431 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72,
432 0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x18, 0x02, 0x20,
433 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e,
434 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a,
435 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x22, 0xb9,
436 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x52, 0x65,
437 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,
438 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x6d,
439 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
440 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52,
441 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
442 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69,
443 0x6c, 0x74, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
444 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61,
445 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
446 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
447 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x75, 0x0a, 0x13, 0x4c, 0x69,
448 0x73, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
449 0x65, 0x12, 0x36, 0x0a, 0x07, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
450 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69,
451 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65,
452 0x52, 0x07, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78,
453 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,
454 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
455 0x6e, 0x22, 0x50, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65,
456 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
457 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x6d, 0x6f, 0x6e,
458 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
459 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x04, 0x6e,
460 0x61, 0x6d, 0x65, 0x22, 0x92, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e,
461 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x06, 0x73,
462 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f,
463 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e,
464 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,
465 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
466 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
467 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69,
468 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70,
469 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x32, 0x98, 0x06, 0x0a, 0x0d, 0x53, 0x6e, 0x6f,
470 0x6f, 0x7a, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x98, 0x01, 0x0a, 0x0c, 0x43,
471 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x12, 0x29, 0x2e, 0x67, 0x6f,
472 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e,
473 0x76, 0x33, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52,
474 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
475 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e,
476 0x6f, 0x6f, 0x7a, 0x65, 0x22, 0x3f, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c,
477 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x06, 0x73, 0x6e,
478 0x6f, 0x6f, 0x7a, 0x65, 0x22, 0x1f, 0x2f, 0x76, 0x33, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
479 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6e,
480 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x12, 0x94, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e,
481 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
482 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73,
483 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
484 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
485 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a,
486 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0xda, 0x41, 0x06, 0x70,
487 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x33,
488 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
489 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x12, 0x81, 0x01, 0x0a,
490 0x09, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x6f, 0x6f,
491 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
492 0x33, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
493 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69,
494 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65,
495 0x22, 0x2e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12,
496 0x1f, 0x2f, 0x76, 0x33, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
497 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
498 0x12, 0xa4, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x6f, 0x6f, 0x7a,
499 0x65, 0x12, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74,
500 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,
501 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67,
502 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67,
503 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x22, 0x4b, 0xda, 0x41, 0x12, 0x73,
504 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
505 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x06, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x32,
506 0x26, 0x2f, 0x76, 0x33, 0x2f, 0x7b, 0x73, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x2e, 0x6e, 0x61, 0x6d,
507 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x6f,
508 0x6f, 0x7a, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x1a, 0xa9, 0x01, 0xca, 0x41, 0x19, 0x6d, 0x6f, 0x6e,
509 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
510 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x89, 0x01, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
511 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
512 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d,
513 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f,
514 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
515 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
516 0x69, 0x6e, 0x67, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e,
517 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61,
518 0x75, 0x74, 0x68, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x72,
519 0x65, 0x61, 0x64, 0x42, 0xcd, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
520 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
521 0x42, 0x12, 0x53, 0x6e, 0x6f, 0x6f, 0x7a, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50,
522 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
523 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x6f, 0x6e, 0x69,
524 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x33, 0x2f, 0x76, 0x32, 0x2f,
525 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x6d, 0x6f, 0x6e,
526 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67,
527 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
528 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
529 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67,
530 0x5c, 0x56, 0x33, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c,
531 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x3a,
532 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
533 }
534
535 var (
536 file_google_monitoring_v3_snooze_service_proto_rawDescOnce sync.Once
537 file_google_monitoring_v3_snooze_service_proto_rawDescData = file_google_monitoring_v3_snooze_service_proto_rawDesc
538 )
539
540 func file_google_monitoring_v3_snooze_service_proto_rawDescGZIP() []byte {
541 file_google_monitoring_v3_snooze_service_proto_rawDescOnce.Do(func() {
542 file_google_monitoring_v3_snooze_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_monitoring_v3_snooze_service_proto_rawDescData)
543 })
544 return file_google_monitoring_v3_snooze_service_proto_rawDescData
545 }
546
547 var file_google_monitoring_v3_snooze_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
548 var file_google_monitoring_v3_snooze_service_proto_goTypes = []interface{}{
549 (*CreateSnoozeRequest)(nil),
550 (*ListSnoozesRequest)(nil),
551 (*ListSnoozesResponse)(nil),
552 (*GetSnoozeRequest)(nil),
553 (*UpdateSnoozeRequest)(nil),
554 (*Snooze)(nil),
555 (*fieldmaskpb.FieldMask)(nil),
556 }
557 var file_google_monitoring_v3_snooze_service_proto_depIdxs = []int32{
558 5,
559 5,
560 5,
561 6,
562 0,
563 1,
564 3,
565 4,
566 5,
567 2,
568 5,
569 5,
570 8,
571 4,
572 4,
573 4,
574 0,
575 }
576
577 func init() { file_google_monitoring_v3_snooze_service_proto_init() }
578 func file_google_monitoring_v3_snooze_service_proto_init() {
579 if File_google_monitoring_v3_snooze_service_proto != nil {
580 return
581 }
582 file_google_monitoring_v3_snooze_proto_init()
583 if !protoimpl.UnsafeEnabled {
584 file_google_monitoring_v3_snooze_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
585 switch v := v.(*CreateSnoozeRequest); i {
586 case 0:
587 return &v.state
588 case 1:
589 return &v.sizeCache
590 case 2:
591 return &v.unknownFields
592 default:
593 return nil
594 }
595 }
596 file_google_monitoring_v3_snooze_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
597 switch v := v.(*ListSnoozesRequest); i {
598 case 0:
599 return &v.state
600 case 1:
601 return &v.sizeCache
602 case 2:
603 return &v.unknownFields
604 default:
605 return nil
606 }
607 }
608 file_google_monitoring_v3_snooze_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
609 switch v := v.(*ListSnoozesResponse); i {
610 case 0:
611 return &v.state
612 case 1:
613 return &v.sizeCache
614 case 2:
615 return &v.unknownFields
616 default:
617 return nil
618 }
619 }
620 file_google_monitoring_v3_snooze_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
621 switch v := v.(*GetSnoozeRequest); i {
622 case 0:
623 return &v.state
624 case 1:
625 return &v.sizeCache
626 case 2:
627 return &v.unknownFields
628 default:
629 return nil
630 }
631 }
632 file_google_monitoring_v3_snooze_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
633 switch v := v.(*UpdateSnoozeRequest); i {
634 case 0:
635 return &v.state
636 case 1:
637 return &v.sizeCache
638 case 2:
639 return &v.unknownFields
640 default:
641 return nil
642 }
643 }
644 }
645 type x struct{}
646 out := protoimpl.TypeBuilder{
647 File: protoimpl.DescBuilder{
648 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
649 RawDescriptor: file_google_monitoring_v3_snooze_service_proto_rawDesc,
650 NumEnums: 0,
651 NumMessages: 5,
652 NumExtensions: 0,
653 NumServices: 1,
654 },
655 GoTypes: file_google_monitoring_v3_snooze_service_proto_goTypes,
656 DependencyIndexes: file_google_monitoring_v3_snooze_service_proto_depIdxs,
657 MessageInfos: file_google_monitoring_v3_snooze_service_proto_msgTypes,
658 }.Build()
659 File_google_monitoring_v3_snooze_service_proto = out.File
660 file_google_monitoring_v3_snooze_service_proto_rawDesc = nil
661 file_google_monitoring_v3_snooze_service_proto_goTypes = nil
662 file_google_monitoring_v3_snooze_service_proto_depIdxs = nil
663 }
664
665
666 var _ context.Context
667 var _ grpc.ClientConnInterface
668
669
670
671 const _ = grpc.SupportPackageIsVersion6
672
673
674
675
676 type SnoozeServiceClient interface {
677
678
679
680 CreateSnooze(ctx context.Context, in *CreateSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error)
681
682
683 ListSnoozes(ctx context.Context, in *ListSnoozesRequest, opts ...grpc.CallOption) (*ListSnoozesResponse, error)
684
685 GetSnooze(ctx context.Context, in *GetSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error)
686
687
688 UpdateSnooze(ctx context.Context, in *UpdateSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error)
689 }
690
691 type snoozeServiceClient struct {
692 cc grpc.ClientConnInterface
693 }
694
695 func NewSnoozeServiceClient(cc grpc.ClientConnInterface) SnoozeServiceClient {
696 return &snoozeServiceClient{cc}
697 }
698
699 func (c *snoozeServiceClient) CreateSnooze(ctx context.Context, in *CreateSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error) {
700 out := new(Snooze)
701 err := c.cc.Invoke(ctx, "/google.monitoring.v3.SnoozeService/CreateSnooze", in, out, opts...)
702 if err != nil {
703 return nil, err
704 }
705 return out, nil
706 }
707
708 func (c *snoozeServiceClient) ListSnoozes(ctx context.Context, in *ListSnoozesRequest, opts ...grpc.CallOption) (*ListSnoozesResponse, error) {
709 out := new(ListSnoozesResponse)
710 err := c.cc.Invoke(ctx, "/google.monitoring.v3.SnoozeService/ListSnoozes", in, out, opts...)
711 if err != nil {
712 return nil, err
713 }
714 return out, nil
715 }
716
717 func (c *snoozeServiceClient) GetSnooze(ctx context.Context, in *GetSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error) {
718 out := new(Snooze)
719 err := c.cc.Invoke(ctx, "/google.monitoring.v3.SnoozeService/GetSnooze", in, out, opts...)
720 if err != nil {
721 return nil, err
722 }
723 return out, nil
724 }
725
726 func (c *snoozeServiceClient) UpdateSnooze(ctx context.Context, in *UpdateSnoozeRequest, opts ...grpc.CallOption) (*Snooze, error) {
727 out := new(Snooze)
728 err := c.cc.Invoke(ctx, "/google.monitoring.v3.SnoozeService/UpdateSnooze", in, out, opts...)
729 if err != nil {
730 return nil, err
731 }
732 return out, nil
733 }
734
735
736 type SnoozeServiceServer interface {
737
738
739
740 CreateSnooze(context.Context, *CreateSnoozeRequest) (*Snooze, error)
741
742
743 ListSnoozes(context.Context, *ListSnoozesRequest) (*ListSnoozesResponse, error)
744
745 GetSnooze(context.Context, *GetSnoozeRequest) (*Snooze, error)
746
747
748 UpdateSnooze(context.Context, *UpdateSnoozeRequest) (*Snooze, error)
749 }
750
751
752 type UnimplementedSnoozeServiceServer struct {
753 }
754
755 func (*UnimplementedSnoozeServiceServer) CreateSnooze(context.Context, *CreateSnoozeRequest) (*Snooze, error) {
756 return nil, status.Errorf(codes.Unimplemented, "method CreateSnooze not implemented")
757 }
758 func (*UnimplementedSnoozeServiceServer) ListSnoozes(context.Context, *ListSnoozesRequest) (*ListSnoozesResponse, error) {
759 return nil, status.Errorf(codes.Unimplemented, "method ListSnoozes not implemented")
760 }
761 func (*UnimplementedSnoozeServiceServer) GetSnooze(context.Context, *GetSnoozeRequest) (*Snooze, error) {
762 return nil, status.Errorf(codes.Unimplemented, "method GetSnooze not implemented")
763 }
764 func (*UnimplementedSnoozeServiceServer) UpdateSnooze(context.Context, *UpdateSnoozeRequest) (*Snooze, error) {
765 return nil, status.Errorf(codes.Unimplemented, "method UpdateSnooze not implemented")
766 }
767
768 func RegisterSnoozeServiceServer(s *grpc.Server, srv SnoozeServiceServer) {
769 s.RegisterService(&_SnoozeService_serviceDesc, srv)
770 }
771
772 func _SnoozeService_CreateSnooze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
773 in := new(CreateSnoozeRequest)
774 if err := dec(in); err != nil {
775 return nil, err
776 }
777 if interceptor == nil {
778 return srv.(SnoozeServiceServer).CreateSnooze(ctx, in)
779 }
780 info := &grpc.UnaryServerInfo{
781 Server: srv,
782 FullMethod: "/google.monitoring.v3.SnoozeService/CreateSnooze",
783 }
784 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
785 return srv.(SnoozeServiceServer).CreateSnooze(ctx, req.(*CreateSnoozeRequest))
786 }
787 return interceptor(ctx, in, info, handler)
788 }
789
790 func _SnoozeService_ListSnoozes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
791 in := new(ListSnoozesRequest)
792 if err := dec(in); err != nil {
793 return nil, err
794 }
795 if interceptor == nil {
796 return srv.(SnoozeServiceServer).ListSnoozes(ctx, in)
797 }
798 info := &grpc.UnaryServerInfo{
799 Server: srv,
800 FullMethod: "/google.monitoring.v3.SnoozeService/ListSnoozes",
801 }
802 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
803 return srv.(SnoozeServiceServer).ListSnoozes(ctx, req.(*ListSnoozesRequest))
804 }
805 return interceptor(ctx, in, info, handler)
806 }
807
808 func _SnoozeService_GetSnooze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
809 in := new(GetSnoozeRequest)
810 if err := dec(in); err != nil {
811 return nil, err
812 }
813 if interceptor == nil {
814 return srv.(SnoozeServiceServer).GetSnooze(ctx, in)
815 }
816 info := &grpc.UnaryServerInfo{
817 Server: srv,
818 FullMethod: "/google.monitoring.v3.SnoozeService/GetSnooze",
819 }
820 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
821 return srv.(SnoozeServiceServer).GetSnooze(ctx, req.(*GetSnoozeRequest))
822 }
823 return interceptor(ctx, in, info, handler)
824 }
825
826 func _SnoozeService_UpdateSnooze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
827 in := new(UpdateSnoozeRequest)
828 if err := dec(in); err != nil {
829 return nil, err
830 }
831 if interceptor == nil {
832 return srv.(SnoozeServiceServer).UpdateSnooze(ctx, in)
833 }
834 info := &grpc.UnaryServerInfo{
835 Server: srv,
836 FullMethod: "/google.monitoring.v3.SnoozeService/UpdateSnooze",
837 }
838 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
839 return srv.(SnoozeServiceServer).UpdateSnooze(ctx, req.(*UpdateSnoozeRequest))
840 }
841 return interceptor(ctx, in, info, handler)
842 }
843
844 var _SnoozeService_serviceDesc = grpc.ServiceDesc{
845 ServiceName: "google.monitoring.v3.SnoozeService",
846 HandlerType: (*SnoozeServiceServer)(nil),
847 Methods: []grpc.MethodDesc{
848 {
849 MethodName: "CreateSnooze",
850 Handler: _SnoozeService_CreateSnooze_Handler,
851 },
852 {
853 MethodName: "ListSnoozes",
854 Handler: _SnoozeService_ListSnoozes_Handler,
855 },
856 {
857 MethodName: "GetSnooze",
858 Handler: _SnoozeService_GetSnooze_Handler,
859 },
860 {
861 MethodName: "UpdateSnooze",
862 Handler: _SnoozeService_UpdateSnooze_Handler,
863 },
864 },
865 Streams: []grpc.StreamDesc{},
866 Metadata: "google/monitoring/v3/snooze_service.proto",
867 }
868
View as plain text