From a6eba4422ef085c009cf48eaf305394b3fc4ea67 Mon Sep 17 00:00:00 2001 From: Alex Demidoff Date: Wed, 7 Feb 2024 09:09:02 +0000 Subject: [PATCH] PMM-12836 restructure alerting api --- Makefile.include | 8 +- api-tests/init.go | 2 +- .../management/alerting/alerting_test.go | 4 +- .../alerting => alerting/v1}/alerting.pb.go | 700 +++++++++-------- .../v1}/alerting.pb.gw.go | 32 +- .../v1}/alerting.pb.validate.go | 2 +- .../alerting => alerting/v1}/alerting.proto | 12 +- .../v1}/alerting_grpc.pb.go | 4 +- .../v1}/json/alerting.json | 0 .../alerting_service_client.go | 10 +- .../create_rule_parameters.go | 0 .../alerting_service/create_rule_responses.go | 4 +- .../create_template_parameters.go | 0 .../create_template_responses.go | 4 +- .../delete_template_parameters.go | 0 .../delete_template_responses.go | 4 +- .../list_templates_parameters.go | 0 .../list_templates_responses.go | 4 +- .../update_template_parameters.go | 0 .../update_template_responses.go | 4 +- .../json/client/pmm_alerting_api_client.go | 2 +- .../alerting => alerting/v1}/json/header.json | 0 api/alerting/v1/json/v1.json | 718 ++++++++++++++++++ api/alerting/v1/params.pb.go | 212 ++++++ .../v1}/params.pb.validate.go | 2 +- .../v1/alerting => alerting/v1}/params.proto | 0 api/management/v1/alerting/params.pb.go | 213 ------ descriptor.bin | Bin 680604 -> 680611 bytes managed/cmd/pmm-managed/main.go | 2 +- .../services/management/alerting/service.go | 2 +- .../management/alerting/service_test.go | 2 +- 31 files changed, 1329 insertions(+), 618 deletions(-) rename api/{management/v1/alerting => alerting/v1}/alerting.pb.go (58%) rename api/{management/v1/alerting => alerting/v1}/alerting.pb.gw.go (94%) rename api/{management/v1/alerting => alerting/v1}/alerting.pb.validate.go (99%) rename api/{management/v1/alerting => alerting/v1}/alerting.proto (95%) rename api/{management/v1/alerting => alerting/v1}/alerting_grpc.pb.go (99%) rename api/{management/v1/alerting => alerting/v1}/json/alerting.json (100%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/alerting_service_client.go (95%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/create_rule_parameters.go (100%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/create_rule_responses.go (98%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/create_template_parameters.go (100%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/create_template_responses.go (96%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/delete_template_parameters.go (100%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/delete_template_responses.go (96%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/list_templates_parameters.go (100%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/list_templates_responses.go (99%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/update_template_parameters.go (100%) rename api/{management/v1/alerting => alerting/v1}/json/client/alerting_service/update_template_responses.go (96%) rename api/{management/v1/alerting => alerting/v1}/json/client/pmm_alerting_api_client.go (97%) rename api/{management/v1/alerting => alerting/v1}/json/header.json (100%) create mode 100644 api/alerting/v1/json/v1.json create mode 100644 api/alerting/v1/params.pb.go rename api/{management/v1/alerting => alerting/v1}/params.pb.validate.go (91%) rename api/{management/v1/alerting => alerting/v1}/params.proto (100%) delete mode 100644 api/management/v1/alerting/params.pb.go diff --git a/Makefile.include b/Makefile.include index ed1fbf845b3..17ea4aa5577 100644 --- a/Makefile.include +++ b/Makefile.include @@ -48,7 +48,7 @@ gen-api: ## Generate PMM API bin/buf generate -v api - for API in api/agentlocal/v1 api/server/v1 api/inventory/v1 api/management/v1 api/management/v1/alerting api/management/v1/backup api/management/v1/dump api/management/v1/azure api/management/v1/role api/qan/v1beta1 api/management/v1/agent api/management/v1/node api/management/v1/service api/platform/v1 api/user/v1; do \ + for API in api/agentlocal/v1 api/server/v1 api/inventory/v1 api/management/v1 api/alerting/v1 api/management/v1/backup api/management/v1/dump api/management/v1/azure api/management/v1/role api/qan/v1beta1 api/management/v1/agent api/management/v1/node api/management/v1/service api/platform/v1 api/user/v1; do \ set -x ; \ bin/swagger mixin $$API/json/header.json $$API/*.swagger.json --output=$$API/json/$$(basename $$API).json --keep-spec-order; \ bin/swagger flatten --with-flatten=expand --with-flatten=remove-unused $$API/json/$$(basename $$API).json --output=$$API/json/$$(basename $$API).json ; \ @@ -75,7 +75,7 @@ gen-api: ## Generate PMM API api/user/v1/json/v1.json \ api/management/v1/json/v1.json \ api/management/v1/backup/json/backup.json \ - api/management/v1/alerting/json/alerting.json + api/alerting/v1/json/alerting.json bin/swagger validate api/swagger/swagger.json bin/swagger-order --output=api/swagger/swagger.json api/swagger/swagger.json @@ -87,7 +87,7 @@ gen-api: ## Generate PMM API api/user/v1/json/v1.json \ api/inventory/v1/json/v1.json \ api/management/v1/json/v1.json \ - api/management/v1/alerting/json/alerting.json \ + api/alerting/v1/json/alerting.json \ api/management/v1/backup/json/backup.json \ api/management/v1/dump/json/dump.json \ api/management/v1/azure/json/azure.json \ @@ -124,7 +124,7 @@ clean: clean_swagger ## Remove generated files find api -name '*.pb.gw.go' -print -delete find api -name '*.validate.go' -print -delete - for API in api/agentlocal/v1 api/server/v1 api/inventory/v1 api/management/v1 api/management/v1/alerting api/management/v1/backup api/management/v1/dump api/management/v1/role api/management/v1/agent api/management/v1/node api/management/v1/service api/qan/v1beta1 api/platform/v1 ; do \ + for API in api/agentlocal/v1 api/server/v1 api/inventory/v1 api/management/v1 api/alerting/v1 api/management/v1/backup api/management/v1/dump api/management/v1/role api/management/v1/agent api/management/v1/node api/management/v1/service api/qan/v1beta1 api/platform/v1 ; do \ rm -fr $$API/json/client $$API/json/models $$API/json/$$(basename $$API).json ; \ done rm -f api/swagger/swagger.json api/swagger/swagger-dev.json diff --git a/api-tests/init.go b/api-tests/init.go index 8c48091d38d..22b0391a1d4 100644 --- a/api-tests/init.go +++ b/api-tests/init.go @@ -36,8 +36,8 @@ import ( "github.com/sirupsen/logrus" "golang.org/x/sys/unix" + alertingClient "github.com/percona/pmm/api/alerting/v1/json/client" inventoryClient "github.com/percona/pmm/api/inventory/v1/json/client" - alertingClient "github.com/percona/pmm/api/management/v1/alerting/json/client" backupsClient "github.com/percona/pmm/api/management/v1/backup/json/client" managementClient "github.com/percona/pmm/api/management/v1/json/client" platformClient "github.com/percona/pmm/api/platform/v1/json/client" diff --git a/api-tests/management/alerting/alerting_test.go b/api-tests/management/alerting/alerting_test.go index a28b7c8f68f..97efe040b46 100644 --- a/api-tests/management/alerting/alerting_test.go +++ b/api-tests/management/alerting/alerting_test.go @@ -34,8 +34,8 @@ import ( "gopkg.in/yaml.v3" pmmapitests "github.com/percona/pmm/api-tests" - alertingClient "github.com/percona/pmm/api/management/v1/alerting/json/client" - alerting "github.com/percona/pmm/api/management/v1/alerting/json/client/alerting_service" + alertingClient "github.com/percona/pmm/api/alerting/v1/json/client" + alerting "github.com/percona/pmm/api/alerting/v1/json/client/alerting_service" "github.com/percona/pmm/managed/services/grafana" ) diff --git a/api/management/v1/alerting/alerting.pb.go b/api/alerting/v1/alerting.pb.go similarity index 58% rename from api/management/v1/alerting/alerting.pb.go rename to api/alerting/v1/alerting.pb.go index e1866f30126..40e3dabfa77 100644 --- a/api/management/v1/alerting/alerting.pb.go +++ b/api/alerting/v1/alerting.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.32.0 // protoc (unknown) -// source: management/v1/alerting/alerting.proto +// source: alerting/v1/alerting.proto package alertingv1 @@ -71,11 +71,11 @@ func (x TemplateSource) String() string { } func (TemplateSource) Descriptor() protoreflect.EnumDescriptor { - return file_management_v1_alerting_alerting_proto_enumTypes[0].Descriptor() + return file_alerting_v1_alerting_proto_enumTypes[0].Descriptor() } func (TemplateSource) Type() protoreflect.EnumType { - return &file_management_v1_alerting_alerting_proto_enumTypes[0] + return &file_alerting_v1_alerting_proto_enumTypes[0] } func (x TemplateSource) Number() protoreflect.EnumNumber { @@ -84,7 +84,7 @@ func (x TemplateSource) Number() protoreflect.EnumNumber { // Deprecated: Use TemplateSource.Descriptor instead. func (TemplateSource) EnumDescriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{0} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{0} } // FilterType represents filter matching type. @@ -121,11 +121,11 @@ func (x FilterType) String() string { } func (FilterType) Descriptor() protoreflect.EnumDescriptor { - return file_management_v1_alerting_alerting_proto_enumTypes[1].Descriptor() + return file_alerting_v1_alerting_proto_enumTypes[1].Descriptor() } func (FilterType) Type() protoreflect.EnumType { - return &file_management_v1_alerting_alerting_proto_enumTypes[1] + return &file_alerting_v1_alerting_proto_enumTypes[1] } func (x FilterType) Number() protoreflect.EnumNumber { @@ -134,7 +134,7 @@ func (x FilterType) Number() protoreflect.EnumNumber { // Deprecated: Use FilterType.Descriptor instead. func (FilterType) EnumDescriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{1} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{1} } // BoolParamDefinition represents boolean parameter's default value. @@ -149,7 +149,7 @@ type BoolParamDefinition struct { func (x *BoolParamDefinition) Reset() { *x = BoolParamDefinition{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[0] + mi := &file_alerting_v1_alerting_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -162,7 +162,7 @@ func (x *BoolParamDefinition) String() string { func (*BoolParamDefinition) ProtoMessage() {} func (x *BoolParamDefinition) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[0] + mi := &file_alerting_v1_alerting_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -175,7 +175,7 @@ func (x *BoolParamDefinition) ProtoReflect() protoreflect.Message { // Deprecated: Use BoolParamDefinition.ProtoReflect.Descriptor instead. func (*BoolParamDefinition) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{0} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{0} } func (x *BoolParamDefinition) GetDefault() v1.BooleanFlag { @@ -208,7 +208,7 @@ type FloatParamDefinition struct { func (x *FloatParamDefinition) Reset() { *x = FloatParamDefinition{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[1] + mi := &file_alerting_v1_alerting_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -221,7 +221,7 @@ func (x *FloatParamDefinition) String() string { func (*FloatParamDefinition) ProtoMessage() {} func (x *FloatParamDefinition) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[1] + mi := &file_alerting_v1_alerting_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -234,7 +234,7 @@ func (x *FloatParamDefinition) ProtoReflect() protoreflect.Message { // Deprecated: Use FloatParamDefinition.ProtoReflect.Descriptor instead. func (*FloatParamDefinition) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{1} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{1} } func (x *FloatParamDefinition) GetHasDefault() bool { @@ -294,7 +294,7 @@ type StringParamDefinition struct { func (x *StringParamDefinition) Reset() { *x = StringParamDefinition{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[2] + mi := &file_alerting_v1_alerting_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -307,7 +307,7 @@ func (x *StringParamDefinition) String() string { func (*StringParamDefinition) ProtoMessage() {} func (x *StringParamDefinition) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[2] + mi := &file_alerting_v1_alerting_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -320,7 +320,7 @@ func (x *StringParamDefinition) ProtoReflect() protoreflect.Message { // Deprecated: Use StringParamDefinition.ProtoReflect.Descriptor instead. func (*StringParamDefinition) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{2} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{2} } func (x *StringParamDefinition) GetHasDefault() bool { @@ -364,7 +364,7 @@ type ParamDefinition struct { func (x *ParamDefinition) Reset() { *x = ParamDefinition{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[3] + mi := &file_alerting_v1_alerting_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -377,7 +377,7 @@ func (x *ParamDefinition) String() string { func (*ParamDefinition) ProtoMessage() {} func (x *ParamDefinition) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[3] + mi := &file_alerting_v1_alerting_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -390,7 +390,7 @@ func (x *ParamDefinition) ProtoReflect() protoreflect.Message { // Deprecated: Use ParamDefinition.ProtoReflect.Descriptor instead. func (*ParamDefinition) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{3} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{3} } func (x *ParamDefinition) GetName() string { @@ -507,7 +507,7 @@ type Template struct { func (x *Template) Reset() { *x = Template{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[4] + mi := &file_alerting_v1_alerting_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -520,7 +520,7 @@ func (x *Template) String() string { func (*Template) ProtoMessage() {} func (x *Template) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[4] + mi := &file_alerting_v1_alerting_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -533,7 +533,7 @@ func (x *Template) ProtoReflect() protoreflect.Message { // Deprecated: Use Template.ProtoReflect.Descriptor instead. func (*Template) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{4} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{4} } func (x *Template) GetName() string { @@ -627,7 +627,7 @@ type ListTemplatesRequest struct { func (x *ListTemplatesRequest) Reset() { *x = ListTemplatesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[5] + mi := &file_alerting_v1_alerting_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -640,7 +640,7 @@ func (x *ListTemplatesRequest) String() string { func (*ListTemplatesRequest) ProtoMessage() {} func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[5] + mi := &file_alerting_v1_alerting_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -653,7 +653,7 @@ func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTemplatesRequest.ProtoReflect.Descriptor instead. func (*ListTemplatesRequest) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{5} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{5} } func (x *ListTemplatesRequest) GetReload() bool { @@ -683,7 +683,7 @@ type ListTemplatesResponse struct { func (x *ListTemplatesResponse) Reset() { *x = ListTemplatesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[6] + mi := &file_alerting_v1_alerting_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -696,7 +696,7 @@ func (x *ListTemplatesResponse) String() string { func (*ListTemplatesResponse) ProtoMessage() {} func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[6] + mi := &file_alerting_v1_alerting_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -709,7 +709,7 @@ func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTemplatesResponse.ProtoReflect.Descriptor instead. func (*ListTemplatesResponse) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{6} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{6} } func (x *ListTemplatesResponse) GetTemplates() []*Template { @@ -738,7 +738,7 @@ type CreateTemplateRequest struct { func (x *CreateTemplateRequest) Reset() { *x = CreateTemplateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[7] + mi := &file_alerting_v1_alerting_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -751,7 +751,7 @@ func (x *CreateTemplateRequest) String() string { func (*CreateTemplateRequest) ProtoMessage() {} func (x *CreateTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[7] + mi := &file_alerting_v1_alerting_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -764,7 +764,7 @@ func (x *CreateTemplateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTemplateRequest.ProtoReflect.Descriptor instead. func (*CreateTemplateRequest) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{7} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{7} } func (x *CreateTemplateRequest) GetYaml() string { @@ -783,7 +783,7 @@ type CreateTemplateResponse struct { func (x *CreateTemplateResponse) Reset() { *x = CreateTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[8] + mi := &file_alerting_v1_alerting_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -796,7 +796,7 @@ func (x *CreateTemplateResponse) String() string { func (*CreateTemplateResponse) ProtoMessage() {} func (x *CreateTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[8] + mi := &file_alerting_v1_alerting_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -809,7 +809,7 @@ func (x *CreateTemplateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTemplateResponse.ProtoReflect.Descriptor instead. func (*CreateTemplateResponse) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{8} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{8} } type UpdateTemplateRequest struct { @@ -826,7 +826,7 @@ type UpdateTemplateRequest struct { func (x *UpdateTemplateRequest) Reset() { *x = UpdateTemplateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[9] + mi := &file_alerting_v1_alerting_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -839,7 +839,7 @@ func (x *UpdateTemplateRequest) String() string { func (*UpdateTemplateRequest) ProtoMessage() {} func (x *UpdateTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[9] + mi := &file_alerting_v1_alerting_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -852,7 +852,7 @@ func (x *UpdateTemplateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateTemplateRequest.ProtoReflect.Descriptor instead. func (*UpdateTemplateRequest) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{9} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{9} } func (x *UpdateTemplateRequest) GetName() string { @@ -878,7 +878,7 @@ type UpdateTemplateResponse struct { func (x *UpdateTemplateResponse) Reset() { *x = UpdateTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[10] + mi := &file_alerting_v1_alerting_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -891,7 +891,7 @@ func (x *UpdateTemplateResponse) String() string { func (*UpdateTemplateResponse) ProtoMessage() {} func (x *UpdateTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[10] + mi := &file_alerting_v1_alerting_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -904,7 +904,7 @@ func (x *UpdateTemplateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateTemplateResponse.ProtoReflect.Descriptor instead. func (*UpdateTemplateResponse) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{10} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{10} } type DeleteTemplateRequest struct { @@ -918,7 +918,7 @@ type DeleteTemplateRequest struct { func (x *DeleteTemplateRequest) Reset() { *x = DeleteTemplateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[11] + mi := &file_alerting_v1_alerting_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -931,7 +931,7 @@ func (x *DeleteTemplateRequest) String() string { func (*DeleteTemplateRequest) ProtoMessage() {} func (x *DeleteTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[11] + mi := &file_alerting_v1_alerting_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -944,7 +944,7 @@ func (x *DeleteTemplateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTemplateRequest.ProtoReflect.Descriptor instead. func (*DeleteTemplateRequest) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{11} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{11} } func (x *DeleteTemplateRequest) GetName() string { @@ -963,7 +963,7 @@ type DeleteTemplateResponse struct { func (x *DeleteTemplateResponse) Reset() { *x = DeleteTemplateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[12] + mi := &file_alerting_v1_alerting_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -976,7 +976,7 @@ func (x *DeleteTemplateResponse) String() string { func (*DeleteTemplateResponse) ProtoMessage() {} func (x *DeleteTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[12] + mi := &file_alerting_v1_alerting_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -989,7 +989,7 @@ func (x *DeleteTemplateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTemplateResponse.ProtoReflect.Descriptor instead. func (*DeleteTemplateResponse) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{12} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{12} } // Filter represents a single filter condition. @@ -1006,7 +1006,7 @@ type Filter struct { func (x *Filter) Reset() { *x = Filter{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[13] + mi := &file_alerting_v1_alerting_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1019,7 +1019,7 @@ func (x *Filter) String() string { func (*Filter) ProtoMessage() {} func (x *Filter) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[13] + mi := &file_alerting_v1_alerting_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1032,7 +1032,7 @@ func (x *Filter) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter.ProtoReflect.Descriptor instead. func (*Filter) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{13} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{13} } func (x *Filter) GetType() FilterType { @@ -1079,7 +1079,7 @@ type ParamValue struct { func (x *ParamValue) Reset() { *x = ParamValue{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[14] + mi := &file_alerting_v1_alerting_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1092,7 +1092,7 @@ func (x *ParamValue) String() string { func (*ParamValue) ProtoMessage() {} func (x *ParamValue) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[14] + mi := &file_alerting_v1_alerting_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1105,7 +1105,7 @@ func (x *ParamValue) ProtoReflect() protoreflect.Message { // Deprecated: Use ParamValue.ProtoReflect.Descriptor instead. func (*ParamValue) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{14} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{14} } func (x *ParamValue) GetName() string { @@ -1203,7 +1203,7 @@ type CreateRuleRequest struct { func (x *CreateRuleRequest) Reset() { *x = CreateRuleRequest{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[15] + mi := &file_alerting_v1_alerting_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1216,7 +1216,7 @@ func (x *CreateRuleRequest) String() string { func (*CreateRuleRequest) ProtoMessage() {} func (x *CreateRuleRequest) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[15] + mi := &file_alerting_v1_alerting_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1229,7 +1229,7 @@ func (x *CreateRuleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateRuleRequest.ProtoReflect.Descriptor instead. func (*CreateRuleRequest) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{15} + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{15} } func (x *CreateRuleRequest) GetTemplateName() string { @@ -1304,7 +1304,7 @@ type CreateRuleResponse struct { func (x *CreateRuleResponse) Reset() { *x = CreateRuleResponse{} if protoimpl.UnsafeEnabled { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[16] + mi := &file_alerting_v1_alerting_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1317,7 +1317,7 @@ func (x *CreateRuleResponse) String() string { func (*CreateRuleResponse) ProtoMessage() {} func (x *CreateRuleResponse) ProtoReflect() protoreflect.Message { - mi := &file_management_v1_alerting_alerting_proto_msgTypes[16] + mi := &file_alerting_v1_alerting_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1330,284 +1330,278 @@ func (x *CreateRuleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateRuleResponse.ProtoReflect.Descriptor instead. func (*CreateRuleResponse) Descriptor() ([]byte, []int) { - return file_management_v1_alerting_alerting_proto_rawDescGZIP(), []int{16} -} - -var File_management_v1_alerting_alerting_proto protoreflect.FileDescriptor - -var file_management_v1_alerting_alerting_proto_rawDesc = []byte{ - 0x0a, 0x25, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, - 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, - 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, - 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x4b, 0x0a, 0x13, 0x42, 0x6f, 0x6f, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, - 0x6e, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0xa7, - 0x01, 0x0a, 0x14, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x61, 0x73, 0x5f, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x61, - 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x61, 0x73, 0x4d, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6d, - 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x6d, 0x69, 0x6e, 0x12, 0x17, 0x0a, - 0x07, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, - 0x68, 0x61, 0x73, 0x4d, 0x61, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x01, 0x52, 0x03, 0x6d, 0x61, 0x78, 0x22, 0x52, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, + return file_alerting_v1_alerting_proto_rawDescGZIP(), []int{16} +} + +var File_alerting_v1_alerting_proto protoreflect.FileDescriptor + +var file_alerting_v1_alerting_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, + 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, + 0x31, 0x2f, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x13, 0x42, + 0x6f, 0x6f, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x46, 0x6c, 0x61, 0x67, 0x52, + 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0xa7, 0x01, 0x0a, 0x14, 0x46, 0x6c, 0x6f, + 0x61, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x61, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x61, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0xe3, 0x02, 0x0a, - 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, - 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, - 0x12, 0x2a, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, - 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x12, 0x2a, 0x0a, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x61, 0x6c, 0x65, - 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, - 0x12, 0x39, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, - 0x6f, 0x61, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x6c, - 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, - 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0xe8, 0x04, 0x0a, 0x08, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, - 0x04, 0x65, 0x78, 0x70, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x78, 0x70, - 0x72, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x6f, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x03, 0x66, 0x6f, 0x72, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, - 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x39, 0x0a, 0x06, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x12, 0x48, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, - 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, - 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6d, - 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x79, 0x61, - 0x6d, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x01, 0x28, 0x01, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, + 0x61, 0x73, 0x4d, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x01, 0x52, 0x03, 0x6d, 0x69, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x61, 0x73, 0x5f, 0x6d, + 0x61, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x61, 0x73, 0x4d, 0x61, 0x78, + 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x6d, + 0x61, 0x78, 0x22, 0x52, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x68, + 0x61, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0a, 0x68, 0x61, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0xe3, 0x02, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, + 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, + 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, + 0x01, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x2a, 0x0a, 0x04, 0x75, 0x6e, + 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, + 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x55, 0x6e, 0x69, 0x74, + 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x6f, 0x6f, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x12, 0x39, 0x0a, 0x05, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, + 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xe8, 0x04, 0x0a, + 0x08, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x78, 0x70, 0x72, 0x12, 0x34, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x44, + 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x66, 0x6f, 0x72, 0x12, 0x33, + 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x39, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x48, + 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, + 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x39, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6a, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x06, 0x72, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x3a, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x22, 0x7f, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x09, + 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x73, 0x52, 0x06, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x73, 0x22, 0x34, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, + 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, + 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, + 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, + 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x22, 0x18, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x34, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, + 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x63, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x22, 0xa6, 0x01, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x16, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, + 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, + 0x62, 0x6f, 0x6f, 0x6c, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x18, 0x0a, 0x06, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0xdb, 0x03, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x75, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, + 0x55, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x66, 0x6f, + 0x72, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, + 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x55, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2d, 0x0a, + 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x3f, 0x0a, 0x11, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, - 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6a, 0x0a, - 0x14, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x3a, 0x0a, - 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x7f, 0x0a, 0x15, 0x4c, 0x69, 0x73, - 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x33, 0x0a, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x09, 0x74, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x74, 0x61, - 0x6c, 0x73, 0x52, 0x06, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x73, 0x22, 0x34, 0x0a, 0x15, 0x43, 0x72, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x14, 0x0a, + 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2a, 0xa6, 0x01, 0x0a, 0x0e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, + 0x54, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x45, 0x4d, 0x50, 0x4c, + 0x41, 0x54, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x42, 0x55, 0x49, 0x4c, 0x54, + 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, + 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x53, 0x41, 0x41, 0x53, 0x10, 0x02, 0x12, + 0x1d, 0x0a, 0x19, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, + 0x43, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x1c, + 0x0a, 0x18, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, + 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x41, 0x50, 0x49, 0x10, 0x04, 0x2a, 0x5a, 0x0a, 0x0a, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x49, + 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x49, 0x4c, 0x54, 0x45, + 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x10, 0x01, 0x12, 0x18, + 0x0a, 0x14, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x49, + 0x53, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x10, 0x02, 0x32, 0x98, 0x05, 0x0a, 0x0f, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7e, 0x0a, 0x0d, + 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x21, 0x2e, + 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, + 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x83, 0x01, 0x0a, + 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, + 0x22, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, - 0x22, 0x18, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x0a, 0x15, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1b, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x22, 0x18, 0x0a, - 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x18, 0x0a, - 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x17, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x22, 0xa6, 0x01, 0x0a, - 0x0a, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, - 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xdb, 0x03, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x74, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x55, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x06, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x6f, - 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x03, 0x66, 0x6f, 0x72, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, - 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, - 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x55, 0x0a, 0x0d, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x09, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0xa6, 0x01, 0x0a, 0x0e, 0x54, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x1b, - 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, - 0x18, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, - 0x5f, 0x42, 0x55, 0x49, 0x4c, 0x54, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x54, - 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x53, - 0x41, 0x41, 0x53, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, - 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x46, 0x49, - 0x4c, 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, - 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x41, 0x50, 0x49, - 0x10, 0x04, 0x2a, 0x5a, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, - 0x11, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x54, - 0x43, 0x48, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x49, 0x53, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x10, 0x02, 0x32, 0xd0, - 0x05, 0x0a, 0x0f, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x8e, - 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x12, 0x22, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, - 0x8e, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x12, 0x8e, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, - 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, - 0x2f, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x12, 0x7e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, - 0x1e, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1f, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31, - 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x42, 0xab, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x3b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, - 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x0b, 0x41, 0x6c, 0x65, - 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0b, 0x41, 0x6c, 0x65, 0x72, 0x74, - 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x17, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, - 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, + 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, + 0x67, 0x2f, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x23, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, + 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x73, + 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x42, 0xa0, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, + 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, + 0x3b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, + 0x58, 0xaa, 0x02, 0x0b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x0b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x17, + 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, + 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_management_v1_alerting_alerting_proto_rawDescOnce sync.Once - file_management_v1_alerting_alerting_proto_rawDescData = file_management_v1_alerting_alerting_proto_rawDesc + file_alerting_v1_alerting_proto_rawDescOnce sync.Once + file_alerting_v1_alerting_proto_rawDescData = file_alerting_v1_alerting_proto_rawDesc ) -func file_management_v1_alerting_alerting_proto_rawDescGZIP() []byte { - file_management_v1_alerting_alerting_proto_rawDescOnce.Do(func() { - file_management_v1_alerting_alerting_proto_rawDescData = protoimpl.X.CompressGZIP(file_management_v1_alerting_alerting_proto_rawDescData) +func file_alerting_v1_alerting_proto_rawDescGZIP() []byte { + file_alerting_v1_alerting_proto_rawDescOnce.Do(func() { + file_alerting_v1_alerting_proto_rawDescData = protoimpl.X.CompressGZIP(file_alerting_v1_alerting_proto_rawDescData) }) - return file_management_v1_alerting_alerting_proto_rawDescData + return file_alerting_v1_alerting_proto_rawDescData } var ( - file_management_v1_alerting_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_management_v1_alerting_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) - file_management_v1_alerting_alerting_proto_goTypes = []interface{}{ + file_alerting_v1_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_alerting_v1_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) + file_alerting_v1_alerting_proto_goTypes = []interface{}{ (TemplateSource)(0), // 0: alerting.v1.TemplateSource (FilterType)(0), // 1: alerting.v1.FilterType (*BoolParamDefinition)(nil), // 2: alerting.v1.BoolParamDefinition @@ -1641,7 +1635,7 @@ var ( } ) -var file_management_v1_alerting_alerting_proto_depIdxs = []int32{ +var file_alerting_v1_alerting_proto_depIdxs = []int32{ 22, // 0: alerting.v1.BoolParamDefinition.default:type_name -> management.v1.BooleanFlag 23, // 1: alerting.v1.ParamDefinition.unit:type_name -> alerting.v1.ParamUnit 24, // 2: alerting.v1.ParamDefinition.type:type_name -> alerting.v1.ParamType @@ -1682,14 +1676,14 @@ var file_management_v1_alerting_alerting_proto_depIdxs = []int32{ 0, // [0:23] is the sub-list for field type_name } -func init() { file_management_v1_alerting_alerting_proto_init() } -func file_management_v1_alerting_alerting_proto_init() { - if File_management_v1_alerting_alerting_proto != nil { +func init() { file_alerting_v1_alerting_proto_init() } +func file_alerting_v1_alerting_proto_init() { + if File_alerting_v1_alerting_proto != nil { return } - file_management_v1_alerting_params_proto_init() + file_alerting_v1_params_proto_init() if !protoimpl.UnsafeEnabled { - file_management_v1_alerting_alerting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BoolParamDefinition); i { case 0: return &v.state @@ -1701,7 +1695,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FloatParamDefinition); i { case 0: return &v.state @@ -1713,7 +1707,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StringParamDefinition); i { case 0: return &v.state @@ -1725,7 +1719,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ParamDefinition); i { case 0: return &v.state @@ -1737,7 +1731,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Template); i { case 0: return &v.state @@ -1749,7 +1743,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListTemplatesRequest); i { case 0: return &v.state @@ -1761,7 +1755,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListTemplatesResponse); i { case 0: return &v.state @@ -1773,7 +1767,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateTemplateRequest); i { case 0: return &v.state @@ -1785,7 +1779,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateTemplateResponse); i { case 0: return &v.state @@ -1797,7 +1791,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateTemplateRequest); i { case 0: return &v.state @@ -1809,7 +1803,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateTemplateResponse); i { case 0: return &v.state @@ -1821,7 +1815,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteTemplateRequest); i { case 0: return &v.state @@ -1833,7 +1827,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteTemplateResponse); i { case 0: return &v.state @@ -1845,7 +1839,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Filter); i { case 0: return &v.state @@ -1857,7 +1851,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ParamValue); i { case 0: return &v.state @@ -1869,7 +1863,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateRuleRequest); i { case 0: return &v.state @@ -1881,7 +1875,7 @@ func file_management_v1_alerting_alerting_proto_init() { return nil } } - file_management_v1_alerting_alerting_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_alerting_v1_alerting_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateRuleResponse); i { case 0: return &v.state @@ -1894,12 +1888,12 @@ func file_management_v1_alerting_alerting_proto_init() { } } } - file_management_v1_alerting_alerting_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_alerting_v1_alerting_proto_msgTypes[3].OneofWrappers = []interface{}{ (*ParamDefinition_Bool)(nil), (*ParamDefinition_Float)(nil), (*ParamDefinition_String_)(nil), } - file_management_v1_alerting_alerting_proto_msgTypes[14].OneofWrappers = []interface{}{ + file_alerting_v1_alerting_proto_msgTypes[14].OneofWrappers = []interface{}{ (*ParamValue_Bool)(nil), (*ParamValue_Float)(nil), (*ParamValue_String_)(nil), @@ -1908,19 +1902,19 @@ func file_management_v1_alerting_alerting_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_management_v1_alerting_alerting_proto_rawDesc, + RawDescriptor: file_alerting_v1_alerting_proto_rawDesc, NumEnums: 2, NumMessages: 20, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_management_v1_alerting_alerting_proto_goTypes, - DependencyIndexes: file_management_v1_alerting_alerting_proto_depIdxs, - EnumInfos: file_management_v1_alerting_alerting_proto_enumTypes, - MessageInfos: file_management_v1_alerting_alerting_proto_msgTypes, + GoTypes: file_alerting_v1_alerting_proto_goTypes, + DependencyIndexes: file_alerting_v1_alerting_proto_depIdxs, + EnumInfos: file_alerting_v1_alerting_proto_enumTypes, + MessageInfos: file_alerting_v1_alerting_proto_msgTypes, }.Build() - File_management_v1_alerting_alerting_proto = out.File - file_management_v1_alerting_alerting_proto_rawDesc = nil - file_management_v1_alerting_alerting_proto_goTypes = nil - file_management_v1_alerting_alerting_proto_depIdxs = nil + File_alerting_v1_alerting_proto = out.File + file_alerting_v1_alerting_proto_rawDesc = nil + file_alerting_v1_alerting_proto_goTypes = nil + file_alerting_v1_alerting_proto_depIdxs = nil } diff --git a/api/management/v1/alerting/alerting.pb.gw.go b/api/alerting/v1/alerting.pb.gw.go similarity index 94% rename from api/management/v1/alerting/alerting.pb.gw.go rename to api/alerting/v1/alerting.pb.gw.go index a73f5b5cebd..f7e514d63cd 100644 --- a/api/management/v1/alerting/alerting.pb.gw.go +++ b/api/alerting/v1/alerting.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: management/v1/alerting/alerting.proto +// source: alerting/v1/alerting.proto /* Package alertingv1 is a reverse proxy. @@ -206,7 +206,7 @@ func RegisterAlertingServiceHandlerServer(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/ListTemplates", runtime.WithHTTPPathPattern("/v1/management/alerting/Templates/List")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/ListTemplates", runtime.WithHTTPPathPattern("/v1/alerting/Templates/List")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -230,7 +230,7 @@ func RegisterAlertingServiceHandlerServer(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/CreateTemplate", runtime.WithHTTPPathPattern("/v1/management/alerting/Templates/Create")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/CreateTemplate", runtime.WithHTTPPathPattern("/v1/alerting/Templates/Create")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -254,7 +254,7 @@ func RegisterAlertingServiceHandlerServer(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/UpdateTemplate", runtime.WithHTTPPathPattern("/v1/management/alerting/Templates/Update")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/UpdateTemplate", runtime.WithHTTPPathPattern("/v1/alerting/Templates/Update")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -278,7 +278,7 @@ func RegisterAlertingServiceHandlerServer(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/DeleteTemplate", runtime.WithHTTPPathPattern("/v1/management/alerting/Templates/Delete")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/DeleteTemplate", runtime.WithHTTPPathPattern("/v1/alerting/Templates/Delete")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -302,7 +302,7 @@ func RegisterAlertingServiceHandlerServer(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/CreateRule", runtime.WithHTTPPathPattern("/v1/management/alerting/Rules/Create")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/alerting.v1.AlertingService/CreateRule", runtime.WithHTTPPathPattern("/v1/alerting/Rules/Create")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -364,7 +364,7 @@ func RegisterAlertingServiceHandlerClient(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/ListTemplates", runtime.WithHTTPPathPattern("/v1/management/alerting/Templates/List")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/ListTemplates", runtime.WithHTTPPathPattern("/v1/alerting/Templates/List")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -385,7 +385,7 @@ func RegisterAlertingServiceHandlerClient(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/CreateTemplate", runtime.WithHTTPPathPattern("/v1/management/alerting/Templates/Create")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/CreateTemplate", runtime.WithHTTPPathPattern("/v1/alerting/Templates/Create")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -406,7 +406,7 @@ func RegisterAlertingServiceHandlerClient(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/UpdateTemplate", runtime.WithHTTPPathPattern("/v1/management/alerting/Templates/Update")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/UpdateTemplate", runtime.WithHTTPPathPattern("/v1/alerting/Templates/Update")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -427,7 +427,7 @@ func RegisterAlertingServiceHandlerClient(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/DeleteTemplate", runtime.WithHTTPPathPattern("/v1/management/alerting/Templates/Delete")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/DeleteTemplate", runtime.WithHTTPPathPattern("/v1/alerting/Templates/Delete")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -448,7 +448,7 @@ func RegisterAlertingServiceHandlerClient(ctx context.Context, mux *runtime.Serv inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/CreateRule", runtime.WithHTTPPathPattern("/v1/management/alerting/Rules/Create")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/alerting.v1.AlertingService/CreateRule", runtime.WithHTTPPathPattern("/v1/alerting/Rules/Create")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -467,15 +467,15 @@ func RegisterAlertingServiceHandlerClient(ctx context.Context, mux *runtime.Serv } var ( - pattern_AlertingService_ListTemplates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "alerting", "Templates", "List"}, "")) + pattern_AlertingService_ListTemplates_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "alerting", "Templates", "List"}, "")) - pattern_AlertingService_CreateTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "alerting", "Templates", "Create"}, "")) + pattern_AlertingService_CreateTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "alerting", "Templates", "Create"}, "")) - pattern_AlertingService_UpdateTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "alerting", "Templates", "Update"}, "")) + pattern_AlertingService_UpdateTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "alerting", "Templates", "Update"}, "")) - pattern_AlertingService_DeleteTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "alerting", "Templates", "Delete"}, "")) + pattern_AlertingService_DeleteTemplate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "alerting", "Templates", "Delete"}, "")) - pattern_AlertingService_CreateRule_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "alerting", "Rules", "Create"}, "")) + pattern_AlertingService_CreateRule_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "alerting", "Rules", "Create"}, "")) ) var ( diff --git a/api/management/v1/alerting/alerting.pb.validate.go b/api/alerting/v1/alerting.pb.validate.go similarity index 99% rename from api/management/v1/alerting/alerting.pb.validate.go rename to api/alerting/v1/alerting.pb.validate.go index 240f536ee94..9d309ed544f 100644 --- a/api/management/v1/alerting/alerting.pb.validate.go +++ b/api/alerting/v1/alerting.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: management/v1/alerting/alerting.proto +// source: alerting/v1/alerting.proto package alertingv1 diff --git a/api/management/v1/alerting/alerting.proto b/api/alerting/v1/alerting.proto similarity index 95% rename from api/management/v1/alerting/alerting.proto rename to api/alerting/v1/alerting.proto index 2b9253225bb..792fbb82f7d 100644 --- a/api/management/v1/alerting/alerting.proto +++ b/api/alerting/v1/alerting.proto @@ -2,10 +2,10 @@ syntax = "proto3"; package alerting.v1; +import "alerting/v1/params.proto"; import "google/api/annotations.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "management/v1/alerting/params.proto"; import "management/v1/boolean_flag.proto"; import "management/v1/pagination.proto"; import "management/v1/severity.proto"; @@ -194,35 +194,35 @@ service AlertingService { // ListTemplates returns a list of all collected alert rule templates. rpc ListTemplates(ListTemplatesRequest) returns (ListTemplatesResponse) { option (google.api.http) = { - post: "/v1/management/alerting/Templates/List" + post: "/v1/alerting/Templates/List" body: "*" }; } // CreateTemplate creates a new template. rpc CreateTemplate(CreateTemplateRequest) returns (CreateTemplateResponse) { option (google.api.http) = { - post: "/v1/management/alerting/Templates/Create" + post: "/v1/alerting/Templates/Create" body: "*" }; } // UpdateTemplate updates existing template, previously created via API. rpc UpdateTemplate(UpdateTemplateRequest) returns (UpdateTemplateResponse) { option (google.api.http) = { - post: "/v1/management/alerting/Templates/Update" + post: "/v1/alerting/Templates/Update" body: "*" }; } // DeleteTemplate deletes existing, previously created via API. rpc DeleteTemplate(DeleteTemplateRequest) returns (DeleteTemplateResponse) { option (google.api.http) = { - post: "/v1/management/alerting/Templates/Delete" + post: "/v1/alerting/Templates/Delete" body: "*" }; } // CreateRule creates alerting rule from the given template. rpc CreateRule(CreateRuleRequest) returns (CreateRuleResponse) { option (google.api.http) = { - post: "/v1/management/alerting/Rules/Create" + post: "/v1/alerting/Rules/Create" body: "*" }; } diff --git a/api/management/v1/alerting/alerting_grpc.pb.go b/api/alerting/v1/alerting_grpc.pb.go similarity index 99% rename from api/management/v1/alerting/alerting_grpc.pb.go rename to api/alerting/v1/alerting_grpc.pb.go index 274c181b11f..c97b3cb036f 100644 --- a/api/management/v1/alerting/alerting_grpc.pb.go +++ b/api/alerting/v1/alerting_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: management/v1/alerting/alerting.proto +// source: alerting/v1/alerting.proto package alertingv1 @@ -267,5 +267,5 @@ var AlertingService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "management/v1/alerting/alerting.proto", + Metadata: "alerting/v1/alerting.proto", } diff --git a/api/management/v1/alerting/json/alerting.json b/api/alerting/v1/json/alerting.json similarity index 100% rename from api/management/v1/alerting/json/alerting.json rename to api/alerting/v1/json/alerting.json diff --git a/api/management/v1/alerting/json/client/alerting_service/alerting_service_client.go b/api/alerting/v1/json/client/alerting_service/alerting_service_client.go similarity index 95% rename from api/management/v1/alerting/json/client/alerting_service/alerting_service_client.go rename to api/alerting/v1/json/client/alerting_service/alerting_service_client.go index d88e4309f1f..aad7ba3bacf 100644 --- a/api/management/v1/alerting/json/client/alerting_service/alerting_service_client.go +++ b/api/alerting/v1/json/client/alerting_service/alerting_service_client.go @@ -52,7 +52,7 @@ func (a *Client) CreateRule(params *CreateRuleParams, opts ...ClientOption) (*Cr op := &runtime.ClientOperation{ ID: "CreateRule", Method: "POST", - PathPattern: "/v1/management/alerting/Rules/Create", + PathPattern: "/v1/alerting/Rules/Create", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http", "https"}, @@ -89,7 +89,7 @@ func (a *Client) CreateTemplate(params *CreateTemplateParams, opts ...ClientOpti op := &runtime.ClientOperation{ ID: "CreateTemplate", Method: "POST", - PathPattern: "/v1/management/alerting/Templates/Create", + PathPattern: "/v1/alerting/Templates/Create", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http", "https"}, @@ -126,7 +126,7 @@ func (a *Client) DeleteTemplate(params *DeleteTemplateParams, opts ...ClientOpti op := &runtime.ClientOperation{ ID: "DeleteTemplate", Method: "POST", - PathPattern: "/v1/management/alerting/Templates/Delete", + PathPattern: "/v1/alerting/Templates/Delete", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http", "https"}, @@ -163,7 +163,7 @@ func (a *Client) ListTemplates(params *ListTemplatesParams, opts ...ClientOption op := &runtime.ClientOperation{ ID: "ListTemplates", Method: "POST", - PathPattern: "/v1/management/alerting/Templates/List", + PathPattern: "/v1/alerting/Templates/List", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http", "https"}, @@ -200,7 +200,7 @@ func (a *Client) UpdateTemplate(params *UpdateTemplateParams, opts ...ClientOpti op := &runtime.ClientOperation{ ID: "UpdateTemplate", Method: "POST", - PathPattern: "/v1/management/alerting/Templates/Update", + PathPattern: "/v1/alerting/Templates/Update", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http", "https"}, diff --git a/api/management/v1/alerting/json/client/alerting_service/create_rule_parameters.go b/api/alerting/v1/json/client/alerting_service/create_rule_parameters.go similarity index 100% rename from api/management/v1/alerting/json/client/alerting_service/create_rule_parameters.go rename to api/alerting/v1/json/client/alerting_service/create_rule_parameters.go diff --git a/api/management/v1/alerting/json/client/alerting_service/create_rule_responses.go b/api/alerting/v1/json/client/alerting_service/create_rule_responses.go similarity index 98% rename from api/management/v1/alerting/json/client/alerting_service/create_rule_responses.go rename to api/alerting/v1/json/client/alerting_service/create_rule_responses.go index 70850724757..427efa0f452 100644 --- a/api/management/v1/alerting/json/client/alerting_service/create_rule_responses.go +++ b/api/alerting/v1/json/client/alerting_service/create_rule_responses.go @@ -60,7 +60,7 @@ type CreateRuleOK struct { } func (o *CreateRuleOK) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Rules/Create][%d] createRuleOk %+v", 200, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Rules/Create][%d] createRuleOk %+v", 200, o.Payload) } func (o *CreateRuleOK) GetPayload() interface{} { @@ -100,7 +100,7 @@ func (o *CreateRuleDefault) Code() int { } func (o *CreateRuleDefault) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Rules/Create][%d] CreateRule default %+v", o._statusCode, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Rules/Create][%d] CreateRule default %+v", o._statusCode, o.Payload) } func (o *CreateRuleDefault) GetPayload() *CreateRuleDefaultBody { diff --git a/api/management/v1/alerting/json/client/alerting_service/create_template_parameters.go b/api/alerting/v1/json/client/alerting_service/create_template_parameters.go similarity index 100% rename from api/management/v1/alerting/json/client/alerting_service/create_template_parameters.go rename to api/alerting/v1/json/client/alerting_service/create_template_parameters.go diff --git a/api/management/v1/alerting/json/client/alerting_service/create_template_responses.go b/api/alerting/v1/json/client/alerting_service/create_template_responses.go similarity index 96% rename from api/management/v1/alerting/json/client/alerting_service/create_template_responses.go rename to api/alerting/v1/json/client/alerting_service/create_template_responses.go index 36bbedb51c3..dbc906ff8a1 100644 --- a/api/management/v1/alerting/json/client/alerting_service/create_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/create_template_responses.go @@ -58,7 +58,7 @@ type CreateTemplateOK struct { } func (o *CreateTemplateOK) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Templates/Create][%d] createTemplateOk %+v", 200, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Templates/Create][%d] createTemplateOk %+v", 200, o.Payload) } func (o *CreateTemplateOK) GetPayload() interface{} { @@ -98,7 +98,7 @@ func (o *CreateTemplateDefault) Code() int { } func (o *CreateTemplateDefault) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Templates/Create][%d] CreateTemplate default %+v", o._statusCode, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Templates/Create][%d] CreateTemplate default %+v", o._statusCode, o.Payload) } func (o *CreateTemplateDefault) GetPayload() *CreateTemplateDefaultBody { diff --git a/api/management/v1/alerting/json/client/alerting_service/delete_template_parameters.go b/api/alerting/v1/json/client/alerting_service/delete_template_parameters.go similarity index 100% rename from api/management/v1/alerting/json/client/alerting_service/delete_template_parameters.go rename to api/alerting/v1/json/client/alerting_service/delete_template_parameters.go diff --git a/api/management/v1/alerting/json/client/alerting_service/delete_template_responses.go b/api/alerting/v1/json/client/alerting_service/delete_template_responses.go similarity index 96% rename from api/management/v1/alerting/json/client/alerting_service/delete_template_responses.go rename to api/alerting/v1/json/client/alerting_service/delete_template_responses.go index a58c86a4dd0..709e0ec114b 100644 --- a/api/management/v1/alerting/json/client/alerting_service/delete_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/delete_template_responses.go @@ -58,7 +58,7 @@ type DeleteTemplateOK struct { } func (o *DeleteTemplateOK) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Templates/Delete][%d] deleteTemplateOk %+v", 200, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Templates/Delete][%d] deleteTemplateOk %+v", 200, o.Payload) } func (o *DeleteTemplateOK) GetPayload() interface{} { @@ -98,7 +98,7 @@ func (o *DeleteTemplateDefault) Code() int { } func (o *DeleteTemplateDefault) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Templates/Delete][%d] DeleteTemplate default %+v", o._statusCode, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Templates/Delete][%d] DeleteTemplate default %+v", o._statusCode, o.Payload) } func (o *DeleteTemplateDefault) GetPayload() *DeleteTemplateDefaultBody { diff --git a/api/management/v1/alerting/json/client/alerting_service/list_templates_parameters.go b/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go similarity index 100% rename from api/management/v1/alerting/json/client/alerting_service/list_templates_parameters.go rename to api/alerting/v1/json/client/alerting_service/list_templates_parameters.go diff --git a/api/management/v1/alerting/json/client/alerting_service/list_templates_responses.go b/api/alerting/v1/json/client/alerting_service/list_templates_responses.go similarity index 99% rename from api/management/v1/alerting/json/client/alerting_service/list_templates_responses.go rename to api/alerting/v1/json/client/alerting_service/list_templates_responses.go index 86f1dc4b7e0..f7afd7834fb 100644 --- a/api/management/v1/alerting/json/client/alerting_service/list_templates_responses.go +++ b/api/alerting/v1/json/client/alerting_service/list_templates_responses.go @@ -60,7 +60,7 @@ type ListTemplatesOK struct { } func (o *ListTemplatesOK) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Templates/List][%d] listTemplatesOk %+v", 200, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Templates/List][%d] listTemplatesOk %+v", 200, o.Payload) } func (o *ListTemplatesOK) GetPayload() *ListTemplatesOKBody { @@ -102,7 +102,7 @@ func (o *ListTemplatesDefault) Code() int { } func (o *ListTemplatesDefault) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Templates/List][%d] ListTemplates default %+v", o._statusCode, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Templates/List][%d] ListTemplates default %+v", o._statusCode, o.Payload) } func (o *ListTemplatesDefault) GetPayload() *ListTemplatesDefaultBody { diff --git a/api/management/v1/alerting/json/client/alerting_service/update_template_parameters.go b/api/alerting/v1/json/client/alerting_service/update_template_parameters.go similarity index 100% rename from api/management/v1/alerting/json/client/alerting_service/update_template_parameters.go rename to api/alerting/v1/json/client/alerting_service/update_template_parameters.go diff --git a/api/management/v1/alerting/json/client/alerting_service/update_template_responses.go b/api/alerting/v1/json/client/alerting_service/update_template_responses.go similarity index 96% rename from api/management/v1/alerting/json/client/alerting_service/update_template_responses.go rename to api/alerting/v1/json/client/alerting_service/update_template_responses.go index 0b61ce12299..b58bc44fd43 100644 --- a/api/management/v1/alerting/json/client/alerting_service/update_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/update_template_responses.go @@ -58,7 +58,7 @@ type UpdateTemplateOK struct { } func (o *UpdateTemplateOK) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Templates/Update][%d] updateTemplateOk %+v", 200, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Templates/Update][%d] updateTemplateOk %+v", 200, o.Payload) } func (o *UpdateTemplateOK) GetPayload() interface{} { @@ -98,7 +98,7 @@ func (o *UpdateTemplateDefault) Code() int { } func (o *UpdateTemplateDefault) Error() string { - return fmt.Sprintf("[POST /v1/management/alerting/Templates/Update][%d] UpdateTemplate default %+v", o._statusCode, o.Payload) + return fmt.Sprintf("[POST /v1/alerting/Templates/Update][%d] UpdateTemplate default %+v", o._statusCode, o.Payload) } func (o *UpdateTemplateDefault) GetPayload() *UpdateTemplateDefaultBody { diff --git a/api/management/v1/alerting/json/client/pmm_alerting_api_client.go b/api/alerting/v1/json/client/pmm_alerting_api_client.go similarity index 97% rename from api/management/v1/alerting/json/client/pmm_alerting_api_client.go rename to api/alerting/v1/json/client/pmm_alerting_api_client.go index 425b0c1caa0..42c4b90a866 100644 --- a/api/management/v1/alerting/json/client/pmm_alerting_api_client.go +++ b/api/alerting/v1/json/client/pmm_alerting_api_client.go @@ -10,7 +10,7 @@ import ( httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/percona/pmm/api/management/v1/alerting/json/client/alerting_service" + "github.com/percona/pmm/api/alerting/v1/json/client/alerting_service" ) // Default PMM alerting API HTTP client. diff --git a/api/management/v1/alerting/json/header.json b/api/alerting/v1/json/header.json similarity index 100% rename from api/management/v1/alerting/json/header.json rename to api/alerting/v1/json/header.json diff --git a/api/alerting/v1/json/v1.json b/api/alerting/v1/json/v1.json new file mode 100644 index 00000000000..f7c94e9c7f2 --- /dev/null +++ b/api/alerting/v1/json/v1.json @@ -0,0 +1,718 @@ +{ + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https", + "http" + ], + "swagger": "2.0", + "info": { + "title": "PMM Alerting API", + "version": "v1beta1" + }, + "paths": { + "/v1/alerting/Rules/Create": { + "post": { + "tags": [ + "AlertingService" + ], + "summary": "CreateRule creates alerting rule from the given template.", + "operationId": "CreateRule", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "custom_labels": { + "description": "All custom labels to add or remove (with empty values) to default labels from template.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 7 + }, + "filters": { + "description": "Filters.", + "type": "array", + "items": { + "description": "Filter represents a single filter condition.", + "type": "object", + "properties": { + "label": { + "type": "string", + "x-order": 1 + }, + "regexp": { + "type": "string", + "x-order": 2 + }, + "type": { + "description": "FilterType represents filter matching type.", + "type": "string", + "default": "FILTER_TYPE_UNSPECIFIED", + "enum": [ + "FILTER_TYPE_UNSPECIFIED", + "FILTER_TYPE_MATCH", + "FILTER_TYPE_MISMATCH" + ], + "x-order": 0 + } + } + }, + "x-order": 8 + }, + "folder_uid": { + "description": "Folder UID.", + "type": "string", + "x-order": 3 + }, + "for": { + "description": "Rule duration. Should be set.", + "type": "string", + "x-order": 5 + }, + "group": { + "description": "Rule group name.", + "type": "string", + "x-order": 2 + }, + "name": { + "description": "Rule name.", + "type": "string", + "x-order": 1 + }, + "params": { + "description": "Rule parameters. All template parameters should be set.", + "type": "array", + "items": { + "description": "ParamValue represents a single rule parameter value.", + "type": "object", + "properties": { + "bool": { + "description": "Bool value.", + "type": "boolean", + "x-order": 2 + }, + "float": { + "description": "Float value.", + "type": "number", + "format": "double", + "x-order": 3 + }, + "name": { + "description": "Machine-readable name (ID) that is used in expression.", + "type": "string", + "x-order": 0 + }, + "string": { + "description": "String value.", + "type": "string", + "x-order": 4 + }, + "type": { + "description": "ParamType represents template parameter type.", + "type": "string", + "default": "PARAM_TYPE_UNSPECIFIED", + "enum": [ + "PARAM_TYPE_UNSPECIFIED", + "PARAM_TYPE_BOOL", + "PARAM_TYPE_FLOAT", + "PARAM_TYPE_STRING" + ], + "x-order": 1 + } + } + }, + "x-order": 4 + }, + "severity": { + "description": "Severity represents severity level of the check result or alert.", + "type": "string", + "default": "SEVERITY_UNSPECIFIED", + "enum": [ + "SEVERITY_UNSPECIFIED", + "SEVERITY_EMERGENCY", + "SEVERITY_ALERT", + "SEVERITY_CRITICAL", + "SEVERITY_ERROR", + "SEVERITY_WARNING", + "SEVERITY_NOTICE", + "SEVERITY_INFO", + "SEVERITY_DEBUG" + ], + "x-order": 6 + }, + "template_name": { + "description": "Template name.", + "type": "string", + "x-order": 0 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": false + }, + "x-order": 2 + }, + "message": { + "type": "string", + "x-order": 1 + } + } + } + } + } + } + }, + "/v1/alerting/Templates/Create": { + "post": { + "tags": [ + "AlertingService" + ], + "summary": "CreateTemplate creates a new template.", + "operationId": "CreateTemplate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "yaml": { + "description": "YAML template file content.", + "type": "string", + "x-order": 0 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": false + }, + "x-order": 2 + }, + "message": { + "type": "string", + "x-order": 1 + } + } + } + } + } + } + }, + "/v1/alerting/Templates/Delete": { + "post": { + "tags": [ + "AlertingService" + ], + "summary": "DeleteTemplate deletes existing, previously created via API.", + "operationId": "DeleteTemplate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "x-order": 0 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": false + }, + "x-order": 2 + }, + "message": { + "type": "string", + "x-order": 1 + } + } + } + } + } + } + }, + "/v1/alerting/Templates/List": { + "post": { + "tags": [ + "AlertingService" + ], + "summary": "ListTemplates returns a list of all collected alert rule templates.", + "operationId": "ListTemplates", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "page_params": { + "description": "PageParams represents page request parameters for pagination.", + "type": "object", + "properties": { + "index": { + "description": "Index of the requested page, starts from 0.", + "type": "integer", + "format": "int32", + "x-order": 1 + }, + "page_size": { + "description": "Maximum number of results per page.", + "type": "integer", + "format": "int32", + "x-order": 0 + } + }, + "x-order": 1 + }, + "reload": { + "description": "If true, template files will be re-read from disk.", + "type": "boolean", + "x-order": 0 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object", + "properties": { + "templates": { + "type": "array", + "items": { + "description": "Template represents Alert Template that is used to create Alert Rule.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 7 + }, + "created_at": { + "description": "Template creation time. Empty for built-in and SaaS templates.", + "type": "string", + "format": "date-time", + "x-order": 9 + }, + "expr": { + "description": "PromQL query expression with templating parameters.", + "type": "string", + "x-order": 2 + }, + "for": { + "description": "Default duration value.", + "type": "string", + "x-order": 4 + }, + "labels": { + "description": "Labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "name": { + "description": "Machine-readable name (ID).", + "type": "string", + "x-order": 0 + }, + "params": { + "description": "Query parameters definitions.", + "type": "array", + "items": { + "description": "ParamDefinition represents a single query parameter.", + "type": "object", + "properties": { + "bool": { + "description": "BoolParamDefinition represents boolean parameter's default value.", + "type": "object", + "properties": { + "default": { + "description": "BooleanFlag represent a command to set some boolean property to true,\nto false, or avoid changing that property.\n\n - BOOLEAN_FLAG_UNSPECIFIED: Do not change boolean property. Default value.\n - BOOLEAN_FLAG_TRUE: True.\n - BOOLEAN_FLAG_FALSE: False.", + "type": "string", + "default": "BOOLEAN_FLAG_UNSPECIFIED", + "enum": [ + "BOOLEAN_FLAG_UNSPECIFIED", + "BOOLEAN_FLAG_TRUE", + "BOOLEAN_FLAG_FALSE" + ], + "x-order": 0 + } + }, + "x-order": 4 + }, + "float": { + "description": "FloatParamDefinition represents float parameter's default value and valid range.", + "type": "object", + "properties": { + "default": { + "description": "Default value if has_default is true.", + "type": "number", + "format": "double", + "x-order": 1 + }, + "has_default": { + "description": "True if default value is set.", + "type": "boolean", + "x-order": 0 + }, + "has_max": { + "description": "True if maximal valid value is set.", + "type": "boolean", + "x-order": 4 + }, + "has_min": { + "description": "True if minimal valid value is set.", + "type": "boolean", + "x-order": 2 + }, + "max": { + "description": "Maximal valid value (inclusive) if has_max is true.", + "type": "number", + "format": "double", + "x-order": 5 + }, + "min": { + "description": "Minimal valid value (inclusive) if has_min is true.", + "type": "number", + "format": "double", + "x-order": 3 + } + }, + "x-order": 5 + }, + "name": { + "description": "Machine-readable name (ID) that is used in expression.", + "type": "string", + "x-order": 0 + }, + "string": { + "description": "StringParamDefinition represents string parameter's default value.", + "type": "object", + "properties": { + "default": { + "description": "Default value if has_default is true.", + "type": "string", + "x-order": 1 + }, + "has_default": { + "description": "True if default value is set.", + "type": "boolean", + "x-order": 0 + } + }, + "x-order": 6 + }, + "summary": { + "description": "Short human-readable parameter summary.", + "type": "string", + "x-order": 1 + }, + "type": { + "description": "ParamType represents template parameter type.", + "type": "string", + "default": "PARAM_TYPE_UNSPECIFIED", + "enum": [ + "PARAM_TYPE_UNSPECIFIED", + "PARAM_TYPE_BOOL", + "PARAM_TYPE_FLOAT", + "PARAM_TYPE_STRING" + ], + "x-order": 3 + }, + "unit": { + "description": "ParamUnit represents template parameter unit.\n\n - PARAM_UNIT_UNSPECIFIED: Invalid, unknown or absent.\n - PARAM_UNIT_PERCENTAGE: %\n - PARAM_UNIT_SECONDS: s", + "type": "string", + "default": "PARAM_UNIT_UNSPECIFIED", + "enum": [ + "PARAM_UNIT_UNSPECIFIED", + "PARAM_UNIT_PERCENTAGE", + "PARAM_UNIT_SECONDS" + ], + "x-order": 2 + } + } + }, + "x-order": 3 + }, + "severity": { + "description": "Severity represents severity level of the check result or alert.", + "type": "string", + "default": "SEVERITY_UNSPECIFIED", + "enum": [ + "SEVERITY_UNSPECIFIED", + "SEVERITY_EMERGENCY", + "SEVERITY_ALERT", + "SEVERITY_CRITICAL", + "SEVERITY_ERROR", + "SEVERITY_WARNING", + "SEVERITY_NOTICE", + "SEVERITY_INFO", + "SEVERITY_DEBUG" + ], + "x-order": 5 + }, + "source": { + "description": "TemplateSource defines template source.\n\n - TEMPLATE_SOURCE_BUILT_IN: Template that is shipped with PMM Server releases.\n - TEMPLATE_SOURCE_SAAS: Template that is downloaded from check.percona.com.\n - TEMPLATE_SOURCE_USER_FILE: Templated loaded from user-suplied file.\n - TEMPLATE_SOURCE_USER_API: Templated created via API.", + "type": "string", + "default": "TEMPLATE_SOURCE_UNSPECIFIED", + "enum": [ + "TEMPLATE_SOURCE_UNSPECIFIED", + "TEMPLATE_SOURCE_BUILT_IN", + "TEMPLATE_SOURCE_SAAS", + "TEMPLATE_SOURCE_USER_FILE", + "TEMPLATE_SOURCE_USER_API" + ], + "x-order": 8 + }, + "summary": { + "description": "Short human-readable summary.", + "type": "string", + "x-order": 1 + }, + "yaml": { + "description": "YAML template file content. Empty for built-in and SaaS templates.", + "type": "string", + "x-order": 10 + } + } + }, + "x-order": 0 + }, + "totals": { + "description": "PageTotals represents total values for pagination.", + "type": "object", + "properties": { + "total_items": { + "description": "Total number of results.", + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "total_pages": { + "description": "Total number of pages.", + "type": "integer", + "format": "int32", + "x-order": 1 + } + }, + "x-order": 1 + } + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": false + }, + "x-order": 2 + }, + "message": { + "type": "string", + "x-order": 1 + } + } + } + } + } + } + }, + "/v1/alerting/Templates/Update": { + "post": { + "tags": [ + "AlertingService" + ], + "summary": "UpdateTemplate updates existing template, previously created via API.", + "operationId": "UpdateTemplate", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "description": "Machine-readable name (ID).", + "type": "string", + "x-order": 0 + }, + "yaml": { + "description": "YAML template file content.", + "type": "string", + "x-order": 1 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": false + }, + "x-order": 2 + }, + "message": { + "type": "string", + "x-order": 1 + } + } + } + } + } + } + } + }, + "tags": [ + { + "name": "AlertingService" + } + ] +} \ No newline at end of file diff --git a/api/alerting/v1/params.pb.go b/api/alerting/v1/params.pb.go new file mode 100644 index 00000000000..130dbc625c6 --- /dev/null +++ b/api/alerting/v1/params.pb.go @@ -0,0 +1,212 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.32.0 +// protoc (unknown) +// source: alerting/v1/params.proto + +package alertingv1 + +import ( + reflect "reflect" + sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ParamUnit represents template parameter unit. +type ParamUnit int32 + +const ( + // Invalid, unknown or absent. + ParamUnit_PARAM_UNIT_UNSPECIFIED ParamUnit = 0 + // % + ParamUnit_PARAM_UNIT_PERCENTAGE ParamUnit = 1 + // s + ParamUnit_PARAM_UNIT_SECONDS ParamUnit = 2 +) + +// Enum value maps for ParamUnit. +var ( + ParamUnit_name = map[int32]string{ + 0: "PARAM_UNIT_UNSPECIFIED", + 1: "PARAM_UNIT_PERCENTAGE", + 2: "PARAM_UNIT_SECONDS", + } + ParamUnit_value = map[string]int32{ + "PARAM_UNIT_UNSPECIFIED": 0, + "PARAM_UNIT_PERCENTAGE": 1, + "PARAM_UNIT_SECONDS": 2, + } +) + +func (x ParamUnit) Enum() *ParamUnit { + p := new(ParamUnit) + *p = x + return p +} + +func (x ParamUnit) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ParamUnit) Descriptor() protoreflect.EnumDescriptor { + return file_alerting_v1_params_proto_enumTypes[0].Descriptor() +} + +func (ParamUnit) Type() protoreflect.EnumType { + return &file_alerting_v1_params_proto_enumTypes[0] +} + +func (x ParamUnit) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ParamUnit.Descriptor instead. +func (ParamUnit) EnumDescriptor() ([]byte, []int) { + return file_alerting_v1_params_proto_rawDescGZIP(), []int{0} +} + +// ParamType represents template parameter type. +type ParamType int32 + +const ( + ParamType_PARAM_TYPE_UNSPECIFIED ParamType = 0 + ParamType_PARAM_TYPE_BOOL ParamType = 1 + ParamType_PARAM_TYPE_FLOAT ParamType = 2 + ParamType_PARAM_TYPE_STRING ParamType = 3 +) + +// Enum value maps for ParamType. +var ( + ParamType_name = map[int32]string{ + 0: "PARAM_TYPE_UNSPECIFIED", + 1: "PARAM_TYPE_BOOL", + 2: "PARAM_TYPE_FLOAT", + 3: "PARAM_TYPE_STRING", + } + ParamType_value = map[string]int32{ + "PARAM_TYPE_UNSPECIFIED": 0, + "PARAM_TYPE_BOOL": 1, + "PARAM_TYPE_FLOAT": 2, + "PARAM_TYPE_STRING": 3, + } +) + +func (x ParamType) Enum() *ParamType { + p := new(ParamType) + *p = x + return p +} + +func (x ParamType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ParamType) Descriptor() protoreflect.EnumDescriptor { + return file_alerting_v1_params_proto_enumTypes[1].Descriptor() +} + +func (ParamType) Type() protoreflect.EnumType { + return &file_alerting_v1_params_proto_enumTypes[1] +} + +func (x ParamType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ParamType.Descriptor instead. +func (ParamType) EnumDescriptor() ([]byte, []int) { + return file_alerting_v1_params_proto_rawDescGZIP(), []int{1} +} + +var File_alerting_v1_params_proto protoreflect.FileDescriptor + +var file_alerting_v1_params_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2a, 0x5a, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x55, 0x4e, + 0x49, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x50, + 0x45, 0x52, 0x43, 0x45, 0x4e, 0x54, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x50, + 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, + 0x53, 0x10, 0x02, 0x2a, 0x69, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, + 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, + 0x01, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x41, 0x52, 0x41, 0x4d, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x42, 0x9e, + 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, + 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, + 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x0b, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0b, 0x41, 0x6c, 0x65, 0x72, 0x74, + 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x17, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, + 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_alerting_v1_params_proto_rawDescOnce sync.Once + file_alerting_v1_params_proto_rawDescData = file_alerting_v1_params_proto_rawDesc +) + +func file_alerting_v1_params_proto_rawDescGZIP() []byte { + file_alerting_v1_params_proto_rawDescOnce.Do(func() { + file_alerting_v1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_alerting_v1_params_proto_rawDescData) + }) + return file_alerting_v1_params_proto_rawDescData +} + +var ( + file_alerting_v1_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_alerting_v1_params_proto_goTypes = []interface{}{ + (ParamUnit)(0), // 0: alerting.v1.ParamUnit + (ParamType)(0), // 1: alerting.v1.ParamType + } +) + +var file_alerting_v1_params_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_alerting_v1_params_proto_init() } +func file_alerting_v1_params_proto_init() { + if File_alerting_v1_params_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_alerting_v1_params_proto_rawDesc, + NumEnums: 2, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_alerting_v1_params_proto_goTypes, + DependencyIndexes: file_alerting_v1_params_proto_depIdxs, + EnumInfos: file_alerting_v1_params_proto_enumTypes, + }.Build() + File_alerting_v1_params_proto = out.File + file_alerting_v1_params_proto_rawDesc = nil + file_alerting_v1_params_proto_goTypes = nil + file_alerting_v1_params_proto_depIdxs = nil +} diff --git a/api/management/v1/alerting/params.pb.validate.go b/api/alerting/v1/params.pb.validate.go similarity index 91% rename from api/management/v1/alerting/params.pb.validate.go rename to api/alerting/v1/params.pb.validate.go index 28b56d52e44..afe32b2c093 100644 --- a/api/management/v1/alerting/params.pb.validate.go +++ b/api/alerting/v1/params.pb.validate.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: management/v1/alerting/params.proto +// source: alerting/v1/params.proto package alertingv1 diff --git a/api/management/v1/alerting/params.proto b/api/alerting/v1/params.proto similarity index 100% rename from api/management/v1/alerting/params.proto rename to api/alerting/v1/params.proto diff --git a/api/management/v1/alerting/params.pb.go b/api/management/v1/alerting/params.pb.go deleted file mode 100644 index 53b6dd82cfb..00000000000 --- a/api/management/v1/alerting/params.pb.go +++ /dev/null @@ -1,213 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.32.0 -// protoc (unknown) -// source: management/v1/alerting/params.proto - -package alertingv1 - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// ParamUnit represents template parameter unit. -type ParamUnit int32 - -const ( - // Invalid, unknown or absent. - ParamUnit_PARAM_UNIT_UNSPECIFIED ParamUnit = 0 - // % - ParamUnit_PARAM_UNIT_PERCENTAGE ParamUnit = 1 - // s - ParamUnit_PARAM_UNIT_SECONDS ParamUnit = 2 -) - -// Enum value maps for ParamUnit. -var ( - ParamUnit_name = map[int32]string{ - 0: "PARAM_UNIT_UNSPECIFIED", - 1: "PARAM_UNIT_PERCENTAGE", - 2: "PARAM_UNIT_SECONDS", - } - ParamUnit_value = map[string]int32{ - "PARAM_UNIT_UNSPECIFIED": 0, - "PARAM_UNIT_PERCENTAGE": 1, - "PARAM_UNIT_SECONDS": 2, - } -) - -func (x ParamUnit) Enum() *ParamUnit { - p := new(ParamUnit) - *p = x - return p -} - -func (x ParamUnit) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ParamUnit) Descriptor() protoreflect.EnumDescriptor { - return file_management_v1_alerting_params_proto_enumTypes[0].Descriptor() -} - -func (ParamUnit) Type() protoreflect.EnumType { - return &file_management_v1_alerting_params_proto_enumTypes[0] -} - -func (x ParamUnit) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ParamUnit.Descriptor instead. -func (ParamUnit) EnumDescriptor() ([]byte, []int) { - return file_management_v1_alerting_params_proto_rawDescGZIP(), []int{0} -} - -// ParamType represents template parameter type. -type ParamType int32 - -const ( - ParamType_PARAM_TYPE_UNSPECIFIED ParamType = 0 - ParamType_PARAM_TYPE_BOOL ParamType = 1 - ParamType_PARAM_TYPE_FLOAT ParamType = 2 - ParamType_PARAM_TYPE_STRING ParamType = 3 -) - -// Enum value maps for ParamType. -var ( - ParamType_name = map[int32]string{ - 0: "PARAM_TYPE_UNSPECIFIED", - 1: "PARAM_TYPE_BOOL", - 2: "PARAM_TYPE_FLOAT", - 3: "PARAM_TYPE_STRING", - } - ParamType_value = map[string]int32{ - "PARAM_TYPE_UNSPECIFIED": 0, - "PARAM_TYPE_BOOL": 1, - "PARAM_TYPE_FLOAT": 2, - "PARAM_TYPE_STRING": 3, - } -) - -func (x ParamType) Enum() *ParamType { - p := new(ParamType) - *p = x - return p -} - -func (x ParamType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ParamType) Descriptor() protoreflect.EnumDescriptor { - return file_management_v1_alerting_params_proto_enumTypes[1].Descriptor() -} - -func (ParamType) Type() protoreflect.EnumType { - return &file_management_v1_alerting_params_proto_enumTypes[1] -} - -func (x ParamType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ParamType.Descriptor instead. -func (ParamType) EnumDescriptor() ([]byte, []int) { - return file_management_v1_alerting_params_proto_rawDescGZIP(), []int{1} -} - -var File_management_v1_alerting_params_proto protoreflect.FileDescriptor - -var file_management_v1_alerting_params_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x2a, 0x5a, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x12, - 0x1a, 0x0a, 0x16, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, - 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x50, 0x45, 0x52, 0x43, 0x45, 0x4e, - 0x54, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, - 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x53, 0x10, 0x02, 0x2a, 0x69, - 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x50, - 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x41, 0x52, 0x41, 0x4d, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, - 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, - 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x42, 0xa9, 0x01, 0x0a, 0x0f, 0x63, 0x6f, - 0x6d, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, - 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x3b, - 0x61, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, - 0xaa, 0x02, 0x0b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x0b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x17, 0x41, - 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x69, 0x6e, - 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_management_v1_alerting_params_proto_rawDescOnce sync.Once - file_management_v1_alerting_params_proto_rawDescData = file_management_v1_alerting_params_proto_rawDesc -) - -func file_management_v1_alerting_params_proto_rawDescGZIP() []byte { - file_management_v1_alerting_params_proto_rawDescOnce.Do(func() { - file_management_v1_alerting_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_management_v1_alerting_params_proto_rawDescData) - }) - return file_management_v1_alerting_params_proto_rawDescData -} - -var ( - file_management_v1_alerting_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_management_v1_alerting_params_proto_goTypes = []interface{}{ - (ParamUnit)(0), // 0: alerting.v1.ParamUnit - (ParamType)(0), // 1: alerting.v1.ParamType - } -) - -var file_management_v1_alerting_params_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_management_v1_alerting_params_proto_init() } -func file_management_v1_alerting_params_proto_init() { - if File_management_v1_alerting_params_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_management_v1_alerting_params_proto_rawDesc, - NumEnums: 2, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_management_v1_alerting_params_proto_goTypes, - DependencyIndexes: file_management_v1_alerting_params_proto_depIdxs, - EnumInfos: file_management_v1_alerting_params_proto_enumTypes, - }.Build() - File_management_v1_alerting_params_proto = out.File - file_management_v1_alerting_params_proto_rawDesc = nil - file_management_v1_alerting_params_proto_goTypes = nil - file_management_v1_alerting_params_proto_depIdxs = nil -} diff --git a/descriptor.bin b/descriptor.bin index 709d83ede2ed68a67b318291550c8886ed216b14..111c983a22fb3ea3c089babe91379e5118d83303 100644 GIT binary patch delta 525 zcmbPpRCDoB&4w1nEleNou}oaa$~Aq12dC6_zWYpHN}2jOx3h#YvoJBVN=mUpVxEFydTL&YLP@@YXI>eQm0wh;r{JHLQ>l=jmkJav(9KCL zOU+RzNGwXsO)W_+QYg;IFU?6&NJ<5Y6&I(bOz#h8R%LuWeQP*#2l}jQqC$*>~GcR4g%y4`0CAMI0{@w^K zDJ0S95AL$n@Sv)@$F_u9bOtLIzavz4aB5LmW^$@f-E`eoY~lQBO_!fcW>Tg}vW=1YP=c3fa=?`DCNlyRsicMfT*Bdqw5KEk21FS;{q(c^@L-#eCG+0My zK?+ny?`xP2APZB+KA;Z9=IOUyvqfW==KlsLS3EuY4Vxdo3fLw&kWG>xn=Zd$OJr2q gZu*w(z0CG|!fe(1+EuvNftUk`Ik&5DaaBYB08dx92VRva?^7o znHAbkM=%31%l6X|ti`*xZ}4WT-Y4~ol}kA{F)uMaH8(Y{M8C{XKQSk@s3bEleY>v+ zTQIlO?FcSa>GG4wOuAN#T1pxq=OFB!o}kMnGX0$n8#`m)^lyaK zN&}VE=n^(k%q2A^wIo%jj*H8=C^fMpHK;TvRY-2Spcb3lbUi&brRf_@fi6wZV@qJv a-F{Gy?Y&I9HWxb(a{w{tc5N=MiU