github.com/cloudwan/edgelq-sdk@v1.15.4/alerting/resources/v1/policy/policy.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/alerting/proto/v1/policy.proto 3 // DO NOT EDIT!!! 4 5 package policy 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 rcommon "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/common" 21 document "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/document" 22 notification_channel "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/notification_channel" 23 policy_template "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/policy_template" 24 iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1/project" 25 meta "github.com/cloudwan/goten-sdk/types/meta" 26 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 27 ) 28 29 // Reference imports to suppress errors if they are not otherwise used. 30 var ( 31 _ = fmt.Errorf 32 _ = reflect.Method{} 33 _ = sync.Once{} 34 35 _ = protojson.MarshalOptions{} 36 _ = proto.MarshalOptions{} 37 _ = preflect.Value{} 38 _ = protoimpl.DescBuilder{} 39 ) 40 41 // make sure we're using proto imports 42 var ( 43 _ = &document.Document{} 44 _ = ¬ification_channel.NotificationChannel{} 45 _ = &policy_template.PolicyTemplate{} 46 _ = &rcommon.LogCndSpec{} 47 _ = &iam_project.Project{} 48 _ = &fieldmaskpb.FieldMask{} 49 _ = &meta.Meta{} 50 ) 51 52 const ( 53 // Verify that this generated code is sufficiently up-to-date. 54 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 55 // Verify that runtime/protoimpl is sufficiently up-to-date. 56 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 57 ) 58 59 // Policy groups log or time series based conditions that focus on 60 // monitoring same alerting resources. For example, one Policy should 61 // be created for alerts triggered by devices, and another for alerts 62 // triggered by Pods. 63 // Policy also provides common specification parts for all conditions 64 // within: It binds them with notification channels, defines processing 65 // location (Backend or Edge), instructs if and how AI agent should 66 // be investigating issues. 67 type Policy struct { 68 state protoimpl.MessageState 69 sizeCache protoimpl.SizeCache 70 unknownFields protoimpl.UnknownFields 71 // Name of Policy 72 // When creating a new instance, this field is optional and if not provided, 73 // it will be generated automatically. Last ID segment must conform to the 74 // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9] 75 Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 76 // Metadata is an object with information like create, update and delete time 77 // (for async deleted resources), has user labels/annotations, sharding 78 // information, multi-region syncing information and may have non-schema 79 // owners (useful for taking ownership of resources belonging to lower level 80 // services by higher ones). 81 Metadata *meta.Meta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 82 // display name 83 DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 84 // Long description 85 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` 86 // List of documents useful for troubleshooting and fixing alerts triggered 87 // by conditions in this policy. 88 SupportingDocs []*document.Reference `protobuf:"bytes,5,rep,customtype=Reference,name=supporting_docs,json=supportingDocs,proto3" json:"supporting_docs,omitempty"` 89 // Policy specification 90 Spec *rcommon.PolicySpec `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` 91 // template source for current Policy 92 TemplateSource *Policy_TemplateSource `protobuf:"bytes,7,opt,name=template_source,json=templateSource,proto3" json:"template_source,omitempty"` 93 // List of attached notification channels 94 NotificationChannels []*notification_channel.Reference `protobuf:"bytes,8,rep,customtype=Reference,name=notification_channels,json=notificationChannels,proto3" json:"notification_channels,omitempty"` 95 } 96 97 func (m *Policy) Reset() { 98 *m = Policy{} 99 if protoimpl.UnsafeEnabled { 100 mi := &edgelq_alerting_proto_v1_policy_proto_msgTypes[0] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 102 ms.StoreMessageInfo(mi) 103 } 104 } 105 106 func (m *Policy) String() string { 107 return protoimpl.X.MessageStringOf(m) 108 } 109 110 func (*Policy) ProtoMessage() {} 111 112 func (m *Policy) ProtoReflect() preflect.Message { 113 mi := &edgelq_alerting_proto_v1_policy_proto_msgTypes[0] 114 if protoimpl.UnsafeEnabled && m != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(m) 122 } 123 124 func (*Policy) GotenMessage() {} 125 126 // Deprecated, Use Policy.ProtoReflect.Descriptor instead. 127 func (*Policy) Descriptor() ([]byte, []int) { 128 return edgelq_alerting_proto_v1_policy_proto_rawDescGZIP(), []int{0} 129 } 130 131 func (m *Policy) Unmarshal(b []byte) error { 132 return proto.Unmarshal(b, m) 133 } 134 135 func (m *Policy) Marshal() ([]byte, error) { 136 return proto.Marshal(m) 137 } 138 139 func (m *Policy) MarshalJSON() ([]byte, error) { 140 return protojson.MarshalOptions{}.Marshal(m) 141 } 142 143 func (m *Policy) UnmarshalJSON(data []byte) error { 144 return protojson.Unmarshal(data, m) 145 } 146 147 func (m *Policy) GetName() *Name { 148 if m != nil { 149 return m.Name 150 } 151 return nil 152 } 153 154 func (m *Policy) GetMetadata() *meta.Meta { 155 if m != nil { 156 return m.Metadata 157 } 158 return nil 159 } 160 161 func (m *Policy) GetDisplayName() string { 162 if m != nil { 163 return m.DisplayName 164 } 165 return "" 166 } 167 168 func (m *Policy) GetDescription() string { 169 if m != nil { 170 return m.Description 171 } 172 return "" 173 } 174 175 func (m *Policy) GetSupportingDocs() []*document.Reference { 176 if m != nil { 177 return m.SupportingDocs 178 } 179 return nil 180 } 181 182 func (m *Policy) GetSpec() *rcommon.PolicySpec { 183 if m != nil { 184 return m.Spec 185 } 186 return nil 187 } 188 189 func (m *Policy) GetTemplateSource() *Policy_TemplateSource { 190 if m != nil { 191 return m.TemplateSource 192 } 193 return nil 194 } 195 196 func (m *Policy) GetNotificationChannels() []*notification_channel.Reference { 197 if m != nil { 198 return m.NotificationChannels 199 } 200 return nil 201 } 202 203 func (m *Policy) SetName(fv *Name) { 204 if m == nil { 205 panic(fmt.Errorf("can't set %s on nil %s", "Name", "Policy")) 206 } 207 m.Name = fv 208 } 209 210 func (m *Policy) SetMetadata(fv *meta.Meta) { 211 if m == nil { 212 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "Policy")) 213 } 214 m.Metadata = fv 215 } 216 217 func (m *Policy) SetDisplayName(fv string) { 218 if m == nil { 219 panic(fmt.Errorf("can't set %s on nil %s", "DisplayName", "Policy")) 220 } 221 m.DisplayName = fv 222 } 223 224 func (m *Policy) SetDescription(fv string) { 225 if m == nil { 226 panic(fmt.Errorf("can't set %s on nil %s", "Description", "Policy")) 227 } 228 m.Description = fv 229 } 230 231 func (m *Policy) SetSupportingDocs(fv []*document.Reference) { 232 if m == nil { 233 panic(fmt.Errorf("can't set %s on nil %s", "SupportingDocs", "Policy")) 234 } 235 m.SupportingDocs = fv 236 } 237 238 func (m *Policy) SetSpec(fv *rcommon.PolicySpec) { 239 if m == nil { 240 panic(fmt.Errorf("can't set %s on nil %s", "Spec", "Policy")) 241 } 242 m.Spec = fv 243 } 244 245 func (m *Policy) SetTemplateSource(fv *Policy_TemplateSource) { 246 if m == nil { 247 panic(fmt.Errorf("can't set %s on nil %s", "TemplateSource", "Policy")) 248 } 249 m.TemplateSource = fv 250 } 251 252 func (m *Policy) SetNotificationChannels(fv []*notification_channel.Reference) { 253 if m == nil { 254 panic(fmt.Errorf("can't set %s on nil %s", "NotificationChannels", "Policy")) 255 } 256 m.NotificationChannels = fv 257 } 258 259 // TemplateSource describes where policy is coming from originally. 260 type Policy_TemplateSource struct { 261 state protoimpl.MessageState 262 sizeCache protoimpl.SizeCache 263 unknownFields protoimpl.UnknownFields 264 // Reference to template 265 Template *policy_template.Reference `protobuf:"bytes,1,opt,customtype=Reference,name=template,proto3" json:"template,omitempty"` 266 // List of modified fields compared to the template. 267 // It is a mask of Spec object. 268 UpdatedFields *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=updated_fields,json=updatedFields,proto3" json:"updated_fields,omitempty"` 269 } 270 271 func (m *Policy_TemplateSource) Reset() { 272 *m = Policy_TemplateSource{} 273 if protoimpl.UnsafeEnabled { 274 mi := &edgelq_alerting_proto_v1_policy_proto_msgTypes[1] 275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 276 ms.StoreMessageInfo(mi) 277 } 278 } 279 280 func (m *Policy_TemplateSource) String() string { 281 return protoimpl.X.MessageStringOf(m) 282 } 283 284 func (*Policy_TemplateSource) ProtoMessage() {} 285 286 func (m *Policy_TemplateSource) ProtoReflect() preflect.Message { 287 mi := &edgelq_alerting_proto_v1_policy_proto_msgTypes[1] 288 if protoimpl.UnsafeEnabled && m != nil { 289 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 290 if ms.LoadMessageInfo() == nil { 291 ms.StoreMessageInfo(mi) 292 } 293 return ms 294 } 295 return mi.MessageOf(m) 296 } 297 298 func (*Policy_TemplateSource) GotenMessage() {} 299 300 // Deprecated, Use Policy_TemplateSource.ProtoReflect.Descriptor instead. 301 func (*Policy_TemplateSource) Descriptor() ([]byte, []int) { 302 return edgelq_alerting_proto_v1_policy_proto_rawDescGZIP(), []int{0, 0} 303 } 304 305 func (m *Policy_TemplateSource) Unmarshal(b []byte) error { 306 return proto.Unmarshal(b, m) 307 } 308 309 func (m *Policy_TemplateSource) Marshal() ([]byte, error) { 310 return proto.Marshal(m) 311 } 312 313 func (m *Policy_TemplateSource) MarshalJSON() ([]byte, error) { 314 return protojson.MarshalOptions{}.Marshal(m) 315 } 316 317 func (m *Policy_TemplateSource) UnmarshalJSON(data []byte) error { 318 return protojson.Unmarshal(data, m) 319 } 320 321 func (m *Policy_TemplateSource) GetTemplate() *policy_template.Reference { 322 if m != nil { 323 return m.Template 324 } 325 return nil 326 } 327 328 func (m *Policy_TemplateSource) GetUpdatedFields() *fieldmaskpb.FieldMask { 329 if m != nil { 330 return m.UpdatedFields 331 } 332 return nil 333 } 334 335 func (m *Policy_TemplateSource) SetTemplate(fv *policy_template.Reference) { 336 if m == nil { 337 panic(fmt.Errorf("can't set %s on nil %s", "Template", "Policy_TemplateSource")) 338 } 339 m.Template = fv 340 } 341 342 func (m *Policy_TemplateSource) SetUpdatedFields(fv *fieldmaskpb.FieldMask) { 343 if m == nil { 344 panic(fmt.Errorf("can't set %s on nil %s", "UpdatedFields", "Policy_TemplateSource")) 345 } 346 m.UpdatedFields = fv 347 } 348 349 var edgelq_alerting_proto_v1_policy_proto preflect.FileDescriptor 350 351 var edgelq_alerting_proto_v1_policy_proto_rawDesc = []byte{ 352 0x0a, 0x25, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 353 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 354 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x6c, 0x65, 355 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 356 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 357 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 358 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 359 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 360 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 361 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 362 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 363 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 364 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 365 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 366 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 367 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 368 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 369 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 370 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 371 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 372 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 373 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 374 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 375 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 376 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 377 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 378 0x74, 0x6f, 0x22, 0xd9, 0x0c, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x0a, 379 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xb2, 0xda, 0x21, 380 0x0a, 0x0a, 0x08, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 381 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 382 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 383 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 384 0x12, 0x2e, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 385 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xca, 0xc6, 0x27, 0x07, 0x2a, 0x05, 0x22, 0x03, 386 0x08, 0x80, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 387 0x12, 0x2d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 388 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xca, 0xc6, 0x27, 0x07, 0x2a, 0x05, 0x22, 0x03, 0x08, 389 0x80, 0x04, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 390 0x3b, 0x0a, 0x0f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x6f, 391 0x63, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42, 0x12, 0xb2, 0xda, 0x21, 0x0e, 0x12, 0x0c, 392 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x10, 0x01, 0x52, 0x0e, 0x73, 0x75, 393 0x70, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x44, 0x6f, 0x63, 0x73, 0x12, 0x39, 0x0a, 0x04, 394 0x73, 0x70, 0x65, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x74, 0x74, 395 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 396 0x69, 0x63, 0x79, 0x53, 0x70, 0x65, 0x63, 0x42, 0x08, 0xca, 0xc6, 0x27, 0x04, 0x62, 0x02, 0x08, 397 0x01, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x4f, 0x0a, 0x0f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 398 0x61, 0x74, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 399 0x32, 0x26, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 400 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 401 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 402 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x6e, 0x6f, 0x74, 0x69, 403 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 404 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x42, 0x27, 0xb2, 0xda, 0x21, 0x19, 0x12, 0x17, 0x0a, 405 0x13, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 406 0x6e, 0x6e, 0x65, 0x6c, 0x10, 0x04, 0xca, 0xc6, 0x27, 0x06, 0x42, 0x04, 0x12, 0x02, 0x08, 0x08, 407 0x52, 0x14, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 408 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x1a, 0x89, 0x01, 0x0a, 0x0e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 409 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x65, 0x6d, 410 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xb2, 0xda, 0x21, 411 0x14, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 412 0x61, 0x74, 0x65, 0x10, 0x04, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 413 0x41, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 414 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 415 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 416 0x61, 0x73, 0x6b, 0x52, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 417 0x64, 0x73, 0x3a, 0xe9, 0x07, 0xea, 0x41, 0x42, 0x0a, 0x1a, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 418 0x6e, 0x67, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x6f, 419 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 420 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 421 0x73, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x92, 0xd9, 0x21, 0xdb, 0x04, 0x0a, 422 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 423 0x69, 0x65, 0x73, 0x1a, 0x16, 0x69, 0x61, 0x6d, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 424 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x38, 0x05, 0x42, 0xbf, 0x01, 425 0x08, 0x02, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x04, 0x4e, 0x61, 0x6d, 0x65, 426 0x12, 0x1c, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 427 0x12, 0x0c, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 428 0x0a, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x0a, 429 0x49, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x2f, 0x0a, 0x18, 0x73, 0x70, 430 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x6f, 431 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 432 0x6e, 0x67, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x28, 0x73, 433 0x70, 0x65, 0x63, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x65, 434 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 435 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 436 0x67, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x42, 437 0xe8, 0x02, 0x08, 0x03, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x04, 0x4e, 0x61, 438 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 439 0x6d, 0x65, 0x12, 0x0c, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 440 0x12, 0x1a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 441 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0f, 442 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x6f, 0x63, 0x73, 0x12, 443 0x0f, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x64, 0x6f, 0x63, 0x73, 444 0x12, 0x1a, 0x0a, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 445 0x12, 0x0a, 0x49, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x2f, 0x0a, 0x18, 446 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 447 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 448 0x73, 0x69, 0x6e, 0x67, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 449 0x16, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 450 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x11, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 451 0x67, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x17, 0x73, 0x70, 452 0x65, 0x63, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x71, 0x75, 453 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x12, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 454 0x67, 0x20, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x12, 0x73, 0x70, 0x65, 455 0x63, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 456 0x15, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x62, 0x69, 457 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x61, 458 0x69, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x11, 0x41, 0x49, 0x20, 0x41, 0x67, 0x65, 0x6e, 459 0x74, 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x69, 0x6e, 0x67, 0xaa, 0xd9, 0x21, 0x81, 0x01, 0x0a, 460 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 461 0x61, 0x6d, 0x65, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 462 0x12, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x18, 463 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 464 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x72, 465 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 466 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 467 0x63, 0x65, 0x1a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 468 0xb2, 0xdf, 0x21, 0x40, 0x0a, 0x3e, 0x0a, 0x3c, 0x0a, 0x0d, 0x62, 0x79, 0x44, 0x69, 0x73, 0x70, 469 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 470 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x1d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 471 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 472 0x65, 0x73, 0x2f, 0x2d, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 473 0xc2, 0x85, 0x2c, 0x6a, 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x0c, 0x64, 0x69, 0x73, 0x70, 474 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 475 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x0f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 476 0x67, 0x5f, 0x64, 0x6f, 0x63, 0x73, 0x22, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x0f, 0x74, 0x65, 477 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x15, 0x6e, 478 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x61, 0x6e, 479 0x6e, 0x65, 0x6c, 0x73, 0x42, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xfd, 480 0x01, 0xe8, 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 0x02, 0x43, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 481 0x63, 0x79, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 482 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 483 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x73, 0x74, 484 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0xa2, 0x80, 0xd1, 485 0x02, 0x45, 0x0a, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 486 0x73, 0x12, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 487 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x6c, 488 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x31, 489 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 490 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 0x42, 491 0x0b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 492 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 493 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 494 0x69, 0x6e, 0x67, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 495 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x62, 0x06, 496 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 497 } 498 499 var ( 500 edgelq_alerting_proto_v1_policy_proto_rawDescOnce sync.Once 501 edgelq_alerting_proto_v1_policy_proto_rawDescData = edgelq_alerting_proto_v1_policy_proto_rawDesc 502 ) 503 504 func edgelq_alerting_proto_v1_policy_proto_rawDescGZIP() []byte { 505 edgelq_alerting_proto_v1_policy_proto_rawDescOnce.Do(func() { 506 edgelq_alerting_proto_v1_policy_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_alerting_proto_v1_policy_proto_rawDescData) 507 }) 508 return edgelq_alerting_proto_v1_policy_proto_rawDescData 509 } 510 511 var edgelq_alerting_proto_v1_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 512 var edgelq_alerting_proto_v1_policy_proto_goTypes = []interface{}{ 513 (*Policy)(nil), // 0: ntt.alerting.v1.Policy 514 (*Policy_TemplateSource)(nil), // 1: ntt.alerting.v1.Policy.TemplateSource 515 (*meta.Meta)(nil), // 2: goten.types.Meta 516 (*rcommon.PolicySpec)(nil), // 3: ntt.alerting.v1.PolicySpec 517 (*fieldmaskpb.FieldMask)(nil), // 4: google.protobuf.FieldMask 518 } 519 var edgelq_alerting_proto_v1_policy_proto_depIdxs = []int32{ 520 2, // 0: ntt.alerting.v1.Policy.metadata:type_name -> goten.types.Meta 521 3, // 1: ntt.alerting.v1.Policy.spec:type_name -> ntt.alerting.v1.PolicySpec 522 1, // 2: ntt.alerting.v1.Policy.template_source:type_name -> ntt.alerting.v1.Policy.TemplateSource 523 4, // 3: ntt.alerting.v1.Policy.TemplateSource.updated_fields:type_name -> google.protobuf.FieldMask 524 4, // [4:4] is the sub-list for method output_type 525 4, // [4:4] is the sub-list for method input_type 526 4, // [4:4] is the sub-list for extension type_name 527 4, // [4:4] is the sub-list for extension extendee 528 0, // [0:4] is the sub-list for field type_name 529 } 530 531 func init() { edgelq_alerting_proto_v1_policy_proto_init() } 532 func edgelq_alerting_proto_v1_policy_proto_init() { 533 if edgelq_alerting_proto_v1_policy_proto != nil { 534 return 535 } 536 if !protoimpl.UnsafeEnabled { 537 538 edgelq_alerting_proto_v1_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 539 switch v := v.(*Policy); i { 540 case 0: 541 return &v.state 542 case 1: 543 return &v.sizeCache 544 case 2: 545 return &v.unknownFields 546 default: 547 return nil 548 } 549 } 550 edgelq_alerting_proto_v1_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 551 switch v := v.(*Policy_TemplateSource); i { 552 case 0: 553 return &v.state 554 case 1: 555 return &v.sizeCache 556 case 2: 557 return &v.unknownFields 558 default: 559 return nil 560 } 561 } 562 } 563 564 type x struct{} 565 out := protoimpl.TypeBuilder{ 566 File: protoimpl.DescBuilder{ 567 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 568 RawDescriptor: edgelq_alerting_proto_v1_policy_proto_rawDesc, 569 NumEnums: 0, 570 NumMessages: 2, 571 NumExtensions: 0, 572 NumServices: 0, 573 }, 574 GoTypes: edgelq_alerting_proto_v1_policy_proto_goTypes, 575 DependencyIndexes: edgelq_alerting_proto_v1_policy_proto_depIdxs, 576 MessageInfos: edgelq_alerting_proto_v1_policy_proto_msgTypes, 577 }.Build() 578 edgelq_alerting_proto_v1_policy_proto = out.File 579 edgelq_alerting_proto_v1_policy_proto_rawDesc = nil 580 edgelq_alerting_proto_v1_policy_proto_goTypes = nil 581 edgelq_alerting_proto_v1_policy_proto_depIdxs = nil 582 }