1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/monitoring/v3/alert_service.proto
3
4package monitoring
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	empty "github.com/golang/protobuf/ptypes/empty"
13	_ "google.golang.org/genproto/googleapis/api/annotations"
14	field_mask "google.golang.org/genproto/protobuf/field_mask"
15	grpc "google.golang.org/grpc"
16)
17
18// Reference imports to suppress errors if they are not otherwise used.
19var _ = proto.Marshal
20var _ = fmt.Errorf
21var _ = math.Inf
22
23// This is a compile-time assertion to ensure that this generated file
24// is compatible with the proto package it is being compiled against.
25// A compilation error at this line likely means your copy of the
26// proto package needs to be updated.
27const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
28
29// The protocol for the `CreateAlertPolicy` request.
30type CreateAlertPolicyRequest struct {
31	// The project in which to create the alerting policy. The format is
32	// `projects/[PROJECT_ID]`.
33	//
34	// Note that this field names the parent container in which the alerting
35	// policy will be written, not the name of the created policy. The alerting
36	// policy that is returned will have a name that contains a normalized
37	// representation of this name as a prefix but adds a suffix of the form
38	// `/alertPolicies/[POLICY_ID]`, identifying the policy in the container.
39	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
40	// The requested alerting policy. You should omit the `name` field in this
41	// policy. The name will be returned in the new policy, including
42	// a new [ALERT_POLICY_ID] value.
43	AlertPolicy          *AlertPolicy `protobuf:"bytes,2,opt,name=alert_policy,json=alertPolicy,proto3" json:"alert_policy,omitempty"`
44	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
45	XXX_unrecognized     []byte       `json:"-"`
46	XXX_sizecache        int32        `json:"-"`
47}
48
49func (m *CreateAlertPolicyRequest) Reset()         { *m = CreateAlertPolicyRequest{} }
50func (m *CreateAlertPolicyRequest) String() string { return proto.CompactTextString(m) }
51func (*CreateAlertPolicyRequest) ProtoMessage()    {}
52func (*CreateAlertPolicyRequest) Descriptor() ([]byte, []int) {
53	return fileDescriptor_c45362b2a456d1bf, []int{0}
54}
55
56func (m *CreateAlertPolicyRequest) XXX_Unmarshal(b []byte) error {
57	return xxx_messageInfo_CreateAlertPolicyRequest.Unmarshal(m, b)
58}
59func (m *CreateAlertPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
60	return xxx_messageInfo_CreateAlertPolicyRequest.Marshal(b, m, deterministic)
61}
62func (m *CreateAlertPolicyRequest) XXX_Merge(src proto.Message) {
63	xxx_messageInfo_CreateAlertPolicyRequest.Merge(m, src)
64}
65func (m *CreateAlertPolicyRequest) XXX_Size() int {
66	return xxx_messageInfo_CreateAlertPolicyRequest.Size(m)
67}
68func (m *CreateAlertPolicyRequest) XXX_DiscardUnknown() {
69	xxx_messageInfo_CreateAlertPolicyRequest.DiscardUnknown(m)
70}
71
72var xxx_messageInfo_CreateAlertPolicyRequest proto.InternalMessageInfo
73
74func (m *CreateAlertPolicyRequest) GetName() string {
75	if m != nil {
76		return m.Name
77	}
78	return ""
79}
80
81func (m *CreateAlertPolicyRequest) GetAlertPolicy() *AlertPolicy {
82	if m != nil {
83		return m.AlertPolicy
84	}
85	return nil
86}
87
88// The protocol for the `GetAlertPolicy` request.
89type GetAlertPolicyRequest struct {
90	// The alerting policy to retrieve. The format is
91	//
92	//     projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]
93	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
94	XXX_NoUnkeyedLiteral struct{} `json:"-"`
95	XXX_unrecognized     []byte   `json:"-"`
96	XXX_sizecache        int32    `json:"-"`
97}
98
99func (m *GetAlertPolicyRequest) Reset()         { *m = GetAlertPolicyRequest{} }
100func (m *GetAlertPolicyRequest) String() string { return proto.CompactTextString(m) }
101func (*GetAlertPolicyRequest) ProtoMessage()    {}
102func (*GetAlertPolicyRequest) Descriptor() ([]byte, []int) {
103	return fileDescriptor_c45362b2a456d1bf, []int{1}
104}
105
106func (m *GetAlertPolicyRequest) XXX_Unmarshal(b []byte) error {
107	return xxx_messageInfo_GetAlertPolicyRequest.Unmarshal(m, b)
108}
109func (m *GetAlertPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
110	return xxx_messageInfo_GetAlertPolicyRequest.Marshal(b, m, deterministic)
111}
112func (m *GetAlertPolicyRequest) XXX_Merge(src proto.Message) {
113	xxx_messageInfo_GetAlertPolicyRequest.Merge(m, src)
114}
115func (m *GetAlertPolicyRequest) XXX_Size() int {
116	return xxx_messageInfo_GetAlertPolicyRequest.Size(m)
117}
118func (m *GetAlertPolicyRequest) XXX_DiscardUnknown() {
119	xxx_messageInfo_GetAlertPolicyRequest.DiscardUnknown(m)
120}
121
122var xxx_messageInfo_GetAlertPolicyRequest proto.InternalMessageInfo
123
124func (m *GetAlertPolicyRequest) GetName() string {
125	if m != nil {
126		return m.Name
127	}
128	return ""
129}
130
131// The protocol for the `ListAlertPolicies` request.
132type ListAlertPoliciesRequest struct {
133	// The project whose alert policies are to be listed. The format is
134	//
135	//     projects/[PROJECT_ID]
136	//
137	// Note that this field names the parent container in which the alerting
138	// policies to be listed are stored. To retrieve a single alerting policy
139	// by name, use the
140	// [GetAlertPolicy][google.monitoring.v3.AlertPolicyService.GetAlertPolicy]
141	// operation, instead.
142	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
143	// If provided, this field specifies the criteria that must be met by
144	// alert policies to be included in the response.
145	//
146	// For more details, see [sorting and
147	// filtering](/monitoring/api/v3/sorting-and-filtering).
148	Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
149	// A comma-separated list of fields by which to sort the result. Supports
150	// the same set of field references as the `filter` field. Entries can be
151	// prefixed with a minus sign to sort by the field in descending order.
152	//
153	// For more details, see [sorting and
154	// filtering](/monitoring/api/v3/sorting-and-filtering).
155	OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
156	// The maximum number of results to return in a single response.
157	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
158	// If this field is not empty then it must contain the `nextPageToken` value
159	// returned by a previous call to this method.  Using this field causes the
160	// method to return more results from the previous method call.
161	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
162	XXX_NoUnkeyedLiteral struct{} `json:"-"`
163	XXX_unrecognized     []byte   `json:"-"`
164	XXX_sizecache        int32    `json:"-"`
165}
166
167func (m *ListAlertPoliciesRequest) Reset()         { *m = ListAlertPoliciesRequest{} }
168func (m *ListAlertPoliciesRequest) String() string { return proto.CompactTextString(m) }
169func (*ListAlertPoliciesRequest) ProtoMessage()    {}
170func (*ListAlertPoliciesRequest) Descriptor() ([]byte, []int) {
171	return fileDescriptor_c45362b2a456d1bf, []int{2}
172}
173
174func (m *ListAlertPoliciesRequest) XXX_Unmarshal(b []byte) error {
175	return xxx_messageInfo_ListAlertPoliciesRequest.Unmarshal(m, b)
176}
177func (m *ListAlertPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
178	return xxx_messageInfo_ListAlertPoliciesRequest.Marshal(b, m, deterministic)
179}
180func (m *ListAlertPoliciesRequest) XXX_Merge(src proto.Message) {
181	xxx_messageInfo_ListAlertPoliciesRequest.Merge(m, src)
182}
183func (m *ListAlertPoliciesRequest) XXX_Size() int {
184	return xxx_messageInfo_ListAlertPoliciesRequest.Size(m)
185}
186func (m *ListAlertPoliciesRequest) XXX_DiscardUnknown() {
187	xxx_messageInfo_ListAlertPoliciesRequest.DiscardUnknown(m)
188}
189
190var xxx_messageInfo_ListAlertPoliciesRequest proto.InternalMessageInfo
191
192func (m *ListAlertPoliciesRequest) GetName() string {
193	if m != nil {
194		return m.Name
195	}
196	return ""
197}
198
199func (m *ListAlertPoliciesRequest) GetFilter() string {
200	if m != nil {
201		return m.Filter
202	}
203	return ""
204}
205
206func (m *ListAlertPoliciesRequest) GetOrderBy() string {
207	if m != nil {
208		return m.OrderBy
209	}
210	return ""
211}
212
213func (m *ListAlertPoliciesRequest) GetPageSize() int32 {
214	if m != nil {
215		return m.PageSize
216	}
217	return 0
218}
219
220func (m *ListAlertPoliciesRequest) GetPageToken() string {
221	if m != nil {
222		return m.PageToken
223	}
224	return ""
225}
226
227// The protocol for the `ListAlertPolicies` response.
228type ListAlertPoliciesResponse struct {
229	// The returned alert policies.
230	AlertPolicies []*AlertPolicy `protobuf:"bytes,3,rep,name=alert_policies,json=alertPolicies,proto3" json:"alert_policies,omitempty"`
231	// If there might be more results than were returned, then this field is set
232	// to a non-empty value. To see the additional results,
233	// use that value as `pageToken` in the next call to this method.
234	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
235	XXX_NoUnkeyedLiteral struct{} `json:"-"`
236	XXX_unrecognized     []byte   `json:"-"`
237	XXX_sizecache        int32    `json:"-"`
238}
239
240func (m *ListAlertPoliciesResponse) Reset()         { *m = ListAlertPoliciesResponse{} }
241func (m *ListAlertPoliciesResponse) String() string { return proto.CompactTextString(m) }
242func (*ListAlertPoliciesResponse) ProtoMessage()    {}
243func (*ListAlertPoliciesResponse) Descriptor() ([]byte, []int) {
244	return fileDescriptor_c45362b2a456d1bf, []int{3}
245}
246
247func (m *ListAlertPoliciesResponse) XXX_Unmarshal(b []byte) error {
248	return xxx_messageInfo_ListAlertPoliciesResponse.Unmarshal(m, b)
249}
250func (m *ListAlertPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
251	return xxx_messageInfo_ListAlertPoliciesResponse.Marshal(b, m, deterministic)
252}
253func (m *ListAlertPoliciesResponse) XXX_Merge(src proto.Message) {
254	xxx_messageInfo_ListAlertPoliciesResponse.Merge(m, src)
255}
256func (m *ListAlertPoliciesResponse) XXX_Size() int {
257	return xxx_messageInfo_ListAlertPoliciesResponse.Size(m)
258}
259func (m *ListAlertPoliciesResponse) XXX_DiscardUnknown() {
260	xxx_messageInfo_ListAlertPoliciesResponse.DiscardUnknown(m)
261}
262
263var xxx_messageInfo_ListAlertPoliciesResponse proto.InternalMessageInfo
264
265func (m *ListAlertPoliciesResponse) GetAlertPolicies() []*AlertPolicy {
266	if m != nil {
267		return m.AlertPolicies
268	}
269	return nil
270}
271
272func (m *ListAlertPoliciesResponse) GetNextPageToken() string {
273	if m != nil {
274		return m.NextPageToken
275	}
276	return ""
277}
278
279// The protocol for the `UpdateAlertPolicy` request.
280type UpdateAlertPolicyRequest struct {
281	// Optional. A list of alerting policy field names. If this field is not
282	// empty, each listed field in the existing alerting policy is set to the
283	// value of the corresponding field in the supplied policy (`alert_policy`),
284	// or to the field's default value if the field is not in the supplied
285	// alerting policy.  Fields not listed retain their previous value.
286	//
287	// Examples of valid field masks include `display_name`, `documentation`,
288	// `documentation.content`, `documentation.mime_type`, `user_labels`,
289	// `user_label.nameofkey`, `enabled`, `conditions`, `combiner`, etc.
290	//
291	// If this field is empty, then the supplied alerting policy replaces the
292	// existing policy. It is the same as deleting the existing policy and
293	// adding the supplied policy, except for the following:
294	//
295	// +   The new policy will have the same `[ALERT_POLICY_ID]` as the former
296	//     policy. This gives you continuity with the former policy in your
297	//     notifications and incidents.
298	// +   Conditions in the new policy will keep their former `[CONDITION_ID]` if
299	//     the supplied condition includes the `name` field with that
300	//     `[CONDITION_ID]`. If the supplied condition omits the `name` field,
301	//     then a new `[CONDITION_ID]` is created.
302	UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
303	// Required. The updated alerting policy or the updated values for the
304	// fields listed in `update_mask`.
305	// If `update_mask` is not empty, any fields in this policy that are
306	// not in `update_mask` are ignored.
307	AlertPolicy          *AlertPolicy `protobuf:"bytes,3,opt,name=alert_policy,json=alertPolicy,proto3" json:"alert_policy,omitempty"`
308	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
309	XXX_unrecognized     []byte       `json:"-"`
310	XXX_sizecache        int32        `json:"-"`
311}
312
313func (m *UpdateAlertPolicyRequest) Reset()         { *m = UpdateAlertPolicyRequest{} }
314func (m *UpdateAlertPolicyRequest) String() string { return proto.CompactTextString(m) }
315func (*UpdateAlertPolicyRequest) ProtoMessage()    {}
316func (*UpdateAlertPolicyRequest) Descriptor() ([]byte, []int) {
317	return fileDescriptor_c45362b2a456d1bf, []int{4}
318}
319
320func (m *UpdateAlertPolicyRequest) XXX_Unmarshal(b []byte) error {
321	return xxx_messageInfo_UpdateAlertPolicyRequest.Unmarshal(m, b)
322}
323func (m *UpdateAlertPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
324	return xxx_messageInfo_UpdateAlertPolicyRequest.Marshal(b, m, deterministic)
325}
326func (m *UpdateAlertPolicyRequest) XXX_Merge(src proto.Message) {
327	xxx_messageInfo_UpdateAlertPolicyRequest.Merge(m, src)
328}
329func (m *UpdateAlertPolicyRequest) XXX_Size() int {
330	return xxx_messageInfo_UpdateAlertPolicyRequest.Size(m)
331}
332func (m *UpdateAlertPolicyRequest) XXX_DiscardUnknown() {
333	xxx_messageInfo_UpdateAlertPolicyRequest.DiscardUnknown(m)
334}
335
336var xxx_messageInfo_UpdateAlertPolicyRequest proto.InternalMessageInfo
337
338func (m *UpdateAlertPolicyRequest) GetUpdateMask() *field_mask.FieldMask {
339	if m != nil {
340		return m.UpdateMask
341	}
342	return nil
343}
344
345func (m *UpdateAlertPolicyRequest) GetAlertPolicy() *AlertPolicy {
346	if m != nil {
347		return m.AlertPolicy
348	}
349	return nil
350}
351
352// The protocol for the `DeleteAlertPolicy` request.
353type DeleteAlertPolicyRequest struct {
354	// The alerting policy to delete. The format is:
355	//
356	//     projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]
357	//
358	// For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
359	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
360	XXX_NoUnkeyedLiteral struct{} `json:"-"`
361	XXX_unrecognized     []byte   `json:"-"`
362	XXX_sizecache        int32    `json:"-"`
363}
364
365func (m *DeleteAlertPolicyRequest) Reset()         { *m = DeleteAlertPolicyRequest{} }
366func (m *DeleteAlertPolicyRequest) String() string { return proto.CompactTextString(m) }
367func (*DeleteAlertPolicyRequest) ProtoMessage()    {}
368func (*DeleteAlertPolicyRequest) Descriptor() ([]byte, []int) {
369	return fileDescriptor_c45362b2a456d1bf, []int{5}
370}
371
372func (m *DeleteAlertPolicyRequest) XXX_Unmarshal(b []byte) error {
373	return xxx_messageInfo_DeleteAlertPolicyRequest.Unmarshal(m, b)
374}
375func (m *DeleteAlertPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
376	return xxx_messageInfo_DeleteAlertPolicyRequest.Marshal(b, m, deterministic)
377}
378func (m *DeleteAlertPolicyRequest) XXX_Merge(src proto.Message) {
379	xxx_messageInfo_DeleteAlertPolicyRequest.Merge(m, src)
380}
381func (m *DeleteAlertPolicyRequest) XXX_Size() int {
382	return xxx_messageInfo_DeleteAlertPolicyRequest.Size(m)
383}
384func (m *DeleteAlertPolicyRequest) XXX_DiscardUnknown() {
385	xxx_messageInfo_DeleteAlertPolicyRequest.DiscardUnknown(m)
386}
387
388var xxx_messageInfo_DeleteAlertPolicyRequest proto.InternalMessageInfo
389
390func (m *DeleteAlertPolicyRequest) GetName() string {
391	if m != nil {
392		return m.Name
393	}
394	return ""
395}
396
397func init() {
398	proto.RegisterType((*CreateAlertPolicyRequest)(nil), "google.monitoring.v3.CreateAlertPolicyRequest")
399	proto.RegisterType((*GetAlertPolicyRequest)(nil), "google.monitoring.v3.GetAlertPolicyRequest")
400	proto.RegisterType((*ListAlertPoliciesRequest)(nil), "google.monitoring.v3.ListAlertPoliciesRequest")
401	proto.RegisterType((*ListAlertPoliciesResponse)(nil), "google.monitoring.v3.ListAlertPoliciesResponse")
402	proto.RegisterType((*UpdateAlertPolicyRequest)(nil), "google.monitoring.v3.UpdateAlertPolicyRequest")
403	proto.RegisterType((*DeleteAlertPolicyRequest)(nil), "google.monitoring.v3.DeleteAlertPolicyRequest")
404}
405
406func init() {
407	proto.RegisterFile("google/monitoring/v3/alert_service.proto", fileDescriptor_c45362b2a456d1bf)
408}
409
410var fileDescriptor_c45362b2a456d1bf = []byte{
411	// 656 bytes of a gzipped FileDescriptorProto
412	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x41, 0x6f, 0xd3, 0x4c,
413	0x10, 0x95, 0x93, 0x36, 0x5f, 0xbb, 0xfd, 0x5a, 0x94, 0x15, 0x54, 0xae, 0x0b, 0x52, 0x30, 0x2a,
414	0x54, 0xad, 0xb0, 0xa5, 0xf8, 0x04, 0x15, 0x48, 0xa4, 0x85, 0xf6, 0x40, 0xa5, 0x28, 0x85, 0x1e,
415	0x50, 0xa4, 0x68, 0x93, 0x4c, 0xac, 0x25, 0x8e, 0xd7, 0x78, 0x37, 0x11, 0x29, 0xea, 0x85, 0x23,
416	0x12, 0xe2, 0xc0, 0x99, 0x03, 0x47, 0x38, 0x20, 0x7e, 0x07, 0x57, 0xfe, 0x02, 0x3f, 0x04, 0x79,
417	0xed, 0x34, 0x76, 0x6d, 0xab, 0x16, 0xb7, 0xcc, 0xce, 0xdb, 0x99, 0xb7, 0x6f, 0xde, 0x38, 0x68,
418	0xdb, 0x66, 0xcc, 0x76, 0xc0, 0x1c, 0x31, 0x97, 0x0a, 0xe6, 0x53, 0xd7, 0x36, 0x27, 0x96, 0x49,
419	0x1c, 0xf0, 0x45, 0x87, 0x83, 0x3f, 0xa1, 0x3d, 0x30, 0x3c, 0x9f, 0x09, 0x86, 0xaf, 0x87, 0x48,
420	0x63, 0x8e, 0x34, 0x26, 0x96, 0x76, 0x33, 0xba, 0x4f, 0x3c, 0x6a, 0x12, 0xd7, 0x65, 0x82, 0x08,
421	0xca, 0x5c, 0x1e, 0xde, 0xd1, 0x6a, 0xf9, 0xd5, 0x23, 0xc4, 0x66, 0x84, 0x90, 0x51, 0x77, 0x3c,
422	0x30, 0x61, 0xe4, 0x89, 0xe9, 0xa5, 0xeb, 0x17, 0xc9, 0x01, 0x05, 0xa7, 0xdf, 0x19, 0x11, 0x3e,
423	0x0c, 0x11, 0xba, 0x40, 0xea, 0xbe, 0x0f, 0x44, 0xc0, 0x93, 0xa0, 0x66, 0x93, 0x39, 0xb4, 0x37,
424	0x6d, 0xc1, 0x9b, 0x31, 0x70, 0x81, 0x31, 0x5a, 0x70, 0xc9, 0x08, 0xd4, 0x72, 0x4d, 0xd9, 0x5e,
425	0x6e, 0xc9, 0xdf, 0xf8, 0x00, 0xfd, 0x1f, 0xbe, 0xcd, 0x93, 0x50, 0xb5, 0x54, 0x53, 0xb6, 0x57,
426	0xea, 0xb7, 0x8d, 0xac, 0xb7, 0x19, 0xf1, 0x9a, 0x2b, 0x64, 0x1e, 0xe8, 0xbb, 0xe8, 0xc6, 0x21,
427	0x88, 0x62, 0x2d, 0xf5, 0x2f, 0x0a, 0x52, 0x9f, 0x53, 0x1e, 0x83, 0x53, 0xe0, 0x97, 0x2f, 0x2c,
428	0xc4, 0x38, 0xae, 0xa3, 0xca, 0x80, 0x3a, 0x02, 0x7c, 0x75, 0x51, 0x9e, 0x46, 0x11, 0xde, 0x40,
429	0x4b, 0xcc, 0xef, 0x83, 0xdf, 0xe9, 0x4e, 0xd5, 0x8a, 0xcc, 0xfc, 0x27, 0xe3, 0xc6, 0x14, 0x6f,
430	0xa2, 0x65, 0x8f, 0xd8, 0xd0, 0xe1, 0xf4, 0x0c, 0xe4, 0x9b, 0x16, 0x5b, 0x4b, 0xc1, 0xc1, 0x09,
431	0x3d, 0x03, 0x7c, 0x0b, 0x21, 0x99, 0x14, 0x6c, 0x08, 0x6e, 0x44, 0x4d, 0xc2, 0x5f, 0x04, 0x07,
432	0xfa, 0x47, 0x05, 0x6d, 0x64, 0xf0, 0xe3, 0x1e, 0x73, 0x39, 0xe0, 0x23, 0xb4, 0x16, 0x13, 0x8c,
433	0x02, 0x57, 0xcb, 0xb5, 0x72, 0x31, 0xc9, 0x56, 0x49, 0xbc, 0x22, 0xbe, 0x8b, 0xae, 0xb9, 0xf0,
434	0x56, 0x74, 0x62, 0x5c, 0x4a, 0x92, 0xcb, 0x6a, 0x70, 0xdc, 0xbc, 0xe0, 0x13, 0xe8, 0xf5, 0xd2,
435	0xeb, 0x67, 0xcf, 0x74, 0x0f, 0xad, 0x8c, 0x65, 0x4e, 0x9a, 0x20, 0x1a, 0x9f, 0x36, 0xe3, 0x32,
436	0xf3, 0x89, 0xf1, 0x2c, 0xf0, 0xc9, 0x31, 0xe1, 0xc3, 0x16, 0x0a, 0xe1, 0xc1, 0xef, 0xd4, 0xf0,
437	0xcb, 0xff, 0x34, 0x7c, 0x03, 0xa9, 0x07, 0xe0, 0x40, 0x51, 0xcb, 0xd5, 0x7f, 0x54, 0x10, 0x8e,
438	0x41, 0x4f, 0xc2, 0xa5, 0xc2, 0x5f, 0x15, 0x54, 0x4d, 0xc9, 0x8e, 0x8d, 0x6c, 0x32, 0x79, 0xfe,
439	0xd1, 0xcc, 0xc2, 0xf8, 0x70, 0x9e, 0xfa, 0xee, 0xfb, 0xdf, 0x7f, 0x3e, 0x97, 0xb6, 0xf0, 0x9d,
440	0x60, 0x11, 0xdf, 0x05, 0x04, 0x1f, 0x79, 0x3e, 0x7b, 0x0d, 0x3d, 0xc1, 0xcd, 0x9d, 0x73, 0x33,
441	0x39, 0xb2, 0x4f, 0x0a, 0x5a, 0x4b, 0x1a, 0x1d, 0xef, 0x66, 0x37, 0xcc, 0x5c, 0x07, 0xed, 0x6a,
442	0x69, 0xf5, 0xfb, 0x92, 0xcf, 0x3d, 0xbc, 0x95, 0xc5, 0x27, 0x49, 0xc7, 0xdc, 0x39, 0x97, 0xaa,
443	0xa5, 0x16, 0x3e, 0x4f, 0xb5, 0xbc, 0x2f, 0x43, 0x11, 0x5e, 0x0f, 0x24, 0x2f, 0x4b, 0x2f, 0xa2,
444	0xd3, 0xc3, 0x84, 0xad, 0xf0, 0x07, 0x05, 0x55, 0x53, 0x0e, 0xc9, 0xe3, 0x98, 0x67, 0x25, 0x6d,
445	0x3d, 0x65, 0xea, 0xa7, 0xc1, 0x97, 0x71, 0x26, 0xd8, 0x4e, 0x41, 0xc1, 0x7e, 0x2a, 0xa8, 0x9a,
446	0xda, 0xa6, 0x3c, 0x32, 0x79, 0x6b, 0x57, 0x44, 0xb0, 0x23, 0xc9, 0xab, 0x51, 0xaf, 0x4b, 0x5e,
447	0x71, 0x41, 0x8c, 0xab, 0x48, 0x26, 0xf5, 0x6b, 0x7c, 0x53, 0x90, 0xda, 0x63, 0xa3, 0xcc, 0x96,
448	0x8d, 0xaa, 0xec, 0x19, 0x2d, 0x51, 0x33, 0x90, 0xa6, 0xa9, 0xbc, 0x7a, 0x1c, 0x41, 0x6d, 0xe6,
449	0x10, 0xd7, 0x36, 0x98, 0x6f, 0x9b, 0x36, 0xb8, 0x52, 0x38, 0x33, 0x4c, 0x11, 0x8f, 0xf2, 0xe4,
450	0xbf, 0xd0, 0xde, 0x3c, 0xfa, 0x5e, 0xd2, 0x0e, 0xc3, 0x02, 0xfb, 0x0e, 0x1b, 0xf7, 0x8d, 0xe3,
451	0x79, 0xc7, 0x53, 0xeb, 0xd7, 0x2c, 0xd9, 0x96, 0xc9, 0xf6, 0x3c, 0xd9, 0x3e, 0xb5, 0xba, 0x15,
452	0xd9, 0xc4, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x6f, 0x1f, 0xe6, 0xf0, 0x47, 0x07, 0x00, 0x00,
453}
454
455// Reference imports to suppress errors if they are not otherwise used.
456var _ context.Context
457var _ grpc.ClientConn
458
459// This is a compile-time assertion to ensure that this generated file
460// is compatible with the grpc package it is being compiled against.
461const _ = grpc.SupportPackageIsVersion4
462
463// AlertPolicyServiceClient is the client API for AlertPolicyService service.
464//
465// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
466type AlertPolicyServiceClient interface {
467	// Lists the existing alerting policies for the project.
468	ListAlertPolicies(ctx context.Context, in *ListAlertPoliciesRequest, opts ...grpc.CallOption) (*ListAlertPoliciesResponse, error)
469	// Gets a single alerting policy.
470	GetAlertPolicy(ctx context.Context, in *GetAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
471	// Creates a new alerting policy.
472	CreateAlertPolicy(ctx context.Context, in *CreateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
473	// Deletes an alerting policy.
474	DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
475	// Updates an alerting policy. You can either replace the entire policy with
476	// a new one or replace only certain fields in the current alerting policy by
477	// specifying the fields to be updated via `updateMask`. Returns the
478	// updated alerting policy.
479	UpdateAlertPolicy(ctx context.Context, in *UpdateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
480}
481
482type alertPolicyServiceClient struct {
483	cc *grpc.ClientConn
484}
485
486func NewAlertPolicyServiceClient(cc *grpc.ClientConn) AlertPolicyServiceClient {
487	return &alertPolicyServiceClient{cc}
488}
489
490func (c *alertPolicyServiceClient) ListAlertPolicies(ctx context.Context, in *ListAlertPoliciesRequest, opts ...grpc.CallOption) (*ListAlertPoliciesResponse, error) {
491	out := new(ListAlertPoliciesResponse)
492	err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/ListAlertPolicies", in, out, opts...)
493	if err != nil {
494		return nil, err
495	}
496	return out, nil
497}
498
499func (c *alertPolicyServiceClient) GetAlertPolicy(ctx context.Context, in *GetAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error) {
500	out := new(AlertPolicy)
501	err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/GetAlertPolicy", in, out, opts...)
502	if err != nil {
503		return nil, err
504	}
505	return out, nil
506}
507
508func (c *alertPolicyServiceClient) CreateAlertPolicy(ctx context.Context, in *CreateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error) {
509	out := new(AlertPolicy)
510	err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/CreateAlertPolicy", in, out, opts...)
511	if err != nil {
512		return nil, err
513	}
514	return out, nil
515}
516
517func (c *alertPolicyServiceClient) DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
518	out := new(empty.Empty)
519	err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy", in, out, opts...)
520	if err != nil {
521		return nil, err
522	}
523	return out, nil
524}
525
526func (c *alertPolicyServiceClient) UpdateAlertPolicy(ctx context.Context, in *UpdateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error) {
527	out := new(AlertPolicy)
528	err := c.cc.Invoke(ctx, "/google.monitoring.v3.AlertPolicyService/UpdateAlertPolicy", in, out, opts...)
529	if err != nil {
530		return nil, err
531	}
532	return out, nil
533}
534
535// AlertPolicyServiceServer is the server API for AlertPolicyService service.
536type AlertPolicyServiceServer interface {
537	// Lists the existing alerting policies for the project.
538	ListAlertPolicies(context.Context, *ListAlertPoliciesRequest) (*ListAlertPoliciesResponse, error)
539	// Gets a single alerting policy.
540	GetAlertPolicy(context.Context, *GetAlertPolicyRequest) (*AlertPolicy, error)
541	// Creates a new alerting policy.
542	CreateAlertPolicy(context.Context, *CreateAlertPolicyRequest) (*AlertPolicy, error)
543	// Deletes an alerting policy.
544	DeleteAlertPolicy(context.Context, *DeleteAlertPolicyRequest) (*empty.Empty, error)
545	// Updates an alerting policy. You can either replace the entire policy with
546	// a new one or replace only certain fields in the current alerting policy by
547	// specifying the fields to be updated via `updateMask`. Returns the
548	// updated alerting policy.
549	UpdateAlertPolicy(context.Context, *UpdateAlertPolicyRequest) (*AlertPolicy, error)
550}
551
552func RegisterAlertPolicyServiceServer(s *grpc.Server, srv AlertPolicyServiceServer) {
553	s.RegisterService(&_AlertPolicyService_serviceDesc, srv)
554}
555
556func _AlertPolicyService_ListAlertPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
557	in := new(ListAlertPoliciesRequest)
558	if err := dec(in); err != nil {
559		return nil, err
560	}
561	if interceptor == nil {
562		return srv.(AlertPolicyServiceServer).ListAlertPolicies(ctx, in)
563	}
564	info := &grpc.UnaryServerInfo{
565		Server:     srv,
566		FullMethod: "/google.monitoring.v3.AlertPolicyService/ListAlertPolicies",
567	}
568	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
569		return srv.(AlertPolicyServiceServer).ListAlertPolicies(ctx, req.(*ListAlertPoliciesRequest))
570	}
571	return interceptor(ctx, in, info, handler)
572}
573
574func _AlertPolicyService_GetAlertPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
575	in := new(GetAlertPolicyRequest)
576	if err := dec(in); err != nil {
577		return nil, err
578	}
579	if interceptor == nil {
580		return srv.(AlertPolicyServiceServer).GetAlertPolicy(ctx, in)
581	}
582	info := &grpc.UnaryServerInfo{
583		Server:     srv,
584		FullMethod: "/google.monitoring.v3.AlertPolicyService/GetAlertPolicy",
585	}
586	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
587		return srv.(AlertPolicyServiceServer).GetAlertPolicy(ctx, req.(*GetAlertPolicyRequest))
588	}
589	return interceptor(ctx, in, info, handler)
590}
591
592func _AlertPolicyService_CreateAlertPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
593	in := new(CreateAlertPolicyRequest)
594	if err := dec(in); err != nil {
595		return nil, err
596	}
597	if interceptor == nil {
598		return srv.(AlertPolicyServiceServer).CreateAlertPolicy(ctx, in)
599	}
600	info := &grpc.UnaryServerInfo{
601		Server:     srv,
602		FullMethod: "/google.monitoring.v3.AlertPolicyService/CreateAlertPolicy",
603	}
604	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
605		return srv.(AlertPolicyServiceServer).CreateAlertPolicy(ctx, req.(*CreateAlertPolicyRequest))
606	}
607	return interceptor(ctx, in, info, handler)
608}
609
610func _AlertPolicyService_DeleteAlertPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
611	in := new(DeleteAlertPolicyRequest)
612	if err := dec(in); err != nil {
613		return nil, err
614	}
615	if interceptor == nil {
616		return srv.(AlertPolicyServiceServer).DeleteAlertPolicy(ctx, in)
617	}
618	info := &grpc.UnaryServerInfo{
619		Server:     srv,
620		FullMethod: "/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy",
621	}
622	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
623		return srv.(AlertPolicyServiceServer).DeleteAlertPolicy(ctx, req.(*DeleteAlertPolicyRequest))
624	}
625	return interceptor(ctx, in, info, handler)
626}
627
628func _AlertPolicyService_UpdateAlertPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
629	in := new(UpdateAlertPolicyRequest)
630	if err := dec(in); err != nil {
631		return nil, err
632	}
633	if interceptor == nil {
634		return srv.(AlertPolicyServiceServer).UpdateAlertPolicy(ctx, in)
635	}
636	info := &grpc.UnaryServerInfo{
637		Server:     srv,
638		FullMethod: "/google.monitoring.v3.AlertPolicyService/UpdateAlertPolicy",
639	}
640	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
641		return srv.(AlertPolicyServiceServer).UpdateAlertPolicy(ctx, req.(*UpdateAlertPolicyRequest))
642	}
643	return interceptor(ctx, in, info, handler)
644}
645
646var _AlertPolicyService_serviceDesc = grpc.ServiceDesc{
647	ServiceName: "google.monitoring.v3.AlertPolicyService",
648	HandlerType: (*AlertPolicyServiceServer)(nil),
649	Methods: []grpc.MethodDesc{
650		{
651			MethodName: "ListAlertPolicies",
652			Handler:    _AlertPolicyService_ListAlertPolicies_Handler,
653		},
654		{
655			MethodName: "GetAlertPolicy",
656			Handler:    _AlertPolicyService_GetAlertPolicy_Handler,
657		},
658		{
659			MethodName: "CreateAlertPolicy",
660			Handler:    _AlertPolicyService_CreateAlertPolicy_Handler,
661		},
662		{
663			MethodName: "DeleteAlertPolicy",
664			Handler:    _AlertPolicyService_DeleteAlertPolicy_Handler,
665		},
666		{
667			MethodName: "UpdateAlertPolicy",
668			Handler:    _AlertPolicyService_UpdateAlertPolicy_Handler,
669		},
670	},
671	Streams:  []grpc.StreamDesc{},
672	Metadata: "google/monitoring/v3/alert_service.proto",
673}
674