diff --git a/pkg/server/alert/alert_notification.go b/pkg/server/alert/alert_notification.go index 33d6543..e55d43f 100644 --- a/pkg/server/alert/alert_notification.go +++ b/pkg/server/alert/alert_notification.go @@ -219,11 +219,12 @@ func (a *AlertService) TestNotification(ctx context.Context, req *alert.TestNoti return &empty.Empty{}, nil } -func (a *AlertService) RequestNotification(ctx context.Context, req *alert.SendNotificationRequest) (*empty.Empty, error) { +func (a *AlertService) RequestAuthzNotification(ctx context.Context, req *alert.RequestAuthzNotificationRequest) (*empty.Empty, error) { if err := req.Validate(); err != nil { return nil, err } - notification, err := a.repository.GetNotification(ctx, req.ProjectId, req.NotificationId) + notifications, err := a.repository.ListNotification(ctx, req.ProjectId, "slack", 0, time.Now().Unix()) + notification := &(*notifications)[0] if err != nil { if errors.Is(err, gorm.ErrRecordNotFound) { return &empty.Empty{}, nil @@ -232,7 +233,7 @@ func (a *AlertService) RequestNotification(ctx context.Context, req *alert.SendN } switch notification.Type { case "slack": - err = a.sendSlackRequestNotification(ctx, a.baseURL, notification.NotifySetting, a.defaultLocale, "s", "k") + err = a.sendSlackRequestAuthzNotification(ctx, a.baseURL, notification.NotifySetting, a.defaultLocale, req.ProjectName, req.UserName) if err != nil { a.logger.Errorf(ctx, "Error occured when sending test slack notification. err: %v", err) return nil, err diff --git a/pkg/server/alert/alert_slack.go b/pkg/server/alert/alert_slack.go index 3322af2..3f8086c 100644 --- a/pkg/server/alert/alert_slack.go +++ b/pkg/server/alert/alert_slack.go @@ -37,14 +37,14 @@ const ( - Remove the root cause of the problem - If it is an intentional setup/operation and the risk is small, archive it - If the nature of the problem is not urgent and immediate action is difficult, set a target deadline and PEND` - slackNotificationAttachmentJa = "その他、%d件すべてのFindingは <%s/alert/alert?project_id=%d&from=slack|アラート画面> からご確認ください。" - slackNotificationAttachmentEn = "Please check all %d Findings from <%s/alert/alert?project_id=%d&from=slack|Alert screen>." - slackNotificationTestMessageJa = "RISKENからのテスト通知です" - slackNotificationTestMessageEn = "This is a test notification from RISKEN" - slackRequestNotificationMessageJa = `%sさんが + slackNotificationAttachmentJa = "その他、%d件すべてのFindingは <%s/alert/alert?project_id=%d&from=slack|アラート画面> からご確認ください。" + slackNotificationAttachmentEn = "Please check all %d Findings from <%s/alert/alert?project_id=%d&from=slack|Alert screen>." + slackNotificationTestMessageJa = "RISKENからのテスト通知です" + slackNotificationTestMessageEn = "This is a test notification from RISKEN" + slackRequestAuthzNotificationMessageJa = `%sさんが あなたのプロジェクト%sへの権限を申請しました。 問題なければ次のリンクから%sさんを追加してください。` - slackRequestNotificationMessageEn = `%s %s %s` + slackRequestAuthzNotificationMessageEn = `%s %s %s` ) func (a *AlertService) sendSlackNotification( @@ -115,7 +115,7 @@ func (a *AlertService) sendSlackTestNotification(ctx context.Context, url, notif return nil } -func (a *AlertService) sendSlackRequestNotification(ctx context.Context, url, notifySetting, defaultLocale, userName, projectName string) error { +func (a *AlertService) sendSlackRequestAuthzNotification(ctx context.Context, url, notifySetting, defaultLocale, userName, projectName string) error { var setting slackNotifySetting if err := json.Unmarshal([]byte(notifySetting), &setting); err != nil { return err @@ -132,13 +132,13 @@ func (a *AlertService) sendSlackRequestNotification(ctx context.Context, url, no } if setting.WebhookURL != "" { - webhookMsg := getRequestWebhookMessage(setting.Data.Channel, locale, userName, projectName) + webhookMsg := getRequestAuthzWebhookMessage(setting.Data.Channel, locale, userName, projectName) if err := slack.PostWebhook(setting.WebhookURL, webhookMsg); err != nil { return fmt.Errorf("failed to send slack(webhookurl): %w", err) } } else if setting.ChannelID != "" { if err := a.postMessageSlackWithRetry(ctx, - setting.ChannelID, slack.MsgOptionText(getRequestSlackMessageText(locale, userName, projectName), false)); err != nil { + setting.ChannelID, slack.MsgOptionText(getRequestAuthzSlackMessageText(locale, userName, projectName), false)); err != nil { return fmt.Errorf("failed to send slack(postmessage): %w", err) } } @@ -284,9 +284,9 @@ func getTestSlackMessageText(locale string) string { return msgText } -func getRequestWebhookMessage(channel, locale, userName, projectName string) *slack.WebhookMessage { +func getRequestAuthzWebhookMessage(channel, locale, userName, projectName string) *slack.WebhookMessage { msg := slack.WebhookMessage{ - Text: getRequestSlackMessageText(locale, userName, projectName), + Text: getRequestAuthzSlackMessageText(locale, userName, projectName), } // override message if channel != "" { @@ -295,13 +295,13 @@ func getRequestWebhookMessage(channel, locale, userName, projectName string) *sl return &msg } -func getRequestSlackMessageText(locale, userName, projectName string) string { +func getRequestAuthzSlackMessageText(locale, userName, projectName string) string { var msgText string switch locale { case LocaleJa: - msgText = slackRequestNotificationMessageJa + msgText = slackRequestAuthzNotificationMessageJa default: - msgText = slackRequestNotificationMessageEn + msgText = slackRequestAuthzNotificationMessageEn } return fmt.Sprintf(msgText, userName, projectName, userName) } diff --git a/proto/alert/entity.pb.go b/proto/alert/entity.pb.go index dfb9fdf..cee9be5 100644 --- a/proto/alert/entity.pb.go +++ b/proto/alert/entity.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: alert/entity.proto package alert diff --git a/proto/alert/mocks/AlertServiceClient.go b/proto/alert/mocks/AlertServiceClient.go index bb0fad2..e7367fd 100644 --- a/proto/alert/mocks/AlertServiceClient.go +++ b/proto/alert/mocks/AlertServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -30,6 +30,10 @@ func (_m *AlertServiceClient) AnalyzeAlert(ctx context.Context, in *alert.Analyz _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for AnalyzeAlert") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.AnalyzeAlertRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -63,6 +67,10 @@ func (_m *AlertServiceClient) AnalyzeAlertAll(ctx context.Context, in *emptypb.E _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for AnalyzeAlertAll") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -96,6 +104,10 @@ func (_m *AlertServiceClient) DeleteAlert(ctx context.Context, in *alert.DeleteA _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteAlert") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -129,6 +141,10 @@ func (_m *AlertServiceClient) DeleteAlertCondNotification(ctx context.Context, i _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertCondNotification") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertCondNotificationRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -162,6 +178,10 @@ func (_m *AlertServiceClient) DeleteAlertCondRule(ctx context.Context, in *alert _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertCondRule") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertCondRuleRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -195,6 +215,10 @@ func (_m *AlertServiceClient) DeleteAlertCondition(ctx context.Context, in *aler _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertCondition") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertConditionRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -228,6 +252,10 @@ func (_m *AlertServiceClient) DeleteAlertHistory(ctx context.Context, in *alert. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertHistory") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertHistoryRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -261,6 +289,10 @@ func (_m *AlertServiceClient) DeleteAlertRule(ctx context.Context, in *alert.Del _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertRule") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertRuleRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -294,6 +326,10 @@ func (_m *AlertServiceClient) DeleteNotification(ctx context.Context, in *alert. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteNotification") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteNotificationRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -327,6 +363,10 @@ func (_m *AlertServiceClient) DeleteRelAlertFinding(ctx context.Context, in *ale _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteRelAlertFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteRelAlertFindingRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -360,6 +400,10 @@ func (_m *AlertServiceClient) GetAlert(ctx context.Context, in *alert.GetAlertRe _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetAlert") + } + var r0 *alert.GetAlertResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertRequest, ...grpc.CallOption) (*alert.GetAlertResponse, error)); ok { @@ -393,6 +437,10 @@ func (_m *AlertServiceClient) GetAlertCondNotification(ctx context.Context, in * _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetAlertCondNotification") + } + var r0 *alert.GetAlertCondNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertCondNotificationRequest, ...grpc.CallOption) (*alert.GetAlertCondNotificationResponse, error)); ok { @@ -426,6 +474,10 @@ func (_m *AlertServiceClient) GetAlertCondRule(ctx context.Context, in *alert.Ge _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetAlertCondRule") + } + var r0 *alert.GetAlertCondRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertCondRuleRequest, ...grpc.CallOption) (*alert.GetAlertCondRuleResponse, error)); ok { @@ -459,6 +511,10 @@ func (_m *AlertServiceClient) GetAlertCondition(ctx context.Context, in *alert.G _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetAlertCondition") + } + var r0 *alert.GetAlertConditionResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertConditionRequest, ...grpc.CallOption) (*alert.GetAlertConditionResponse, error)); ok { @@ -492,6 +548,10 @@ func (_m *AlertServiceClient) GetAlertHistory(ctx context.Context, in *alert.Get _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetAlertHistory") + } + var r0 *alert.GetAlertHistoryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertHistoryRequest, ...grpc.CallOption) (*alert.GetAlertHistoryResponse, error)); ok { @@ -525,6 +585,10 @@ func (_m *AlertServiceClient) GetAlertRule(ctx context.Context, in *alert.GetAle _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetAlertRule") + } + var r0 *alert.GetAlertRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertRuleRequest, ...grpc.CallOption) (*alert.GetAlertRuleResponse, error)); ok { @@ -558,6 +622,10 @@ func (_m *AlertServiceClient) GetNotification(ctx context.Context, in *alert.Get _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetNotification") + } + var r0 *alert.GetNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetNotificationRequest, ...grpc.CallOption) (*alert.GetNotificationResponse, error)); ok { @@ -591,6 +659,10 @@ func (_m *AlertServiceClient) GetRelAlertFinding(ctx context.Context, in *alert. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetRelAlertFinding") + } + var r0 *alert.GetRelAlertFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetRelAlertFindingRequest, ...grpc.CallOption) (*alert.GetRelAlertFindingResponse, error)); ok { @@ -624,6 +696,10 @@ func (_m *AlertServiceClient) ListAlert(ctx context.Context, in *alert.ListAlert _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListAlert") + } + var r0 *alert.ListAlertResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertRequest, ...grpc.CallOption) (*alert.ListAlertResponse, error)); ok { @@ -657,6 +733,10 @@ func (_m *AlertServiceClient) ListAlertCondNotification(ctx context.Context, in _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListAlertCondNotification") + } + var r0 *alert.ListAlertCondNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertCondNotificationRequest, ...grpc.CallOption) (*alert.ListAlertCondNotificationResponse, error)); ok { @@ -690,6 +770,10 @@ func (_m *AlertServiceClient) ListAlertCondRule(ctx context.Context, in *alert.L _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListAlertCondRule") + } + var r0 *alert.ListAlertCondRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertCondRuleRequest, ...grpc.CallOption) (*alert.ListAlertCondRuleResponse, error)); ok { @@ -723,6 +807,10 @@ func (_m *AlertServiceClient) ListAlertCondition(ctx context.Context, in *alert. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListAlertCondition") + } + var r0 *alert.ListAlertConditionResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertConditionRequest, ...grpc.CallOption) (*alert.ListAlertConditionResponse, error)); ok { @@ -756,6 +844,10 @@ func (_m *AlertServiceClient) ListAlertHistory(ctx context.Context, in *alert.Li _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListAlertHistory") + } + var r0 *alert.ListAlertHistoryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertHistoryRequest, ...grpc.CallOption) (*alert.ListAlertHistoryResponse, error)); ok { @@ -789,6 +881,10 @@ func (_m *AlertServiceClient) ListAlertRule(ctx context.Context, in *alert.ListA _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListAlertRule") + } + var r0 *alert.ListAlertRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertRuleRequest, ...grpc.CallOption) (*alert.ListAlertRuleResponse, error)); ok { @@ -822,6 +918,10 @@ func (_m *AlertServiceClient) ListNotification(ctx context.Context, in *alert.Li _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListNotification") + } + var r0 *alert.ListNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListNotificationRequest, ...grpc.CallOption) (*alert.ListNotificationResponse, error)); ok { @@ -855,6 +955,10 @@ func (_m *AlertServiceClient) ListNotificationForInternal(ctx context.Context, i _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListNotificationForInternal") + } + var r0 *alert.ListNotificationForInternalResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListNotificationForInternalRequest, ...grpc.CallOption) (*alert.ListNotificationForInternalResponse, error)); ok { @@ -888,6 +992,10 @@ func (_m *AlertServiceClient) ListRelAlertFinding(ctx context.Context, in *alert _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListRelAlertFinding") + } + var r0 *alert.ListRelAlertFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListRelAlertFindingRequest, ...grpc.CallOption) (*alert.ListRelAlertFindingResponse, error)); ok { @@ -921,6 +1029,10 @@ func (_m *AlertServiceClient) PutAlert(ctx context.Context, in *alert.PutAlertRe _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutAlert") + } + var r0 *alert.PutAlertResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertRequest, ...grpc.CallOption) (*alert.PutAlertResponse, error)); ok { @@ -954,6 +1066,10 @@ func (_m *AlertServiceClient) PutAlertCondNotification(ctx context.Context, in * _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutAlertCondNotification") + } + var r0 *alert.PutAlertCondNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertCondNotificationRequest, ...grpc.CallOption) (*alert.PutAlertCondNotificationResponse, error)); ok { @@ -987,6 +1103,10 @@ func (_m *AlertServiceClient) PutAlertCondRule(ctx context.Context, in *alert.Pu _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutAlertCondRule") + } + var r0 *alert.PutAlertCondRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertCondRuleRequest, ...grpc.CallOption) (*alert.PutAlertCondRuleResponse, error)); ok { @@ -1020,6 +1140,10 @@ func (_m *AlertServiceClient) PutAlertCondition(ctx context.Context, in *alert.P _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutAlertCondition") + } + var r0 *alert.PutAlertConditionResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertConditionRequest, ...grpc.CallOption) (*alert.PutAlertConditionResponse, error)); ok { @@ -1053,6 +1177,10 @@ func (_m *AlertServiceClient) PutAlertFirstViewedAt(ctx context.Context, in *ale _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutAlertFirstViewedAt") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertFirstViewedAtRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -1086,6 +1214,10 @@ func (_m *AlertServiceClient) PutAlertHistory(ctx context.Context, in *alert.Put _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutAlertHistory") + } + var r0 *alert.PutAlertHistoryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertHistoryRequest, ...grpc.CallOption) (*alert.PutAlertHistoryResponse, error)); ok { @@ -1119,6 +1251,10 @@ func (_m *AlertServiceClient) PutAlertRule(ctx context.Context, in *alert.PutAle _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutAlertRule") + } + var r0 *alert.PutAlertRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertRuleRequest, ...grpc.CallOption) (*alert.PutAlertRuleResponse, error)); ok { @@ -1152,6 +1288,10 @@ func (_m *AlertServiceClient) PutNotification(ctx context.Context, in *alert.Put _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutNotification") + } + var r0 *alert.PutNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutNotificationRequest, ...grpc.CallOption) (*alert.PutNotificationResponse, error)); ok { @@ -1185,6 +1325,10 @@ func (_m *AlertServiceClient) PutRelAlertFinding(ctx context.Context, in *alert. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutRelAlertFinding") + } + var r0 *alert.PutRelAlertFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutRelAlertFindingRequest, ...grpc.CallOption) (*alert.PutRelAlertFindingResponse, error)); ok { @@ -1207,6 +1351,43 @@ func (_m *AlertServiceClient) PutRelAlertFinding(ctx context.Context, in *alert. return r0, r1 } +// RequestAuthzNotification provides a mock function with given fields: ctx, in, opts +func (_m *AlertServiceClient) RequestAuthzNotification(ctx context.Context, in *alert.RequestAuthzNotificationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for RequestAuthzNotification") + } + + var r0 *emptypb.Empty + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *alert.RequestAuthzNotificationRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { + return rf(ctx, in, opts...) + } + if rf, ok := ret.Get(0).(func(context.Context, *alert.RequestAuthzNotificationRequest, ...grpc.CallOption) *emptypb.Empty); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*emptypb.Empty) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *alert.RequestAuthzNotificationRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // TestNotification provides a mock function with given fields: ctx, in, opts func (_m *AlertServiceClient) TestNotification(ctx context.Context, in *alert.TestNotificationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { _va := make([]interface{}, len(opts)) @@ -1218,6 +1399,10 @@ func (_m *AlertServiceClient) TestNotification(ctx context.Context, in *alert.Te _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for TestNotification") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.TestNotificationRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { diff --git a/proto/alert/mocks/AlertServiceServer.go b/proto/alert/mocks/AlertServiceServer.go index 708f881..5ebac46 100644 --- a/proto/alert/mocks/AlertServiceServer.go +++ b/proto/alert/mocks/AlertServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -21,6 +21,10 @@ type AlertServiceServer struct { func (_m *AlertServiceServer) AnalyzeAlert(_a0 context.Context, _a1 *alert.AnalyzeAlertRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AnalyzeAlert") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.AnalyzeAlertRequest) (*emptypb.Empty, error)); ok { @@ -47,6 +51,10 @@ func (_m *AlertServiceServer) AnalyzeAlert(_a0 context.Context, _a1 *alert.Analy func (_m *AlertServiceServer) AnalyzeAlertAll(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AnalyzeAlertAll") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty) (*emptypb.Empty, error)); ok { @@ -73,6 +81,10 @@ func (_m *AlertServiceServer) AnalyzeAlertAll(_a0 context.Context, _a1 *emptypb. func (_m *AlertServiceServer) DeleteAlert(_a0 context.Context, _a1 *alert.DeleteAlertRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteAlert") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertRequest) (*emptypb.Empty, error)); ok { @@ -99,6 +111,10 @@ func (_m *AlertServiceServer) DeleteAlert(_a0 context.Context, _a1 *alert.Delete func (_m *AlertServiceServer) DeleteAlertCondNotification(_a0 context.Context, _a1 *alert.DeleteAlertCondNotificationRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertCondNotification") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertCondNotificationRequest) (*emptypb.Empty, error)); ok { @@ -125,6 +141,10 @@ func (_m *AlertServiceServer) DeleteAlertCondNotification(_a0 context.Context, _ func (_m *AlertServiceServer) DeleteAlertCondRule(_a0 context.Context, _a1 *alert.DeleteAlertCondRuleRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertCondRule") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertCondRuleRequest) (*emptypb.Empty, error)); ok { @@ -151,6 +171,10 @@ func (_m *AlertServiceServer) DeleteAlertCondRule(_a0 context.Context, _a1 *aler func (_m *AlertServiceServer) DeleteAlertCondition(_a0 context.Context, _a1 *alert.DeleteAlertConditionRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertCondition") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertConditionRequest) (*emptypb.Empty, error)); ok { @@ -177,6 +201,10 @@ func (_m *AlertServiceServer) DeleteAlertCondition(_a0 context.Context, _a1 *ale func (_m *AlertServiceServer) DeleteAlertHistory(_a0 context.Context, _a1 *alert.DeleteAlertHistoryRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertHistory") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertHistoryRequest) (*emptypb.Empty, error)); ok { @@ -203,6 +231,10 @@ func (_m *AlertServiceServer) DeleteAlertHistory(_a0 context.Context, _a1 *alert func (_m *AlertServiceServer) DeleteAlertRule(_a0 context.Context, _a1 *alert.DeleteAlertRuleRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteAlertRule") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteAlertRuleRequest) (*emptypb.Empty, error)); ok { @@ -229,6 +261,10 @@ func (_m *AlertServiceServer) DeleteAlertRule(_a0 context.Context, _a1 *alert.De func (_m *AlertServiceServer) DeleteNotification(_a0 context.Context, _a1 *alert.DeleteNotificationRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteNotification") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteNotificationRequest) (*emptypb.Empty, error)); ok { @@ -255,6 +291,10 @@ func (_m *AlertServiceServer) DeleteNotification(_a0 context.Context, _a1 *alert func (_m *AlertServiceServer) DeleteRelAlertFinding(_a0 context.Context, _a1 *alert.DeleteRelAlertFindingRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteRelAlertFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.DeleteRelAlertFindingRequest) (*emptypb.Empty, error)); ok { @@ -281,6 +321,10 @@ func (_m *AlertServiceServer) DeleteRelAlertFinding(_a0 context.Context, _a1 *al func (_m *AlertServiceServer) GetAlert(_a0 context.Context, _a1 *alert.GetAlertRequest) (*alert.GetAlertResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetAlert") + } + var r0 *alert.GetAlertResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertRequest) (*alert.GetAlertResponse, error)); ok { @@ -307,6 +351,10 @@ func (_m *AlertServiceServer) GetAlert(_a0 context.Context, _a1 *alert.GetAlertR func (_m *AlertServiceServer) GetAlertCondNotification(_a0 context.Context, _a1 *alert.GetAlertCondNotificationRequest) (*alert.GetAlertCondNotificationResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetAlertCondNotification") + } + var r0 *alert.GetAlertCondNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertCondNotificationRequest) (*alert.GetAlertCondNotificationResponse, error)); ok { @@ -333,6 +381,10 @@ func (_m *AlertServiceServer) GetAlertCondNotification(_a0 context.Context, _a1 func (_m *AlertServiceServer) GetAlertCondRule(_a0 context.Context, _a1 *alert.GetAlertCondRuleRequest) (*alert.GetAlertCondRuleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetAlertCondRule") + } + var r0 *alert.GetAlertCondRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertCondRuleRequest) (*alert.GetAlertCondRuleResponse, error)); ok { @@ -359,6 +411,10 @@ func (_m *AlertServiceServer) GetAlertCondRule(_a0 context.Context, _a1 *alert.G func (_m *AlertServiceServer) GetAlertCondition(_a0 context.Context, _a1 *alert.GetAlertConditionRequest) (*alert.GetAlertConditionResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetAlertCondition") + } + var r0 *alert.GetAlertConditionResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertConditionRequest) (*alert.GetAlertConditionResponse, error)); ok { @@ -385,6 +441,10 @@ func (_m *AlertServiceServer) GetAlertCondition(_a0 context.Context, _a1 *alert. func (_m *AlertServiceServer) GetAlertHistory(_a0 context.Context, _a1 *alert.GetAlertHistoryRequest) (*alert.GetAlertHistoryResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetAlertHistory") + } + var r0 *alert.GetAlertHistoryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertHistoryRequest) (*alert.GetAlertHistoryResponse, error)); ok { @@ -411,6 +471,10 @@ func (_m *AlertServiceServer) GetAlertHistory(_a0 context.Context, _a1 *alert.Ge func (_m *AlertServiceServer) GetAlertRule(_a0 context.Context, _a1 *alert.GetAlertRuleRequest) (*alert.GetAlertRuleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetAlertRule") + } + var r0 *alert.GetAlertRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetAlertRuleRequest) (*alert.GetAlertRuleResponse, error)); ok { @@ -437,6 +501,10 @@ func (_m *AlertServiceServer) GetAlertRule(_a0 context.Context, _a1 *alert.GetAl func (_m *AlertServiceServer) GetNotification(_a0 context.Context, _a1 *alert.GetNotificationRequest) (*alert.GetNotificationResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetNotification") + } + var r0 *alert.GetNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetNotificationRequest) (*alert.GetNotificationResponse, error)); ok { @@ -463,6 +531,10 @@ func (_m *AlertServiceServer) GetNotification(_a0 context.Context, _a1 *alert.Ge func (_m *AlertServiceServer) GetRelAlertFinding(_a0 context.Context, _a1 *alert.GetRelAlertFindingRequest) (*alert.GetRelAlertFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetRelAlertFinding") + } + var r0 *alert.GetRelAlertFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.GetRelAlertFindingRequest) (*alert.GetRelAlertFindingResponse, error)); ok { @@ -489,6 +561,10 @@ func (_m *AlertServiceServer) GetRelAlertFinding(_a0 context.Context, _a1 *alert func (_m *AlertServiceServer) ListAlert(_a0 context.Context, _a1 *alert.ListAlertRequest) (*alert.ListAlertResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListAlert") + } + var r0 *alert.ListAlertResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertRequest) (*alert.ListAlertResponse, error)); ok { @@ -515,6 +591,10 @@ func (_m *AlertServiceServer) ListAlert(_a0 context.Context, _a1 *alert.ListAler func (_m *AlertServiceServer) ListAlertCondNotification(_a0 context.Context, _a1 *alert.ListAlertCondNotificationRequest) (*alert.ListAlertCondNotificationResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListAlertCondNotification") + } + var r0 *alert.ListAlertCondNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertCondNotificationRequest) (*alert.ListAlertCondNotificationResponse, error)); ok { @@ -541,6 +621,10 @@ func (_m *AlertServiceServer) ListAlertCondNotification(_a0 context.Context, _a1 func (_m *AlertServiceServer) ListAlertCondRule(_a0 context.Context, _a1 *alert.ListAlertCondRuleRequest) (*alert.ListAlertCondRuleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListAlertCondRule") + } + var r0 *alert.ListAlertCondRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertCondRuleRequest) (*alert.ListAlertCondRuleResponse, error)); ok { @@ -567,6 +651,10 @@ func (_m *AlertServiceServer) ListAlertCondRule(_a0 context.Context, _a1 *alert. func (_m *AlertServiceServer) ListAlertCondition(_a0 context.Context, _a1 *alert.ListAlertConditionRequest) (*alert.ListAlertConditionResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListAlertCondition") + } + var r0 *alert.ListAlertConditionResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertConditionRequest) (*alert.ListAlertConditionResponse, error)); ok { @@ -593,6 +681,10 @@ func (_m *AlertServiceServer) ListAlertCondition(_a0 context.Context, _a1 *alert func (_m *AlertServiceServer) ListAlertHistory(_a0 context.Context, _a1 *alert.ListAlertHistoryRequest) (*alert.ListAlertHistoryResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListAlertHistory") + } + var r0 *alert.ListAlertHistoryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertHistoryRequest) (*alert.ListAlertHistoryResponse, error)); ok { @@ -619,6 +711,10 @@ func (_m *AlertServiceServer) ListAlertHistory(_a0 context.Context, _a1 *alert.L func (_m *AlertServiceServer) ListAlertRule(_a0 context.Context, _a1 *alert.ListAlertRuleRequest) (*alert.ListAlertRuleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListAlertRule") + } + var r0 *alert.ListAlertRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListAlertRuleRequest) (*alert.ListAlertRuleResponse, error)); ok { @@ -645,6 +741,10 @@ func (_m *AlertServiceServer) ListAlertRule(_a0 context.Context, _a1 *alert.List func (_m *AlertServiceServer) ListNotification(_a0 context.Context, _a1 *alert.ListNotificationRequest) (*alert.ListNotificationResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListNotification") + } + var r0 *alert.ListNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListNotificationRequest) (*alert.ListNotificationResponse, error)); ok { @@ -671,6 +771,10 @@ func (_m *AlertServiceServer) ListNotification(_a0 context.Context, _a1 *alert.L func (_m *AlertServiceServer) ListNotificationForInternal(_a0 context.Context, _a1 *alert.ListNotificationForInternalRequest) (*alert.ListNotificationForInternalResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListNotificationForInternal") + } + var r0 *alert.ListNotificationForInternalResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListNotificationForInternalRequest) (*alert.ListNotificationForInternalResponse, error)); ok { @@ -697,6 +801,10 @@ func (_m *AlertServiceServer) ListNotificationForInternal(_a0 context.Context, _ func (_m *AlertServiceServer) ListRelAlertFinding(_a0 context.Context, _a1 *alert.ListRelAlertFindingRequest) (*alert.ListRelAlertFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListRelAlertFinding") + } + var r0 *alert.ListRelAlertFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.ListRelAlertFindingRequest) (*alert.ListRelAlertFindingResponse, error)); ok { @@ -723,6 +831,10 @@ func (_m *AlertServiceServer) ListRelAlertFinding(_a0 context.Context, _a1 *aler func (_m *AlertServiceServer) PutAlert(_a0 context.Context, _a1 *alert.PutAlertRequest) (*alert.PutAlertResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutAlert") + } + var r0 *alert.PutAlertResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertRequest) (*alert.PutAlertResponse, error)); ok { @@ -749,6 +861,10 @@ func (_m *AlertServiceServer) PutAlert(_a0 context.Context, _a1 *alert.PutAlertR func (_m *AlertServiceServer) PutAlertCondNotification(_a0 context.Context, _a1 *alert.PutAlertCondNotificationRequest) (*alert.PutAlertCondNotificationResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutAlertCondNotification") + } + var r0 *alert.PutAlertCondNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertCondNotificationRequest) (*alert.PutAlertCondNotificationResponse, error)); ok { @@ -775,6 +891,10 @@ func (_m *AlertServiceServer) PutAlertCondNotification(_a0 context.Context, _a1 func (_m *AlertServiceServer) PutAlertCondRule(_a0 context.Context, _a1 *alert.PutAlertCondRuleRequest) (*alert.PutAlertCondRuleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutAlertCondRule") + } + var r0 *alert.PutAlertCondRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertCondRuleRequest) (*alert.PutAlertCondRuleResponse, error)); ok { @@ -801,6 +921,10 @@ func (_m *AlertServiceServer) PutAlertCondRule(_a0 context.Context, _a1 *alert.P func (_m *AlertServiceServer) PutAlertCondition(_a0 context.Context, _a1 *alert.PutAlertConditionRequest) (*alert.PutAlertConditionResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutAlertCondition") + } + var r0 *alert.PutAlertConditionResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertConditionRequest) (*alert.PutAlertConditionResponse, error)); ok { @@ -827,6 +951,10 @@ func (_m *AlertServiceServer) PutAlertCondition(_a0 context.Context, _a1 *alert. func (_m *AlertServiceServer) PutAlertFirstViewedAt(_a0 context.Context, _a1 *alert.PutAlertFirstViewedAtRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutAlertFirstViewedAt") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertFirstViewedAtRequest) (*emptypb.Empty, error)); ok { @@ -853,6 +981,10 @@ func (_m *AlertServiceServer) PutAlertFirstViewedAt(_a0 context.Context, _a1 *al func (_m *AlertServiceServer) PutAlertHistory(_a0 context.Context, _a1 *alert.PutAlertHistoryRequest) (*alert.PutAlertHistoryResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutAlertHistory") + } + var r0 *alert.PutAlertHistoryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertHistoryRequest) (*alert.PutAlertHistoryResponse, error)); ok { @@ -879,6 +1011,10 @@ func (_m *AlertServiceServer) PutAlertHistory(_a0 context.Context, _a1 *alert.Pu func (_m *AlertServiceServer) PutAlertRule(_a0 context.Context, _a1 *alert.PutAlertRuleRequest) (*alert.PutAlertRuleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutAlertRule") + } + var r0 *alert.PutAlertRuleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutAlertRuleRequest) (*alert.PutAlertRuleResponse, error)); ok { @@ -905,6 +1041,10 @@ func (_m *AlertServiceServer) PutAlertRule(_a0 context.Context, _a1 *alert.PutAl func (_m *AlertServiceServer) PutNotification(_a0 context.Context, _a1 *alert.PutNotificationRequest) (*alert.PutNotificationResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutNotification") + } + var r0 *alert.PutNotificationResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutNotificationRequest) (*alert.PutNotificationResponse, error)); ok { @@ -931,6 +1071,10 @@ func (_m *AlertServiceServer) PutNotification(_a0 context.Context, _a1 *alert.Pu func (_m *AlertServiceServer) PutRelAlertFinding(_a0 context.Context, _a1 *alert.PutRelAlertFindingRequest) (*alert.PutRelAlertFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutRelAlertFinding") + } + var r0 *alert.PutRelAlertFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.PutRelAlertFindingRequest) (*alert.PutRelAlertFindingResponse, error)); ok { @@ -953,10 +1097,44 @@ func (_m *AlertServiceServer) PutRelAlertFinding(_a0 context.Context, _a1 *alert return r0, r1 } +// RequestAuthzNotification provides a mock function with given fields: _a0, _a1 +func (_m *AlertServiceServer) RequestAuthzNotification(_a0 context.Context, _a1 *alert.RequestAuthzNotificationRequest) (*emptypb.Empty, error) { + ret := _m.Called(_a0, _a1) + + if len(ret) == 0 { + panic("no return value specified for RequestAuthzNotification") + } + + var r0 *emptypb.Empty + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *alert.RequestAuthzNotificationRequest) (*emptypb.Empty, error)); ok { + return rf(_a0, _a1) + } + if rf, ok := ret.Get(0).(func(context.Context, *alert.RequestAuthzNotificationRequest) *emptypb.Empty); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*emptypb.Empty) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *alert.RequestAuthzNotificationRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // TestNotification provides a mock function with given fields: _a0, _a1 func (_m *AlertServiceServer) TestNotification(_a0 context.Context, _a1 *alert.TestNotificationRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for TestNotification") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *alert.TestNotificationRequest) (*emptypb.Empty, error)); ok { diff --git a/proto/alert/service.pb.go b/proto/alert/service.pb.go index 510ef51..75d9e8a 100644 --- a/proto/alert/service.pb.go +++ b/proto/alert/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: alert/service.proto package alert @@ -2940,6 +2940,69 @@ func (x *TestNotificationRequest) GetNotificationId() uint32 { return 0 } +type RequestAuthzNotificationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ProjectName string `protobuf:"bytes,2,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` + UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` +} + +func (x *RequestAuthzNotificationRequest) Reset() { + *x = RequestAuthzNotificationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_alert_service_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestAuthzNotificationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestAuthzNotificationRequest) ProtoMessage() {} + +func (x *RequestAuthzNotificationRequest) ProtoReflect() protoreflect.Message { + mi := &file_alert_service_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RequestAuthzNotificationRequest.ProtoReflect.Descriptor instead. +func (*RequestAuthzNotificationRequest) Descriptor() ([]byte, []int) { + return file_alert_service_proto_rawDescGZIP(), []int{53} +} + +func (x *RequestAuthzNotificationRequest) GetProjectId() uint32 { + if x != nil { + return x.ProjectId + } + return 0 +} + +func (x *RequestAuthzNotificationRequest) GetProjectName() string { + if x != nil { + return x.ProjectName + } + return "" +} + +func (x *RequestAuthzNotificationRequest) GetUserName() string { + if x != nil { + return x.UserName + } + return "" +} + type ListAlertCondNotificationRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2955,7 +3018,7 @@ type ListAlertCondNotificationRequest struct { func (x *ListAlertCondNotificationRequest) Reset() { *x = ListAlertCondNotificationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_alert_service_proto_msgTypes[53] + mi := &file_alert_service_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2968,7 +3031,7 @@ func (x *ListAlertCondNotificationRequest) String() string { func (*ListAlertCondNotificationRequest) ProtoMessage() {} func (x *ListAlertCondNotificationRequest) ProtoReflect() protoreflect.Message { - mi := &file_alert_service_proto_msgTypes[53] + mi := &file_alert_service_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2981,7 +3044,7 @@ func (x *ListAlertCondNotificationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAlertCondNotificationRequest.ProtoReflect.Descriptor instead. func (*ListAlertCondNotificationRequest) Descriptor() ([]byte, []int) { - return file_alert_service_proto_rawDescGZIP(), []int{53} + return file_alert_service_proto_rawDescGZIP(), []int{54} } func (x *ListAlertCondNotificationRequest) GetProjectId() uint32 { @@ -3030,7 +3093,7 @@ type ListAlertCondNotificationResponse struct { func (x *ListAlertCondNotificationResponse) Reset() { *x = ListAlertCondNotificationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_alert_service_proto_msgTypes[54] + mi := &file_alert_service_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3043,7 +3106,7 @@ func (x *ListAlertCondNotificationResponse) String() string { func (*ListAlertCondNotificationResponse) ProtoMessage() {} func (x *ListAlertCondNotificationResponse) ProtoReflect() protoreflect.Message { - mi := &file_alert_service_proto_msgTypes[54] + mi := &file_alert_service_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3056,7 +3119,7 @@ func (x *ListAlertCondNotificationResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListAlertCondNotificationResponse.ProtoReflect.Descriptor instead. func (*ListAlertCondNotificationResponse) Descriptor() ([]byte, []int) { - return file_alert_service_proto_rawDescGZIP(), []int{54} + return file_alert_service_proto_rawDescGZIP(), []int{55} } func (x *ListAlertCondNotificationResponse) GetAlertCondNotification() []*AlertCondNotification { @@ -3079,7 +3142,7 @@ type GetAlertCondNotificationRequest struct { func (x *GetAlertCondNotificationRequest) Reset() { *x = GetAlertCondNotificationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_alert_service_proto_msgTypes[55] + mi := &file_alert_service_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3092,7 +3155,7 @@ func (x *GetAlertCondNotificationRequest) String() string { func (*GetAlertCondNotificationRequest) ProtoMessage() {} func (x *GetAlertCondNotificationRequest) ProtoReflect() protoreflect.Message { - mi := &file_alert_service_proto_msgTypes[55] + mi := &file_alert_service_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3105,7 +3168,7 @@ func (x *GetAlertCondNotificationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAlertCondNotificationRequest.ProtoReflect.Descriptor instead. func (*GetAlertCondNotificationRequest) Descriptor() ([]byte, []int) { - return file_alert_service_proto_rawDescGZIP(), []int{55} + return file_alert_service_proto_rawDescGZIP(), []int{56} } func (x *GetAlertCondNotificationRequest) GetProjectId() uint32 { @@ -3140,7 +3203,7 @@ type GetAlertCondNotificationResponse struct { func (x *GetAlertCondNotificationResponse) Reset() { *x = GetAlertCondNotificationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_alert_service_proto_msgTypes[56] + mi := &file_alert_service_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3153,7 +3216,7 @@ func (x *GetAlertCondNotificationResponse) String() string { func (*GetAlertCondNotificationResponse) ProtoMessage() {} func (x *GetAlertCondNotificationResponse) ProtoReflect() protoreflect.Message { - mi := &file_alert_service_proto_msgTypes[56] + mi := &file_alert_service_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3166,7 +3229,7 @@ func (x *GetAlertCondNotificationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAlertCondNotificationResponse.ProtoReflect.Descriptor instead. func (*GetAlertCondNotificationResponse) Descriptor() ([]byte, []int) { - return file_alert_service_proto_rawDescGZIP(), []int{56} + return file_alert_service_proto_rawDescGZIP(), []int{57} } func (x *GetAlertCondNotificationResponse) GetAlertCondNotification() *AlertCondNotification { @@ -3188,7 +3251,7 @@ type PutAlertCondNotificationRequest struct { func (x *PutAlertCondNotificationRequest) Reset() { *x = PutAlertCondNotificationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_alert_service_proto_msgTypes[57] + mi := &file_alert_service_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3201,7 +3264,7 @@ func (x *PutAlertCondNotificationRequest) String() string { func (*PutAlertCondNotificationRequest) ProtoMessage() {} func (x *PutAlertCondNotificationRequest) ProtoReflect() protoreflect.Message { - mi := &file_alert_service_proto_msgTypes[57] + mi := &file_alert_service_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3214,7 +3277,7 @@ func (x *PutAlertCondNotificationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutAlertCondNotificationRequest.ProtoReflect.Descriptor instead. func (*PutAlertCondNotificationRequest) Descriptor() ([]byte, []int) { - return file_alert_service_proto_rawDescGZIP(), []int{57} + return file_alert_service_proto_rawDescGZIP(), []int{58} } func (x *PutAlertCondNotificationRequest) GetProjectId() uint32 { @@ -3242,7 +3305,7 @@ type PutAlertCondNotificationResponse struct { func (x *PutAlertCondNotificationResponse) Reset() { *x = PutAlertCondNotificationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_alert_service_proto_msgTypes[58] + mi := &file_alert_service_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3255,7 +3318,7 @@ func (x *PutAlertCondNotificationResponse) String() string { func (*PutAlertCondNotificationResponse) ProtoMessage() {} func (x *PutAlertCondNotificationResponse) ProtoReflect() protoreflect.Message { - mi := &file_alert_service_proto_msgTypes[58] + mi := &file_alert_service_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3268,7 +3331,7 @@ func (x *PutAlertCondNotificationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutAlertCondNotificationResponse.ProtoReflect.Descriptor instead. func (*PutAlertCondNotificationResponse) Descriptor() ([]byte, []int) { - return file_alert_service_proto_rawDescGZIP(), []int{58} + return file_alert_service_proto_rawDescGZIP(), []int{59} } func (x *PutAlertCondNotificationResponse) GetAlertCondNotification() *AlertCondNotification { @@ -3291,7 +3354,7 @@ type DeleteAlertCondNotificationRequest struct { func (x *DeleteAlertCondNotificationRequest) Reset() { *x = DeleteAlertCondNotificationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_alert_service_proto_msgTypes[59] + mi := &file_alert_service_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3304,7 +3367,7 @@ func (x *DeleteAlertCondNotificationRequest) String() string { func (*DeleteAlertCondNotificationRequest) ProtoMessage() {} func (x *DeleteAlertCondNotificationRequest) ProtoReflect() protoreflect.Message { - mi := &file_alert_service_proto_msgTypes[59] + mi := &file_alert_service_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3317,7 +3380,7 @@ func (x *DeleteAlertCondNotificationRequest) ProtoReflect() protoreflect.Message // Deprecated: Use DeleteAlertCondNotificationRequest.ProtoReflect.Descriptor instead. func (*DeleteAlertCondNotificationRequest) Descriptor() ([]byte, []int) { - return file_alert_service_proto_rawDescGZIP(), []int{59} + return file_alert_service_proto_rawDescGZIP(), []int{60} } func (x *DeleteAlertCondNotificationRequest) GetProjectId() uint32 { @@ -3353,7 +3416,7 @@ type AnalyzeAlertRequest struct { func (x *AnalyzeAlertRequest) Reset() { *x = AnalyzeAlertRequest{} if protoimpl.UnsafeEnabled { - mi := &file_alert_service_proto_msgTypes[60] + mi := &file_alert_service_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3366,7 +3429,7 @@ func (x *AnalyzeAlertRequest) String() string { func (*AnalyzeAlertRequest) ProtoMessage() {} func (x *AnalyzeAlertRequest) ProtoReflect() protoreflect.Message { - mi := &file_alert_service_proto_msgTypes[60] + mi := &file_alert_service_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3379,7 +3442,7 @@ func (x *AnalyzeAlertRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AnalyzeAlertRequest.ProtoReflect.Descriptor instead. func (*AnalyzeAlertRequest) Descriptor() ([]byte, []int) { - return file_alert_service_proto_rawDescGZIP(), []int{60} + return file_alert_service_proto_rawDescGZIP(), []int{61} } func (x *AnalyzeAlertRequest) GetProjectId() uint32 { @@ -3759,296 +3822,311 @@ var file_alert_service_proto_rawDesc = []byte{ 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xc6, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x1f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, + 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x74, 0x12, 0x13, 0x0a, 0x05, + 0x74, 0x6f, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x6f, 0x41, + 0x74, 0x22, 0x7e, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, + 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, + 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x15, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x97, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, + 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x10, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x7d, 0x0a, 0x20, 0x47, + 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x59, 0x0a, 0x17, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x65, - 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x0e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x12, 0x17, 0x0a, 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x6f, 0x5f, - 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x6f, 0x41, 0x74, 0x22, 0x7e, - 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, - 0x64, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x15, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, - 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x97, - 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, - 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x61, - 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x27, 0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x7d, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x41, - 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, - 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x15, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x1f, 0x50, + 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x62, 0x0a, + 0x17, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x41, 0x6c, 0x65, 0x72, + 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x46, 0x6f, 0x72, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x15, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x7d, 0x0a, 0x20, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, + 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, + 0x6f, 0x6e, 0x64, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x15, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x15, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x1f, 0x50, 0x75, 0x74, 0x41, - 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x62, 0x0a, 0x17, 0x61, 0x6c, - 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, - 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, - 0x72, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x15, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, - 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7d, - 0x0a, 0x20, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, - 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, - 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x15, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, - 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9a, 0x01, - 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, - 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x22, 0x9a, 0x01, 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, + 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x10, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x62, 0x0a, + 0x13, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x10, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x62, 0x0a, 0x13, 0x41, 0x6e, - 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, - 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x10, 0x61, 0x6c, - 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x32, 0xdd, - 0x1a, 0x0a, 0x0c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x48, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x1c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, - 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x47, 0x65, 0x74, - 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x1b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, - 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x45, 0x0a, 0x08, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x1b, 0x2e, 0x63, + 0x64, 0x32, 0xbe, 0x1b, 0x0a, 0x0c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, + 0x1c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x08, + 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x1b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, + 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, + 0x1b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, + 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, - 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x15, 0x50, 0x75, 0x74, 0x41, 0x6c, - 0x65, 0x72, 0x74, 0x46, 0x69, 0x72, 0x73, 0x74, 0x56, 0x69, 0x65, 0x77, 0x65, 0x64, 0x41, 0x74, - 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, + 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x15, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x72, 0x73, 0x74, 0x56, 0x69, 0x65, 0x77, 0x65, - 0x64, 0x41, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x12, 0x45, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, - 0x74, 0x12, 0x1e, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5d, 0x0a, 0x10, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, - 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, - 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x22, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, - 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, - 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0f, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, - 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, - 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, - 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x53, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, - 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x64, 0x41, 0x74, 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, + 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x72, 0x73, 0x74, 0x56, 0x69, + 0x65, 0x77, 0x65, 0x64, 0x41, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x66, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, - 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, - 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, - 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, - 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x50, 0x75, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, - 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, - 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x26, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, - 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, - 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x12, 0x63, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, - 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, - 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x45, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x12, 0x1e, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5d, 0x0a, 0x10, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, + 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0f, 0x47, + 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x22, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, + 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0f, 0x50, 0x75, 0x74, 0x41, 0x6c, + 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, + 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x66, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x6c, - 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, + 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x63, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x50, 0x75, 0x74, 0x52, 0x65, 0x6c, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x6c, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, + 0x50, 0x75, 0x74, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x15, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x46, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x63, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x50, 0x75, 0x74, - 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, - 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x14, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x12, 0x54, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, - 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, - 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, - 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, - 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, - 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1f, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, - 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, + 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x47, 0x65, + 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, + 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, + 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, + 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, + 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x54, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, + 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, - 0x0c, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1f, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, + 0x0c, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1f, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4d, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, - 0x75, 0x6c, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, - 0x60, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, - 0x52, 0x75, 0x6c, 0x65, 0x12, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, - 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, - 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x5d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, - 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, - 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, - 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, - 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x5d, 0x0a, 0x10, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, - 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, - 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, - 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x55, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, - 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, - 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, - 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x12, 0x51, 0x0a, 0x0c, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, + 0x12, 0x1f, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, + 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x20, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, + 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, + 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x12, 0x60, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, + 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, + 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, + 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, + 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, + 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x10, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, + 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, + 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x55, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, + 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5d, 0x0a, 0x10, 0x4c, 0x69, 0x73, + 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x2e, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0f, 0x50, 0x75, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, + 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x4e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x53, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4f, 0x0a, 0x10, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5d, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5f, 0x0a, 0x18, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x2e, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x74, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x78, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x5a, 0x0a, 0x0f, 0x50, 0x75, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x2e, 0x50, 0x75, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, - 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x12, 0x4f, 0x0a, 0x10, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, - 0x65, 0x72, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x12, 0x78, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, - 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x2c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, - 0x18, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, - 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, - 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, - 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x18, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, - 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, - 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, - 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x1b, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, + 0x65, 0x12, 0x75, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, + 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x12, 0x47, 0x0a, 0x0c, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x41, 0x6c, 0x65, - 0x72, 0x74, 0x12, 0x1f, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, - 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x41, 0x0a, 0x0f, 0x41, - 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x16, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, + 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x18, 0x50, 0x75, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x2e, 0x50, 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x50, + 0x75, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x65, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, + 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x27, - 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x2d, - 0x72, 0x69, 0x73, 0x6b, 0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x47, 0x0a, 0x0c, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, + 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x1f, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x6c, + 0x65, 0x72, 0x74, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, + 0x41, 0x0a, 0x0f, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x41, + 0x6c, 0x6c, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x63, 0x61, 0x2d, 0x72, 0x69, 0x73, 0x6b, 0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -4063,7 +4141,7 @@ func file_alert_service_proto_rawDescGZIP() []byte { return file_alert_service_proto_rawDescData } -var file_alert_service_proto_msgTypes = make([]protoimpl.MessageInfo, 61) +var file_alert_service_proto_msgTypes = make([]protoimpl.MessageInfo, 62) var file_alert_service_proto_goTypes = []interface{}{ (*ListAlertRequest)(nil), // 0: core.alert.ListAlertRequest (*ListAlertResponse)(nil), // 1: core.alert.ListAlertResponse @@ -4118,68 +4196,69 @@ var file_alert_service_proto_goTypes = []interface{}{ (*PutNotificationResponse)(nil), // 50: core.alert.PutNotificationResponse (*DeleteNotificationRequest)(nil), // 51: core.alert.DeleteNotificationRequest (*TestNotificationRequest)(nil), // 52: core.alert.TestNotificationRequest - (*ListAlertCondNotificationRequest)(nil), // 53: core.alert.ListAlertCondNotificationRequest - (*ListAlertCondNotificationResponse)(nil), // 54: core.alert.ListAlertCondNotificationResponse - (*GetAlertCondNotificationRequest)(nil), // 55: core.alert.GetAlertCondNotificationRequest - (*GetAlertCondNotificationResponse)(nil), // 56: core.alert.GetAlertCondNotificationResponse - (*PutAlertCondNotificationRequest)(nil), // 57: core.alert.PutAlertCondNotificationRequest - (*PutAlertCondNotificationResponse)(nil), // 58: core.alert.PutAlertCondNotificationResponse - (*DeleteAlertCondNotificationRequest)(nil), // 59: core.alert.DeleteAlertCondNotificationRequest - (*AnalyzeAlertRequest)(nil), // 60: core.alert.AnalyzeAlertRequest - (Status)(0), // 61: core.alert.Status - (*Alert)(nil), // 62: core.alert.Alert - (*AlertForUpsert)(nil), // 63: core.alert.AlertForUpsert - (*AlertHistory)(nil), // 64: core.alert.AlertHistory - (*AlertHistoryForUpsert)(nil), // 65: core.alert.AlertHistoryForUpsert - (*RelAlertFinding)(nil), // 66: core.alert.RelAlertFinding - (*RelAlertFindingForUpsert)(nil), // 67: core.alert.RelAlertFindingForUpsert - (*AlertCondition)(nil), // 68: core.alert.AlertCondition - (*AlertConditionForUpsert)(nil), // 69: core.alert.AlertConditionForUpsert - (*AlertRule)(nil), // 70: core.alert.AlertRule - (*AlertRuleForUpsert)(nil), // 71: core.alert.AlertRuleForUpsert - (*AlertCondRule)(nil), // 72: core.alert.AlertCondRule - (*AlertCondRuleForUpsert)(nil), // 73: core.alert.AlertCondRuleForUpsert - (*Notification)(nil), // 74: core.alert.Notification - (*NotificationForUpsert)(nil), // 75: core.alert.NotificationForUpsert - (*AlertCondNotification)(nil), // 76: core.alert.AlertCondNotification - (*AlertCondNotificationForUpsert)(nil), // 77: core.alert.AlertCondNotificationForUpsert - (*emptypb.Empty)(nil), // 78: google.protobuf.Empty + (*RequestAuthzNotificationRequest)(nil), // 53: core.alert.RequestAuthzNotificationRequest + (*ListAlertCondNotificationRequest)(nil), // 54: core.alert.ListAlertCondNotificationRequest + (*ListAlertCondNotificationResponse)(nil), // 55: core.alert.ListAlertCondNotificationResponse + (*GetAlertCondNotificationRequest)(nil), // 56: core.alert.GetAlertCondNotificationRequest + (*GetAlertCondNotificationResponse)(nil), // 57: core.alert.GetAlertCondNotificationResponse + (*PutAlertCondNotificationRequest)(nil), // 58: core.alert.PutAlertCondNotificationRequest + (*PutAlertCondNotificationResponse)(nil), // 59: core.alert.PutAlertCondNotificationResponse + (*DeleteAlertCondNotificationRequest)(nil), // 60: core.alert.DeleteAlertCondNotificationRequest + (*AnalyzeAlertRequest)(nil), // 61: core.alert.AnalyzeAlertRequest + (Status)(0), // 62: core.alert.Status + (*Alert)(nil), // 63: core.alert.Alert + (*AlertForUpsert)(nil), // 64: core.alert.AlertForUpsert + (*AlertHistory)(nil), // 65: core.alert.AlertHistory + (*AlertHistoryForUpsert)(nil), // 66: core.alert.AlertHistoryForUpsert + (*RelAlertFinding)(nil), // 67: core.alert.RelAlertFinding + (*RelAlertFindingForUpsert)(nil), // 68: core.alert.RelAlertFindingForUpsert + (*AlertCondition)(nil), // 69: core.alert.AlertCondition + (*AlertConditionForUpsert)(nil), // 70: core.alert.AlertConditionForUpsert + (*AlertRule)(nil), // 71: core.alert.AlertRule + (*AlertRuleForUpsert)(nil), // 72: core.alert.AlertRuleForUpsert + (*AlertCondRule)(nil), // 73: core.alert.AlertCondRule + (*AlertCondRuleForUpsert)(nil), // 74: core.alert.AlertCondRuleForUpsert + (*Notification)(nil), // 75: core.alert.Notification + (*NotificationForUpsert)(nil), // 76: core.alert.NotificationForUpsert + (*AlertCondNotification)(nil), // 77: core.alert.AlertCondNotification + (*AlertCondNotificationForUpsert)(nil), // 78: core.alert.AlertCondNotificationForUpsert + (*emptypb.Empty)(nil), // 79: google.protobuf.Empty } var file_alert_service_proto_depIdxs = []int32{ - 61, // 0: core.alert.ListAlertRequest.status:type_name -> core.alert.Status - 62, // 1: core.alert.ListAlertResponse.alert:type_name -> core.alert.Alert - 62, // 2: core.alert.GetAlertResponse.alert:type_name -> core.alert.Alert - 63, // 3: core.alert.PutAlertRequest.alert:type_name -> core.alert.AlertForUpsert - 62, // 4: core.alert.PutAlertResponse.alert:type_name -> core.alert.Alert - 64, // 5: core.alert.ListAlertHistoryResponse.alert_history:type_name -> core.alert.AlertHistory - 64, // 6: core.alert.GetAlertHistoryResponse.alert_history:type_name -> core.alert.AlertHistory - 65, // 7: core.alert.PutAlertHistoryRequest.alert_history:type_name -> core.alert.AlertHistoryForUpsert - 64, // 8: core.alert.PutAlertHistoryResponse.alert_history:type_name -> core.alert.AlertHistory - 66, // 9: core.alert.ListRelAlertFindingResponse.rel_alert_finding:type_name -> core.alert.RelAlertFinding - 66, // 10: core.alert.GetRelAlertFindingResponse.rel_alert_finding:type_name -> core.alert.RelAlertFinding - 67, // 11: core.alert.PutRelAlertFindingRequest.rel_alert_finding:type_name -> core.alert.RelAlertFindingForUpsert - 66, // 12: core.alert.PutRelAlertFindingResponse.rel_alert_finding:type_name -> core.alert.RelAlertFinding - 68, // 13: core.alert.ListAlertConditionResponse.alert_condition:type_name -> core.alert.AlertCondition - 68, // 14: core.alert.GetAlertConditionResponse.alert_condition:type_name -> core.alert.AlertCondition - 69, // 15: core.alert.PutAlertConditionRequest.alert_condition:type_name -> core.alert.AlertConditionForUpsert - 68, // 16: core.alert.PutAlertConditionResponse.alert_condition:type_name -> core.alert.AlertCondition - 70, // 17: core.alert.ListAlertRuleResponse.alert_rule:type_name -> core.alert.AlertRule - 70, // 18: core.alert.GetAlertRuleResponse.alert_rule:type_name -> core.alert.AlertRule - 71, // 19: core.alert.PutAlertRuleRequest.alert_rule:type_name -> core.alert.AlertRuleForUpsert - 70, // 20: core.alert.PutAlertRuleResponse.alert_rule:type_name -> core.alert.AlertRule - 72, // 21: core.alert.ListAlertCondRuleResponse.alert_cond_rule:type_name -> core.alert.AlertCondRule - 72, // 22: core.alert.GetAlertCondRuleResponse.alert_cond_rule:type_name -> core.alert.AlertCondRule - 73, // 23: core.alert.PutAlertCondRuleRequest.alert_cond_rule:type_name -> core.alert.AlertCondRuleForUpsert - 72, // 24: core.alert.PutAlertCondRuleResponse.alert_cond_rule:type_name -> core.alert.AlertCondRule - 74, // 25: core.alert.ListNotificationResponse.notification:type_name -> core.alert.Notification - 74, // 26: core.alert.ListNotificationForInternalResponse.notification:type_name -> core.alert.Notification - 74, // 27: core.alert.GetNotificationResponse.notification:type_name -> core.alert.Notification - 75, // 28: core.alert.PutNotificationRequest.notification:type_name -> core.alert.NotificationForUpsert - 74, // 29: core.alert.PutNotificationResponse.notification:type_name -> core.alert.Notification - 76, // 30: core.alert.ListAlertCondNotificationResponse.alert_cond_notification:type_name -> core.alert.AlertCondNotification - 76, // 31: core.alert.GetAlertCondNotificationResponse.alert_cond_notification:type_name -> core.alert.AlertCondNotification - 77, // 32: core.alert.PutAlertCondNotificationRequest.alert_cond_notification:type_name -> core.alert.AlertCondNotificationForUpsert - 76, // 33: core.alert.PutAlertCondNotificationResponse.alert_cond_notification:type_name -> core.alert.AlertCondNotification + 62, // 0: core.alert.ListAlertRequest.status:type_name -> core.alert.Status + 63, // 1: core.alert.ListAlertResponse.alert:type_name -> core.alert.Alert + 63, // 2: core.alert.GetAlertResponse.alert:type_name -> core.alert.Alert + 64, // 3: core.alert.PutAlertRequest.alert:type_name -> core.alert.AlertForUpsert + 63, // 4: core.alert.PutAlertResponse.alert:type_name -> core.alert.Alert + 65, // 5: core.alert.ListAlertHistoryResponse.alert_history:type_name -> core.alert.AlertHistory + 65, // 6: core.alert.GetAlertHistoryResponse.alert_history:type_name -> core.alert.AlertHistory + 66, // 7: core.alert.PutAlertHistoryRequest.alert_history:type_name -> core.alert.AlertHistoryForUpsert + 65, // 8: core.alert.PutAlertHistoryResponse.alert_history:type_name -> core.alert.AlertHistory + 67, // 9: core.alert.ListRelAlertFindingResponse.rel_alert_finding:type_name -> core.alert.RelAlertFinding + 67, // 10: core.alert.GetRelAlertFindingResponse.rel_alert_finding:type_name -> core.alert.RelAlertFinding + 68, // 11: core.alert.PutRelAlertFindingRequest.rel_alert_finding:type_name -> core.alert.RelAlertFindingForUpsert + 67, // 12: core.alert.PutRelAlertFindingResponse.rel_alert_finding:type_name -> core.alert.RelAlertFinding + 69, // 13: core.alert.ListAlertConditionResponse.alert_condition:type_name -> core.alert.AlertCondition + 69, // 14: core.alert.GetAlertConditionResponse.alert_condition:type_name -> core.alert.AlertCondition + 70, // 15: core.alert.PutAlertConditionRequest.alert_condition:type_name -> core.alert.AlertConditionForUpsert + 69, // 16: core.alert.PutAlertConditionResponse.alert_condition:type_name -> core.alert.AlertCondition + 71, // 17: core.alert.ListAlertRuleResponse.alert_rule:type_name -> core.alert.AlertRule + 71, // 18: core.alert.GetAlertRuleResponse.alert_rule:type_name -> core.alert.AlertRule + 72, // 19: core.alert.PutAlertRuleRequest.alert_rule:type_name -> core.alert.AlertRuleForUpsert + 71, // 20: core.alert.PutAlertRuleResponse.alert_rule:type_name -> core.alert.AlertRule + 73, // 21: core.alert.ListAlertCondRuleResponse.alert_cond_rule:type_name -> core.alert.AlertCondRule + 73, // 22: core.alert.GetAlertCondRuleResponse.alert_cond_rule:type_name -> core.alert.AlertCondRule + 74, // 23: core.alert.PutAlertCondRuleRequest.alert_cond_rule:type_name -> core.alert.AlertCondRuleForUpsert + 73, // 24: core.alert.PutAlertCondRuleResponse.alert_cond_rule:type_name -> core.alert.AlertCondRule + 75, // 25: core.alert.ListNotificationResponse.notification:type_name -> core.alert.Notification + 75, // 26: core.alert.ListNotificationForInternalResponse.notification:type_name -> core.alert.Notification + 75, // 27: core.alert.GetNotificationResponse.notification:type_name -> core.alert.Notification + 76, // 28: core.alert.PutNotificationRequest.notification:type_name -> core.alert.NotificationForUpsert + 75, // 29: core.alert.PutNotificationResponse.notification:type_name -> core.alert.Notification + 77, // 30: core.alert.ListAlertCondNotificationResponse.alert_cond_notification:type_name -> core.alert.AlertCondNotification + 77, // 31: core.alert.GetAlertCondNotificationResponse.alert_cond_notification:type_name -> core.alert.AlertCondNotification + 78, // 32: core.alert.PutAlertCondNotificationRequest.alert_cond_notification:type_name -> core.alert.AlertCondNotificationForUpsert + 77, // 33: core.alert.PutAlertCondNotificationResponse.alert_cond_notification:type_name -> core.alert.AlertCondNotification 0, // 34: core.alert.AlertService.ListAlert:input_type -> core.alert.ListAlertRequest 2, // 35: core.alert.AlertService.GetAlert:input_type -> core.alert.GetAlertRequest 4, // 36: core.alert.AlertService.PutAlert:input_type -> core.alert.PutAlertRequest @@ -4211,51 +4290,53 @@ var file_alert_service_proto_depIdxs = []int32{ 49, // 62: core.alert.AlertService.PutNotification:input_type -> core.alert.PutNotificationRequest 51, // 63: core.alert.AlertService.DeleteNotification:input_type -> core.alert.DeleteNotificationRequest 52, // 64: core.alert.AlertService.TestNotification:input_type -> core.alert.TestNotificationRequest - 53, // 65: core.alert.AlertService.ListAlertCondNotification:input_type -> core.alert.ListAlertCondNotificationRequest - 55, // 66: core.alert.AlertService.GetAlertCondNotification:input_type -> core.alert.GetAlertCondNotificationRequest - 57, // 67: core.alert.AlertService.PutAlertCondNotification:input_type -> core.alert.PutAlertCondNotificationRequest - 59, // 68: core.alert.AlertService.DeleteAlertCondNotification:input_type -> core.alert.DeleteAlertCondNotificationRequest - 60, // 69: core.alert.AlertService.AnalyzeAlert:input_type -> core.alert.AnalyzeAlertRequest - 78, // 70: core.alert.AlertService.AnalyzeAlertAll:input_type -> google.protobuf.Empty - 1, // 71: core.alert.AlertService.ListAlert:output_type -> core.alert.ListAlertResponse - 3, // 72: core.alert.AlertService.GetAlert:output_type -> core.alert.GetAlertResponse - 5, // 73: core.alert.AlertService.PutAlert:output_type -> core.alert.PutAlertResponse - 78, // 74: core.alert.AlertService.PutAlertFirstViewedAt:output_type -> google.protobuf.Empty - 78, // 75: core.alert.AlertService.DeleteAlert:output_type -> google.protobuf.Empty - 9, // 76: core.alert.AlertService.ListAlertHistory:output_type -> core.alert.ListAlertHistoryResponse - 11, // 77: core.alert.AlertService.GetAlertHistory:output_type -> core.alert.GetAlertHistoryResponse - 13, // 78: core.alert.AlertService.PutAlertHistory:output_type -> core.alert.PutAlertHistoryResponse - 78, // 79: core.alert.AlertService.DeleteAlertHistory:output_type -> google.protobuf.Empty - 16, // 80: core.alert.AlertService.ListRelAlertFinding:output_type -> core.alert.ListRelAlertFindingResponse - 18, // 81: core.alert.AlertService.GetRelAlertFinding:output_type -> core.alert.GetRelAlertFindingResponse - 20, // 82: core.alert.AlertService.PutRelAlertFinding:output_type -> core.alert.PutRelAlertFindingResponse - 78, // 83: core.alert.AlertService.DeleteRelAlertFinding:output_type -> google.protobuf.Empty - 23, // 84: core.alert.AlertService.ListAlertCondition:output_type -> core.alert.ListAlertConditionResponse - 25, // 85: core.alert.AlertService.GetAlertCondition:output_type -> core.alert.GetAlertConditionResponse - 27, // 86: core.alert.AlertService.PutAlertCondition:output_type -> core.alert.PutAlertConditionResponse - 78, // 87: core.alert.AlertService.DeleteAlertCondition:output_type -> google.protobuf.Empty - 30, // 88: core.alert.AlertService.ListAlertRule:output_type -> core.alert.ListAlertRuleResponse - 32, // 89: core.alert.AlertService.GetAlertRule:output_type -> core.alert.GetAlertRuleResponse - 34, // 90: core.alert.AlertService.PutAlertRule:output_type -> core.alert.PutAlertRuleResponse - 78, // 91: core.alert.AlertService.DeleteAlertRule:output_type -> google.protobuf.Empty - 37, // 92: core.alert.AlertService.ListAlertCondRule:output_type -> core.alert.ListAlertCondRuleResponse - 39, // 93: core.alert.AlertService.GetAlertCondRule:output_type -> core.alert.GetAlertCondRuleResponse - 41, // 94: core.alert.AlertService.PutAlertCondRule:output_type -> core.alert.PutAlertCondRuleResponse - 78, // 95: core.alert.AlertService.DeleteAlertCondRule:output_type -> google.protobuf.Empty - 44, // 96: core.alert.AlertService.ListNotification:output_type -> core.alert.ListNotificationResponse - 46, // 97: core.alert.AlertService.ListNotificationForInternal:output_type -> core.alert.ListNotificationForInternalResponse - 48, // 98: core.alert.AlertService.GetNotification:output_type -> core.alert.GetNotificationResponse - 50, // 99: core.alert.AlertService.PutNotification:output_type -> core.alert.PutNotificationResponse - 78, // 100: core.alert.AlertService.DeleteNotification:output_type -> google.protobuf.Empty - 78, // 101: core.alert.AlertService.TestNotification:output_type -> google.protobuf.Empty - 54, // 102: core.alert.AlertService.ListAlertCondNotification:output_type -> core.alert.ListAlertCondNotificationResponse - 56, // 103: core.alert.AlertService.GetAlertCondNotification:output_type -> core.alert.GetAlertCondNotificationResponse - 58, // 104: core.alert.AlertService.PutAlertCondNotification:output_type -> core.alert.PutAlertCondNotificationResponse - 78, // 105: core.alert.AlertService.DeleteAlertCondNotification:output_type -> google.protobuf.Empty - 78, // 106: core.alert.AlertService.AnalyzeAlert:output_type -> google.protobuf.Empty - 78, // 107: core.alert.AlertService.AnalyzeAlertAll:output_type -> google.protobuf.Empty - 71, // [71:108] is the sub-list for method output_type - 34, // [34:71] is the sub-list for method input_type + 53, // 65: core.alert.AlertService.RequestAuthzNotification:input_type -> core.alert.RequestAuthzNotificationRequest + 54, // 66: core.alert.AlertService.ListAlertCondNotification:input_type -> core.alert.ListAlertCondNotificationRequest + 56, // 67: core.alert.AlertService.GetAlertCondNotification:input_type -> core.alert.GetAlertCondNotificationRequest + 58, // 68: core.alert.AlertService.PutAlertCondNotification:input_type -> core.alert.PutAlertCondNotificationRequest + 60, // 69: core.alert.AlertService.DeleteAlertCondNotification:input_type -> core.alert.DeleteAlertCondNotificationRequest + 61, // 70: core.alert.AlertService.AnalyzeAlert:input_type -> core.alert.AnalyzeAlertRequest + 79, // 71: core.alert.AlertService.AnalyzeAlertAll:input_type -> google.protobuf.Empty + 1, // 72: core.alert.AlertService.ListAlert:output_type -> core.alert.ListAlertResponse + 3, // 73: core.alert.AlertService.GetAlert:output_type -> core.alert.GetAlertResponse + 5, // 74: core.alert.AlertService.PutAlert:output_type -> core.alert.PutAlertResponse + 79, // 75: core.alert.AlertService.PutAlertFirstViewedAt:output_type -> google.protobuf.Empty + 79, // 76: core.alert.AlertService.DeleteAlert:output_type -> google.protobuf.Empty + 9, // 77: core.alert.AlertService.ListAlertHistory:output_type -> core.alert.ListAlertHistoryResponse + 11, // 78: core.alert.AlertService.GetAlertHistory:output_type -> core.alert.GetAlertHistoryResponse + 13, // 79: core.alert.AlertService.PutAlertHistory:output_type -> core.alert.PutAlertHistoryResponse + 79, // 80: core.alert.AlertService.DeleteAlertHistory:output_type -> google.protobuf.Empty + 16, // 81: core.alert.AlertService.ListRelAlertFinding:output_type -> core.alert.ListRelAlertFindingResponse + 18, // 82: core.alert.AlertService.GetRelAlertFinding:output_type -> core.alert.GetRelAlertFindingResponse + 20, // 83: core.alert.AlertService.PutRelAlertFinding:output_type -> core.alert.PutRelAlertFindingResponse + 79, // 84: core.alert.AlertService.DeleteRelAlertFinding:output_type -> google.protobuf.Empty + 23, // 85: core.alert.AlertService.ListAlertCondition:output_type -> core.alert.ListAlertConditionResponse + 25, // 86: core.alert.AlertService.GetAlertCondition:output_type -> core.alert.GetAlertConditionResponse + 27, // 87: core.alert.AlertService.PutAlertCondition:output_type -> core.alert.PutAlertConditionResponse + 79, // 88: core.alert.AlertService.DeleteAlertCondition:output_type -> google.protobuf.Empty + 30, // 89: core.alert.AlertService.ListAlertRule:output_type -> core.alert.ListAlertRuleResponse + 32, // 90: core.alert.AlertService.GetAlertRule:output_type -> core.alert.GetAlertRuleResponse + 34, // 91: core.alert.AlertService.PutAlertRule:output_type -> core.alert.PutAlertRuleResponse + 79, // 92: core.alert.AlertService.DeleteAlertRule:output_type -> google.protobuf.Empty + 37, // 93: core.alert.AlertService.ListAlertCondRule:output_type -> core.alert.ListAlertCondRuleResponse + 39, // 94: core.alert.AlertService.GetAlertCondRule:output_type -> core.alert.GetAlertCondRuleResponse + 41, // 95: core.alert.AlertService.PutAlertCondRule:output_type -> core.alert.PutAlertCondRuleResponse + 79, // 96: core.alert.AlertService.DeleteAlertCondRule:output_type -> google.protobuf.Empty + 44, // 97: core.alert.AlertService.ListNotification:output_type -> core.alert.ListNotificationResponse + 46, // 98: core.alert.AlertService.ListNotificationForInternal:output_type -> core.alert.ListNotificationForInternalResponse + 48, // 99: core.alert.AlertService.GetNotification:output_type -> core.alert.GetNotificationResponse + 50, // 100: core.alert.AlertService.PutNotification:output_type -> core.alert.PutNotificationResponse + 79, // 101: core.alert.AlertService.DeleteNotification:output_type -> google.protobuf.Empty + 79, // 102: core.alert.AlertService.TestNotification:output_type -> google.protobuf.Empty + 79, // 103: core.alert.AlertService.RequestAuthzNotification:output_type -> google.protobuf.Empty + 55, // 104: core.alert.AlertService.ListAlertCondNotification:output_type -> core.alert.ListAlertCondNotificationResponse + 57, // 105: core.alert.AlertService.GetAlertCondNotification:output_type -> core.alert.GetAlertCondNotificationResponse + 59, // 106: core.alert.AlertService.PutAlertCondNotification:output_type -> core.alert.PutAlertCondNotificationResponse + 79, // 107: core.alert.AlertService.DeleteAlertCondNotification:output_type -> google.protobuf.Empty + 79, // 108: core.alert.AlertService.AnalyzeAlert:output_type -> google.protobuf.Empty + 79, // 109: core.alert.AlertService.AnalyzeAlertAll:output_type -> google.protobuf.Empty + 72, // [72:110] is the sub-list for method output_type + 34, // [34:72] is the sub-list for method input_type 34, // [34:34] is the sub-list for extension type_name 34, // [34:34] is the sub-list for extension extendee 0, // [0:34] is the sub-list for field type_name @@ -4905,7 +4986,7 @@ func file_alert_service_proto_init() { } } file_alert_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAlertCondNotificationRequest); i { + switch v := v.(*RequestAuthzNotificationRequest); i { case 0: return &v.state case 1: @@ -4917,7 +4998,7 @@ func file_alert_service_proto_init() { } } file_alert_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAlertCondNotificationResponse); i { + switch v := v.(*ListAlertCondNotificationRequest); i { case 0: return &v.state case 1: @@ -4929,7 +5010,7 @@ func file_alert_service_proto_init() { } } file_alert_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAlertCondNotificationRequest); i { + switch v := v.(*ListAlertCondNotificationResponse); i { case 0: return &v.state case 1: @@ -4941,7 +5022,7 @@ func file_alert_service_proto_init() { } } file_alert_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAlertCondNotificationResponse); i { + switch v := v.(*GetAlertCondNotificationRequest); i { case 0: return &v.state case 1: @@ -4953,7 +5034,7 @@ func file_alert_service_proto_init() { } } file_alert_service_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutAlertCondNotificationRequest); i { + switch v := v.(*GetAlertCondNotificationResponse); i { case 0: return &v.state case 1: @@ -4965,7 +5046,7 @@ func file_alert_service_proto_init() { } } file_alert_service_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutAlertCondNotificationResponse); i { + switch v := v.(*PutAlertCondNotificationRequest); i { case 0: return &v.state case 1: @@ -4977,7 +5058,7 @@ func file_alert_service_proto_init() { } } file_alert_service_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteAlertCondNotificationRequest); i { + switch v := v.(*PutAlertCondNotificationResponse); i { case 0: return &v.state case 1: @@ -4989,6 +5070,18 @@ func file_alert_service_proto_init() { } } file_alert_service_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteAlertCondNotificationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_alert_service_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AnalyzeAlertRequest); i { case 0: return &v.state @@ -5007,7 +5100,7 @@ func file_alert_service_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_alert_service_proto_rawDesc, NumEnums: 0, - NumMessages: 61, + NumMessages: 62, NumExtensions: 0, NumServices: 1, }, @@ -5071,6 +5164,7 @@ type AlertServiceClient interface { PutNotification(ctx context.Context, in *PutNotificationRequest, opts ...grpc.CallOption) (*PutNotificationResponse, error) DeleteNotification(ctx context.Context, in *DeleteNotificationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) TestNotification(ctx context.Context, in *TestNotificationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + RequestAuthzNotification(ctx context.Context, in *RequestAuthzNotificationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // alert_cond_notification ListAlertCondNotification(ctx context.Context, in *ListAlertCondNotificationRequest, opts ...grpc.CallOption) (*ListAlertCondNotificationResponse, error) GetAlertCondNotification(ctx context.Context, in *GetAlertCondNotificationRequest, opts ...grpc.CallOption) (*GetAlertCondNotificationResponse, error) @@ -5368,6 +5462,15 @@ func (c *alertServiceClient) TestNotification(ctx context.Context, in *TestNotif return out, nil } +func (c *alertServiceClient) RequestAuthzNotification(ctx context.Context, in *RequestAuthzNotificationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/core.alert.AlertService/RequestAuthzNotification", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *alertServiceClient) ListAlertCondNotification(ctx context.Context, in *ListAlertCondNotificationRequest, opts ...grpc.CallOption) (*ListAlertCondNotificationResponse, error) { out := new(ListAlertCondNotificationResponse) err := c.cc.Invoke(ctx, "/core.alert.AlertService/ListAlertCondNotification", in, out, opts...) @@ -5462,6 +5565,7 @@ type AlertServiceServer interface { PutNotification(context.Context, *PutNotificationRequest) (*PutNotificationResponse, error) DeleteNotification(context.Context, *DeleteNotificationRequest) (*emptypb.Empty, error) TestNotification(context.Context, *TestNotificationRequest) (*emptypb.Empty, error) + RequestAuthzNotification(context.Context, *RequestAuthzNotificationRequest) (*emptypb.Empty, error) // alert_cond_notification ListAlertCondNotification(context.Context, *ListAlertCondNotificationRequest) (*ListAlertCondNotificationResponse, error) GetAlertCondNotification(context.Context, *GetAlertCondNotificationRequest) (*GetAlertCondNotificationResponse, error) @@ -5569,6 +5673,9 @@ func (*UnimplementedAlertServiceServer) DeleteNotification(context.Context, *Del func (*UnimplementedAlertServiceServer) TestNotification(context.Context, *TestNotificationRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method TestNotification not implemented") } +func (*UnimplementedAlertServiceServer) RequestAuthzNotification(context.Context, *RequestAuthzNotificationRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestAuthzNotification not implemented") +} func (*UnimplementedAlertServiceServer) ListAlertCondNotification(context.Context, *ListAlertCondNotificationRequest) (*ListAlertCondNotificationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAlertCondNotification not implemented") } @@ -6150,6 +6257,24 @@ func _AlertService_TestNotification_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } +func _AlertService_RequestAuthzNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestAuthzNotificationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AlertServiceServer).RequestAuthzNotification(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/core.alert.AlertService/RequestAuthzNotification", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AlertServiceServer).RequestAuthzNotification(ctx, req.(*RequestAuthzNotificationRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AlertService_ListAlertCondNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListAlertCondNotificationRequest) if err := dec(in); err != nil { @@ -6386,6 +6511,10 @@ var _AlertService_serviceDesc = grpc.ServiceDesc{ MethodName: "TestNotification", Handler: _AlertService_TestNotification_Handler, }, + { + MethodName: "RequestAuthzNotification", + Handler: _AlertService_RequestAuthzNotification_Handler, + }, { MethodName: "ListAlertCondNotification", Handler: _AlertService_ListAlertCondNotification_Handler, diff --git a/proto/alert/service.proto b/proto/alert/service.proto index e0d9461..5a195f3 100644 --- a/proto/alert/service.proto +++ b/proto/alert/service.proto @@ -69,7 +69,8 @@ service AlertService { rpc DeleteNotification(DeleteNotificationRequest) returns (google.protobuf.Empty); rpc TestNotification(TestNotificationRequest) returns (google.protobuf.Empty); - rpc SendNotification(SendNotificationRequest) returns (google.protobuf.Empty); + rpc RequestAuthzNotification(RequestAuthzNotificationRequest) + returns (google.protobuf.Empty); // alert_cond_notification rpc ListAlertCondNotification(ListAlertCondNotificationRequest) @@ -316,10 +317,10 @@ message TestNotificationRequest { uint32 notification_id = 2; } -message SubmitNotificationRequest { +message RequestAuthzNotificationRequest { uint32 project_id = 1; - uint32 notification_id = 2; - string message = 1; + string project_name = 2; + string user_name = 3; } message ListAlertCondNotificationRequest { diff --git a/proto/finding/entity.pb.go b/proto/finding/entity.pb.go index d789056..bc83521 100644 --- a/proto/finding/entity.pb.go +++ b/proto/finding/entity.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: finding/entity.proto package finding diff --git a/proto/finding/mocks/FindingServiceClient.go b/proto/finding/mocks/FindingServiceClient.go index 7278542..048189f 100644 --- a/proto/finding/mocks/FindingServiceClient.go +++ b/proto/finding/mocks/FindingServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -29,6 +29,10 @@ func (_m *FindingServiceClient) BatchListFinding(ctx context.Context, in *findin _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for BatchListFinding") + } + var r0 *finding.BatchListFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.BatchListFindingRequest, ...grpc.CallOption) (*finding.BatchListFindingResponse, error)); ok { @@ -62,6 +66,10 @@ func (_m *FindingServiceClient) CleanOldResource(ctx context.Context, in *emptyp _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for CleanOldResource") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -95,6 +103,10 @@ func (_m *FindingServiceClient) ClearScore(ctx context.Context, in *finding.Clea _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ClearScore") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ClearScoreRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -128,6 +140,10 @@ func (_m *FindingServiceClient) DeleteFinding(ctx context.Context, in *finding.D _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.DeleteFindingRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -161,6 +177,10 @@ func (_m *FindingServiceClient) DeleteFindingSetting(ctx context.Context, in *fi _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteFindingSetting") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.DeleteFindingSettingRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -194,6 +214,10 @@ func (_m *FindingServiceClient) DeletePendFinding(ctx context.Context, in *findi _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeletePendFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.DeletePendFindingRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -227,6 +251,10 @@ func (_m *FindingServiceClient) DeleteResource(ctx context.Context, in *finding. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteResource") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.DeleteResourceRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -260,6 +288,10 @@ func (_m *FindingServiceClient) GetAISummary(ctx context.Context, in *finding.Ge _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetAISummary") + } + var r0 *finding.GetAISummaryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetAISummaryRequest, ...grpc.CallOption) (*finding.GetAISummaryResponse, error)); ok { @@ -293,6 +325,10 @@ func (_m *FindingServiceClient) GetAISummaryStream(ctx context.Context, in *find _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetAISummaryStream") + } + var r0 finding.FindingService_GetAISummaryStreamClient var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetAISummaryRequest, ...grpc.CallOption) (finding.FindingService_GetAISummaryStreamClient, error)); ok { @@ -326,6 +362,10 @@ func (_m *FindingServiceClient) GetFinding(ctx context.Context, in *finding.GetF _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetFinding") + } + var r0 *finding.GetFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetFindingRequest, ...grpc.CallOption) (*finding.GetFindingResponse, error)); ok { @@ -359,6 +399,10 @@ func (_m *FindingServiceClient) GetFindingSetting(ctx context.Context, in *findi _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetFindingSetting") + } + var r0 *finding.GetFindingSettingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetFindingSettingRequest, ...grpc.CallOption) (*finding.GetFindingSettingResponse, error)); ok { @@ -392,6 +436,10 @@ func (_m *FindingServiceClient) GetPendFinding(ctx context.Context, in *finding. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetPendFinding") + } + var r0 *finding.GetPendFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetPendFindingRequest, ...grpc.CallOption) (*finding.GetPendFindingResponse, error)); ok { @@ -425,6 +473,10 @@ func (_m *FindingServiceClient) GetRecommend(ctx context.Context, in *finding.Ge _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetRecommend") + } + var r0 *finding.GetRecommendResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetRecommendRequest, ...grpc.CallOption) (*finding.GetRecommendResponse, error)); ok { @@ -458,6 +510,10 @@ func (_m *FindingServiceClient) GetResource(ctx context.Context, in *finding.Get _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetResource") + } + var r0 *finding.GetResourceResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetResourceRequest, ...grpc.CallOption) (*finding.GetResourceResponse, error)); ok { @@ -491,6 +547,10 @@ func (_m *FindingServiceClient) ListFinding(ctx context.Context, in *finding.Lis _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListFinding") + } + var r0 *finding.ListFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListFindingRequest, ...grpc.CallOption) (*finding.ListFindingResponse, error)); ok { @@ -524,6 +584,10 @@ func (_m *FindingServiceClient) ListFindingSetting(ctx context.Context, in *find _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListFindingSetting") + } + var r0 *finding.ListFindingSettingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListFindingSettingRequest, ...grpc.CallOption) (*finding.ListFindingSettingResponse, error)); ok { @@ -557,6 +621,10 @@ func (_m *FindingServiceClient) ListFindingTag(ctx context.Context, in *finding. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListFindingTag") + } + var r0 *finding.ListFindingTagResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListFindingTagRequest, ...grpc.CallOption) (*finding.ListFindingTagResponse, error)); ok { @@ -590,6 +658,10 @@ func (_m *FindingServiceClient) ListFindingTagName(ctx context.Context, in *find _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListFindingTagName") + } + var r0 *finding.ListFindingTagNameResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListFindingTagNameRequest, ...grpc.CallOption) (*finding.ListFindingTagNameResponse, error)); ok { @@ -623,6 +695,10 @@ func (_m *FindingServiceClient) ListResource(ctx context.Context, in *finding.Li _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListResource") + } + var r0 *finding.ListResourceResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListResourceRequest, ...grpc.CallOption) (*finding.ListResourceResponse, error)); ok { @@ -656,6 +732,10 @@ func (_m *FindingServiceClient) ListResourceTag(ctx context.Context, in *finding _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListResourceTag") + } + var r0 *finding.ListResourceTagResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListResourceTagRequest, ...grpc.CallOption) (*finding.ListResourceTagResponse, error)); ok { @@ -689,6 +769,10 @@ func (_m *FindingServiceClient) ListResourceTagName(ctx context.Context, in *fin _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListResourceTagName") + } + var r0 *finding.ListResourceTagNameResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListResourceTagNameRequest, ...grpc.CallOption) (*finding.ListResourceTagNameResponse, error)); ok { @@ -722,6 +806,10 @@ func (_m *FindingServiceClient) PutFinding(ctx context.Context, in *finding.PutF _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutFinding") + } + var r0 *finding.PutFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutFindingRequest, ...grpc.CallOption) (*finding.PutFindingResponse, error)); ok { @@ -755,6 +843,10 @@ func (_m *FindingServiceClient) PutFindingBatch(ctx context.Context, in *finding _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutFindingBatch") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutFindingBatchRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -788,6 +880,10 @@ func (_m *FindingServiceClient) PutFindingSetting(ctx context.Context, in *findi _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutFindingSetting") + } + var r0 *finding.PutFindingSettingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutFindingSettingRequest, ...grpc.CallOption) (*finding.PutFindingSettingResponse, error)); ok { @@ -821,6 +917,10 @@ func (_m *FindingServiceClient) PutPendFinding(ctx context.Context, in *finding. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutPendFinding") + } + var r0 *finding.PutPendFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutPendFindingRequest, ...grpc.CallOption) (*finding.PutPendFindingResponse, error)); ok { @@ -854,6 +954,10 @@ func (_m *FindingServiceClient) PutRecommend(ctx context.Context, in *finding.Pu _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutRecommend") + } + var r0 *finding.PutRecommendResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutRecommendRequest, ...grpc.CallOption) (*finding.PutRecommendResponse, error)); ok { @@ -887,6 +991,10 @@ func (_m *FindingServiceClient) PutResource(ctx context.Context, in *finding.Put _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutResource") + } + var r0 *finding.PutResourceResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutResourceRequest, ...grpc.CallOption) (*finding.PutResourceResponse, error)); ok { @@ -920,6 +1028,10 @@ func (_m *FindingServiceClient) PutResourceBatch(ctx context.Context, in *findin _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutResourceBatch") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutResourceBatchRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -953,6 +1065,10 @@ func (_m *FindingServiceClient) TagFinding(ctx context.Context, in *finding.TagF _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for TagFinding") + } + var r0 *finding.TagFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.TagFindingRequest, ...grpc.CallOption) (*finding.TagFindingResponse, error)); ok { @@ -986,6 +1102,10 @@ func (_m *FindingServiceClient) TagResource(ctx context.Context, in *finding.Tag _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for TagResource") + } + var r0 *finding.TagResourceResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.TagResourceRequest, ...grpc.CallOption) (*finding.TagResourceResponse, error)); ok { @@ -1019,6 +1139,10 @@ func (_m *FindingServiceClient) UntagByResourceName(ctx context.Context, in *fin _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for UntagByResourceName") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.UntagByResourceNameRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -1052,6 +1176,10 @@ func (_m *FindingServiceClient) UntagFinding(ctx context.Context, in *finding.Un _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for UntagFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.UntagFindingRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -1085,6 +1213,10 @@ func (_m *FindingServiceClient) UntagResource(ctx context.Context, in *finding.U _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for UntagResource") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.UntagResourceRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { diff --git a/proto/finding/mocks/FindingServiceServer.go b/proto/finding/mocks/FindingServiceServer.go index cac56ab..4668e25 100644 --- a/proto/finding/mocks/FindingServiceServer.go +++ b/proto/finding/mocks/FindingServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -20,6 +20,10 @@ type FindingServiceServer struct { func (_m *FindingServiceServer) BatchListFinding(_a0 context.Context, _a1 *finding.BatchListFindingRequest) (*finding.BatchListFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for BatchListFinding") + } + var r0 *finding.BatchListFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.BatchListFindingRequest) (*finding.BatchListFindingResponse, error)); ok { @@ -46,6 +50,10 @@ func (_m *FindingServiceServer) BatchListFinding(_a0 context.Context, _a1 *findi func (_m *FindingServiceServer) CleanOldResource(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for CleanOldResource") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty) (*emptypb.Empty, error)); ok { @@ -72,6 +80,10 @@ func (_m *FindingServiceServer) CleanOldResource(_a0 context.Context, _a1 *empty func (_m *FindingServiceServer) ClearScore(_a0 context.Context, _a1 *finding.ClearScoreRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ClearScore") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ClearScoreRequest) (*emptypb.Empty, error)); ok { @@ -98,6 +110,10 @@ func (_m *FindingServiceServer) ClearScore(_a0 context.Context, _a1 *finding.Cle func (_m *FindingServiceServer) DeleteFinding(_a0 context.Context, _a1 *finding.DeleteFindingRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.DeleteFindingRequest) (*emptypb.Empty, error)); ok { @@ -124,6 +140,10 @@ func (_m *FindingServiceServer) DeleteFinding(_a0 context.Context, _a1 *finding. func (_m *FindingServiceServer) DeleteFindingSetting(_a0 context.Context, _a1 *finding.DeleteFindingSettingRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteFindingSetting") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.DeleteFindingSettingRequest) (*emptypb.Empty, error)); ok { @@ -150,6 +170,10 @@ func (_m *FindingServiceServer) DeleteFindingSetting(_a0 context.Context, _a1 *f func (_m *FindingServiceServer) DeletePendFinding(_a0 context.Context, _a1 *finding.DeletePendFindingRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeletePendFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.DeletePendFindingRequest) (*emptypb.Empty, error)); ok { @@ -176,6 +200,10 @@ func (_m *FindingServiceServer) DeletePendFinding(_a0 context.Context, _a1 *find func (_m *FindingServiceServer) DeleteResource(_a0 context.Context, _a1 *finding.DeleteResourceRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteResource") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.DeleteResourceRequest) (*emptypb.Empty, error)); ok { @@ -202,6 +230,10 @@ func (_m *FindingServiceServer) DeleteResource(_a0 context.Context, _a1 *finding func (_m *FindingServiceServer) GetAISummary(_a0 context.Context, _a1 *finding.GetAISummaryRequest) (*finding.GetAISummaryResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetAISummary") + } + var r0 *finding.GetAISummaryResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetAISummaryRequest) (*finding.GetAISummaryResponse, error)); ok { @@ -228,6 +260,10 @@ func (_m *FindingServiceServer) GetAISummary(_a0 context.Context, _a1 *finding.G func (_m *FindingServiceServer) GetAISummaryStream(_a0 *finding.GetAISummaryRequest, _a1 finding.FindingService_GetAISummaryStreamServer) error { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetAISummaryStream") + } + var r0 error if rf, ok := ret.Get(0).(func(*finding.GetAISummaryRequest, finding.FindingService_GetAISummaryStreamServer) error); ok { r0 = rf(_a0, _a1) @@ -242,6 +278,10 @@ func (_m *FindingServiceServer) GetAISummaryStream(_a0 *finding.GetAISummaryRequ func (_m *FindingServiceServer) GetFinding(_a0 context.Context, _a1 *finding.GetFindingRequest) (*finding.GetFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetFinding") + } + var r0 *finding.GetFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetFindingRequest) (*finding.GetFindingResponse, error)); ok { @@ -268,6 +308,10 @@ func (_m *FindingServiceServer) GetFinding(_a0 context.Context, _a1 *finding.Get func (_m *FindingServiceServer) GetFindingSetting(_a0 context.Context, _a1 *finding.GetFindingSettingRequest) (*finding.GetFindingSettingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetFindingSetting") + } + var r0 *finding.GetFindingSettingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetFindingSettingRequest) (*finding.GetFindingSettingResponse, error)); ok { @@ -294,6 +338,10 @@ func (_m *FindingServiceServer) GetFindingSetting(_a0 context.Context, _a1 *find func (_m *FindingServiceServer) GetPendFinding(_a0 context.Context, _a1 *finding.GetPendFindingRequest) (*finding.GetPendFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetPendFinding") + } + var r0 *finding.GetPendFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetPendFindingRequest) (*finding.GetPendFindingResponse, error)); ok { @@ -320,6 +368,10 @@ func (_m *FindingServiceServer) GetPendFinding(_a0 context.Context, _a1 *finding func (_m *FindingServiceServer) GetRecommend(_a0 context.Context, _a1 *finding.GetRecommendRequest) (*finding.GetRecommendResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetRecommend") + } + var r0 *finding.GetRecommendResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetRecommendRequest) (*finding.GetRecommendResponse, error)); ok { @@ -346,6 +398,10 @@ func (_m *FindingServiceServer) GetRecommend(_a0 context.Context, _a1 *finding.G func (_m *FindingServiceServer) GetResource(_a0 context.Context, _a1 *finding.GetResourceRequest) (*finding.GetResourceResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetResource") + } + var r0 *finding.GetResourceResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.GetResourceRequest) (*finding.GetResourceResponse, error)); ok { @@ -372,6 +428,10 @@ func (_m *FindingServiceServer) GetResource(_a0 context.Context, _a1 *finding.Ge func (_m *FindingServiceServer) ListFinding(_a0 context.Context, _a1 *finding.ListFindingRequest) (*finding.ListFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListFinding") + } + var r0 *finding.ListFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListFindingRequest) (*finding.ListFindingResponse, error)); ok { @@ -398,6 +458,10 @@ func (_m *FindingServiceServer) ListFinding(_a0 context.Context, _a1 *finding.Li func (_m *FindingServiceServer) ListFindingSetting(_a0 context.Context, _a1 *finding.ListFindingSettingRequest) (*finding.ListFindingSettingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListFindingSetting") + } + var r0 *finding.ListFindingSettingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListFindingSettingRequest) (*finding.ListFindingSettingResponse, error)); ok { @@ -424,6 +488,10 @@ func (_m *FindingServiceServer) ListFindingSetting(_a0 context.Context, _a1 *fin func (_m *FindingServiceServer) ListFindingTag(_a0 context.Context, _a1 *finding.ListFindingTagRequest) (*finding.ListFindingTagResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListFindingTag") + } + var r0 *finding.ListFindingTagResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListFindingTagRequest) (*finding.ListFindingTagResponse, error)); ok { @@ -450,6 +518,10 @@ func (_m *FindingServiceServer) ListFindingTag(_a0 context.Context, _a1 *finding func (_m *FindingServiceServer) ListFindingTagName(_a0 context.Context, _a1 *finding.ListFindingTagNameRequest) (*finding.ListFindingTagNameResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListFindingTagName") + } + var r0 *finding.ListFindingTagNameResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListFindingTagNameRequest) (*finding.ListFindingTagNameResponse, error)); ok { @@ -476,6 +548,10 @@ func (_m *FindingServiceServer) ListFindingTagName(_a0 context.Context, _a1 *fin func (_m *FindingServiceServer) ListResource(_a0 context.Context, _a1 *finding.ListResourceRequest) (*finding.ListResourceResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListResource") + } + var r0 *finding.ListResourceResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListResourceRequest) (*finding.ListResourceResponse, error)); ok { @@ -502,6 +578,10 @@ func (_m *FindingServiceServer) ListResource(_a0 context.Context, _a1 *finding.L func (_m *FindingServiceServer) ListResourceTag(_a0 context.Context, _a1 *finding.ListResourceTagRequest) (*finding.ListResourceTagResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListResourceTag") + } + var r0 *finding.ListResourceTagResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListResourceTagRequest) (*finding.ListResourceTagResponse, error)); ok { @@ -528,6 +608,10 @@ func (_m *FindingServiceServer) ListResourceTag(_a0 context.Context, _a1 *findin func (_m *FindingServiceServer) ListResourceTagName(_a0 context.Context, _a1 *finding.ListResourceTagNameRequest) (*finding.ListResourceTagNameResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListResourceTagName") + } + var r0 *finding.ListResourceTagNameResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.ListResourceTagNameRequest) (*finding.ListResourceTagNameResponse, error)); ok { @@ -554,6 +638,10 @@ func (_m *FindingServiceServer) ListResourceTagName(_a0 context.Context, _a1 *fi func (_m *FindingServiceServer) PutFinding(_a0 context.Context, _a1 *finding.PutFindingRequest) (*finding.PutFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutFinding") + } + var r0 *finding.PutFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutFindingRequest) (*finding.PutFindingResponse, error)); ok { @@ -580,6 +668,10 @@ func (_m *FindingServiceServer) PutFinding(_a0 context.Context, _a1 *finding.Put func (_m *FindingServiceServer) PutFindingBatch(_a0 context.Context, _a1 *finding.PutFindingBatchRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutFindingBatch") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutFindingBatchRequest) (*emptypb.Empty, error)); ok { @@ -606,6 +698,10 @@ func (_m *FindingServiceServer) PutFindingBatch(_a0 context.Context, _a1 *findin func (_m *FindingServiceServer) PutFindingSetting(_a0 context.Context, _a1 *finding.PutFindingSettingRequest) (*finding.PutFindingSettingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutFindingSetting") + } + var r0 *finding.PutFindingSettingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutFindingSettingRequest) (*finding.PutFindingSettingResponse, error)); ok { @@ -632,6 +728,10 @@ func (_m *FindingServiceServer) PutFindingSetting(_a0 context.Context, _a1 *find func (_m *FindingServiceServer) PutPendFinding(_a0 context.Context, _a1 *finding.PutPendFindingRequest) (*finding.PutPendFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutPendFinding") + } + var r0 *finding.PutPendFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutPendFindingRequest) (*finding.PutPendFindingResponse, error)); ok { @@ -658,6 +758,10 @@ func (_m *FindingServiceServer) PutPendFinding(_a0 context.Context, _a1 *finding func (_m *FindingServiceServer) PutRecommend(_a0 context.Context, _a1 *finding.PutRecommendRequest) (*finding.PutRecommendResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutRecommend") + } + var r0 *finding.PutRecommendResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutRecommendRequest) (*finding.PutRecommendResponse, error)); ok { @@ -684,6 +788,10 @@ func (_m *FindingServiceServer) PutRecommend(_a0 context.Context, _a1 *finding.P func (_m *FindingServiceServer) PutResource(_a0 context.Context, _a1 *finding.PutResourceRequest) (*finding.PutResourceResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutResource") + } + var r0 *finding.PutResourceResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutResourceRequest) (*finding.PutResourceResponse, error)); ok { @@ -710,6 +818,10 @@ func (_m *FindingServiceServer) PutResource(_a0 context.Context, _a1 *finding.Pu func (_m *FindingServiceServer) PutResourceBatch(_a0 context.Context, _a1 *finding.PutResourceBatchRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutResourceBatch") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.PutResourceBatchRequest) (*emptypb.Empty, error)); ok { @@ -736,6 +848,10 @@ func (_m *FindingServiceServer) PutResourceBatch(_a0 context.Context, _a1 *findi func (_m *FindingServiceServer) TagFinding(_a0 context.Context, _a1 *finding.TagFindingRequest) (*finding.TagFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for TagFinding") + } + var r0 *finding.TagFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.TagFindingRequest) (*finding.TagFindingResponse, error)); ok { @@ -762,6 +878,10 @@ func (_m *FindingServiceServer) TagFinding(_a0 context.Context, _a1 *finding.Tag func (_m *FindingServiceServer) TagResource(_a0 context.Context, _a1 *finding.TagResourceRequest) (*finding.TagResourceResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for TagResource") + } + var r0 *finding.TagResourceResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.TagResourceRequest) (*finding.TagResourceResponse, error)); ok { @@ -788,6 +908,10 @@ func (_m *FindingServiceServer) TagResource(_a0 context.Context, _a1 *finding.Ta func (_m *FindingServiceServer) UntagByResourceName(_a0 context.Context, _a1 *finding.UntagByResourceNameRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for UntagByResourceName") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.UntagByResourceNameRequest) (*emptypb.Empty, error)); ok { @@ -814,6 +938,10 @@ func (_m *FindingServiceServer) UntagByResourceName(_a0 context.Context, _a1 *fi func (_m *FindingServiceServer) UntagFinding(_a0 context.Context, _a1 *finding.UntagFindingRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for UntagFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.UntagFindingRequest) (*emptypb.Empty, error)); ok { @@ -840,6 +968,10 @@ func (_m *FindingServiceServer) UntagFinding(_a0 context.Context, _a1 *finding.U func (_m *FindingServiceServer) UntagResource(_a0 context.Context, _a1 *finding.UntagResourceRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for UntagResource") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *finding.UntagResourceRequest) (*emptypb.Empty, error)); ok { diff --git a/proto/finding/mocks/FindingService_GetAISummaryStreamClient.go b/proto/finding/mocks/FindingService_GetAISummaryStreamClient.go index 5057039..6467e1c 100644 --- a/proto/finding/mocks/FindingService_GetAISummaryStreamClient.go +++ b/proto/finding/mocks/FindingService_GetAISummaryStreamClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -20,6 +20,10 @@ type FindingService_GetAISummaryStreamClient struct { func (_m *FindingService_GetAISummaryStreamClient) CloseSend() error { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for CloseSend") + } + var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() @@ -34,6 +38,10 @@ func (_m *FindingService_GetAISummaryStreamClient) CloseSend() error { func (_m *FindingService_GetAISummaryStreamClient) Context() context.Context { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Context") + } + var r0 context.Context if rf, ok := ret.Get(0).(func() context.Context); ok { r0 = rf() @@ -50,6 +58,10 @@ func (_m *FindingService_GetAISummaryStreamClient) Context() context.Context { func (_m *FindingService_GetAISummaryStreamClient) Header() (metadata.MD, error) { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Header") + } + var r0 metadata.MD var r1 error if rf, ok := ret.Get(0).(func() (metadata.MD, error)); ok { @@ -76,6 +88,10 @@ func (_m *FindingService_GetAISummaryStreamClient) Header() (metadata.MD, error) func (_m *FindingService_GetAISummaryStreamClient) Recv() (*finding.GetAISummaryResponse, error) { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Recv") + } + var r0 *finding.GetAISummaryResponse var r1 error if rf, ok := ret.Get(0).(func() (*finding.GetAISummaryResponse, error)); ok { @@ -102,6 +118,10 @@ func (_m *FindingService_GetAISummaryStreamClient) Recv() (*finding.GetAISummary func (_m *FindingService_GetAISummaryStreamClient) RecvMsg(m interface{}) error { ret := _m.Called(m) + if len(ret) == 0 { + panic("no return value specified for RecvMsg") + } + var r0 error if rf, ok := ret.Get(0).(func(interface{}) error); ok { r0 = rf(m) @@ -116,6 +136,10 @@ func (_m *FindingService_GetAISummaryStreamClient) RecvMsg(m interface{}) error func (_m *FindingService_GetAISummaryStreamClient) SendMsg(m interface{}) error { ret := _m.Called(m) + if len(ret) == 0 { + panic("no return value specified for SendMsg") + } + var r0 error if rf, ok := ret.Get(0).(func(interface{}) error); ok { r0 = rf(m) @@ -130,6 +154,10 @@ func (_m *FindingService_GetAISummaryStreamClient) SendMsg(m interface{}) error func (_m *FindingService_GetAISummaryStreamClient) Trailer() metadata.MD { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Trailer") + } + var r0 metadata.MD if rf, ok := ret.Get(0).(func() metadata.MD); ok { r0 = rf() diff --git a/proto/finding/mocks/FindingService_GetAISummaryStreamServer.go b/proto/finding/mocks/FindingService_GetAISummaryStreamServer.go index 103529d..0f2dfcc 100644 --- a/proto/finding/mocks/FindingService_GetAISummaryStreamServer.go +++ b/proto/finding/mocks/FindingService_GetAISummaryStreamServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -20,6 +20,10 @@ type FindingService_GetAISummaryStreamServer struct { func (_m *FindingService_GetAISummaryStreamServer) Context() context.Context { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Context") + } + var r0 context.Context if rf, ok := ret.Get(0).(func() context.Context); ok { r0 = rf() @@ -36,6 +40,10 @@ func (_m *FindingService_GetAISummaryStreamServer) Context() context.Context { func (_m *FindingService_GetAISummaryStreamServer) RecvMsg(m interface{}) error { ret := _m.Called(m) + if len(ret) == 0 { + panic("no return value specified for RecvMsg") + } + var r0 error if rf, ok := ret.Get(0).(func(interface{}) error); ok { r0 = rf(m) @@ -50,6 +58,10 @@ func (_m *FindingService_GetAISummaryStreamServer) RecvMsg(m interface{}) error func (_m *FindingService_GetAISummaryStreamServer) Send(_a0 *finding.GetAISummaryResponse) error { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for Send") + } + var r0 error if rf, ok := ret.Get(0).(func(*finding.GetAISummaryResponse) error); ok { r0 = rf(_a0) @@ -64,6 +76,10 @@ func (_m *FindingService_GetAISummaryStreamServer) Send(_a0 *finding.GetAISummar func (_m *FindingService_GetAISummaryStreamServer) SendHeader(_a0 metadata.MD) error { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for SendHeader") + } + var r0 error if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { r0 = rf(_a0) @@ -78,6 +94,10 @@ func (_m *FindingService_GetAISummaryStreamServer) SendHeader(_a0 metadata.MD) e func (_m *FindingService_GetAISummaryStreamServer) SendMsg(m interface{}) error { ret := _m.Called(m) + if len(ret) == 0 { + panic("no return value specified for SendMsg") + } + var r0 error if rf, ok := ret.Get(0).(func(interface{}) error); ok { r0 = rf(m) @@ -92,6 +112,10 @@ func (_m *FindingService_GetAISummaryStreamServer) SendMsg(m interface{}) error func (_m *FindingService_GetAISummaryStreamServer) SetHeader(_a0 metadata.MD) error { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for SetHeader") + } + var r0 error if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { r0 = rf(_a0) diff --git a/proto/finding/service.pb.go b/proto/finding/service.pb.go index 7435773..bdb431e 100644 --- a/proto/finding/service.pb.go +++ b/proto/finding/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: finding/service.proto package finding diff --git a/proto/iam/access_token.pb.go b/proto/iam/access_token.pb.go index 2007013..6df952c 100644 --- a/proto/iam/access_token.pb.go +++ b/proto/iam/access_token.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: iam/access_token.proto package iam diff --git a/proto/iam/entity.pb.go b/proto/iam/entity.pb.go index 2d6e63f..b19ef1e 100644 --- a/proto/iam/entity.pb.go +++ b/proto/iam/entity.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: iam/entity.proto package iam diff --git a/proto/iam/mocks/IAMServiceClient.go b/proto/iam/mocks/IAMServiceClient.go index 48dd5ee..b9be2d6 100644 --- a/proto/iam/mocks/IAMServiceClient.go +++ b/proto/iam/mocks/IAMServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -29,6 +29,10 @@ func (_m *IAMServiceClient) AnalyzeTokenExpiration(ctx context.Context, in *empt _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for AnalyzeTokenExpiration") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -62,6 +66,10 @@ func (_m *IAMServiceClient) AttachAccessTokenRole(ctx context.Context, in *iam.A _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for AttachAccessTokenRole") + } + var r0 *iam.AttachAccessTokenRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachAccessTokenRoleRequest, ...grpc.CallOption) (*iam.AttachAccessTokenRoleResponse, error)); ok { @@ -95,6 +103,10 @@ func (_m *IAMServiceClient) AttachPolicy(ctx context.Context, in *iam.AttachPoli _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for AttachPolicy") + } + var r0 *iam.AttachPolicyResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachPolicyRequest, ...grpc.CallOption) (*iam.AttachPolicyResponse, error)); ok { @@ -128,6 +140,10 @@ func (_m *IAMServiceClient) AttachRole(ctx context.Context, in *iam.AttachRoleRe _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for AttachRole") + } + var r0 *iam.AttachRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachRoleRequest, ...grpc.CallOption) (*iam.AttachRoleResponse, error)); ok { @@ -161,6 +177,10 @@ func (_m *IAMServiceClient) AuthenticateAccessToken(ctx context.Context, in *iam _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for AuthenticateAccessToken") + } + var r0 *iam.AuthenticateAccessTokenResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.AuthenticateAccessTokenRequest, ...grpc.CallOption) (*iam.AuthenticateAccessTokenResponse, error)); ok { @@ -194,6 +214,10 @@ func (_m *IAMServiceClient) DeleteAccessToken(ctx context.Context, in *iam.Delet _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteAccessToken") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteAccessTokenRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -227,6 +251,10 @@ func (_m *IAMServiceClient) DeletePolicy(ctx context.Context, in *iam.DeletePoli _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeletePolicy") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DeletePolicyRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -260,6 +288,10 @@ func (_m *IAMServiceClient) DeleteRole(ctx context.Context, in *iam.DeleteRoleRe _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteRole") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteRoleRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -293,6 +325,10 @@ func (_m *IAMServiceClient) DeleteUserReserved(ctx context.Context, in *iam.Dele _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteUserReserved") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteUserReservedRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -326,6 +362,10 @@ func (_m *IAMServiceClient) DetachAccessTokenRole(ctx context.Context, in *iam.D _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DetachAccessTokenRole") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachAccessTokenRoleRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -359,6 +399,10 @@ func (_m *IAMServiceClient) DetachPolicy(ctx context.Context, in *iam.DetachPoli _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DetachPolicy") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachPolicyRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -392,6 +436,10 @@ func (_m *IAMServiceClient) DetachRole(ctx context.Context, in *iam.DetachRoleRe _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DetachRole") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachRoleRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -425,6 +473,10 @@ func (_m *IAMServiceClient) GetPolicy(ctx context.Context, in *iam.GetPolicyRequ _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetPolicy") + } + var r0 *iam.GetPolicyResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.GetPolicyRequest, ...grpc.CallOption) (*iam.GetPolicyResponse, error)); ok { @@ -458,6 +510,10 @@ func (_m *IAMServiceClient) GetRole(ctx context.Context, in *iam.GetRoleRequest, _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetRole") + } + var r0 *iam.GetRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.GetRoleRequest, ...grpc.CallOption) (*iam.GetRoleResponse, error)); ok { @@ -491,6 +547,10 @@ func (_m *IAMServiceClient) GetUser(ctx context.Context, in *iam.GetUserRequest, _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetUser") + } + var r0 *iam.GetUserResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.GetUserRequest, ...grpc.CallOption) (*iam.GetUserResponse, error)); ok { @@ -524,6 +584,10 @@ func (_m *IAMServiceClient) IsAdmin(ctx context.Context, in *iam.IsAdminRequest, _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for IsAdmin") + } + var r0 *iam.IsAdminResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.IsAdminRequest, ...grpc.CallOption) (*iam.IsAdminResponse, error)); ok { @@ -557,6 +621,10 @@ func (_m *IAMServiceClient) IsAuthorized(ctx context.Context, in *iam.IsAuthoriz _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for IsAuthorized") + } + var r0 *iam.IsAuthorizedResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.IsAuthorizedRequest, ...grpc.CallOption) (*iam.IsAuthorizedResponse, error)); ok { @@ -590,6 +658,10 @@ func (_m *IAMServiceClient) IsAuthorizedAdmin(ctx context.Context, in *iam.IsAut _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for IsAuthorizedAdmin") + } + var r0 *iam.IsAuthorizedAdminResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.IsAuthorizedAdminRequest, ...grpc.CallOption) (*iam.IsAuthorizedAdminResponse, error)); ok { @@ -623,6 +695,10 @@ func (_m *IAMServiceClient) IsAuthorizedToken(ctx context.Context, in *iam.IsAut _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for IsAuthorizedToken") + } + var r0 *iam.IsAuthorizedTokenResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.IsAuthorizedTokenRequest, ...grpc.CallOption) (*iam.IsAuthorizedTokenResponse, error)); ok { @@ -656,6 +732,10 @@ func (_m *IAMServiceClient) ListAccessToken(ctx context.Context, in *iam.ListAcc _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListAccessToken") + } + var r0 *iam.ListAccessTokenResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAccessTokenRequest, ...grpc.CallOption) (*iam.ListAccessTokenResponse, error)); ok { @@ -689,6 +769,10 @@ func (_m *IAMServiceClient) ListPolicy(ctx context.Context, in *iam.ListPolicyRe _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListPolicy") + } + var r0 *iam.ListPolicyResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPolicyRequest, ...grpc.CallOption) (*iam.ListPolicyResponse, error)); ok { @@ -722,6 +806,10 @@ func (_m *IAMServiceClient) ListRole(ctx context.Context, in *iam.ListRoleReques _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListRole") + } + var r0 *iam.ListRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRoleRequest, ...grpc.CallOption) (*iam.ListRoleResponse, error)); ok { @@ -755,6 +843,10 @@ func (_m *IAMServiceClient) ListUser(ctx context.Context, in *iam.ListUserReques _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListUser") + } + var r0 *iam.ListUserResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserRequest, ...grpc.CallOption) (*iam.ListUserResponse, error)); ok { @@ -788,6 +880,10 @@ func (_m *IAMServiceClient) ListUserReserved(ctx context.Context, in *iam.ListUs _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListUserReserved") + } + var r0 *iam.ListUserReservedResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserReservedRequest, ...grpc.CallOption) (*iam.ListUserReservedResponse, error)); ok { @@ -821,6 +917,10 @@ func (_m *IAMServiceClient) PutAccessToken(ctx context.Context, in *iam.PutAcces _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutAccessToken") + } + var r0 *iam.PutAccessTokenResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutAccessTokenRequest, ...grpc.CallOption) (*iam.PutAccessTokenResponse, error)); ok { @@ -854,6 +954,10 @@ func (_m *IAMServiceClient) PutPolicy(ctx context.Context, in *iam.PutPolicyRequ _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutPolicy") + } + var r0 *iam.PutPolicyResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutPolicyRequest, ...grpc.CallOption) (*iam.PutPolicyResponse, error)); ok { @@ -887,6 +991,10 @@ func (_m *IAMServiceClient) PutRole(ctx context.Context, in *iam.PutRoleRequest, _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutRole") + } + var r0 *iam.PutRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutRoleRequest, ...grpc.CallOption) (*iam.PutRoleResponse, error)); ok { @@ -920,6 +1028,10 @@ func (_m *IAMServiceClient) PutUser(ctx context.Context, in *iam.PutUserRequest, _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutUser") + } + var r0 *iam.PutUserResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutUserRequest, ...grpc.CallOption) (*iam.PutUserResponse, error)); ok { @@ -953,6 +1065,10 @@ func (_m *IAMServiceClient) PutUserReserved(ctx context.Context, in *iam.PutUser _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PutUserReserved") + } + var r0 *iam.PutUserReservedResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutUserReservedRequest, ...grpc.CallOption) (*iam.PutUserReservedResponse, error)); ok { diff --git a/proto/iam/mocks/IAMServiceServer.go b/proto/iam/mocks/IAMServiceServer.go index 31828fd..a828479 100644 --- a/proto/iam/mocks/IAMServiceServer.go +++ b/proto/iam/mocks/IAMServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -20,6 +20,10 @@ type IAMServiceServer struct { func (_m *IAMServiceServer) AnalyzeTokenExpiration(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AnalyzeTokenExpiration") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty) (*emptypb.Empty, error)); ok { @@ -46,6 +50,10 @@ func (_m *IAMServiceServer) AnalyzeTokenExpiration(_a0 context.Context, _a1 *emp func (_m *IAMServiceServer) AttachAccessTokenRole(_a0 context.Context, _a1 *iam.AttachAccessTokenRoleRequest) (*iam.AttachAccessTokenRoleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AttachAccessTokenRole") + } + var r0 *iam.AttachAccessTokenRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachAccessTokenRoleRequest) (*iam.AttachAccessTokenRoleResponse, error)); ok { @@ -72,6 +80,10 @@ func (_m *IAMServiceServer) AttachAccessTokenRole(_a0 context.Context, _a1 *iam. func (_m *IAMServiceServer) AttachPolicy(_a0 context.Context, _a1 *iam.AttachPolicyRequest) (*iam.AttachPolicyResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AttachPolicy") + } + var r0 *iam.AttachPolicyResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachPolicyRequest) (*iam.AttachPolicyResponse, error)); ok { @@ -98,6 +110,10 @@ func (_m *IAMServiceServer) AttachPolicy(_a0 context.Context, _a1 *iam.AttachPol func (_m *IAMServiceServer) AttachRole(_a0 context.Context, _a1 *iam.AttachRoleRequest) (*iam.AttachRoleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AttachRole") + } + var r0 *iam.AttachRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachRoleRequest) (*iam.AttachRoleResponse, error)); ok { @@ -124,6 +140,10 @@ func (_m *IAMServiceServer) AttachRole(_a0 context.Context, _a1 *iam.AttachRoleR func (_m *IAMServiceServer) AuthenticateAccessToken(_a0 context.Context, _a1 *iam.AuthenticateAccessTokenRequest) (*iam.AuthenticateAccessTokenResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AuthenticateAccessToken") + } + var r0 *iam.AuthenticateAccessTokenResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.AuthenticateAccessTokenRequest) (*iam.AuthenticateAccessTokenResponse, error)); ok { @@ -150,6 +170,10 @@ func (_m *IAMServiceServer) AuthenticateAccessToken(_a0 context.Context, _a1 *ia func (_m *IAMServiceServer) DeleteAccessToken(_a0 context.Context, _a1 *iam.DeleteAccessTokenRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteAccessToken") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteAccessTokenRequest) (*emptypb.Empty, error)); ok { @@ -176,6 +200,10 @@ func (_m *IAMServiceServer) DeleteAccessToken(_a0 context.Context, _a1 *iam.Dele func (_m *IAMServiceServer) DeletePolicy(_a0 context.Context, _a1 *iam.DeletePolicyRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeletePolicy") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DeletePolicyRequest) (*emptypb.Empty, error)); ok { @@ -202,6 +230,10 @@ func (_m *IAMServiceServer) DeletePolicy(_a0 context.Context, _a1 *iam.DeletePol func (_m *IAMServiceServer) DeleteRole(_a0 context.Context, _a1 *iam.DeleteRoleRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteRole") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteRoleRequest) (*emptypb.Empty, error)); ok { @@ -228,6 +260,10 @@ func (_m *IAMServiceServer) DeleteRole(_a0 context.Context, _a1 *iam.DeleteRoleR func (_m *IAMServiceServer) DeleteUserReserved(_a0 context.Context, _a1 *iam.DeleteUserReservedRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteUserReserved") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteUserReservedRequest) (*emptypb.Empty, error)); ok { @@ -254,6 +290,10 @@ func (_m *IAMServiceServer) DeleteUserReserved(_a0 context.Context, _a1 *iam.Del func (_m *IAMServiceServer) DetachAccessTokenRole(_a0 context.Context, _a1 *iam.DetachAccessTokenRoleRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DetachAccessTokenRole") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachAccessTokenRoleRequest) (*emptypb.Empty, error)); ok { @@ -280,6 +320,10 @@ func (_m *IAMServiceServer) DetachAccessTokenRole(_a0 context.Context, _a1 *iam. func (_m *IAMServiceServer) DetachPolicy(_a0 context.Context, _a1 *iam.DetachPolicyRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DetachPolicy") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachPolicyRequest) (*emptypb.Empty, error)); ok { @@ -306,6 +350,10 @@ func (_m *IAMServiceServer) DetachPolicy(_a0 context.Context, _a1 *iam.DetachPol func (_m *IAMServiceServer) DetachRole(_a0 context.Context, _a1 *iam.DetachRoleRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DetachRole") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachRoleRequest) (*emptypb.Empty, error)); ok { @@ -332,6 +380,10 @@ func (_m *IAMServiceServer) DetachRole(_a0 context.Context, _a1 *iam.DetachRoleR func (_m *IAMServiceServer) GetPolicy(_a0 context.Context, _a1 *iam.GetPolicyRequest) (*iam.GetPolicyResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetPolicy") + } + var r0 *iam.GetPolicyResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.GetPolicyRequest) (*iam.GetPolicyResponse, error)); ok { @@ -358,6 +410,10 @@ func (_m *IAMServiceServer) GetPolicy(_a0 context.Context, _a1 *iam.GetPolicyReq func (_m *IAMServiceServer) GetRole(_a0 context.Context, _a1 *iam.GetRoleRequest) (*iam.GetRoleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetRole") + } + var r0 *iam.GetRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.GetRoleRequest) (*iam.GetRoleResponse, error)); ok { @@ -384,6 +440,10 @@ func (_m *IAMServiceServer) GetRole(_a0 context.Context, _a1 *iam.GetRoleRequest func (_m *IAMServiceServer) GetUser(_a0 context.Context, _a1 *iam.GetUserRequest) (*iam.GetUserResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetUser") + } + var r0 *iam.GetUserResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.GetUserRequest) (*iam.GetUserResponse, error)); ok { @@ -410,6 +470,10 @@ func (_m *IAMServiceServer) GetUser(_a0 context.Context, _a1 *iam.GetUserRequest func (_m *IAMServiceServer) IsAdmin(_a0 context.Context, _a1 *iam.IsAdminRequest) (*iam.IsAdminResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for IsAdmin") + } + var r0 *iam.IsAdminResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.IsAdminRequest) (*iam.IsAdminResponse, error)); ok { @@ -436,6 +500,10 @@ func (_m *IAMServiceServer) IsAdmin(_a0 context.Context, _a1 *iam.IsAdminRequest func (_m *IAMServiceServer) IsAuthorized(_a0 context.Context, _a1 *iam.IsAuthorizedRequest) (*iam.IsAuthorizedResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for IsAuthorized") + } + var r0 *iam.IsAuthorizedResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.IsAuthorizedRequest) (*iam.IsAuthorizedResponse, error)); ok { @@ -462,6 +530,10 @@ func (_m *IAMServiceServer) IsAuthorized(_a0 context.Context, _a1 *iam.IsAuthori func (_m *IAMServiceServer) IsAuthorizedAdmin(_a0 context.Context, _a1 *iam.IsAuthorizedAdminRequest) (*iam.IsAuthorizedAdminResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for IsAuthorizedAdmin") + } + var r0 *iam.IsAuthorizedAdminResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.IsAuthorizedAdminRequest) (*iam.IsAuthorizedAdminResponse, error)); ok { @@ -488,6 +560,10 @@ func (_m *IAMServiceServer) IsAuthorizedAdmin(_a0 context.Context, _a1 *iam.IsAu func (_m *IAMServiceServer) IsAuthorizedToken(_a0 context.Context, _a1 *iam.IsAuthorizedTokenRequest) (*iam.IsAuthorizedTokenResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for IsAuthorizedToken") + } + var r0 *iam.IsAuthorizedTokenResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.IsAuthorizedTokenRequest) (*iam.IsAuthorizedTokenResponse, error)); ok { @@ -514,6 +590,10 @@ func (_m *IAMServiceServer) IsAuthorizedToken(_a0 context.Context, _a1 *iam.IsAu func (_m *IAMServiceServer) ListAccessToken(_a0 context.Context, _a1 *iam.ListAccessTokenRequest) (*iam.ListAccessTokenResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListAccessToken") + } + var r0 *iam.ListAccessTokenResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAccessTokenRequest) (*iam.ListAccessTokenResponse, error)); ok { @@ -540,6 +620,10 @@ func (_m *IAMServiceServer) ListAccessToken(_a0 context.Context, _a1 *iam.ListAc func (_m *IAMServiceServer) ListPolicy(_a0 context.Context, _a1 *iam.ListPolicyRequest) (*iam.ListPolicyResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListPolicy") + } + var r0 *iam.ListPolicyResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPolicyRequest) (*iam.ListPolicyResponse, error)); ok { @@ -566,6 +650,10 @@ func (_m *IAMServiceServer) ListPolicy(_a0 context.Context, _a1 *iam.ListPolicyR func (_m *IAMServiceServer) ListRole(_a0 context.Context, _a1 *iam.ListRoleRequest) (*iam.ListRoleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListRole") + } + var r0 *iam.ListRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRoleRequest) (*iam.ListRoleResponse, error)); ok { @@ -592,6 +680,10 @@ func (_m *IAMServiceServer) ListRole(_a0 context.Context, _a1 *iam.ListRoleReque func (_m *IAMServiceServer) ListUser(_a0 context.Context, _a1 *iam.ListUserRequest) (*iam.ListUserResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListUser") + } + var r0 *iam.ListUserResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserRequest) (*iam.ListUserResponse, error)); ok { @@ -618,6 +710,10 @@ func (_m *IAMServiceServer) ListUser(_a0 context.Context, _a1 *iam.ListUserReque func (_m *IAMServiceServer) ListUserReserved(_a0 context.Context, _a1 *iam.ListUserReservedRequest) (*iam.ListUserReservedResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListUserReserved") + } + var r0 *iam.ListUserReservedResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserReservedRequest) (*iam.ListUserReservedResponse, error)); ok { @@ -644,6 +740,10 @@ func (_m *IAMServiceServer) ListUserReserved(_a0 context.Context, _a1 *iam.ListU func (_m *IAMServiceServer) PutAccessToken(_a0 context.Context, _a1 *iam.PutAccessTokenRequest) (*iam.PutAccessTokenResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutAccessToken") + } + var r0 *iam.PutAccessTokenResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutAccessTokenRequest) (*iam.PutAccessTokenResponse, error)); ok { @@ -670,6 +770,10 @@ func (_m *IAMServiceServer) PutAccessToken(_a0 context.Context, _a1 *iam.PutAcce func (_m *IAMServiceServer) PutPolicy(_a0 context.Context, _a1 *iam.PutPolicyRequest) (*iam.PutPolicyResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutPolicy") + } + var r0 *iam.PutPolicyResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutPolicyRequest) (*iam.PutPolicyResponse, error)); ok { @@ -696,6 +800,10 @@ func (_m *IAMServiceServer) PutPolicy(_a0 context.Context, _a1 *iam.PutPolicyReq func (_m *IAMServiceServer) PutRole(_a0 context.Context, _a1 *iam.PutRoleRequest) (*iam.PutRoleResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutRole") + } + var r0 *iam.PutRoleResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutRoleRequest) (*iam.PutRoleResponse, error)); ok { @@ -722,6 +830,10 @@ func (_m *IAMServiceServer) PutRole(_a0 context.Context, _a1 *iam.PutRoleRequest func (_m *IAMServiceServer) PutUser(_a0 context.Context, _a1 *iam.PutUserRequest) (*iam.PutUserResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutUser") + } + var r0 *iam.PutUserResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutUserRequest) (*iam.PutUserResponse, error)); ok { @@ -748,6 +860,10 @@ func (_m *IAMServiceServer) PutUser(_a0 context.Context, _a1 *iam.PutUserRequest func (_m *IAMServiceServer) PutUserReserved(_a0 context.Context, _a1 *iam.PutUserReservedRequest) (*iam.PutUserReservedResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PutUserReserved") + } + var r0 *iam.PutUserReservedResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *iam.PutUserReservedRequest) (*iam.PutUserReservedResponse, error)); ok { diff --git a/proto/iam/policy.pb.go b/proto/iam/policy.pb.go index 1697bd2..576f66f 100644 --- a/proto/iam/policy.pb.go +++ b/proto/iam/policy.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: iam/policy.proto package iam diff --git a/proto/iam/role.pb.go b/proto/iam/role.pb.go index b269685..70dd33c 100644 --- a/proto/iam/role.pb.go +++ b/proto/iam/role.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: iam/role.proto package iam diff --git a/proto/iam/service.pb.go b/proto/iam/service.pb.go index d375c4d..5570d68 100644 --- a/proto/iam/service.pb.go +++ b/proto/iam/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: iam/service.proto package iam diff --git a/proto/iam/user.pb.go b/proto/iam/user.pb.go index 8c0e81e..b182cf8 100644 --- a/proto/iam/user.pb.go +++ b/proto/iam/user.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: iam/user.proto package iam diff --git a/proto/iam/user_reserved.pb.go b/proto/iam/user_reserved.pb.go index bbd30d5..2921abf 100644 --- a/proto/iam/user_reserved.pb.go +++ b/proto/iam/user_reserved.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: iam/user_reserved.proto package iam diff --git a/proto/project/entity.pb.go b/proto/project/entity.pb.go index 26aec4c..160232d 100644 --- a/proto/project/entity.pb.go +++ b/proto/project/entity.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: project/entity.proto package project diff --git a/proto/project/mocks/ProjectServiceClient.go b/proto/project/mocks/ProjectServiceClient.go index bded048..5703905 100644 --- a/proto/project/mocks/ProjectServiceClient.go +++ b/proto/project/mocks/ProjectServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -29,6 +29,10 @@ func (_m *ProjectServiceClient) CleanProject(ctx context.Context, in *emptypb.Em _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for CleanProject") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -62,6 +66,10 @@ func (_m *ProjectServiceClient) CreateProject(ctx context.Context, in *project.C _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for CreateProject") + } + var r0 *project.CreateProjectResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.CreateProjectRequest, ...grpc.CallOption) (*project.CreateProjectResponse, error)); ok { @@ -95,6 +103,10 @@ func (_m *ProjectServiceClient) DeleteProject(ctx context.Context, in *project.D _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for DeleteProject") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.DeleteProjectRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -128,6 +140,10 @@ func (_m *ProjectServiceClient) IsActive(ctx context.Context, in *project.IsActi _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for IsActive") + } + var r0 *project.IsActiveResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.IsActiveRequest, ...grpc.CallOption) (*project.IsActiveResponse, error)); ok { @@ -161,6 +177,10 @@ func (_m *ProjectServiceClient) ListProject(ctx context.Context, in *project.Lis _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for ListProject") + } + var r0 *project.ListProjectResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.ListProjectRequest, ...grpc.CallOption) (*project.ListProjectResponse, error)); ok { @@ -194,6 +214,10 @@ func (_m *ProjectServiceClient) TagProject(ctx context.Context, in *project.TagP _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for TagProject") + } + var r0 *project.TagProjectResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.TagProjectRequest, ...grpc.CallOption) (*project.TagProjectResponse, error)); ok { @@ -227,6 +251,10 @@ func (_m *ProjectServiceClient) UntagProject(ctx context.Context, in *project.Un _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for UntagProject") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.UntagProjectRequest, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -260,6 +288,10 @@ func (_m *ProjectServiceClient) UpdateProject(ctx context.Context, in *project.U _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for UpdateProject") + } + var r0 *project.UpdateProjectResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.UpdateProjectRequest, ...grpc.CallOption) (*project.UpdateProjectResponse, error)); ok { diff --git a/proto/project/mocks/ProjectServiceServer.go b/proto/project/mocks/ProjectServiceServer.go index 9208509..9f67318 100644 --- a/proto/project/mocks/ProjectServiceServer.go +++ b/proto/project/mocks/ProjectServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -20,6 +20,10 @@ type ProjectServiceServer struct { func (_m *ProjectServiceServer) CleanProject(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for CleanProject") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty) (*emptypb.Empty, error)); ok { @@ -46,6 +50,10 @@ func (_m *ProjectServiceServer) CleanProject(_a0 context.Context, _a1 *emptypb.E func (_m *ProjectServiceServer) CreateProject(_a0 context.Context, _a1 *project.CreateProjectRequest) (*project.CreateProjectResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for CreateProject") + } + var r0 *project.CreateProjectResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.CreateProjectRequest) (*project.CreateProjectResponse, error)); ok { @@ -72,6 +80,10 @@ func (_m *ProjectServiceServer) CreateProject(_a0 context.Context, _a1 *project. func (_m *ProjectServiceServer) DeleteProject(_a0 context.Context, _a1 *project.DeleteProjectRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for DeleteProject") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.DeleteProjectRequest) (*emptypb.Empty, error)); ok { @@ -98,6 +110,10 @@ func (_m *ProjectServiceServer) DeleteProject(_a0 context.Context, _a1 *project. func (_m *ProjectServiceServer) IsActive(_a0 context.Context, _a1 *project.IsActiveRequest) (*project.IsActiveResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for IsActive") + } + var r0 *project.IsActiveResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.IsActiveRequest) (*project.IsActiveResponse, error)); ok { @@ -124,6 +140,10 @@ func (_m *ProjectServiceServer) IsActive(_a0 context.Context, _a1 *project.IsAct func (_m *ProjectServiceServer) ListProject(_a0 context.Context, _a1 *project.ListProjectRequest) (*project.ListProjectResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for ListProject") + } + var r0 *project.ListProjectResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.ListProjectRequest) (*project.ListProjectResponse, error)); ok { @@ -150,6 +170,10 @@ func (_m *ProjectServiceServer) ListProject(_a0 context.Context, _a1 *project.Li func (_m *ProjectServiceServer) TagProject(_a0 context.Context, _a1 *project.TagProjectRequest) (*project.TagProjectResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for TagProject") + } + var r0 *project.TagProjectResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.TagProjectRequest) (*project.TagProjectResponse, error)); ok { @@ -176,6 +200,10 @@ func (_m *ProjectServiceServer) TagProject(_a0 context.Context, _a1 *project.Tag func (_m *ProjectServiceServer) UntagProject(_a0 context.Context, _a1 *project.UntagProjectRequest) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for UntagProject") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.UntagProjectRequest) (*emptypb.Empty, error)); ok { @@ -202,6 +230,10 @@ func (_m *ProjectServiceServer) UntagProject(_a0 context.Context, _a1 *project.U func (_m *ProjectServiceServer) UpdateProject(_a0 context.Context, _a1 *project.UpdateProjectRequest) (*project.UpdateProjectResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for UpdateProject") + } + var r0 *project.UpdateProjectResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *project.UpdateProjectRequest) (*project.UpdateProjectResponse, error)); ok { diff --git a/proto/project/service.pb.go b/proto/project/service.pb.go index 71c68a4..be212a1 100644 --- a/proto/project/service.pb.go +++ b/proto/project/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: project/service.proto package project diff --git a/proto/report/entity.pb.go b/proto/report/entity.pb.go index 1fb79ac..78017d0 100644 --- a/proto/report/entity.pb.go +++ b/proto/report/entity.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: report/entity.proto package report diff --git a/proto/report/mocks/ReportServiceClient.go b/proto/report/mocks/ReportServiceClient.go index 5e51242..93e7168 100644 --- a/proto/report/mocks/ReportServiceClient.go +++ b/proto/report/mocks/ReportServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -29,6 +29,10 @@ func (_m *ReportServiceClient) CollectReportFinding(ctx context.Context, in *emp _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for CollectReportFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty, ...grpc.CallOption) (*emptypb.Empty, error)); ok { @@ -62,6 +66,10 @@ func (_m *ReportServiceClient) GetReportFinding(ctx context.Context, in *report. _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetReportFinding") + } + var r0 *report.GetReportFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *report.GetReportFindingRequest, ...grpc.CallOption) (*report.GetReportFindingResponse, error)); ok { @@ -95,6 +103,10 @@ func (_m *ReportServiceClient) GetReportFindingAll(ctx context.Context, in *repo _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for GetReportFindingAll") + } + var r0 *report.GetReportFindingAllResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *report.GetReportFindingAllRequest, ...grpc.CallOption) (*report.GetReportFindingAllResponse, error)); ok { @@ -128,6 +140,10 @@ func (_m *ReportServiceClient) PurgeReportFinding(ctx context.Context, in *empty _ca = append(_ca, _va...) ret := _m.Called(_ca...) + if len(ret) == 0 { + panic("no return value specified for PurgeReportFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty, ...grpc.CallOption) (*emptypb.Empty, error)); ok { diff --git a/proto/report/mocks/ReportServiceServer.go b/proto/report/mocks/ReportServiceServer.go index 8d68880..a63a147 100644 --- a/proto/report/mocks/ReportServiceServer.go +++ b/proto/report/mocks/ReportServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.36.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks @@ -20,6 +20,10 @@ type ReportServiceServer struct { func (_m *ReportServiceServer) CollectReportFinding(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for CollectReportFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty) (*emptypb.Empty, error)); ok { @@ -46,6 +50,10 @@ func (_m *ReportServiceServer) CollectReportFinding(_a0 context.Context, _a1 *em func (_m *ReportServiceServer) GetReportFinding(_a0 context.Context, _a1 *report.GetReportFindingRequest) (*report.GetReportFindingResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetReportFinding") + } + var r0 *report.GetReportFindingResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *report.GetReportFindingRequest) (*report.GetReportFindingResponse, error)); ok { @@ -72,6 +80,10 @@ func (_m *ReportServiceServer) GetReportFinding(_a0 context.Context, _a1 *report func (_m *ReportServiceServer) GetReportFindingAll(_a0 context.Context, _a1 *report.GetReportFindingAllRequest) (*report.GetReportFindingAllResponse, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetReportFindingAll") + } + var r0 *report.GetReportFindingAllResponse var r1 error if rf, ok := ret.Get(0).(func(context.Context, *report.GetReportFindingAllRequest) (*report.GetReportFindingAllResponse, error)); ok { @@ -98,6 +110,10 @@ func (_m *ReportServiceServer) GetReportFindingAll(_a0 context.Context, _a1 *rep func (_m *ReportServiceServer) PurgeReportFinding(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PurgeReportFinding") + } + var r0 *emptypb.Empty var r1 error if rf, ok := ret.Get(0).(func(context.Context, *emptypb.Empty) (*emptypb.Empty, error)); ok { diff --git a/proto/report/service.pb.go b/proto/report/service.pb.go index 65a8ee9..9dd22be 100644 --- a/proto/report/service.pb.go +++ b/proto/report/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v4.25.0 +// protoc-gen-go v1.30.0 +// protoc v3.21.12 // source: report/service.proto package report