Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: move plan related methods from rollout service to plan service (#12050)
boojacka64dd29353c3
diff --git a/backend/api/gitops/gitops.go b/backend/api/gitops/gitops.goindex 43f6414a73..a01f3f04ef 100644--- a/backend/api/gitops/gitops.go+++ b/backend/api/gitops/gitops.go@@ -17,6 +17,7 @@ type Service struct {activityManager *activity.ManagerstateCfg *state.StatelicenseService enterprise.LicenseService+ planService *v1pb.PlanServicerolloutService *v1pb.RolloutServiceissueService *v1pb.IssueService}@@ -28,6 +29,7 @@ func NewService(activityManager *activity.Manager,stateCfg *state.State,licenseService enterprise.LicenseService,+ planService *v1pb.PlanService,rolloutService *v1pb.RolloutService,issueService *v1pb.IssueService,) *Service {@@ -37,6 +39,7 @@ func NewService(activityManager: activityManager,stateCfg: stateCfg,licenseService: licenseService,+ planService: planService,rolloutService: rolloutService,issueService: issueService,}diff --git a/backend/api/gitops/webhook.go b/backend/api/gitops/webhook.goindex 221c9e0746..eee6c4acfd 100644--- a/backend/api/gitops/webhook.go+++ b/backend/api/gitops/webhook.go@@ -227,7 +227,7 @@ func (s *Service) createIssueFromPRInfo(ctx context.Context, project *store.ProjchildCtx := context.WithValue(ctx, common.PrincipalIDContextKey, creatorID)childCtx = context.WithValue(childCtx, common.UserContextKey, user)childCtx = context.WithValue(childCtx, common.LoopbackContextKey, true)- plan, err := s.rolloutService.CreatePlan(childCtx, &v1pb.CreatePlanRequest{+ plan, err := s.planService.CreatePlan(childCtx, &v1pb.CreatePlanRequest{Parent: fmt.Sprintf("projects/%s", project.ResourceID),Plan: &v1pb.Plan{Title: prInfo.title,diff --git a/backend/api/v1/acl_config.go b/backend/api/v1/acl_config.goindex b1774d9045..6611d9b71a 100644--- a/backend/api/v1/acl_config.go+++ b/backend/api/v1/acl_config.go@@ -124,17 +124,17 @@ var methodPermissionMap = map[string]iam.Permission{v1pb.VCSProviderService_DeleteVCSProvider_FullMethodName: iam.PermissionVCSProvidersDelete,v1pb.VCSProviderService_SearchVCSProviderRepositories_FullMethodName: iam.PermissionVCSProvidersSearchProjects,v1pb.VCSProviderService_ListVCSConnectorsInProvider_FullMethodName: iam.PermissionVCSProvidersListProjects,- v1pb.RolloutService_ListPlans_FullMethodName: iam.PermissionPlansList,- v1pb.RolloutService_GetPlan_FullMethodName: iam.PermissionPlansGet,- v1pb.RolloutService_CreatePlan_FullMethodName: iam.PermissionPlansCreate,- v1pb.RolloutService_UpdatePlan_FullMethodName: iam.PermissionPlansUpdate,v1pb.RolloutService_GetRollout_FullMethodName: iam.PermissionRolloutsGet,v1pb.RolloutService_CreateRollout_FullMethodName: iam.PermissionRolloutsCreate,v1pb.RolloutService_PreviewRollout_FullMethodName: iam.PermissionRolloutsPreview,v1pb.RolloutService_ListTaskRuns_FullMethodName: iam.PermissionTaskRunsList,v1pb.RolloutService_GetTaskRunLog_FullMethodName: iam.PermissionTaskRunsList,- v1pb.RolloutService_ListPlanCheckRuns_FullMethodName: iam.PermissionPlanCheckRunsList,- v1pb.RolloutService_RunPlanChecks_FullMethodName: iam.PermissionPlanCheckRunsRun,+ v1pb.PlanService_ListPlans_FullMethodName: iam.PermissionPlansList,+ v1pb.PlanService_GetPlan_FullMethodName: iam.PermissionPlansGet,+ v1pb.PlanService_CreatePlan_FullMethodName: iam.PermissionPlansCreate,+ v1pb.PlanService_UpdatePlan_FullMethodName: iam.PermissionPlansUpdate,+ v1pb.PlanService_ListPlanCheckRuns_FullMethodName: iam.PermissionPlanCheckRunsList,+ v1pb.PlanService_RunPlanChecks_FullMethodName: iam.PermissionPlanCheckRunsRun,v1pb.SettingService_ListSettings_FullMethodName: iam.PermissionSettingsList,v1pb.SettingService_GetSetting_FullMethodName: iam.PermissionSettingsGet,v1pb.SettingService_UpdateSetting_FullMethodName: iam.PermissionSettingsSet,diff --git a/backend/api/v1/acl_iam.go b/backend/api/v1/acl_iam.goindex 30005d1afd..41d546c4e7 100644--- a/backend/api/v1/acl_iam.go+++ b/backend/api/v1/acl_iam.go@@ -118,7 +118,7 @@ func isSkippedMethod(fullMethod string) bool {return true// handled in the method because we need to consider plan.Creator.case- v1pb.RolloutService_UpdatePlan_FullMethodName:+ v1pb.PlanService_UpdatePlan_FullMethodName:return true// handled in the method because we need to consider issue.Creator and issue type.// additional bb.plans.action and bb.rollouts.action permissions are required if the issue type is change database.@@ -157,7 +157,7 @@ func isSkippedMethod(fullMethod string) bool {v1pb.ProjectService_ListDatabaseGroups_FullMethodName,v1pb.ProjectService_SearchProjects_FullMethodName,v1pb.ChangelistService_ListChangelists_FullMethodName,- v1pb.RolloutService_ListPlans_FullMethodName,+ v1pb.PlanService_ListPlans_FullMethodName,v1pb.ProjectService_ListSchemaGroups_FullMethodName:return true}diff --git a/backend/api/v1/ctx.go b/backend/api/v1/ctx.goindex b0f97e7325..31643d90ae 100644--- a/backend/api/v1/ctx.go+++ b/backend/api/v1/ctx.go@@ -158,14 +158,17 @@ func (p *ContextProvider) do(ctx context.Context, fullMethod string, req any) ([v1pb.RolloutService_GetRollout_FullMethodName,v1pb.RolloutService_CreateRollout_FullMethodName,v1pb.RolloutService_PreviewRollout_FullMethodName,- v1pb.RolloutService_GetPlan_FullMethodName,- v1pb.RolloutService_CreatePlan_FullMethodName,v1pb.RolloutService_ListTaskRuns_FullMethodName,- v1pb.RolloutService_GetTaskRunLog_FullMethodName,- v1pb.RolloutService_ListPlanCheckRuns_FullMethodName,- v1pb.RolloutService_RunPlanChecks_FullMethodName:+ v1pb.RolloutService_GetTaskRunLog_FullMethodName:return p.getProjectIDsForRolloutService(ctx, req)+ case+ v1pb.PlanService_GetPlan_FullMethodName,+ v1pb.PlanService_CreatePlan_FullMethodName,+ v1pb.PlanService_ListPlanCheckRuns_FullMethodName,+ v1pb.PlanService_RunPlanChecks_FullMethodName:+ return p.getProjectIDsForPlanService(ctx, req)+casev1pb.ProjectService_GetProject_FullMethodName,v1pb.ProjectService_UpdateProject_FullMethodName,@@ -322,6 +325,38 @@ func (*ContextProvider) getProjectIDsForRolloutService(_ context.Context, req anreturn uniq(projectIDs), nil}+func (*ContextProvider) getProjectIDsForPlanService(_ context.Context, req any) ([]string, error) {+ var projects, plans []string+ switch r := req.(type) {+ case *v1pb.GetPlanRequest:+ plans = append(plans, r.GetName())+ case *v1pb.CreatePlanRequest:+ projects = append(projects, r.GetParent())+ case *v1pb.ListPlanCheckRunsRequest:+ plans = append(plans, r.GetParent())+ case *v1pb.RunPlanChecksRequest:+ plans = append(plans, r.GetName())+ }++ var projectIDs []string+ for _, plan := range plans {+ projectID, _, err := common.GetProjectIDPlanID(plan)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to parse plan %q", plan)+ }+ projectIDs = append(projectIDs, projectID)+ }+ for _, project := range projects {+ projectID, err := common.GetProjectID(project)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to parse project %q", project)+ }+ projectIDs = append(projectIDs, projectID)+ }++ return uniq(projectIDs), nil+}+func (*ContextProvider) getProjectIDsForBranchService(_ context.Context, req any) ([]string, error) {var projects, branches []stringswitch r := req.(type) {diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.gonew file mode 100644index 0000000000..6f7eb89e04--- /dev/null+++ b/backend/api/v1/plan_service.go@@ -0,0 +1,787 @@+package v1++import (+ "context"+ "encoding/json"+ "log/slog"+ "slices"+ "sort"+ "time"++ "github.com/google/go-cmp/cmp"+ "github.com/pkg/errors"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/status"+ "google.golang.org/protobuf/types/known/timestamppb"++ "github.com/bytebase/bytebase/backend/common"+ "github.com/bytebase/bytebase/backend/common/log"+ "github.com/bytebase/bytebase/backend/component/activity"+ "github.com/bytebase/bytebase/backend/component/config"+ "github.com/bytebase/bytebase/backend/component/dbfactory"+ "github.com/bytebase/bytebase/backend/component/ghost"+ "github.com/bytebase/bytebase/backend/component/iam"+ "github.com/bytebase/bytebase/backend/component/state"+ enterprise "github.com/bytebase/bytebase/backend/enterprise/api"+ api "github.com/bytebase/bytebase/backend/legacyapi"+ "github.com/bytebase/bytebase/backend/runner/plancheck"+ "github.com/bytebase/bytebase/backend/store"+ storepb "github.com/bytebase/bytebase/proto/generated-go/store"+ v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"+)++// PlanService represents a service for managing plan.+type PlanService struct {+ v1pb.UnimplementedPlanServiceServer+ store *store.Store+ licenseService enterprise.LicenseService+ dbFactory *dbfactory.DBFactory+ planCheckScheduler *plancheck.Scheduler+ stateCfg *state.State+ activityManager *activity.Manager+ profile *config.Profile+ iamManager *iam.Manager+}++// NewPlanService returns a plan service instance.+func NewPlanService(store *store.Store, licenseService enterprise.LicenseService, dbFactory *dbfactory.DBFactory, planCheckScheduler *plancheck.Scheduler, stateCfg *state.State, activityManager *activity.Manager, profile *config.Profile, iamManager *iam.Manager) *PlanService {+ return &PlanService{+ store: store,+ licenseService: licenseService,+ dbFactory: dbFactory,+ planCheckScheduler: planCheckScheduler,+ stateCfg: stateCfg,+ activityManager: activityManager,+ profile: profile,+ iamManager: iamManager,+ }+}++// GetPlan gets a plan.+func (s *PlanService) GetPlan(ctx context.Context, request *v1pb.GetPlanRequest) (*v1pb.Plan, error) {+ planID, err := common.GetPlanID(request.Name)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }+ plan, err := s.store.GetPlan(ctx, &store.FindPlanMessage{UID: &planID})+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get plan, error: %v", err)+ }+ if plan == nil {+ return nil, status.Errorf(codes.NotFound, "plan not found for id: %d", planID)+ }+ convertedPlan, err := convertToPlan(ctx, s.store, plan)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to convert to plan, error: %v", err)+ }+ return convertedPlan, nil+}++// ListPlans lists plans.+func (s *PlanService) ListPlans(ctx context.Context, request *v1pb.ListPlansRequest) (*v1pb.ListPlansResponse, error) {+ projectID, err := common.GetProjectID(request.Parent)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }++ user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)+ if !ok {+ return nil, status.Errorf(codes.Internal, "user not found")+ }++ projectIDs, err := getProjectIDsWithPermission(ctx, s.store, user, s.iamManager, iam.PermissionPlansList)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get projectIDs, error: %v", err)+ }++ limit, offset, err := parseLimitAndOffset(request.PageToken, int(request.PageSize))+ if err != nil {+ return nil, err+ }+ limitPlusOne := limit + 1++ find := &store.FindPlanMessage{+ Limit: &limitPlusOne,+ Offset: &offset,+ ProjectIDs: projectIDs,+ }+ if projectID != "-" {+ find.ProjectID = &projectID+ }++ plans, err := s.store.ListPlans(ctx, find)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to list plans, error: %v", err)+ }++ var nextPageToken string+ // has more pages+ if len(plans) == limitPlusOne {+ pageToken, err := getPageToken(limit, offset+limit)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get next page token, error: %v", err)+ }+ nextPageToken = pageToken+ plans = plans[:limit]+ }++ convertedPlans, err := convertToPlans(ctx, s.store, plans)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to convert to plans, error: %v", err)+ }++ return &v1pb.ListPlansResponse{+ Plans: convertedPlans,+ NextPageToken: nextPageToken,+ }, nil+}++// CreatePlan creates a new plan.+func (s *PlanService) CreatePlan(ctx context.Context, request *v1pb.CreatePlanRequest) (*v1pb.Plan, error) {+ principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)+ if !ok {+ return nil, status.Errorf(codes.Internal, "principal ID not found")+ }+ projectID, err := common.GetProjectID(request.Parent)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }+ project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{+ ResourceID: &projectID,+ })+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get project, error: %v", err)+ }+ if project == nil {+ return nil, status.Errorf(codes.NotFound, "project not found for id: %v", projectID)+ }+ if err := validateSteps(request.Plan.Steps); err != nil {+ return nil, status.Errorf(codes.InvalidArgument, "failed to validate plan steps, error: %v", err)+ }++ planMessage := &store.PlanMessage{+ ProjectID: projectID,+ PipelineUID: nil,+ Name: request.Plan.Title,+ Description: request.Plan.Description,+ Config: &storepb.PlanConfig{+ Steps: convertPlanSteps(request.Plan.Steps),+ },+ }+ if request.GetPlan().VcsSource != nil {+ planMessage.Config.VcsSource = &storepb.PlanConfig_VCSSource{+ VcsConnector: request.GetPlan().GetVcsSource().GetVcsConnector(),+ PullRequestUrl: request.GetPlan().GetVcsSource().GetPullRequestUrl(),+ VcsType: storepb.VCSType(request.GetPlan().GetVcsSource().VcsType),+ }+ }++ if _, err := GetPipelineCreate(ctx, s.store, s.licenseService, s.dbFactory, planMessage.Config.GetSteps(), project); err != nil {+ return nil, status.Errorf(codes.InvalidArgument, "failed to get pipeline from the plan, please check you request, error: %v", err)+ }+ plan, err := s.store.CreatePlan(ctx, planMessage, principalID)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to create plan, error: %v", err)+ }++ planCheckRuns, err := getPlanCheckRunsFromPlan(ctx, s.store, plan)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get plan check runs for plan, error: %v", err)+ }+ if err := s.store.CreatePlanCheckRuns(ctx, planCheckRuns...); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to create plan check runs, error: %v", err)+ }++ // Tickle plan check scheduler.+ s.stateCfg.PlanCheckTickleChan <- 0++ convertedPlan, err := convertToPlan(ctx, s.store, plan)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to convert to plan, error: %v", err)+ }+ return convertedPlan, nil+}++// UpdatePlan updates a plan.+func (s *PlanService) UpdatePlan(ctx context.Context, request *v1pb.UpdatePlanRequest) (*v1pb.Plan, error) {+ if request.UpdateMask == nil {+ return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")+ }+ user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)+ if !ok {+ return nil, status.Errorf(codes.Internal, "user not found")+ }+ planID, err := common.GetPlanID(request.Plan.Name)+ if err != nil {+ return nil, status.Errorf(codes.Internal, err.Error())+ }+ oldPlan, err := s.store.GetPlan(ctx, &store.FindPlanMessage{UID: &planID})+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get plan %q: %v", request.Plan.Name, err)+ }+ if oldPlan == nil {+ return nil, status.Errorf(codes.NotFound, "plan %q not found", request.Plan.Name)+ }+ project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{ResourceID: &oldPlan.ProjectID})+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get project %q, err: %v", oldPlan.ProjectID, err)+ }+ if project == nil {+ return nil, status.Errorf(codes.NotFound, "project %q not found", oldPlan.ProjectID)+ }+ for _, path := range request.UpdateMask.Paths {+ switch path {+ case "steps":+ if _, err := GetPipelineCreate(ctx, s.store, s.licenseService, s.dbFactory, convertPlanSteps(request.Plan.GetSteps()), project); err != nil {+ return nil, status.Errorf(codes.InvalidArgument, "failed to get pipeline from the plan, please check you request, error: %v", err)+ }+ default:+ return nil, status.Errorf(codes.InvalidArgument, "invalid update_mask path %q", path)+ }+ }++ ok, err = func() (bool, error) {+ if oldPlan.CreatorUID == user.ID {+ return true, nil+ }+ return s.iamManager.CheckPermission(ctx, iam.PermissionPlansUpdate, user, oldPlan.ProjectID)+ }()+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to check permission, error: %v", err)+ }+ if !ok {+ return nil, status.Errorf(codes.PermissionDenied, "permission denied to update plan")+ }++ oldSteps := convertToPlanSteps(oldPlan.Config.Steps)++ issue, err := s.store.GetIssueV2(ctx, &store.FindIssueMessage{PlanUID: &oldPlan.UID})+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get issue: %v", err)+ }++ removed, added, updated := diffSpecs(oldSteps, request.Plan.Steps)+ if len(removed) > 0 {+ return nil, status.Errorf(codes.InvalidArgument, "cannot remove specs from plan")+ }+ if len(added) > 0 {+ return nil, status.Errorf(codes.InvalidArgument, "cannot add specs to plan")+ }+ if len(updated) == 0 {+ return nil, status.Errorf(codes.InvalidArgument, "no specs updated")+ }++ oldSpecsByID := make(map[string]*v1pb.Plan_Spec)+ for _, step := range oldSteps {+ for _, spec := range step.Specs {+ oldSpecsByID[spec.Id] = spec+ }+ }++ updatedByID := make(map[string]*v1pb.Plan_Spec)+ for _, spec := range updated {+ updatedByID[spec.Id] = spec+ }++ tasksMap := map[int]*store.TaskMessage{}+ var taskPatchList []*api.TaskPatch+ var statementUpdates []api.ActivityPipelineTaskStatementUpdatePayload+ var earliestUpdates []api.ActivityPipelineTaskEarliestAllowedTimeUpdatePayload+ var taskDAGRebuildList []struct {+ fromTaskIDs []int+ toTaskID int+ }++ if oldPlan.PipelineUID != nil {+ tasks, err := s.store.ListTasks(ctx, &api.TaskFind{PipelineID: oldPlan.PipelineUID})+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to list tasks: %v", err)+ }+ tasksBySpecID := make(map[string][]*store.TaskMessage)+ for _, task := range tasks {+ var taskSpecID struct {+ SpecID string `json:"specId"`+ }+ if err := json.Unmarshal([]byte(task.Payload), &taskSpecID); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)+ }+ tasksBySpecID[taskSpecID.SpecID] = append(tasksBySpecID[taskSpecID.SpecID], task)+ }+ for _, task := range tasks {+ doUpdate := false+ taskPatch := &api.TaskPatch{+ ID: task.ID,+ UpdaterID: user.ID,+ }+ tasksMap[task.ID] = task++ var taskSpecID struct {+ SpecID string `json:"specId"`+ }+ if err := json.Unmarshal([]byte(task.Payload), &taskSpecID); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)+ }+ spec, ok := updatedByID[taskSpecID.SpecID]+ if !ok {+ continue+ }++ // Flags for gh-ost.+ if err := func() error {+ if task.Type != api.TaskDatabaseSchemaUpdateGhostSync {+ return nil+ }+ payload := &api.TaskDatabaseSchemaUpdateGhostSyncPayload{}+ if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {+ return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)+ }+ newFlags := spec.GetChangeDatabaseConfig().GetGhostFlags()+ if _, err := ghost.GetUserFlags(newFlags); err != nil {+ return status.Errorf(codes.InvalidArgument, "invalid ghost flags %q, error %v", newFlags, err)+ }+ oldFlags := payload.Flags+ if cmp.Equal(oldFlags, newFlags) {+ return nil+ }+ taskPatch.Flags = &newFlags+ doUpdate = true+ return nil+ }(); err != nil {+ return nil, err+ }++ // EarliestAllowedTs+ if spec.EarliestAllowedTime.GetSeconds() != task.EarliestAllowedTs {+ seconds := spec.EarliestAllowedTime.GetSeconds()+ taskPatch.EarliestAllowedTs = &seconds+ doUpdate = true+ earliestUpdates = append(earliestUpdates, api.ActivityPipelineTaskEarliestAllowedTimeUpdatePayload{+ TaskID: task.ID,+ OldEarliestAllowedTs: task.EarliestAllowedTs,+ NewEarliestAllowedTs: seconds,+ IssueName: issue.Title,+ TaskName: task.Name,+ })+ }++ // RollbackEnabled+ if err := func() error {+ if task.Type != api.TaskDatabaseDataUpdate {+ return nil+ }+ payload := &api.TaskDatabaseDataUpdatePayload{}+ if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {+ return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)+ }+ config, ok := spec.Config.(*v1pb.Plan_Spec_ChangeDatabaseConfig)+ if !ok {+ return nil+ }+ if config.ChangeDatabaseConfig.RollbackEnabled != payload.RollbackEnabled {+ taskPatch.RollbackEnabled = &config.ChangeDatabaseConfig.RollbackEnabled+ doUpdate = true+ }+ return nil+ }(); err != nil {+ return nil, err+ }++ // PreUpdateBackupDetail+ if err := func() error {+ if task.Type != api.TaskDatabaseDataUpdate {+ return nil+ }+ payload := &api.TaskDatabaseDataUpdatePayload{}+ if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {+ return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)+ }+ config, ok := spec.Config.(*v1pb.Plan_Spec_ChangeDatabaseConfig)+ if !ok {+ return nil+ }++ var databaseName *string+ if config.ChangeDatabaseConfig.PreUpdateBackupDetail == nil {+ if payload.PreUpdateBackupDetail.Database != "" {+ emptyValue := ""+ databaseName = &emptyValue+ }+ } else {+ if config.ChangeDatabaseConfig.PreUpdateBackupDetail.Database != payload.PreUpdateBackupDetail.Database {+ databaseName = &config.ChangeDatabaseConfig.PreUpdateBackupDetail.Database+ }+ }+ if databaseName != nil {+ taskPatch.PreUpdateBackupDetail = &api.PreUpdateBackupDetail{+ Database: *databaseName,+ }+ doUpdate = true+ }+ return nil+ }(); err != nil {+ return nil, err+ }++ // Sheet+ if err := func() error {+ switch task.Type {+ case api.TaskDatabaseSchemaUpdate, api.TaskDatabaseSchemaUpdateSDL, api.TaskDatabaseSchemaUpdateGhostSync, api.TaskDatabaseDataUpdate, api.TaskDatabaseDataExport:+ var taskPayload struct {+ SheetID int `json:"sheetId"`+ }+ if err := json.Unmarshal([]byte(task.Payload), &taskPayload); err != nil {+ return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)+ }++ var oldSheetName string+ if task.Type == api.TaskDatabaseDataExport {+ config, ok := spec.Config.(*v1pb.Plan_Spec_ExportDataConfig)+ if !ok {+ return nil+ }+ oldSheetName = config.ExportDataConfig.Sheet+ } else {+ config, ok := spec.Config.(*v1pb.Plan_Spec_ChangeDatabaseConfig)+ if !ok {+ return nil+ }+ oldSheetName = config.ChangeDatabaseConfig.Sheet+ }+ _, sheetUID, err := common.GetProjectResourceIDSheetUID(oldSheetName)+ if err != nil {+ return status.Errorf(codes.Internal, "failed to get sheet id from %q, error: %v", oldSheetName, err)+ }+ if taskPayload.SheetID == sheetUID {+ return nil+ }++ sheet, err := s.store.GetSheet(ctx, &store.FindSheetMessage{+ UID: &sheetUID,+ })+ if err != nil {+ return status.Errorf(codes.Internal, "failed to get sheet %q: %v", oldSheetName, err)+ }+ if sheet == nil {+ return status.Errorf(codes.NotFound, "sheet %q not found", oldSheetName)+ }+ doUpdate = true+ // TODO(p0ny): update schema version+ taskPatch.SheetID = &sheet.UID+ statementUpdates = append(statementUpdates, api.ActivityPipelineTaskStatementUpdatePayload{+ TaskID: task.ID,+ OldSheetID: taskPayload.SheetID,+ NewSheetID: sheet.UID,+ TaskName: task.Name,+ IssueName: issue.Title,+ })+ }+ return nil+ }(); err != nil {+ return nil, err+ }++ // ExportDataConfig+ if err := func() error {+ if task.Type != api.TaskDatabaseDataExport {+ return nil+ }+ payload := &api.TaskDatabaseDataExportPayload{}+ if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {+ return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)+ }+ config, ok := spec.Config.(*v1pb.Plan_Spec_ExportDataConfig)+ if !ok {+ return nil+ }+ if config.ExportDataConfig.Format != convertExportFormat(payload.Format) {+ format := convertToExportFormat(config.ExportDataConfig.Format)+ taskPatch.ExportFormat = &format+ doUpdate = true+ }+ if (config.ExportDataConfig.Password == nil && payload.Password != "") || (config.ExportDataConfig.Password != nil && *config.ExportDataConfig.Password != payload.Password) {+ taskPatch.ExportPassword = config.ExportDataConfig.Password+ doUpdate = true+ }+ return nil+ }(); err != nil {+ return nil, err+ }++ // version+ if err := func() error {+ switch task.Type {+ case api.TaskDatabaseSchemaBaseline, api.TaskDatabaseSchemaUpdate, api.TaskDatabaseSchemaUpdateSDL, api.TaskDatabaseSchemaUpdateGhostSync, api.TaskDatabaseDataUpdate:+ default:+ return nil+ }+ var taskPayload struct {+ SchemaVersion string `json:"schemaVersion"`+ }+ if err := json.Unmarshal([]byte(task.Payload), &taskPayload); err != nil {+ return errors.Wrapf(err, "failed to unmarshal task payload")+ }+ if v := spec.GetChangeDatabaseConfig().GetSchemaVersion(); v != "" && v != taskPayload.SchemaVersion {+ taskPatch.SchemaVersion = &v+ doUpdate = true+ }+ return nil+ }(); err != nil {+ return nil, err+ }++ // task dag+ if err := func() error {+ oldSpec, ok := oldSpecsByID[taskSpecID.SpecID]+ if !ok {+ return nil+ }++ sort.Slice(oldSpec.DependsOnSpecs, func(i, j int) bool {+ return oldSpec.DependsOnSpecs[i] < oldSpec.DependsOnSpecs[j]+ })+ sort.Slice(spec.DependsOnSpecs, func(i, j int) bool {+ return spec.DependsOnSpecs[i] < spec.DependsOnSpecs[j]+ })+ if slices.Equal(oldSpec.GetDependsOnSpecs(), spec.GetDependsOnSpecs()) {+ return nil+ }++ // rebuild the task dag+ var fromTaskIDs []int+ for _, dependsOnSpec := range spec.GetDependsOnSpecs() {+ for _, dependsOnTask := range tasksBySpecID[dependsOnSpec] {+ fromTaskIDs = append(fromTaskIDs, dependsOnTask.ID)+ }+ }+ taskDAGRebuildList = append(taskDAGRebuildList, struct {+ fromTaskIDs []int+ toTaskID int+ }{+ fromTaskIDs: fromTaskIDs,+ toTaskID: task.ID,+ })+ return nil+ }(); err != nil {+ return nil, err+ }++ if !doUpdate {+ continue+ }++ taskPatchList = append(taskPatchList, taskPatch)+ }+ }++ for _, taskPatch := range taskPatchList {+ if taskPatch.SheetID != nil || taskPatch.EarliestAllowedTs != nil {+ task := tasksMap[taskPatch.ID]+ if task.LatestTaskRunStatus == api.TaskRunPending || task.LatestTaskRunStatus == api.TaskRunRunning {+ return nil, status.Errorf(codes.FailedPrecondition, "cannot update plan because task %q is %s", task.Name, task.LatestTaskRunStatus)+ }+ }+ }++ var doUpdateSheet bool+ for _, taskPatch := range taskPatchList {+ if taskPatch.SheetID != nil {+ doUpdateSheet = true+ break+ }+ }++ // For the plan without pipeline, we need to check if the sheet is updated in related specs.+ if oldPlan.PipelineUID == nil {+ for _, specPatch := range updated {+ oldSpec := oldSpecsByID[specPatch.Id]+ if oldSpec.GetChangeDatabaseConfig() != nil && specPatch.GetChangeDatabaseConfig() != nil {+ oldConfig, newConfig := oldSpec.GetChangeDatabaseConfig(), specPatch.GetChangeDatabaseConfig()+ if oldConfig.Sheet != newConfig.Sheet {+ doUpdateSheet = true+ break+ }+ }+ }+ }++ for _, taskPatch := range taskPatchList {+ task := tasksMap[taskPatch.ID]+ if _, err := s.store.UpdateTaskV2(ctx, taskPatch); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to update task %q: %v", task.Name, err)+ }++ taskPatched, err := s.store.GetTaskV2ByID(ctx, task.ID)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get updated task %q: %v", task.Name, err)+ }++ // enqueue or cancel after it's written to the database.+ if taskPatch.RollbackEnabled != nil {+ // Enqueue the rollback sql generation if the task done.+ if *taskPatch.RollbackEnabled && taskPatched.LatestTaskRunStatus == api.TaskRunDone {+ s.stateCfg.RollbackGenerate.Store(taskPatched.ID, taskPatched)+ } else if !*taskPatch.RollbackEnabled {+ // Cancel running rollback sql generation.+ if v, ok := s.stateCfg.RollbackCancel.Load(taskPatched.ID); ok {+ if cancel, ok := v.(context.CancelFunc); ok {+ cancel()+ }+ // We don't erase the keys for RollbackCancel and RollbackGenerate here because they will eventually be erased by the rollback runner.+ }+ }+ }+ }++ for _, taskDAGRebuild := range taskDAGRebuildList {+ if err := s.store.RebuildTaskDAG(ctx, taskDAGRebuild.fromTaskIDs, taskDAGRebuild.toTaskID); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to rebuild task dag: %v", err)+ }+ }++ if err := s.store.UpdatePlan(ctx, &store.UpdatePlanMessage{+ UID: oldPlan.UID,+ UpdaterID: user.ID,+ Config: &storepb.PlanConfig{+ Steps: convertPlanSteps(request.Plan.Steps),+ },+ }); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to update plan %q: %v", request.Plan.Name, err)+ }++ updatedPlan, err := s.store.GetPlan(ctx, &store.FindPlanMessage{UID: &oldPlan.UID})+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get updated plan %q: %v", request.Plan.Name, err)+ }+ if updatedPlan == nil {+ return nil, status.Errorf(codes.NotFound, "updated plan %q not found", request.Plan.Name)+ }++ if doUpdateSheet {+ planCheckRuns, err := getPlanCheckRunsFromPlan(ctx, s.store, updatedPlan)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get plan check runs for plan, error: %v", err)+ }+ if err := s.store.CreatePlanCheckRuns(ctx, planCheckRuns...); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to create plan check runs, error: %v", err)+ }+ }++ for _, statementUpdate := range statementUpdates {+ task := tasksMap[statementUpdate.TaskID]++ if err := func() error {+ oldSheet := common.FormatSheet(issue.Project.ResourceID, statementUpdate.OldSheetID)+ newSheet := common.FormatSheet(issue.Project.ResourceID, statementUpdate.NewSheetID)+ return s.store.CreateIssueComment(ctx, &store.IssueCommentMessage{+ IssueUID: issue.UID,+ Payload: &storepb.IssueCommentPayload{+ Event: &storepb.IssueCommentPayload_TaskUpdate_{+ TaskUpdate: &storepb.IssueCommentPayload_TaskUpdate{+ Tasks: []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, task.StageID, task.ID)},+ FromSheet: &oldSheet,+ ToSheet: &newSheet,+ },+ },+ },+ }, user.ID)+ }(); err != nil {+ slog.Warn("failed to create issue comments for statement update", "issueUID", issue.UID, log.BBError(err))+ }+ }+ for _, earliestUpdate := range earliestUpdates {+ task := tasksMap[earliestUpdate.TaskID]++ if err := func() error {+ return s.store.CreateIssueComment(ctx, &store.IssueCommentMessage{+ IssueUID: issue.UID,+ Payload: &storepb.IssueCommentPayload{+ Event: &storepb.IssueCommentPayload_TaskUpdate_{+ TaskUpdate: &storepb.IssueCommentPayload_TaskUpdate{+ Tasks: []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, task.StageID, task.ID)},+ FromEarliestAllowedTime: timestamppb.New(time.Unix(earliestUpdate.OldEarliestAllowedTs, 0)),+ ToEarliestAllowedTime: timestamppb.New(time.Unix(earliestUpdate.NewEarliestAllowedTs, 0)),+ },+ },+ },+ }, user.ID)+ }(); err != nil {+ slog.Warn("failed to create issue comments for earliest allowed time update", "issueUID", issue.UID, log.BBError(err))+ }+ }++ if issue != nil && doUpdateSheet {+ if err := func() error {+ issue, err := s.store.UpdateIssueV2(ctx, issue.UID, &store.UpdateIssueMessage{+ PayloadUpsert: &storepb.IssuePayload{+ Approval: &storepb.IssuePayloadApproval{+ ApprovalFindingDone: false,+ },+ },+ }, api.SystemBotID)+ if err != nil {+ return errors.Errorf("failed to update issue: %v", err)+ }+ s.stateCfg.ApprovalFinding.Store(issue.UID, issue)+ return nil+ }(); err != nil {+ slog.Error("failed to update issue to refind approval", log.BBError(err))+ }+ }++ convertedPlan, err := convertToPlan(ctx, s.store, updatedPlan)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to convert to plan, error: %v", err)+ }+ return convertedPlan, nil+}++// ListPlanCheckRuns lists plan check runs for the plan.+func (s *PlanService) ListPlanCheckRuns(ctx context.Context, request *v1pb.ListPlanCheckRunsRequest) (*v1pb.ListPlanCheckRunsResponse, error) {+ projectID, planUID, err := common.GetProjectIDPlanID(request.Parent)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }+ planCheckRuns, err := s.store.ListPlanCheckRuns(ctx, &store.FindPlanCheckRunMessage{+ PlanUID: &planUID,+ })+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to list plan check runs, error: %v", err)+ }+ converted, err := convertToPlanCheckRuns(ctx, s.store, projectID, planUID, planCheckRuns)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to convert plan check runs, error: %v", err)+ }++ return &v1pb.ListPlanCheckRunsResponse{+ PlanCheckRuns: converted,+ NextPageToken: "",+ }, nil+}++// RunPlanChecks runs plan checks for a plan.+func (s *PlanService) RunPlanChecks(ctx context.Context, request *v1pb.RunPlanChecksRequest) (*v1pb.RunPlanChecksResponse, error) {+ planUID, err := common.GetPlanID(request.Name)+ if err != nil {+ return nil, status.Errorf(codes.InvalidArgument, err.Error())+ }+ plan, err := s.store.GetPlan(ctx, &store.FindPlanMessage{UID: &planUID})+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get plan, error: %v", err)+ }+ if plan == nil {+ return nil, status.Errorf(codes.NotFound, "plan not found")+ }++ planCheckRuns, err := getPlanCheckRunsFromPlan(ctx, s.store, plan)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get plan check runs for plan, error: %v", err)+ }+ if err := s.store.CreatePlanCheckRuns(ctx, planCheckRuns...); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to create plan check runs, error: %v", err)+ }++ // Tickle plan check scheduler.+ s.stateCfg.PlanCheckTickleChan <- 0++ return &v1pb.RunPlanChecksResponse{}, nil+}diff --git a/backend/api/v1/rollout_service_plan_check.go b/backend/api/v1/plan_service_plan_check.gosimilarity index 100%rename from backend/api/v1/rollout_service_plan_check.gorename to backend/api/v1/plan_service_plan_check.godiff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.goindex ed28047d6b..12779b367c 100644--- a/backend/api/v1/rollout_service.go+++ b/backend/api/v1/rollout_service.go@@ -14,20 +14,17 @@ import ("google.golang.org/grpc/codes""google.golang.org/grpc/status""google.golang.org/protobuf/testing/protocmp"- "google.golang.org/protobuf/types/known/timestamppb""github.com/bytebase/bytebase/backend/common""github.com/bytebase/bytebase/backend/common/log""github.com/bytebase/bytebase/backend/component/activity""github.com/bytebase/bytebase/backend/component/config""github.com/bytebase/bytebase/backend/component/dbfactory"- "github.com/bytebase/bytebase/backend/component/ghost""github.com/bytebase/bytebase/backend/component/iam"sc "github.com/bytebase/bytebase/backend/component/sheet""github.com/bytebase/bytebase/backend/component/state"enterprise "github.com/bytebase/bytebase/backend/enterprise/api"api "github.com/bytebase/bytebase/backend/legacyapi"- "github.com/bytebase/bytebase/backend/runner/plancheck""github.com/bytebase/bytebase/backend/store""github.com/bytebase/bytebase/backend/utils"storepb "github.com/bytebase/bytebase/proto/generated-go/store"@@ -37,175 +34,28 @@ import (// RolloutService represents a service for managing rollout.type RolloutService struct {v1pb.UnimplementedRolloutServiceServer- store *store.Store- licenseService enterprise.LicenseService- dbFactory *dbfactory.DBFactory- planCheckScheduler *plancheck.Scheduler- stateCfg *state.State- activityManager *activity.Manager- profile *config.Profile- iamManager *iam.Manager+ store *store.Store+ licenseService enterprise.LicenseService+ dbFactory *dbfactory.DBFactory+ stateCfg *state.State+ activityManager *activity.Manager+ profile *config.Profile+ iamManager *iam.Manager}// NewRolloutService returns a rollout service instance.-func NewRolloutService(store *store.Store, licenseService enterprise.LicenseService, dbFactory *dbfactory.DBFactory, planCheckScheduler *plancheck.Scheduler, stateCfg *state.State, activityManager *activity.Manager, profile *config.Profile, iamManager *iam.Manager) *RolloutService {+func NewRolloutService(store *store.Store, licenseService enterprise.LicenseService, dbFactory *dbfactory.DBFactory, stateCfg *state.State, activityManager *activity.Manager, profile *config.Profile, iamManager *iam.Manager) *RolloutService {return &RolloutService{- store: store,- licenseService: licenseService,- dbFactory: dbFactory,- planCheckScheduler: planCheckScheduler,- stateCfg: stateCfg,- activityManager: activityManager,- profile: profile,- iamManager: iamManager,+ store: store,+ licenseService: licenseService,+ dbFactory: dbFactory,+ stateCfg: stateCfg,+ activityManager: activityManager,+ profile: profile,+ iamManager: iamManager,}}-// GetPlan gets a plan.-func (s *RolloutService) GetPlan(ctx context.Context, request *v1pb.GetPlanRequest) (*v1pb.Plan, error) {- planID, err := common.GetPlanID(request.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- plan, err := s.store.GetPlan(ctx, &store.FindPlanMessage{UID: &planID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get plan, error: %v", err)- }- if plan == nil {- return nil, status.Errorf(codes.NotFound, "plan not found for id: %d", planID)- }- convertedPlan, err := convertToPlan(ctx, s.store, plan)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to convert to plan, error: %v", err)- }- return convertedPlan, nil-}--// ListPlans lists plans.-func (s *RolloutService) ListPlans(ctx context.Context, request *v1pb.ListPlansRequest) (*v1pb.ListPlansResponse, error) {- projectID, err := common.GetProjectID(request.Parent)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }-- user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)- if !ok {- return nil, status.Errorf(codes.Internal, "user not found")- }-- projectIDs, err := getProjectIDsWithPermission(ctx, s.store, user, s.iamManager, iam.PermissionPlansList)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get projectIDs, error: %v", err)- }-- limit, offset, err := parseLimitAndOffset(request.PageToken, int(request.PageSize))- if err != nil {- return nil, err- }- limitPlusOne := limit + 1-- find := &store.FindPlanMessage{- Limit: &limitPlusOne,- Offset: &offset,- ProjectIDs: projectIDs,- }- if projectID != "-" {- find.ProjectID = &projectID- }-- plans, err := s.store.ListPlans(ctx, find)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to list plans, error: %v", err)- }-- var nextPageToken string- // has more pages- if len(plans) == limitPlusOne {- pageToken, err := getPageToken(limit, offset+limit)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get next page token, error: %v", err)- }- nextPageToken = pageToken- plans = plans[:limit]- }-- convertedPlans, err := convertToPlans(ctx, s.store, plans)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to convert to plans, error: %v", err)- }-- return &v1pb.ListPlansResponse{- Plans: convertedPlans,- NextPageToken: nextPageToken,- }, nil-}--// CreatePlan creates a new plan.-func (s *RolloutService) CreatePlan(ctx context.Context, request *v1pb.CreatePlanRequest) (*v1pb.Plan, error) {- principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }- projectID, err := common.GetProjectID(request.Parent)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{- ResourceID: &projectID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get project, error: %v", err)- }- if project == nil {- return nil, status.Errorf(codes.NotFound, "project not found for id: %v", projectID)- }- if err := validateSteps(request.Plan.Steps); err != nil {- return nil, status.Errorf(codes.InvalidArgument, "failed to validate plan steps, error: %v", err)- }-- planMessage := &store.PlanMessage{- ProjectID: projectID,- PipelineUID: nil,- Name: request.Plan.Title,- Description: request.Plan.Description,- Config: &storepb.PlanConfig{- Steps: convertPlanSteps(request.Plan.Steps),- },- }- if request.GetPlan().VcsSource != nil {- planMessage.Config.VcsSource = &storepb.PlanConfig_VCSSource{- VcsConnector: request.GetPlan().GetVcsSource().GetVcsConnector(),- PullRequestUrl: request.GetPlan().GetVcsSource().GetPullRequestUrl(),- VcsType: storepb.VCSType(request.GetPlan().GetVcsSource().VcsType),- }- }-- if _, err := GetPipelineCreate(ctx, s.store, s.licenseService, s.dbFactory, planMessage.Config.GetSteps(), project); err != nil {- return nil, status.Errorf(codes.InvalidArgument, "failed to get pipeline from the plan, please check you request, error: %v", err)- }- plan, err := s.store.CreatePlan(ctx, planMessage, principalID)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to create plan, error: %v", err)- }-- planCheckRuns, err := getPlanCheckRunsFromPlan(ctx, s.store, plan)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get plan check runs for plan, error: %v", err)- }- if err := s.store.CreatePlanCheckRuns(ctx, planCheckRuns...); err != nil {- return nil, status.Errorf(codes.Internal, "failed to create plan check runs, error: %v", err)- }-- // Tickle plan check scheduler.- s.stateCfg.PlanCheckTickleChan <- 0-- convertedPlan, err := convertToPlan(ctx, s.store, plan)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to convert to plan, error: %v", err)- }- return convertedPlan, nil-}-// PreviewRollout previews the rollout for a plan.func (s *RolloutService) PreviewRollout(ctx context.Context, request *v1pb.PreviewRolloutRequest) (*v1pb.Rollout, error) {projectID, err := common.GetProjectID(request.Project)@@ -353,57 +203,6 @@ func (s *RolloutService) CreateRollout(ctx context.Context, request *v1pb.Createreturn rolloutV1, nil}-// ListPlanCheckRuns lists plan check runs for the plan.-func (s *RolloutService) ListPlanCheckRuns(ctx context.Context, request *v1pb.ListPlanCheckRunsRequest) (*v1pb.ListPlanCheckRunsResponse, error) {- projectID, planUID, err := common.GetProjectIDPlanID(request.Parent)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- planCheckRuns, err := s.store.ListPlanCheckRuns(ctx, &store.FindPlanCheckRunMessage{- PlanUID: &planUID,- })- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to list plan check runs, error: %v", err)- }- converted, err := convertToPlanCheckRuns(ctx, s.store, projectID, planUID, planCheckRuns)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to convert plan check runs, error: %v", err)- }-- return &v1pb.ListPlanCheckRunsResponse{- PlanCheckRuns: converted,- NextPageToken: "",- }, nil-}--// RunPlanChecks runs plan checks for a plan.-func (s *RolloutService) RunPlanChecks(ctx context.Context, request *v1pb.RunPlanChecksRequest) (*v1pb.RunPlanChecksResponse, error) {- planUID, err := common.GetPlanID(request.Name)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- plan, err := s.store.GetPlan(ctx, &store.FindPlanMessage{UID: &planUID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get plan, error: %v", err)- }- if plan == nil {- return nil, status.Errorf(codes.NotFound, "plan not found")- }-- planCheckRuns, err := getPlanCheckRunsFromPlan(ctx, s.store, plan)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get plan check runs for plan, error: %v", err)- }- if err := s.store.CreatePlanCheckRuns(ctx, planCheckRuns...); err != nil {- return nil, status.Errorf(codes.Internal, "failed to create plan check runs, error: %v", err)- }-- // Tickle plan check scheduler.- s.stateCfg.PlanCheckTickleChan <- 0-- return &v1pb.RunPlanChecksResponse{}, nil-}-// ListTaskRuns lists rollout task runs.func (s *RolloutService) ListTaskRuns(ctx context.Context, request *v1pb.ListTaskRunsRequest) (*v1pb.ListTaskRunsResponse, error) {projectID, rolloutID, maybeStageID, maybeTaskID, err := common.GetProjectIDRolloutIDMaybeStageIDMaybeTaskID(request.Parent)@@ -838,539 +637,6 @@ func (s *RolloutService) BatchCancelTaskRuns(ctx context.Context, request *v1pb.return &v1pb.BatchCancelTaskRunsResponse{}, nil}-// UpdatePlan updates a plan.-func (s *RolloutService) UpdatePlan(ctx context.Context, request *v1pb.UpdatePlanRequest) (*v1pb.Plan, error) {- if request.UpdateMask == nil {- return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")- }- user, ok := ctx.Value(common.UserContextKey).(*store.UserMessage)- if !ok {- return nil, status.Errorf(codes.Internal, "user not found")- }- planID, err := common.GetPlanID(request.Plan.Name)- if err != nil {- return nil, status.Errorf(codes.Internal, err.Error())- }- oldPlan, err := s.store.GetPlan(ctx, &store.FindPlanMessage{UID: &planID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get plan %q: %v", request.Plan.Name, err)- }- if oldPlan == nil {- return nil, status.Errorf(codes.NotFound, "plan %q not found", request.Plan.Name)- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{ResourceID: &oldPlan.ProjectID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get project %q, err: %v", oldPlan.ProjectID, err)- }- if project == nil {- return nil, status.Errorf(codes.NotFound, "project %q not found", oldPlan.ProjectID)- }- for _, path := range request.UpdateMask.Paths {- switch path {- case "steps":- if _, err := GetPipelineCreate(ctx, s.store, s.licenseService, s.dbFactory, convertPlanSteps(request.Plan.GetSteps()), project); err != nil {- return nil, status.Errorf(codes.InvalidArgument, "failed to get pipeline from the plan, please check you request, error: %v", err)- }- default:- return nil, status.Errorf(codes.InvalidArgument, "invalid update_mask path %q", path)- }- }-- ok, err = func() (bool, error) {- if oldPlan.CreatorUID == user.ID {- return true, nil- }- return s.iamManager.CheckPermission(ctx, iam.PermissionPlansUpdate, user, oldPlan.ProjectID)- }()- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to check permission, error: %v", err)- }- if !ok {- return nil, status.Errorf(codes.PermissionDenied, "permission denied to update plan")- }-- oldSteps := convertToPlanSteps(oldPlan.Config.Steps)-- issue, err := s.store.GetIssueV2(ctx, &store.FindIssueMessage{PlanUID: &oldPlan.UID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get issue: %v", err)- }-- removed, added, updated := diffSpecs(oldSteps, request.Plan.Steps)- if len(removed) > 0 {- return nil, status.Errorf(codes.InvalidArgument, "cannot remove specs from plan")- }- if len(added) > 0 {- return nil, status.Errorf(codes.InvalidArgument, "cannot add specs to plan")- }- if len(updated) == 0 {- return nil, status.Errorf(codes.InvalidArgument, "no specs updated")- }-- oldSpecsByID := make(map[string]*v1pb.Plan_Spec)- for _, step := range oldSteps {- for _, spec := range step.Specs {- oldSpecsByID[spec.Id] = spec- }- }-- updatedByID := make(map[string]*v1pb.Plan_Spec)- for _, spec := range updated {- updatedByID[spec.Id] = spec- }-- tasksMap := map[int]*store.TaskMessage{}- var taskPatchList []*api.TaskPatch- var statementUpdates []api.ActivityPipelineTaskStatementUpdatePayload- var earliestUpdates []api.ActivityPipelineTaskEarliestAllowedTimeUpdatePayload- var taskDAGRebuildList []struct {- fromTaskIDs []int- toTaskID int- }-- if oldPlan.PipelineUID != nil {- tasks, err := s.store.ListTasks(ctx, &api.TaskFind{PipelineID: oldPlan.PipelineUID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to list tasks: %v", err)- }- tasksBySpecID := make(map[string][]*store.TaskMessage)- for _, task := range tasks {- var taskSpecID struct {- SpecID string `json:"specId"`- }- if err := json.Unmarshal([]byte(task.Payload), &taskSpecID); err != nil {- return nil, status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)- }- tasksBySpecID[taskSpecID.SpecID] = append(tasksBySpecID[taskSpecID.SpecID], task)- }- for _, task := range tasks {- doUpdate := false- taskPatch := &api.TaskPatch{- ID: task.ID,- UpdaterID: user.ID,- }- tasksMap[task.ID] = task-- var taskSpecID struct {- SpecID string `json:"specId"`- }- if err := json.Unmarshal([]byte(task.Payload), &taskSpecID); err != nil {- return nil, status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)- }- spec, ok := updatedByID[taskSpecID.SpecID]- if !ok {- continue- }-- // Flags for gh-ost.- if err := func() error {- if task.Type != api.TaskDatabaseSchemaUpdateGhostSync {- return nil- }- payload := &api.TaskDatabaseSchemaUpdateGhostSyncPayload{}- if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {- return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)- }- newFlags := spec.GetChangeDatabaseConfig().GetGhostFlags()- if _, err := ghost.GetUserFlags(newFlags); err != nil {- return status.Errorf(codes.InvalidArgument, "invalid ghost flags %q, error %v", newFlags, err)- }- oldFlags := payload.Flags- if cmp.Equal(oldFlags, newFlags) {- return nil- }- taskPatch.Flags = &newFlags- doUpdate = true- return nil- }(); err != nil {- return nil, err- }-- // EarliestAllowedTs- if spec.EarliestAllowedTime.GetSeconds() != task.EarliestAllowedTs {- seconds := spec.EarliestAllowedTime.GetSeconds()- taskPatch.EarliestAllowedTs = &seconds- doUpdate = true- earliestUpdates = append(earliestUpdates, api.ActivityPipelineTaskEarliestAllowedTimeUpdatePayload{- TaskID: task.ID,- OldEarliestAllowedTs: task.EarliestAllowedTs,- NewEarliestAllowedTs: seconds,- IssueName: issue.Title,- TaskName: task.Name,- })- }-- // RollbackEnabled- if err := func() error {- if task.Type != api.TaskDatabaseDataUpdate {- return nil- }- payload := &api.TaskDatabaseDataUpdatePayload{}- if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {- return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)- }- config, ok := spec.Config.(*v1pb.Plan_Spec_ChangeDatabaseConfig)- if !ok {- return nil- }- if config.ChangeDatabaseConfig.RollbackEnabled != payload.RollbackEnabled {- taskPatch.RollbackEnabled = &config.ChangeDatabaseConfig.RollbackEnabled- doUpdate = true- }- return nil- }(); err != nil {- return nil, err- }-- // PreUpdateBackupDetail- if err := func() error {- if task.Type != api.TaskDatabaseDataUpdate {- return nil- }- payload := &api.TaskDatabaseDataUpdatePayload{}- if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {- return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)- }- config, ok := spec.Config.(*v1pb.Plan_Spec_ChangeDatabaseConfig)- if !ok {- return nil- }-- var databaseName *string- if config.ChangeDatabaseConfig.PreUpdateBackupDetail == nil {- if payload.PreUpdateBackupDetail.Database != "" {- emptyValue := ""- databaseName = &emptyValue- }- } else {- if config.ChangeDatabaseConfig.PreUpdateBackupDetail.Database != payload.PreUpdateBackupDetail.Database {- databaseName = &config.ChangeDatabaseConfig.PreUpdateBackupDetail.Database- }- }- if databaseName != nil {- taskPatch.PreUpdateBackupDetail = &api.PreUpdateBackupDetail{- Database: *databaseName,- }- doUpdate = true- }- return nil- }(); err != nil {- return nil, err- }-- // Sheet- if err := func() error {- switch task.Type {- case api.TaskDatabaseSchemaUpdate, api.TaskDatabaseSchemaUpdateSDL, api.TaskDatabaseSchemaUpdateGhostSync, api.TaskDatabaseDataUpdate, api.TaskDatabaseDataExport:- var taskPayload struct {- SheetID int `json:"sheetId"`- }- if err := json.Unmarshal([]byte(task.Payload), &taskPayload); err != nil {- return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)- }-- var oldSheetName string- if task.Type == api.TaskDatabaseDataExport {- config, ok := spec.Config.(*v1pb.Plan_Spec_ExportDataConfig)- if !ok {- return nil- }- oldSheetName = config.ExportDataConfig.Sheet- } else {- config, ok := spec.Config.(*v1pb.Plan_Spec_ChangeDatabaseConfig)- if !ok {- return nil- }- oldSheetName = config.ChangeDatabaseConfig.Sheet- }- _, sheetUID, err := common.GetProjectResourceIDSheetUID(oldSheetName)- if err != nil {- return status.Errorf(codes.Internal, "failed to get sheet id from %q, error: %v", oldSheetName, err)- }- if taskPayload.SheetID == sheetUID {- return nil- }-- sheet, err := s.store.GetSheet(ctx, &store.FindSheetMessage{- UID: &sheetUID,- })- if err != nil {- return status.Errorf(codes.Internal, "failed to get sheet %q: %v", oldSheetName, err)- }- if sheet == nil {- return status.Errorf(codes.NotFound, "sheet %q not found", oldSheetName)- }- doUpdate = true- // TODO(p0ny): update schema version- taskPatch.SheetID = &sheet.UID- statementUpdates = append(statementUpdates, api.ActivityPipelineTaskStatementUpdatePayload{- TaskID: task.ID,- OldSheetID: taskPayload.SheetID,- NewSheetID: sheet.UID,- TaskName: task.Name,- IssueName: issue.Title,- })- }- return nil- }(); err != nil {- return nil, err- }-- // ExportDataConfig- if err := func() error {- if task.Type != api.TaskDatabaseDataExport {- return nil- }- payload := &api.TaskDatabaseDataExportPayload{}- if err := json.Unmarshal([]byte(task.Payload), payload); err != nil {- return status.Errorf(codes.Internal, "failed to unmarshal task payload: %v", err)- }- config, ok := spec.Config.(*v1pb.Plan_Spec_ExportDataConfig)- if !ok {- return nil- }- if config.ExportDataConfig.Format != convertExportFormat(payload.Format) {- format := convertToExportFormat(config.ExportDataConfig.Format)- taskPatch.ExportFormat = &format- doUpdate = true- }- if (config.ExportDataConfig.Password == nil && payload.Password != "") || (config.ExportDataConfig.Password != nil && *config.ExportDataConfig.Password != payload.Password) {- taskPatch.ExportPassword = config.ExportDataConfig.Password- doUpdate = true- }- return nil- }(); err != nil {- return nil, err- }-- // version- if err := func() error {- switch task.Type {- case api.TaskDatabaseSchemaBaseline, api.TaskDatabaseSchemaUpdate, api.TaskDatabaseSchemaUpdateSDL, api.TaskDatabaseSchemaUpdateGhostSync, api.TaskDatabaseDataUpdate:- default:- return nil- }- var taskPayload struct {- SchemaVersion string `json:"schemaVersion"`- }- if err := json.Unmarshal([]byte(task.Payload), &taskPayload); err != nil {- return errors.Wrapf(err, "failed to unmarshal task payload")- }- if v := spec.GetChangeDatabaseConfig().GetSchemaVersion(); v != "" && v != taskPayload.SchemaVersion {- taskPatch.SchemaVersion = &v- doUpdate = true- }- return nil- }(); err != nil {- return nil, err- }-- // task dag- if err := func() error {- oldSpec, ok := oldSpecsByID[taskSpecID.SpecID]- if !ok {- return nil- }-- sort.Slice(oldSpec.DependsOnSpecs, func(i, j int) bool {- return oldSpec.DependsOnSpecs[i] < oldSpec.DependsOnSpecs[j]- })- sort.Slice(spec.DependsOnSpecs, func(i, j int) bool {- return spec.DependsOnSpecs[i] < spec.DependsOnSpecs[j]- })- if slices.Equal(oldSpec.GetDependsOnSpecs(), spec.GetDependsOnSpecs()) {- return nil- }-- // rebuild the task dag- var fromTaskIDs []int- for _, dependsOnSpec := range spec.GetDependsOnSpecs() {- for _, dependsOnTask := range tasksBySpecID[dependsOnSpec] {- fromTaskIDs = append(fromTaskIDs, dependsOnTask.ID)- }- }- taskDAGRebuildList = append(taskDAGRebuildList, struct {- fromTaskIDs []int- toTaskID int- }{- fromTaskIDs: fromTaskIDs,- toTaskID: task.ID,- })- return nil- }(); err != nil {- return nil, err- }-- if !doUpdate {- continue- }-- taskPatchList = append(taskPatchList, taskPatch)- }- }-- for _, taskPatch := range taskPatchList {- if taskPatch.SheetID != nil || taskPatch.EarliestAllowedTs != nil {- task := tasksMap[taskPatch.ID]- if task.LatestTaskRunStatus == api.TaskRunPending || task.LatestTaskRunStatus == api.TaskRunRunning {- return nil, status.Errorf(codes.FailedPrecondition, "cannot update plan because task %q is %s", task.Name, task.LatestTaskRunStatus)- }- }- }-- var doUpdateSheet bool- for _, taskPatch := range taskPatchList {- if taskPatch.SheetID != nil {- doUpdateSheet = true- break- }- }-- // For the plan without pipeline, we need to check if the sheet is updated in related specs.- if oldPlan.PipelineUID == nil {- for _, specPatch := range updated {- oldSpec := oldSpecsByID[specPatch.Id]- if oldSpec.GetChangeDatabaseConfig() != nil && specPatch.GetChangeDatabaseConfig() != nil {- oldConfig, newConfig := oldSpec.GetChangeDatabaseConfig(), specPatch.GetChangeDatabaseConfig()- if oldConfig.Sheet != newConfig.Sheet {- doUpdateSheet = true- break- }- }- }- }-- for _, taskPatch := range taskPatchList {- task := tasksMap[taskPatch.ID]- if _, err := s.store.UpdateTaskV2(ctx, taskPatch); err != nil {- return nil, status.Errorf(codes.Internal, "failed to update task %q: %v", task.Name, err)- }-- taskPatched, err := s.store.GetTaskV2ByID(ctx, task.ID)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get updated task %q: %v", task.Name, err)- }-- // enqueue or cancel after it's written to the database.- if taskPatch.RollbackEnabled != nil {- // Enqueue the rollback sql generation if the task done.- if *taskPatch.RollbackEnabled && taskPatched.LatestTaskRunStatus == api.TaskRunDone {- s.stateCfg.RollbackGenerate.Store(taskPatched.ID, taskPatched)- } else if !*taskPatch.RollbackEnabled {- // Cancel running rollback sql generation.- if v, ok := s.stateCfg.RollbackCancel.Load(taskPatched.ID); ok {- if cancel, ok := v.(context.CancelFunc); ok {- cancel()- }- // We don't erase the keys for RollbackCancel and RollbackGenerate here because they will eventually be erased by the rollback runner.- }- }- }- }-- for _, taskDAGRebuild := range taskDAGRebuildList {- if err := s.store.RebuildTaskDAG(ctx, taskDAGRebuild.fromTaskIDs, taskDAGRebuild.toTaskID); err != nil {- return nil, status.Errorf(codes.Internal, "failed to rebuild task dag: %v", err)- }- }-- if err := s.store.UpdatePlan(ctx, &store.UpdatePlanMessage{- UID: oldPlan.UID,- UpdaterID: user.ID,- Config: &storepb.PlanConfig{- Steps: convertPlanSteps(request.Plan.Steps),- },- }); err != nil {- return nil, status.Errorf(codes.Internal, "failed to update plan %q: %v", request.Plan.Name, err)- }-- updatedPlan, err := s.store.GetPlan(ctx, &store.FindPlanMessage{UID: &oldPlan.UID})- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get updated plan %q: %v", request.Plan.Name, err)- }- if updatedPlan == nil {- return nil, status.Errorf(codes.NotFound, "updated plan %q not found", request.Plan.Name)- }-- if doUpdateSheet {- planCheckRuns, err := getPlanCheckRunsFromPlan(ctx, s.store, updatedPlan)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to get plan check runs for plan, error: %v", err)- }- if err := s.store.CreatePlanCheckRuns(ctx, planCheckRuns...); err != nil {- return nil, status.Errorf(codes.Internal, "failed to create plan check runs, error: %v", err)- }- }-- for _, statementUpdate := range statementUpdates {- task := tasksMap[statementUpdate.TaskID]-- if err := func() error {- oldSheet := common.FormatSheet(issue.Project.ResourceID, statementUpdate.OldSheetID)- newSheet := common.FormatSheet(issue.Project.ResourceID, statementUpdate.NewSheetID)- return s.store.CreateIssueComment(ctx, &store.IssueCommentMessage{- IssueUID: issue.UID,- Payload: &storepb.IssueCommentPayload{- Event: &storepb.IssueCommentPayload_TaskUpdate_{- TaskUpdate: &storepb.IssueCommentPayload_TaskUpdate{- Tasks: []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, task.StageID, task.ID)},- FromSheet: &oldSheet,- ToSheet: &newSheet,- },- },- },- }, user.ID)- }(); err != nil {- slog.Warn("failed to create issue comments for statement update", "issueUID", issue.UID, log.BBError(err))- }- }- for _, earliestUpdate := range earliestUpdates {- task := tasksMap[earliestUpdate.TaskID]-- if err := func() error {- return s.store.CreateIssueComment(ctx, &store.IssueCommentMessage{- IssueUID: issue.UID,- Payload: &storepb.IssueCommentPayload{- Event: &storepb.IssueCommentPayload_TaskUpdate_{- TaskUpdate: &storepb.IssueCommentPayload_TaskUpdate{- Tasks: []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, task.StageID, task.ID)},- FromEarliestAllowedTime: timestamppb.New(time.Unix(earliestUpdate.OldEarliestAllowedTs, 0)),- ToEarliestAllowedTime: timestamppb.New(time.Unix(earliestUpdate.NewEarliestAllowedTs, 0)),- },- },- },- }, user.ID)- }(); err != nil {- slog.Warn("failed to create issue comments for earliest allowed time update", "issueUID", issue.UID, log.BBError(err))- }- }-- if issue != nil && doUpdateSheet {- if err := func() error {- issue, err := s.store.UpdateIssueV2(ctx, issue.UID, &store.UpdateIssueMessage{- PayloadUpsert: &storepb.IssuePayload{- Approval: &storepb.IssuePayloadApproval{- ApprovalFindingDone: false,- },- },- }, api.SystemBotID)- if err != nil {- return errors.Errorf("failed to update issue: %v", err)- }- s.stateCfg.ApprovalFinding.Store(issue.UID, issue)- return nil- }(); err != nil {- slog.Error("failed to update issue to refind approval", log.BBError(err))- }- }-- convertedPlan, err := convertToPlan(ctx, s.store, updatedPlan)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to convert to plan, error: %v", err)- }- return convertedPlan, nil-}-// diffSpecs check if there are any specs removed, added or updated in the new plan.// Only updating sheet is taken into account.func diffSpecs(oldSteps []*v1pb.Plan_Step, newSteps []*v1pb.Plan_Step) ([]*v1pb.Plan_Spec, []*v1pb.Plan_Spec, []*v1pb.Plan_Spec) {diff --git a/backend/server/grpc_routes.go b/backend/server/grpc_routes.goindex 2da676d2ec..ab60706b44 100644--- a/backend/server/grpc_routes.go+++ b/backend/server/grpc_routes.go@@ -44,11 +44,11 @@ func configureGrpcRouters(postCreateUser apiv1.CreateUserFunc,secret string,errorRecordRing *api.ErrorRecordRing,- tokenDuration time.Duration) (*apiv1.RolloutService, *apiv1.IssueService, error) {+ tokenDuration time.Duration) (*apiv1.PlanService, *apiv1.RolloutService, *apiv1.IssueService, error) {// Register services.authService, err := apiv1.NewAuthService(stores, secret, tokenDuration, licenseService, metricReporter, profile, stateCfg, postCreateUser)if err != nil {- return nil, nil, err+ return nil, nil, nil, err}v1pb.RegisterAuditLogServiceServer(grpcServer, apiv1.NewAuditLogService(stores, iamManager))v1pb.RegisterAuthServiceServer(grpcServer, authService)@@ -78,9 +78,11 @@ func configureGrpcRouters(v1pb.RegisterSQLServiceServer(grpcServer, apiv1.NewSQLService(stores, schemaSyncer, dbFactory, activityManager, licenseService, profile, iamManager))v1pb.RegisterVCSProviderServiceServer(grpcServer, apiv1.NewVCSProviderService(stores))v1pb.RegisterRiskServiceServer(grpcServer, apiv1.NewRiskService(stores, licenseService))+ planService := apiv1.NewPlanService(stores, licenseService, dbFactory, planCheckScheduler, stateCfg, activityManager, profile, iamManager)+ v1pb.RegisterPlanServiceServer(grpcServer, planService)issueService := apiv1.NewIssueService(stores, activityManager, relayRunner, stateCfg, licenseService, profile, iamManager, metricReporter)v1pb.RegisterIssueServiceServer(grpcServer, issueService)- rolloutService := apiv1.NewRolloutService(stores, licenseService, dbFactory, planCheckScheduler, stateCfg, activityManager, profile, iamManager)+ rolloutService := apiv1.NewRolloutService(stores, licenseService, dbFactory, stateCfg, activityManager, profile, iamManager)v1pb.RegisterRolloutServiceServer(grpcServer, rolloutService)v1pb.RegisterRoleServiceServer(grpcServer, apiv1.NewRoleService(stores, iamManager, licenseService))v1pb.RegisterSheetServiceServer(grpcServer, apiv1.NewSheetService(stores, licenseService, iamManager, profile))@@ -101,74 +103,77 @@ func configureGrpcRouters(),)if err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterAuthServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterActuatorServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterSubscriptionServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterEnvironmentServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterInstanceServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterProjectServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterDatabaseServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterInstanceRoleServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterOrgPolicyServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterIdentityProviderServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterSettingServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterAnomalyServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterSQLServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterVCSProviderServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterRoleServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterSheetServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterWorksheetServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err+ }+ if err := v1pb.RegisterPlanServiceHandler(ctx, mux, grpcConn); err != nil {+ return nil, nil, nil, err}if err := v1pb.RegisterRolloutServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterIssueServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterLoggingServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterChangelistServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}if err := v1pb.RegisterVCSConnectorServiceHandler(ctx, mux, grpcConn); err != nil {- return nil, nil, err+ return nil, nil, nil, err}- return rolloutService, issueService, nil+ return planService, rolloutService, issueService, nil}diff --git a/backend/server/onboard.go b/backend/server/onboard.goindex df90c11790..1d74758313 100644--- a/backend/server/onboard.go+++ b/backend/server/onboard.go@@ -223,7 +223,7 @@ func (s *Server) generateOnboardingData(ctx context.Context, user *store.UserMes// Use new CI/CD API.childCtx := context.WithValue(ctx, common.PrincipalIDContextKey, user.ID)childCtx = context.WithValue(childCtx, common.UserContextKey, user)- plan, err := s.rolloutService.CreatePlan(childCtx, &v1pb.CreatePlanRequest{+ plan, err := s.planService.CreatePlan(childCtx, &v1pb.CreatePlanRequest{Parent: fmt.Sprintf("projects/%s", project.ResourceID),Plan: &v1pb.Plan{Title: "Onboarding sample plan for adding email column to Employee table",diff --git a/backend/server/server.go b/backend/server/server.goindex 84752ba1c3..7b3fcc387b 100644--- a/backend/server/server.go+++ b/backend/server/server.go@@ -94,6 +94,7 @@ type Server struct {errorRecordRing api.ErrorRecordRing// Stubs.+ planService *apiv1.PlanServicerolloutService *apiv1.RolloutServiceissueService *apiv1.IssueService@@ -357,13 +358,13 @@ func NewServer(ctx context.Context, profile config.Profile) (*Server, error) {}return nil}- rolloutService, issueService, err := configureGrpcRouters(ctx, mux, s.grpcServer, s.store, s.dbFactory, s.licenseService, s.profile, s.metricReporter, s.stateCfg, s.schemaSyncer, s.activityManager, s.iamManager, s.relayRunner, s.planCheckScheduler, postCreateUser, s.secret, &s.errorRecordRing, tokenDuration)+ planService, rolloutService, issueService, err := configureGrpcRouters(ctx, mux, s.grpcServer, s.store, s.dbFactory, s.licenseService, s.profile, s.metricReporter, s.stateCfg, s.schemaSyncer, s.activityManager, s.iamManager, s.relayRunner, s.planCheckScheduler, postCreateUser, s.secret, &s.errorRecordRing, tokenDuration)if err != nil {return nil, err}- s.rolloutService, s.issueService = rolloutService, issueService+ s.planService, s.rolloutService, s.issueService = planService, rolloutService, issueService// GitOps webhook server.- gitOpsServer := gitops.NewService(s.store, s.dbFactory, s.activityManager, s.stateCfg, s.licenseService, rolloutService, issueService)+ gitOpsServer := gitops.NewService(s.store, s.dbFactory, s.activityManager, s.stateCfg, s.licenseService, planService, rolloutService, issueService)// Configure echo server routes.configureEchoRouters(s.echoServer, s.grpcServer, s.lspServer, gitOpsServer, mux, profile)diff --git a/backend/tests/database.go b/backend/tests/database.goindex 3a7fccada6..415274edaa 100644--- a/backend/tests/database.go+++ b/backend/tests/database.go@@ -21,7 +21,7 @@ func (ctl *controller) createDatabaseV2(ctx context.Context, project *v1pb.ProjeenvironmentName = environment.Name}- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{+ plan, err := ctl.planServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{Parent: project.Name,Plan: &v1pb.Plan{Steps: []*v1pb.Plan_Step{diff --git a/backend/tests/project_test.go b/backend/tests/project_test.goindex e9d3ef6fda..b04912c93c 100644--- a/backend/tests/project_test.go+++ b/backend/tests/project_test.go@@ -55,7 +55,7 @@ func TestArchiveProject(t *testing.T) {})t.Run("ArchiveProjectWithOpenIssue", func(_ *testing.T) {- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{+ plan, err := ctl.planServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{Parent: ctl.project.Name,Plan: &v1pb.Plan{Steps: []*v1pb.Plan_Step{diff --git a/backend/tests/rollback_test.go b/backend/tests/rollback_test.goindex 7dd9f7c1c3..a12be851e5 100644--- a/backend/tests/rollback_test.go+++ b/backend/tests/rollback_test.go@@ -258,7 +258,7 @@ func TestCreateRollbackIssueMySQLByPatch(t *testing.T) {spec.GetChangeDatabaseConfig().RollbackEnabled = true}}- _, err = ctl.rolloutServiceClient.UpdatePlan(ctx, &v1pb.UpdatePlanRequest{+ _, err = ctl.planServiceClient.UpdatePlan(ctx, &v1pb.UpdatePlanRequest{Plan: plan,UpdateMask: &fieldmaskpb.FieldMask{Paths: []string{"steps"}},})@@ -419,7 +419,7 @@ func TestRollbackCanceled(t *testing.T) {spec.GetChangeDatabaseConfig().RollbackEnabled = false}}- _, err = ctl.rolloutServiceClient.UpdatePlan(ctx, &v1pb.UpdatePlanRequest{+ _, err = ctl.planServiceClient.UpdatePlan(ctx, &v1pb.UpdatePlanRequest{Plan: plan,UpdateMask: &fieldmaskpb.FieldMask{Paths: []string{"steps"}},})diff --git a/backend/tests/rollout.go b/backend/tests/rollout.goindex 2f06dbcef1..d43ce0dac5 100644--- a/backend/tests/rollout.go+++ b/backend/tests/rollout.go@@ -35,7 +35,7 @@ func (ctl *controller) changeDatabase(ctx context.Context, project *v1pb.Project}func (ctl *controller) changeDatabaseWithConfig(ctx context.Context, project *v1pb.Project, steps []*v1pb.Plan_Step) (*v1pb.Plan, *v1pb.Rollout, *v1pb.Issue, error) {- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{+ plan, err := ctl.planServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{Parent: project.Name,Plan: &v1pb.Plan{Steps: steps,diff --git a/backend/tests/schema_update_test.go b/backend/tests/schema_update_test.goindex 4df40a4141..f0acd4a588 100644--- a/backend/tests/schema_update_test.go+++ b/backend/tests/schema_update_test.go@@ -415,7 +415,7 @@ func TestMarkTaskAsDone(t *testing.T) {a.NoError(err)// Create an issue that updates database schema.- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{+ plan, err := ctl.planServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{Parent: ctl.project.Name,Plan: &v1pb.Plan{Steps: []*v1pb.Plan_Step{diff --git a/backend/tests/sql.go b/backend/tests/sql.goindex 0c874529a1..497e463c43 100644--- a/backend/tests/sql.go+++ b/backend/tests/sql.go@@ -36,7 +36,7 @@ func (ctl *controller) GetSQLReviewResult(ctx context.Context, plan *v1pb.Plan)defer ticker.Stop()for range ticker.C {- resp, err := ctl.rolloutServiceClient.ListPlanCheckRuns(ctx, &v1pb.ListPlanCheckRunsRequest{+ resp, err := ctl.planServiceClient.ListPlanCheckRuns(ctx, &v1pb.ListPlanCheckRunsRequest{Parent: plan.Name,})if err != nil {diff --git a/backend/tests/sql_review_test.go b/backend/tests/sql_review_test.goindex 36ae86fbe9..25053b0675 100644--- a/backend/tests/sql_review_test.go+++ b/backend/tests/sql_review_test.go@@ -457,7 +457,7 @@ func createIssueAndReturnSQLReviewResult(ctx context.Context, a *require.Asserti})a.NoError(err)- plan, err := ctl.rolloutServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{+ plan, err := ctl.planServiceClient.CreatePlan(ctx, &v1pb.CreatePlanRequest{Parent: project.Name,Plan: &v1pb.Plan{Steps: []*v1pb.Plan_Step{diff --git a/backend/tests/tests.go b/backend/tests/tests.goindex aecf37512f..c745c50dfe 100644--- a/backend/tests/tests.go+++ b/backend/tests/tests.go@@ -122,6 +122,7 @@ type controller struct {grpcConn *grpc.ClientConnissueServiceClient v1pb.IssueServiceClientrolloutServiceClient v1pb.RolloutServiceClient+ planServiceClient v1pb.PlanServiceClientorgPolicyServiceClient v1pb.OrgPolicyServiceClientprojectServiceClient v1pb.ProjectServiceClientvcsConnectorServiceClient v1pb.VCSConnectorServiceClient@@ -382,6 +383,7 @@ func (ctl *controller) start(ctx context.Context, port int) (context.Context, erctl.grpcConn = grpcConnctl.issueServiceClient = v1pb.NewIssueServiceClient(ctl.grpcConn)ctl.rolloutServiceClient = v1pb.NewRolloutServiceClient(ctl.grpcConn)+ ctl.planServiceClient = v1pb.NewPlanServiceClient(ctl.grpcConn)ctl.orgPolicyServiceClient = v1pb.NewOrgPolicyServiceClient(ctl.grpcConn)ctl.projectServiceClient = v1pb.NewProjectServiceClient(ctl.grpcConn)ctl.vcsConnectorServiceClient = v1pb.NewVCSConnectorServiceClient(ctl.grpcConn)diff --git a/frontend/src/components/CreateDatabasePrepForm/CreateDatabasePrepForm.vue b/frontend/src/components/CreateDatabasePrepForm/CreateDatabasePrepForm.vueindex a4f6cafd2e..5e47a9bd9f 100644--- a/frontend/src/components/CreateDatabasePrepForm/CreateDatabasePrepForm.vue+++ b/frontend/src/components/CreateDatabasePrepForm/CreateDatabasePrepForm.vue@@ -194,9 +194,9 @@ import { INTERNAL_RDS_INSTANCE_USER_LIST } from "@/types/InstanceUser";import { Engine } from "@/types/proto/v1/common";import type { InstanceRole } from "@/types/proto/v1/instance_role_service";import { Issue, Issue_Type } from "@/types/proto/v1/issue_service";+import type { Plan_CreateDatabaseConfig } from "@/types/proto/v1/plan_service";+import { Plan, Plan_Spec } from "@/types/proto/v1/plan_service";import { TenantMode } from "@/types/proto/v1/project_service";-import type { Plan_CreateDatabaseConfig } from "@/types/proto/v1/rollout_service";-import { Plan, Plan_Spec } from "@/types/proto/v1/rollout_service";import {extractProjectResourceName,instanceV1HasCollationAndCharacterSet,diff --git a/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportOptionSection.vue b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportOptionSection.vueindex f5207ed618..eb9a823718 100644--- a/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportOptionSection.vue+++ b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportOptionSection.vue@@ -67,13 +67,13 @@ import {notifyNotEditableLegacyIssue,useIssueContext,} from "@/components/IssueV1/logic";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import { pushNotification, useCurrentUserV1 } from "@/store";import { IssueStatus } from "@/types/proto/v1/issue_service";import {Plan_Spec,Plan_ExportDataConfig,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import ExportFormatSelector from "./ExportFormatSelector.vue";import ExportPasswordInputer from "./ExportPasswordInputer.vue";@@ -142,7 +142,7 @@ const handleSaveEdit = async () => {config.password = state.config.password || undefined;}- const updatedPlan = await rolloutServiceClient.updatePlan({+ const updatedPlan = await planServiceClient.updatePlan({plan: planPatch,updateMask: ["steps"],});diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vueindex 32c9f60693..32dd6377a0 100644--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue@@ -46,15 +46,19 @@ import {} from "@/components/IssueV1/logic";import formatSQL from "@/components/MonacoEditor/sqlFormatter";import { useSQLCheckContext } from "@/components/SQLCheck";-import { issueServiceClient, rolloutServiceClient } from "@/grpcweb";+import {+ issueServiceClient,+ planServiceClient,+ rolloutServiceClient,+} from "@/grpcweb";import { emitWindowEvent, type TemplateType } from "@/plugins";import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";import { useCurrentUserV1, useDatabaseV1Store, useSheetV1Store } from "@/store";import type { ComposedIssue } from "@/types";import { dialectOfEngineV1, languageOfEngineV1 } from "@/types";import { Issue } from "@/types/proto/v1/issue_service";-import type { Plan_ExportDataConfig } from "@/types/proto/v1/rollout_service";-import { type Plan_ChangeDatabaseConfig } from "@/types/proto/v1/rollout_service";+import type { Plan_ExportDataConfig } from "@/types/proto/v1/plan_service";+import { type Plan_ChangeDatabaseConfig } from "@/types/proto/v1/plan_service";import type { Sheet } from "@/types/proto/v1/sheet_service";import {extractDeploymentConfigName,@@ -242,7 +246,7 @@ const createSheets = async () => {const createPlan = async () => {const plan = issue.value.planEntity;if (!plan) return;- const createdPlan = await rolloutServiceClient.createPlan({+ const createdPlan = await planServiceClient.createPlan({parent: issue.value.project,plan,});diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vueindex 0e1e1c7c90..5f4300515e 100644--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue@@ -35,8 +35,8 @@ import { IssueStatus } from "@/types/proto/v1/issue_service";import {Plan_ExportDataConfig,Plan_Spec,- TaskRun_ExportArchiveStatus,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";+import { TaskRun_ExportArchiveStatus } from "@/types/proto/v1/rollout_service";import { ExportRequest } from "@/types/proto/v1/sql_service";interface LocalState {diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadge.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadge.vueindex 741f87e910..ac73d087f0 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadge.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadge.vue@@ -46,12 +46,12 @@ import { maxBy } from "lodash-es";import { computed } from "vue";import { useI18n } from "vue-i18n";import { planCheckRunResultStatus } from "@/components/IssueV1/logic";-import type { PlanCheckRun } from "@/types/proto/v1/rollout_service";+import type { PlanCheckRun } from "@/types/proto/v1/plan_service";import {PlanCheckRun_Result_Status,PlanCheckRun_Status,PlanCheckRun_Type,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import { TaskSpinner } from "../../common";const props = defineProps<{diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadgeBar.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadgeBar.vueindex 7a1dc8accf..ea97f78b63 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadgeBar.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadgeBar.vue@@ -17,8 +17,8 @@<script lang="ts" setup>import { orderBy } from "lodash-es";import { computed } from "vue";-import type { PlanCheckRun } from "@/types/proto/v1/rollout_service";-import { PlanCheckRun_Type } from "@/types/proto/v1/rollout_service";+import type { PlanCheckRun } from "@/types/proto/v1/plan_service";+import { PlanCheckRun_Type } from "@/types/proto/v1/plan_service";import { groupBy } from "@/utils/collections";import PlanCheckBadge from "./PlanCheckBadge.vue";diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vueindex 4c0d0a60b2..821234e5f2 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue@@ -59,11 +59,11 @@ import {notifyNotEditableLegacyIssue,useIssueContext,} from "@/components/IssueV1/logic";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import type {PlanCheckRun,PlanCheckRun_Type,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import type { VueClass } from "@/utils";import PlanCheckBadgeBar from "./PlanCheckBadgeBar.vue";import PlanCheckModal from "./PlanCheckModal.vue";@@ -100,7 +100,7 @@ const runChecks = () => {return;}- rolloutServiceClient.runPlanChecks({+ planServiceClient.runPlanChecks({name: plan,});events.emit("status-changed", { eager: true });diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckDetail.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckDetail.vueindex 17e2734784..dbe0d81006 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckDetail.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckDetail.vue@@ -129,12 +129,12 @@ import {getRuleLocalization,ruleTemplateMap,} from "@/types";-import type { PlanCheckRun } from "@/types/proto/v1/rollout_service";import {+ PlanCheckRun,PlanCheckRun_Result,PlanCheckRun_Result_Status,PlanCheckRun_Status,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import PlanCheckResultDefinitionModal from "./PlanCheckResultDefinitionModal.vue";interface ErrorCodeLink {diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckModal.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckModal.vueindex 57744031c3..94ffd69340 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckModal.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckModal.vue@@ -18,7 +18,7 @@ import { computed, ref, watch } from "vue";import type {PlanCheckRun,PlanCheckRun_Type,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import PlanCheckPanel from "./PlanCheckPanel.vue";const props = defineProps<{diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckPanel.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckPanel.vueindex 7dc3232bb2..14657895b6 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckPanel.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckPanel.vue@@ -34,7 +34,7 @@ import {PlanCheckRun_Result_Status,PlanCheckRun_Type,type PlanCheckRun,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import { humanizeDate } from "@/utils";import PlanCheckBadgeBar from "./PlanCheckBadgeBar.vue";import PlanCheckDetail from "./PlanCheckDetail.vue";diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckRunButton.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckRunButton.vueindex 5b2f7e9801..6c2b651213 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckRunButton.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckRunButton.vue@@ -32,7 +32,7 @@ import {import type { ContextMenuButtonAction } from "@/components/v2";import { ContextMenuButton } from "@/components/v2";import { IssueStatus } from "@/types/proto/v1/issue_service";-import { PlanCheckRun_Status } from "@/types/proto/v1/rollout_service";+import { PlanCheckRun_Status } from "@/types/proto/v1/plan_service";defineEmits<{(event: "run-checks"): void;diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckSection.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckSection.vueindex 7c9c3c7a4e..e76b5a9639 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckSection.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckSection.vue@@ -26,7 +26,7 @@ import {planSpecHasPlanChecks,useIssueContext,} from "@/components/IssueV1/logic";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import { useCurrentUserV1 } from "@/store";import { EMPTY_ID } from "@/types";import { extractUserResourceName, hasProjectPermissionV2 } from "@/utils";@@ -87,7 +87,7 @@ const runPlanChecks = async () => {if (!plan) return;try {- await rolloutServiceClient.runPlanChecks({+ await planServiceClient.runPlanChecks({name: plan.name,});} catch (ex) {diff --git a/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/ReviewOptionSection.vue b/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/ReviewOptionSection.vueindex 85804c8b55..e6bd1c90b6 100644--- a/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/ReviewOptionSection.vue+++ b/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/ReviewOptionSection.vue@@ -56,13 +56,13 @@ import {notifyNotEditableLegacyIssue,useIssueContext,} from "@/components/IssueV1/logic";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import { pushNotification, useCurrentUserV1 } from "@/store";import { IssueStatus } from "@/types/proto/v1/issue_service";import {Plan_ChangeDatabaseConfig_Type,Plan_ChangeDatabaseConfig,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import { hasProjectPermissionV2 } from "@/utils";import StatementTypeSelector from "./StatementTypeSelector.vue";import type { StatementType } from "./types";@@ -133,7 +133,7 @@ const handleSaveEdit = async () => {config.type = state.statementType;}- const updatedPlan = await rolloutServiceClient.updatePlan({+ const updatedPlan = await planServiceClient.updatePlan({plan: planPatch,updateMask: ["steps"],});diff --git a/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/StatementTypeSelector.vue b/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/StatementTypeSelector.vueindex 138c82adb4..b7c199aa84 100644--- a/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/StatementTypeSelector.vue+++ b/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/StatementTypeSelector.vue@@ -20,7 +20,7 @@import { NRadioGroup, NRadio } from "naive-ui";import { computed } from "vue";import { onMounted } from "vue";-import { Plan_ChangeDatabaseConfig_Type } from "@/types/proto/v1/rollout_service";+import { Plan_ChangeDatabaseConfig_Type } from "@/types/proto/v1/plan_service";import type { StatementType } from "./types";const props = defineProps<{diff --git a/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/types.ts b/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/types.tsindex 8e1f40f964..9bbe08824e 100644--- a/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/types.ts+++ b/frontend/src/components/IssueV1/components/ReviewIssueSpecSection/ReviewOptionSection/types.ts@@ -1,4 +1,4 @@-import type { Plan_ChangeDatabaseConfig_Type } from "@/types/proto/v1/rollout_service";+import type { Plan_ChangeDatabaseConfig_Type } from "@/types/proto/v1/plan_service";export type StatementType =| Plan_ChangeDatabaseConfig_Type.MIGRATEdiff --git a/frontend/src/components/IssueV1/components/SQLCheckSection/SQLCheckSection.vue b/frontend/src/components/IssueV1/components/SQLCheckSection/SQLCheckSection.vueindex 7f059c6ca2..3907afc531 100644--- a/frontend/src/components/IssueV1/components/SQLCheckSection/SQLCheckSection.vue+++ b/frontend/src/components/IssueV1/components/SQLCheckSection/SQLCheckSection.vue@@ -48,10 +48,8 @@ import {import { SQLCheckButton } from "@/components/SQLCheck";import type { TemplateType } from "@/plugins";import { TaskTypeListWithStatement } from "@/types";-import {- Plan_ChangeDatabaseConfig_Type,- Task_Type,-} from "@/types/proto/v1/rollout_service";+import { Plan_ChangeDatabaseConfig_Type } from "@/types/proto/v1/plan_service";+import { Task_Type } from "@/types/proto/v1/rollout_service";import { CheckRequest_ChangeType } from "@/types/proto/v1/sql_service";import type { Defer } from "@/utils/util";import { useEditSheet } from "../StatementSection/useEditSheet";diff --git a/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue b/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vueindex d4aa001dab..1cdb6a1688 100644--- a/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue@@ -70,12 +70,12 @@ import {useIssueContext,} from "@/components/IssueV1";import ErrorList from "@/components/misc/ErrorList.vue";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import { emitWindowEvent } from "@/plugins";import { hasFeature, pushNotification, useCurrentUserV1 } from "@/store";import { IssueStatus } from "@/types/proto/v1/issue_service";+import type { Plan_Spec } from "@/types/proto/v1/plan_service";import {- type Plan_Spec,type Task,TaskRun_Status,Task_Status,@@ -334,7 +334,7 @@ const handleUpdateEarliestAllowedTime = async (timestampMS: number | null) => {}}- const updatedPlan = await rolloutServiceClient.updatePlan({+ const updatedPlan = await planServiceClient.updatePlan({plan: planPatch,updateMask: ["steps"],});diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vueindex 22f4b4a6b7..bce08d998c 100644--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue@@ -89,9 +89,9 @@ import {import LearnMoreLink from "@/components/LearnMoreLink.vue";import ErrorList from "@/components/misc/ErrorList.vue";import { Drawer, DrawerContent, RichDatabaseName } from "@/components/v2";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import { pushNotification } from "@/store";-import type { Plan_Spec } from "@/types/proto/v1/rollout_service";+import type { Plan_Spec } from "@/types/proto/v1/plan_service";import { Task_Type } from "@/types/proto/v1/rollout_service";import FlagsForm from "./FlagsForm";import { allowChangeTaskGhostFlags, useIssueGhostContext } from "./common";@@ -205,7 +205,7 @@ const trySave = async () => {config.ghostFlags = cloneDeep(flags.value);}- const updatedPlan = await rolloutServiceClient.updatePlan({+ const updatedPlan = await planServiceClient.updatePlan({plan: planPatch,updateMask: ["steps"],});diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.tsindex 9e8704b842..cd465d5644 100644--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts@@ -14,9 +14,12 @@ import { useCurrentUserV1, useSubscriptionV1Store } from "@/store";import type { ComposedDatabase, ComposedIssue } from "@/types";import { Engine } from "@/types/proto/v1/common";import { IssueStatus } from "@/types/proto/v1/issue_service";-import type { Plan_Spec, Task } from "@/types/proto/v1/rollout_service";import {Plan_ChangeDatabaseConfig_Type,+ type Plan_Spec,+} from "@/types/proto/v1/plan_service";+import type { Task } from "@/types/proto/v1/rollout_service";+import {Task_Status,Task_Type,task_StatusToJSON,diff --git a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.tsindex 440725fdec..37c6a3d526 100644--- a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts+++ b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts@@ -7,7 +7,7 @@ import {specForTask,useIssueContext,} from "@/components/IssueV1/logic";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import {pushNotification,useCurrentUserV1,@@ -121,7 +121,7 @@ export const usePreBackupContext = () => {spec.changeDatabaseConfig.preUpdateBackupDetail = undefined;}- const updatedPlan = await rolloutServiceClient.updatePlan({+ const updatedPlan = await planServiceClient.updatePlan({plan: planPatch,updateMask: ["steps"],});diff --git a/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/common.ts b/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/common.tsindex 6623b2504e..bd3a6c3d85 100644--- a/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/common.ts+++ b/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/common.ts@@ -7,7 +7,7 @@ import {specForTask,useIssueContext,} from "@/components/IssueV1/logic";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import {useCurrentUserV1,experimentalFetchIssueByName,@@ -148,7 +148,7 @@ export const useRollbackContext = () => {task.value.databaseDataUpdate.rollbackEnabled = on;}- const updatedPlan = await rolloutServiceClient.updatePlan({+ const updatedPlan = await planServiceClient.updatePlan({plan: planPatch,updateMask: ["steps"],});diff --git a/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue b/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vueindex 2443db0c0c..c1dfdc0885 100644--- a/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue@@ -30,7 +30,7 @@ import {useVCSConnectorStore,useVCSProviderStore,} from "@/store";-import type { Plan_VCSSource } from "@/types/proto/v1/rollout_service";+import type { Plan_VCSSource } from "@/types/proto/v1/plan_service";import { hasWorkspacePermissionV2, hasProjectPermissionV2 } from "@/utils";const { issue } = useIssueContext();diff --git a/frontend/src/components/IssueV1/components/StageSection/StageCard.vue b/frontend/src/components/IssueV1/components/StageSection/StageCard.vueindex 8867384d92..d21543b6e7 100644--- a/frontend/src/components/IssueV1/components/StageSection/StageCard.vue+++ b/frontend/src/components/IssueV1/components/StageSection/StageCard.vue@@ -76,11 +76,9 @@ import {useIssueContext,} from "@/components/IssueV1/logic";import { EMPTY_TASK_NAME } from "@/types";+import { PlanCheckRun_Result_Status } from "@/types/proto/v1/plan_service";import type { Stage } from "@/types/proto/v1/rollout_service";-import {- PlanCheckRun_Result_Status,- task_StatusToJSON,-} from "@/types/proto/v1/rollout_service";+import { task_StatusToJSON } from "@/types/proto/v1/rollout_service";import { activeTaskInStageV1 } from "@/utils";import TaskStatusIcon from "../TaskStatusIcon.vue";import StageSummary from "./StageSummary.vue";diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vueindex e6fff91382..f6d71d17ae 100644--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue@@ -243,7 +243,7 @@ import { MonacoEditor } from "@/components/MonacoEditor";import { extensionNameOfLanguage } from "@/components/MonacoEditor/utils";import DownloadSheetButton from "@/components/Sheet/DownloadSheetButton.vue";import SQLUploadButton from "@/components/misc/SQLUploadButton.vue";-import { rolloutServiceClient } from "@/grpcweb";+import { planServiceClient } from "@/grpcweb";import { emitWindowEvent } from "@/plugins";import {hasFeature,@@ -731,7 +731,7 @@ const updateStatement = async (statement: string) => {config.sheet = createdSheet.name;}- const updatedPlan = await rolloutServiceClient.updatePlan({+ const updatedPlan = await planServiceClient.updatePlan({plan: planPatch,updateMask: ["steps"],});diff --git a/frontend/src/components/IssueV1/components/StatementSection/useSQLAdviceMarkers.ts b/frontend/src/components/IssueV1/components/StatementSection/useSQLAdviceMarkers.tsindex 86ddce7fb3..9ccb7346a1 100644--- a/frontend/src/components/IssueV1/components/StatementSection/useSQLAdviceMarkers.ts+++ b/frontend/src/components/IssueV1/components/StatementSection/useSQLAdviceMarkers.ts@@ -1,11 +1,11 @@import { maxBy } from "lodash-es";import { computed } from "vue";import type { AdviceOption } from "@/components/MonacoEditor";-import type { PlanCheckRun } from "@/types/proto/v1/rollout_service";import {+ PlanCheckRun,PlanCheckRun_Result_Status,PlanCheckRun_Type,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import { planCheckRunListForTask, useIssueContext } from "../../logic";export const useSQLAdviceMarkers = () => {diff --git a/frontend/src/components/IssueV1/components/TaskStatusIcon.vue b/frontend/src/components/IssueV1/components/TaskStatusIcon.vueindex bd8ca4af8a..ebb812ba1d 100644--- a/frontend/src/components/IssueV1/components/TaskStatusIcon.vue+++ b/frontend/src/components/IssueV1/components/TaskStatusIcon.vue@@ -68,11 +68,9 @@<script lang="ts" setup>import { computed } from "vue";import { SkipIcon } from "@/components/Icon";+import { PlanCheckRun_Result_Status } from "@/types/proto/v1/plan_service";import type { Task } from "@/types/proto/v1/rollout_service";-import {- PlanCheckRun_Result_Status,- Task_Status,-} from "@/types/proto/v1/rollout_service";+import { Task_Status } from "@/types/proto/v1/rollout_service";import { planCheckStatusForTask, useIssueContext } from "../logic";const props = defineProps<{diff --git a/frontend/src/components/IssueV1/logic/base.ts b/frontend/src/components/IssueV1/logic/base.tsindex a638ac919c..59eec27f2e 100644--- a/frontend/src/components/IssueV1/logic/base.ts+++ b/frontend/src/components/IssueV1/logic/base.ts@@ -11,9 +11,9 @@ import {emptyTask,TaskTypeListWithStatement,} from "@/types";+import type { Plan_Spec } from "@/types/proto/v1/plan_service";import { TenantMode } from "@/types/proto/v1/project_service";-import type { Plan_Spec, Stage, Task } from "@/types/proto/v1/rollout_service";-import { Task_Type } from "@/types/proto/v1/rollout_service";+import { Task_Type, Stage, Task } from "@/types/proto/v1/rollout_service";import { emptyPlanSpec } from "@/types/v1/issue/plan";import {activeStageInRollout,diff --git a/frontend/src/components/IssueV1/logic/context.ts b/frontend/src/components/IssueV1/logic/context.tsindex 93c9c75288..336620642c 100644--- a/frontend/src/components/IssueV1/logic/context.ts+++ b/frontend/src/components/IssueV1/logic/context.ts@@ -6,7 +6,8 @@ import { inject, provide } from "vue";import type { ComposedIssue, ReviewFlow } from "@/types";import type { User } from "@/types/proto/v1/auth_service";import type { Issue_Approver_Status } from "@/types/proto/v1/issue_service";-import type { Plan_Spec, Stage, Task } from "@/types/proto/v1/rollout_service";+import type { Plan_Spec } from "@/types/proto/v1/plan_service";+import type { Stage, Task } from "@/types/proto/v1/rollout_service";import type {IssueReviewAction,IssueStatusAction,diff --git a/frontend/src/components/IssueV1/logic/initialize/create.ts b/frontend/src/components/IssueV1/logic/initialize/create.tsindex d7f5c34a46..d71dc20d27 100644--- a/frontend/src/components/IssueV1/logic/initialize/create.ts+++ b/frontend/src/components/IssueV1/logic/initialize/create.ts@@ -18,7 +18,6 @@ import type { ComposedProject } from "@/types";import { emptyIssue, TaskTypeListWithStatement, UNKNOWN_ID } from "@/types";import { DatabaseConfig } from "@/types/proto/v1/database_service";import { IssueStatus, Issue_Type } from "@/types/proto/v1/issue_service";-import type { Stage } from "@/types/proto/v1/rollout_service";import {Plan,Plan_ChangeDatabaseConfig,@@ -26,9 +25,9 @@ import {Plan_ExportDataConfig,Plan_Spec,Plan_Step,- Rollout,- Task_Type,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";+import type { Stage } from "@/types/proto/v1/rollout_service";+import { Rollout, Task_Type } from "@/types/proto/v1/rollout_service";import { Sheet, SheetPayload } from "@/types/proto/v1/sheet_service";import {extractProjectResourceName,diff --git a/frontend/src/components/IssueV1/logic/plan-check.ts b/frontend/src/components/IssueV1/logic/plan-check.tsindex a08f5af8c0..42dbf1fa58 100644--- a/frontend/src/components/IssueV1/logic/plan-check.ts+++ b/frontend/src/components/IssueV1/logic/plan-check.ts@@ -1,16 +1,14 @@import { maxBy } from "lodash-es";import type { ComposedIssue } from "@/types";-import type {- PlanCheckRun,- Plan_Spec,- Task,-} from "@/types/proto/v1/rollout_service";import {+ PlanCheckRun,PlanCheckRun_Result_Status,PlanCheckRun_Status,PlanCheckRun_Type,- Task_Status,-} from "@/types/proto/v1/rollout_service";+ type Plan_Spec,+} from "@/types/proto/v1/plan_service";+import type { Task } from "@/types/proto/v1/rollout_service";+import { Task_Status } from "@/types/proto/v1/rollout_service";import {databaseForTask,sheetNameForSpec,diff --git a/frontend/src/components/IssueV1/logic/plan.ts b/frontend/src/components/IssueV1/logic/plan.tsindex 65b3b0ca86..f8da70de51 100644--- a/frontend/src/components/IssueV1/logic/plan.ts+++ b/frontend/src/components/IssueV1/logic/plan.ts@@ -13,7 +13,7 @@ import {} from "@/types";import { Engine, State } from "@/types/proto/v1/common";import { InstanceResource } from "@/types/proto/v1/instance_service";-import type { Plan_Spec } from "@/types/proto/v1/rollout_service";+import type { Plan_Spec } from "@/types/proto/v1/plan_service";import {extractDatabaseResourceName,extractDatabaseGroupName,diff --git a/frontend/src/components/IssueV1/logic/utils.ts b/frontend/src/components/IssueV1/logic/utils.tsindex 78410ce17b..2d46f4e5e5 100644--- a/frontend/src/components/IssueV1/logic/utils.ts+++ b/frontend/src/components/IssueV1/logic/utils.ts@@ -11,8 +11,8 @@ import { unknownDatabase, UNKNOWN_ID } from "@/types";import { State } from "@/types/proto/v1/common";import { InstanceResource } from "@/types/proto/v1/instance_service";import { IssueStatus } from "@/types/proto/v1/issue_service";-import type { Plan, Task } from "@/types/proto/v1/rollout_service";-import { Task_Status, Task_Type } from "@/types/proto/v1/rollout_service";+import type { Plan } from "@/types/proto/v1/plan_service";+import { Task, Task_Status, Task_Type } from "@/types/proto/v1/rollout_service";import {defer,extractDatabaseResourceName,diff --git a/frontend/src/components/SQLCheck/SQLCheckPanel.vue b/frontend/src/components/SQLCheck/SQLCheckPanel.vueindex 434310bfe9..a0ee7f4eab 100644--- a/frontend/src/components/SQLCheck/SQLCheckPanel.vue+++ b/frontend/src/components/SQLCheck/SQLCheckPanel.vue@@ -47,7 +47,7 @@ import {PlanCheckRun_Result_Status,PlanCheckRun_Result_SqlReviewReport,PlanCheckRun_Status,-} from "@/types/proto/v1/rollout_service";+} from "@/types/proto/v1/plan_service";import type { Advice } from "@/types/proto/v1/sql_service";import { Advice_Status } from "@/types/proto/v1/sql_service";import type { Defer } from "@/utils";diff --git a/frontend/src/grpcweb/index.ts b/frontend/src/grpcweb/index.tsindex de60d99267..0f2edd6907 100644--- a/frontend/src/grpcweb/index.ts+++ b/frontend/src/grpcweb/index.ts@@ -19,6 +19,7 @@ import { InstanceRoleServiceDefinition } from "@/types/proto/v1/instance_role_seimport { InstanceServiceDefinition } from "@/types/proto/v1/instance_service";import { IssueServiceDefinition } from "@/types/proto/v1/issue_service";import { OrgPolicyServiceDefinition } from "@/types/proto/v1/org_policy_service";+import { PlanServiceDefinition } from "@/types/proto/v1/plan_service";import { ProjectServiceDefinition } from "@/types/proto/v1/project_service";import { RiskServiceDefinition } from "@/types/proto/v1/risk_service";import { RoleServiceDefinition } from "@/types/proto/v1/role_service";@@ -139,6 +140,11 @@ export const rolloutServiceClient = clientFactory.create(channel);+export const planServiceClient = clientFactory.create(+ PlanServiceDefinition,+ channel+);+export const sqlServiceClient = clientFactory.create(SQLServiceDefinition,channeldiff --git a/frontend/src/store/modules/v1/experimental-issue.ts b/frontend/src/store/modules/v1/experimental-issue.tsindex 35c910cfe9..4558fd0a8c 100644--- a/frontend/src/store/modules/v1/experimental-issue.ts+++ b/frontend/src/store/modules/v1/experimental-issue.ts@@ -1,4 +1,8 @@-import { issueServiceClient, rolloutServiceClient } from "@/grpcweb";+import {+ issueServiceClient,+ planServiceClient,+ rolloutServiceClient,+} from "@/grpcweb";import { useCurrentUserV1, useProjectV1Store, useUserStore } from "@/store";import type { ComposedIssue, ComposedProject } from "@/types";import {@@ -12,7 +16,8 @@ import {UNKNOWN_ISSUE_NAME,} from "@/types";import type { Issue } from "@/types/proto/v1/issue_service";-import type { Plan, Rollout } from "@/types/proto/v1/rollout_service";+import type { Plan } from "@/types/proto/v1/plan_service";+import type { Rollout } from "@/types/proto/v1/rollout_service";import {extractProjectResourceName,extractUserResourceName,@@ -53,7 +58,7 @@ export const composeIssue = async (if (config.withPlan && issue.plan) {if (issue.plan) {if (hasProjectPermissionV2(projectEntity, me.value, "bb.plans.get")) {- const plan = await rolloutServiceClient.getPlan({+ const plan = await planServiceClient.getPlan({name: issue.plan,});issue.planEntity = plan;@@ -61,7 +66,7 @@ export const composeIssue = async (if (hasProjectPermissionV2(projectEntity, me.value, "bb.planCheckRuns.list")) {- const { planCheckRuns } = await rolloutServiceClient.listPlanCheckRuns({+ const { planCheckRuns } = await planServiceClient.listPlanCheckRuns({parent: issue.plan,});issue.planCheckRunList = planCheckRuns;@@ -145,7 +150,7 @@ export const experimentalCreateIssueByPlan = async (planCreate: Plan,hooks?: Partial<CreateIssueHooks>) => {- const createdPlan = await rolloutServiceClient.createPlan({+ const createdPlan = await planServiceClient.createPlan({parent: project.name,plan: planCreate,});diff --git a/frontend/src/store/modules/v1/sql.ts b/frontend/src/store/modules/v1/sql.tsindex 62cabb93e8..3f36489aea 100644--- a/frontend/src/store/modules/v1/sql.ts+++ b/frontend/src/store/modules/v1/sql.ts@@ -3,7 +3,7 @@ import { RichClientError } from "nice-grpc-error-details";import { defineStore } from "pinia";import { sqlServiceClient } from "@/grpcweb";import type { SQLResultSetV1 } from "@/types";-import { PlanCheckRun_Result_SqlReviewReport } from "@/types/proto/v1/rollout_service";+import { PlanCheckRun_Result_SqlReviewReport } from "@/types/proto/v1/plan_service";import type {ExportRequest,QueryRequest,diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex 3185d3cbac..3a50d70585 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -8,6 +8,11 @@ export const protobufPackage = "google.protobuf";export enum Edition {/** EDITION_UNKNOWN - A placeholder for an unknown edition value. */EDITION_UNKNOWN = "EDITION_UNKNOWN",+ /**+ * EDITION_LEGACY - A placeholder edition for specifying default behaviors *before* a feature+ * was first introduced. This is effectively an "infinite past".+ */+ EDITION_LEGACY = "EDITION_LEGACY",/*** EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like* distinct editions. These can't be used to specify the edition of proto@@ -22,6 +27,7 @@ export enum Edition {* comparison.*/EDITION_2023 = "EDITION_2023",+ EDITION_2024 = "EDITION_2024",/*** EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be* used or relyed on outside of tests.@@ -31,6 +37,12 @@ export enum Edition {EDITION_99997_TEST_ONLY = "EDITION_99997_TEST_ONLY",EDITION_99998_TEST_ONLY = "EDITION_99998_TEST_ONLY",EDITION_99999_TEST_ONLY = "EDITION_99999_TEST_ONLY",+ /**+ * EDITION_MAX - Placeholder for specifying unbounded edition support. This should only+ * ever be used by plugins that can expect to never require any changes to+ * support a new edition.+ */+ EDITION_MAX = "EDITION_MAX",UNRECOGNIZED = "UNRECOGNIZED",}@@ -39,6 +51,9 @@ export function editionFromJSON(object: any): Edition {case 0:case "EDITION_UNKNOWN":return Edition.EDITION_UNKNOWN;+ case 900:+ case "EDITION_LEGACY":+ return Edition.EDITION_LEGACY;case 998:case "EDITION_PROTO2":return Edition.EDITION_PROTO2;@@ -48,6 +63,9 @@ export function editionFromJSON(object: any): Edition {case 1000:case "EDITION_2023":return Edition.EDITION_2023;+ case 1001:+ case "EDITION_2024":+ return Edition.EDITION_2024;case 1:case "EDITION_1_TEST_ONLY":return Edition.EDITION_1_TEST_ONLY;@@ -63,6 +81,9 @@ export function editionFromJSON(object: any): Edition {case 99999:case "EDITION_99999_TEST_ONLY":return Edition.EDITION_99999_TEST_ONLY;+ case 2147483647:+ case "EDITION_MAX":+ return Edition.EDITION_MAX;case -1:case "UNRECOGNIZED":default:@@ -74,12 +95,16 @@ export function editionToJSON(object: Edition): string {switch (object) {case Edition.EDITION_UNKNOWN:return "EDITION_UNKNOWN";+ case Edition.EDITION_LEGACY:+ return "EDITION_LEGACY";case Edition.EDITION_PROTO2:return "EDITION_PROTO2";case Edition.EDITION_PROTO3:return "EDITION_PROTO3";case Edition.EDITION_2023:return "EDITION_2023";+ case Edition.EDITION_2024:+ return "EDITION_2024";case Edition.EDITION_1_TEST_ONLY:return "EDITION_1_TEST_ONLY";case Edition.EDITION_2_TEST_ONLY:@@ -90,6 +115,8 @@ export function editionToJSON(object: Edition): string {return "EDITION_99998_TEST_ONLY";case Edition.EDITION_99999_TEST_ONLY:return "EDITION_99999_TEST_ONLY";+ case Edition.EDITION_MAX:+ return "EDITION_MAX";case Edition.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -100,12 +127,16 @@ export function editionToNumber(object: Edition): number {switch (object) {case Edition.EDITION_UNKNOWN:return 0;+ case Edition.EDITION_LEGACY:+ return 900;case Edition.EDITION_PROTO2:return 998;case Edition.EDITION_PROTO3:return 999;case Edition.EDITION_2023:return 1000;+ case Edition.EDITION_2024:+ return 1001;case Edition.EDITION_1_TEST_ONLY:return 1;case Edition.EDITION_2_TEST_ONLY:@@ -116,6 +147,8 @@ export function editionToNumber(object: Edition): number {return 99998;case Edition.EDITION_99999_TEST_ONLY:return 99999;+ case Edition.EDITION_MAX:+ return 2147483647;case Edition.UNRECOGNIZED:default:return -1;@@ -357,12 +390,12 @@ export interface FieldDescriptorProto {* If true, this is a proto3 "optional". When a proto3 field is optional, it* tracks presence regardless of field type.*- * When proto3_optional is true, this field must be belong to a oneof to- * signal to old proto3 clients that presence is tracked for this field. This- * oneof is known as a "synthetic" oneof, and this field must be its sole- * member (each proto3 optional field gets its own synthetic oneof). Synthetic- * oneofs exist in the descriptor only, and do not generate any API. Synthetic- * oneofs must be ordered after all "real" oneofs.+ * When proto3_optional is true, this field must belong to a oneof to signal+ * to old proto3 clients that presence is tracked for this field. This oneof+ * is known as a "synthetic" oneof, and this field must be its sole member+ * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs+ * exist in the descriptor only, and do not generate any API. Synthetic oneofs+ * must be ordered after all "real" oneofs.** For message fields, proto3_optional doesn't create any semantic change,* since non-repeated message fields always track presence. However it still@@ -739,12 +772,16 @@ export interface FileOptions {*/javaGenerateEqualsAndHash: boolean;/**- * If set true, then the Java2 code generator will generate code that- * throws an exception whenever an attempt is made to assign a non-UTF-8- * byte sequence to a string field.- * Message reflection will do the same.- * However, an extension field still accepts non-UTF-8 byte sequences.- * This option has no effect on when used with the lite runtime.+ * A proto2 file can set this to true to opt in to UTF-8 checking for Java,+ * which will throw an exception if invalid UTF-8 is parsed from the wire or+ * assigned to a string field.+ *+ * TODO: clarify exactly what kinds of field types this option+ * applies to, and update these docs accordingly.+ *+ * Proto3 files already perform these checks. Setting the option explicitly to+ * false has no effect: it cannot be used to opt proto3 files out of UTF-8+ * checks.*/javaStringCheckUtf8: boolean;optimizeFor: FileOptions_OptimizeMode;@@ -771,7 +808,6 @@ export interface FileOptions {ccGenericServices: boolean;javaGenericServices: boolean;pyGenericServices: boolean;- phpGenericServices: boolean;/*** Is this file deprecated?* Depending on the target platform, this can emit Deprecated annotations@@ -925,10 +961,6 @@ export interface MessageOptions {*/deprecated: boolean;/**- * NOTE: Do not set the option in .proto files. Always use the maps syntax- * instead. The option should only be implicitly set by the proto compiler- * parser.- ** Whether the message is an automatically generated map entry type for the* maps field.*@@ -946,6 +978,10 @@ export interface MessageOptions {* use a native map in the target language to hold the keys and values.* The reflection APIs in such implementations still need to work as* if the field is a repeated message field.+ *+ * NOTE: Do not set the option in .proto files. Always use the maps syntax+ * instead. The option should only be implicitly set by the proto compiler+ * parser.*/mapEntry: boolean;/**@@ -1023,19 +1059,11 @@ export interface FieldOptions {* call from multiple threads concurrently, while non-const methods continue* to require exclusive access.*- * Note that implementations may choose not to check required fields within- * a lazy sub-message. That is, calling IsInitialized() on the outer message- * may return true even if the inner message has missing required fields.- * This is necessary because otherwise the inner message would have to be- * parsed in order to perform the check, defeating the purpose of lazy- * parsing. An implementation which chooses not to check required fields- * must be consistent about it. That is, for any particular sub-message, the- * implementation must either *always* check its required fields, or *never*- * check its required fields, regardless of whether or not the message has- * been parsed.- *- * As of May 2022, lazy verifies the contents of the byte stream during- * parsing. An invalid byte stream will cause the overall parsing to fail.+ * Note that lazy message fields are still eagerly verified to check+ * ill-formed wireformat or missing required fields. Calling IsInitialized()+ * on the outer message would fail if the inner message has missing required+ * fields. Failed verification would result in parsing failure (except when+ * uninitialized messages are acceptable).*/lazy: boolean;/**@@ -1062,8 +1090,9 @@ export interface FieldOptions {targets: FieldOptions_OptionTargetType[];editionDefaults: FieldOptions_EditionDefault[];/** Any features defined in the specific edition. */- features:- | FeatureSet+ features: FeatureSet | undefined;+ featureSupport:+ | FieldOptions_FeatureSupport| undefined;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];@@ -1366,6 +1395,32 @@ export interface FieldOptions_EditionDefault {value: string;}+/** Information about the support window of a feature. */+export interface FieldOptions_FeatureSupport {+ /**+ * The edition that this feature was first available in. In editions+ * earlier than this one, the default assigned to EDITION_LEGACY will be+ * used, and proto files will not be able to override it.+ */+ editionIntroduced: Edition;+ /**+ * The edition this feature becomes deprecated in. Using this after this+ * edition may trigger warnings.+ */+ editionDeprecated: Edition;+ /**+ * The deprecation warning text if this feature is used after the edition it+ * was marked deprecated in.+ */+ deprecationWarning: string;+ /**+ * The edition this feature is no longer available in. In editions after+ * this one, the last default assigned will be used, and proto files will+ * not be able to override it.+ */+ editionRemoved: Edition;+}+export interface OneofOptions {/** Any features defined in the specific edition. */features:@@ -1742,8 +1797,8 @@ export function featureSet_RepeatedFieldEncodingToNumber(object: FeatureSet_Repeexport enum FeatureSet_Utf8Validation {UTF8_VALIDATION_UNKNOWN = "UTF8_VALIDATION_UNKNOWN",- NONE = "NONE",VERIFY = "VERIFY",+ NONE = "NONE",UNRECOGNIZED = "UNRECOGNIZED",}@@ -1752,12 +1807,12 @@ export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Vcase 0:case "UTF8_VALIDATION_UNKNOWN":return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;- case 1:- case "NONE":- return FeatureSet_Utf8Validation.NONE;case 2:case "VERIFY":return FeatureSet_Utf8Validation.VERIFY;+ case 3:+ case "NONE":+ return FeatureSet_Utf8Validation.NONE;case -1:case "UNRECOGNIZED":default:@@ -1769,10 +1824,10 @@ export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validatioswitch (object) {case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:return "UTF8_VALIDATION_UNKNOWN";- case FeatureSet_Utf8Validation.NONE:- return "NONE";case FeatureSet_Utf8Validation.VERIFY:return "VERIFY";+ case FeatureSet_Utf8Validation.NONE:+ return "NONE";case FeatureSet_Utf8Validation.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -1783,10 +1838,10 @@ export function featureSet_Utf8ValidationToNumber(object: FeatureSet_Utf8Validatswitch (object) {case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:return 0;- case FeatureSet_Utf8Validation.NONE:- return 1;case FeatureSet_Utf8Validation.VERIFY:return 2;+ case FeatureSet_Utf8Validation.NONE:+ return 3;case FeatureSet_Utf8Validation.UNRECOGNIZED:default:return -1;@@ -1927,7 +1982,12 @@ export interface FeatureSetDefaults {*/export interface FeatureSetDefaults_FeatureSetEditionDefault {edition: Edition;- features: FeatureSet | undefined;+ /** Defaults of features that can be overridden in this edition. */+ overridableFeatures:+ | FeatureSet+ | undefined;+ /** Defaults of features that can't be overridden in this edition. */+ fixedFeatures: FeatureSet | undefined;}/**@@ -1989,7 +2049,7 @@ export interface SourceCodeInfo_Location {* location.** Each element is a field number or an index. They form a path from- * the root FileDescriptorProto to the place where the definition occurs.+ * the root FileDescriptorProto to the place where the definition appears.* For example, this path:* [ 4, 3, 2, 7, 1 ]* refers to:@@ -3987,7 +4047,6 @@ function createBaseFileOptions(): FileOptions {ccGenericServices: false,javaGenericServices: false,pyGenericServices: false,- phpGenericServices: false,deprecated: false,ccEnableArenas: false,objcClassPrefix: "",@@ -4034,9 +4093,6 @@ export const FileOptions = {if (message.pyGenericServices === true) {writer.uint32(144).bool(message.pyGenericServices);}- if (message.phpGenericServices === true) {- writer.uint32(336).bool(message.phpGenericServices);- }if (message.deprecated === true) {writer.uint32(184).bool(message.deprecated);}@@ -4150,13 +4206,6 @@ export const FileOptions = {message.pyGenericServices = reader.bool();continue;- case 42:- if (tag !== 336) {- break;- }-- message.phpGenericServices = reader.bool();- continue;case 23:if (tag !== 184) {break;@@ -4259,7 +4308,6 @@ export const FileOptions = {ccGenericServices: isSet(object.ccGenericServices) ? globalThis.Boolean(object.ccGenericServices) : false,javaGenericServices: isSet(object.javaGenericServices) ? globalThis.Boolean(object.javaGenericServices) : false,pyGenericServices: isSet(object.pyGenericServices) ? globalThis.Boolean(object.pyGenericServices) : false,- phpGenericServices: isSet(object.phpGenericServices) ? globalThis.Boolean(object.phpGenericServices) : false,deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,ccEnableArenas: isSet(object.ccEnableArenas) ? globalThis.Boolean(object.ccEnableArenas) : false,objcClassPrefix: isSet(object.objcClassPrefix) ? globalThis.String(object.objcClassPrefix) : "",@@ -4308,9 +4356,6 @@ export const FileOptions = {if (message.pyGenericServices === true) {obj.pyGenericServices = message.pyGenericServices;}- if (message.phpGenericServices === true) {- obj.phpGenericServices = message.phpGenericServices;- }if (message.deprecated === true) {obj.deprecated = message.deprecated;}@@ -4362,7 +4407,6 @@ export const FileOptions = {message.ccGenericServices = object.ccGenericServices ?? false;message.javaGenericServices = object.javaGenericServices ?? false;message.pyGenericServices = object.pyGenericServices ?? false;- message.phpGenericServices = object.phpGenericServices ?? false;message.deprecated = object.deprecated ?? false;message.ccEnableArenas = object.ccEnableArenas ?? false;message.objcClassPrefix = object.objcClassPrefix ?? "";@@ -4561,6 +4605,7 @@ function createBaseFieldOptions(): FieldOptions {targets: [],editionDefaults: [],features: undefined,+ featureSupport: undefined,uninterpretedOption: [],};}@@ -4605,6 +4650,9 @@ export const FieldOptions = {if (message.features !== undefined) {FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();}+ if (message.featureSupport !== undefined) {+ FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(178).fork()).ldelim();+ }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -4712,6 +4760,13 @@ export const FieldOptions = {message.features = FeatureSet.decode(reader, reader.uint32());continue;+ case 22:+ if (tag !== 178) {+ break;+ }++ message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());+ continue;case 999:if (tag !== 7994) {break;@@ -4748,6 +4803,9 @@ export const FieldOptions = {? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e)): [],features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,+ featureSupport: isSet(object.featureSupport)+ ? FieldOptions_FeatureSupport.fromJSON(object.featureSupport)+ : undefined,uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -4792,6 +4850,9 @@ export const FieldOptions = {if (message.features !== undefined) {obj.features = FeatureSet.toJSON(message.features);}+ if (message.featureSupport !== undefined) {+ obj.featureSupport = FieldOptions_FeatureSupport.toJSON(message.featureSupport);+ }if (message.uninterpretedOption?.length) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));}@@ -4817,6 +4878,9 @@ export const FieldOptions = {message.features = (object.features !== undefined && object.features !== null)? FeatureSet.fromPartial(object.features): undefined;+ message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)+ ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)+ : undefined;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -4896,6 +4960,119 @@ export const FieldOptions_EditionDefault = {},};+function createBaseFieldOptions_FeatureSupport(): FieldOptions_FeatureSupport {+ return {+ editionIntroduced: Edition.EDITION_UNKNOWN,+ editionDeprecated: Edition.EDITION_UNKNOWN,+ deprecationWarning: "",+ editionRemoved: Edition.EDITION_UNKNOWN,+ };+}++export const FieldOptions_FeatureSupport = {+ encode(message: FieldOptions_FeatureSupport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.editionIntroduced !== Edition.EDITION_UNKNOWN) {+ writer.uint32(8).int32(editionToNumber(message.editionIntroduced));+ }+ if (message.editionDeprecated !== Edition.EDITION_UNKNOWN) {+ writer.uint32(16).int32(editionToNumber(message.editionDeprecated));+ }+ if (message.deprecationWarning !== "") {+ writer.uint32(26).string(message.deprecationWarning);+ }+ if (message.editionRemoved !== Edition.EDITION_UNKNOWN) {+ writer.uint32(32).int32(editionToNumber(message.editionRemoved));+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_FeatureSupport {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseFieldOptions_FeatureSupport();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.editionIntroduced = editionFromJSON(reader.int32());+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.editionDeprecated = editionFromJSON(reader.int32());+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.deprecationWarning = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.editionRemoved = editionFromJSON(reader.int32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): FieldOptions_FeatureSupport {+ return {+ editionIntroduced: isSet(object.editionIntroduced)+ ? editionFromJSON(object.editionIntroduced)+ : Edition.EDITION_UNKNOWN,+ editionDeprecated: isSet(object.editionDeprecated)+ ? editionFromJSON(object.editionDeprecated)+ : Edition.EDITION_UNKNOWN,+ deprecationWarning: isSet(object.deprecationWarning) ? globalThis.String(object.deprecationWarning) : "",+ editionRemoved: isSet(object.editionRemoved) ? editionFromJSON(object.editionRemoved) : Edition.EDITION_UNKNOWN,+ };+ },++ toJSON(message: FieldOptions_FeatureSupport): unknown {+ const obj: any = {};+ if (message.editionIntroduced !== Edition.EDITION_UNKNOWN) {+ obj.editionIntroduced = editionToJSON(message.editionIntroduced);+ }+ if (message.editionDeprecated !== Edition.EDITION_UNKNOWN) {+ obj.editionDeprecated = editionToJSON(message.editionDeprecated);+ }+ if (message.deprecationWarning !== "") {+ obj.deprecationWarning = message.deprecationWarning;+ }+ if (message.editionRemoved !== Edition.EDITION_UNKNOWN) {+ obj.editionRemoved = editionToJSON(message.editionRemoved);+ }+ return obj;+ },++ create(base?: DeepPartial<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {+ return FieldOptions_FeatureSupport.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {+ const message = createBaseFieldOptions_FeatureSupport();+ message.editionIntroduced = object.editionIntroduced ?? Edition.EDITION_UNKNOWN;+ message.editionDeprecated = object.editionDeprecated ?? Edition.EDITION_UNKNOWN;+ message.deprecationWarning = object.deprecationWarning ?? "";+ message.editionRemoved = object.editionRemoved ?? Edition.EDITION_UNKNOWN;+ return message;+ },+};+function createBaseOneofOptions(): OneofOptions {return { features: undefined, uninterpretedOption: [] };}@@ -5904,7 +6081,7 @@ export const FeatureSetDefaults = {};function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {- return { edition: Edition.EDITION_UNKNOWN, features: undefined };+ return { edition: Edition.EDITION_UNKNOWN, overridableFeatures: undefined, fixedFeatures: undefined };}export const FeatureSetDefaults_FeatureSetEditionDefault = {@@ -5912,8 +6089,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {if (message.edition !== Edition.EDITION_UNKNOWN) {writer.uint32(24).int32(editionToNumber(message.edition));}- if (message.features !== undefined) {- FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();+ if (message.overridableFeatures !== undefined) {+ FeatureSet.encode(message.overridableFeatures, writer.uint32(34).fork()).ldelim();+ }+ if (message.fixedFeatures !== undefined) {+ FeatureSet.encode(message.fixedFeatures, writer.uint32(42).fork()).ldelim();}return writer;},@@ -5932,12 +6112,19 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {message.edition = editionFromJSON(reader.int32());continue;- case 2:- if (tag !== 18) {+ case 4:+ if (tag !== 34) {break;}- message.features = FeatureSet.decode(reader, reader.uint32());+ message.overridableFeatures = FeatureSet.decode(reader, reader.uint32());+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.fixedFeatures = FeatureSet.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -5951,7 +6138,10 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {return {edition: isSet(object.edition) ? editionFromJSON(object.edition) : Edition.EDITION_UNKNOWN,- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,+ overridableFeatures: isSet(object.overridableFeatures)+ ? FeatureSet.fromJSON(object.overridableFeatures)+ : undefined,+ fixedFeatures: isSet(object.fixedFeatures) ? FeatureSet.fromJSON(object.fixedFeatures) : undefined,};},@@ -5960,8 +6150,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {if (message.edition !== Edition.EDITION_UNKNOWN) {obj.edition = editionToJSON(message.edition);}- if (message.features !== undefined) {- obj.features = FeatureSet.toJSON(message.features);+ if (message.overridableFeatures !== undefined) {+ obj.overridableFeatures = FeatureSet.toJSON(message.overridableFeatures);+ }+ if (message.fixedFeatures !== undefined) {+ obj.fixedFeatures = FeatureSet.toJSON(message.fixedFeatures);}return obj;},@@ -5974,8 +6167,11 @@ export const FeatureSetDefaults_FeatureSetEditionDefault = {): FeatureSetDefaults_FeatureSetEditionDefault {const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();message.edition = object.edition ?? Edition.EDITION_UNKNOWN;- message.features = (object.features !== undefined && object.features !== null)- ? FeatureSet.fromPartial(object.features)+ message.overridableFeatures = (object.overridableFeatures !== undefined && object.overridableFeatures !== null)+ ? FeatureSet.fromPartial(object.overridableFeatures)+ : undefined;+ message.fixedFeatures = (object.fixedFeatures !== undefined && object.fixedFeatures !== null)+ ? FeatureSet.fromPartial(object.fixedFeatures): undefined;return message;},diff --git a/frontend/src/types/proto/v1/plan_service.ts b/frontend/src/types/proto/v1/plan_service.tsnew file mode 100644index 0000000000..469643697e--- /dev/null+++ b/frontend/src/types/proto/v1/plan_service.ts@@ -0,0 +1,3551 @@+/* eslint-disable */+import Long from "long";+import _m0 from "protobufjs/minimal";+import { FieldMask } from "../google/protobuf/field_mask";+import { Timestamp } from "../google/protobuf/timestamp";+import {+ ExportFormat,+ exportFormatFromJSON,+ exportFormatToJSON,+ exportFormatToNumber,+ VCSType,+ vCSTypeFromJSON,+ vCSTypeToJSON,+ vCSTypeToNumber,+} from "./common";+import { ChangedResources } from "./database_service";++export const protobufPackage = "bytebase.v1";++export interface GetPlanRequest {+ /**+ * The name of the plan to retrieve.+ * Format: projects/{project}/plans/{plan}+ */+ name: string;+}++export interface ListPlansRequest {+ /**+ * The parent, which owns this collection of plans.+ * Format: projects/{project}+ * Use "projects/-" to list all plans from all projects.+ */+ parent: string;+ /**+ * The maximum number of plans to return. The service may return fewer than+ * this value.+ * If unspecified, at most 50 plans will be returned.+ * The maximum value is 1000; values above 1000 will be coerced to 1000.+ */+ pageSize: number;+ /**+ * A page token, received from a previous `ListPlans` call.+ * Provide this to retrieve the subsequent page.+ *+ * When paginating, all other parameters provided to `ListPlans` must match+ * the call that provided the page token.+ */+ pageToken: string;+}++export interface ListPlansResponse {+ /** The plans from the specified request. */+ plans: Plan[];+ /**+ * A token, which can be sent as `page_token` to retrieve the next page.+ * If this field is omitted, there are no subsequent pages.+ */+ nextPageToken: string;+}++export interface CreatePlanRequest {+ /**+ * The parent project where this plan will be created.+ * Format: projects/{project}+ */+ parent: string;+ /** The plan to create. */+ plan: Plan | undefined;+}++export interface UpdatePlanRequest {+ /**+ * The plan to update.+ *+ * The plan's `name` field is used to identify the plan to update.+ * Format: projects/{project}/plans/{plan}+ */+ plan:+ | Plan+ | undefined;+ /** The list of fields to update. */+ updateMask: string[] | undefined;+}++export interface Plan {+ /**+ * The name of the plan.+ * `plan` is a system generated ID.+ * Format: projects/{project}/plans/{plan}+ */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ /**+ * The resource name of the issue associated with this plan.+ * Format: projects/{project}/issues/{issue}+ */+ issue: string;+ title: string;+ description: string;+ steps: Plan_Step[];+ vcsSource:+ | Plan_VCSSource+ | undefined;+ /** Format: users/[email protected] */+ creator: string;+ createTime: Date | undefined;+}++export interface Plan_Step {+ /** TODO: implement */+ title: string;+ specs: Plan_Spec[];+}++export interface Plan_Spec {+ /** earliest_allowed_time the earliest execution time of the change. */+ earliestAllowedTime:+ | Date+ | undefined;+ /** A UUID4 string that uniquely identifies the Spec. */+ id: string;+ /**+ * IDs of the specs that this spec depends on.+ * Must be a subset of the specs in the same step.+ */+ dependsOnSpecs: string[];+ createDatabaseConfig?: Plan_CreateDatabaseConfig | undefined;+ changeDatabaseConfig?: Plan_ChangeDatabaseConfig | undefined;+ exportDataConfig?: Plan_ExportDataConfig | undefined;+}++export interface Plan_CreateDatabaseConfig {+ /**+ * The resource name of the instance on which the database is created.+ * Format: instances/{instance}+ */+ target: string;+ /** The name of the database to create. */+ database: string;+ /**+ * table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+ * For example, in MongoDB, it only creates the database when we first store data in that database.+ */+ table: string;+ /** character_set is the character set of the database. */+ characterSet: string;+ /** collation is the collation of the database. */+ collation: string;+ /** cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". */+ cluster: string;+ /** owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". */+ owner: string;+ /**+ * The environment resource.+ * Format: environments/prod where prod is the environment resource ID.+ */+ environment: string;+ /** labels of the database. */+ labels: { [key: string]: string };+}++export interface Plan_CreateDatabaseConfig_LabelsEntry {+ key: string;+ value: string;+}++export interface Plan_ChangeDatabaseConfig {+ /**+ * The resource name of the target.+ * Format: instances/{instance-id}/databases/{database-name}.+ * Format: projects/{project}/databaseGroups/{databaseGroup}.+ * Format: projects/{project}/deploymentConfigs/default. The plan should+ * have a single step and single spec for the deployment configuration type.+ */+ target: string;+ /**+ * The resource name of the sheet.+ * Format: projects/{project}/sheets/{sheet}+ */+ sheet: string;+ type: Plan_ChangeDatabaseConfig_Type;+ /**+ * schema_version is parsed from VCS file name.+ * It is automatically generated in the UI workflow.+ */+ schemaVersion: string;+ /** If RollbackEnabled, build the RollbackSheetID of the task after the task is completed. */+ rollbackEnabled: boolean;+ rollbackDetail?: Plan_ChangeDatabaseConfig_RollbackDetail | undefined;+ ghostFlags: { [key: string]: string };+ /** If set, a backup of the modified data will be created automatically before any changes are applied. */+ preUpdateBackupDetail?: Plan_ChangeDatabaseConfig_PreUpdateBackupDetail | undefined;+}++/** Type is the database change type. */+export enum Plan_ChangeDatabaseConfig_Type {+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",+ /**+ * BASELINE - Used for establishing schema baseline, this is used when+ * 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.+ * 2. Had schema drift and need to re-establish the baseline.+ */+ BASELINE = "BASELINE",+ /** MIGRATE - Used for DDL changes including CREATE DATABASE. */+ MIGRATE = "MIGRATE",+ /** MIGRATE_SDL - Used for schema changes via state-based schema migration including CREATE DATABASE. */+ MIGRATE_SDL = "MIGRATE_SDL",+ /** MIGRATE_GHOST - Used for DDL changes using gh-ost. */+ MIGRATE_GHOST = "MIGRATE_GHOST",+ /** DATA - Used for DML change. */+ DATA = "DATA",+ UNRECOGNIZED = "UNRECOGNIZED",+}++export function plan_ChangeDatabaseConfig_TypeFromJSON(object: any): Plan_ChangeDatabaseConfig_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED;+ case 1:+ case "BASELINE":+ return Plan_ChangeDatabaseConfig_Type.BASELINE;+ case 2:+ case "MIGRATE":+ return Plan_ChangeDatabaseConfig_Type.MIGRATE;+ case 3:+ case "MIGRATE_SDL":+ return Plan_ChangeDatabaseConfig_Type.MIGRATE_SDL;+ case 4:+ case "MIGRATE_GHOST":+ return Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST;+ case 6:+ case "DATA":+ return Plan_ChangeDatabaseConfig_Type.DATA;+ case -1:+ case "UNRECOGNIZED":+ default:+ return Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED;+ }+}++export function plan_ChangeDatabaseConfig_TypeToJSON(object: Plan_ChangeDatabaseConfig_Type): string {+ switch (object) {+ case Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case Plan_ChangeDatabaseConfig_Type.BASELINE:+ return "BASELINE";+ case Plan_ChangeDatabaseConfig_Type.MIGRATE:+ return "MIGRATE";+ case Plan_ChangeDatabaseConfig_Type.MIGRATE_SDL:+ return "MIGRATE_SDL";+ case Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST:+ return "MIGRATE_GHOST";+ case Plan_ChangeDatabaseConfig_Type.DATA:+ return "DATA";+ case Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export function plan_ChangeDatabaseConfig_TypeToNumber(object: Plan_ChangeDatabaseConfig_Type): number {+ switch (object) {+ case Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED:+ return 0;+ case Plan_ChangeDatabaseConfig_Type.BASELINE:+ return 1;+ case Plan_ChangeDatabaseConfig_Type.MIGRATE:+ return 2;+ case Plan_ChangeDatabaseConfig_Type.MIGRATE_SDL:+ return 3;+ case Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST:+ return 4;+ case Plan_ChangeDatabaseConfig_Type.DATA:+ return 6;+ case Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED:+ default:+ return -1;+ }+}++export interface Plan_ChangeDatabaseConfig_RollbackDetail {+ /**+ * rollback_from_task is the task from which the rollback SQL statement is generated for this task.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ */+ rollbackFromTask: string;+ /**+ * rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.+ * Format: projects/{project}/issues/{issue}+ */+ rollbackFromIssue: string;+}++export interface Plan_ChangeDatabaseConfig_GhostFlagsEntry {+ key: string;+ value: string;+}++export interface Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {+ /**+ * The database for keeping the backup data.+ * Format: instances/{instance}/databases/{database}+ */+ database: string;+}++export interface Plan_ExportDataConfig {+ /**+ * The resource name of the target.+ * Format: instances/{instance-id}/databases/{database-name}+ */+ target: string;+ /**+ * The resource name of the sheet.+ * Format: projects/{project}/sheets/{sheet}+ */+ sheet: string;+ /** The format of the exported file. */+ format: ExportFormat;+ /**+ * The zip password provide by users.+ * Leave it empty if no needs to encrypt the zip file.+ */+ password?: string | undefined;+}++export interface Plan_VCSSource {+ vcsType: VCSType;+ /**+ * Optional.+ * If present, we will update the pull request for rollout status.+ * Format: projects/{project-ID}/vcsConnectors/{vcs-connector}+ */+ vcsConnector: string;+ pullRequestUrl: string;+}++export interface ListPlanCheckRunsRequest {+ /**+ * The parent, which owns this collection of plan check runs.+ * Format: projects/{project}/plans/{plan}+ */+ parent: string;+ /**+ * The maximum number of plan check runs to return. The service may return fewer than+ * this value.+ * If unspecified, at most 50 plans will be returned.+ * The maximum value is 1000; values above 1000 will be coerced to 1000.+ */+ pageSize: number;+ /**+ * A page token, received from a previous `ListPlanCheckRuns` call.+ * Provide this to retrieve the subsequent page.+ *+ * When paginating, all other parameters provided to `ListPlanCheckRuns` must match+ * the call that provided the page token.+ */+ pageToken: string;+}++export interface ListPlanCheckRunsResponse {+ /** The plan check runs from the specified request. */+ planCheckRuns: PlanCheckRun[];+ /**+ * A token, which can be sent as `page_token` to retrieve the next page.+ * If this field is omitted, there are no subsequent pages.+ */+ nextPageToken: string;+}++export interface RunPlanChecksRequest {+ /**+ * The plan to run plan checks.+ * Format: projects/{project}/plans/{plan}+ */+ name: string;+}++export interface RunPlanChecksResponse {+}++export interface PlanCheckRun {+ /** Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ type: PlanCheckRun_Type;+ status: PlanCheckRun_Status;+ /** Format: instances/{instance}/databases/{database} */+ target: string;+ /** Format: project/{project}/sheets/{sheet} */+ sheet: string;+ results: PlanCheckRun_Result[];+ /** error is set if the Status is FAILED. */+ error: string;+ createTime: Date | undefined;+}++export enum PlanCheckRun_Type {+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",+ DATABASE_STATEMENT_FAKE_ADVISE = "DATABASE_STATEMENT_FAKE_ADVISE",+ DATABASE_STATEMENT_COMPATIBILITY = "DATABASE_STATEMENT_COMPATIBILITY",+ DATABASE_STATEMENT_ADVISE = "DATABASE_STATEMENT_ADVISE",+ DATABASE_STATEMENT_TYPE = "DATABASE_STATEMENT_TYPE",+ DATABASE_STATEMENT_SUMMARY_REPORT = "DATABASE_STATEMENT_SUMMARY_REPORT",+ DATABASE_CONNECT = "DATABASE_CONNECT",+ DATABASE_GHOST_SYNC = "DATABASE_GHOST_SYNC",+ UNRECOGNIZED = "UNRECOGNIZED",+}++export function planCheckRun_TypeFromJSON(object: any): PlanCheckRun_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return PlanCheckRun_Type.TYPE_UNSPECIFIED;+ case 1:+ case "DATABASE_STATEMENT_FAKE_ADVISE":+ return PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE;+ case 2:+ case "DATABASE_STATEMENT_COMPATIBILITY":+ return PlanCheckRun_Type.DATABASE_STATEMENT_COMPATIBILITY;+ case 3:+ case "DATABASE_STATEMENT_ADVISE":+ return PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE;+ case 4:+ case "DATABASE_STATEMENT_TYPE":+ return PlanCheckRun_Type.DATABASE_STATEMENT_TYPE;+ case 5:+ case "DATABASE_STATEMENT_SUMMARY_REPORT":+ return PlanCheckRun_Type.DATABASE_STATEMENT_SUMMARY_REPORT;+ case 6:+ case "DATABASE_CONNECT":+ return PlanCheckRun_Type.DATABASE_CONNECT;+ case 7:+ case "DATABASE_GHOST_SYNC":+ return PlanCheckRun_Type.DATABASE_GHOST_SYNC;+ case -1:+ case "UNRECOGNIZED":+ default:+ return PlanCheckRun_Type.UNRECOGNIZED;+ }+}++export function planCheckRun_TypeToJSON(object: PlanCheckRun_Type): string {+ switch (object) {+ case PlanCheckRun_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE:+ return "DATABASE_STATEMENT_FAKE_ADVISE";+ case PlanCheckRun_Type.DATABASE_STATEMENT_COMPATIBILITY:+ return "DATABASE_STATEMENT_COMPATIBILITY";+ case PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE:+ return "DATABASE_STATEMENT_ADVISE";+ case PlanCheckRun_Type.DATABASE_STATEMENT_TYPE:+ return "DATABASE_STATEMENT_TYPE";+ case PlanCheckRun_Type.DATABASE_STATEMENT_SUMMARY_REPORT:+ return "DATABASE_STATEMENT_SUMMARY_REPORT";+ case PlanCheckRun_Type.DATABASE_CONNECT:+ return "DATABASE_CONNECT";+ case PlanCheckRun_Type.DATABASE_GHOST_SYNC:+ return "DATABASE_GHOST_SYNC";+ case PlanCheckRun_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export function planCheckRun_TypeToNumber(object: PlanCheckRun_Type): number {+ switch (object) {+ case PlanCheckRun_Type.TYPE_UNSPECIFIED:+ return 0;+ case PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE:+ return 1;+ case PlanCheckRun_Type.DATABASE_STATEMENT_COMPATIBILITY:+ return 2;+ case PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE:+ return 3;+ case PlanCheckRun_Type.DATABASE_STATEMENT_TYPE:+ return 4;+ case PlanCheckRun_Type.DATABASE_STATEMENT_SUMMARY_REPORT:+ return 5;+ case PlanCheckRun_Type.DATABASE_CONNECT:+ return 6;+ case PlanCheckRun_Type.DATABASE_GHOST_SYNC:+ return 7;+ case PlanCheckRun_Type.UNRECOGNIZED:+ default:+ return -1;+ }+}++export enum PlanCheckRun_Status {+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",+ RUNNING = "RUNNING",+ DONE = "DONE",+ FAILED = "FAILED",+ CANCELED = "CANCELED",+ UNRECOGNIZED = "UNRECOGNIZED",+}++export function planCheckRun_StatusFromJSON(object: any): PlanCheckRun_Status {+ switch (object) {+ case 0:+ case "STATUS_UNSPECIFIED":+ return PlanCheckRun_Status.STATUS_UNSPECIFIED;+ case 1:+ case "RUNNING":+ return PlanCheckRun_Status.RUNNING;+ case 2:+ case "DONE":+ return PlanCheckRun_Status.DONE;+ case 3:+ case "FAILED":+ return PlanCheckRun_Status.FAILED;+ case 4:+ case "CANCELED":+ return PlanCheckRun_Status.CANCELED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return PlanCheckRun_Status.UNRECOGNIZED;+ }+}++export function planCheckRun_StatusToJSON(object: PlanCheckRun_Status): string {+ switch (object) {+ case PlanCheckRun_Status.STATUS_UNSPECIFIED:+ return "STATUS_UNSPECIFIED";+ case PlanCheckRun_Status.RUNNING:+ return "RUNNING";+ case PlanCheckRun_Status.DONE:+ return "DONE";+ case PlanCheckRun_Status.FAILED:+ return "FAILED";+ case PlanCheckRun_Status.CANCELED:+ return "CANCELED";+ case PlanCheckRun_Status.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export function planCheckRun_StatusToNumber(object: PlanCheckRun_Status): number {+ switch (object) {+ case PlanCheckRun_Status.STATUS_UNSPECIFIED:+ return 0;+ case PlanCheckRun_Status.RUNNING:+ return 1;+ case PlanCheckRun_Status.DONE:+ return 2;+ case PlanCheckRun_Status.FAILED:+ return 3;+ case PlanCheckRun_Status.CANCELED:+ return 4;+ case PlanCheckRun_Status.UNRECOGNIZED:+ default:+ return -1;+ }+}++export interface PlanCheckRun_Result {+ status: PlanCheckRun_Result_Status;+ title: string;+ content: string;+ code: number;+ sqlSummaryReport?: PlanCheckRun_Result_SqlSummaryReport | undefined;+ sqlReviewReport?: PlanCheckRun_Result_SqlReviewReport | undefined;+}++export enum PlanCheckRun_Result_Status {+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",+ ERROR = "ERROR",+ WARNING = "WARNING",+ SUCCESS = "SUCCESS",+ UNRECOGNIZED = "UNRECOGNIZED",+}++export function planCheckRun_Result_StatusFromJSON(object: any): PlanCheckRun_Result_Status {+ switch (object) {+ case 0:+ case "STATUS_UNSPECIFIED":+ return PlanCheckRun_Result_Status.STATUS_UNSPECIFIED;+ case 1:+ case "ERROR":+ return PlanCheckRun_Result_Status.ERROR;+ case 2:+ case "WARNING":+ return PlanCheckRun_Result_Status.WARNING;+ case 3:+ case "SUCCESS":+ return PlanCheckRun_Result_Status.SUCCESS;+ case -1:+ case "UNRECOGNIZED":+ default:+ return PlanCheckRun_Result_Status.UNRECOGNIZED;+ }+}++export function planCheckRun_Result_StatusToJSON(object: PlanCheckRun_Result_Status): string {+ switch (object) {+ case PlanCheckRun_Result_Status.STATUS_UNSPECIFIED:+ return "STATUS_UNSPECIFIED";+ case PlanCheckRun_Result_Status.ERROR:+ return "ERROR";+ case PlanCheckRun_Result_Status.WARNING:+ return "WARNING";+ case PlanCheckRun_Result_Status.SUCCESS:+ return "SUCCESS";+ case PlanCheckRun_Result_Status.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export function planCheckRun_Result_StatusToNumber(object: PlanCheckRun_Result_Status): number {+ switch (object) {+ case PlanCheckRun_Result_Status.STATUS_UNSPECIFIED:+ return 0;+ case PlanCheckRun_Result_Status.ERROR:+ return 1;+ case PlanCheckRun_Result_Status.WARNING:+ return 2;+ case PlanCheckRun_Result_Status.SUCCESS:+ return 3;+ case PlanCheckRun_Result_Status.UNRECOGNIZED:+ default:+ return -1;+ }+}++export interface PlanCheckRun_Result_SqlSummaryReport {+ code: number;+ /** statement_types are the types of statements that are found in the sql. */+ statementTypes: string[];+ affectedRows: number;+ changedResources: ChangedResources | undefined;+}++export interface PlanCheckRun_Result_SqlReviewReport {+ line: number;+ column: number;+ detail: string;+ /** Code from sql review. */+ code: number;+}++function createBaseGetPlanRequest(): GetPlanRequest {+ return { name: "" };+}++export const GetPlanRequest = {+ encode(message: GetPlanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): GetPlanRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseGetPlanRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): GetPlanRequest {+ return { name: isSet(object.name) ? globalThis.String(object.name) : "" };+ },++ toJSON(message: GetPlanRequest): unknown {+ const obj: any = {};+ if (message.name !== "") {+ obj.name = message.name;+ }+ return obj;+ },++ create(base?: DeepPartial<GetPlanRequest>): GetPlanRequest {+ return GetPlanRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<GetPlanRequest>): GetPlanRequest {+ const message = createBaseGetPlanRequest();+ message.name = object.name ?? "";+ return message;+ },+};++function createBaseListPlansRequest(): ListPlansRequest {+ return { parent: "", pageSize: 0, pageToken: "" };+}++export const ListPlansRequest = {+ encode(message: ListPlansRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);+ }+ if (message.pageSize !== 0) {+ writer.uint32(16).int32(message.pageSize);+ }+ if (message.pageToken !== "") {+ writer.uint32(26).string(message.pageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListPlansRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListPlansRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.parent = reader.string();+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.pageSize = reader.int32();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.pageToken = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ListPlansRequest {+ return {+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,+ pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",+ };+ },++ toJSON(message: ListPlansRequest): unknown {+ const obj: any = {};+ if (message.parent !== "") {+ obj.parent = message.parent;+ }+ if (message.pageSize !== 0) {+ obj.pageSize = Math.round(message.pageSize);+ }+ if (message.pageToken !== "") {+ obj.pageToken = message.pageToken;+ }+ return obj;+ },++ create(base?: DeepPartial<ListPlansRequest>): ListPlansRequest {+ return ListPlansRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ListPlansRequest>): ListPlansRequest {+ const message = createBaseListPlansRequest();+ message.parent = object.parent ?? "";+ message.pageSize = object.pageSize ?? 0;+ message.pageToken = object.pageToken ?? "";+ return message;+ },+};++function createBaseListPlansResponse(): ListPlansResponse {+ return { plans: [], nextPageToken: "" };+}++export const ListPlansResponse = {+ encode(message: ListPlansResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.plans) {+ Plan.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ if (message.nextPageToken !== "") {+ writer.uint32(18).string(message.nextPageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListPlansResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListPlansResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.plans.push(Plan.decode(reader, reader.uint32()));+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.nextPageToken = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ListPlansResponse {+ return {+ plans: globalThis.Array.isArray(object?.plans) ? object.plans.map((e: any) => Plan.fromJSON(e)) : [],+ nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",+ };+ },++ toJSON(message: ListPlansResponse): unknown {+ const obj: any = {};+ if (message.plans?.length) {+ obj.plans = message.plans.map((e) => Plan.toJSON(e));+ }+ if (message.nextPageToken !== "") {+ obj.nextPageToken = message.nextPageToken;+ }+ return obj;+ },++ create(base?: DeepPartial<ListPlansResponse>): ListPlansResponse {+ return ListPlansResponse.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ListPlansResponse>): ListPlansResponse {+ const message = createBaseListPlansResponse();+ message.plans = object.plans?.map((e) => Plan.fromPartial(e)) || [];+ message.nextPageToken = object.nextPageToken ?? "";+ return message;+ },+};++function createBaseCreatePlanRequest(): CreatePlanRequest {+ return { parent: "", plan: undefined };+}++export const CreatePlanRequest = {+ encode(message: CreatePlanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);+ }+ if (message.plan !== undefined) {+ Plan.encode(message.plan, writer.uint32(18).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): CreatePlanRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseCreatePlanRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.parent = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.plan = Plan.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): CreatePlanRequest {+ return {+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,+ };+ },++ toJSON(message: CreatePlanRequest): unknown {+ const obj: any = {};+ if (message.parent !== "") {+ obj.parent = message.parent;+ }+ if (message.plan !== undefined) {+ obj.plan = Plan.toJSON(message.plan);+ }+ return obj;+ },++ create(base?: DeepPartial<CreatePlanRequest>): CreatePlanRequest {+ return CreatePlanRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<CreatePlanRequest>): CreatePlanRequest {+ const message = createBaseCreatePlanRequest();+ message.parent = object.parent ?? "";+ message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;+ return message;+ },+};++function createBaseUpdatePlanRequest(): UpdatePlanRequest {+ return { plan: undefined, updateMask: undefined };+}++export const UpdatePlanRequest = {+ encode(message: UpdatePlanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.plan !== undefined) {+ Plan.encode(message.plan, writer.uint32(10).fork()).ldelim();+ }+ if (message.updateMask !== undefined) {+ FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePlanRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseUpdatePlanRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.plan = Plan.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): UpdatePlanRequest {+ return {+ plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,+ updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,+ };+ },++ toJSON(message: UpdatePlanRequest): unknown {+ const obj: any = {};+ if (message.plan !== undefined) {+ obj.plan = Plan.toJSON(message.plan);+ }+ if (message.updateMask !== undefined) {+ obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask));+ }+ return obj;+ },++ create(base?: DeepPartial<UpdatePlanRequest>): UpdatePlanRequest {+ return UpdatePlanRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<UpdatePlanRequest>): UpdatePlanRequest {+ const message = createBaseUpdatePlanRequest();+ message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;+ message.updateMask = object.updateMask ?? undefined;+ return message;+ },+};++function createBasePlan(): Plan {+ return {+ name: "",+ uid: "",+ issue: "",+ title: "",+ description: "",+ steps: [],+ vcsSource: undefined,+ creator: "",+ createTime: undefined,+ };+}++export const Plan = {+ encode(message: Plan, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.issue !== "") {+ writer.uint32(26).string(message.issue);+ }+ if (message.title !== "") {+ writer.uint32(34).string(message.title);+ }+ if (message.description !== "") {+ writer.uint32(42).string(message.description);+ }+ for (const v of message.steps) {+ Plan_Step.encode(v!, writer.uint32(50).fork()).ldelim();+ }+ if (message.vcsSource !== undefined) {+ Plan_VCSSource.encode(message.vcsSource, writer.uint32(58).fork()).ldelim();+ }+ if (message.creator !== "") {+ writer.uint32(66).string(message.creator);+ }+ if (message.createTime !== undefined) {+ Timestamp.encode(toTimestamp(message.createTime), writer.uint32(74).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.uid = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.issue = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.title = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.description = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.steps.push(Plan_Step.decode(reader, reader.uint32()));+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.vcsSource = Plan_VCSSource.decode(reader, reader.uint32());+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.creator = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan {+ return {+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ uid: isSet(object.uid) ? globalThis.String(object.uid) : "",+ issue: isSet(object.issue) ? globalThis.String(object.issue) : "",+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ description: isSet(object.description) ? globalThis.String(object.description) : "",+ steps: globalThis.Array.isArray(object?.steps) ? object.steps.map((e: any) => Plan_Step.fromJSON(e)) : [],+ vcsSource: isSet(object.vcsSource) ? Plan_VCSSource.fromJSON(object.vcsSource) : undefined,+ creator: isSet(object.creator) ? globalThis.String(object.creator) : "",+ createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,+ };+ },++ toJSON(message: Plan): unknown {+ const obj: any = {};+ if (message.name !== "") {+ obj.name = message.name;+ }+ if (message.uid !== "") {+ obj.uid = message.uid;+ }+ if (message.issue !== "") {+ obj.issue = message.issue;+ }+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.description !== "") {+ obj.description = message.description;+ }+ if (message.steps?.length) {+ obj.steps = message.steps.map((e) => Plan_Step.toJSON(e));+ }+ if (message.vcsSource !== undefined) {+ obj.vcsSource = Plan_VCSSource.toJSON(message.vcsSource);+ }+ if (message.creator !== "") {+ obj.creator = message.creator;+ }+ if (message.createTime !== undefined) {+ obj.createTime = message.createTime.toISOString();+ }+ return obj;+ },++ create(base?: DeepPartial<Plan>): Plan {+ return Plan.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan>): Plan {+ const message = createBasePlan();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.issue = object.issue ?? "";+ message.title = object.title ?? "";+ message.description = object.description ?? "";+ message.steps = object.steps?.map((e) => Plan_Step.fromPartial(e)) || [];+ message.vcsSource = (object.vcsSource !== undefined && object.vcsSource !== null)+ ? Plan_VCSSource.fromPartial(object.vcsSource)+ : undefined;+ message.creator = object.creator ?? "";+ message.createTime = object.createTime ?? undefined;+ return message;+ },+};++function createBasePlan_Step(): Plan_Step {+ return { title: "", specs: [] };+}++export const Plan_Step = {+ encode(message: Plan_Step, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ for (const v of message.specs) {+ Plan_Spec.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_Step {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_Step();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 1:+ if (tag !== 10) {+ break;+ }++ message.specs.push(Plan_Spec.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_Step {+ return {+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ specs: globalThis.Array.isArray(object?.specs) ? object.specs.map((e: any) => Plan_Spec.fromJSON(e)) : [],+ };+ },++ toJSON(message: Plan_Step): unknown {+ const obj: any = {};+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.specs?.length) {+ obj.specs = message.specs.map((e) => Plan_Spec.toJSON(e));+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_Step>): Plan_Step {+ return Plan_Step.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan_Step>): Plan_Step {+ const message = createBasePlan_Step();+ message.title = object.title ?? "";+ message.specs = object.specs?.map((e) => Plan_Spec.fromPartial(e)) || [];+ return message;+ },+};++function createBasePlan_Spec(): Plan_Spec {+ return {+ earliestAllowedTime: undefined,+ id: "",+ dependsOnSpecs: [],+ createDatabaseConfig: undefined,+ changeDatabaseConfig: undefined,+ exportDataConfig: undefined,+ };+}++export const Plan_Spec = {+ encode(message: Plan_Spec, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.earliestAllowedTime !== undefined) {+ Timestamp.encode(toTimestamp(message.earliestAllowedTime), writer.uint32(34).fork()).ldelim();+ }+ if (message.id !== "") {+ writer.uint32(42).string(message.id);+ }+ for (const v of message.dependsOnSpecs) {+ writer.uint32(50).string(v!);+ }+ if (message.createDatabaseConfig !== undefined) {+ Plan_CreateDatabaseConfig.encode(message.createDatabaseConfig, writer.uint32(10).fork()).ldelim();+ }+ if (message.changeDatabaseConfig !== undefined) {+ Plan_ChangeDatabaseConfig.encode(message.changeDatabaseConfig, writer.uint32(18).fork()).ldelim();+ }+ if (message.exportDataConfig !== undefined) {+ Plan_ExportDataConfig.encode(message.exportDataConfig, writer.uint32(58).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_Spec {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_Spec();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 4:+ if (tag !== 34) {+ break;+ }++ message.earliestAllowedTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.id = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.dependsOnSpecs.push(reader.string());+ continue;+ case 1:+ if (tag !== 10) {+ break;+ }++ message.createDatabaseConfig = Plan_CreateDatabaseConfig.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.changeDatabaseConfig = Plan_ChangeDatabaseConfig.decode(reader, reader.uint32());+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.exportDataConfig = Plan_ExportDataConfig.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_Spec {+ return {+ earliestAllowedTime: isSet(object.earliestAllowedTime)+ ? fromJsonTimestamp(object.earliestAllowedTime)+ : undefined,+ id: isSet(object.id) ? globalThis.String(object.id) : "",+ dependsOnSpecs: globalThis.Array.isArray(object?.dependsOnSpecs)+ ? object.dependsOnSpecs.map((e: any) => globalThis.String(e))+ : [],+ createDatabaseConfig: isSet(object.createDatabaseConfig)+ ? Plan_CreateDatabaseConfig.fromJSON(object.createDatabaseConfig)+ : undefined,+ changeDatabaseConfig: isSet(object.changeDatabaseConfig)+ ? Plan_ChangeDatabaseConfig.fromJSON(object.changeDatabaseConfig)+ : undefined,+ exportDataConfig: isSet(object.exportDataConfig)+ ? Plan_ExportDataConfig.fromJSON(object.exportDataConfig)+ : undefined,+ };+ },++ toJSON(message: Plan_Spec): unknown {+ const obj: any = {};+ if (message.earliestAllowedTime !== undefined) {+ obj.earliestAllowedTime = message.earliestAllowedTime.toISOString();+ }+ if (message.id !== "") {+ obj.id = message.id;+ }+ if (message.dependsOnSpecs?.length) {+ obj.dependsOnSpecs = message.dependsOnSpecs;+ }+ if (message.createDatabaseConfig !== undefined) {+ obj.createDatabaseConfig = Plan_CreateDatabaseConfig.toJSON(message.createDatabaseConfig);+ }+ if (message.changeDatabaseConfig !== undefined) {+ obj.changeDatabaseConfig = Plan_ChangeDatabaseConfig.toJSON(message.changeDatabaseConfig);+ }+ if (message.exportDataConfig !== undefined) {+ obj.exportDataConfig = Plan_ExportDataConfig.toJSON(message.exportDataConfig);+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_Spec>): Plan_Spec {+ return Plan_Spec.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan_Spec>): Plan_Spec {+ const message = createBasePlan_Spec();+ message.earliestAllowedTime = object.earliestAllowedTime ?? undefined;+ message.id = object.id ?? "";+ message.dependsOnSpecs = object.dependsOnSpecs?.map((e) => e) || [];+ message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)+ ? Plan_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig)+ : undefined;+ message.changeDatabaseConfig = (object.changeDatabaseConfig !== undefined && object.changeDatabaseConfig !== null)+ ? Plan_ChangeDatabaseConfig.fromPartial(object.changeDatabaseConfig)+ : undefined;+ message.exportDataConfig = (object.exportDataConfig !== undefined && object.exportDataConfig !== null)+ ? Plan_ExportDataConfig.fromPartial(object.exportDataConfig)+ : undefined;+ return message;+ },+};++function createBasePlan_CreateDatabaseConfig(): Plan_CreateDatabaseConfig {+ return {+ target: "",+ database: "",+ table: "",+ characterSet: "",+ collation: "",+ cluster: "",+ owner: "",+ environment: "",+ labels: {},+ };+}++export const Plan_CreateDatabaseConfig = {+ encode(message: Plan_CreateDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.target !== "") {+ writer.uint32(10).string(message.target);+ }+ if (message.database !== "") {+ writer.uint32(18).string(message.database);+ }+ if (message.table !== "") {+ writer.uint32(26).string(message.table);+ }+ if (message.characterSet !== "") {+ writer.uint32(34).string(message.characterSet);+ }+ if (message.collation !== "") {+ writer.uint32(42).string(message.collation);+ }+ if (message.cluster !== "") {+ writer.uint32(50).string(message.cluster);+ }+ if (message.owner !== "") {+ writer.uint32(58).string(message.owner);+ }+ if (message.environment !== "") {+ writer.uint32(74).string(message.environment);+ }+ Object.entries(message.labels).forEach(([key, value]) => {+ Plan_CreateDatabaseConfig_LabelsEntry.encode({ key: key as any, value }, writer.uint32(82).fork()).ldelim();+ });+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_CreateDatabaseConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_CreateDatabaseConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.target = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.database = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.table = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.characterSet = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.collation = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.cluster = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.owner = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.environment = reader.string();+ continue;+ case 10:+ if (tag !== 82) {+ break;+ }++ const entry10 = Plan_CreateDatabaseConfig_LabelsEntry.decode(reader, reader.uint32());+ if (entry10.value !== undefined) {+ message.labels[entry10.key] = entry10.value;+ }+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_CreateDatabaseConfig {+ return {+ target: isSet(object.target) ? globalThis.String(object.target) : "",+ database: isSet(object.database) ? globalThis.String(object.database) : "",+ table: isSet(object.table) ? globalThis.String(object.table) : "",+ characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",+ cluster: isSet(object.cluster) ? globalThis.String(object.cluster) : "",+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",+ environment: isSet(object.environment) ? globalThis.String(object.environment) : "",+ labels: isObject(object.labels)+ ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ };+ },++ toJSON(message: Plan_CreateDatabaseConfig): unknown {+ const obj: any = {};+ if (message.target !== "") {+ obj.target = message.target;+ }+ if (message.database !== "") {+ obj.database = message.database;+ }+ if (message.table !== "") {+ obj.table = message.table;+ }+ if (message.characterSet !== "") {+ obj.characterSet = message.characterSet;+ }+ if (message.collation !== "") {+ obj.collation = message.collation;+ }+ if (message.cluster !== "") {+ obj.cluster = message.cluster;+ }+ if (message.owner !== "") {+ obj.owner = message.owner;+ }+ if (message.environment !== "") {+ obj.environment = message.environment;+ }+ if (message.labels) {+ const entries = Object.entries(message.labels);+ if (entries.length > 0) {+ obj.labels = {};+ entries.forEach(([k, v]) => {+ obj.labels[k] = v;+ });+ }+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_CreateDatabaseConfig>): Plan_CreateDatabaseConfig {+ return Plan_CreateDatabaseConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan_CreateDatabaseConfig>): Plan_CreateDatabaseConfig {+ const message = createBasePlan_CreateDatabaseConfig();+ message.target = object.target ?? "";+ message.database = object.database ?? "";+ message.table = object.table ?? "";+ message.characterSet = object.characterSet ?? "";+ message.collation = object.collation ?? "";+ message.cluster = object.cluster ?? "";+ message.owner = object.owner ?? "";+ message.environment = object.environment ?? "";+ message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = globalThis.String(value);+ }+ return acc;+ }, {});+ return message;+ },+};++function createBasePlan_CreateDatabaseConfig_LabelsEntry(): Plan_CreateDatabaseConfig_LabelsEntry {+ return { key: "", value: "" };+}++export const Plan_CreateDatabaseConfig_LabelsEntry = {+ encode(message: Plan_CreateDatabaseConfig_LabelsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== "") {+ writer.uint32(18).string(message.value);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_CreateDatabaseConfig_LabelsEntry {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_CreateDatabaseConfig_LabelsEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.value = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_CreateDatabaseConfig_LabelsEntry {+ return {+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",+ };+ },++ toJSON(message: Plan_CreateDatabaseConfig_LabelsEntry): unknown {+ const obj: any = {};+ if (message.key !== "") {+ obj.key = message.key;+ }+ if (message.value !== "") {+ obj.value = message.value;+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_CreateDatabaseConfig_LabelsEntry>): Plan_CreateDatabaseConfig_LabelsEntry {+ return Plan_CreateDatabaseConfig_LabelsEntry.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan_CreateDatabaseConfig_LabelsEntry>): Plan_CreateDatabaseConfig_LabelsEntry {+ const message = createBasePlan_CreateDatabaseConfig_LabelsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";+ return message;+ },+};++function createBasePlan_ChangeDatabaseConfig(): Plan_ChangeDatabaseConfig {+ return {+ target: "",+ sheet: "",+ type: Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED,+ schemaVersion: "",+ rollbackEnabled: false,+ rollbackDetail: undefined,+ ghostFlags: {},+ preUpdateBackupDetail: undefined,+ };+}++export const Plan_ChangeDatabaseConfig = {+ encode(message: Plan_ChangeDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.target !== "") {+ writer.uint32(10).string(message.target);+ }+ if (message.sheet !== "") {+ writer.uint32(18).string(message.sheet);+ }+ if (message.type !== Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED) {+ writer.uint32(24).int32(plan_ChangeDatabaseConfig_TypeToNumber(message.type));+ }+ if (message.schemaVersion !== "") {+ writer.uint32(34).string(message.schemaVersion);+ }+ if (message.rollbackEnabled === true) {+ writer.uint32(40).bool(message.rollbackEnabled);+ }+ if (message.rollbackDetail !== undefined) {+ Plan_ChangeDatabaseConfig_RollbackDetail.encode(message.rollbackDetail, writer.uint32(50).fork()).ldelim();+ }+ Object.entries(message.ghostFlags).forEach(([key, value]) => {+ Plan_ChangeDatabaseConfig_GhostFlagsEntry.encode({ key: key as any, value }, writer.uint32(58).fork()).ldelim();+ });+ if (message.preUpdateBackupDetail !== undefined) {+ Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.encode(message.preUpdateBackupDetail, writer.uint32(66).fork())+ .ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_ChangeDatabaseConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.target = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.type = plan_ChangeDatabaseConfig_TypeFromJSON(reader.int32());+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.schemaVersion = reader.string();+ continue;+ case 5:+ if (tag !== 40) {+ break;+ }++ message.rollbackEnabled = reader.bool();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.rollbackDetail = Plan_ChangeDatabaseConfig_RollbackDetail.decode(reader, reader.uint32());+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ const entry7 = Plan_ChangeDatabaseConfig_GhostFlagsEntry.decode(reader, reader.uint32());+ if (entry7.value !== undefined) {+ message.ghostFlags[entry7.key] = entry7.value;+ }+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.preUpdateBackupDetail = Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.decode(+ reader,+ reader.uint32(),+ );+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_ChangeDatabaseConfig {+ return {+ target: isSet(object.target) ? globalThis.String(object.target) : "",+ sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",+ type: isSet(object.type)+ ? plan_ChangeDatabaseConfig_TypeFromJSON(object.type)+ : Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED,+ schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",+ rollbackEnabled: isSet(object.rollbackEnabled) ? globalThis.Boolean(object.rollbackEnabled) : false,+ rollbackDetail: isSet(object.rollbackDetail)+ ? Plan_ChangeDatabaseConfig_RollbackDetail.fromJSON(object.rollbackDetail)+ : undefined,+ ghostFlags: isObject(object.ghostFlags)+ ? Object.entries(object.ghostFlags).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ preUpdateBackupDetail: isSet(object.preUpdateBackupDetail)+ ? Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.fromJSON(object.preUpdateBackupDetail)+ : undefined,+ };+ },++ toJSON(message: Plan_ChangeDatabaseConfig): unknown {+ const obj: any = {};+ if (message.target !== "") {+ obj.target = message.target;+ }+ if (message.sheet !== "") {+ obj.sheet = message.sheet;+ }+ if (message.type !== Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED) {+ obj.type = plan_ChangeDatabaseConfig_TypeToJSON(message.type);+ }+ if (message.schemaVersion !== "") {+ obj.schemaVersion = message.schemaVersion;+ }+ if (message.rollbackEnabled === true) {+ obj.rollbackEnabled = message.rollbackEnabled;+ }+ if (message.rollbackDetail !== undefined) {+ obj.rollbackDetail = Plan_ChangeDatabaseConfig_RollbackDetail.toJSON(message.rollbackDetail);+ }+ if (message.ghostFlags) {+ const entries = Object.entries(message.ghostFlags);+ if (entries.length > 0) {+ obj.ghostFlags = {};+ entries.forEach(([k, v]) => {+ obj.ghostFlags[k] = v;+ });+ }+ }+ if (message.preUpdateBackupDetail !== undefined) {+ obj.preUpdateBackupDetail = Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.toJSON(message.preUpdateBackupDetail);+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_ChangeDatabaseConfig>): Plan_ChangeDatabaseConfig {+ return Plan_ChangeDatabaseConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan_ChangeDatabaseConfig>): Plan_ChangeDatabaseConfig {+ const message = createBasePlan_ChangeDatabaseConfig();+ message.target = object.target ?? "";+ message.sheet = object.sheet ?? "";+ message.type = object.type ?? Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED;+ message.schemaVersion = object.schemaVersion ?? "";+ message.rollbackEnabled = object.rollbackEnabled ?? false;+ message.rollbackDetail = (object.rollbackDetail !== undefined && object.rollbackDetail !== null)+ ? Plan_ChangeDatabaseConfig_RollbackDetail.fromPartial(object.rollbackDetail)+ : undefined;+ message.ghostFlags = Object.entries(object.ghostFlags ?? {}).reduce<{ [key: string]: string }>(+ (acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = globalThis.String(value);+ }+ return acc;+ },+ {},+ );+ message.preUpdateBackupDetail =+ (object.preUpdateBackupDetail !== undefined && object.preUpdateBackupDetail !== null)+ ? Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.fromPartial(object.preUpdateBackupDetail)+ : undefined;+ return message;+ },+};++function createBasePlan_ChangeDatabaseConfig_RollbackDetail(): Plan_ChangeDatabaseConfig_RollbackDetail {+ return { rollbackFromTask: "", rollbackFromIssue: "" };+}++export const Plan_ChangeDatabaseConfig_RollbackDetail = {+ encode(message: Plan_ChangeDatabaseConfig_RollbackDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.rollbackFromTask !== "") {+ writer.uint32(10).string(message.rollbackFromTask);+ }+ if (message.rollbackFromIssue !== "") {+ writer.uint32(18).string(message.rollbackFromIssue);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig_RollbackDetail {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_ChangeDatabaseConfig_RollbackDetail();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.rollbackFromTask = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.rollbackFromIssue = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_ChangeDatabaseConfig_RollbackDetail {+ return {+ rollbackFromTask: isSet(object.rollbackFromTask) ? globalThis.String(object.rollbackFromTask) : "",+ rollbackFromIssue: isSet(object.rollbackFromIssue) ? globalThis.String(object.rollbackFromIssue) : "",+ };+ },++ toJSON(message: Plan_ChangeDatabaseConfig_RollbackDetail): unknown {+ const obj: any = {};+ if (message.rollbackFromTask !== "") {+ obj.rollbackFromTask = message.rollbackFromTask;+ }+ if (message.rollbackFromIssue !== "") {+ obj.rollbackFromIssue = message.rollbackFromIssue;+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_ChangeDatabaseConfig_RollbackDetail>): Plan_ChangeDatabaseConfig_RollbackDetail {+ return Plan_ChangeDatabaseConfig_RollbackDetail.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan_ChangeDatabaseConfig_RollbackDetail>): Plan_ChangeDatabaseConfig_RollbackDetail {+ const message = createBasePlan_ChangeDatabaseConfig_RollbackDetail();+ message.rollbackFromTask = object.rollbackFromTask ?? "";+ message.rollbackFromIssue = object.rollbackFromIssue ?? "";+ return message;+ },+};++function createBasePlan_ChangeDatabaseConfig_GhostFlagsEntry(): Plan_ChangeDatabaseConfig_GhostFlagsEntry {+ return { key: "", value: "" };+}++export const Plan_ChangeDatabaseConfig_GhostFlagsEntry = {+ encode(message: Plan_ChangeDatabaseConfig_GhostFlagsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== "") {+ writer.uint32(18).string(message.value);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig_GhostFlagsEntry {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_ChangeDatabaseConfig_GhostFlagsEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.value = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_ChangeDatabaseConfig_GhostFlagsEntry {+ return {+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",+ };+ },++ toJSON(message: Plan_ChangeDatabaseConfig_GhostFlagsEntry): unknown {+ const obj: any = {};+ if (message.key !== "") {+ obj.key = message.key;+ }+ if (message.value !== "") {+ obj.value = message.value;+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_ChangeDatabaseConfig_GhostFlagsEntry>): Plan_ChangeDatabaseConfig_GhostFlagsEntry {+ return Plan_ChangeDatabaseConfig_GhostFlagsEntry.fromPartial(base ?? {});+ },+ fromPartial(+ object: DeepPartial<Plan_ChangeDatabaseConfig_GhostFlagsEntry>,+ ): Plan_ChangeDatabaseConfig_GhostFlagsEntry {+ const message = createBasePlan_ChangeDatabaseConfig_GhostFlagsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";+ return message;+ },+};++function createBasePlan_ChangeDatabaseConfig_PreUpdateBackupDetail(): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {+ return { database: "" };+}++export const Plan_ChangeDatabaseConfig_PreUpdateBackupDetail = {+ encode(+ message: Plan_ChangeDatabaseConfig_PreUpdateBackupDetail,+ writer: _m0.Writer = _m0.Writer.create(),+ ): _m0.Writer {+ if (message.database !== "") {+ writer.uint32(10).string(message.database);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_ChangeDatabaseConfig_PreUpdateBackupDetail();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.database = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {+ return { database: isSet(object.database) ? globalThis.String(object.database) : "" };+ },++ toJSON(message: Plan_ChangeDatabaseConfig_PreUpdateBackupDetail): unknown {+ const obj: any = {};+ if (message.database !== "") {+ obj.database = message.database;+ }+ return obj;+ },++ create(+ base?: DeepPartial<Plan_ChangeDatabaseConfig_PreUpdateBackupDetail>,+ ): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {+ return Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.fromPartial(base ?? {});+ },+ fromPartial(+ object: DeepPartial<Plan_ChangeDatabaseConfig_PreUpdateBackupDetail>,+ ): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {+ const message = createBasePlan_ChangeDatabaseConfig_PreUpdateBackupDetail();+ message.database = object.database ?? "";+ return message;+ },+};++function createBasePlan_ExportDataConfig(): Plan_ExportDataConfig {+ return { target: "", sheet: "", format: ExportFormat.FORMAT_UNSPECIFIED, password: undefined };+}++export const Plan_ExportDataConfig = {+ encode(message: Plan_ExportDataConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.target !== "") {+ writer.uint32(10).string(message.target);+ }+ if (message.sheet !== "") {+ writer.uint32(18).string(message.sheet);+ }+ if (message.format !== ExportFormat.FORMAT_UNSPECIFIED) {+ writer.uint32(24).int32(exportFormatToNumber(message.format));+ }+ if (message.password !== undefined) {+ writer.uint32(34).string(message.password);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ExportDataConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_ExportDataConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.target = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.format = exportFormatFromJSON(reader.int32());+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.password = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_ExportDataConfig {+ return {+ target: isSet(object.target) ? globalThis.String(object.target) : "",+ sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",+ format: isSet(object.format) ? exportFormatFromJSON(object.format) : ExportFormat.FORMAT_UNSPECIFIED,+ password: isSet(object.password) ? globalThis.String(object.password) : undefined,+ };+ },++ toJSON(message: Plan_ExportDataConfig): unknown {+ const obj: any = {};+ if (message.target !== "") {+ obj.target = message.target;+ }+ if (message.sheet !== "") {+ obj.sheet = message.sheet;+ }+ if (message.format !== ExportFormat.FORMAT_UNSPECIFIED) {+ obj.format = exportFormatToJSON(message.format);+ }+ if (message.password !== undefined) {+ obj.password = message.password;+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_ExportDataConfig>): Plan_ExportDataConfig {+ return Plan_ExportDataConfig.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan_ExportDataConfig>): Plan_ExportDataConfig {+ const message = createBasePlan_ExportDataConfig();+ message.target = object.target ?? "";+ message.sheet = object.sheet ?? "";+ message.format = object.format ?? ExportFormat.FORMAT_UNSPECIFIED;+ message.password = object.password ?? undefined;+ return message;+ },+};++function createBasePlan_VCSSource(): Plan_VCSSource {+ return { vcsType: VCSType.VCS_TYPE_UNSPECIFIED, vcsConnector: "", pullRequestUrl: "" };+}++export const Plan_VCSSource = {+ encode(message: Plan_VCSSource, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.vcsType !== VCSType.VCS_TYPE_UNSPECIFIED) {+ writer.uint32(8).int32(vCSTypeToNumber(message.vcsType));+ }+ if (message.vcsConnector !== "") {+ writer.uint32(18).string(message.vcsConnector);+ }+ if (message.pullRequestUrl !== "") {+ writer.uint32(26).string(message.pullRequestUrl);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_VCSSource {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_VCSSource();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.vcsType = vCSTypeFromJSON(reader.int32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.vcsConnector = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.pullRequestUrl = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_VCSSource {+ return {+ vcsType: isSet(object.vcsType) ? vCSTypeFromJSON(object.vcsType) : VCSType.VCS_TYPE_UNSPECIFIED,+ vcsConnector: isSet(object.vcsConnector) ? globalThis.String(object.vcsConnector) : "",+ pullRequestUrl: isSet(object.pullRequestUrl) ? globalThis.String(object.pullRequestUrl) : "",+ };+ },++ toJSON(message: Plan_VCSSource): unknown {+ const obj: any = {};+ if (message.vcsType !== VCSType.VCS_TYPE_UNSPECIFIED) {+ obj.vcsType = vCSTypeToJSON(message.vcsType);+ }+ if (message.vcsConnector !== "") {+ obj.vcsConnector = message.vcsConnector;+ }+ if (message.pullRequestUrl !== "") {+ obj.pullRequestUrl = message.pullRequestUrl;+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_VCSSource>): Plan_VCSSource {+ return Plan_VCSSource.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<Plan_VCSSource>): Plan_VCSSource {+ const message = createBasePlan_VCSSource();+ message.vcsType = object.vcsType ?? VCSType.VCS_TYPE_UNSPECIFIED;+ message.vcsConnector = object.vcsConnector ?? "";+ message.pullRequestUrl = object.pullRequestUrl ?? "";+ return message;+ },+};++function createBaseListPlanCheckRunsRequest(): ListPlanCheckRunsRequest {+ return { parent: "", pageSize: 0, pageToken: "" };+}++export const ListPlanCheckRunsRequest = {+ encode(message: ListPlanCheckRunsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);+ }+ if (message.pageSize !== 0) {+ writer.uint32(16).int32(message.pageSize);+ }+ if (message.pageToken !== "") {+ writer.uint32(26).string(message.pageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListPlanCheckRunsRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListPlanCheckRunsRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.parent = reader.string();+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.pageSize = reader.int32();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.pageToken = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ListPlanCheckRunsRequest {+ return {+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,+ pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",+ };+ },++ toJSON(message: ListPlanCheckRunsRequest): unknown {+ const obj: any = {};+ if (message.parent !== "") {+ obj.parent = message.parent;+ }+ if (message.pageSize !== 0) {+ obj.pageSize = Math.round(message.pageSize);+ }+ if (message.pageToken !== "") {+ obj.pageToken = message.pageToken;+ }+ return obj;+ },++ create(base?: DeepPartial<ListPlanCheckRunsRequest>): ListPlanCheckRunsRequest {+ return ListPlanCheckRunsRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ListPlanCheckRunsRequest>): ListPlanCheckRunsRequest {+ const message = createBaseListPlanCheckRunsRequest();+ message.parent = object.parent ?? "";+ message.pageSize = object.pageSize ?? 0;+ message.pageToken = object.pageToken ?? "";+ return message;+ },+};++function createBaseListPlanCheckRunsResponse(): ListPlanCheckRunsResponse {+ return { planCheckRuns: [], nextPageToken: "" };+}++export const ListPlanCheckRunsResponse = {+ encode(message: ListPlanCheckRunsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.planCheckRuns) {+ PlanCheckRun.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ if (message.nextPageToken !== "") {+ writer.uint32(18).string(message.nextPageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListPlanCheckRunsResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListPlanCheckRunsResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.planCheckRuns.push(PlanCheckRun.decode(reader, reader.uint32()));+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.nextPageToken = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ListPlanCheckRunsResponse {+ return {+ planCheckRuns: globalThis.Array.isArray(object?.planCheckRuns)+ ? object.planCheckRuns.map((e: any) => PlanCheckRun.fromJSON(e))+ : [],+ nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",+ };+ },++ toJSON(message: ListPlanCheckRunsResponse): unknown {+ const obj: any = {};+ if (message.planCheckRuns?.length) {+ obj.planCheckRuns = message.planCheckRuns.map((e) => PlanCheckRun.toJSON(e));+ }+ if (message.nextPageToken !== "") {+ obj.nextPageToken = message.nextPageToken;+ }+ return obj;+ },++ create(base?: DeepPartial<ListPlanCheckRunsResponse>): ListPlanCheckRunsResponse {+ return ListPlanCheckRunsResponse.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ListPlanCheckRunsResponse>): ListPlanCheckRunsResponse {+ const message = createBaseListPlanCheckRunsResponse();+ message.planCheckRuns = object.planCheckRuns?.map((e) => PlanCheckRun.fromPartial(e)) || [];+ message.nextPageToken = object.nextPageToken ?? "";+ return message;+ },+};++function createBaseRunPlanChecksRequest(): RunPlanChecksRequest {+ return { name: "" };+}++export const RunPlanChecksRequest = {+ encode(message: RunPlanChecksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): RunPlanChecksRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseRunPlanChecksRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): RunPlanChecksRequest {+ return { name: isSet(object.name) ? globalThis.String(object.name) : "" };+ },++ toJSON(message: RunPlanChecksRequest): unknown {+ const obj: any = {};+ if (message.name !== "") {+ obj.name = message.name;+ }+ return obj;+ },++ create(base?: DeepPartial<RunPlanChecksRequest>): RunPlanChecksRequest {+ return RunPlanChecksRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<RunPlanChecksRequest>): RunPlanChecksRequest {+ const message = createBaseRunPlanChecksRequest();+ message.name = object.name ?? "";+ return message;+ },+};++function createBaseRunPlanChecksResponse(): RunPlanChecksResponse {+ return {};+}++export const RunPlanChecksResponse = {+ encode(_: RunPlanChecksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): RunPlanChecksResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseRunPlanChecksResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(_: any): RunPlanChecksResponse {+ return {};+ },++ toJSON(_: RunPlanChecksResponse): unknown {+ const obj: any = {};+ return obj;+ },++ create(base?: DeepPartial<RunPlanChecksResponse>): RunPlanChecksResponse {+ return RunPlanChecksResponse.fromPartial(base ?? {});+ },+ fromPartial(_: DeepPartial<RunPlanChecksResponse>): RunPlanChecksResponse {+ const message = createBaseRunPlanChecksResponse();+ return message;+ },+};++function createBasePlanCheckRun(): PlanCheckRun {+ return {+ name: "",+ uid: "",+ type: PlanCheckRun_Type.TYPE_UNSPECIFIED,+ status: PlanCheckRun_Status.STATUS_UNSPECIFIED,+ target: "",+ sheet: "",+ results: [],+ error: "",+ createTime: undefined,+ };+}++export const PlanCheckRun = {+ encode(message: PlanCheckRun, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.type !== PlanCheckRun_Type.TYPE_UNSPECIFIED) {+ writer.uint32(24).int32(planCheckRun_TypeToNumber(message.type));+ }+ if (message.status !== PlanCheckRun_Status.STATUS_UNSPECIFIED) {+ writer.uint32(32).int32(planCheckRun_StatusToNumber(message.status));+ }+ if (message.target !== "") {+ writer.uint32(42).string(message.target);+ }+ if (message.sheet !== "") {+ writer.uint32(50).string(message.sheet);+ }+ for (const v of message.results) {+ PlanCheckRun_Result.encode(v!, writer.uint32(58).fork()).ldelim();+ }+ if (message.error !== "") {+ writer.uint32(66).string(message.error);+ }+ if (message.createTime !== undefined) {+ Timestamp.encode(toTimestamp(message.createTime), writer.uint32(74).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlanCheckRun();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.uid = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.type = planCheckRun_TypeFromJSON(reader.int32());+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.status = planCheckRun_StatusFromJSON(reader.int32());+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.target = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.results.push(PlanCheckRun_Result.decode(reader, reader.uint32()));+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.error = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PlanCheckRun {+ return {+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ uid: isSet(object.uid) ? globalThis.String(object.uid) : "",+ type: isSet(object.type) ? planCheckRun_TypeFromJSON(object.type) : PlanCheckRun_Type.TYPE_UNSPECIFIED,+ status: isSet(object.status)+ ? planCheckRun_StatusFromJSON(object.status)+ : PlanCheckRun_Status.STATUS_UNSPECIFIED,+ target: isSet(object.target) ? globalThis.String(object.target) : "",+ sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",+ results: globalThis.Array.isArray(object?.results)+ ? object.results.map((e: any) => PlanCheckRun_Result.fromJSON(e))+ : [],+ error: isSet(object.error) ? globalThis.String(object.error) : "",+ createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,+ };+ },++ toJSON(message: PlanCheckRun): unknown {+ const obj: any = {};+ if (message.name !== "") {+ obj.name = message.name;+ }+ if (message.uid !== "") {+ obj.uid = message.uid;+ }+ if (message.type !== PlanCheckRun_Type.TYPE_UNSPECIFIED) {+ obj.type = planCheckRun_TypeToJSON(message.type);+ }+ if (message.status !== PlanCheckRun_Status.STATUS_UNSPECIFIED) {+ obj.status = planCheckRun_StatusToJSON(message.status);+ }+ if (message.target !== "") {+ obj.target = message.target;+ }+ if (message.sheet !== "") {+ obj.sheet = message.sheet;+ }+ if (message.results?.length) {+ obj.results = message.results.map((e) => PlanCheckRun_Result.toJSON(e));+ }+ if (message.error !== "") {+ obj.error = message.error;+ }+ if (message.createTime !== undefined) {+ obj.createTime = message.createTime.toISOString();+ }+ return obj;+ },++ create(base?: DeepPartial<PlanCheckRun>): PlanCheckRun {+ return PlanCheckRun.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<PlanCheckRun>): PlanCheckRun {+ const message = createBasePlanCheckRun();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.type = object.type ?? PlanCheckRun_Type.TYPE_UNSPECIFIED;+ message.status = object.status ?? PlanCheckRun_Status.STATUS_UNSPECIFIED;+ message.target = object.target ?? "";+ message.sheet = object.sheet ?? "";+ message.results = object.results?.map((e) => PlanCheckRun_Result.fromPartial(e)) || [];+ message.error = object.error ?? "";+ message.createTime = object.createTime ?? undefined;+ return message;+ },+};++function createBasePlanCheckRun_Result(): PlanCheckRun_Result {+ return {+ status: PlanCheckRun_Result_Status.STATUS_UNSPECIFIED,+ title: "",+ content: "",+ code: 0,+ sqlSummaryReport: undefined,+ sqlReviewReport: undefined,+ };+}++export const PlanCheckRun_Result = {+ encode(message: PlanCheckRun_Result, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.status !== PlanCheckRun_Result_Status.STATUS_UNSPECIFIED) {+ writer.uint32(8).int32(planCheckRun_Result_StatusToNumber(message.status));+ }+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }+ if (message.content !== "") {+ writer.uint32(26).string(message.content);+ }+ if (message.code !== 0) {+ writer.uint32(32).int32(message.code);+ }+ if (message.sqlSummaryReport !== undefined) {+ PlanCheckRun_Result_SqlSummaryReport.encode(message.sqlSummaryReport, writer.uint32(42).fork()).ldelim();+ }+ if (message.sqlReviewReport !== undefined) {+ PlanCheckRun_Result_SqlReviewReport.encode(message.sqlReviewReport, writer.uint32(50).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun_Result {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlanCheckRun_Result();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.status = planCheckRun_Result_StatusFromJSON(reader.int32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.title = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.content = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.code = reader.int32();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.sqlSummaryReport = PlanCheckRun_Result_SqlSummaryReport.decode(reader, reader.uint32());+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.sqlReviewReport = PlanCheckRun_Result_SqlReviewReport.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PlanCheckRun_Result {+ return {+ status: isSet(object.status)+ ? planCheckRun_Result_StatusFromJSON(object.status)+ : PlanCheckRun_Result_Status.STATUS_UNSPECIFIED,+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ content: isSet(object.content) ? globalThis.String(object.content) : "",+ code: isSet(object.code) ? globalThis.Number(object.code) : 0,+ sqlSummaryReport: isSet(object.sqlSummaryReport)+ ? PlanCheckRun_Result_SqlSummaryReport.fromJSON(object.sqlSummaryReport)+ : undefined,+ sqlReviewReport: isSet(object.sqlReviewReport)+ ? PlanCheckRun_Result_SqlReviewReport.fromJSON(object.sqlReviewReport)+ : undefined,+ };+ },++ toJSON(message: PlanCheckRun_Result): unknown {+ const obj: any = {};+ if (message.status !== PlanCheckRun_Result_Status.STATUS_UNSPECIFIED) {+ obj.status = planCheckRun_Result_StatusToJSON(message.status);+ }+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.content !== "") {+ obj.content = message.content;+ }+ if (message.code !== 0) {+ obj.code = Math.round(message.code);+ }+ if (message.sqlSummaryReport !== undefined) {+ obj.sqlSummaryReport = PlanCheckRun_Result_SqlSummaryReport.toJSON(message.sqlSummaryReport);+ }+ if (message.sqlReviewReport !== undefined) {+ obj.sqlReviewReport = PlanCheckRun_Result_SqlReviewReport.toJSON(message.sqlReviewReport);+ }+ return obj;+ },++ create(base?: DeepPartial<PlanCheckRun_Result>): PlanCheckRun_Result {+ return PlanCheckRun_Result.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<PlanCheckRun_Result>): PlanCheckRun_Result {+ const message = createBasePlanCheckRun_Result();+ message.status = object.status ?? PlanCheckRun_Result_Status.STATUS_UNSPECIFIED;+ message.title = object.title ?? "";+ message.content = object.content ?? "";+ message.code = object.code ?? 0;+ message.sqlSummaryReport = (object.sqlSummaryReport !== undefined && object.sqlSummaryReport !== null)+ ? PlanCheckRun_Result_SqlSummaryReport.fromPartial(object.sqlSummaryReport)+ : undefined;+ message.sqlReviewReport = (object.sqlReviewReport !== undefined && object.sqlReviewReport !== null)+ ? PlanCheckRun_Result_SqlReviewReport.fromPartial(object.sqlReviewReport)+ : undefined;+ return message;+ },+};++function createBasePlanCheckRun_Result_SqlSummaryReport(): PlanCheckRun_Result_SqlSummaryReport {+ return { code: 0, statementTypes: [], affectedRows: 0, changedResources: undefined };+}++export const PlanCheckRun_Result_SqlSummaryReport = {+ encode(message: PlanCheckRun_Result_SqlSummaryReport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.code !== 0) {+ writer.uint32(8).int32(message.code);+ }+ for (const v of message.statementTypes) {+ writer.uint32(18).string(v!);+ }+ if (message.affectedRows !== 0) {+ writer.uint32(24).int32(message.affectedRows);+ }+ if (message.changedResources !== undefined) {+ ChangedResources.encode(message.changedResources, writer.uint32(34).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun_Result_SqlSummaryReport {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlanCheckRun_Result_SqlSummaryReport();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.code = reader.int32();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.statementTypes.push(reader.string());+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.affectedRows = reader.int32();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.changedResources = ChangedResources.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PlanCheckRun_Result_SqlSummaryReport {+ return {+ code: isSet(object.code) ? globalThis.Number(object.code) : 0,+ statementTypes: globalThis.Array.isArray(object?.statementTypes)+ ? object.statementTypes.map((e: any) => globalThis.String(e))+ : [],+ affectedRows: isSet(object.affectedRows) ? globalThis.Number(object.affectedRows) : 0,+ changedResources: isSet(object.changedResources) ? ChangedResources.fromJSON(object.changedResources) : undefined,+ };+ },++ toJSON(message: PlanCheckRun_Result_SqlSummaryReport): unknown {+ const obj: any = {};+ if (message.code !== 0) {+ obj.code = Math.round(message.code);+ }+ if (message.statementTypes?.length) {+ obj.statementTypes = message.statementTypes;+ }+ if (message.affectedRows !== 0) {+ obj.affectedRows = Math.round(message.affectedRows);+ }+ if (message.changedResources !== undefined) {+ obj.changedResources = ChangedResources.toJSON(message.changedResources);+ }+ return obj;+ },++ create(base?: DeepPartial<PlanCheckRun_Result_SqlSummaryReport>): PlanCheckRun_Result_SqlSummaryReport {+ return PlanCheckRun_Result_SqlSummaryReport.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<PlanCheckRun_Result_SqlSummaryReport>): PlanCheckRun_Result_SqlSummaryReport {+ const message = createBasePlanCheckRun_Result_SqlSummaryReport();+ message.code = object.code ?? 0;+ message.statementTypes = object.statementTypes?.map((e) => e) || [];+ message.affectedRows = object.affectedRows ?? 0;+ message.changedResources = (object.changedResources !== undefined && object.changedResources !== null)+ ? ChangedResources.fromPartial(object.changedResources)+ : undefined;+ return message;+ },+};++function createBasePlanCheckRun_Result_SqlReviewReport(): PlanCheckRun_Result_SqlReviewReport {+ return { line: 0, column: 0, detail: "", code: 0 };+}++export const PlanCheckRun_Result_SqlReviewReport = {+ encode(message: PlanCheckRun_Result_SqlReviewReport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.line !== 0) {+ writer.uint32(8).int32(message.line);+ }+ if (message.column !== 0) {+ writer.uint32(16).int32(message.column);+ }+ if (message.detail !== "") {+ writer.uint32(26).string(message.detail);+ }+ if (message.code !== 0) {+ writer.uint32(32).int32(message.code);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun_Result_SqlReviewReport {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlanCheckRun_Result_SqlReviewReport();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.line = reader.int32();+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.column = reader.int32();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.detail = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.code = reader.int32();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PlanCheckRun_Result_SqlReviewReport {+ return {+ line: isSet(object.line) ? globalThis.Number(object.line) : 0,+ column: isSet(object.column) ? globalThis.Number(object.column) : 0,+ detail: isSet(object.detail) ? globalThis.String(object.detail) : "",+ code: isSet(object.code) ? globalThis.Number(object.code) : 0,+ };+ },++ toJSON(message: PlanCheckRun_Result_SqlReviewReport): unknown {+ const obj: any = {};+ if (message.line !== 0) {+ obj.line = Math.round(message.line);+ }+ if (message.column !== 0) {+ obj.column = Math.round(message.column);+ }+ if (message.detail !== "") {+ obj.detail = message.detail;+ }+ if (message.code !== 0) {+ obj.code = Math.round(message.code);+ }+ return obj;+ },++ create(base?: DeepPartial<PlanCheckRun_Result_SqlReviewReport>): PlanCheckRun_Result_SqlReviewReport {+ return PlanCheckRun_Result_SqlReviewReport.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<PlanCheckRun_Result_SqlReviewReport>): PlanCheckRun_Result_SqlReviewReport {+ const message = createBasePlanCheckRun_Result_SqlReviewReport();+ message.line = object.line ?? 0;+ message.column = object.column ?? 0;+ message.detail = object.detail ?? "";+ message.code = object.code ?? 0;+ return message;+ },+};++export type PlanServiceDefinition = typeof PlanServiceDefinition;+export const PlanServiceDefinition = {+ name: "PlanService",+ fullName: "bytebase.v1.PlanService",+ methods: {+ getPlan: {+ name: "GetPlan",+ requestType: GetPlanRequest,+ requestStream: false,+ responseType: Plan,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],+ 578365826: [+ new Uint8Array([+ 31,+ 18,+ 29,+ 47,+ 118,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,+ 101,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 112,+ 108,+ 97,+ 110,+ 115,+ 47,+ 42,+ 125,+ ]),+ ],+ },+ },+ },+ listPlans: {+ name: "ListPlans",+ requestType: ListPlansRequest,+ requestStream: false,+ responseType: ListPlansResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],+ 578365826: [+ new Uint8Array([+ 31,+ 18,+ 29,+ 47,+ 118,+ 49,+ 47,+ 123,+ 112,+ 97,+ 114,+ 101,+ 110,+ 116,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 125,+ 47,+ 112,+ 108,+ 97,+ 110,+ 115,+ ]),+ ],+ },+ },+ },+ createPlan: {+ name: "CreatePlan",+ requestType: CreatePlanRequest,+ requestStream: false,+ responseType: Plan,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([11, 112, 97, 114, 101, 110, 116, 44, 112, 108, 97, 110])],+ 578365826: [+ new Uint8Array([+ 37,+ 58,+ 4,+ 112,+ 108,+ 97,+ 110,+ 34,+ 29,+ 47,+ 118,+ 49,+ 47,+ 123,+ 112,+ 97,+ 114,+ 101,+ 110,+ 116,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 125,+ 47,+ 112,+ 108,+ 97,+ 110,+ 115,+ ]),+ ],+ },+ },+ },+ updatePlan: {+ name: "UpdatePlan",+ requestType: UpdatePlanRequest,+ requestStream: false,+ responseType: Plan,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([16, 112, 108, 97, 110, 44, 117, 112, 100, 97, 116, 101, 95, 109, 97, 115, 107])],+ 578365826: [+ new Uint8Array([+ 42,+ 58,+ 4,+ 112,+ 108,+ 97,+ 110,+ 50,+ 34,+ 47,+ 118,+ 49,+ 47,+ 123,+ 112,+ 108,+ 97,+ 110,+ 46,+ 110,+ 97,+ 109,+ 101,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 112,+ 108,+ 97,+ 110,+ 115,+ 47,+ 42,+ 125,+ ]),+ ],+ },+ },+ },+ listPlanCheckRuns: {+ name: "ListPlanCheckRuns",+ requestType: ListPlanCheckRunsRequest,+ requestStream: false,+ responseType: ListPlanCheckRunsResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],+ 578365826: [+ new Uint8Array([+ 47,+ 18,+ 45,+ 47,+ 118,+ 49,+ 47,+ 123,+ 112,+ 97,+ 114,+ 101,+ 110,+ 116,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 112,+ 108,+ 97,+ 110,+ 115,+ 47,+ 42,+ 125,+ 47,+ 112,+ 108,+ 97,+ 110,+ 67,+ 104,+ 101,+ 99,+ 107,+ 82,+ 117,+ 110,+ 115,+ ]),+ ],+ },+ },+ },+ runPlanChecks: {+ name: "RunPlanChecks",+ requestType: RunPlanChecksRequest,+ requestStream: false,+ responseType: RunPlanChecksResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],+ 578365826: [+ new Uint8Array([+ 48,+ 58,+ 1,+ 42,+ 34,+ 43,+ 47,+ 118,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,+ 101,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 112,+ 108,+ 97,+ 110,+ 115,+ 47,+ 42,+ 125,+ 58,+ 114,+ 117,+ 110,+ 80,+ 108,+ 97,+ 110,+ 67,+ 104,+ 101,+ 99,+ 107,+ 115,+ ]),+ ],+ },+ },+ },+ },+} as const;++type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;++export type DeepPartial<T> = T extends Builtin ? T+ : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }+ : Partial<T>;++function toTimestamp(date: Date): Timestamp {+ const seconds = numberToLong(date.getTime() / 1_000);+ const nanos = (date.getTime() % 1_000) * 1_000_000;+ return { seconds, nanos };+}++function fromTimestamp(t: Timestamp): Date {+ let millis = (t.seconds.toNumber() || 0) * 1_000;+ millis += (t.nanos || 0) / 1_000_000;+ return new globalThis.Date(millis);+}++function fromJsonTimestamp(o: any): Date {+ if (o instanceof globalThis.Date) {+ return o;+ } else if (typeof o === "string") {+ return new globalThis.Date(o);+ } else {+ return fromTimestamp(Timestamp.fromJSON(o));+ }+}++function numberToLong(number: number) {+ return Long.fromNumber(number);+}++if (_m0.util.Long !== Long) {+ _m0.util.Long = Long as any;+ _m0.configure();+}++function isObject(value: any): boolean {+ return typeof value === "object" && value !== null;+}++function isSet(value: any): boolean {+ return value !== null && value !== undefined;+}diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.tsindex 03dbf37ed3..7f1977a905 100644--- a/frontend/src/types/proto/v1/rollout_service.ts+++ b/frontend/src/types/proto/v1/rollout_service.ts@@ -1,57 +1,119 @@/* eslint-disable */import Long from "long";import _m0 from "protobufjs/minimal";-import { FieldMask } from "../google/protobuf/field_mask";import { Timestamp } from "../google/protobuf/timestamp";-import {- ExportFormat,- exportFormatFromJSON,- exportFormatToJSON,- exportFormatToNumber,- VCSType,- vCSTypeFromJSON,- vCSTypeToJSON,- vCSTypeToNumber,-} from "./common";-import { ChangedResources } from "./database_service";+import { ExportFormat, exportFormatFromJSON, exportFormatToJSON, exportFormatToNumber } from "./common";+import { Plan } from "./plan_service";export const protobufPackage = "bytebase.v1";-export interface GetPlanRequest {+export interface BatchRunTasksRequest {/**- * The name of the plan to retrieve.- * Format: projects/{project}/plans/{plan}+ * The name of the parent of the tasks.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ */+ parent: string;+ /**+ * The tasks to run.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ */+ tasks: string[];+ reason: string;+}++export interface BatchRunTasksResponse {+}++export interface BatchSkipTasksRequest {+ /**+ * The name of the parent of the tasks.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ */+ parent: string;+ /**+ * The tasks to skip.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ */+ tasks: string[];+ reason: string;+}++export interface BatchSkipTasksResponse {+}++export interface BatchCancelTaskRunsRequest {+ /**+ * The name of the parent of the taskRuns.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ * Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage.+ */+ parent: string;+ /**+ * The taskRuns to cancel.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}+ */+ taskRuns: string[];+ reason: string;+}++export interface BatchCancelTaskRunsResponse {+}++export interface GetRolloutRequest {+ /**+ * The name of the rollout to retrieve.+ * Format: projects/{project}/rollouts/{rollout}*/name: string;}-export interface ListPlansRequest {+export interface CreateRolloutRequest {/**- * The parent, which owns this collection of plans.+ * The parent project where this rollout will be created.+ * Format: projects/{project}+ */+ parent: string;+ /** The rollout to create. */+ rollout: Rollout | undefined;+}++export interface PreviewRolloutRequest {+ /**+ * The name of the project.* Format: projects/{project}- * Use "projects/-" to list all plans from all projects.+ */+ project: string;+ /** The plan used to preview rollout. */+ plan: Plan | undefined;+}++export interface ListTaskRunsRequest {+ /**+ * The parent, which owns this collection of plans.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ * Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout.*/parent: string;/**- * The maximum number of plans to return. The service may return fewer than+ * The maximum number of taskRuns to return. The service may return fewer than* this value.- * If unspecified, at most 50 plans will be returned.+ * If unspecified, at most 50 taskRuns will be returned.* The maximum value is 1000; values above 1000 will be coerced to 1000.*/pageSize: number;/**- * A page token, received from a previous `ListPlans` call.+ * A page token, received from a previous `ListRolloutTaskRuns` call.* Provide this to retrieve the subsequent page.*- * When paginating, all other parameters provided to `ListPlans` must match+ * When paginating, all other parameters provided to `ListRolloutTaskRuns` must match* the call that provided the page token.*/pageToken: string;}-export interface ListPlansResponse {- /** The plans from the specified request. */- plans: Plan[];+export interface ListTaskRunsResponse {+ /** The taskRuns from the specified request. */+ taskRuns: TaskRun[];/*** A token, which can be sent as `page_token` to retrieve the next page.* If this field is omitted, there are no subsequent pages.@@ -59,1321 +121,619 @@ export interface ListPlansResponse {nextPageToken: string;}-export interface CreatePlanRequest {- /**- * The parent project where this plan will be created.- * Format: projects/{project}- */+export interface GetTaskRunLogRequest {+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} */parent: string;- /** The plan to create. */- plan: Plan | undefined;-}--export interface UpdatePlanRequest {- /**- * The plan to update.- *- * The plan's `name` field is used to identify the plan to update.- * Format: projects/{project}/plans/{plan}- */- plan:- | Plan- | undefined;- /** The list of fields to update. */- updateMask: string[] | undefined;}-export interface Plan {+export interface Rollout {/**- * The name of the plan.- * `plan` is a system generated ID.- * Format: projects/{project}/plans/{plan}+ * The resource name of the rollout.+ * Format: projects/{project}/rollouts/{rollout}*/name: string;/** The system-assigned, unique identifier for a resource. */uid: string;/**- * The resource name of the issue associated with this plan.- * Format: projects/{project}/issues/{issue}+ * The plan that this rollout is based on.+ * Format: projects/{project}/plans/{plan}*/- issue: string;+ plan: string;title: string;- description: string;- steps: Plan_Step[];- vcsSource:- | Plan_VCSSource- | undefined;- /** Format: users/[email protected] */- creator: string;- createTime: Date | undefined;+ /** stages and thus tasks of the rollout. */+ stages: Stage[];}-export interface Plan_Step {- /** TODO: implement */+export interface Stage {+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage} */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;title: string;- specs: Plan_Spec[];-}--export interface Plan_Spec {- /** earliest_allowed_time the earliest execution time of the change. */- earliestAllowedTime:- | Date- | undefined;- /** A UUID4 string that uniquely identifies the Spec. */- id: string;- /**- * IDs of the specs that this spec depends on.- * Must be a subset of the specs in the same step.- */- dependsOnSpecs: string[];- createDatabaseConfig?: Plan_CreateDatabaseConfig | undefined;- changeDatabaseConfig?: Plan_ChangeDatabaseConfig | undefined;- exportDataConfig?: Plan_ExportDataConfig | undefined;+ tasks: Task[];}-export interface Plan_CreateDatabaseConfig {- /**- * The resource name of the instance on which the database is created.- * Format: instances/{instance}- */- target: string;- /** The name of the database to create. */- database: string;- /**- * table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.- * For example, in MongoDB, it only creates the database when we first store data in that database.- */- table: string;- /** character_set is the character set of the database. */- characterSet: string;- /** collation is the collation of the database. */- collation: string;- /** cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". */- cluster: string;- /** owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". */- owner: string;+export interface Task {+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ title: string;/**- * The environment resource.- * Format: environments/prod where prod is the environment resource ID.+ * A UUID4 string that uniquely identifies the Spec.+ * Could be empty if the rollout of the task does not have an associating plan.*/- environment: string;- /** labels of the database. */- labels: { [key: string]: string };-}--export interface Plan_CreateDatabaseConfig_LabelsEntry {- key: string;- value: string;-}--export interface Plan_ChangeDatabaseConfig {+ specId: string;+ /** Status is the status of the task. */+ status: Task_Status;+ skippedReason: string;+ type: Task_Type;+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} */+ dependsOnTasks: string[];/**- * The resource name of the target.- * Format: instances/{instance-id}/databases/{database-name}.- * Format: projects/{project}/databaseGroups/{databaseGroup}.- * Format: projects/{project}/deploymentConfigs/default. The plan should- * have a single step and single spec for the deployment configuration type.+ * Format: instances/{instance} if the task is DatabaseCreate.+ * Format: instances/{instance}/databases/{database}*/target: string;- /**- * The resource name of the sheet.- * Format: projects/{project}/sheets/{sheet}- */- sheet: string;- type: Plan_ChangeDatabaseConfig_Type;- /**- * schema_version is parsed from VCS file name.- * It is automatically generated in the UI workflow.- */- schemaVersion: string;- /** If RollbackEnabled, build the RollbackSheetID of the task after the task is completed. */- rollbackEnabled: boolean;- rollbackDetail?: Plan_ChangeDatabaseConfig_RollbackDetail | undefined;- ghostFlags: { [key: string]: string };- /** If set, a backup of the modified data will be created automatically before any changes are applied. */- preUpdateBackupDetail?: Plan_ChangeDatabaseConfig_PreUpdateBackupDetail | undefined;+ databaseCreate?: Task_DatabaseCreate | undefined;+ databaseSchemaBaseline?: Task_DatabaseSchemaBaseline | undefined;+ databaseSchemaUpdate?: Task_DatabaseSchemaUpdate | undefined;+ databaseDataUpdate?: Task_DatabaseDataUpdate | undefined;+ databaseDataExport?: Task_DatabaseDataExport | undefined;}-/** Type is the database change type. */-export enum Plan_ChangeDatabaseConfig_Type {- TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",- /**- * BASELINE - Used for establishing schema baseline, this is used when- * 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.- * 2. Had schema drift and need to re-establish the baseline.- */- BASELINE = "BASELINE",- /** MIGRATE - Used for DDL changes including CREATE DATABASE. */- MIGRATE = "MIGRATE",- /** MIGRATE_SDL - Used for schema changes via state-based schema migration including CREATE DATABASE. */- MIGRATE_SDL = "MIGRATE_SDL",- /** MIGRATE_GHOST - Used for DDL changes using gh-ost. */- MIGRATE_GHOST = "MIGRATE_GHOST",- /** DATA - Used for DML change. */- DATA = "DATA",+export enum Task_Status {+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",+ NOT_STARTED = "NOT_STARTED",+ PENDING = "PENDING",+ RUNNING = "RUNNING",+ DONE = "DONE",+ FAILED = "FAILED",+ CANCELED = "CANCELED",+ SKIPPED = "SKIPPED",UNRECOGNIZED = "UNRECOGNIZED",}-export function plan_ChangeDatabaseConfig_TypeFromJSON(object: any): Plan_ChangeDatabaseConfig_Type {+export function task_StatusFromJSON(object: any): Task_Status {switch (object) {case 0:- case "TYPE_UNSPECIFIED":- return Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED;+ case "STATUS_UNSPECIFIED":+ return Task_Status.STATUS_UNSPECIFIED;case 1:- case "BASELINE":- return Plan_ChangeDatabaseConfig_Type.BASELINE;+ case "NOT_STARTED":+ return Task_Status.NOT_STARTED;case 2:- case "MIGRATE":- return Plan_ChangeDatabaseConfig_Type.MIGRATE;+ case "PENDING":+ return Task_Status.PENDING;case 3:- case "MIGRATE_SDL":- return Plan_ChangeDatabaseConfig_Type.MIGRATE_SDL;+ case "RUNNING":+ return Task_Status.RUNNING;case 4:- case "MIGRATE_GHOST":- return Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST;+ case "DONE":+ return Task_Status.DONE;+ case 5:+ case "FAILED":+ return Task_Status.FAILED;case 6:- case "DATA":- return Plan_ChangeDatabaseConfig_Type.DATA;+ case "CANCELED":+ return Task_Status.CANCELED;+ case 7:+ case "SKIPPED":+ return Task_Status.SKIPPED;case -1:case "UNRECOGNIZED":default:- return Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED;+ return Task_Status.UNRECOGNIZED;}}-export function plan_ChangeDatabaseConfig_TypeToJSON(object: Plan_ChangeDatabaseConfig_Type): string {+export function task_StatusToJSON(object: Task_Status): string {switch (object) {- case Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED:- return "TYPE_UNSPECIFIED";- case Plan_ChangeDatabaseConfig_Type.BASELINE:- return "BASELINE";- case Plan_ChangeDatabaseConfig_Type.MIGRATE:- return "MIGRATE";- case Plan_ChangeDatabaseConfig_Type.MIGRATE_SDL:- return "MIGRATE_SDL";- case Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST:- return "MIGRATE_GHOST";- case Plan_ChangeDatabaseConfig_Type.DATA:- return "DATA";- case Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED:+ case Task_Status.STATUS_UNSPECIFIED:+ return "STATUS_UNSPECIFIED";+ case Task_Status.NOT_STARTED:+ return "NOT_STARTED";+ case Task_Status.PENDING:+ return "PENDING";+ case Task_Status.RUNNING:+ return "RUNNING";+ case Task_Status.DONE:+ return "DONE";+ case Task_Status.FAILED:+ return "FAILED";+ case Task_Status.CANCELED:+ return "CANCELED";+ case Task_Status.SKIPPED:+ return "SKIPPED";+ case Task_Status.UNRECOGNIZED:default:return "UNRECOGNIZED";}}-export function plan_ChangeDatabaseConfig_TypeToNumber(object: Plan_ChangeDatabaseConfig_Type): number {+export function task_StatusToNumber(object: Task_Status): number {switch (object) {- case Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED:+ case Task_Status.STATUS_UNSPECIFIED:return 0;- case Plan_ChangeDatabaseConfig_Type.BASELINE:+ case Task_Status.NOT_STARTED:return 1;- case Plan_ChangeDatabaseConfig_Type.MIGRATE:+ case Task_Status.PENDING:return 2;- case Plan_ChangeDatabaseConfig_Type.MIGRATE_SDL:+ case Task_Status.RUNNING:return 3;- case Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST:+ case Task_Status.DONE:return 4;- case Plan_ChangeDatabaseConfig_Type.DATA:+ case Task_Status.FAILED:+ return 5;+ case Task_Status.CANCELED:return 6;- case Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED:+ case Task_Status.SKIPPED:+ return 7;+ case Task_Status.UNRECOGNIZED:default:return -1;}}-export interface Plan_ChangeDatabaseConfig_RollbackDetail {- /**- * rollback_from_task is the task from which the rollback SQL statement is generated for this task.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- */- rollbackFromTask: string;- /**- * rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.- * Format: projects/{project}/issues/{issue}- */- rollbackFromIssue: string;-}--export interface Plan_ChangeDatabaseConfig_GhostFlagsEntry {- key: string;- value: string;-}--export interface Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {- /**- * The database for keeping the backup data.- * Format: instances/{instance}/databases/{database}- */- database: string;-}--export interface Plan_ExportDataConfig {- /**- * The resource name of the target.- * Format: instances/{instance-id}/databases/{database-name}- */- target: string;- /**- * The resource name of the sheet.- * Format: projects/{project}/sheets/{sheet}- */- sheet: string;- /** The format of the exported file. */- format: ExportFormat;- /**- * The zip password provide by users.- * Leave it empty if no needs to encrypt the zip file.- */- password?: string | undefined;-}--export interface Plan_VCSSource {- vcsType: VCSType;- /**- * Optional.- * If present, we will update the pull request for rollout status.- * Format: projects/{project-ID}/vcsConnectors/{vcs-connector}- */- vcsConnector: string;- pullRequestUrl: string;-}--export interface ListPlanCheckRunsRequest {- /**- * The parent, which owns this collection of plan check runs.- * Format: projects/{project}/plans/{plan}- */- parent: string;- /**- * The maximum number of plan check runs to return. The service may return fewer than- * this value.- * If unspecified, at most 50 plans will be returned.- * The maximum value is 1000; values above 1000 will be coerced to 1000.- */- pageSize: number;- /**- * A page token, received from a previous `ListPlanCheckRuns` call.- * Provide this to retrieve the subsequent page.- *- * When paginating, all other parameters provided to `ListPlanCheckRuns` must match- * the call that provided the page token.- */- pageToken: string;-}--export interface ListPlanCheckRunsResponse {- /** The plan check runs from the specified request. */- planCheckRuns: PlanCheckRun[];- /**- * A token, which can be sent as `page_token` to retrieve the next page.- * If this field is omitted, there are no subsequent pages.- */- nextPageToken: string;-}--export interface RunPlanChecksRequest {- /**- * The plan to run plan checks.- * Format: projects/{project}/plans/{plan}- */- name: string;-}--export interface RunPlanChecksResponse {-}--export interface BatchRunTasksRequest {- /**- * The name of the parent of the tasks.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}- */- parent: string;- /**- * The tasks to run.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- */- tasks: string[];- reason: string;-}--export interface BatchRunTasksResponse {-}--export interface BatchSkipTasksRequest {- /**- * The name of the parent of the tasks.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}- */- parent: string;- /**- * The tasks to skip.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- */- tasks: string[];- reason: string;-}--export interface BatchSkipTasksResponse {-}--export interface BatchCancelTaskRunsRequest {- /**- * The name of the parent of the taskRuns.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- * Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage.- */- parent: string;- /**- * The taskRuns to cancel.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}- */- taskRuns: string[];- reason: string;-}--export interface BatchCancelTaskRunsResponse {-}--export interface PlanCheckRun {- /** Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} */- name: string;- /** The system-assigned, unique identifier for a resource. */- uid: string;- type: PlanCheckRun_Type;- status: PlanCheckRun_Status;- /** Format: instances/{instance}/databases/{database} */- target: string;- /** Format: project/{project}/sheets/{sheet} */- sheet: string;- results: PlanCheckRun_Result[];- /** error is set if the Status is FAILED. */- error: string;- createTime: Date | undefined;-}--export enum PlanCheckRun_Type {+export enum Task_Type {TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",- DATABASE_STATEMENT_FAKE_ADVISE = "DATABASE_STATEMENT_FAKE_ADVISE",- DATABASE_STATEMENT_COMPATIBILITY = "DATABASE_STATEMENT_COMPATIBILITY",- DATABASE_STATEMENT_ADVISE = "DATABASE_STATEMENT_ADVISE",- DATABASE_STATEMENT_TYPE = "DATABASE_STATEMENT_TYPE",- DATABASE_STATEMENT_SUMMARY_REPORT = "DATABASE_STATEMENT_SUMMARY_REPORT",- DATABASE_CONNECT = "DATABASE_CONNECT",- DATABASE_GHOST_SYNC = "DATABASE_GHOST_SYNC",+ GENERAL = "GENERAL",+ /** DATABASE_CREATE - use payload DatabaseCreate */+ DATABASE_CREATE = "DATABASE_CREATE",+ /** DATABASE_SCHEMA_BASELINE - use payload DatabaseSchemaBaseline */+ DATABASE_SCHEMA_BASELINE = "DATABASE_SCHEMA_BASELINE",+ /** DATABASE_SCHEMA_UPDATE - use payload DatabaseSchemaUpdate */+ DATABASE_SCHEMA_UPDATE = "DATABASE_SCHEMA_UPDATE",+ /** DATABASE_SCHEMA_UPDATE_SDL - use payload DatabaseSchemaUpdate */+ DATABASE_SCHEMA_UPDATE_SDL = "DATABASE_SCHEMA_UPDATE_SDL",+ /** DATABASE_SCHEMA_UPDATE_GHOST_SYNC - use payload DatabaseSchemaUpdate */+ DATABASE_SCHEMA_UPDATE_GHOST_SYNC = "DATABASE_SCHEMA_UPDATE_GHOST_SYNC",+ /** DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER - use payload nil */+ DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER = "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER",+ /** DATABASE_DATA_UPDATE - use payload DatabaseDataUpdate */+ DATABASE_DATA_UPDATE = "DATABASE_DATA_UPDATE",+ /** DATABASE_DATA_EXPORT - use payload DatabaseDataExport */+ DATABASE_DATA_EXPORT = "DATABASE_DATA_EXPORT",UNRECOGNIZED = "UNRECOGNIZED",}-export function planCheckRun_TypeFromJSON(object: any): PlanCheckRun_Type {+export function task_TypeFromJSON(object: any): Task_Type {switch (object) {case 0:case "TYPE_UNSPECIFIED":- return PlanCheckRun_Type.TYPE_UNSPECIFIED;+ return Task_Type.TYPE_UNSPECIFIED;case 1:- case "DATABASE_STATEMENT_FAKE_ADVISE":- return PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE;+ case "GENERAL":+ return Task_Type.GENERAL;case 2:- case "DATABASE_STATEMENT_COMPATIBILITY":- return PlanCheckRun_Type.DATABASE_STATEMENT_COMPATIBILITY;+ case "DATABASE_CREATE":+ return Task_Type.DATABASE_CREATE;case 3:- case "DATABASE_STATEMENT_ADVISE":- return PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE;+ case "DATABASE_SCHEMA_BASELINE":+ return Task_Type.DATABASE_SCHEMA_BASELINE;case 4:- case "DATABASE_STATEMENT_TYPE":- return PlanCheckRun_Type.DATABASE_STATEMENT_TYPE;+ case "DATABASE_SCHEMA_UPDATE":+ return Task_Type.DATABASE_SCHEMA_UPDATE;case 5:- case "DATABASE_STATEMENT_SUMMARY_REPORT":- return PlanCheckRun_Type.DATABASE_STATEMENT_SUMMARY_REPORT;+ case "DATABASE_SCHEMA_UPDATE_SDL":+ return Task_Type.DATABASE_SCHEMA_UPDATE_SDL;case 6:- case "DATABASE_CONNECT":- return PlanCheckRun_Type.DATABASE_CONNECT;+ case "DATABASE_SCHEMA_UPDATE_GHOST_SYNC":+ return Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC;case 7:- case "DATABASE_GHOST_SYNC":- return PlanCheckRun_Type.DATABASE_GHOST_SYNC;+ case "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER":+ return Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER;+ case 8:+ case "DATABASE_DATA_UPDATE":+ return Task_Type.DATABASE_DATA_UPDATE;+ case 12:+ case "DATABASE_DATA_EXPORT":+ return Task_Type.DATABASE_DATA_EXPORT;case -1:case "UNRECOGNIZED":default:- return PlanCheckRun_Type.UNRECOGNIZED;+ return Task_Type.UNRECOGNIZED;}}-export function planCheckRun_TypeToJSON(object: PlanCheckRun_Type): string {+export function task_TypeToJSON(object: Task_Type): string {switch (object) {- case PlanCheckRun_Type.TYPE_UNSPECIFIED:+ case Task_Type.TYPE_UNSPECIFIED:return "TYPE_UNSPECIFIED";- case PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE:- return "DATABASE_STATEMENT_FAKE_ADVISE";- case PlanCheckRun_Type.DATABASE_STATEMENT_COMPATIBILITY:- return "DATABASE_STATEMENT_COMPATIBILITY";- case PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE:- return "DATABASE_STATEMENT_ADVISE";- case PlanCheckRun_Type.DATABASE_STATEMENT_TYPE:- return "DATABASE_STATEMENT_TYPE";- case PlanCheckRun_Type.DATABASE_STATEMENT_SUMMARY_REPORT:- return "DATABASE_STATEMENT_SUMMARY_REPORT";- case PlanCheckRun_Type.DATABASE_CONNECT:- return "DATABASE_CONNECT";- case PlanCheckRun_Type.DATABASE_GHOST_SYNC:- return "DATABASE_GHOST_SYNC";- case PlanCheckRun_Type.UNRECOGNIZED:+ case Task_Type.GENERAL:+ return "GENERAL";+ case Task_Type.DATABASE_CREATE:+ return "DATABASE_CREATE";+ case Task_Type.DATABASE_SCHEMA_BASELINE:+ return "DATABASE_SCHEMA_BASELINE";+ case Task_Type.DATABASE_SCHEMA_UPDATE:+ return "DATABASE_SCHEMA_UPDATE";+ case Task_Type.DATABASE_SCHEMA_UPDATE_SDL:+ return "DATABASE_SCHEMA_UPDATE_SDL";+ case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC:+ return "DATABASE_SCHEMA_UPDATE_GHOST_SYNC";+ case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER:+ return "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER";+ case Task_Type.DATABASE_DATA_UPDATE:+ return "DATABASE_DATA_UPDATE";+ case Task_Type.DATABASE_DATA_EXPORT:+ return "DATABASE_DATA_EXPORT";+ case Task_Type.UNRECOGNIZED:default:return "UNRECOGNIZED";}}-export function planCheckRun_TypeToNumber(object: PlanCheckRun_Type): number {+export function task_TypeToNumber(object: Task_Type): number {switch (object) {- case PlanCheckRun_Type.TYPE_UNSPECIFIED:+ case Task_Type.TYPE_UNSPECIFIED:return 0;- case PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE:+ case Task_Type.GENERAL:return 1;- case PlanCheckRun_Type.DATABASE_STATEMENT_COMPATIBILITY:+ case Task_Type.DATABASE_CREATE:return 2;- case PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE:+ case Task_Type.DATABASE_SCHEMA_BASELINE:return 3;- case PlanCheckRun_Type.DATABASE_STATEMENT_TYPE:+ case Task_Type.DATABASE_SCHEMA_UPDATE:return 4;- case PlanCheckRun_Type.DATABASE_STATEMENT_SUMMARY_REPORT:+ case Task_Type.DATABASE_SCHEMA_UPDATE_SDL:return 5;- case PlanCheckRun_Type.DATABASE_CONNECT:+ case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC:return 6;- case PlanCheckRun_Type.DATABASE_GHOST_SYNC:+ case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER:return 7;- case PlanCheckRun_Type.UNRECOGNIZED:+ case Task_Type.DATABASE_DATA_UPDATE:+ return 8;+ case Task_Type.DATABASE_DATA_EXPORT:+ return 12;+ case Task_Type.UNRECOGNIZED:default:return -1;}}-export enum PlanCheckRun_Status {- STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",- RUNNING = "RUNNING",- DONE = "DONE",- FAILED = "FAILED",- CANCELED = "CANCELED",- UNRECOGNIZED = "UNRECOGNIZED",-}--export function planCheckRun_StatusFromJSON(object: any): PlanCheckRun_Status {- switch (object) {- case 0:- case "STATUS_UNSPECIFIED":- return PlanCheckRun_Status.STATUS_UNSPECIFIED;- case 1:- case "RUNNING":- return PlanCheckRun_Status.RUNNING;- case 2:- case "DONE":- return PlanCheckRun_Status.DONE;- case 3:- case "FAILED":- return PlanCheckRun_Status.FAILED;- case 4:- case "CANCELED":- return PlanCheckRun_Status.CANCELED;- case -1:- case "UNRECOGNIZED":- default:- return PlanCheckRun_Status.UNRECOGNIZED;- }+export interface Task_DatabaseCreate {+ /**+ * The project owning the database.+ * Format: projects/{project}+ */+ project: string;+ /** database name */+ database: string;+ /** table name */+ table: string;+ /** Format: projects/{project}/sheets/{sheet} */+ sheet: string;+ characterSet: string;+ collation: string;+ environment: string;+ labels: { [key: string]: string };}-export function planCheckRun_StatusToJSON(object: PlanCheckRun_Status): string {- switch (object) {- case PlanCheckRun_Status.STATUS_UNSPECIFIED:- return "STATUS_UNSPECIFIED";- case PlanCheckRun_Status.RUNNING:- return "RUNNING";- case PlanCheckRun_Status.DONE:- return "DONE";- case PlanCheckRun_Status.FAILED:- return "FAILED";- case PlanCheckRun_Status.CANCELED:- return "CANCELED";- case PlanCheckRun_Status.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }+export interface Task_DatabaseCreate_LabelsEntry {+ key: string;+ value: string;}-export function planCheckRun_StatusToNumber(object: PlanCheckRun_Status): number {- switch (object) {- case PlanCheckRun_Status.STATUS_UNSPECIFIED:- return 0;- case PlanCheckRun_Status.RUNNING:- return 1;- case PlanCheckRun_Status.DONE:- return 2;- case PlanCheckRun_Status.FAILED:- return 3;- case PlanCheckRun_Status.CANCELED:- return 4;- case PlanCheckRun_Status.UNRECOGNIZED:- default:- return -1;- }+export interface Task_DatabaseSchemaBaseline {+ schemaVersion: string;}-export interface PlanCheckRun_Result {- status: PlanCheckRun_Result_Status;- title: string;- content: string;- code: number;- sqlSummaryReport?: PlanCheckRun_Result_SqlSummaryReport | undefined;- sqlReviewReport?: PlanCheckRun_Result_SqlReviewReport | undefined;+export interface Task_DatabaseSchemaUpdate {+ /** Format: projects/{project}/sheets/{sheet} */+ sheet: string;+ schemaVersion: string;}-export enum PlanCheckRun_Result_Status {- STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",- ERROR = "ERROR",- WARNING = "WARNING",- SUCCESS = "SUCCESS",+export interface Task_DatabaseDataUpdate {+ /** Format: projects/{project}/sheets/{sheet} */+ sheet: string;+ schemaVersion: string;+ /** Build the rollback SQL if rollback_enabled. */+ rollbackEnabled: boolean;+ /** The status of the rollback SQL generation. */+ rollbackSqlStatus: Task_DatabaseDataUpdate_RollbackSqlStatus;+ rollbackError: string;+ /**+ * rollback_sheet is the resource name of+ * the sheet that stores the generated rollback SQL statement.+ * Format: projects/{project}/sheets/{sheet}+ */+ rollbackSheet: string;+ /**+ * rollback_from_issue is the resource name of the issue that+ * the rollback SQL statement is generated from.+ * Format: projects/{project}/issues/{issue}+ */+ rollbackFromIssue: string;+ /**+ * rollback_from_task is the resource name of the task that+ * the rollback SQL statement is generated from.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ */+ rollbackFromTask: string;+}++export enum Task_DatabaseDataUpdate_RollbackSqlStatus {+ ROLLBACK_SQL_STATUS_UNSPECIFIED = "ROLLBACK_SQL_STATUS_UNSPECIFIED",+ PENDING = "PENDING",+ DONE = "DONE",+ FAILED = "FAILED",UNRECOGNIZED = "UNRECOGNIZED",}-export function planCheckRun_Result_StatusFromJSON(object: any): PlanCheckRun_Result_Status {+export function task_DatabaseDataUpdate_RollbackSqlStatusFromJSON(+ object: any,+): Task_DatabaseDataUpdate_RollbackSqlStatus {switch (object) {case 0:- case "STATUS_UNSPECIFIED":- return PlanCheckRun_Result_Status.STATUS_UNSPECIFIED;+ case "ROLLBACK_SQL_STATUS_UNSPECIFIED":+ return Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED;case 1:- case "ERROR":- return PlanCheckRun_Result_Status.ERROR;+ case "PENDING":+ return Task_DatabaseDataUpdate_RollbackSqlStatus.PENDING;case 2:- case "WARNING":- return PlanCheckRun_Result_Status.WARNING;+ case "DONE":+ return Task_DatabaseDataUpdate_RollbackSqlStatus.DONE;case 3:- case "SUCCESS":- return PlanCheckRun_Result_Status.SUCCESS;+ case "FAILED":+ return Task_DatabaseDataUpdate_RollbackSqlStatus.FAILED;case -1:case "UNRECOGNIZED":default:- return PlanCheckRun_Result_Status.UNRECOGNIZED;+ return Task_DatabaseDataUpdate_RollbackSqlStatus.UNRECOGNIZED;}}-export function planCheckRun_Result_StatusToJSON(object: PlanCheckRun_Result_Status): string {+export function task_DatabaseDataUpdate_RollbackSqlStatusToJSON(+ object: Task_DatabaseDataUpdate_RollbackSqlStatus,+): string {switch (object) {- case PlanCheckRun_Result_Status.STATUS_UNSPECIFIED:- return "STATUS_UNSPECIFIED";- case PlanCheckRun_Result_Status.ERROR:- return "ERROR";- case PlanCheckRun_Result_Status.WARNING:- return "WARNING";- case PlanCheckRun_Result_Status.SUCCESS:- return "SUCCESS";- case PlanCheckRun_Result_Status.UNRECOGNIZED:+ case Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED:+ return "ROLLBACK_SQL_STATUS_UNSPECIFIED";+ case Task_DatabaseDataUpdate_RollbackSqlStatus.PENDING:+ return "PENDING";+ case Task_DatabaseDataUpdate_RollbackSqlStatus.DONE:+ return "DONE";+ case Task_DatabaseDataUpdate_RollbackSqlStatus.FAILED:+ return "FAILED";+ case Task_DatabaseDataUpdate_RollbackSqlStatus.UNRECOGNIZED:default:return "UNRECOGNIZED";}}-export function planCheckRun_Result_StatusToNumber(object: PlanCheckRun_Result_Status): number {+export function task_DatabaseDataUpdate_RollbackSqlStatusToNumber(+ object: Task_DatabaseDataUpdate_RollbackSqlStatus,+): number {switch (object) {- case PlanCheckRun_Result_Status.STATUS_UNSPECIFIED:+ case Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED:return 0;- case PlanCheckRun_Result_Status.ERROR:+ case Task_DatabaseDataUpdate_RollbackSqlStatus.PENDING:return 1;- case PlanCheckRun_Result_Status.WARNING:+ case Task_DatabaseDataUpdate_RollbackSqlStatus.DONE:return 2;- case PlanCheckRun_Result_Status.SUCCESS:+ case Task_DatabaseDataUpdate_RollbackSqlStatus.FAILED:return 3;- case PlanCheckRun_Result_Status.UNRECOGNIZED:+ case Task_DatabaseDataUpdate_RollbackSqlStatus.UNRECOGNIZED:default:return -1;}}-export interface PlanCheckRun_Result_SqlSummaryReport {- code: number;- /** statement_types are the types of statements that are found in the sql. */- statementTypes: string[];- affectedRows: number;- changedResources: ChangedResources | undefined;-}--export interface PlanCheckRun_Result_SqlReviewReport {- line: number;- column: number;- detail: string;- /** Code from sql review. */- code: number;-}--export interface GetRolloutRequest {- /**- * The name of the rollout to retrieve.- * Format: projects/{project}/rollouts/{rollout}- */- name: string;-}--export interface CreateRolloutRequest {- /**- * The parent project where this rollout will be created.- * Format: projects/{project}- */- parent: string;- /** The rollout to create. */- rollout: Rollout | undefined;-}--export interface PreviewRolloutRequest {- /**- * The name of the project.- * Format: projects/{project}- */- project: string;- /** The plan used to preview rollout. */- plan: Plan | undefined;-}--export interface ListTaskRunsRequest {- /**- * The parent, which owns this collection of plans.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- * Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout.- */- parent: string;+export interface Task_DatabaseDataExport {/**- * The maximum number of taskRuns to return. The service may return fewer than- * this value.- * If unspecified, at most 50 taskRuns will be returned.- * The maximum value is 1000; values above 1000 will be coerced to 1000.+ * The resource name of the target.+ * Format: instances/{instance-id}/databases/{database-name}*/- pageSize: number;+ target: string;/**- * A page token, received from a previous `ListRolloutTaskRuns` call.- * Provide this to retrieve the subsequent page.- *- * When paginating, all other parameters provided to `ListRolloutTaskRuns` must match- * the call that provided the page token.+ * The resource name of the sheet.+ * Format: projects/{project}/sheets/{sheet}*/- pageToken: string;-}--export interface ListTaskRunsResponse {- /** The taskRuns from the specified request. */- taskRuns: TaskRun[];+ sheet: string;+ /** The format of the exported file. */+ format: ExportFormat;/**- * A token, which can be sent as `page_token` to retrieve the next page.- * If this field is omitted, there are no subsequent pages.+ * The zip password provide by users.+ * Leave it empty if no needs to encrypt the zip file.*/- nextPageToken: string;+ password?: string | undefined;}-export interface GetTaskRunLogRequest {+export interface TaskRun {/** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} */- parent: string;-}--export interface Rollout {- /**- * The resource name of the rollout.- * Format: projects/{project}/rollouts/{rollout}- */- name: string;- /** The system-assigned, unique identifier for a resource. */- uid: string;- /**- * The plan that this rollout is based on.- * Format: projects/{project}/plans/{plan}- */- plan: string;- title: string;- /** stages and thus tasks of the rollout. */- stages: Stage[];-}--export interface Stage {- /** Format: projects/{project}/rollouts/{rollout}/stages/{stage} */- name: string;- /** The system-assigned, unique identifier for a resource. */- uid: string;- title: string;- tasks: Task[];-}--export interface Task {- /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} */name: string;/** The system-assigned, unique identifier for a resource. */uid: string;+ /** Format: user/[email protected] */+ creator: string;+ /** Format: user/[email protected] */+ updater: string;+ createTime: Date | undefined;+ updateTime: Date | undefined;title: string;+ status: TaskRun_Status;+ /** Below are the results of a task run. */+ detail: string;/**- * A UUID4 string that uniquely identifies the Spec.- * Could be empty if the rollout of the task does not have an associating plan.- */- specId: string;- /** Status is the status of the task. */- status: Task_Status;- skippedReason: string;- type: Task_Type;- /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} */- dependsOnTasks: string[];- /**- * Format: instances/{instance} if the task is DatabaseCreate.- * Format: instances/{instance}/databases/{database}+ * The resource name of the change history+ * Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}*/- target: string;- databaseCreate?: Task_DatabaseCreate | undefined;- databaseSchemaBaseline?: Task_DatabaseSchemaBaseline | undefined;- databaseSchemaUpdate?: Task_DatabaseSchemaUpdate | undefined;- databaseDataUpdate?: Task_DatabaseDataUpdate | undefined;- databaseDataExport?: Task_DatabaseDataExport | undefined;+ changeHistory: string;+ schemaVersion: string;+ executionStatus: TaskRun_ExecutionStatus;+ /** Last execution status update timestamp. */+ executionStatusUpdateTime: Date | undefined;+ executionDetail: TaskRun_ExecutionDetail | undefined;+ startTime: Date | undefined;+ exportArchiveStatus: TaskRun_ExportArchiveStatus;}-export enum Task_Status {+export enum TaskRun_Status {STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",- NOT_STARTED = "NOT_STARTED",PENDING = "PENDING",RUNNING = "RUNNING",DONE = "DONE",FAILED = "FAILED",CANCELED = "CANCELED",- SKIPPED = "SKIPPED",UNRECOGNIZED = "UNRECOGNIZED",}-export function task_StatusFromJSON(object: any): Task_Status {+export function taskRun_StatusFromJSON(object: any): TaskRun_Status {switch (object) {case 0:case "STATUS_UNSPECIFIED":- return Task_Status.STATUS_UNSPECIFIED;+ return TaskRun_Status.STATUS_UNSPECIFIED;case 1:- case "NOT_STARTED":- return Task_Status.NOT_STARTED;- case 2:case "PENDING":- return Task_Status.PENDING;- case 3:+ return TaskRun_Status.PENDING;+ case 2:case "RUNNING":- return Task_Status.RUNNING;- case 4:+ return TaskRun_Status.RUNNING;+ case 3:case "DONE":- return Task_Status.DONE;- case 5:+ return TaskRun_Status.DONE;+ case 4:case "FAILED":- return Task_Status.FAILED;- case 6:+ return TaskRun_Status.FAILED;+ case 5:case "CANCELED":- return Task_Status.CANCELED;- case 7:- case "SKIPPED":- return Task_Status.SKIPPED;+ return TaskRun_Status.CANCELED;case -1:case "UNRECOGNIZED":default:- return Task_Status.UNRECOGNIZED;+ return TaskRun_Status.UNRECOGNIZED;}}-export function task_StatusToJSON(object: Task_Status): string {+export function taskRun_StatusToJSON(object: TaskRun_Status): string {switch (object) {- case Task_Status.STATUS_UNSPECIFIED:+ case TaskRun_Status.STATUS_UNSPECIFIED:return "STATUS_UNSPECIFIED";- case Task_Status.NOT_STARTED:- return "NOT_STARTED";- case Task_Status.PENDING:+ case TaskRun_Status.PENDING:return "PENDING";- case Task_Status.RUNNING:+ case TaskRun_Status.RUNNING:return "RUNNING";- case Task_Status.DONE:+ case TaskRun_Status.DONE:return "DONE";- case Task_Status.FAILED:+ case TaskRun_Status.FAILED:return "FAILED";- case Task_Status.CANCELED:+ case TaskRun_Status.CANCELED:return "CANCELED";- case Task_Status.SKIPPED:- return "SKIPPED";- case Task_Status.UNRECOGNIZED:+ case TaskRun_Status.UNRECOGNIZED:default:return "UNRECOGNIZED";}}-export function task_StatusToNumber(object: Task_Status): number {+export function taskRun_StatusToNumber(object: TaskRun_Status): number {switch (object) {- case Task_Status.STATUS_UNSPECIFIED:+ case TaskRun_Status.STATUS_UNSPECIFIED:return 0;- case Task_Status.NOT_STARTED:+ case TaskRun_Status.PENDING:return 1;- case Task_Status.PENDING:+ case TaskRun_Status.RUNNING:return 2;- case Task_Status.RUNNING:+ case TaskRun_Status.DONE:return 3;- case Task_Status.DONE:+ case TaskRun_Status.FAILED:return 4;- case Task_Status.FAILED:+ case TaskRun_Status.CANCELED:return 5;- case Task_Status.CANCELED:- return 6;- case Task_Status.SKIPPED:- return 7;- case Task_Status.UNRECOGNIZED:+ case TaskRun_Status.UNRECOGNIZED:default:return -1;}}-export enum Task_Type {- TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",- GENERAL = "GENERAL",- /** DATABASE_CREATE - use payload DatabaseCreate */- DATABASE_CREATE = "DATABASE_CREATE",- /** DATABASE_SCHEMA_BASELINE - use payload DatabaseSchemaBaseline */- DATABASE_SCHEMA_BASELINE = "DATABASE_SCHEMA_BASELINE",- /** DATABASE_SCHEMA_UPDATE - use payload DatabaseSchemaUpdate */- DATABASE_SCHEMA_UPDATE = "DATABASE_SCHEMA_UPDATE",- /** DATABASE_SCHEMA_UPDATE_SDL - use payload DatabaseSchemaUpdate */- DATABASE_SCHEMA_UPDATE_SDL = "DATABASE_SCHEMA_UPDATE_SDL",- /** DATABASE_SCHEMA_UPDATE_GHOST_SYNC - use payload DatabaseSchemaUpdate */- DATABASE_SCHEMA_UPDATE_GHOST_SYNC = "DATABASE_SCHEMA_UPDATE_GHOST_SYNC",- /** DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER - use payload nil */- DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER = "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER",- /** DATABASE_DATA_UPDATE - use payload DatabaseDataUpdate */- DATABASE_DATA_UPDATE = "DATABASE_DATA_UPDATE",- /** DATABASE_DATA_EXPORT - use payload DatabaseDataExport */- DATABASE_DATA_EXPORT = "DATABASE_DATA_EXPORT",+export enum TaskRun_ExecutionStatus {+ EXECUTION_STATUS_UNSPECIFIED = "EXECUTION_STATUS_UNSPECIFIED",+ PRE_EXECUTING = "PRE_EXECUTING",+ EXECUTING = "EXECUTING",+ POST_EXECUTING = "POST_EXECUTING",UNRECOGNIZED = "UNRECOGNIZED",}-export function task_TypeFromJSON(object: any): Task_Type {+export function taskRun_ExecutionStatusFromJSON(object: any): TaskRun_ExecutionStatus {switch (object) {case 0:- case "TYPE_UNSPECIFIED":- return Task_Type.TYPE_UNSPECIFIED;+ case "EXECUTION_STATUS_UNSPECIFIED":+ return TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED;case 1:- case "GENERAL":- return Task_Type.GENERAL;+ case "PRE_EXECUTING":+ return TaskRun_ExecutionStatus.PRE_EXECUTING;case 2:- case "DATABASE_CREATE":- return Task_Type.DATABASE_CREATE;+ case "EXECUTING":+ return TaskRun_ExecutionStatus.EXECUTING;case 3:- case "DATABASE_SCHEMA_BASELINE":- return Task_Type.DATABASE_SCHEMA_BASELINE;- case 4:- case "DATABASE_SCHEMA_UPDATE":- return Task_Type.DATABASE_SCHEMA_UPDATE;- case 5:- case "DATABASE_SCHEMA_UPDATE_SDL":- return Task_Type.DATABASE_SCHEMA_UPDATE_SDL;- case 6:- case "DATABASE_SCHEMA_UPDATE_GHOST_SYNC":- return Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC;- case 7:- case "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER":- return Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER;- case 8:- case "DATABASE_DATA_UPDATE":- return Task_Type.DATABASE_DATA_UPDATE;- case 12:- case "DATABASE_DATA_EXPORT":- return Task_Type.DATABASE_DATA_EXPORT;+ case "POST_EXECUTING":+ return TaskRun_ExecutionStatus.POST_EXECUTING;case -1:case "UNRECOGNIZED":default:- return Task_Type.UNRECOGNIZED;+ return TaskRun_ExecutionStatus.UNRECOGNIZED;}}-export function task_TypeToJSON(object: Task_Type): string {+export function taskRun_ExecutionStatusToJSON(object: TaskRun_ExecutionStatus): string {switch (object) {- case Task_Type.TYPE_UNSPECIFIED:- return "TYPE_UNSPECIFIED";- case Task_Type.GENERAL:- return "GENERAL";- case Task_Type.DATABASE_CREATE:- return "DATABASE_CREATE";- case Task_Type.DATABASE_SCHEMA_BASELINE:- return "DATABASE_SCHEMA_BASELINE";- case Task_Type.DATABASE_SCHEMA_UPDATE:- return "DATABASE_SCHEMA_UPDATE";- case Task_Type.DATABASE_SCHEMA_UPDATE_SDL:- return "DATABASE_SCHEMA_UPDATE_SDL";- case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC:- return "DATABASE_SCHEMA_UPDATE_GHOST_SYNC";- case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER:- return "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER";- case Task_Type.DATABASE_DATA_UPDATE:- return "DATABASE_DATA_UPDATE";- case Task_Type.DATABASE_DATA_EXPORT:- return "DATABASE_DATA_EXPORT";- case Task_Type.UNRECOGNIZED:+ case TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:+ return "EXECUTION_STATUS_UNSPECIFIED";+ case TaskRun_ExecutionStatus.PRE_EXECUTING:+ return "PRE_EXECUTING";+ case TaskRun_ExecutionStatus.EXECUTING:+ return "EXECUTING";+ case TaskRun_ExecutionStatus.POST_EXECUTING:+ return "POST_EXECUTING";+ case TaskRun_ExecutionStatus.UNRECOGNIZED:default:return "UNRECOGNIZED";}}-export function task_TypeToNumber(object: Task_Type): number {+export function taskRun_ExecutionStatusToNumber(object: TaskRun_ExecutionStatus): number {switch (object) {- case Task_Type.TYPE_UNSPECIFIED:+ case TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:return 0;- case Task_Type.GENERAL:+ case TaskRun_ExecutionStatus.PRE_EXECUTING:return 1;- case Task_Type.DATABASE_CREATE:+ case TaskRun_ExecutionStatus.EXECUTING:return 2;- case Task_Type.DATABASE_SCHEMA_BASELINE:+ case TaskRun_ExecutionStatus.POST_EXECUTING:return 3;- case Task_Type.DATABASE_SCHEMA_UPDATE:- return 4;- case Task_Type.DATABASE_SCHEMA_UPDATE_SDL:- return 5;- case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC:- return 6;- case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER:- return 7;- case Task_Type.DATABASE_DATA_UPDATE:- return 8;- case Task_Type.DATABASE_DATA_EXPORT:- return 12;- case Task_Type.UNRECOGNIZED:+ case TaskRun_ExecutionStatus.UNRECOGNIZED:default:return -1;}}-export interface Task_DatabaseCreate {- /**- * The project owning the database.- * Format: projects/{project}- */- project: string;- /** database name */- database: string;- /** table name */- table: string;- /** Format: projects/{project}/sheets/{sheet} */- sheet: string;- characterSet: string;- collation: string;- environment: string;- labels: { [key: string]: string };-}--export interface Task_DatabaseCreate_LabelsEntry {- key: string;- value: string;-}--export interface Task_DatabaseSchemaBaseline {- schemaVersion: string;-}--export interface Task_DatabaseSchemaUpdate {- /** Format: projects/{project}/sheets/{sheet} */- sheet: string;- schemaVersion: string;-}--export interface Task_DatabaseDataUpdate {- /** Format: projects/{project}/sheets/{sheet} */- sheet: string;- schemaVersion: string;- /** Build the rollback SQL if rollback_enabled. */- rollbackEnabled: boolean;- /** The status of the rollback SQL generation. */- rollbackSqlStatus: Task_DatabaseDataUpdate_RollbackSqlStatus;- rollbackError: string;- /**- * rollback_sheet is the resource name of- * the sheet that stores the generated rollback SQL statement.- * Format: projects/{project}/sheets/{sheet}- */- rollbackSheet: string;- /**- * rollback_from_issue is the resource name of the issue that- * the rollback SQL statement is generated from.- * Format: projects/{project}/issues/{issue}- */- rollbackFromIssue: string;- /**- * rollback_from_task is the resource name of the task that- * the rollback SQL statement is generated from.- * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- */- rollbackFromTask: string;-}--export enum Task_DatabaseDataUpdate_RollbackSqlStatus {- ROLLBACK_SQL_STATUS_UNSPECIFIED = "ROLLBACK_SQL_STATUS_UNSPECIFIED",- PENDING = "PENDING",- DONE = "DONE",- FAILED = "FAILED",+export enum TaskRun_ExportArchiveStatus {+ EXPORT_ARCHIVE_STATUS_UNSPECIFIED = "EXPORT_ARCHIVE_STATUS_UNSPECIFIED",+ READY = "READY",+ EXPORTED = "EXPORTED",UNRECOGNIZED = "UNRECOGNIZED",}-export function task_DatabaseDataUpdate_RollbackSqlStatusFromJSON(- object: any,-): Task_DatabaseDataUpdate_RollbackSqlStatus {+export function taskRun_ExportArchiveStatusFromJSON(object: any): TaskRun_ExportArchiveStatus {switch (object) {case 0:- case "ROLLBACK_SQL_STATUS_UNSPECIFIED":- return Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED;+ case "EXPORT_ARCHIVE_STATUS_UNSPECIFIED":+ return TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED;case 1:- case "PENDING":- return Task_DatabaseDataUpdate_RollbackSqlStatus.PENDING;+ case "READY":+ return TaskRun_ExportArchiveStatus.READY;case 2:- case "DONE":- return Task_DatabaseDataUpdate_RollbackSqlStatus.DONE;- case 3:- case "FAILED":- return Task_DatabaseDataUpdate_RollbackSqlStatus.FAILED;+ case "EXPORTED":+ return TaskRun_ExportArchiveStatus.EXPORTED;case -1:case "UNRECOGNIZED":default:- return Task_DatabaseDataUpdate_RollbackSqlStatus.UNRECOGNIZED;+ return TaskRun_ExportArchiveStatus.UNRECOGNIZED;}}-export function task_DatabaseDataUpdate_RollbackSqlStatusToJSON(- object: Task_DatabaseDataUpdate_RollbackSqlStatus,-): string {- switch (object) {- case Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED:- return "ROLLBACK_SQL_STATUS_UNSPECIFIED";- case Task_DatabaseDataUpdate_RollbackSqlStatus.PENDING:- return "PENDING";- case Task_DatabaseDataUpdate_RollbackSqlStatus.DONE:- return "DONE";- case Task_DatabaseDataUpdate_RollbackSqlStatus.FAILED:- return "FAILED";- case Task_DatabaseDataUpdate_RollbackSqlStatus.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export function task_DatabaseDataUpdate_RollbackSqlStatusToNumber(- object: Task_DatabaseDataUpdate_RollbackSqlStatus,-): number {- switch (object) {- case Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED:- return 0;- case Task_DatabaseDataUpdate_RollbackSqlStatus.PENDING:- return 1;- case Task_DatabaseDataUpdate_RollbackSqlStatus.DONE:- return 2;- case Task_DatabaseDataUpdate_RollbackSqlStatus.FAILED:- return 3;- case Task_DatabaseDataUpdate_RollbackSqlStatus.UNRECOGNIZED:- default:- return -1;- }-}--export interface Task_DatabaseDataExport {- /**- * The resource name of the target.- * Format: instances/{instance-id}/databases/{database-name}- */- target: string;- /**- * The resource name of the sheet.- * Format: projects/{project}/sheets/{sheet}- */- sheet: string;- /** The format of the exported file. */- format: ExportFormat;- /**- * The zip password provide by users.- * Leave it empty if no needs to encrypt the zip file.- */- password?: string | undefined;-}--export interface TaskRun {- /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} */- name: string;- /** The system-assigned, unique identifier for a resource. */- uid: string;- /** Format: user/[email protected] */- creator: string;- /** Format: user/[email protected] */- updater: string;- createTime: Date | undefined;- updateTime: Date | undefined;- title: string;- status: TaskRun_Status;- /** Below are the results of a task run. */- detail: string;- /**- * The resource name of the change history- * Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}- */- changeHistory: string;- schemaVersion: string;- executionStatus: TaskRun_ExecutionStatus;- /** Last execution status update timestamp. */- executionStatusUpdateTime: Date | undefined;- executionDetail: TaskRun_ExecutionDetail | undefined;- startTime: Date | undefined;- exportArchiveStatus: TaskRun_ExportArchiveStatus;-}--export enum TaskRun_Status {- STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",- PENDING = "PENDING",- RUNNING = "RUNNING",- DONE = "DONE",- FAILED = "FAILED",- CANCELED = "CANCELED",- UNRECOGNIZED = "UNRECOGNIZED",-}--export function taskRun_StatusFromJSON(object: any): TaskRun_Status {- switch (object) {- case 0:- case "STATUS_UNSPECIFIED":- return TaskRun_Status.STATUS_UNSPECIFIED;- case 1:- case "PENDING":- return TaskRun_Status.PENDING;- case 2:- case "RUNNING":- return TaskRun_Status.RUNNING;- case 3:- case "DONE":- return TaskRun_Status.DONE;- case 4:- case "FAILED":- return TaskRun_Status.FAILED;- case 5:- case "CANCELED":- return TaskRun_Status.CANCELED;- case -1:- case "UNRECOGNIZED":- default:- return TaskRun_Status.UNRECOGNIZED;- }-}--export function taskRun_StatusToJSON(object: TaskRun_Status): string {- switch (object) {- case TaskRun_Status.STATUS_UNSPECIFIED:- return "STATUS_UNSPECIFIED";- case TaskRun_Status.PENDING:- return "PENDING";- case TaskRun_Status.RUNNING:- return "RUNNING";- case TaskRun_Status.DONE:- return "DONE";- case TaskRun_Status.FAILED:- return "FAILED";- case TaskRun_Status.CANCELED:- return "CANCELED";- case TaskRun_Status.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export function taskRun_StatusToNumber(object: TaskRun_Status): number {- switch (object) {- case TaskRun_Status.STATUS_UNSPECIFIED:- return 0;- case TaskRun_Status.PENDING:- return 1;- case TaskRun_Status.RUNNING:- return 2;- case TaskRun_Status.DONE:- return 3;- case TaskRun_Status.FAILED:- return 4;- case TaskRun_Status.CANCELED:- return 5;- case TaskRun_Status.UNRECOGNIZED:- default:- return -1;- }-}--export enum TaskRun_ExecutionStatus {- EXECUTION_STATUS_UNSPECIFIED = "EXECUTION_STATUS_UNSPECIFIED",- PRE_EXECUTING = "PRE_EXECUTING",- EXECUTING = "EXECUTING",- POST_EXECUTING = "POST_EXECUTING",- UNRECOGNIZED = "UNRECOGNIZED",-}--export function taskRun_ExecutionStatusFromJSON(object: any): TaskRun_ExecutionStatus {- switch (object) {- case 0:- case "EXECUTION_STATUS_UNSPECIFIED":- return TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED;- case 1:- case "PRE_EXECUTING":- return TaskRun_ExecutionStatus.PRE_EXECUTING;- case 2:- case "EXECUTING":- return TaskRun_ExecutionStatus.EXECUTING;- case 3:- case "POST_EXECUTING":- return TaskRun_ExecutionStatus.POST_EXECUTING;- case -1:- case "UNRECOGNIZED":- default:- return TaskRun_ExecutionStatus.UNRECOGNIZED;- }-}--export function taskRun_ExecutionStatusToJSON(object: TaskRun_ExecutionStatus): string {- switch (object) {- case TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:- return "EXECUTION_STATUS_UNSPECIFIED";- case TaskRun_ExecutionStatus.PRE_EXECUTING:- return "PRE_EXECUTING";- case TaskRun_ExecutionStatus.EXECUTING:- return "EXECUTING";- case TaskRun_ExecutionStatus.POST_EXECUTING:- return "POST_EXECUTING";- case TaskRun_ExecutionStatus.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--export function taskRun_ExecutionStatusToNumber(object: TaskRun_ExecutionStatus): number {- switch (object) {- case TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:- return 0;- case TaskRun_ExecutionStatus.PRE_EXECUTING:- return 1;- case TaskRun_ExecutionStatus.EXECUTING:- return 2;- case TaskRun_ExecutionStatus.POST_EXECUTING:- return 3;- case TaskRun_ExecutionStatus.UNRECOGNIZED:- default:- return -1;- }-}--export enum TaskRun_ExportArchiveStatus {- EXPORT_ARCHIVE_STATUS_UNSPECIFIED = "EXPORT_ARCHIVE_STATUS_UNSPECIFIED",- READY = "READY",- EXPORTED = "EXPORTED",- UNRECOGNIZED = "UNRECOGNIZED",-}--export function taskRun_ExportArchiveStatusFromJSON(object: any): TaskRun_ExportArchiveStatus {- switch (object) {- case 0:- case "EXPORT_ARCHIVE_STATUS_UNSPECIFIED":- return TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED;- case 1:- case "READY":- return TaskRun_ExportArchiveStatus.READY;- case 2:- case "EXPORTED":- return TaskRun_ExportArchiveStatus.EXPORTED;- case -1:- case "UNRECOGNIZED":- default:- return TaskRun_ExportArchiveStatus.UNRECOGNIZED;- }-}--export function taskRun_ExportArchiveStatusToJSON(object: TaskRun_ExportArchiveStatus): string {+export function taskRun_ExportArchiveStatusToJSON(object: TaskRun_ExportArchiveStatus): string {switch (object) {case TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED:return "EXPORT_ARCHIVE_STATUS_UNSPECIFIED";@@ -1507,85 +867,28 @@ export interface TaskRunLogEntry_CommandExecute_CommandResponse {allAffectedRows: number[];}-function createBaseGetPlanRequest(): GetPlanRequest {- return { name: "" };+function createBaseBatchRunTasksRequest(): BatchRunTasksRequest {+ return { parent: "", tasks: [], reason: "" };}-export const GetPlanRequest = {- encode(message: GetPlanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);+export const BatchRunTasksRequest = {+ encode(message: BatchRunTasksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);}- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): GetPlanRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetPlanRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): GetPlanRequest {- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };- },-- toJSON(message: GetPlanRequest): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- return obj;- },-- create(base?: DeepPartial<GetPlanRequest>): GetPlanRequest {- return GetPlanRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<GetPlanRequest>): GetPlanRequest {- const message = createBaseGetPlanRequest();- message.name = object.name ?? "";- return message;- },-};--function createBaseListPlansRequest(): ListPlansRequest {- return { parent: "", pageSize: 0, pageToken: "" };-}--export const ListPlansRequest = {- encode(message: ListPlansRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.pageSize !== 0) {- writer.uint32(16).int32(message.pageSize);+ for (const v of message.tasks) {+ writer.uint32(18).string(v!);}- if (message.pageToken !== "") {- writer.uint32(26).string(message.pageToken);+ if (message.reason !== "") {+ writer.uint32(26).string(message.reason);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListPlansRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): BatchRunTasksRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListPlansRequest();+ const message = createBaseBatchRunTasksRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -1597,18 +900,18 @@ export const ListPlansRequest = {message.parent = reader.string();continue;case 2:- if (tag !== 16) {+ if (tag !== 18) {break;}- message.pageSize = reader.int32();+ message.tasks.push(reader.string());continue;case 3:if (tag !== 26) {break;}- message.pageToken = reader.string();+ message.reason = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -1619,76 +922,56 @@ export const ListPlansRequest = {return message;},- fromJSON(object: any): ListPlansRequest {+ fromJSON(object: any): BatchRunTasksRequest {return {parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,- pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",+ tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => globalThis.String(e)) : [],+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",};},- toJSON(message: ListPlansRequest): unknown {+ toJSON(message: BatchRunTasksRequest): unknown {const obj: any = {};if (message.parent !== "") {obj.parent = message.parent;}- if (message.pageSize !== 0) {- obj.pageSize = Math.round(message.pageSize);+ if (message.tasks?.length) {+ obj.tasks = message.tasks;}- if (message.pageToken !== "") {- obj.pageToken = message.pageToken;+ if (message.reason !== "") {+ obj.reason = message.reason;}return obj;},- create(base?: DeepPartial<ListPlansRequest>): ListPlansRequest {- return ListPlansRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<BatchRunTasksRequest>): BatchRunTasksRequest {+ return BatchRunTasksRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListPlansRequest>): ListPlansRequest {- const message = createBaseListPlansRequest();+ fromPartial(object: DeepPartial<BatchRunTasksRequest>): BatchRunTasksRequest {+ const message = createBaseBatchRunTasksRequest();message.parent = object.parent ?? "";- message.pageSize = object.pageSize ?? 0;- message.pageToken = object.pageToken ?? "";+ message.tasks = object.tasks?.map((e) => e) || [];+ message.reason = object.reason ?? "";return message;},};-function createBaseListPlansResponse(): ListPlansResponse {- return { plans: [], nextPageToken: "" };+function createBaseBatchRunTasksResponse(): BatchRunTasksResponse {+ return {};}-export const ListPlansResponse = {- encode(message: ListPlansResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.plans) {- Plan.encode(v!, writer.uint32(10).fork()).ldelim();- }- if (message.nextPageToken !== "") {- writer.uint32(18).string(message.nextPageToken);- }+export const BatchRunTasksResponse = {+ encode(_: BatchRunTasksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListPlansResponse {+ decode(input: _m0.Reader | Uint8Array, length?: number): BatchRunTasksResponse {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListPlansResponse();+ const message = createBaseBatchRunTasksResponse();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.plans.push(Plan.decode(reader, reader.uint32()));- continue;- case 2:- if (tag !== 18) {- break;- }-- message.nextPageToken = reader.string();- continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -1698,54 +981,46 @@ export const ListPlansResponse = {return message;},- fromJSON(object: any): ListPlansResponse {- return {- plans: globalThis.Array.isArray(object?.plans) ? object.plans.map((e: any) => Plan.fromJSON(e)) : [],- nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",- };+ fromJSON(_: any): BatchRunTasksResponse {+ return {};},- toJSON(message: ListPlansResponse): unknown {+ toJSON(_: BatchRunTasksResponse): unknown {const obj: any = {};- if (message.plans?.length) {- obj.plans = message.plans.map((e) => Plan.toJSON(e));- }- if (message.nextPageToken !== "") {- obj.nextPageToken = message.nextPageToken;- }return obj;},- create(base?: DeepPartial<ListPlansResponse>): ListPlansResponse {- return ListPlansResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<BatchRunTasksResponse>): BatchRunTasksResponse {+ return BatchRunTasksResponse.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListPlansResponse>): ListPlansResponse {- const message = createBaseListPlansResponse();- message.plans = object.plans?.map((e) => Plan.fromPartial(e)) || [];- message.nextPageToken = object.nextPageToken ?? "";+ fromPartial(_: DeepPartial<BatchRunTasksResponse>): BatchRunTasksResponse {+ const message = createBaseBatchRunTasksResponse();return message;},};-function createBaseCreatePlanRequest(): CreatePlanRequest {- return { parent: "", plan: undefined };+function createBaseBatchSkipTasksRequest(): BatchSkipTasksRequest {+ return { parent: "", tasks: [], reason: "" };}-export const CreatePlanRequest = {- encode(message: CreatePlanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const BatchSkipTasksRequest = {+ encode(message: BatchSkipTasksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.parent !== "") {writer.uint32(10).string(message.parent);}- if (message.plan !== undefined) {- Plan.encode(message.plan, writer.uint32(18).fork()).ldelim();+ for (const v of message.tasks) {+ writer.uint32(18).string(v!);+ }+ if (message.reason !== "") {+ writer.uint32(26).string(message.reason);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): CreatePlanRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): BatchSkipTasksRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseCreatePlanRequest();+ const message = createBaseBatchSkipTasksRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -1761,7 +1036,14 @@ export const CreatePlanRequest = {break;}- message.plan = Plan.decode(reader, reader.uint32());+ message.tasks.push(reader.string());+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.reason = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -1772,71 +1054,56 @@ export const CreatePlanRequest = {return message;},- fromJSON(object: any): CreatePlanRequest {+ fromJSON(object: any): BatchSkipTasksRequest {return {parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,+ tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => globalThis.String(e)) : [],+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",};},- toJSON(message: CreatePlanRequest): unknown {+ toJSON(message: BatchSkipTasksRequest): unknown {const obj: any = {};if (message.parent !== "") {obj.parent = message.parent;}- if (message.plan !== undefined) {- obj.plan = Plan.toJSON(message.plan);+ if (message.tasks?.length) {+ obj.tasks = message.tasks;+ }+ if (message.reason !== "") {+ obj.reason = message.reason;}return obj;},- create(base?: DeepPartial<CreatePlanRequest>): CreatePlanRequest {- return CreatePlanRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<BatchSkipTasksRequest>): BatchSkipTasksRequest {+ return BatchSkipTasksRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<CreatePlanRequest>): CreatePlanRequest {- const message = createBaseCreatePlanRequest();+ fromPartial(object: DeepPartial<BatchSkipTasksRequest>): BatchSkipTasksRequest {+ const message = createBaseBatchSkipTasksRequest();message.parent = object.parent ?? "";- message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;+ message.tasks = object.tasks?.map((e) => e) || [];+ message.reason = object.reason ?? "";return message;},};-function createBaseUpdatePlanRequest(): UpdatePlanRequest {- return { plan: undefined, updateMask: undefined };+function createBaseBatchSkipTasksResponse(): BatchSkipTasksResponse {+ return {};}-export const UpdatePlanRequest = {- encode(message: UpdatePlanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.plan !== undefined) {- Plan.encode(message.plan, writer.uint32(10).fork()).ldelim();- }- if (message.updateMask !== undefined) {- FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).ldelim();- }+export const BatchSkipTasksResponse = {+ encode(_: BatchSkipTasksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePlanRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): BatchSkipTasksResponse {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdatePlanRequest();+ const message = createBaseBatchSkipTasksResponse();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.plan = Plan.decode(reader, reader.uint32());- continue;- case 2:- if (tag !== 18) {- break;- }-- message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));- continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -1846,85 +1113,46 @@ export const UpdatePlanRequest = {return message;},- fromJSON(object: any): UpdatePlanRequest {- return {- plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,- updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,- };+ fromJSON(_: any): BatchSkipTasksResponse {+ return {};},- toJSON(message: UpdatePlanRequest): unknown {+ toJSON(_: BatchSkipTasksResponse): unknown {const obj: any = {};- if (message.plan !== undefined) {- obj.plan = Plan.toJSON(message.plan);- }- if (message.updateMask !== undefined) {- obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask));- }return obj;},- create(base?: DeepPartial<UpdatePlanRequest>): UpdatePlanRequest {- return UpdatePlanRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<BatchSkipTasksResponse>): BatchSkipTasksResponse {+ return BatchSkipTasksResponse.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<UpdatePlanRequest>): UpdatePlanRequest {- const message = createBaseUpdatePlanRequest();- message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;- message.updateMask = object.updateMask ?? undefined;+ fromPartial(_: DeepPartial<BatchSkipTasksResponse>): BatchSkipTasksResponse {+ const message = createBaseBatchSkipTasksResponse();return message;},};-function createBasePlan(): Plan {- return {- name: "",- uid: "",- issue: "",- title: "",- description: "",- steps: [],- vcsSource: undefined,- creator: "",- createTime: undefined,- };+function createBaseBatchCancelTaskRunsRequest(): BatchCancelTaskRunsRequest {+ return { parent: "", taskRuns: [], reason: "" };}-export const Plan = {- encode(message: Plan, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.uid !== "") {- writer.uint32(18).string(message.uid);- }- if (message.issue !== "") {- writer.uint32(26).string(message.issue);- }- if (message.title !== "") {- writer.uint32(34).string(message.title);- }- if (message.description !== "") {- writer.uint32(42).string(message.description);- }- for (const v of message.steps) {- Plan_Step.encode(v!, writer.uint32(50).fork()).ldelim();- }- if (message.vcsSource !== undefined) {- Plan_VCSSource.encode(message.vcsSource, writer.uint32(58).fork()).ldelim();+export const BatchCancelTaskRunsRequest = {+ encode(message: BatchCancelTaskRunsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);}- if (message.creator !== "") {- writer.uint32(66).string(message.creator);+ for (const v of message.taskRuns) {+ writer.uint32(18).string(v!);}- if (message.createTime !== undefined) {- Timestamp.encode(toTimestamp(message.createTime), writer.uint32(74).fork()).ldelim();+ if (message.reason !== "") {+ writer.uint32(26).string(message.reason);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan {+ decode(input: _m0.Reader | Uint8Array, length?: number): BatchCancelTaskRunsRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan();+ const message = createBaseBatchCancelTaskRunsRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -1933,64 +1161,81 @@ export const Plan = {break;}- message.name = reader.string();+ message.parent = reader.string();continue;case 2:if (tag !== 18) {break;}- message.uid = reader.string();+ message.taskRuns.push(reader.string());continue;case 3:if (tag !== 26) {break;}- message.issue = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.title = reader.string();+ message.reason = reader.string();continue;- case 5:- if (tag !== 42) {- break;- }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },- message.description = reader.string();- continue;- case 6:- if (tag !== 50) {- break;- }+ fromJSON(object: any): BatchCancelTaskRunsRequest {+ return {+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ taskRuns: globalThis.Array.isArray(object?.taskRuns) ? object.taskRuns.map((e: any) => globalThis.String(e)) : [],+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",+ };+ },- message.steps.push(Plan_Step.decode(reader, reader.uint32()));- continue;- case 7:- if (tag !== 58) {- break;- }+ toJSON(message: BatchCancelTaskRunsRequest): unknown {+ const obj: any = {};+ if (message.parent !== "") {+ obj.parent = message.parent;+ }+ if (message.taskRuns?.length) {+ obj.taskRuns = message.taskRuns;+ }+ if (message.reason !== "") {+ obj.reason = message.reason;+ }+ return obj;+ },- message.vcsSource = Plan_VCSSource.decode(reader, reader.uint32());- continue;- case 8:- if (tag !== 66) {- break;- }+ create(base?: DeepPartial<BatchCancelTaskRunsRequest>): BatchCancelTaskRunsRequest {+ return BatchCancelTaskRunsRequest.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<BatchCancelTaskRunsRequest>): BatchCancelTaskRunsRequest {+ const message = createBaseBatchCancelTaskRunsRequest();+ message.parent = object.parent ?? "";+ message.taskRuns = object.taskRuns?.map((e) => e) || [];+ message.reason = object.reason ?? "";+ return message;+ },+};- message.creator = reader.string();- continue;- case 9:- if (tag !== 74) {- break;- }+function createBaseBatchCancelTaskRunsResponse(): BatchCancelTaskRunsResponse {+ return {};+}- message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;+export const BatchCancelTaskRunsResponse = {+ encode(_: BatchCancelTaskRunsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): BatchCancelTaskRunsResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseBatchCancelTaskRunsResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {}if ((tag & 7) === 4 || tag === 0) {break;@@ -2000,107 +1245,49 @@ export const Plan = {return message;},- fromJSON(object: any): Plan {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",- issue: isSet(object.issue) ? globalThis.String(object.issue) : "",- title: isSet(object.title) ? globalThis.String(object.title) : "",- description: isSet(object.description) ? globalThis.String(object.description) : "",- steps: globalThis.Array.isArray(object?.steps) ? object.steps.map((e: any) => Plan_Step.fromJSON(e)) : [],- vcsSource: isSet(object.vcsSource) ? Plan_VCSSource.fromJSON(object.vcsSource) : undefined,- creator: isSet(object.creator) ? globalThis.String(object.creator) : "",- createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,- };+ fromJSON(_: any): BatchCancelTaskRunsResponse {+ return {};},- toJSON(message: Plan): unknown {+ toJSON(_: BatchCancelTaskRunsResponse): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.uid !== "") {- obj.uid = message.uid;- }- if (message.issue !== "") {- obj.issue = message.issue;- }- if (message.title !== "") {- obj.title = message.title;- }- if (message.description !== "") {- obj.description = message.description;- }- if (message.steps?.length) {- obj.steps = message.steps.map((e) => Plan_Step.toJSON(e));- }- if (message.vcsSource !== undefined) {- obj.vcsSource = Plan_VCSSource.toJSON(message.vcsSource);- }- if (message.creator !== "") {- obj.creator = message.creator;- }- if (message.createTime !== undefined) {- obj.createTime = message.createTime.toISOString();- }return obj;},- create(base?: DeepPartial<Plan>): Plan {- return Plan.fromPartial(base ?? {});+ create(base?: DeepPartial<BatchCancelTaskRunsResponse>): BatchCancelTaskRunsResponse {+ return BatchCancelTaskRunsResponse.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Plan>): Plan {- const message = createBasePlan();- message.name = object.name ?? "";- message.uid = object.uid ?? "";- message.issue = object.issue ?? "";- message.title = object.title ?? "";- message.description = object.description ?? "";- message.steps = object.steps?.map((e) => Plan_Step.fromPartial(e)) || [];- message.vcsSource = (object.vcsSource !== undefined && object.vcsSource !== null)- ? Plan_VCSSource.fromPartial(object.vcsSource)- : undefined;- message.creator = object.creator ?? "";- message.createTime = object.createTime ?? undefined;+ fromPartial(_: DeepPartial<BatchCancelTaskRunsResponse>): BatchCancelTaskRunsResponse {+ const message = createBaseBatchCancelTaskRunsResponse();return message;},};-function createBasePlan_Step(): Plan_Step {- return { title: "", specs: [] };+function createBaseGetRolloutRequest(): GetRolloutRequest {+ return { name: "" };}-export const Plan_Step = {- encode(message: Plan_Step, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.title !== "") {- writer.uint32(18).string(message.title);- }- for (const v of message.specs) {- Plan_Spec.encode(v!, writer.uint32(10).fork()).ldelim();+export const GetRolloutRequest = {+ encode(message: GetRolloutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_Step {+ decode(input: _m0.Reader | Uint8Array, length?: number): GetRolloutRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_Step();+ const message = createBaseGetRolloutRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 2:- if (tag !== 18) {- break;- }-- message.title = reader.string();- continue;case 1:if (tag !== 10) {break;}- message.specs.push(Plan_Spec.decode(reader, reader.uint32()));+ message.name = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2111,117 +1298,63 @@ export const Plan_Step = {return message;},- fromJSON(object: any): Plan_Step {- return {- title: isSet(object.title) ? globalThis.String(object.title) : "",- specs: globalThis.Array.isArray(object?.specs) ? object.specs.map((e: any) => Plan_Spec.fromJSON(e)) : [],- };+ fromJSON(object: any): GetRolloutRequest {+ return { name: isSet(object.name) ? globalThis.String(object.name) : "" };},- toJSON(message: Plan_Step): unknown {+ toJSON(message: GetRolloutRequest): unknown {const obj: any = {};- if (message.title !== "") {- obj.title = message.title;- }- if (message.specs?.length) {- obj.specs = message.specs.map((e) => Plan_Spec.toJSON(e));+ if (message.name !== "") {+ obj.name = message.name;}return obj;},- create(base?: DeepPartial<Plan_Step>): Plan_Step {- return Plan_Step.fromPartial(base ?? {});+ create(base?: DeepPartial<GetRolloutRequest>): GetRolloutRequest {+ return GetRolloutRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Plan_Step>): Plan_Step {- const message = createBasePlan_Step();- message.title = object.title ?? "";- message.specs = object.specs?.map((e) => Plan_Spec.fromPartial(e)) || [];+ fromPartial(object: DeepPartial<GetRolloutRequest>): GetRolloutRequest {+ const message = createBaseGetRolloutRequest();+ message.name = object.name ?? "";return message;},};-function createBasePlan_Spec(): Plan_Spec {- return {- earliestAllowedTime: undefined,- id: "",- dependsOnSpecs: [],- createDatabaseConfig: undefined,- changeDatabaseConfig: undefined,- exportDataConfig: undefined,- };+function createBaseCreateRolloutRequest(): CreateRolloutRequest {+ return { parent: "", rollout: undefined };}-export const Plan_Spec = {- encode(message: Plan_Spec, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.earliestAllowedTime !== undefined) {- Timestamp.encode(toTimestamp(message.earliestAllowedTime), writer.uint32(34).fork()).ldelim();- }- if (message.id !== "") {- writer.uint32(42).string(message.id);- }- for (const v of message.dependsOnSpecs) {- writer.uint32(50).string(v!);- }- if (message.createDatabaseConfig !== undefined) {- Plan_CreateDatabaseConfig.encode(message.createDatabaseConfig, writer.uint32(10).fork()).ldelim();- }- if (message.changeDatabaseConfig !== undefined) {- Plan_ChangeDatabaseConfig.encode(message.changeDatabaseConfig, writer.uint32(18).fork()).ldelim();+export const CreateRolloutRequest = {+ encode(message: CreateRolloutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);}- if (message.exportDataConfig !== undefined) {- Plan_ExportDataConfig.encode(message.exportDataConfig, writer.uint32(58).fork()).ldelim();+ if (message.rollout !== undefined) {+ Rollout.encode(message.rollout, writer.uint32(18).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_Spec {+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateRolloutRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_Spec();+ const message = createBaseCreateRolloutRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 4:- if (tag !== 34) {- break;- }-- message.earliestAllowedTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 5:- if (tag !== 42) {- break;- }-- message.id = reader.string();- continue;- case 6:- if (tag !== 50) {- break;- }-- message.dependsOnSpecs.push(reader.string());- continue;case 1:if (tag !== 10) {break;}- message.createDatabaseConfig = Plan_CreateDatabaseConfig.decode(reader, reader.uint32());+ message.parent = reader.string();continue;case 2:if (tag !== 18) {break;}- message.changeDatabaseConfig = Plan_ChangeDatabaseConfig.decode(reader, reader.uint32());- continue;- case 7:- if (tag !== 58) {- break;- }-- message.exportDataConfig = Plan_ExportDataConfig.decode(reader, reader.uint32());+ message.rollout = Rollout.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2232,121 +1365,56 @@ export const Plan_Spec = {return message;},- fromJSON(object: any): Plan_Spec {+ fromJSON(object: any): CreateRolloutRequest {return {- earliestAllowedTime: isSet(object.earliestAllowedTime)- ? fromJsonTimestamp(object.earliestAllowedTime)- : undefined,- id: isSet(object.id) ? globalThis.String(object.id) : "",- dependsOnSpecs: globalThis.Array.isArray(object?.dependsOnSpecs)- ? object.dependsOnSpecs.map((e: any) => globalThis.String(e))- : [],- createDatabaseConfig: isSet(object.createDatabaseConfig)- ? Plan_CreateDatabaseConfig.fromJSON(object.createDatabaseConfig)- : undefined,- changeDatabaseConfig: isSet(object.changeDatabaseConfig)- ? Plan_ChangeDatabaseConfig.fromJSON(object.changeDatabaseConfig)- : undefined,- exportDataConfig: isSet(object.exportDataConfig)- ? Plan_ExportDataConfig.fromJSON(object.exportDataConfig)- : undefined,+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ rollout: isSet(object.rollout) ? Rollout.fromJSON(object.rollout) : undefined,};},- toJSON(message: Plan_Spec): unknown {+ toJSON(message: CreateRolloutRequest): unknown {const obj: any = {};- if (message.earliestAllowedTime !== undefined) {- obj.earliestAllowedTime = message.earliestAllowedTime.toISOString();- }- if (message.id !== "") {- obj.id = message.id;- }- if (message.dependsOnSpecs?.length) {- obj.dependsOnSpecs = message.dependsOnSpecs;- }- if (message.createDatabaseConfig !== undefined) {- obj.createDatabaseConfig = Plan_CreateDatabaseConfig.toJSON(message.createDatabaseConfig);- }- if (message.changeDatabaseConfig !== undefined) {- obj.changeDatabaseConfig = Plan_ChangeDatabaseConfig.toJSON(message.changeDatabaseConfig);+ if (message.parent !== "") {+ obj.parent = message.parent;}- if (message.exportDataConfig !== undefined) {- obj.exportDataConfig = Plan_ExportDataConfig.toJSON(message.exportDataConfig);+ if (message.rollout !== undefined) {+ obj.rollout = Rollout.toJSON(message.rollout);}return obj;},- create(base?: DeepPartial<Plan_Spec>): Plan_Spec {- return Plan_Spec.fromPartial(base ?? {});+ create(base?: DeepPartial<CreateRolloutRequest>): CreateRolloutRequest {+ return CreateRolloutRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Plan_Spec>): Plan_Spec {- const message = createBasePlan_Spec();- message.earliestAllowedTime = object.earliestAllowedTime ?? undefined;- message.id = object.id ?? "";- message.dependsOnSpecs = object.dependsOnSpecs?.map((e) => e) || [];- message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)- ? Plan_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig)- : undefined;- message.changeDatabaseConfig = (object.changeDatabaseConfig !== undefined && object.changeDatabaseConfig !== null)- ? Plan_ChangeDatabaseConfig.fromPartial(object.changeDatabaseConfig)- : undefined;- message.exportDataConfig = (object.exportDataConfig !== undefined && object.exportDataConfig !== null)- ? Plan_ExportDataConfig.fromPartial(object.exportDataConfig)+ fromPartial(object: DeepPartial<CreateRolloutRequest>): CreateRolloutRequest {+ const message = createBaseCreateRolloutRequest();+ message.parent = object.parent ?? "";+ message.rollout = (object.rollout !== undefined && object.rollout !== null)+ ? Rollout.fromPartial(object.rollout): undefined;return message;},};-function createBasePlan_CreateDatabaseConfig(): Plan_CreateDatabaseConfig {- return {- target: "",- database: "",- table: "",- characterSet: "",- collation: "",- cluster: "",- owner: "",- environment: "",- labels: {},- };+function createBasePreviewRolloutRequest(): PreviewRolloutRequest {+ return { project: "", plan: undefined };}-export const Plan_CreateDatabaseConfig = {- encode(message: Plan_CreateDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.target !== "") {- writer.uint32(10).string(message.target);- }- if (message.database !== "") {- writer.uint32(18).string(message.database);- }- if (message.table !== "") {- writer.uint32(26).string(message.table);- }- if (message.characterSet !== "") {- writer.uint32(34).string(message.characterSet);- }- if (message.collation !== "") {- writer.uint32(42).string(message.collation);- }- if (message.cluster !== "") {- writer.uint32(50).string(message.cluster);- }- if (message.owner !== "") {- writer.uint32(58).string(message.owner);+export const PreviewRolloutRequest = {+ encode(message: PreviewRolloutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.project !== "") {+ writer.uint32(10).string(message.project);}- if (message.environment !== "") {- writer.uint32(74).string(message.environment);+ if (message.plan !== undefined) {+ Plan.encode(message.plan, writer.uint32(18).fork()).ldelim();}- Object.entries(message.labels).forEach(([key, value]) => {- Plan_CreateDatabaseConfig_LabelsEntry.encode({ key: key as any, value }, writer.uint32(82).fork()).ldelim();- });return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_CreateDatabaseConfig {+ decode(input: _m0.Reader | Uint8Array, length?: number): PreviewRolloutRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_CreateDatabaseConfig();+ const message = createBasePreviewRolloutRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -2355,66 +1423,14 @@ export const Plan_CreateDatabaseConfig = {break;}- message.target = reader.string();+ message.project = reader.string();continue;case 2:if (tag !== 18) {break;}- message.database = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.table = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.characterSet = reader.string();- continue;- case 5:- if (tag !== 42) {- break;- }-- message.collation = reader.string();- continue;- case 6:- if (tag !== 50) {- break;- }-- message.cluster = reader.string();- continue;- case 7:- if (tag !== 58) {- break;- }-- message.owner = reader.string();- continue;- case 9:- if (tag !== 74) {- break;- }-- message.environment = reader.string();- continue;- case 10:- if (tag !== 82) {- break;- }-- const entry10 = Plan_CreateDatabaseConfig_LabelsEntry.decode(reader, reader.uint32());- if (entry10.value !== undefined) {- message.labels[entry10.key] = entry10.value;- }+ message.plan = Plan.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2425,105 +1441,57 @@ export const Plan_CreateDatabaseConfig = {return message;},- fromJSON(object: any): Plan_CreateDatabaseConfig {+ fromJSON(object: any): PreviewRolloutRequest {return {- target: isSet(object.target) ? globalThis.String(object.target) : "",- database: isSet(object.database) ? globalThis.String(object.database) : "",- table: isSet(object.table) ? globalThis.String(object.table) : "",- characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",- collation: isSet(object.collation) ? globalThis.String(object.collation) : "",- cluster: isSet(object.cluster) ? globalThis.String(object.cluster) : "",- owner: isSet(object.owner) ? globalThis.String(object.owner) : "",- environment: isSet(object.environment) ? globalThis.String(object.environment) : "",- labels: isObject(object.labels)- ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {- acc[key] = String(value);- return acc;- }, {})- : {},+ project: isSet(object.project) ? globalThis.String(object.project) : "",+ plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,};},- toJSON(message: Plan_CreateDatabaseConfig): unknown {+ toJSON(message: PreviewRolloutRequest): unknown {const obj: any = {};- if (message.target !== "") {- obj.target = message.target;- }- if (message.database !== "") {- obj.database = message.database;- }- if (message.table !== "") {- obj.table = message.table;- }- if (message.characterSet !== "") {- obj.characterSet = message.characterSet;- }- if (message.collation !== "") {- obj.collation = message.collation;- }- if (message.cluster !== "") {- obj.cluster = message.cluster;- }- if (message.owner !== "") {- obj.owner = message.owner;- }- if (message.environment !== "") {- obj.environment = message.environment;+ if (message.project !== "") {+ obj.project = message.project;}- if (message.labels) {- const entries = Object.entries(message.labels);- if (entries.length > 0) {- obj.labels = {};- entries.forEach(([k, v]) => {- obj.labels[k] = v;- });- }+ if (message.plan !== undefined) {+ obj.plan = Plan.toJSON(message.plan);}return obj;},- create(base?: DeepPartial<Plan_CreateDatabaseConfig>): Plan_CreateDatabaseConfig {- return Plan_CreateDatabaseConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<PreviewRolloutRequest>): PreviewRolloutRequest {+ return PreviewRolloutRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Plan_CreateDatabaseConfig>): Plan_CreateDatabaseConfig {- const message = createBasePlan_CreateDatabaseConfig();- message.target = object.target ?? "";- message.database = object.database ?? "";- message.table = object.table ?? "";- message.characterSet = object.characterSet ?? "";- message.collation = object.collation ?? "";- message.cluster = object.cluster ?? "";- message.owner = object.owner ?? "";- message.environment = object.environment ?? "";- message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {- if (value !== undefined) {- acc[key] = globalThis.String(value);- }- return acc;- }, {});+ fromPartial(object: DeepPartial<PreviewRolloutRequest>): PreviewRolloutRequest {+ const message = createBasePreviewRolloutRequest();+ message.project = object.project ?? "";+ message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;return message;},};-function createBasePlan_CreateDatabaseConfig_LabelsEntry(): Plan_CreateDatabaseConfig_LabelsEntry {- return { key: "", value: "" };+function createBaseListTaskRunsRequest(): ListTaskRunsRequest {+ return { parent: "", pageSize: 0, pageToken: "" };}-export const Plan_CreateDatabaseConfig_LabelsEntry = {- encode(message: Plan_CreateDatabaseConfig_LabelsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.key !== "") {- writer.uint32(10).string(message.key);+export const ListTaskRunsRequest = {+ encode(message: ListTaskRunsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);}- if (message.value !== "") {- writer.uint32(18).string(message.value);+ if (message.pageSize !== 0) {+ writer.uint32(16).int32(message.pageSize);+ }+ if (message.pageToken !== "") {+ writer.uint32(26).string(message.pageToken);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_CreateDatabaseConfig_LabelsEntry {+ decode(input: _m0.Reader | Uint8Array, length?: number): ListTaskRunsRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_CreateDatabaseConfig_LabelsEntry();+ const message = createBaseListTaskRunsRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -2532,14 +1500,21 @@ export const Plan_CreateDatabaseConfig_LabelsEntry = {break;}- message.key = reader.string();+ message.parent = reader.string();continue;case 2:- if (tag !== 18) {+ if (tag !== 16) {break;}- message.value = reader.string();+ message.pageSize = reader.int32();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.pageToken = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2550,82 +1525,59 @@ export const Plan_CreateDatabaseConfig_LabelsEntry = {return message;},- fromJSON(object: any): Plan_CreateDatabaseConfig_LabelsEntry {+ fromJSON(object: any): ListTaskRunsRequest {return {- key: isSet(object.key) ? globalThis.String(object.key) : "",- value: isSet(object.value) ? globalThis.String(object.value) : "",+ parent: isSet(object.parent) ? globalThis.String(object.parent) : "",+ pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,+ pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",};},- toJSON(message: Plan_CreateDatabaseConfig_LabelsEntry): unknown {+ toJSON(message: ListTaskRunsRequest): unknown {const obj: any = {};- if (message.key !== "") {- obj.key = message.key;+ if (message.parent !== "") {+ obj.parent = message.parent;}- if (message.value !== "") {- obj.value = message.value;+ if (message.pageSize !== 0) {+ obj.pageSize = Math.round(message.pageSize);+ }+ if (message.pageToken !== "") {+ obj.pageToken = message.pageToken;}return obj;},- create(base?: DeepPartial<Plan_CreateDatabaseConfig_LabelsEntry>): Plan_CreateDatabaseConfig_LabelsEntry {- return Plan_CreateDatabaseConfig_LabelsEntry.fromPartial(base ?? {});+ create(base?: DeepPartial<ListTaskRunsRequest>): ListTaskRunsRequest {+ return ListTaskRunsRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Plan_CreateDatabaseConfig_LabelsEntry>): Plan_CreateDatabaseConfig_LabelsEntry {- const message = createBasePlan_CreateDatabaseConfig_LabelsEntry();- message.key = object.key ?? "";- message.value = object.value ?? "";+ fromPartial(object: DeepPartial<ListTaskRunsRequest>): ListTaskRunsRequest {+ const message = createBaseListTaskRunsRequest();+ message.parent = object.parent ?? "";+ message.pageSize = object.pageSize ?? 0;+ message.pageToken = object.pageToken ?? "";return message;},};-function createBasePlan_ChangeDatabaseConfig(): Plan_ChangeDatabaseConfig {- return {- target: "",- sheet: "",- type: Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED,- schemaVersion: "",- rollbackEnabled: false,- rollbackDetail: undefined,- ghostFlags: {},- preUpdateBackupDetail: undefined,- };+function createBaseListTaskRunsResponse(): ListTaskRunsResponse {+ return { taskRuns: [], nextPageToken: "" };}-export const Plan_ChangeDatabaseConfig = {- encode(message: Plan_ChangeDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.target !== "") {- writer.uint32(10).string(message.target);- }- if (message.sheet !== "") {- writer.uint32(18).string(message.sheet);- }- if (message.type !== Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED) {- writer.uint32(24).int32(plan_ChangeDatabaseConfig_TypeToNumber(message.type));- }- if (message.schemaVersion !== "") {- writer.uint32(34).string(message.schemaVersion);- }- if (message.rollbackEnabled === true) {- writer.uint32(40).bool(message.rollbackEnabled);- }- if (message.rollbackDetail !== undefined) {- Plan_ChangeDatabaseConfig_RollbackDetail.encode(message.rollbackDetail, writer.uint32(50).fork()).ldelim();+export const ListTaskRunsResponse = {+ encode(message: ListTaskRunsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.taskRuns) {+ TaskRun.encode(v!, writer.uint32(10).fork()).ldelim();}- Object.entries(message.ghostFlags).forEach(([key, value]) => {- Plan_ChangeDatabaseConfig_GhostFlagsEntry.encode({ key: key as any, value }, writer.uint32(58).fork()).ldelim();- });- if (message.preUpdateBackupDetail !== undefined) {- Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.encode(message.preUpdateBackupDetail, writer.uint32(66).fork())- .ldelim();+ if (message.nextPageToken !== "") {+ writer.uint32(18).string(message.nextPageToken);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig {+ decode(input: _m0.Reader | Uint8Array, length?: number): ListTaskRunsResponse {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_ChangeDatabaseConfig();+ const message = createBaseListTaskRunsResponse();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -2634,62 +1586,14 @@ export const Plan_ChangeDatabaseConfig = {break;}- message.target = reader.string();+ message.taskRuns.push(TaskRun.decode(reader, reader.uint32()));continue;case 2:if (tag !== 18) {break;}- message.sheet = reader.string();- continue;- case 3:- if (tag !== 24) {- break;- }-- message.type = plan_ChangeDatabaseConfig_TypeFromJSON(reader.int32());- continue;- case 4:- if (tag !== 34) {- break;- }-- message.schemaVersion = reader.string();- continue;- case 5:- if (tag !== 40) {- break;- }-- message.rollbackEnabled = reader.bool();- continue;- case 6:- if (tag !== 50) {- break;- }-- message.rollbackDetail = Plan_ChangeDatabaseConfig_RollbackDetail.decode(reader, reader.uint32());- continue;- case 7:- if (tag !== 58) {- break;- }-- const entry7 = Plan_ChangeDatabaseConfig_GhostFlagsEntry.decode(reader, reader.uint32());- if (entry7.value !== undefined) {- message.ghostFlags[entry7.key] = entry7.value;- }- continue;- case 8:- if (tag !== 66) {- break;- }-- message.preUpdateBackupDetail = Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.decode(- reader,- reader.uint32(),- );+ message.nextPageToken = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2700,114 +1604,51 @@ export const Plan_ChangeDatabaseConfig = {return message;},- fromJSON(object: any): Plan_ChangeDatabaseConfig {+ fromJSON(object: any): ListTaskRunsResponse {return {- target: isSet(object.target) ? globalThis.String(object.target) : "",- sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",- type: isSet(object.type)- ? plan_ChangeDatabaseConfig_TypeFromJSON(object.type)- : Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED,- schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",- rollbackEnabled: isSet(object.rollbackEnabled) ? globalThis.Boolean(object.rollbackEnabled) : false,- rollbackDetail: isSet(object.rollbackDetail)- ? Plan_ChangeDatabaseConfig_RollbackDetail.fromJSON(object.rollbackDetail)- : undefined,- ghostFlags: isObject(object.ghostFlags)- ? Object.entries(object.ghostFlags).reduce<{ [key: string]: string }>((acc, [key, value]) => {- acc[key] = String(value);- return acc;- }, {})- : {},- preUpdateBackupDetail: isSet(object.preUpdateBackupDetail)- ? Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.fromJSON(object.preUpdateBackupDetail)- : undefined,+ taskRuns: globalThis.Array.isArray(object?.taskRuns) ? object.taskRuns.map((e: any) => TaskRun.fromJSON(e)) : [],+ nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",};},- toJSON(message: Plan_ChangeDatabaseConfig): unknown {+ toJSON(message: ListTaskRunsResponse): unknown {const obj: any = {};- if (message.target !== "") {- obj.target = message.target;- }- if (message.sheet !== "") {- obj.sheet = message.sheet;+ if (message.taskRuns?.length) {+ obj.taskRuns = message.taskRuns.map((e) => TaskRun.toJSON(e));}- if (message.type !== Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED) {- obj.type = plan_ChangeDatabaseConfig_TypeToJSON(message.type);- }- if (message.schemaVersion !== "") {- obj.schemaVersion = message.schemaVersion;- }- if (message.rollbackEnabled === true) {- obj.rollbackEnabled = message.rollbackEnabled;- }- if (message.rollbackDetail !== undefined) {- obj.rollbackDetail = Plan_ChangeDatabaseConfig_RollbackDetail.toJSON(message.rollbackDetail);- }- if (message.ghostFlags) {- const entries = Object.entries(message.ghostFlags);- if (entries.length > 0) {- obj.ghostFlags = {};- entries.forEach(([k, v]) => {- obj.ghostFlags[k] = v;- });- }- }- if (message.preUpdateBackupDetail !== undefined) {- obj.preUpdateBackupDetail = Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.toJSON(message.preUpdateBackupDetail);+ if (message.nextPageToken !== "") {+ obj.nextPageToken = message.nextPageToken;}return obj;},- create(base?: DeepPartial<Plan_ChangeDatabaseConfig>): Plan_ChangeDatabaseConfig {- return Plan_ChangeDatabaseConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<ListTaskRunsResponse>): ListTaskRunsResponse {+ return ListTaskRunsResponse.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Plan_ChangeDatabaseConfig>): Plan_ChangeDatabaseConfig {- const message = createBasePlan_ChangeDatabaseConfig();- message.target = object.target ?? "";- message.sheet = object.sheet ?? "";- message.type = object.type ?? Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED;- message.schemaVersion = object.schemaVersion ?? "";- message.rollbackEnabled = object.rollbackEnabled ?? false;- message.rollbackDetail = (object.rollbackDetail !== undefined && object.rollbackDetail !== null)- ? Plan_ChangeDatabaseConfig_RollbackDetail.fromPartial(object.rollbackDetail)- : undefined;- message.ghostFlags = Object.entries(object.ghostFlags ?? {}).reduce<{ [key: string]: string }>(- (acc, [key, value]) => {- if (value !== undefined) {- acc[key] = globalThis.String(value);- }- return acc;- },- {},- );- message.preUpdateBackupDetail =- (object.preUpdateBackupDetail !== undefined && object.preUpdateBackupDetail !== null)- ? Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.fromPartial(object.preUpdateBackupDetail)- : undefined;+ fromPartial(object: DeepPartial<ListTaskRunsResponse>): ListTaskRunsResponse {+ const message = createBaseListTaskRunsResponse();+ message.taskRuns = object.taskRuns?.map((e) => TaskRun.fromPartial(e)) || [];+ message.nextPageToken = object.nextPageToken ?? "";return message;},};-function createBasePlan_ChangeDatabaseConfig_RollbackDetail(): Plan_ChangeDatabaseConfig_RollbackDetail {- return { rollbackFromTask: "", rollbackFromIssue: "" };+function createBaseGetTaskRunLogRequest(): GetTaskRunLogRequest {+ return { parent: "" };}-export const Plan_ChangeDatabaseConfig_RollbackDetail = {- encode(message: Plan_ChangeDatabaseConfig_RollbackDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.rollbackFromTask !== "") {- writer.uint32(10).string(message.rollbackFromTask);- }- if (message.rollbackFromIssue !== "") {- writer.uint32(18).string(message.rollbackFromIssue);+export const GetTaskRunLogRequest = {+ encode(message: GetTaskRunLogRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig_RollbackDetail {+ decode(input: _m0.Reader | Uint8Array, length?: number): GetTaskRunLogRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_ChangeDatabaseConfig_RollbackDetail();+ const message = createBaseGetTaskRunLogRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -2816,14 +1657,7 @@ export const Plan_ChangeDatabaseConfig_RollbackDetail = {break;}- message.rollbackFromTask = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.rollbackFromIssue = reader.string();+ message.parent = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2834,54 +1668,56 @@ export const Plan_ChangeDatabaseConfig_RollbackDetail = {return message;},- fromJSON(object: any): Plan_ChangeDatabaseConfig_RollbackDetail {- return {- rollbackFromTask: isSet(object.rollbackFromTask) ? globalThis.String(object.rollbackFromTask) : "",- rollbackFromIssue: isSet(object.rollbackFromIssue) ? globalThis.String(object.rollbackFromIssue) : "",- };+ fromJSON(object: any): GetTaskRunLogRequest {+ return { parent: isSet(object.parent) ? globalThis.String(object.parent) : "" };},- toJSON(message: Plan_ChangeDatabaseConfig_RollbackDetail): unknown {+ toJSON(message: GetTaskRunLogRequest): unknown {const obj: any = {};- if (message.rollbackFromTask !== "") {- obj.rollbackFromTask = message.rollbackFromTask;- }- if (message.rollbackFromIssue !== "") {- obj.rollbackFromIssue = message.rollbackFromIssue;+ if (message.parent !== "") {+ obj.parent = message.parent;}return obj;},- create(base?: DeepPartial<Plan_ChangeDatabaseConfig_RollbackDetail>): Plan_ChangeDatabaseConfig_RollbackDetail {- return Plan_ChangeDatabaseConfig_RollbackDetail.fromPartial(base ?? {});+ create(base?: DeepPartial<GetTaskRunLogRequest>): GetTaskRunLogRequest {+ return GetTaskRunLogRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Plan_ChangeDatabaseConfig_RollbackDetail>): Plan_ChangeDatabaseConfig_RollbackDetail {- const message = createBasePlan_ChangeDatabaseConfig_RollbackDetail();- message.rollbackFromTask = object.rollbackFromTask ?? "";- message.rollbackFromIssue = object.rollbackFromIssue ?? "";+ fromPartial(object: DeepPartial<GetTaskRunLogRequest>): GetTaskRunLogRequest {+ const message = createBaseGetTaskRunLogRequest();+ message.parent = object.parent ?? "";return message;},};-function createBasePlan_ChangeDatabaseConfig_GhostFlagsEntry(): Plan_ChangeDatabaseConfig_GhostFlagsEntry {- return { key: "", value: "" };+function createBaseRollout(): Rollout {+ return { name: "", uid: "", plan: "", title: "", stages: [] };}-export const Plan_ChangeDatabaseConfig_GhostFlagsEntry = {- encode(message: Plan_ChangeDatabaseConfig_GhostFlagsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.key !== "") {- writer.uint32(10).string(message.key);+export const Rollout = {+ encode(message: Rollout, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (message.value !== "") {- writer.uint32(18).string(message.value);+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.plan !== "") {+ writer.uint32(26).string(message.plan);+ }+ if (message.title !== "") {+ writer.uint32(34).string(message.title);+ }+ for (const v of message.stages) {+ Stage.encode(v!, writer.uint32(42).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig_GhostFlagsEntry {+ decode(input: _m0.Reader | Uint8Array, length?: number): Rollout {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_ChangeDatabaseConfig_GhostFlagsEntry();+ const message = createBaseRollout();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -2890,83 +1726,35 @@ export const Plan_ChangeDatabaseConfig_GhostFlagsEntry = {break;}- message.key = reader.string();+ message.name = reader.string();continue;case 2:if (tag !== 18) {break;}- message.value = reader.string();+ message.uid = reader.string();continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Plan_ChangeDatabaseConfig_GhostFlagsEntry {- return {- key: isSet(object.key) ? globalThis.String(object.key) : "",- value: isSet(object.value) ? globalThis.String(object.value) : "",- };- },-- toJSON(message: Plan_ChangeDatabaseConfig_GhostFlagsEntry): unknown {- const obj: any = {};- if (message.key !== "") {- obj.key = message.key;- }- if (message.value !== "") {- obj.value = message.value;- }- return obj;- },-- create(base?: DeepPartial<Plan_ChangeDatabaseConfig_GhostFlagsEntry>): Plan_ChangeDatabaseConfig_GhostFlagsEntry {- return Plan_ChangeDatabaseConfig_GhostFlagsEntry.fromPartial(base ?? {});- },- fromPartial(- object: DeepPartial<Plan_ChangeDatabaseConfig_GhostFlagsEntry>,- ): Plan_ChangeDatabaseConfig_GhostFlagsEntry {- const message = createBasePlan_ChangeDatabaseConfig_GhostFlagsEntry();- message.key = object.key ?? "";- message.value = object.value ?? "";- return message;- },-};--function createBasePlan_ChangeDatabaseConfig_PreUpdateBackupDetail(): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {- return { database: "" };-}+ case 3:+ if (tag !== 26) {+ break;+ }-export const Plan_ChangeDatabaseConfig_PreUpdateBackupDetail = {- encode(- message: Plan_ChangeDatabaseConfig_PreUpdateBackupDetail,- writer: _m0.Writer = _m0.Writer.create(),- ): _m0.Writer {- if (message.database !== "") {- writer.uint32(10).string(message.database);- }- return writer;- },+ message.plan = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_ChangeDatabaseConfig_PreUpdateBackupDetail();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {+ message.title = reader.string();+ continue;+ case 5:+ if (tag !== 42) {break;}- message.database = reader.string();+ message.stages.push(Stage.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -2977,57 +1765,75 @@ export const Plan_ChangeDatabaseConfig_PreUpdateBackupDetail = {return message;},- fromJSON(object: any): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {- return { database: isSet(object.database) ? globalThis.String(object.database) : "" };+ fromJSON(object: any): Rollout {+ return {+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ uid: isSet(object.uid) ? globalThis.String(object.uid) : "",+ plan: isSet(object.plan) ? globalThis.String(object.plan) : "",+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ stages: globalThis.Array.isArray(object?.stages) ? object.stages.map((e: any) => Stage.fromJSON(e)) : [],+ };},- toJSON(message: Plan_ChangeDatabaseConfig_PreUpdateBackupDetail): unknown {+ toJSON(message: Rollout): unknown {const obj: any = {};- if (message.database !== "") {- obj.database = message.database;+ if (message.name !== "") {+ obj.name = message.name;+ }+ if (message.uid !== "") {+ obj.uid = message.uid;+ }+ if (message.plan !== "") {+ obj.plan = message.plan;+ }+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.stages?.length) {+ obj.stages = message.stages.map((e) => Stage.toJSON(e));}return obj;},- create(- base?: DeepPartial<Plan_ChangeDatabaseConfig_PreUpdateBackupDetail>,- ): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {- return Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.fromPartial(base ?? {});+ create(base?: DeepPartial<Rollout>): Rollout {+ return Rollout.fromPartial(base ?? {});},- fromPartial(- object: DeepPartial<Plan_ChangeDatabaseConfig_PreUpdateBackupDetail>,- ): Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {- const message = createBasePlan_ChangeDatabaseConfig_PreUpdateBackupDetail();- message.database = object.database ?? "";+ fromPartial(object: DeepPartial<Rollout>): Rollout {+ const message = createBaseRollout();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.plan = object.plan ?? "";+ message.title = object.title ?? "";+ message.stages = object.stages?.map((e) => Stage.fromPartial(e)) || [];return message;},};-function createBasePlan_ExportDataConfig(): Plan_ExportDataConfig {- return { target: "", sheet: "", format: ExportFormat.FORMAT_UNSPECIFIED, password: undefined };+function createBaseStage(): Stage {+ return { name: "", uid: "", title: "", tasks: [] };}-export const Plan_ExportDataConfig = {- encode(message: Plan_ExportDataConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.target !== "") {- writer.uint32(10).string(message.target);+export const Stage = {+ encode(message: Stage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (message.sheet !== "") {- writer.uint32(18).string(message.sheet);+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);}- if (message.format !== ExportFormat.FORMAT_UNSPECIFIED) {- writer.uint32(24).int32(exportFormatToNumber(message.format));+ if (message.title !== "") {+ writer.uint32(34).string(message.title);}- if (message.password !== undefined) {- writer.uint32(34).string(message.password);+ for (const v of message.tasks) {+ Task.encode(v!, writer.uint32(42).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ExportDataConfig {+ decode(input: _m0.Reader | Uint8Array, length?: number): Stage {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_ExportDataConfig();+ const message = createBaseStage();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3036,28 +1842,28 @@ export const Plan_ExportDataConfig = {break;}- message.target = reader.string();+ message.name = reader.string();continue;case 2:if (tag !== 18) {break;}- message.sheet = reader.string();+ message.uid = reader.string();continue;- case 3:- if (tag !== 24) {+ case 4:+ if (tag !== 34) {break;}- message.format = exportFormatFromJSON(reader.int32());+ message.title = reader.string();continue;- case 4:- if (tag !== 34) {+ case 5:+ if (tag !== 42) {break;}- message.password = reader.string();+ message.tasks.push(Task.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3068,258 +1874,215 @@ export const Plan_ExportDataConfig = {return message;},- fromJSON(object: any): Plan_ExportDataConfig {+ fromJSON(object: any): Stage {return {- target: isSet(object.target) ? globalThis.String(object.target) : "",- sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",- format: isSet(object.format) ? exportFormatFromJSON(object.format) : ExportFormat.FORMAT_UNSPECIFIED,- password: isSet(object.password) ? globalThis.String(object.password) : undefined,+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ uid: isSet(object.uid) ? globalThis.String(object.uid) : "",+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => Task.fromJSON(e)) : [],};},- toJSON(message: Plan_ExportDataConfig): unknown {+ toJSON(message: Stage): unknown {const obj: any = {};- if (message.target !== "") {- obj.target = message.target;+ if (message.name !== "") {+ obj.name = message.name;}- if (message.sheet !== "") {- obj.sheet = message.sheet;+ if (message.uid !== "") {+ obj.uid = message.uid;}- if (message.format !== ExportFormat.FORMAT_UNSPECIFIED) {- obj.format = exportFormatToJSON(message.format);+ if (message.title !== "") {+ obj.title = message.title;}- if (message.password !== undefined) {- obj.password = message.password;+ if (message.tasks?.length) {+ obj.tasks = message.tasks.map((e) => Task.toJSON(e));}return obj;},- create(base?: DeepPartial<Plan_ExportDataConfig>): Plan_ExportDataConfig {- return Plan_ExportDataConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<Stage>): Stage {+ return Stage.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<Plan_ExportDataConfig>): Plan_ExportDataConfig {- const message = createBasePlan_ExportDataConfig();- message.target = object.target ?? "";- message.sheet = object.sheet ?? "";- message.format = object.format ?? ExportFormat.FORMAT_UNSPECIFIED;- message.password = object.password ?? undefined;+ fromPartial(object: DeepPartial<Stage>): Stage {+ const message = createBaseStage();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.title = object.title ?? "";+ message.tasks = object.tasks?.map((e) => Task.fromPartial(e)) || [];return message;},};-function createBasePlan_VCSSource(): Plan_VCSSource {- return { vcsType: VCSType.VCS_TYPE_UNSPECIFIED, vcsConnector: "", pullRequestUrl: "" };+function createBaseTask(): Task {+ return {+ name: "",+ uid: "",+ title: "",+ specId: "",+ status: Task_Status.STATUS_UNSPECIFIED,+ skippedReason: "",+ type: Task_Type.TYPE_UNSPECIFIED,+ dependsOnTasks: [],+ target: "",+ databaseCreate: undefined,+ databaseSchemaBaseline: undefined,+ databaseSchemaUpdate: undefined,+ databaseDataUpdate: undefined,+ databaseDataExport: undefined,+ };}-export const Plan_VCSSource = {- encode(message: Plan_VCSSource, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.vcsType !== VCSType.VCS_TYPE_UNSPECIFIED) {- writer.uint32(8).int32(vCSTypeToNumber(message.vcsType));+export const Task = {+ encode(message: Task, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.title !== "") {+ writer.uint32(26).string(message.title);+ }+ if (message.specId !== "") {+ writer.uint32(34).string(message.specId);+ }+ if (message.status !== Task_Status.STATUS_UNSPECIFIED) {+ writer.uint32(40).int32(task_StatusToNumber(message.status));+ }+ if (message.skippedReason !== "") {+ writer.uint32(122).string(message.skippedReason);+ }+ if (message.type !== Task_Type.TYPE_UNSPECIFIED) {+ writer.uint32(48).int32(task_TypeToNumber(message.type));+ }+ for (const v of message.dependsOnTasks) {+ writer.uint32(58).string(v!);+ }+ if (message.target !== "") {+ writer.uint32(66).string(message.target);+ }+ if (message.databaseCreate !== undefined) {+ Task_DatabaseCreate.encode(message.databaseCreate, writer.uint32(74).fork()).ldelim();}- if (message.vcsConnector !== "") {- writer.uint32(18).string(message.vcsConnector);+ if (message.databaseSchemaBaseline !== undefined) {+ Task_DatabaseSchemaBaseline.encode(message.databaseSchemaBaseline, writer.uint32(82).fork()).ldelim();+ }+ if (message.databaseSchemaUpdate !== undefined) {+ Task_DatabaseSchemaUpdate.encode(message.databaseSchemaUpdate, writer.uint32(90).fork()).ldelim();+ }+ if (message.databaseDataUpdate !== undefined) {+ Task_DatabaseDataUpdate.encode(message.databaseDataUpdate, writer.uint32(98).fork()).ldelim();}- if (message.pullRequestUrl !== "") {- writer.uint32(26).string(message.pullRequestUrl);+ if (message.databaseDataExport !== undefined) {+ Task_DatabaseDataExport.encode(message.databaseDataExport, writer.uint32(130).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): Plan_VCSSource {+ decode(input: _m0.Reader | Uint8Array, length?: number): Task {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_VCSSource();+ const message = createBaseTask();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {case 1:- if (tag !== 8) {+ if (tag !== 10) {break;}- message.vcsType = vCSTypeFromJSON(reader.int32());+ message.name = reader.string();continue;case 2:if (tag !== 18) {break;}- message.vcsConnector = reader.string();+ message.uid = reader.string();continue;case 3:if (tag !== 26) {break;}- message.pullRequestUrl = reader.string();+ message.title = reader.string();continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Plan_VCSSource {- return {- vcsType: isSet(object.vcsType) ? vCSTypeFromJSON(object.vcsType) : VCSType.VCS_TYPE_UNSPECIFIED,- vcsConnector: isSet(object.vcsConnector) ? globalThis.String(object.vcsConnector) : "",- pullRequestUrl: isSet(object.pullRequestUrl) ? globalThis.String(object.pullRequestUrl) : "",- };- },-- toJSON(message: Plan_VCSSource): unknown {- const obj: any = {};- if (message.vcsType !== VCSType.VCS_TYPE_UNSPECIFIED) {- obj.vcsType = vCSTypeToJSON(message.vcsType);- }- if (message.vcsConnector !== "") {- obj.vcsConnector = message.vcsConnector;- }- if (message.pullRequestUrl !== "") {- obj.pullRequestUrl = message.pullRequestUrl;- }- return obj;- },-- create(base?: DeepPartial<Plan_VCSSource>): Plan_VCSSource {- return Plan_VCSSource.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Plan_VCSSource>): Plan_VCSSource {- const message = createBasePlan_VCSSource();- message.vcsType = object.vcsType ?? VCSType.VCS_TYPE_UNSPECIFIED;- message.vcsConnector = object.vcsConnector ?? "";- message.pullRequestUrl = object.pullRequestUrl ?? "";- return message;- },-};--function createBaseListPlanCheckRunsRequest(): ListPlanCheckRunsRequest {- return { parent: "", pageSize: 0, pageToken: "" };-}--export const ListPlanCheckRunsRequest = {- encode(message: ListPlanCheckRunsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- if (message.pageSize !== 0) {- writer.uint32(16).int32(message.pageSize);- }- if (message.pageToken !== "") {- writer.uint32(26).string(message.pageToken);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): ListPlanCheckRunsRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListPlanCheckRunsRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {+ case 4:+ if (tag !== 34) {break;}- message.parent = reader.string();+ message.specId = reader.string();continue;- case 2:- if (tag !== 16) {+ case 5:+ if (tag !== 40) {break;}- message.pageSize = reader.int32();+ message.status = task_StatusFromJSON(reader.int32());continue;- case 3:- if (tag !== 26) {+ case 15:+ if (tag !== 122) {break;}- message.pageToken = reader.string();+ message.skippedReason = reader.string();continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },+ case 6:+ if (tag !== 48) {+ break;+ }- fromJSON(object: any): ListPlanCheckRunsRequest {- return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,- pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",- };- },+ message.type = task_TypeFromJSON(reader.int32());+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }- toJSON(message: ListPlanCheckRunsRequest): unknown {- const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.pageSize !== 0) {- obj.pageSize = Math.round(message.pageSize);- }- if (message.pageToken !== "") {- obj.pageToken = message.pageToken;- }- return obj;- },+ message.dependsOnTasks.push(reader.string());+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }- create(base?: DeepPartial<ListPlanCheckRunsRequest>): ListPlanCheckRunsRequest {- return ListPlanCheckRunsRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ListPlanCheckRunsRequest>): ListPlanCheckRunsRequest {- const message = createBaseListPlanCheckRunsRequest();- message.parent = object.parent ?? "";- message.pageSize = object.pageSize ?? 0;- message.pageToken = object.pageToken ?? "";- return message;- },-};+ message.target = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }-function createBaseListPlanCheckRunsResponse(): ListPlanCheckRunsResponse {- return { planCheckRuns: [], nextPageToken: "" };-}+ message.databaseCreate = Task_DatabaseCreate.decode(reader, reader.uint32());+ continue;+ case 10:+ if (tag !== 82) {+ break;+ }-export const ListPlanCheckRunsResponse = {- encode(message: ListPlanCheckRunsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.planCheckRuns) {- PlanCheckRun.encode(v!, writer.uint32(10).fork()).ldelim();- }- if (message.nextPageToken !== "") {- writer.uint32(18).string(message.nextPageToken);- }- return writer;- },+ message.databaseSchemaBaseline = Task_DatabaseSchemaBaseline.decode(reader, reader.uint32());+ continue;+ case 11:+ if (tag !== 90) {+ break;+ }- decode(input: _m0.Reader | Uint8Array, length?: number): ListPlanCheckRunsResponse {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListPlanCheckRunsResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {+ message.databaseSchemaUpdate = Task_DatabaseSchemaUpdate.decode(reader, reader.uint32());+ continue;+ case 12:+ if (tag !== 98) {break;}- message.planCheckRuns.push(PlanCheckRun.decode(reader, reader.uint32()));+ message.databaseDataUpdate = Task_DatabaseDataUpdate.decode(reader, reader.uint32());continue;- case 2:- if (tag !== 18) {+ case 16:+ if (tag !== 130) {break;}- message.nextPageToken = reader.string();+ message.databaseDataExport = Task_DatabaseDataExport.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3330,159 +2093,162 @@ export const ListPlanCheckRunsResponse = {return message;},- fromJSON(object: any): ListPlanCheckRunsResponse {+ fromJSON(object: any): Task {return {- planCheckRuns: globalThis.Array.isArray(object?.planCheckRuns)- ? object.planCheckRuns.map((e: any) => PlanCheckRun.fromJSON(e))+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ uid: isSet(object.uid) ? globalThis.String(object.uid) : "",+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ specId: isSet(object.specId) ? globalThis.String(object.specId) : "",+ status: isSet(object.status) ? task_StatusFromJSON(object.status) : Task_Status.STATUS_UNSPECIFIED,+ skippedReason: isSet(object.skippedReason) ? globalThis.String(object.skippedReason) : "",+ type: isSet(object.type) ? task_TypeFromJSON(object.type) : Task_Type.TYPE_UNSPECIFIED,+ dependsOnTasks: globalThis.Array.isArray(object?.dependsOnTasks)+ ? object.dependsOnTasks.map((e: any) => globalThis.String(e)): [],- nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",- };- },-- toJSON(message: ListPlanCheckRunsResponse): unknown {- const obj: any = {};- if (message.planCheckRuns?.length) {- obj.planCheckRuns = message.planCheckRuns.map((e) => PlanCheckRun.toJSON(e));- }- if (message.nextPageToken !== "") {- obj.nextPageToken = message.nextPageToken;- }- return obj;- },-- create(base?: DeepPartial<ListPlanCheckRunsResponse>): ListPlanCheckRunsResponse {- return ListPlanCheckRunsResponse.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<ListPlanCheckRunsResponse>): ListPlanCheckRunsResponse {- const message = createBaseListPlanCheckRunsResponse();- message.planCheckRuns = object.planCheckRuns?.map((e) => PlanCheckRun.fromPartial(e)) || [];- message.nextPageToken = object.nextPageToken ?? "";- return message;- },-};--function createBaseRunPlanChecksRequest(): RunPlanChecksRequest {- return { name: "" };-}--export const RunPlanChecksRequest = {- encode(message: RunPlanChecksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): RunPlanChecksRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseRunPlanChecksRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): RunPlanChecksRequest {- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };+ target: isSet(object.target) ? globalThis.String(object.target) : "",+ databaseCreate: isSet(object.databaseCreate) ? Task_DatabaseCreate.fromJSON(object.databaseCreate) : undefined,+ databaseSchemaBaseline: isSet(object.databaseSchemaBaseline)+ ? Task_DatabaseSchemaBaseline.fromJSON(object.databaseSchemaBaseline)+ : undefined,+ databaseSchemaUpdate: isSet(object.databaseSchemaUpdate)+ ? Task_DatabaseSchemaUpdate.fromJSON(object.databaseSchemaUpdate)+ : undefined,+ databaseDataUpdate: isSet(object.databaseDataUpdate)+ ? Task_DatabaseDataUpdate.fromJSON(object.databaseDataUpdate)+ : undefined,+ databaseDataExport: isSet(object.databaseDataExport)+ ? Task_DatabaseDataExport.fromJSON(object.databaseDataExport)+ : undefined,+ };},- toJSON(message: RunPlanChecksRequest): unknown {+ toJSON(message: Task): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}+ if (message.uid !== "") {+ obj.uid = message.uid;+ }+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.specId !== "") {+ obj.specId = message.specId;+ }+ if (message.status !== Task_Status.STATUS_UNSPECIFIED) {+ obj.status = task_StatusToJSON(message.status);+ }+ if (message.skippedReason !== "") {+ obj.skippedReason = message.skippedReason;+ }+ if (message.type !== Task_Type.TYPE_UNSPECIFIED) {+ obj.type = task_TypeToJSON(message.type);+ }+ if (message.dependsOnTasks?.length) {+ obj.dependsOnTasks = message.dependsOnTasks;+ }+ if (message.target !== "") {+ obj.target = message.target;+ }+ if (message.databaseCreate !== undefined) {+ obj.databaseCreate = Task_DatabaseCreate.toJSON(message.databaseCreate);+ }+ if (message.databaseSchemaBaseline !== undefined) {+ obj.databaseSchemaBaseline = Task_DatabaseSchemaBaseline.toJSON(message.databaseSchemaBaseline);+ }+ if (message.databaseSchemaUpdate !== undefined) {+ obj.databaseSchemaUpdate = Task_DatabaseSchemaUpdate.toJSON(message.databaseSchemaUpdate);+ }+ if (message.databaseDataUpdate !== undefined) {+ obj.databaseDataUpdate = Task_DatabaseDataUpdate.toJSON(message.databaseDataUpdate);+ }+ if (message.databaseDataExport !== undefined) {+ obj.databaseDataExport = Task_DatabaseDataExport.toJSON(message.databaseDataExport);+ }return obj;},- create(base?: DeepPartial<RunPlanChecksRequest>): RunPlanChecksRequest {- return RunPlanChecksRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<Task>): Task {+ return Task.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<RunPlanChecksRequest>): RunPlanChecksRequest {- const message = createBaseRunPlanChecksRequest();+ fromPartial(object: DeepPartial<Task>): Task {+ const message = createBaseTask();message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.title = object.title ?? "";+ message.specId = object.specId ?? "";+ message.status = object.status ?? Task_Status.STATUS_UNSPECIFIED;+ message.skippedReason = object.skippedReason ?? "";+ message.type = object.type ?? Task_Type.TYPE_UNSPECIFIED;+ message.dependsOnTasks = object.dependsOnTasks?.map((e) => e) || [];+ message.target = object.target ?? "";+ message.databaseCreate = (object.databaseCreate !== undefined && object.databaseCreate !== null)+ ? Task_DatabaseCreate.fromPartial(object.databaseCreate)+ : undefined;+ message.databaseSchemaBaseline =+ (object.databaseSchemaBaseline !== undefined && object.databaseSchemaBaseline !== null)+ ? Task_DatabaseSchemaBaseline.fromPartial(object.databaseSchemaBaseline)+ : undefined;+ message.databaseSchemaUpdate = (object.databaseSchemaUpdate !== undefined && object.databaseSchemaUpdate !== null)+ ? Task_DatabaseSchemaUpdate.fromPartial(object.databaseSchemaUpdate)+ : undefined;+ message.databaseDataUpdate = (object.databaseDataUpdate !== undefined && object.databaseDataUpdate !== null)+ ? Task_DatabaseDataUpdate.fromPartial(object.databaseDataUpdate)+ : undefined;+ message.databaseDataExport = (object.databaseDataExport !== undefined && object.databaseDataExport !== null)+ ? Task_DatabaseDataExport.fromPartial(object.databaseDataExport)+ : undefined;return message;},};-function createBaseRunPlanChecksResponse(): RunPlanChecksResponse {- return {};+function createBaseTask_DatabaseCreate(): Task_DatabaseCreate {+ return {+ project: "",+ database: "",+ table: "",+ sheet: "",+ characterSet: "",+ collation: "",+ environment: "",+ labels: {},+ };}-export const RunPlanChecksResponse = {- encode(_: RunPlanChecksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): RunPlanChecksResponse {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseRunPlanChecksResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);+export const Task_DatabaseCreate = {+ encode(message: Task_DatabaseCreate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.project !== "") {+ writer.uint32(10).string(message.project);}- return message;- },-- fromJSON(_: any): RunPlanChecksResponse {- return {};- },-- toJSON(_: RunPlanChecksResponse): unknown {- const obj: any = {};- return obj;- },-- create(base?: DeepPartial<RunPlanChecksResponse>): RunPlanChecksResponse {- return RunPlanChecksResponse.fromPartial(base ?? {});- },- fromPartial(_: DeepPartial<RunPlanChecksResponse>): RunPlanChecksResponse {- const message = createBaseRunPlanChecksResponse();- return message;- },-};--function createBaseBatchRunTasksRequest(): BatchRunTasksRequest {- return { parent: "", tasks: [], reason: "" };-}--export const BatchRunTasksRequest = {- encode(message: BatchRunTasksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);+ if (message.database !== "") {+ writer.uint32(18).string(message.database);}- for (const v of message.tasks) {- writer.uint32(18).string(v!);+ if (message.table !== "") {+ writer.uint32(26).string(message.table);}- if (message.reason !== "") {- writer.uint32(26).string(message.reason);+ if (message.sheet !== "") {+ writer.uint32(34).string(message.sheet);+ }+ if (message.characterSet !== "") {+ writer.uint32(42).string(message.characterSet);+ }+ if (message.collation !== "") {+ writer.uint32(50).string(message.collation);+ }+ if (message.environment !== "") {+ writer.uint32(58).string(message.environment);}+ Object.entries(message.labels).forEach(([key, value]) => {+ Task_DatabaseCreate_LabelsEntry.encode({ key: key as any, value }, writer.uint32(66).fork()).ldelim();+ });return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): BatchRunTasksRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseCreate {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBatchRunTasksRequest();+ const message = createBaseTask_DatabaseCreate();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3491,21 +2257,59 @@ export const BatchRunTasksRequest = {break;}- message.parent = reader.string();+ message.project = reader.string();continue;case 2:if (tag !== 18) {break;}- message.tasks.push(reader.string());+ message.database = reader.string();continue;case 3:if (tag !== 26) {break;}- message.reason = reader.string();+ message.table = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.characterSet = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.collation = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.environment = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ const entry8 = Task_DatabaseCreate_LabelsEntry.decode(reader, reader.uint32());+ if (entry8.value !== undefined) {+ message.labels[entry8.key] = entry8.value;+ }continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3516,105 +2320,100 @@ export const BatchRunTasksRequest = {return message;},- fromJSON(object: any): BatchRunTasksRequest {+ fromJSON(object: any): Task_DatabaseCreate {return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => globalThis.String(e)) : [],- reason: isSet(object.reason) ? globalThis.String(object.reason) : "",- };- },-- toJSON(message: BatchRunTasksRequest): unknown {- const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;+ project: isSet(object.project) ? globalThis.String(object.project) : "",+ database: isSet(object.database) ? globalThis.String(object.database) : "",+ table: isSet(object.table) ? globalThis.String(object.table) : "",+ sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",+ characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",+ collation: isSet(object.collation) ? globalThis.String(object.collation) : "",+ environment: isSet(object.environment) ? globalThis.String(object.environment) : "",+ labels: isObject(object.labels)+ ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ };+ },++ toJSON(message: Task_DatabaseCreate): unknown {+ const obj: any = {};+ if (message.project !== "") {+ obj.project = message.project;}- if (message.tasks?.length) {- obj.tasks = message.tasks;+ if (message.database !== "") {+ obj.database = message.database;}- if (message.reason !== "") {- obj.reason = message.reason;+ if (message.table !== "") {+ obj.table = message.table;}- return obj;- },-- create(base?: DeepPartial<BatchRunTasksRequest>): BatchRunTasksRequest {- return BatchRunTasksRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<BatchRunTasksRequest>): BatchRunTasksRequest {- const message = createBaseBatchRunTasksRequest();- message.parent = object.parent ?? "";- message.tasks = object.tasks?.map((e) => e) || [];- message.reason = object.reason ?? "";- return message;- },-};--function createBaseBatchRunTasksResponse(): BatchRunTasksResponse {- return {};-}--export const BatchRunTasksResponse = {- encode(_: BatchRunTasksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): BatchRunTasksResponse {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBatchRunTasksResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- }- if ((tag & 7) === 4 || tag === 0) {- break;+ if (message.sheet !== "") {+ obj.sheet = message.sheet;+ }+ if (message.characterSet !== "") {+ obj.characterSet = message.characterSet;+ }+ if (message.collation !== "") {+ obj.collation = message.collation;+ }+ if (message.environment !== "") {+ obj.environment = message.environment;+ }+ if (message.labels) {+ const entries = Object.entries(message.labels);+ if (entries.length > 0) {+ obj.labels = {};+ entries.forEach(([k, v]) => {+ obj.labels[k] = v;+ });}- reader.skipType(tag & 7);}- return message;- },-- fromJSON(_: any): BatchRunTasksResponse {- return {};- },-- toJSON(_: BatchRunTasksResponse): unknown {- const obj: any = {};return obj;},- create(base?: DeepPartial<BatchRunTasksResponse>): BatchRunTasksResponse {- return BatchRunTasksResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<Task_DatabaseCreate>): Task_DatabaseCreate {+ return Task_DatabaseCreate.fromPartial(base ?? {});},- fromPartial(_: DeepPartial<BatchRunTasksResponse>): BatchRunTasksResponse {- const message = createBaseBatchRunTasksResponse();+ fromPartial(object: DeepPartial<Task_DatabaseCreate>): Task_DatabaseCreate {+ const message = createBaseTask_DatabaseCreate();+ message.project = object.project ?? "";+ message.database = object.database ?? "";+ message.table = object.table ?? "";+ message.sheet = object.sheet ?? "";+ message.characterSet = object.characterSet ?? "";+ message.collation = object.collation ?? "";+ message.environment = object.environment ?? "";+ message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = globalThis.String(value);+ }+ return acc;+ }, {});return message;},};-function createBaseBatchSkipTasksRequest(): BatchSkipTasksRequest {- return { parent: "", tasks: [], reason: "" };+function createBaseTask_DatabaseCreate_LabelsEntry(): Task_DatabaseCreate_LabelsEntry {+ return { key: "", value: "" };}-export const BatchSkipTasksRequest = {- encode(message: BatchSkipTasksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- for (const v of message.tasks) {- writer.uint32(18).string(v!);+export const Task_DatabaseCreate_LabelsEntry = {+ encode(message: Task_DatabaseCreate_LabelsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);}- if (message.reason !== "") {- writer.uint32(26).string(message.reason);+ if (message.value !== "") {+ writer.uint32(18).string(message.value);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): BatchSkipTasksRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseCreate_LabelsEntry {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBatchSkipTasksRequest();+ const message = createBaseTask_DatabaseCreate_LabelsEntry();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3623,21 +2422,14 @@ export const BatchSkipTasksRequest = {break;}- message.parent = reader.string();+ message.key = reader.string();continue;case 2:if (tag !== 18) {break;}- message.tasks.push(reader.string());- continue;- case 3:- if (tag !== 26) {- break;- }-- message.reason = reader.string();+ message.value = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3648,56 +2440,61 @@ export const BatchSkipTasksRequest = {return message;},- fromJSON(object: any): BatchSkipTasksRequest {+ fromJSON(object: any): Task_DatabaseCreate_LabelsEntry {return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => globalThis.String(e)) : [],- reason: isSet(object.reason) ? globalThis.String(object.reason) : "",+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",};},- toJSON(message: BatchSkipTasksRequest): unknown {+ toJSON(message: Task_DatabaseCreate_LabelsEntry): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.tasks?.length) {- obj.tasks = message.tasks;+ if (message.key !== "") {+ obj.key = message.key;}- if (message.reason !== "") {- obj.reason = message.reason;+ if (message.value !== "") {+ obj.value = message.value;}return obj;},- create(base?: DeepPartial<BatchSkipTasksRequest>): BatchSkipTasksRequest {- return BatchSkipTasksRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<Task_DatabaseCreate_LabelsEntry>): Task_DatabaseCreate_LabelsEntry {+ return Task_DatabaseCreate_LabelsEntry.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<BatchSkipTasksRequest>): BatchSkipTasksRequest {- const message = createBaseBatchSkipTasksRequest();- message.parent = object.parent ?? "";- message.tasks = object.tasks?.map((e) => e) || [];- message.reason = object.reason ?? "";+ fromPartial(object: DeepPartial<Task_DatabaseCreate_LabelsEntry>): Task_DatabaseCreate_LabelsEntry {+ const message = createBaseTask_DatabaseCreate_LabelsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";return message;},};-function createBaseBatchSkipTasksResponse(): BatchSkipTasksResponse {- return {};+function createBaseTask_DatabaseSchemaBaseline(): Task_DatabaseSchemaBaseline {+ return { schemaVersion: "" };}-export const BatchSkipTasksResponse = {- encode(_: BatchSkipTasksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const Task_DatabaseSchemaBaseline = {+ encode(message: Task_DatabaseSchemaBaseline, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.schemaVersion !== "") {+ writer.uint32(10).string(message.schemaVersion);+ }return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): BatchSkipTasksResponse {+ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseSchemaBaseline {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBatchSkipTasksResponse();+ const message = createBaseTask_DatabaseSchemaBaseline();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.schemaVersion = reader.string();+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -3707,46 +2504,47 @@ export const BatchSkipTasksResponse = {return message;},- fromJSON(_: any): BatchSkipTasksResponse {- return {};+ fromJSON(object: any): Task_DatabaseSchemaBaseline {+ return { schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "" };},- toJSON(_: BatchSkipTasksResponse): unknown {+ toJSON(message: Task_DatabaseSchemaBaseline): unknown {const obj: any = {};+ if (message.schemaVersion !== "") {+ obj.schemaVersion = message.schemaVersion;+ }return obj;},- create(base?: DeepPartial<BatchSkipTasksResponse>): BatchSkipTasksResponse {- return BatchSkipTasksResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<Task_DatabaseSchemaBaseline>): Task_DatabaseSchemaBaseline {+ return Task_DatabaseSchemaBaseline.fromPartial(base ?? {});},- fromPartial(_: DeepPartial<BatchSkipTasksResponse>): BatchSkipTasksResponse {- const message = createBaseBatchSkipTasksResponse();+ fromPartial(object: DeepPartial<Task_DatabaseSchemaBaseline>): Task_DatabaseSchemaBaseline {+ const message = createBaseTask_DatabaseSchemaBaseline();+ message.schemaVersion = object.schemaVersion ?? "";return message;},};-function createBaseBatchCancelTaskRunsRequest(): BatchCancelTaskRunsRequest {- return { parent: "", taskRuns: [], reason: "" };+function createBaseTask_DatabaseSchemaUpdate(): Task_DatabaseSchemaUpdate {+ return { sheet: "", schemaVersion: "" };}-export const BatchCancelTaskRunsRequest = {- encode(message: BatchCancelTaskRunsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- for (const v of message.taskRuns) {- writer.uint32(18).string(v!);+export const Task_DatabaseSchemaUpdate = {+ encode(message: Task_DatabaseSchemaUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.sheet !== "") {+ writer.uint32(10).string(message.sheet);}- if (message.reason !== "") {- writer.uint32(26).string(message.reason);+ if (message.schemaVersion !== "") {+ writer.uint32(18).string(message.schemaVersion);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): BatchCancelTaskRunsRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseSchemaUpdate {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBatchCancelTaskRunsRequest();+ const message = createBaseTask_DatabaseSchemaUpdate();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3755,21 +2553,14 @@ export const BatchCancelTaskRunsRequest = {break;}- message.parent = reader.string();+ message.sheet = reader.string();continue;case 2:if (tag !== 18) {break;}- message.taskRuns.push(reader.string());- continue;- case 3:- if (tag !== 26) {- break;- }-- message.reason = reader.string();+ message.schemaVersion = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3780,133 +2571,81 @@ export const BatchCancelTaskRunsRequest = {return message;},- fromJSON(object: any): BatchCancelTaskRunsRequest {+ fromJSON(object: any): Task_DatabaseSchemaUpdate {return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- taskRuns: globalThis.Array.isArray(object?.taskRuns) ? object.taskRuns.map((e: any) => globalThis.String(e)) : [],- reason: isSet(object.reason) ? globalThis.String(object.reason) : "",+ sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",+ schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",};},- toJSON(message: BatchCancelTaskRunsRequest): unknown {+ toJSON(message: Task_DatabaseSchemaUpdate): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;- }- if (message.taskRuns?.length) {- obj.taskRuns = message.taskRuns;- }- if (message.reason !== "") {- obj.reason = message.reason;+ if (message.sheet !== "") {+ obj.sheet = message.sheet;}- return obj;- },-- create(base?: DeepPartial<BatchCancelTaskRunsRequest>): BatchCancelTaskRunsRequest {- return BatchCancelTaskRunsRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<BatchCancelTaskRunsRequest>): BatchCancelTaskRunsRequest {- const message = createBaseBatchCancelTaskRunsRequest();- message.parent = object.parent ?? "";- message.taskRuns = object.taskRuns?.map((e) => e) || [];- message.reason = object.reason ?? "";- return message;- },-};--function createBaseBatchCancelTaskRunsResponse(): BatchCancelTaskRunsResponse {- return {};-}--export const BatchCancelTaskRunsResponse = {- encode(_: BatchCancelTaskRunsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): BatchCancelTaskRunsResponse {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseBatchCancelTaskRunsResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);+ if (message.schemaVersion !== "") {+ obj.schemaVersion = message.schemaVersion;}- return message;- },-- fromJSON(_: any): BatchCancelTaskRunsResponse {- return {};- },-- toJSON(_: BatchCancelTaskRunsResponse): unknown {- const obj: any = {};return obj;},- create(base?: DeepPartial<BatchCancelTaskRunsResponse>): BatchCancelTaskRunsResponse {- return BatchCancelTaskRunsResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<Task_DatabaseSchemaUpdate>): Task_DatabaseSchemaUpdate {+ return Task_DatabaseSchemaUpdate.fromPartial(base ?? {});},- fromPartial(_: DeepPartial<BatchCancelTaskRunsResponse>): BatchCancelTaskRunsResponse {- const message = createBaseBatchCancelTaskRunsResponse();+ fromPartial(object: DeepPartial<Task_DatabaseSchemaUpdate>): Task_DatabaseSchemaUpdate {+ const message = createBaseTask_DatabaseSchemaUpdate();+ message.sheet = object.sheet ?? "";+ message.schemaVersion = object.schemaVersion ?? "";return message;},};-function createBasePlanCheckRun(): PlanCheckRun {+function createBaseTask_DatabaseDataUpdate(): Task_DatabaseDataUpdate {return {- name: "",- uid: "",- type: PlanCheckRun_Type.TYPE_UNSPECIFIED,- status: PlanCheckRun_Status.STATUS_UNSPECIFIED,- target: "",sheet: "",- results: [],- error: "",- createTime: undefined,+ schemaVersion: "",+ rollbackEnabled: false,+ rollbackSqlStatus: Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED,+ rollbackError: "",+ rollbackSheet: "",+ rollbackFromIssue: "",+ rollbackFromTask: "",};}-export const PlanCheckRun = {- encode(message: PlanCheckRun, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.uid !== "") {- writer.uint32(18).string(message.uid);+export const Task_DatabaseDataUpdate = {+ encode(message: Task_DatabaseDataUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.sheet !== "") {+ writer.uint32(10).string(message.sheet);}- if (message.type !== PlanCheckRun_Type.TYPE_UNSPECIFIED) {- writer.uint32(24).int32(planCheckRun_TypeToNumber(message.type));+ if (message.schemaVersion !== "") {+ writer.uint32(18).string(message.schemaVersion);}- if (message.status !== PlanCheckRun_Status.STATUS_UNSPECIFIED) {- writer.uint32(32).int32(planCheckRun_StatusToNumber(message.status));+ if (message.rollbackEnabled === true) {+ writer.uint32(24).bool(message.rollbackEnabled);}- if (message.target !== "") {- writer.uint32(42).string(message.target);+ if (message.rollbackSqlStatus !== Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED) {+ writer.uint32(32).int32(task_DatabaseDataUpdate_RollbackSqlStatusToNumber(message.rollbackSqlStatus));}- if (message.sheet !== "") {- writer.uint32(50).string(message.sheet);+ if (message.rollbackError !== "") {+ writer.uint32(42).string(message.rollbackError);}- for (const v of message.results) {- PlanCheckRun_Result.encode(v!, writer.uint32(58).fork()).ldelim();+ if (message.rollbackSheet !== "") {+ writer.uint32(50).string(message.rollbackSheet);}- if (message.error !== "") {- writer.uint32(66).string(message.error);+ if (message.rollbackFromIssue !== "") {+ writer.uint32(58).string(message.rollbackFromIssue);}- if (message.createTime !== undefined) {- Timestamp.encode(toTimestamp(message.createTime), writer.uint32(74).fork()).ldelim();+ if (message.rollbackFromTask !== "") {+ writer.uint32(66).string(message.rollbackFromTask);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun {+ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseDataUpdate {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlanCheckRun();+ const message = createBaseTask_DatabaseDataUpdate();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -3915,63 +2654,56 @@ export const PlanCheckRun = {break;}- message.name = reader.string();+ message.sheet = reader.string();continue;case 2:if (tag !== 18) {break;}- message.uid = reader.string();+ message.schemaVersion = reader.string();continue;case 3:if (tag !== 24) {break;}- message.type = planCheckRun_TypeFromJSON(reader.int32());+ message.rollbackEnabled = reader.bool();continue;case 4:if (tag !== 32) {break;}- message.status = planCheckRun_StatusFromJSON(reader.int32());+ message.rollbackSqlStatus = task_DatabaseDataUpdate_RollbackSqlStatusFromJSON(reader.int32());continue;case 5:if (tag !== 42) {break;}- message.target = reader.string();+ message.rollbackError = reader.string();continue;case 6:if (tag !== 50) {break;}- message.sheet = reader.string();+ message.rollbackSheet = reader.string();continue;case 7:if (tag !== 58) {break;}- message.results.push(PlanCheckRun_Result.decode(reader, reader.uint32()));+ message.rollbackFromIssue = reader.string();continue;case 8:if (tag !== 66) {break;}- message.error = reader.string();- continue;- case 9:- if (tag !== 74) {- break;- }-- message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ message.rollbackFromTask = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -3982,156 +2714,123 @@ export const PlanCheckRun = {return message;},- fromJSON(object: any): PlanCheckRun {+ fromJSON(object: any): Task_DatabaseDataUpdate {return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",- type: isSet(object.type) ? planCheckRun_TypeFromJSON(object.type) : PlanCheckRun_Type.TYPE_UNSPECIFIED,- status: isSet(object.status)- ? planCheckRun_StatusFromJSON(object.status)- : PlanCheckRun_Status.STATUS_UNSPECIFIED,- target: isSet(object.target) ? globalThis.String(object.target) : "",sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",- results: globalThis.Array.isArray(object?.results)- ? object.results.map((e: any) => PlanCheckRun_Result.fromJSON(e))- : [],- error: isSet(object.error) ? globalThis.String(object.error) : "",- createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,+ schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",+ rollbackEnabled: isSet(object.rollbackEnabled) ? globalThis.Boolean(object.rollbackEnabled) : false,+ rollbackSqlStatus: isSet(object.rollbackSqlStatus)+ ? task_DatabaseDataUpdate_RollbackSqlStatusFromJSON(object.rollbackSqlStatus)+ : Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED,+ rollbackError: isSet(object.rollbackError) ? globalThis.String(object.rollbackError) : "",+ rollbackSheet: isSet(object.rollbackSheet) ? globalThis.String(object.rollbackSheet) : "",+ rollbackFromIssue: isSet(object.rollbackFromIssue) ? globalThis.String(object.rollbackFromIssue) : "",+ rollbackFromTask: isSet(object.rollbackFromTask) ? globalThis.String(object.rollbackFromTask) : "",};},- toJSON(message: PlanCheckRun): unknown {+ toJSON(message: Task_DatabaseDataUpdate): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.uid !== "") {- obj.uid = message.uid;+ if (message.sheet !== "") {+ obj.sheet = message.sheet;}- if (message.type !== PlanCheckRun_Type.TYPE_UNSPECIFIED) {- obj.type = planCheckRun_TypeToJSON(message.type);+ if (message.schemaVersion !== "") {+ obj.schemaVersion = message.schemaVersion;}- if (message.status !== PlanCheckRun_Status.STATUS_UNSPECIFIED) {- obj.status = planCheckRun_StatusToJSON(message.status);+ if (message.rollbackEnabled === true) {+ obj.rollbackEnabled = message.rollbackEnabled;}- if (message.target !== "") {- obj.target = message.target;+ if (message.rollbackSqlStatus !== Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED) {+ obj.rollbackSqlStatus = task_DatabaseDataUpdate_RollbackSqlStatusToJSON(message.rollbackSqlStatus);}- if (message.sheet !== "") {- obj.sheet = message.sheet;+ if (message.rollbackError !== "") {+ obj.rollbackError = message.rollbackError;}- if (message.results?.length) {- obj.results = message.results.map((e) => PlanCheckRun_Result.toJSON(e));+ if (message.rollbackSheet !== "") {+ obj.rollbackSheet = message.rollbackSheet;}- if (message.error !== "") {- obj.error = message.error;+ if (message.rollbackFromIssue !== "") {+ obj.rollbackFromIssue = message.rollbackFromIssue;}- if (message.createTime !== undefined) {- obj.createTime = message.createTime.toISOString();+ if (message.rollbackFromTask !== "") {+ obj.rollbackFromTask = message.rollbackFromTask;}return obj;},- create(base?: DeepPartial<PlanCheckRun>): PlanCheckRun {- return PlanCheckRun.fromPartial(base ?? {});+ create(base?: DeepPartial<Task_DatabaseDataUpdate>): Task_DatabaseDataUpdate {+ return Task_DatabaseDataUpdate.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<PlanCheckRun>): PlanCheckRun {- const message = createBasePlanCheckRun();- message.name = object.name ?? "";- message.uid = object.uid ?? "";- message.type = object.type ?? PlanCheckRun_Type.TYPE_UNSPECIFIED;- message.status = object.status ?? PlanCheckRun_Status.STATUS_UNSPECIFIED;- message.target = object.target ?? "";+ fromPartial(object: DeepPartial<Task_DatabaseDataUpdate>): Task_DatabaseDataUpdate {+ const message = createBaseTask_DatabaseDataUpdate();message.sheet = object.sheet ?? "";- message.results = object.results?.map((e) => PlanCheckRun_Result.fromPartial(e)) || [];- message.error = object.error ?? "";- message.createTime = object.createTime ?? undefined;+ message.schemaVersion = object.schemaVersion ?? "";+ message.rollbackEnabled = object.rollbackEnabled ?? false;+ message.rollbackSqlStatus = object.rollbackSqlStatus ??+ Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED;+ message.rollbackError = object.rollbackError ?? "";+ message.rollbackSheet = object.rollbackSheet ?? "";+ message.rollbackFromIssue = object.rollbackFromIssue ?? "";+ message.rollbackFromTask = object.rollbackFromTask ?? "";return message;},};-function createBasePlanCheckRun_Result(): PlanCheckRun_Result {- return {- status: PlanCheckRun_Result_Status.STATUS_UNSPECIFIED,- title: "",- content: "",- code: 0,- sqlSummaryReport: undefined,- sqlReviewReport: undefined,- };+function createBaseTask_DatabaseDataExport(): Task_DatabaseDataExport {+ return { target: "", sheet: "", format: ExportFormat.FORMAT_UNSPECIFIED, password: undefined };}-export const PlanCheckRun_Result = {- encode(message: PlanCheckRun_Result, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.status !== PlanCheckRun_Result_Status.STATUS_UNSPECIFIED) {- writer.uint32(8).int32(planCheckRun_Result_StatusToNumber(message.status));- }- if (message.title !== "") {- writer.uint32(18).string(message.title);- }- if (message.content !== "") {- writer.uint32(26).string(message.content);+export const Task_DatabaseDataExport = {+ encode(message: Task_DatabaseDataExport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.target !== "") {+ writer.uint32(10).string(message.target);}- if (message.code !== 0) {- writer.uint32(32).int32(message.code);+ if (message.sheet !== "") {+ writer.uint32(18).string(message.sheet);}- if (message.sqlSummaryReport !== undefined) {- PlanCheckRun_Result_SqlSummaryReport.encode(message.sqlSummaryReport, writer.uint32(42).fork()).ldelim();+ if (message.format !== ExportFormat.FORMAT_UNSPECIFIED) {+ writer.uint32(24).int32(exportFormatToNumber(message.format));}- if (message.sqlReviewReport !== undefined) {- PlanCheckRun_Result_SqlReviewReport.encode(message.sqlReviewReport, writer.uint32(50).fork()).ldelim();+ if (message.password !== undefined) {+ writer.uint32(34).string(message.password);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun_Result {+ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseDataExport {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlanCheckRun_Result();+ const message = createBaseTask_DatabaseDataExport();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {case 1:- if (tag !== 8) {+ if (tag !== 10) {break;}- message.status = planCheckRun_Result_StatusFromJSON(reader.int32());+ message.target = reader.string();continue;case 2:if (tag !== 18) {break;}- message.title = reader.string();+ message.sheet = reader.string();continue;case 3:- if (tag !== 26) {+ if (tag !== 24) {break;}- message.content = reader.string();+ message.format = exportFormatFromJSON(reader.int32());continue;case 4:- if (tag !== 32) {- break;- }-- message.code = reader.int32();- continue;- case 5:- if (tag !== 42) {- break;- }-- message.sqlSummaryReport = PlanCheckRun_Result_SqlSummaryReport.decode(reader, reader.uint32());- continue;- case 6:- if (tag !== 50) {+ if (tag !== 34) {break;}- message.sqlReviewReport = PlanCheckRun_Result_SqlReviewReport.decode(reader, reader.uint32());+ message.password = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4142,228 +2841,237 @@ export const PlanCheckRun_Result = {return message;},- fromJSON(object: any): PlanCheckRun_Result {+ fromJSON(object: any): Task_DatabaseDataExport {return {- status: isSet(object.status)- ? planCheckRun_Result_StatusFromJSON(object.status)- : PlanCheckRun_Result_Status.STATUS_UNSPECIFIED,- title: isSet(object.title) ? globalThis.String(object.title) : "",- content: isSet(object.content) ? globalThis.String(object.content) : "",- code: isSet(object.code) ? globalThis.Number(object.code) : 0,- sqlSummaryReport: isSet(object.sqlSummaryReport)- ? PlanCheckRun_Result_SqlSummaryReport.fromJSON(object.sqlSummaryReport)- : undefined,- sqlReviewReport: isSet(object.sqlReviewReport)- ? PlanCheckRun_Result_SqlReviewReport.fromJSON(object.sqlReviewReport)- : undefined,+ target: isSet(object.target) ? globalThis.String(object.target) : "",+ sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",+ format: isSet(object.format) ? exportFormatFromJSON(object.format) : ExportFormat.FORMAT_UNSPECIFIED,+ password: isSet(object.password) ? globalThis.String(object.password) : undefined,};},- toJSON(message: PlanCheckRun_Result): unknown {+ toJSON(message: Task_DatabaseDataExport): unknown {const obj: any = {};- if (message.status !== PlanCheckRun_Result_Status.STATUS_UNSPECIFIED) {- obj.status = planCheckRun_Result_StatusToJSON(message.status);- }- if (message.title !== "") {- obj.title = message.title;+ if (message.target !== "") {+ obj.target = message.target;}- if (message.content !== "") {- obj.content = message.content;+ if (message.sheet !== "") {+ obj.sheet = message.sheet;}- if (message.code !== 0) {- obj.code = Math.round(message.code);- }- if (message.sqlSummaryReport !== undefined) {- obj.sqlSummaryReport = PlanCheckRun_Result_SqlSummaryReport.toJSON(message.sqlSummaryReport);+ if (message.format !== ExportFormat.FORMAT_UNSPECIFIED) {+ obj.format = exportFormatToJSON(message.format);}- if (message.sqlReviewReport !== undefined) {- obj.sqlReviewReport = PlanCheckRun_Result_SqlReviewReport.toJSON(message.sqlReviewReport);+ if (message.password !== undefined) {+ obj.password = message.password;}return obj;},- create(base?: DeepPartial<PlanCheckRun_Result>): PlanCheckRun_Result {- return PlanCheckRun_Result.fromPartial(base ?? {});+ create(base?: DeepPartial<Task_DatabaseDataExport>): Task_DatabaseDataExport {+ return Task_DatabaseDataExport.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<PlanCheckRun_Result>): PlanCheckRun_Result {- const message = createBasePlanCheckRun_Result();- message.status = object.status ?? PlanCheckRun_Result_Status.STATUS_UNSPECIFIED;- message.title = object.title ?? "";- message.content = object.content ?? "";- message.code = object.code ?? 0;- message.sqlSummaryReport = (object.sqlSummaryReport !== undefined && object.sqlSummaryReport !== null)- ? PlanCheckRun_Result_SqlSummaryReport.fromPartial(object.sqlSummaryReport)- : undefined;- message.sqlReviewReport = (object.sqlReviewReport !== undefined && object.sqlReviewReport !== null)- ? PlanCheckRun_Result_SqlReviewReport.fromPartial(object.sqlReviewReport)- : undefined;+ fromPartial(object: DeepPartial<Task_DatabaseDataExport>): Task_DatabaseDataExport {+ const message = createBaseTask_DatabaseDataExport();+ message.target = object.target ?? "";+ message.sheet = object.sheet ?? "";+ message.format = object.format ?? ExportFormat.FORMAT_UNSPECIFIED;+ message.password = object.password ?? undefined;return message;},};-function createBasePlanCheckRun_Result_SqlSummaryReport(): PlanCheckRun_Result_SqlSummaryReport {- return { code: 0, statementTypes: [], affectedRows: 0, changedResources: undefined };+function createBaseTaskRun(): TaskRun {+ return {+ name: "",+ uid: "",+ creator: "",+ updater: "",+ createTime: undefined,+ updateTime: undefined,+ title: "",+ status: TaskRun_Status.STATUS_UNSPECIFIED,+ detail: "",+ changeHistory: "",+ schemaVersion: "",+ executionStatus: TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED,+ executionStatusUpdateTime: undefined,+ executionDetail: undefined,+ startTime: undefined,+ exportArchiveStatus: TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED,+ };}-export const PlanCheckRun_Result_SqlSummaryReport = {- encode(message: PlanCheckRun_Result_SqlSummaryReport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.code !== 0) {- writer.uint32(8).int32(message.code);+export const TaskRun = {+ encode(message: TaskRun, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- for (const v of message.statementTypes) {- writer.uint32(18).string(v!);+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);}- if (message.affectedRows !== 0) {- writer.uint32(24).int32(message.affectedRows);+ if (message.creator !== "") {+ writer.uint32(26).string(message.creator);+ }+ if (message.updater !== "") {+ writer.uint32(34).string(message.updater);+ }+ if (message.createTime !== undefined) {+ Timestamp.encode(toTimestamp(message.createTime), writer.uint32(42).fork()).ldelim();+ }+ if (message.updateTime !== undefined) {+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(50).fork()).ldelim();+ }+ if (message.title !== "") {+ writer.uint32(58).string(message.title);+ }+ if (message.status !== TaskRun_Status.STATUS_UNSPECIFIED) {+ writer.uint32(64).int32(taskRun_StatusToNumber(message.status));+ }+ if (message.detail !== "") {+ writer.uint32(74).string(message.detail);}- if (message.changedResources !== undefined) {- ChangedResources.encode(message.changedResources, writer.uint32(34).fork()).ldelim();+ if (message.changeHistory !== "") {+ writer.uint32(82).string(message.changeHistory);+ }+ if (message.schemaVersion !== "") {+ writer.uint32(90).string(message.schemaVersion);+ }+ if (message.executionStatus !== TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED) {+ writer.uint32(96).int32(taskRun_ExecutionStatusToNumber(message.executionStatus));+ }+ if (message.executionStatusUpdateTime !== undefined) {+ Timestamp.encode(toTimestamp(message.executionStatusUpdateTime), writer.uint32(106).fork()).ldelim();+ }+ if (message.executionDetail !== undefined) {+ TaskRun_ExecutionDetail.encode(message.executionDetail, writer.uint32(122).fork()).ldelim();+ }+ if (message.startTime !== undefined) {+ Timestamp.encode(toTimestamp(message.startTime), writer.uint32(114).fork()).ldelim();+ }+ if (message.exportArchiveStatus !== TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED) {+ writer.uint32(128).int32(taskRun_ExportArchiveStatusToNumber(message.exportArchiveStatus));}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun_Result_SqlSummaryReport {+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRun {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlanCheckRun_Result_SqlSummaryReport();+ const message = createBaseTaskRun();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {case 1:- if (tag !== 8) {+ if (tag !== 10) {break;}- message.code = reader.int32();+ message.name = reader.string();continue;case 2:if (tag !== 18) {break;}- message.statementTypes.push(reader.string());+ message.uid = reader.string();continue;case 3:- if (tag !== 24) {+ if (tag !== 26) {break;}- message.affectedRows = reader.int32();+ message.creator = reader.string();continue;case 4:if (tag !== 34) {break;}- message.changedResources = ChangedResources.decode(reader, reader.uint32());+ message.updater = reader.string();continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },+ case 5:+ if (tag !== 42) {+ break;+ }- fromJSON(object: any): PlanCheckRun_Result_SqlSummaryReport {- return {- code: isSet(object.code) ? globalThis.Number(object.code) : 0,- statementTypes: globalThis.Array.isArray(object?.statementTypes)- ? object.statementTypes.map((e: any) => globalThis.String(e))- : [],- affectedRows: isSet(object.affectedRows) ? globalThis.Number(object.affectedRows) : 0,- changedResources: isSet(object.changedResources) ? ChangedResources.fromJSON(object.changedResources) : undefined,- };- },+ message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }- toJSON(message: PlanCheckRun_Result_SqlSummaryReport): unknown {- const obj: any = {};- if (message.code !== 0) {- obj.code = Math.round(message.code);- }- if (message.statementTypes?.length) {- obj.statementTypes = message.statementTypes;- }- if (message.affectedRows !== 0) {- obj.affectedRows = Math.round(message.affectedRows);- }- if (message.changedResources !== undefined) {- obj.changedResources = ChangedResources.toJSON(message.changedResources);- }- return obj;- },+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }- create(base?: DeepPartial<PlanCheckRun_Result_SqlSummaryReport>): PlanCheckRun_Result_SqlSummaryReport {- return PlanCheckRun_Result_SqlSummaryReport.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<PlanCheckRun_Result_SqlSummaryReport>): PlanCheckRun_Result_SqlSummaryReport {- const message = createBasePlanCheckRun_Result_SqlSummaryReport();- message.code = object.code ?? 0;- message.statementTypes = object.statementTypes?.map((e) => e) || [];- message.affectedRows = object.affectedRows ?? 0;- message.changedResources = (object.changedResources !== undefined && object.changedResources !== null)- ? ChangedResources.fromPartial(object.changedResources)- : undefined;- return message;- },-};+ message.title = reader.string();+ continue;+ case 8:+ if (tag !== 64) {+ break;+ }-function createBasePlanCheckRun_Result_SqlReviewReport(): PlanCheckRun_Result_SqlReviewReport {- return { line: 0, column: 0, detail: "", code: 0 };-}+ message.status = taskRun_StatusFromJSON(reader.int32());+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }-export const PlanCheckRun_Result_SqlReviewReport = {- encode(message: PlanCheckRun_Result_SqlReviewReport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.line !== 0) {- writer.uint32(8).int32(message.line);- }- if (message.column !== 0) {- writer.uint32(16).int32(message.column);- }- if (message.detail !== "") {- writer.uint32(26).string(message.detail);- }- if (message.code !== 0) {- writer.uint32(32).int32(message.code);- }- return writer;- },+ message.detail = reader.string();+ continue;+ case 10:+ if (tag !== 82) {+ break;+ }- decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun_Result_SqlReviewReport {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlanCheckRun_Result_SqlReviewReport();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {+ message.changeHistory = reader.string();+ continue;+ case 11:+ if (tag !== 90) {break;}- message.line = reader.int32();+ message.schemaVersion = reader.string();continue;- case 2:- if (tag !== 16) {+ case 12:+ if (tag !== 96) {break;}- message.column = reader.int32();+ message.executionStatus = taskRun_ExecutionStatusFromJSON(reader.int32());continue;- case 3:- if (tag !== 26) {+ case 13:+ if (tag !== 106) {break;}- message.detail = reader.string();+ message.executionStatusUpdateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));continue;- case 4:- if (tag !== 32) {+ case 15:+ if (tag !== 122) {+ break;+ }++ message.executionDetail = TaskRun_ExecutionDetail.decode(reader, reader.uint32());+ continue;+ case 14:+ if (tag !== 114) {+ break;+ }++ message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 16:+ if (tag !== 128) {break;}- message.code = reader.int32();+ message.exportArchiveStatus = taskRun_ExportArchiveStatusFromJSON(reader.int32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4374,70 +3082,171 @@ export const PlanCheckRun_Result_SqlReviewReport = {return message;},- fromJSON(object: any): PlanCheckRun_Result_SqlReviewReport {+ fromJSON(object: any): TaskRun {return {- line: isSet(object.line) ? globalThis.Number(object.line) : 0,- column: isSet(object.column) ? globalThis.Number(object.column) : 0,+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ uid: isSet(object.uid) ? globalThis.String(object.uid) : "",+ creator: isSet(object.creator) ? globalThis.String(object.creator) : "",+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",+ createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ status: isSet(object.status) ? taskRun_StatusFromJSON(object.status) : TaskRun_Status.STATUS_UNSPECIFIED,detail: isSet(object.detail) ? globalThis.String(object.detail) : "",- code: isSet(object.code) ? globalThis.Number(object.code) : 0,+ changeHistory: isSet(object.changeHistory) ? globalThis.String(object.changeHistory) : "",+ schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",+ executionStatus: isSet(object.executionStatus)+ ? taskRun_ExecutionStatusFromJSON(object.executionStatus)+ : TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED,+ executionStatusUpdateTime: isSet(object.executionStatusUpdateTime)+ ? fromJsonTimestamp(object.executionStatusUpdateTime)+ : undefined,+ executionDetail: isSet(object.executionDetail)+ ? TaskRun_ExecutionDetail.fromJSON(object.executionDetail)+ : undefined,+ startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : undefined,+ exportArchiveStatus: isSet(object.exportArchiveStatus)+ ? taskRun_ExportArchiveStatusFromJSON(object.exportArchiveStatus)+ : TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED,};},- toJSON(message: PlanCheckRun_Result_SqlReviewReport): unknown {+ toJSON(message: TaskRun): unknown {const obj: any = {};- if (message.line !== 0) {- obj.line = Math.round(message.line);+ if (message.name !== "") {+ obj.name = message.name;}- if (message.column !== 0) {- obj.column = Math.round(message.column);+ if (message.uid !== "") {+ obj.uid = message.uid;}- if (message.detail !== "") {- obj.detail = message.detail;+ if (message.creator !== "") {+ obj.creator = message.creator;}- if (message.code !== 0) {- obj.code = Math.round(message.code);+ if (message.updater !== "") {+ obj.updater = message.updater;}- return obj;- },+ if (message.createTime !== undefined) {+ obj.createTime = message.createTime.toISOString();+ }+ if (message.updateTime !== undefined) {+ obj.updateTime = message.updateTime.toISOString();+ }+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.status !== TaskRun_Status.STATUS_UNSPECIFIED) {+ obj.status = taskRun_StatusToJSON(message.status);+ }+ if (message.detail !== "") {+ obj.detail = message.detail;+ }+ if (message.changeHistory !== "") {+ obj.changeHistory = message.changeHistory;+ }+ if (message.schemaVersion !== "") {+ obj.schemaVersion = message.schemaVersion;+ }+ if (message.executionStatus !== TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED) {+ obj.executionStatus = taskRun_ExecutionStatusToJSON(message.executionStatus);+ }+ if (message.executionStatusUpdateTime !== undefined) {+ obj.executionStatusUpdateTime = message.executionStatusUpdateTime.toISOString();+ }+ if (message.executionDetail !== undefined) {+ obj.executionDetail = TaskRun_ExecutionDetail.toJSON(message.executionDetail);+ }+ if (message.startTime !== undefined) {+ obj.startTime = message.startTime.toISOString();+ }+ if (message.exportArchiveStatus !== TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED) {+ obj.exportArchiveStatus = taskRun_ExportArchiveStatusToJSON(message.exportArchiveStatus);+ }+ return obj;+ },- create(base?: DeepPartial<PlanCheckRun_Result_SqlReviewReport>): PlanCheckRun_Result_SqlReviewReport {- return PlanCheckRun_Result_SqlReviewReport.fromPartial(base ?? {});+ create(base?: DeepPartial<TaskRun>): TaskRun {+ return TaskRun.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<PlanCheckRun_Result_SqlReviewReport>): PlanCheckRun_Result_SqlReviewReport {- const message = createBasePlanCheckRun_Result_SqlReviewReport();- message.line = object.line ?? 0;- message.column = object.column ?? 0;+ fromPartial(object: DeepPartial<TaskRun>): TaskRun {+ const message = createBaseTaskRun();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.creator = object.creator ?? "";+ message.updater = object.updater ?? "";+ message.createTime = object.createTime ?? undefined;+ message.updateTime = object.updateTime ?? undefined;+ message.title = object.title ?? "";+ message.status = object.status ?? TaskRun_Status.STATUS_UNSPECIFIED;message.detail = object.detail ?? "";- message.code = object.code ?? 0;+ message.changeHistory = object.changeHistory ?? "";+ message.schemaVersion = object.schemaVersion ?? "";+ message.executionStatus = object.executionStatus ?? TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED;+ message.executionStatusUpdateTime = object.executionStatusUpdateTime ?? undefined;+ message.executionDetail = (object.executionDetail !== undefined && object.executionDetail !== null)+ ? TaskRun_ExecutionDetail.fromPartial(object.executionDetail)+ : undefined;+ message.startTime = object.startTime ?? undefined;+ message.exportArchiveStatus = object.exportArchiveStatus ??+ TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED;return message;},};-function createBaseGetRolloutRequest(): GetRolloutRequest {- return { name: "" };+function createBaseTaskRun_ExecutionDetail(): TaskRun_ExecutionDetail {+ return { commandsTotal: 0, commandsCompleted: 0, commandStartPosition: undefined, commandEndPosition: undefined };}-export const GetRolloutRequest = {- encode(message: GetRolloutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);+export const TaskRun_ExecutionDetail = {+ encode(message: TaskRun_ExecutionDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.commandsTotal !== 0) {+ writer.uint32(8).int32(message.commandsTotal);+ }+ if (message.commandsCompleted !== 0) {+ writer.uint32(16).int32(message.commandsCompleted);+ }+ if (message.commandStartPosition !== undefined) {+ TaskRun_ExecutionDetail_Position.encode(message.commandStartPosition, writer.uint32(26).fork()).ldelim();+ }+ if (message.commandEndPosition !== undefined) {+ TaskRun_ExecutionDetail_Position.encode(message.commandEndPosition, writer.uint32(34).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): GetRolloutRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRun_ExecutionDetail {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetRolloutRequest();+ const message = createBaseTaskRun_ExecutionDetail();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {case 1:- if (tag !== 10) {+ if (tag !== 8) {break;}- message.name = reader.string();+ message.commandsTotal = reader.int32();+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.commandsCompleted = reader.int32();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.commandStartPosition = TaskRun_ExecutionDetail_Position.decode(reader, reader.uint32());+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.commandEndPosition = TaskRun_ExecutionDetail_Position.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4448,63 +3257,88 @@ export const GetRolloutRequest = {return message;},- fromJSON(object: any): GetRolloutRequest {- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };+ fromJSON(object: any): TaskRun_ExecutionDetail {+ return {+ commandsTotal: isSet(object.commandsTotal) ? globalThis.Number(object.commandsTotal) : 0,+ commandsCompleted: isSet(object.commandsCompleted) ? globalThis.Number(object.commandsCompleted) : 0,+ commandStartPosition: isSet(object.commandStartPosition)+ ? TaskRun_ExecutionDetail_Position.fromJSON(object.commandStartPosition)+ : undefined,+ commandEndPosition: isSet(object.commandEndPosition)+ ? TaskRun_ExecutionDetail_Position.fromJSON(object.commandEndPosition)+ : undefined,+ };},- toJSON(message: GetRolloutRequest): unknown {+ toJSON(message: TaskRun_ExecutionDetail): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;+ if (message.commandsTotal !== 0) {+ obj.commandsTotal = Math.round(message.commandsTotal);+ }+ if (message.commandsCompleted !== 0) {+ obj.commandsCompleted = Math.round(message.commandsCompleted);+ }+ if (message.commandStartPosition !== undefined) {+ obj.commandStartPosition = TaskRun_ExecutionDetail_Position.toJSON(message.commandStartPosition);+ }+ if (message.commandEndPosition !== undefined) {+ obj.commandEndPosition = TaskRun_ExecutionDetail_Position.toJSON(message.commandEndPosition);}return obj;},- create(base?: DeepPartial<GetRolloutRequest>): GetRolloutRequest {- return GetRolloutRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<TaskRun_ExecutionDetail>): TaskRun_ExecutionDetail {+ return TaskRun_ExecutionDetail.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<GetRolloutRequest>): GetRolloutRequest {- const message = createBaseGetRolloutRequest();- message.name = object.name ?? "";+ fromPartial(object: DeepPartial<TaskRun_ExecutionDetail>): TaskRun_ExecutionDetail {+ const message = createBaseTaskRun_ExecutionDetail();+ message.commandsTotal = object.commandsTotal ?? 0;+ message.commandsCompleted = object.commandsCompleted ?? 0;+ message.commandStartPosition = (object.commandStartPosition !== undefined && object.commandStartPosition !== null)+ ? TaskRun_ExecutionDetail_Position.fromPartial(object.commandStartPosition)+ : undefined;+ message.commandEndPosition = (object.commandEndPosition !== undefined && object.commandEndPosition !== null)+ ? TaskRun_ExecutionDetail_Position.fromPartial(object.commandEndPosition)+ : undefined;return message;},};-function createBaseCreateRolloutRequest(): CreateRolloutRequest {- return { parent: "", rollout: undefined };+function createBaseTaskRun_ExecutionDetail_Position(): TaskRun_ExecutionDetail_Position {+ return { line: 0, column: 0 };}-export const CreateRolloutRequest = {- encode(message: CreateRolloutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);+export const TaskRun_ExecutionDetail_Position = {+ encode(message: TaskRun_ExecutionDetail_Position, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.line !== 0) {+ writer.uint32(8).int32(message.line);}- if (message.rollout !== undefined) {- Rollout.encode(message.rollout, writer.uint32(18).fork()).ldelim();+ if (message.column !== 0) {+ writer.uint32(16).int32(message.column);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): CreateRolloutRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRun_ExecutionDetail_Position {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseCreateRolloutRequest();+ const message = createBaseTaskRun_ExecutionDetail_Position();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {case 1:- if (tag !== 10) {+ if (tag !== 8) {break;}- message.parent = reader.string();+ message.line = reader.int32();continue;case 2:- if (tag !== 18) {+ if (tag !== 16) {break;}- message.rollout = Rollout.decode(reader, reader.uint32());+ message.column = reader.int32();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4515,56 +3349,54 @@ export const CreateRolloutRequest = {return message;},- fromJSON(object: any): CreateRolloutRequest {+ fromJSON(object: any): TaskRun_ExecutionDetail_Position {return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- rollout: isSet(object.rollout) ? Rollout.fromJSON(object.rollout) : undefined,+ line: isSet(object.line) ? globalThis.Number(object.line) : 0,+ column: isSet(object.column) ? globalThis.Number(object.column) : 0,};},- toJSON(message: CreateRolloutRequest): unknown {+ toJSON(message: TaskRun_ExecutionDetail_Position): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;+ if (message.line !== 0) {+ obj.line = Math.round(message.line);}- if (message.rollout !== undefined) {- obj.rollout = Rollout.toJSON(message.rollout);+ if (message.column !== 0) {+ obj.column = Math.round(message.column);}return obj;},- create(base?: DeepPartial<CreateRolloutRequest>): CreateRolloutRequest {- return CreateRolloutRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<TaskRun_ExecutionDetail_Position>): TaskRun_ExecutionDetail_Position {+ return TaskRun_ExecutionDetail_Position.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<CreateRolloutRequest>): CreateRolloutRequest {- const message = createBaseCreateRolloutRequest();- message.parent = object.parent ?? "";- message.rollout = (object.rollout !== undefined && object.rollout !== null)- ? Rollout.fromPartial(object.rollout)- : undefined;+ fromPartial(object: DeepPartial<TaskRun_ExecutionDetail_Position>): TaskRun_ExecutionDetail_Position {+ const message = createBaseTaskRun_ExecutionDetail_Position();+ message.line = object.line ?? 0;+ message.column = object.column ?? 0;return message;},};-function createBasePreviewRolloutRequest(): PreviewRolloutRequest {- return { project: "", plan: undefined };+function createBaseTaskRunLog(): TaskRunLog {+ return { name: "", entries: [] };}-export const PreviewRolloutRequest = {- encode(message: PreviewRolloutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.project !== "") {- writer.uint32(10).string(message.project);+export const TaskRunLog = {+ encode(message: TaskRunLog, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (message.plan !== undefined) {- Plan.encode(message.plan, writer.uint32(18).fork()).ldelim();+ for (const v of message.entries) {+ TaskRunLogEntry.encode(v!, writer.uint32(18).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): PreviewRolloutRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLog {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePreviewRolloutRequest();+ const message = createBaseTaskRunLog();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4573,14 +3405,14 @@ export const PreviewRolloutRequest = {break;}- message.project = reader.string();+ message.name = reader.string();continue;case 2:if (tag !== 18) {break;}- message.plan = Plan.decode(reader, reader.uint32());+ message.entries.push(TaskRunLogEntry.decode(reader, reader.uint32()));continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4591,80 +3423,82 @@ export const PreviewRolloutRequest = {return message;},- fromJSON(object: any): PreviewRolloutRequest {+ fromJSON(object: any): TaskRunLog {return {- project: isSet(object.project) ? globalThis.String(object.project) : "",- plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ entries: globalThis.Array.isArray(object?.entries)+ ? object.entries.map((e: any) => TaskRunLogEntry.fromJSON(e))+ : [],};},- toJSON(message: PreviewRolloutRequest): unknown {+ toJSON(message: TaskRunLog): unknown {const obj: any = {};- if (message.project !== "") {- obj.project = message.project;- }- if (message.plan !== undefined) {- obj.plan = Plan.toJSON(message.plan);+ if (message.name !== "") {+ obj.name = message.name;+ }+ if (message.entries?.length) {+ obj.entries = message.entries.map((e) => TaskRunLogEntry.toJSON(e));}return obj;},- create(base?: DeepPartial<PreviewRolloutRequest>): PreviewRolloutRequest {- return PreviewRolloutRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<TaskRunLog>): TaskRunLog {+ return TaskRunLog.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<PreviewRolloutRequest>): PreviewRolloutRequest {- const message = createBasePreviewRolloutRequest();- message.project = object.project ?? "";- message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;+ fromPartial(object: DeepPartial<TaskRunLog>): TaskRunLog {+ const message = createBaseTaskRunLog();+ message.name = object.name ?? "";+ message.entries = object.entries?.map((e) => TaskRunLogEntry.fromPartial(e)) || [];return message;},};-function createBaseListTaskRunsRequest(): ListTaskRunsRequest {- return { parent: "", pageSize: 0, pageToken: "" };+function createBaseTaskRunLogEntry(): TaskRunLogEntry {+ return { type: TaskRunLogEntry_Type.TYPE_UNSPECIFIED, schemaDump: undefined, commandExecute: undefined };}-export const ListTaskRunsRequest = {- encode(message: ListTaskRunsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);+export const TaskRunLogEntry = {+ encode(message: TaskRunLogEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.type !== TaskRunLogEntry_Type.TYPE_UNSPECIFIED) {+ writer.uint32(8).int32(taskRunLogEntry_TypeToNumber(message.type));}- if (message.pageSize !== 0) {- writer.uint32(16).int32(message.pageSize);+ if (message.schemaDump !== undefined) {+ TaskRunLogEntry_SchemaDump.encode(message.schemaDump, writer.uint32(18).fork()).ldelim();}- if (message.pageToken !== "") {- writer.uint32(26).string(message.pageToken);+ if (message.commandExecute !== undefined) {+ TaskRunLogEntry_CommandExecute.encode(message.commandExecute, writer.uint32(26).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListTaskRunsRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLogEntry {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListTaskRunsRequest();+ const message = createBaseTaskRunLogEntry();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {case 1:- if (tag !== 10) {+ if (tag !== 8) {break;}- message.parent = reader.string();+ message.type = taskRunLogEntry_TypeFromJSON(reader.int32());continue;case 2:- if (tag !== 16) {+ if (tag !== 18) {break;}- message.pageSize = reader.int32();+ message.schemaDump = TaskRunLogEntry_SchemaDump.decode(reader, reader.uint32());continue;case 3:if (tag !== 26) {break;}- message.pageToken = reader.string();+ message.commandExecute = TaskRunLogEntry_CommandExecute.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4675,59 +3509,68 @@ export const ListTaskRunsRequest = {return message;},- fromJSON(object: any): ListTaskRunsRequest {+ fromJSON(object: any): TaskRunLogEntry {return {- parent: isSet(object.parent) ? globalThis.String(object.parent) : "",- pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,- pageToken: isSet(object.pageToken) ? globalThis.String(object.pageToken) : "",+ type: isSet(object.type) ? taskRunLogEntry_TypeFromJSON(object.type) : TaskRunLogEntry_Type.TYPE_UNSPECIFIED,+ schemaDump: isSet(object.schemaDump) ? TaskRunLogEntry_SchemaDump.fromJSON(object.schemaDump) : undefined,+ commandExecute: isSet(object.commandExecute)+ ? TaskRunLogEntry_CommandExecute.fromJSON(object.commandExecute)+ : undefined,};},- toJSON(message: ListTaskRunsRequest): unknown {+ toJSON(message: TaskRunLogEntry): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;+ if (message.type !== TaskRunLogEntry_Type.TYPE_UNSPECIFIED) {+ obj.type = taskRunLogEntry_TypeToJSON(message.type);}- if (message.pageSize !== 0) {- obj.pageSize = Math.round(message.pageSize);+ if (message.schemaDump !== undefined) {+ obj.schemaDump = TaskRunLogEntry_SchemaDump.toJSON(message.schemaDump);}- if (message.pageToken !== "") {- obj.pageToken = message.pageToken;+ if (message.commandExecute !== undefined) {+ obj.commandExecute = TaskRunLogEntry_CommandExecute.toJSON(message.commandExecute);}return obj;},- create(base?: DeepPartial<ListTaskRunsRequest>): ListTaskRunsRequest {- return ListTaskRunsRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<TaskRunLogEntry>): TaskRunLogEntry {+ return TaskRunLogEntry.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListTaskRunsRequest>): ListTaskRunsRequest {- const message = createBaseListTaskRunsRequest();- message.parent = object.parent ?? "";- message.pageSize = object.pageSize ?? 0;- message.pageToken = object.pageToken ?? "";+ fromPartial(object: DeepPartial<TaskRunLogEntry>): TaskRunLogEntry {+ const message = createBaseTaskRunLogEntry();+ message.type = object.type ?? TaskRunLogEntry_Type.TYPE_UNSPECIFIED;+ message.schemaDump = (object.schemaDump !== undefined && object.schemaDump !== null)+ ? TaskRunLogEntry_SchemaDump.fromPartial(object.schemaDump)+ : undefined;+ message.commandExecute = (object.commandExecute !== undefined && object.commandExecute !== null)+ ? TaskRunLogEntry_CommandExecute.fromPartial(object.commandExecute)+ : undefined;return message;},};-function createBaseListTaskRunsResponse(): ListTaskRunsResponse {- return { taskRuns: [], nextPageToken: "" };+function createBaseTaskRunLogEntry_SchemaDump(): TaskRunLogEntry_SchemaDump {+ return { startTime: undefined, endTime: undefined, error: "" };}-export const ListTaskRunsResponse = {- encode(message: ListTaskRunsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- for (const v of message.taskRuns) {- TaskRun.encode(v!, writer.uint32(10).fork()).ldelim();+export const TaskRunLogEntry_SchemaDump = {+ encode(message: TaskRunLogEntry_SchemaDump, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.startTime !== undefined) {+ Timestamp.encode(toTimestamp(message.startTime), writer.uint32(10).fork()).ldelim();}- if (message.nextPageToken !== "") {- writer.uint32(18).string(message.nextPageToken);+ if (message.endTime !== undefined) {+ Timestamp.encode(toTimestamp(message.endTime), writer.uint32(18).fork()).ldelim();+ }+ if (message.error !== "") {+ writer.uint32(26).string(message.error);}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListTaskRunsResponse {+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLogEntry_SchemaDump {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListTaskRunsResponse();+ const message = createBaseTaskRunLogEntry_SchemaDump();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4736,14 +3579,21 @@ export const ListTaskRunsResponse = {break;}- message.taskRuns.push(TaskRun.decode(reader, reader.uint32()));+ message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));continue;case 2:if (tag !== 18) {break;}- message.nextPageToken = reader.string();+ message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.error = reader.string();continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4754,51 +3604,64 @@ export const ListTaskRunsResponse = {return message;},- fromJSON(object: any): ListTaskRunsResponse {+ fromJSON(object: any): TaskRunLogEntry_SchemaDump {return {- taskRuns: globalThis.Array.isArray(object?.taskRuns) ? object.taskRuns.map((e: any) => TaskRun.fromJSON(e)) : [],- nextPageToken: isSet(object.nextPageToken) ? globalThis.String(object.nextPageToken) : "",+ startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : undefined,+ endTime: isSet(object.endTime) ? fromJsonTimestamp(object.endTime) : undefined,+ error: isSet(object.error) ? globalThis.String(object.error) : "",};},- toJSON(message: ListTaskRunsResponse): unknown {+ toJSON(message: TaskRunLogEntry_SchemaDump): unknown {const obj: any = {};- if (message.taskRuns?.length) {- obj.taskRuns = message.taskRuns.map((e) => TaskRun.toJSON(e));+ if (message.startTime !== undefined) {+ obj.startTime = message.startTime.toISOString();}- if (message.nextPageToken !== "") {- obj.nextPageToken = message.nextPageToken;+ if (message.endTime !== undefined) {+ obj.endTime = message.endTime.toISOString();+ }+ if (message.error !== "") {+ obj.error = message.error;}return obj;},- create(base?: DeepPartial<ListTaskRunsResponse>): ListTaskRunsResponse {- return ListTaskRunsResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<TaskRunLogEntry_SchemaDump>): TaskRunLogEntry_SchemaDump {+ return TaskRunLogEntry_SchemaDump.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListTaskRunsResponse>): ListTaskRunsResponse {- const message = createBaseListTaskRunsResponse();- message.taskRuns = object.taskRuns?.map((e) => TaskRun.fromPartial(e)) || [];- message.nextPageToken = object.nextPageToken ?? "";+ fromPartial(object: DeepPartial<TaskRunLogEntry_SchemaDump>): TaskRunLogEntry_SchemaDump {+ const message = createBaseTaskRunLogEntry_SchemaDump();+ message.startTime = object.startTime ?? undefined;+ message.endTime = object.endTime ?? undefined;+ message.error = object.error ?? "";return message;},};-function createBaseGetTaskRunLogRequest(): GetTaskRunLogRequest {- return { parent: "" };+function createBaseTaskRunLogEntry_CommandExecute(): TaskRunLogEntry_CommandExecute {+ return { logTime: undefined, commandIndexes: [], response: undefined };}-export const GetTaskRunLogRequest = {- encode(message: GetTaskRunLogRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);+export const TaskRunLogEntry_CommandExecute = {+ encode(message: TaskRunLogEntry_CommandExecute, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.logTime !== undefined) {+ Timestamp.encode(toTimestamp(message.logTime), writer.uint32(10).fork()).ldelim();+ }+ writer.uint32(18).fork();+ for (const v of message.commandIndexes) {+ writer.int32(v);+ }+ writer.ldelim();+ if (message.response !== undefined) {+ TaskRunLogEntry_CommandExecute_CommandResponse.encode(message.response, writer.uint32(26).fork()).ldelim();}return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): GetTaskRunLogRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLogEntry_CommandExecute {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetTaskRunLogRequest();+ const message = createBaseTaskRunLogEntry_CommandExecute();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -4807,7 +3670,31 @@ export const GetTaskRunLogRequest = {break;}- message.parent = reader.string();+ message.logTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 2:+ if (tag === 16) {+ message.commandIndexes.push(reader.int32());++ continue;+ }++ if (tag === 18) {+ const end2 = reader.uint32() + reader.pos;+ while (reader.pos < end2) {+ message.commandIndexes.push(reader.int32());+ }++ continue;+ }++ break;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.response = TaskRunLogEntry_CommandExecute_CommandResponse.decode(reader, reader.uint32());continue;}if ((tag & 7) === 4 || tag === 0) {@@ -4818,2422 +3705,176 @@ export const GetTaskRunLogRequest = {return message;},- fromJSON(object: any): GetTaskRunLogRequest {- return { parent: isSet(object.parent) ? globalThis.String(object.parent) : "" };+ fromJSON(object: any): TaskRunLogEntry_CommandExecute {+ return {+ logTime: isSet(object.logTime) ? fromJsonTimestamp(object.logTime) : undefined,+ commandIndexes: globalThis.Array.isArray(object?.commandIndexes)+ ? object.commandIndexes.map((e: any) => globalThis.Number(e))+ : [],+ response: isSet(object.response)+ ? TaskRunLogEntry_CommandExecute_CommandResponse.fromJSON(object.response)+ : undefined,+ };},- toJSON(message: GetTaskRunLogRequest): unknown {+ toJSON(message: TaskRunLogEntry_CommandExecute): unknown {const obj: any = {};- if (message.parent !== "") {- obj.parent = message.parent;+ if (message.logTime !== undefined) {+ obj.logTime = message.logTime.toISOString();+ }+ if (message.commandIndexes?.length) {+ obj.commandIndexes = message.commandIndexes.map((e) => Math.round(e));+ }+ if (message.response !== undefined) {+ obj.response = TaskRunLogEntry_CommandExecute_CommandResponse.toJSON(message.response);}return obj;},- create(base?: DeepPartial<GetTaskRunLogRequest>): GetTaskRunLogRequest {- return GetTaskRunLogRequest.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<GetTaskRunLogRequest>): GetTaskRunLogRequest {- const message = createBaseGetTaskRunLogRequest();- message.parent = object.parent ?? "";- return message;+ create(base?: DeepPartial<TaskRunLogEntry_CommandExecute>): TaskRunLogEntry_CommandExecute {+ return TaskRunLogEntry_CommandExecute.fromPartial(base ?? {});},-};--function createBaseRollout(): Rollout {- return { name: "", uid: "", plan: "", title: "", stages: [] };-}--export const Rollout = {- encode(message: Rollout, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.uid !== "") {- writer.uint32(18).string(message.uid);- }- if (message.plan !== "") {- writer.uint32(26).string(message.plan);- }- if (message.title !== "") {- writer.uint32(34).string(message.title);- }- for (const v of message.stages) {- Stage.encode(v!, writer.uint32(42).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Rollout {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseRollout();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.uid = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.plan = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.title = reader.string();- continue;- case 5:- if (tag !== 42) {- break;- }-- message.stages.push(Stage.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Rollout {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",- plan: isSet(object.plan) ? globalThis.String(object.plan) : "",- title: isSet(object.title) ? globalThis.String(object.title) : "",- stages: globalThis.Array.isArray(object?.stages) ? object.stages.map((e: any) => Stage.fromJSON(e)) : [],- };- },-- toJSON(message: Rollout): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.uid !== "") {- obj.uid = message.uid;- }- if (message.plan !== "") {- obj.plan = message.plan;- }- if (message.title !== "") {- obj.title = message.title;- }- if (message.stages?.length) {- obj.stages = message.stages.map((e) => Stage.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<Rollout>): Rollout {- return Rollout.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Rollout>): Rollout {- const message = createBaseRollout();- message.name = object.name ?? "";- message.uid = object.uid ?? "";- message.plan = object.plan ?? "";- message.title = object.title ?? "";- message.stages = object.stages?.map((e) => Stage.fromPartial(e)) || [];- return message;- },-};--function createBaseStage(): Stage {- return { name: "", uid: "", title: "", tasks: [] };-}--export const Stage = {- encode(message: Stage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.uid !== "") {- writer.uint32(18).string(message.uid);- }- if (message.title !== "") {- writer.uint32(34).string(message.title);- }- for (const v of message.tasks) {- Task.encode(v!, writer.uint32(42).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Stage {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseStage();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.uid = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.title = reader.string();- continue;- case 5:- if (tag !== 42) {- break;- }-- message.tasks.push(Task.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Stage {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",- title: isSet(object.title) ? globalThis.String(object.title) : "",- tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => Task.fromJSON(e)) : [],- };- },-- toJSON(message: Stage): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.uid !== "") {- obj.uid = message.uid;- }- if (message.title !== "") {- obj.title = message.title;- }- if (message.tasks?.length) {- obj.tasks = message.tasks.map((e) => Task.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<Stage>): Stage {- return Stage.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Stage>): Stage {- const message = createBaseStage();- message.name = object.name ?? "";- message.uid = object.uid ?? "";- message.title = object.title ?? "";- message.tasks = object.tasks?.map((e) => Task.fromPartial(e)) || [];- return message;- },-};--function createBaseTask(): Task {- return {- name: "",- uid: "",- title: "",- specId: "",- status: Task_Status.STATUS_UNSPECIFIED,- skippedReason: "",- type: Task_Type.TYPE_UNSPECIFIED,- dependsOnTasks: [],- target: "",- databaseCreate: undefined,- databaseSchemaBaseline: undefined,- databaseSchemaUpdate: undefined,- databaseDataUpdate: undefined,- databaseDataExport: undefined,- };-}--export const Task = {- encode(message: Task, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.uid !== "") {- writer.uint32(18).string(message.uid);- }- if (message.title !== "") {- writer.uint32(26).string(message.title);- }- if (message.specId !== "") {- writer.uint32(34).string(message.specId);- }- if (message.status !== Task_Status.STATUS_UNSPECIFIED) {- writer.uint32(40).int32(task_StatusToNumber(message.status));- }- if (message.skippedReason !== "") {- writer.uint32(122).string(message.skippedReason);- }- if (message.type !== Task_Type.TYPE_UNSPECIFIED) {- writer.uint32(48).int32(task_TypeToNumber(message.type));- }- for (const v of message.dependsOnTasks) {- writer.uint32(58).string(v!);- }- if (message.target !== "") {- writer.uint32(66).string(message.target);- }- if (message.databaseCreate !== undefined) {- Task_DatabaseCreate.encode(message.databaseCreate, writer.uint32(74).fork()).ldelim();- }- if (message.databaseSchemaBaseline !== undefined) {- Task_DatabaseSchemaBaseline.encode(message.databaseSchemaBaseline, writer.uint32(82).fork()).ldelim();- }- if (message.databaseSchemaUpdate !== undefined) {- Task_DatabaseSchemaUpdate.encode(message.databaseSchemaUpdate, writer.uint32(90).fork()).ldelim();- }- if (message.databaseDataUpdate !== undefined) {- Task_DatabaseDataUpdate.encode(message.databaseDataUpdate, writer.uint32(98).fork()).ldelim();- }- if (message.databaseDataExport !== undefined) {- Task_DatabaseDataExport.encode(message.databaseDataExport, writer.uint32(130).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.uid = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.title = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.specId = reader.string();- continue;- case 5:- if (tag !== 40) {- break;- }-- message.status = task_StatusFromJSON(reader.int32());- continue;- case 15:- if (tag !== 122) {- break;- }-- message.skippedReason = reader.string();- continue;- case 6:- if (tag !== 48) {- break;- }-- message.type = task_TypeFromJSON(reader.int32());- continue;- case 7:- if (tag !== 58) {- break;- }-- message.dependsOnTasks.push(reader.string());- continue;- case 8:- if (tag !== 66) {- break;- }-- message.target = reader.string();- continue;- case 9:- if (tag !== 74) {- break;- }-- message.databaseCreate = Task_DatabaseCreate.decode(reader, reader.uint32());- continue;- case 10:- if (tag !== 82) {- break;- }-- message.databaseSchemaBaseline = Task_DatabaseSchemaBaseline.decode(reader, reader.uint32());- continue;- case 11:- if (tag !== 90) {- break;- }-- message.databaseSchemaUpdate = Task_DatabaseSchemaUpdate.decode(reader, reader.uint32());- continue;- case 12:- if (tag !== 98) {- break;- }-- message.databaseDataUpdate = Task_DatabaseDataUpdate.decode(reader, reader.uint32());- continue;- case 16:- if (tag !== 130) {- break;- }-- message.databaseDataExport = Task_DatabaseDataExport.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",- title: isSet(object.title) ? globalThis.String(object.title) : "",- specId: isSet(object.specId) ? globalThis.String(object.specId) : "",- status: isSet(object.status) ? task_StatusFromJSON(object.status) : Task_Status.STATUS_UNSPECIFIED,- skippedReason: isSet(object.skippedReason) ? globalThis.String(object.skippedReason) : "",- type: isSet(object.type) ? task_TypeFromJSON(object.type) : Task_Type.TYPE_UNSPECIFIED,- dependsOnTasks: globalThis.Array.isArray(object?.dependsOnTasks)- ? object.dependsOnTasks.map((e: any) => globalThis.String(e))- : [],- target: isSet(object.target) ? globalThis.String(object.target) : "",- databaseCreate: isSet(object.databaseCreate) ? Task_DatabaseCreate.fromJSON(object.databaseCreate) : undefined,- databaseSchemaBaseline: isSet(object.databaseSchemaBaseline)- ? Task_DatabaseSchemaBaseline.fromJSON(object.databaseSchemaBaseline)- : undefined,- databaseSchemaUpdate: isSet(object.databaseSchemaUpdate)- ? Task_DatabaseSchemaUpdate.fromJSON(object.databaseSchemaUpdate)- : undefined,- databaseDataUpdate: isSet(object.databaseDataUpdate)- ? Task_DatabaseDataUpdate.fromJSON(object.databaseDataUpdate)- : undefined,- databaseDataExport: isSet(object.databaseDataExport)- ? Task_DatabaseDataExport.fromJSON(object.databaseDataExport)- : undefined,- };- },-- toJSON(message: Task): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.uid !== "") {- obj.uid = message.uid;- }- if (message.title !== "") {- obj.title = message.title;- }- if (message.specId !== "") {- obj.specId = message.specId;- }- if (message.status !== Task_Status.STATUS_UNSPECIFIED) {- obj.status = task_StatusToJSON(message.status);- }- if (message.skippedReason !== "") {- obj.skippedReason = message.skippedReason;- }- if (message.type !== Task_Type.TYPE_UNSPECIFIED) {- obj.type = task_TypeToJSON(message.type);- }- if (message.dependsOnTasks?.length) {- obj.dependsOnTasks = message.dependsOnTasks;- }- if (message.target !== "") {- obj.target = message.target;- }- if (message.databaseCreate !== undefined) {- obj.databaseCreate = Task_DatabaseCreate.toJSON(message.databaseCreate);- }- if (message.databaseSchemaBaseline !== undefined) {- obj.databaseSchemaBaseline = Task_DatabaseSchemaBaseline.toJSON(message.databaseSchemaBaseline);- }- if (message.databaseSchemaUpdate !== undefined) {- obj.databaseSchemaUpdate = Task_DatabaseSchemaUpdate.toJSON(message.databaseSchemaUpdate);- }- if (message.databaseDataUpdate !== undefined) {- obj.databaseDataUpdate = Task_DatabaseDataUpdate.toJSON(message.databaseDataUpdate);- }- if (message.databaseDataExport !== undefined) {- obj.databaseDataExport = Task_DatabaseDataExport.toJSON(message.databaseDataExport);- }- return obj;- },-- create(base?: DeepPartial<Task>): Task {- return Task.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task>): Task {- const message = createBaseTask();- message.name = object.name ?? "";- message.uid = object.uid ?? "";- message.title = object.title ?? "";- message.specId = object.specId ?? "";- message.status = object.status ?? Task_Status.STATUS_UNSPECIFIED;- message.skippedReason = object.skippedReason ?? "";- message.type = object.type ?? Task_Type.TYPE_UNSPECIFIED;- message.dependsOnTasks = object.dependsOnTasks?.map((e) => e) || [];- message.target = object.target ?? "";- message.databaseCreate = (object.databaseCreate !== undefined && object.databaseCreate !== null)- ? Task_DatabaseCreate.fromPartial(object.databaseCreate)- : undefined;- message.databaseSchemaBaseline =- (object.databaseSchemaBaseline !== undefined && object.databaseSchemaBaseline !== null)- ? Task_DatabaseSchemaBaseline.fromPartial(object.databaseSchemaBaseline)- : undefined;- message.databaseSchemaUpdate = (object.databaseSchemaUpdate !== undefined && object.databaseSchemaUpdate !== null)- ? Task_DatabaseSchemaUpdate.fromPartial(object.databaseSchemaUpdate)- : undefined;- message.databaseDataUpdate = (object.databaseDataUpdate !== undefined && object.databaseDataUpdate !== null)- ? Task_DatabaseDataUpdate.fromPartial(object.databaseDataUpdate)- : undefined;- message.databaseDataExport = (object.databaseDataExport !== undefined && object.databaseDataExport !== null)- ? Task_DatabaseDataExport.fromPartial(object.databaseDataExport)- : undefined;- return message;- },-};--function createBaseTask_DatabaseCreate(): Task_DatabaseCreate {- return {- project: "",- database: "",- table: "",- sheet: "",- characterSet: "",- collation: "",- environment: "",- labels: {},- };-}--export const Task_DatabaseCreate = {- encode(message: Task_DatabaseCreate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.project !== "") {- writer.uint32(10).string(message.project);- }- if (message.database !== "") {- writer.uint32(18).string(message.database);- }- if (message.table !== "") {- writer.uint32(26).string(message.table);- }- if (message.sheet !== "") {- writer.uint32(34).string(message.sheet);- }- if (message.characterSet !== "") {- writer.uint32(42).string(message.characterSet);- }- if (message.collation !== "") {- writer.uint32(50).string(message.collation);- }- if (message.environment !== "") {- writer.uint32(58).string(message.environment);- }- Object.entries(message.labels).forEach(([key, value]) => {- Task_DatabaseCreate_LabelsEntry.encode({ key: key as any, value }, writer.uint32(66).fork()).ldelim();- });- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseCreate {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask_DatabaseCreate();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.project = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.database = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.table = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.sheet = reader.string();- continue;- case 5:- if (tag !== 42) {- break;- }-- message.characterSet = reader.string();- continue;- case 6:- if (tag !== 50) {- break;- }-- message.collation = reader.string();- continue;- case 7:- if (tag !== 58) {- break;- }-- message.environment = reader.string();- continue;- case 8:- if (tag !== 66) {- break;- }-- const entry8 = Task_DatabaseCreate_LabelsEntry.decode(reader, reader.uint32());- if (entry8.value !== undefined) {- message.labels[entry8.key] = entry8.value;- }- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task_DatabaseCreate {- return {- project: isSet(object.project) ? globalThis.String(object.project) : "",- database: isSet(object.database) ? globalThis.String(object.database) : "",- table: isSet(object.table) ? globalThis.String(object.table) : "",- sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",- characterSet: isSet(object.characterSet) ? globalThis.String(object.characterSet) : "",- collation: isSet(object.collation) ? globalThis.String(object.collation) : "",- environment: isSet(object.environment) ? globalThis.String(object.environment) : "",- labels: isObject(object.labels)- ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {- acc[key] = String(value);- return acc;- }, {})- : {},- };- },-- toJSON(message: Task_DatabaseCreate): unknown {- const obj: any = {};- if (message.project !== "") {- obj.project = message.project;- }- if (message.database !== "") {- obj.database = message.database;- }- if (message.table !== "") {- obj.table = message.table;- }- if (message.sheet !== "") {- obj.sheet = message.sheet;- }- if (message.characterSet !== "") {- obj.characterSet = message.characterSet;- }- if (message.collation !== "") {- obj.collation = message.collation;- }- if (message.environment !== "") {- obj.environment = message.environment;- }- if (message.labels) {- const entries = Object.entries(message.labels);- if (entries.length > 0) {- obj.labels = {};- entries.forEach(([k, v]) => {- obj.labels[k] = v;- });- }- }- return obj;- },-- create(base?: DeepPartial<Task_DatabaseCreate>): Task_DatabaseCreate {- return Task_DatabaseCreate.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task_DatabaseCreate>): Task_DatabaseCreate {- const message = createBaseTask_DatabaseCreate();- message.project = object.project ?? "";- message.database = object.database ?? "";- message.table = object.table ?? "";- message.sheet = object.sheet ?? "";- message.characterSet = object.characterSet ?? "";- message.collation = object.collation ?? "";- message.environment = object.environment ?? "";- message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {- if (value !== undefined) {- acc[key] = globalThis.String(value);- }- return acc;- }, {});- return message;- },-};--function createBaseTask_DatabaseCreate_LabelsEntry(): Task_DatabaseCreate_LabelsEntry {- return { key: "", value: "" };-}--export const Task_DatabaseCreate_LabelsEntry = {- encode(message: Task_DatabaseCreate_LabelsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.key !== "") {- writer.uint32(10).string(message.key);- }- if (message.value !== "") {- writer.uint32(18).string(message.value);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseCreate_LabelsEntry {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask_DatabaseCreate_LabelsEntry();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.key = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.value = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task_DatabaseCreate_LabelsEntry {- return {- key: isSet(object.key) ? globalThis.String(object.key) : "",- value: isSet(object.value) ? globalThis.String(object.value) : "",- };- },-- toJSON(message: Task_DatabaseCreate_LabelsEntry): unknown {- const obj: any = {};- if (message.key !== "") {- obj.key = message.key;- }- if (message.value !== "") {- obj.value = message.value;- }- return obj;- },-- create(base?: DeepPartial<Task_DatabaseCreate_LabelsEntry>): Task_DatabaseCreate_LabelsEntry {- return Task_DatabaseCreate_LabelsEntry.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task_DatabaseCreate_LabelsEntry>): Task_DatabaseCreate_LabelsEntry {- const message = createBaseTask_DatabaseCreate_LabelsEntry();- message.key = object.key ?? "";- message.value = object.value ?? "";- return message;- },-};--function createBaseTask_DatabaseSchemaBaseline(): Task_DatabaseSchemaBaseline {- return { schemaVersion: "" };-}--export const Task_DatabaseSchemaBaseline = {- encode(message: Task_DatabaseSchemaBaseline, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.schemaVersion !== "") {- writer.uint32(10).string(message.schemaVersion);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseSchemaBaseline {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask_DatabaseSchemaBaseline();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.schemaVersion = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task_DatabaseSchemaBaseline {- return { schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "" };- },-- toJSON(message: Task_DatabaseSchemaBaseline): unknown {- const obj: any = {};- if (message.schemaVersion !== "") {- obj.schemaVersion = message.schemaVersion;- }- return obj;- },-- create(base?: DeepPartial<Task_DatabaseSchemaBaseline>): Task_DatabaseSchemaBaseline {- return Task_DatabaseSchemaBaseline.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task_DatabaseSchemaBaseline>): Task_DatabaseSchemaBaseline {- const message = createBaseTask_DatabaseSchemaBaseline();- message.schemaVersion = object.schemaVersion ?? "";- return message;- },-};--function createBaseTask_DatabaseSchemaUpdate(): Task_DatabaseSchemaUpdate {- return { sheet: "", schemaVersion: "" };-}--export const Task_DatabaseSchemaUpdate = {- encode(message: Task_DatabaseSchemaUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.sheet !== "") {- writer.uint32(10).string(message.sheet);- }- if (message.schemaVersion !== "") {- writer.uint32(18).string(message.schemaVersion);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseSchemaUpdate {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask_DatabaseSchemaUpdate();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.sheet = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.schemaVersion = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task_DatabaseSchemaUpdate {- return {- sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",- schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",- };- },-- toJSON(message: Task_DatabaseSchemaUpdate): unknown {- const obj: any = {};- if (message.sheet !== "") {- obj.sheet = message.sheet;- }- if (message.schemaVersion !== "") {- obj.schemaVersion = message.schemaVersion;- }- return obj;- },-- create(base?: DeepPartial<Task_DatabaseSchemaUpdate>): Task_DatabaseSchemaUpdate {- return Task_DatabaseSchemaUpdate.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task_DatabaseSchemaUpdate>): Task_DatabaseSchemaUpdate {- const message = createBaseTask_DatabaseSchemaUpdate();- message.sheet = object.sheet ?? "";- message.schemaVersion = object.schemaVersion ?? "";- return message;- },-};--function createBaseTask_DatabaseDataUpdate(): Task_DatabaseDataUpdate {- return {- sheet: "",- schemaVersion: "",- rollbackEnabled: false,- rollbackSqlStatus: Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED,- rollbackError: "",- rollbackSheet: "",- rollbackFromIssue: "",- rollbackFromTask: "",- };-}--export const Task_DatabaseDataUpdate = {- encode(message: Task_DatabaseDataUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.sheet !== "") {- writer.uint32(10).string(message.sheet);- }- if (message.schemaVersion !== "") {- writer.uint32(18).string(message.schemaVersion);- }- if (message.rollbackEnabled === true) {- writer.uint32(24).bool(message.rollbackEnabled);- }- if (message.rollbackSqlStatus !== Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED) {- writer.uint32(32).int32(task_DatabaseDataUpdate_RollbackSqlStatusToNumber(message.rollbackSqlStatus));- }- if (message.rollbackError !== "") {- writer.uint32(42).string(message.rollbackError);- }- if (message.rollbackSheet !== "") {- writer.uint32(50).string(message.rollbackSheet);- }- if (message.rollbackFromIssue !== "") {- writer.uint32(58).string(message.rollbackFromIssue);- }- if (message.rollbackFromTask !== "") {- writer.uint32(66).string(message.rollbackFromTask);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseDataUpdate {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask_DatabaseDataUpdate();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.sheet = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.schemaVersion = reader.string();- continue;- case 3:- if (tag !== 24) {- break;- }-- message.rollbackEnabled = reader.bool();- continue;- case 4:- if (tag !== 32) {- break;- }-- message.rollbackSqlStatus = task_DatabaseDataUpdate_RollbackSqlStatusFromJSON(reader.int32());- continue;- case 5:- if (tag !== 42) {- break;- }-- message.rollbackError = reader.string();- continue;- case 6:- if (tag !== 50) {- break;- }-- message.rollbackSheet = reader.string();- continue;- case 7:- if (tag !== 58) {- break;- }-- message.rollbackFromIssue = reader.string();- continue;- case 8:- if (tag !== 66) {- break;- }-- message.rollbackFromTask = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task_DatabaseDataUpdate {- return {- sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",- schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",- rollbackEnabled: isSet(object.rollbackEnabled) ? globalThis.Boolean(object.rollbackEnabled) : false,- rollbackSqlStatus: isSet(object.rollbackSqlStatus)- ? task_DatabaseDataUpdate_RollbackSqlStatusFromJSON(object.rollbackSqlStatus)- : Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED,- rollbackError: isSet(object.rollbackError) ? globalThis.String(object.rollbackError) : "",- rollbackSheet: isSet(object.rollbackSheet) ? globalThis.String(object.rollbackSheet) : "",- rollbackFromIssue: isSet(object.rollbackFromIssue) ? globalThis.String(object.rollbackFromIssue) : "",- rollbackFromTask: isSet(object.rollbackFromTask) ? globalThis.String(object.rollbackFromTask) : "",- };- },-- toJSON(message: Task_DatabaseDataUpdate): unknown {- const obj: any = {};- if (message.sheet !== "") {- obj.sheet = message.sheet;- }- if (message.schemaVersion !== "") {- obj.schemaVersion = message.schemaVersion;- }- if (message.rollbackEnabled === true) {- obj.rollbackEnabled = message.rollbackEnabled;- }- if (message.rollbackSqlStatus !== Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED) {- obj.rollbackSqlStatus = task_DatabaseDataUpdate_RollbackSqlStatusToJSON(message.rollbackSqlStatus);- }- if (message.rollbackError !== "") {- obj.rollbackError = message.rollbackError;- }- if (message.rollbackSheet !== "") {- obj.rollbackSheet = message.rollbackSheet;- }- if (message.rollbackFromIssue !== "") {- obj.rollbackFromIssue = message.rollbackFromIssue;- }- if (message.rollbackFromTask !== "") {- obj.rollbackFromTask = message.rollbackFromTask;- }- return obj;- },-- create(base?: DeepPartial<Task_DatabaseDataUpdate>): Task_DatabaseDataUpdate {- return Task_DatabaseDataUpdate.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task_DatabaseDataUpdate>): Task_DatabaseDataUpdate {- const message = createBaseTask_DatabaseDataUpdate();- message.sheet = object.sheet ?? "";- message.schemaVersion = object.schemaVersion ?? "";- message.rollbackEnabled = object.rollbackEnabled ?? false;- message.rollbackSqlStatus = object.rollbackSqlStatus ??- Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED;- message.rollbackError = object.rollbackError ?? "";- message.rollbackSheet = object.rollbackSheet ?? "";- message.rollbackFromIssue = object.rollbackFromIssue ?? "";- message.rollbackFromTask = object.rollbackFromTask ?? "";- return message;- },-};--function createBaseTask_DatabaseDataExport(): Task_DatabaseDataExport {- return { target: "", sheet: "", format: ExportFormat.FORMAT_UNSPECIFIED, password: undefined };-}--export const Task_DatabaseDataExport = {- encode(message: Task_DatabaseDataExport, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.target !== "") {- writer.uint32(10).string(message.target);- }- if (message.sheet !== "") {- writer.uint32(18).string(message.sheet);- }- if (message.format !== ExportFormat.FORMAT_UNSPECIFIED) {- writer.uint32(24).int32(exportFormatToNumber(message.format));- }- if (message.password !== undefined) {- writer.uint32(34).string(message.password);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseDataExport {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTask_DatabaseDataExport();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.target = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.sheet = reader.string();- continue;- case 3:- if (tag !== 24) {- break;- }-- message.format = exportFormatFromJSON(reader.int32());- continue;- case 4:- if (tag !== 34) {- break;- }-- message.password = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): Task_DatabaseDataExport {- return {- target: isSet(object.target) ? globalThis.String(object.target) : "",- sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",- format: isSet(object.format) ? exportFormatFromJSON(object.format) : ExportFormat.FORMAT_UNSPECIFIED,- password: isSet(object.password) ? globalThis.String(object.password) : undefined,- };- },-- toJSON(message: Task_DatabaseDataExport): unknown {- const obj: any = {};- if (message.target !== "") {- obj.target = message.target;- }- if (message.sheet !== "") {- obj.sheet = message.sheet;- }- if (message.format !== ExportFormat.FORMAT_UNSPECIFIED) {- obj.format = exportFormatToJSON(message.format);- }- if (message.password !== undefined) {- obj.password = message.password;- }- return obj;- },-- create(base?: DeepPartial<Task_DatabaseDataExport>): Task_DatabaseDataExport {- return Task_DatabaseDataExport.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Task_DatabaseDataExport>): Task_DatabaseDataExport {- const message = createBaseTask_DatabaseDataExport();- message.target = object.target ?? "";- message.sheet = object.sheet ?? "";- message.format = object.format ?? ExportFormat.FORMAT_UNSPECIFIED;- message.password = object.password ?? undefined;- return message;- },-};--function createBaseTaskRun(): TaskRun {- return {- name: "",- uid: "",- creator: "",- updater: "",- createTime: undefined,- updateTime: undefined,- title: "",- status: TaskRun_Status.STATUS_UNSPECIFIED,- detail: "",- changeHistory: "",- schemaVersion: "",- executionStatus: TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED,- executionStatusUpdateTime: undefined,- executionDetail: undefined,- startTime: undefined,- exportArchiveStatus: TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED,- };-}--export const TaskRun = {- encode(message: TaskRun, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.uid !== "") {- writer.uint32(18).string(message.uid);- }- if (message.creator !== "") {- writer.uint32(26).string(message.creator);- }- if (message.updater !== "") {- writer.uint32(34).string(message.updater);- }- if (message.createTime !== undefined) {- Timestamp.encode(toTimestamp(message.createTime), writer.uint32(42).fork()).ldelim();- }- if (message.updateTime !== undefined) {- Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(50).fork()).ldelim();- }- if (message.title !== "") {- writer.uint32(58).string(message.title);- }- if (message.status !== TaskRun_Status.STATUS_UNSPECIFIED) {- writer.uint32(64).int32(taskRun_StatusToNumber(message.status));- }- if (message.detail !== "") {- writer.uint32(74).string(message.detail);- }- if (message.changeHistory !== "") {- writer.uint32(82).string(message.changeHistory);- }- if (message.schemaVersion !== "") {- writer.uint32(90).string(message.schemaVersion);- }- if (message.executionStatus !== TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED) {- writer.uint32(96).int32(taskRun_ExecutionStatusToNumber(message.executionStatus));- }- if (message.executionStatusUpdateTime !== undefined) {- Timestamp.encode(toTimestamp(message.executionStatusUpdateTime), writer.uint32(106).fork()).ldelim();- }- if (message.executionDetail !== undefined) {- TaskRun_ExecutionDetail.encode(message.executionDetail, writer.uint32(122).fork()).ldelim();- }- if (message.startTime !== undefined) {- Timestamp.encode(toTimestamp(message.startTime), writer.uint32(114).fork()).ldelim();- }- if (message.exportArchiveStatus !== TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED) {- writer.uint32(128).int32(taskRun_ExportArchiveStatusToNumber(message.exportArchiveStatus));- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): TaskRun {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTaskRun();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.uid = reader.string();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.creator = reader.string();- continue;- case 4:- if (tag !== 34) {- break;- }-- message.updater = reader.string();- continue;- case 5:- if (tag !== 42) {- break;- }-- message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 6:- if (tag !== 50) {- break;- }-- message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 7:- if (tag !== 58) {- break;- }-- message.title = reader.string();- continue;- case 8:- if (tag !== 64) {- break;- }-- message.status = taskRun_StatusFromJSON(reader.int32());- continue;- case 9:- if (tag !== 74) {- break;- }-- message.detail = reader.string();- continue;- case 10:- if (tag !== 82) {- break;- }-- message.changeHistory = reader.string();- continue;- case 11:- if (tag !== 90) {- break;- }-- message.schemaVersion = reader.string();- continue;- case 12:- if (tag !== 96) {- break;- }-- message.executionStatus = taskRun_ExecutionStatusFromJSON(reader.int32());- continue;- case 13:- if (tag !== 106) {- break;- }-- message.executionStatusUpdateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 15:- if (tag !== 122) {- break;- }-- message.executionDetail = TaskRun_ExecutionDetail.decode(reader, reader.uint32());- continue;- case 14:- if (tag !== 114) {- break;- }-- message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 16:- if (tag !== 128) {- break;- }-- message.exportArchiveStatus = taskRun_ExportArchiveStatusFromJSON(reader.int32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): TaskRun {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- uid: isSet(object.uid) ? globalThis.String(object.uid) : "",- creator: isSet(object.creator) ? globalThis.String(object.creator) : "",- updater: isSet(object.updater) ? globalThis.String(object.updater) : "",- createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,- title: isSet(object.title) ? globalThis.String(object.title) : "",- status: isSet(object.status) ? taskRun_StatusFromJSON(object.status) : TaskRun_Status.STATUS_UNSPECIFIED,- detail: isSet(object.detail) ? globalThis.String(object.detail) : "",- changeHistory: isSet(object.changeHistory) ? globalThis.String(object.changeHistory) : "",- schemaVersion: isSet(object.schemaVersion) ? globalThis.String(object.schemaVersion) : "",- executionStatus: isSet(object.executionStatus)- ? taskRun_ExecutionStatusFromJSON(object.executionStatus)- : TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED,- executionStatusUpdateTime: isSet(object.executionStatusUpdateTime)- ? fromJsonTimestamp(object.executionStatusUpdateTime)- : undefined,- executionDetail: isSet(object.executionDetail)- ? TaskRun_ExecutionDetail.fromJSON(object.executionDetail)- : undefined,- startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : undefined,- exportArchiveStatus: isSet(object.exportArchiveStatus)- ? taskRun_ExportArchiveStatusFromJSON(object.exportArchiveStatus)- : TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED,- };- },-- toJSON(message: TaskRun): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.uid !== "") {- obj.uid = message.uid;- }- if (message.creator !== "") {- obj.creator = message.creator;- }- if (message.updater !== "") {- obj.updater = message.updater;- }- if (message.createTime !== undefined) {- obj.createTime = message.createTime.toISOString();- }- if (message.updateTime !== undefined) {- obj.updateTime = message.updateTime.toISOString();- }- if (message.title !== "") {- obj.title = message.title;- }- if (message.status !== TaskRun_Status.STATUS_UNSPECIFIED) {- obj.status = taskRun_StatusToJSON(message.status);- }- if (message.detail !== "") {- obj.detail = message.detail;- }- if (message.changeHistory !== "") {- obj.changeHistory = message.changeHistory;- }- if (message.schemaVersion !== "") {- obj.schemaVersion = message.schemaVersion;- }- if (message.executionStatus !== TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED) {- obj.executionStatus = taskRun_ExecutionStatusToJSON(message.executionStatus);- }- if (message.executionStatusUpdateTime !== undefined) {- obj.executionStatusUpdateTime = message.executionStatusUpdateTime.toISOString();- }- if (message.executionDetail !== undefined) {- obj.executionDetail = TaskRun_ExecutionDetail.toJSON(message.executionDetail);- }- if (message.startTime !== undefined) {- obj.startTime = message.startTime.toISOString();- }- if (message.exportArchiveStatus !== TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED) {- obj.exportArchiveStatus = taskRun_ExportArchiveStatusToJSON(message.exportArchiveStatus);- }- return obj;- },-- create(base?: DeepPartial<TaskRun>): TaskRun {- return TaskRun.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<TaskRun>): TaskRun {- const message = createBaseTaskRun();- message.name = object.name ?? "";- message.uid = object.uid ?? "";- message.creator = object.creator ?? "";- message.updater = object.updater ?? "";- message.createTime = object.createTime ?? undefined;- message.updateTime = object.updateTime ?? undefined;- message.title = object.title ?? "";- message.status = object.status ?? TaskRun_Status.STATUS_UNSPECIFIED;- message.detail = object.detail ?? "";- message.changeHistory = object.changeHistory ?? "";- message.schemaVersion = object.schemaVersion ?? "";- message.executionStatus = object.executionStatus ?? TaskRun_ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED;- message.executionStatusUpdateTime = object.executionStatusUpdateTime ?? undefined;- message.executionDetail = (object.executionDetail !== undefined && object.executionDetail !== null)- ? TaskRun_ExecutionDetail.fromPartial(object.executionDetail)- : undefined;- message.startTime = object.startTime ?? undefined;- message.exportArchiveStatus = object.exportArchiveStatus ??- TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED;- return message;- },-};--function createBaseTaskRun_ExecutionDetail(): TaskRun_ExecutionDetail {- return { commandsTotal: 0, commandsCompleted: 0, commandStartPosition: undefined, commandEndPosition: undefined };-}--export const TaskRun_ExecutionDetail = {- encode(message: TaskRun_ExecutionDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.commandsTotal !== 0) {- writer.uint32(8).int32(message.commandsTotal);- }- if (message.commandsCompleted !== 0) {- writer.uint32(16).int32(message.commandsCompleted);- }- if (message.commandStartPosition !== undefined) {- TaskRun_ExecutionDetail_Position.encode(message.commandStartPosition, writer.uint32(26).fork()).ldelim();- }- if (message.commandEndPosition !== undefined) {- TaskRun_ExecutionDetail_Position.encode(message.commandEndPosition, writer.uint32(34).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): TaskRun_ExecutionDetail {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTaskRun_ExecutionDetail();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.commandsTotal = reader.int32();- continue;- case 2:- if (tag !== 16) {- break;- }-- message.commandsCompleted = reader.int32();- continue;- case 3:- if (tag !== 26) {- break;- }-- message.commandStartPosition = TaskRun_ExecutionDetail_Position.decode(reader, reader.uint32());- continue;- case 4:- if (tag !== 34) {- break;- }-- message.commandEndPosition = TaskRun_ExecutionDetail_Position.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): TaskRun_ExecutionDetail {- return {- commandsTotal: isSet(object.commandsTotal) ? globalThis.Number(object.commandsTotal) : 0,- commandsCompleted: isSet(object.commandsCompleted) ? globalThis.Number(object.commandsCompleted) : 0,- commandStartPosition: isSet(object.commandStartPosition)- ? TaskRun_ExecutionDetail_Position.fromJSON(object.commandStartPosition)- : undefined,- commandEndPosition: isSet(object.commandEndPosition)- ? TaskRun_ExecutionDetail_Position.fromJSON(object.commandEndPosition)- : undefined,- };- },-- toJSON(message: TaskRun_ExecutionDetail): unknown {- const obj: any = {};- if (message.commandsTotal !== 0) {- obj.commandsTotal = Math.round(message.commandsTotal);- }- if (message.commandsCompleted !== 0) {- obj.commandsCompleted = Math.round(message.commandsCompleted);- }- if (message.commandStartPosition !== undefined) {- obj.commandStartPosition = TaskRun_ExecutionDetail_Position.toJSON(message.commandStartPosition);- }- if (message.commandEndPosition !== undefined) {- obj.commandEndPosition = TaskRun_ExecutionDetail_Position.toJSON(message.commandEndPosition);- }- return obj;- },-- create(base?: DeepPartial<TaskRun_ExecutionDetail>): TaskRun_ExecutionDetail {- return TaskRun_ExecutionDetail.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<TaskRun_ExecutionDetail>): TaskRun_ExecutionDetail {- const message = createBaseTaskRun_ExecutionDetail();- message.commandsTotal = object.commandsTotal ?? 0;- message.commandsCompleted = object.commandsCompleted ?? 0;- message.commandStartPosition = (object.commandStartPosition !== undefined && object.commandStartPosition !== null)- ? TaskRun_ExecutionDetail_Position.fromPartial(object.commandStartPosition)- : undefined;- message.commandEndPosition = (object.commandEndPosition !== undefined && object.commandEndPosition !== null)- ? TaskRun_ExecutionDetail_Position.fromPartial(object.commandEndPosition)- : undefined;- return message;- },-};--function createBaseTaskRun_ExecutionDetail_Position(): TaskRun_ExecutionDetail_Position {- return { line: 0, column: 0 };-}--export const TaskRun_ExecutionDetail_Position = {- encode(message: TaskRun_ExecutionDetail_Position, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.line !== 0) {- writer.uint32(8).int32(message.line);- }- if (message.column !== 0) {- writer.uint32(16).int32(message.column);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): TaskRun_ExecutionDetail_Position {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTaskRun_ExecutionDetail_Position();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.line = reader.int32();- continue;- case 2:- if (tag !== 16) {- break;- }-- message.column = reader.int32();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): TaskRun_ExecutionDetail_Position {- return {- line: isSet(object.line) ? globalThis.Number(object.line) : 0,- column: isSet(object.column) ? globalThis.Number(object.column) : 0,- };- },-- toJSON(message: TaskRun_ExecutionDetail_Position): unknown {- const obj: any = {};- if (message.line !== 0) {- obj.line = Math.round(message.line);- }- if (message.column !== 0) {- obj.column = Math.round(message.column);- }- return obj;- },-- create(base?: DeepPartial<TaskRun_ExecutionDetail_Position>): TaskRun_ExecutionDetail_Position {- return TaskRun_ExecutionDetail_Position.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<TaskRun_ExecutionDetail_Position>): TaskRun_ExecutionDetail_Position {- const message = createBaseTaskRun_ExecutionDetail_Position();- message.line = object.line ?? 0;- message.column = object.column ?? 0;- return message;- },-};--function createBaseTaskRunLog(): TaskRunLog {- return { name: "", entries: [] };-}--export const TaskRunLog = {- encode(message: TaskRunLog, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- for (const v of message.entries) {- TaskRunLogEntry.encode(v!, writer.uint32(18).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLog {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTaskRunLog();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.name = reader.string();- continue;- case 2:- if (tag !== 18) {- break;- }-- message.entries.push(TaskRunLogEntry.decode(reader, reader.uint32()));- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): TaskRunLog {- return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- entries: globalThis.Array.isArray(object?.entries)- ? object.entries.map((e: any) => TaskRunLogEntry.fromJSON(e))- : [],- };- },-- toJSON(message: TaskRunLog): unknown {- const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.entries?.length) {- obj.entries = message.entries.map((e) => TaskRunLogEntry.toJSON(e));- }- return obj;- },-- create(base?: DeepPartial<TaskRunLog>): TaskRunLog {- return TaskRunLog.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<TaskRunLog>): TaskRunLog {- const message = createBaseTaskRunLog();- message.name = object.name ?? "";- message.entries = object.entries?.map((e) => TaskRunLogEntry.fromPartial(e)) || [];- return message;- },-};--function createBaseTaskRunLogEntry(): TaskRunLogEntry {- return { type: TaskRunLogEntry_Type.TYPE_UNSPECIFIED, schemaDump: undefined, commandExecute: undefined };-}--export const TaskRunLogEntry = {- encode(message: TaskRunLogEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.type !== TaskRunLogEntry_Type.TYPE_UNSPECIFIED) {- writer.uint32(8).int32(taskRunLogEntry_TypeToNumber(message.type));- }- if (message.schemaDump !== undefined) {- TaskRunLogEntry_SchemaDump.encode(message.schemaDump, writer.uint32(18).fork()).ldelim();- }- if (message.commandExecute !== undefined) {- TaskRunLogEntry_CommandExecute.encode(message.commandExecute, writer.uint32(26).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLogEntry {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTaskRunLogEntry();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.type = taskRunLogEntry_TypeFromJSON(reader.int32());- continue;- case 2:- if (tag !== 18) {- break;- }-- message.schemaDump = TaskRunLogEntry_SchemaDump.decode(reader, reader.uint32());- continue;- case 3:- if (tag !== 26) {- break;- }-- message.commandExecute = TaskRunLogEntry_CommandExecute.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): TaskRunLogEntry {- return {- type: isSet(object.type) ? taskRunLogEntry_TypeFromJSON(object.type) : TaskRunLogEntry_Type.TYPE_UNSPECIFIED,- schemaDump: isSet(object.schemaDump) ? TaskRunLogEntry_SchemaDump.fromJSON(object.schemaDump) : undefined,- commandExecute: isSet(object.commandExecute)- ? TaskRunLogEntry_CommandExecute.fromJSON(object.commandExecute)- : undefined,- };- },-- toJSON(message: TaskRunLogEntry): unknown {- const obj: any = {};- if (message.type !== TaskRunLogEntry_Type.TYPE_UNSPECIFIED) {- obj.type = taskRunLogEntry_TypeToJSON(message.type);- }- if (message.schemaDump !== undefined) {- obj.schemaDump = TaskRunLogEntry_SchemaDump.toJSON(message.schemaDump);- }- if (message.commandExecute !== undefined) {- obj.commandExecute = TaskRunLogEntry_CommandExecute.toJSON(message.commandExecute);- }- return obj;- },-- create(base?: DeepPartial<TaskRunLogEntry>): TaskRunLogEntry {- return TaskRunLogEntry.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<TaskRunLogEntry>): TaskRunLogEntry {- const message = createBaseTaskRunLogEntry();- message.type = object.type ?? TaskRunLogEntry_Type.TYPE_UNSPECIFIED;- message.schemaDump = (object.schemaDump !== undefined && object.schemaDump !== null)- ? TaskRunLogEntry_SchemaDump.fromPartial(object.schemaDump)- : undefined;- message.commandExecute = (object.commandExecute !== undefined && object.commandExecute !== null)- ? TaskRunLogEntry_CommandExecute.fromPartial(object.commandExecute)- : undefined;- return message;- },-};--function createBaseTaskRunLogEntry_SchemaDump(): TaskRunLogEntry_SchemaDump {- return { startTime: undefined, endTime: undefined, error: "" };-}--export const TaskRunLogEntry_SchemaDump = {- encode(message: TaskRunLogEntry_SchemaDump, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.startTime !== undefined) {- Timestamp.encode(toTimestamp(message.startTime), writer.uint32(10).fork()).ldelim();- }- if (message.endTime !== undefined) {- Timestamp.encode(toTimestamp(message.endTime), writer.uint32(18).fork()).ldelim();- }- if (message.error !== "") {- writer.uint32(26).string(message.error);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLogEntry_SchemaDump {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTaskRunLogEntry_SchemaDump();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 2:- if (tag !== 18) {- break;- }-- message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 3:- if (tag !== 26) {- break;- }-- message.error = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): TaskRunLogEntry_SchemaDump {- return {- startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : undefined,- endTime: isSet(object.endTime) ? fromJsonTimestamp(object.endTime) : undefined,- error: isSet(object.error) ? globalThis.String(object.error) : "",- };- },-- toJSON(message: TaskRunLogEntry_SchemaDump): unknown {- const obj: any = {};- if (message.startTime !== undefined) {- obj.startTime = message.startTime.toISOString();- }- if (message.endTime !== undefined) {- obj.endTime = message.endTime.toISOString();- }- if (message.error !== "") {- obj.error = message.error;- }- return obj;- },-- create(base?: DeepPartial<TaskRunLogEntry_SchemaDump>): TaskRunLogEntry_SchemaDump {- return TaskRunLogEntry_SchemaDump.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<TaskRunLogEntry_SchemaDump>): TaskRunLogEntry_SchemaDump {- const message = createBaseTaskRunLogEntry_SchemaDump();- message.startTime = object.startTime ?? undefined;- message.endTime = object.endTime ?? undefined;- message.error = object.error ?? "";- return message;- },-};--function createBaseTaskRunLogEntry_CommandExecute(): TaskRunLogEntry_CommandExecute {- return { logTime: undefined, commandIndexes: [], response: undefined };-}--export const TaskRunLogEntry_CommandExecute = {- encode(message: TaskRunLogEntry_CommandExecute, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.logTime !== undefined) {- Timestamp.encode(toTimestamp(message.logTime), writer.uint32(10).fork()).ldelim();- }- writer.uint32(18).fork();- for (const v of message.commandIndexes) {- writer.int32(v);- }- writer.ldelim();- if (message.response !== undefined) {- TaskRunLogEntry_CommandExecute_CommandResponse.encode(message.response, writer.uint32(26).fork()).ldelim();- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLogEntry_CommandExecute {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTaskRunLogEntry_CommandExecute();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.logTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 2:- if (tag === 16) {- message.commandIndexes.push(reader.int32());-- continue;- }-- if (tag === 18) {- const end2 = reader.uint32() + reader.pos;- while (reader.pos < end2) {- message.commandIndexes.push(reader.int32());- }-- continue;- }-- break;- case 3:- if (tag !== 26) {- break;- }-- message.response = TaskRunLogEntry_CommandExecute_CommandResponse.decode(reader, reader.uint32());- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): TaskRunLogEntry_CommandExecute {- return {- logTime: isSet(object.logTime) ? fromJsonTimestamp(object.logTime) : undefined,- commandIndexes: globalThis.Array.isArray(object?.commandIndexes)- ? object.commandIndexes.map((e: any) => globalThis.Number(e))- : [],- response: isSet(object.response)- ? TaskRunLogEntry_CommandExecute_CommandResponse.fromJSON(object.response)- : undefined,- };- },-- toJSON(message: TaskRunLogEntry_CommandExecute): unknown {- const obj: any = {};- if (message.logTime !== undefined) {- obj.logTime = message.logTime.toISOString();- }- if (message.commandIndexes?.length) {- obj.commandIndexes = message.commandIndexes.map((e) => Math.round(e));- }- if (message.response !== undefined) {- obj.response = TaskRunLogEntry_CommandExecute_CommandResponse.toJSON(message.response);- }- return obj;- },-- create(base?: DeepPartial<TaskRunLogEntry_CommandExecute>): TaskRunLogEntry_CommandExecute {- return TaskRunLogEntry_CommandExecute.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<TaskRunLogEntry_CommandExecute>): TaskRunLogEntry_CommandExecute {- const message = createBaseTaskRunLogEntry_CommandExecute();- message.logTime = object.logTime ?? undefined;- message.commandIndexes = object.commandIndexes?.map((e) => e) || [];- message.response = (object.response !== undefined && object.response !== null)- ? TaskRunLogEntry_CommandExecute_CommandResponse.fromPartial(object.response)- : undefined;- return message;- },-};--function createBaseTaskRunLogEntry_CommandExecute_CommandResponse(): TaskRunLogEntry_CommandExecute_CommandResponse {- return { logTime: undefined, error: "", affectedRows: 0, allAffectedRows: [] };-}--export const TaskRunLogEntry_CommandExecute_CommandResponse = {- encode(- message: TaskRunLogEntry_CommandExecute_CommandResponse,- writer: _m0.Writer = _m0.Writer.create(),- ): _m0.Writer {- if (message.logTime !== undefined) {- Timestamp.encode(toTimestamp(message.logTime), writer.uint32(10).fork()).ldelim();- }- if (message.error !== "") {- writer.uint32(18).string(message.error);- }- if (message.affectedRows !== 0) {- writer.uint32(24).int32(message.affectedRows);- }- writer.uint32(34).fork();- for (const v of message.allAffectedRows) {- writer.int32(v);- }- writer.ldelim();- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLogEntry_CommandExecute_CommandResponse {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTaskRunLogEntry_CommandExecute_CommandResponse();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.logTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));- continue;- case 2:- if (tag !== 18) {- break;- }-- message.error = reader.string();- continue;- case 3:- if (tag !== 24) {- break;- }-- message.affectedRows = reader.int32();- continue;- case 4:- if (tag === 32) {- message.allAffectedRows.push(reader.int32());-- continue;- }-- if (tag === 34) {- const end2 = reader.uint32() + reader.pos;- while (reader.pos < end2) {- message.allAffectedRows.push(reader.int32());- }-- continue;- }-- break;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): TaskRunLogEntry_CommandExecute_CommandResponse {- return {- logTime: isSet(object.logTime) ? fromJsonTimestamp(object.logTime) : undefined,- error: isSet(object.error) ? globalThis.String(object.error) : "",- affectedRows: isSet(object.affectedRows) ? globalThis.Number(object.affectedRows) : 0,- allAffectedRows: globalThis.Array.isArray(object?.allAffectedRows)- ? object.allAffectedRows.map((e: any) => globalThis.Number(e))- : [],- };- },-- toJSON(message: TaskRunLogEntry_CommandExecute_CommandResponse): unknown {- const obj: any = {};- if (message.logTime !== undefined) {- obj.logTime = message.logTime.toISOString();- }- if (message.error !== "") {- obj.error = message.error;- }- if (message.affectedRows !== 0) {- obj.affectedRows = Math.round(message.affectedRows);- }- if (message.allAffectedRows?.length) {- obj.allAffectedRows = message.allAffectedRows.map((e) => Math.round(e));- }- return obj;- },-- create(- base?: DeepPartial<TaskRunLogEntry_CommandExecute_CommandResponse>,- ): TaskRunLogEntry_CommandExecute_CommandResponse {- return TaskRunLogEntry_CommandExecute_CommandResponse.fromPartial(base ?? {});- },- fromPartial(- object: DeepPartial<TaskRunLogEntry_CommandExecute_CommandResponse>,- ): TaskRunLogEntry_CommandExecute_CommandResponse {- const message = createBaseTaskRunLogEntry_CommandExecute_CommandResponse();+ fromPartial(object: DeepPartial<TaskRunLogEntry_CommandExecute>): TaskRunLogEntry_CommandExecute {+ const message = createBaseTaskRunLogEntry_CommandExecute();message.logTime = object.logTime ?? undefined;- message.error = object.error ?? "";- message.affectedRows = object.affectedRows ?? 0;- message.allAffectedRows = object.allAffectedRows?.map((e) => e) || [];- return message;- },-};--export type RolloutServiceDefinition = typeof RolloutServiceDefinition;-export const RolloutServiceDefinition = {- name: "RolloutService",- fullName: "bytebase.v1.RolloutService",- methods: {- getPlan: {- name: "GetPlan",- requestType: GetPlanRequest,- requestStream: false,- responseType: Plan,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([4, 110, 97, 109, 101])],- 578365826: [- new Uint8Array([- 31,- 18,- 29,- 47,- 118,- 49,- 47,- 123,- 110,- 97,- 109,- 101,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 47,- 112,- 108,- 97,- 110,- 115,- 47,- 42,- 125,- ]),- ],- },- },- },- listPlans: {- name: "ListPlans",- requestType: ListPlansRequest,- requestStream: false,- responseType: ListPlansResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],- 578365826: [- new Uint8Array([- 31,- 18,- 29,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- 47,- 112,- 108,- 97,- 110,- 115,- ]),- ],- },- },- },- createPlan: {- name: "CreatePlan",- requestType: CreatePlanRequest,- requestStream: false,- responseType: Plan,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([11, 112, 97, 114, 101, 110, 116, 44, 112, 108, 97, 110])],- 578365826: [- new Uint8Array([- 37,- 58,- 4,- 112,- 108,- 97,- 110,- 34,- 29,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- 47,- 112,- 108,- 97,- 110,- 115,- ]),- ],- },- },- },- updatePlan: {- name: "UpdatePlan",- requestType: UpdatePlanRequest,- requestStream: false,- responseType: Plan,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([16, 112, 108, 97, 110, 44, 117, 112, 100, 97, 116, 101, 95, 109, 97, 115, 107])],- 578365826: [- new Uint8Array([- 42,- 58,- 4,- 112,- 108,- 97,- 110,- 50,- 34,- 47,- 118,- 49,- 47,- 123,- 112,- 108,- 97,- 110,- 46,- 110,- 97,- 109,- 101,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 47,- 112,- 108,- 97,- 110,- 115,- 47,- 42,- 125,- ]),- ],- },- },- },+ message.commandIndexes = object.commandIndexes?.map((e) => e) || [];+ message.response = (object.response !== undefined && object.response !== null)+ ? TaskRunLogEntry_CommandExecute_CommandResponse.fromPartial(object.response)+ : undefined;+ return message;+ },+};++function createBaseTaskRunLogEntry_CommandExecute_CommandResponse(): TaskRunLogEntry_CommandExecute_CommandResponse {+ return { logTime: undefined, error: "", affectedRows: 0, allAffectedRows: [] };+}++export const TaskRunLogEntry_CommandExecute_CommandResponse = {+ encode(+ message: TaskRunLogEntry_CommandExecute_CommandResponse,+ writer: _m0.Writer = _m0.Writer.create(),+ ): _m0.Writer {+ if (message.logTime !== undefined) {+ Timestamp.encode(toTimestamp(message.logTime), writer.uint32(10).fork()).ldelim();+ }+ if (message.error !== "") {+ writer.uint32(18).string(message.error);+ }+ if (message.affectedRows !== 0) {+ writer.uint32(24).int32(message.affectedRows);+ }+ writer.uint32(34).fork();+ for (const v of message.allAffectedRows) {+ writer.int32(v);+ }+ writer.ldelim();+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLogEntry_CommandExecute_CommandResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTaskRunLogEntry_CommandExecute_CommandResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.logTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.error = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.affectedRows = reader.int32();+ continue;+ case 4:+ if (tag === 32) {+ message.allAffectedRows.push(reader.int32());++ continue;+ }++ if (tag === 34) {+ const end2 = reader.uint32() + reader.pos;+ while (reader.pos < end2) {+ message.allAffectedRows.push(reader.int32());+ }++ continue;+ }++ break;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): TaskRunLogEntry_CommandExecute_CommandResponse {+ return {+ logTime: isSet(object.logTime) ? fromJsonTimestamp(object.logTime) : undefined,+ error: isSet(object.error) ? globalThis.String(object.error) : "",+ affectedRows: isSet(object.affectedRows) ? globalThis.Number(object.affectedRows) : 0,+ allAffectedRows: globalThis.Array.isArray(object?.allAffectedRows)+ ? object.allAffectedRows.map((e: any) => globalThis.Number(e))+ : [],+ };+ },++ toJSON(message: TaskRunLogEntry_CommandExecute_CommandResponse): unknown {+ const obj: any = {};+ if (message.logTime !== undefined) {+ obj.logTime = message.logTime.toISOString();+ }+ if (message.error !== "") {+ obj.error = message.error;+ }+ if (message.affectedRows !== 0) {+ obj.affectedRows = Math.round(message.affectedRows);+ }+ if (message.allAffectedRows?.length) {+ obj.allAffectedRows = message.allAffectedRows.map((e) => Math.round(e));+ }+ return obj;+ },++ create(+ base?: DeepPartial<TaskRunLogEntry_CommandExecute_CommandResponse>,+ ): TaskRunLogEntry_CommandExecute_CommandResponse {+ return TaskRunLogEntry_CommandExecute_CommandResponse.fromPartial(base ?? {});+ },+ fromPartial(+ object: DeepPartial<TaskRunLogEntry_CommandExecute_CommandResponse>,+ ): TaskRunLogEntry_CommandExecute_CommandResponse {+ const message = createBaseTaskRunLogEntry_CommandExecute_CommandResponse();+ message.logTime = object.logTime ?? undefined;+ message.error = object.error ?? "";+ message.affectedRows = object.affectedRows ?? 0;+ message.allAffectedRows = object.allAffectedRows?.map((e) => e) || [];+ return message;+ },+};++export type RolloutServiceDefinition = typeof RolloutServiceDefinition;+export const RolloutServiceDefinition = {+ name: "RolloutService",+ fullName: "bytebase.v1.RolloutService",+ methods: {getRollout: {name: "GetRollout",requestType: GetRolloutRequest,@@ -7570,135 +4211,6 @@ export const RolloutServiceDefinition = {},},},- listPlanCheckRuns: {- name: "ListPlanCheckRuns",- requestType: ListPlanCheckRunsRequest,- requestStream: false,- responseType: ListPlanCheckRunsResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],- 578365826: [- new Uint8Array([- 47,- 18,- 45,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 47,- 112,- 108,- 97,- 110,- 115,- 47,- 42,- 125,- 47,- 112,- 108,- 97,- 110,- 67,- 104,- 101,- 99,- 107,- 82,- 117,- 110,- 115,- ]),- ],- },- },- },- runPlanChecks: {- name: "RunPlanChecks",- requestType: RunPlanChecksRequest,- requestStream: false,- responseType: RunPlanChecksResponse,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([4, 110, 97, 109, 101])],- 578365826: [- new Uint8Array([- 48,- 58,- 1,- 42,- 34,- 43,- 47,- 118,- 49,- 47,- 123,- 110,- 97,- 109,- 101,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 47,- 112,- 108,- 97,- 110,- 115,- 47,- 42,- 125,- 58,- 114,- 117,- 110,- 80,- 108,- 97,- 110,- 67,- 104,- 101,- 99,- 107,- 115,- ]),- ],- },- },- },batchRunTasks: {name: "BatchRunTasks",requestType: BatchRunTasksRequest,diff --git a/frontend/src/types/v1/issue/issue.ts b/frontend/src/types/v1/issue/issue.tsindex b9e5083b53..576c2f21f8 100644--- a/frontend/src/types/v1/issue/issue.ts+++ b/frontend/src/types/v1/issue/issue.ts@@ -7,16 +7,11 @@ import {emptyUser,unknownUser,} from "@/types";+import type { Rollout, TaskRun } from "@/types//proto/v1/rollout_service";import type { User } from "@/types/proto/v1/auth_service";+import { Issue, IssueStatus, Issue_Type } from "@/types/proto/v1/issue_service";+import type { Plan, PlanCheckRun } from "@/types/proto/v1/plan_service";import { EMPTY_ID, UNKNOWN_ID } from "../../const";-import type { IssueStatus } from "../../proto/v1/issue_service";-import { Issue, Issue_Type } from "../../proto/v1/issue_service";-import type {- Plan,- PlanCheckRun,- Rollout,- TaskRun,-} from "../../proto/v1/rollout_service";import { EMPTY_ROLLOUT_NAME, UNKNOWN_ROLLOUT_NAME } from "./rollout";// For grant request issue, it has no plan and rollout.diff --git a/frontend/src/types/v1/issue/plan.ts b/frontend/src/types/v1/issue/plan.tsindex 9c66d29e5c..c2391812a0 100644--- a/frontend/src/types/v1/issue/plan.ts+++ b/frontend/src/types/v1/issue/plan.ts@@ -1,5 +1,5 @@import { EMPTY_ID, UNKNOWN_ID } from "@/types/const";-import { Plan, Plan_Spec } from "@/types/proto/v1/rollout_service";+import { Plan, Plan_Spec } from "@/types/proto/v1/plan_service";export const EMPTY_PLAN_NAME = `projects/${EMPTY_ID}/plans/${EMPTY_ID}`;export const UNKNOWN_PLAN_NAME = `projects/${UNKNOWN_ID}/plans/${UNKNOWN_ID}`;diff --git a/frontend/src/utils/v1/issue/issue.ts b/frontend/src/utils/v1/issue/issue.tsindex 24488285ec..89b1441a9c 100644--- a/frontend/src/utils/v1/issue/issue.ts+++ b/frontend/src/utils/v1/issue/issue.ts@@ -1,7 +1,8 @@import slug from "slug";import { type ComposedIssue } from "@/types";import { Issue_Type } from "@/types/proto/v1/issue_service";-import type { Plan, Rollout } from "@/types/proto/v1/rollout_service";+import type { Plan } from "@/types/proto/v1/plan_service";+import type { Rollout } from "@/types/proto/v1/rollout_service";import { Task_Type } from "@/types/proto/v1/rollout_service";export const issueV1Slug = (issue: ComposedIssue) => {diff --git a/frontend/src/utils/v1/issue/plan.ts b/frontend/src/utils/v1/issue/plan.tsindex 8cffc642a2..9b0d67368e 100644--- a/frontend/src/utils/v1/issue/plan.ts+++ b/frontend/src/utils/v1/issue/plan.ts@@ -1,4 +1,4 @@-import type { Plan_Spec } from "@/types/proto/v1/rollout_service";+import type { Plan_Spec } from "@/types/proto/v1/plan_service";export const sheetNameOfSpec = (spec: Plan_Spec): string => {return spec.changeDatabaseConfig?.sheet ?? spec.exportDataConfig?.sheet ?? "";diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex fec6d9bca6..82cc6cd16a 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -5385,8 +5385,8 @@ paths:/v1/projects/{project}/plans:get:tags:- - RolloutService- operationId: RolloutService_ListPlans+ - PlanService+ operationId: PlanService_ListPlansparameters:- name: projectin: path@@ -5429,8 +5429,8 @@ paths:$ref: '#/components/schemas/Status'post:tags:- - RolloutService- operationId: RolloutService_CreatePlan+ - PlanService+ operationId: PlanService_CreatePlanparameters:- name: projectin: path@@ -5460,8 +5460,8 @@ paths:/v1/projects/{project}/plans/{plan}:get:tags:- - RolloutService- operationId: RolloutService_GetPlan+ - PlanService+ operationId: PlanService_GetPlanparameters:- name: projectin: path@@ -5490,8 +5490,8 @@ paths:$ref: '#/components/schemas/Status'patch:tags:- - RolloutService- operationId: RolloutService_UpdatePlan+ - PlanService+ operationId: PlanService_UpdatePlanparameters:- name: projectin: path@@ -5533,8 +5533,8 @@ paths:/v1/projects/{project}/plans/{plan}/planCheckRuns:get:tags:- - RolloutService- operationId: RolloutService_ListPlanCheckRuns+ - PlanService+ operationId: PlanService_ListPlanCheckRunsparameters:- name: projectin: path@@ -5584,8 +5584,8 @@ paths:/v1/projects/{project}/plans/{plan}:runPlanChecks:post:tags:- - RolloutService- operationId: RolloutService_RunPlanChecks+ - PlanService+ operationId: PlanService_RunPlanChecksparameters:- name: projectin: path@@ -14349,6 +14349,7 @@ tags:- name: IssueService- name: LoggingService- name: OrgPolicyService+ - name: PlanService- name: ProjectService- name: RiskService- name: RoleServicediff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex f71873d525..8381f2fc6f 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -358,6 +358,39 @@- [OrgPolicyService](#bytebase-v1-OrgPolicyService)+- [v1/plan_service.proto](#v1_plan_service-proto)+ - [CreatePlanRequest](#bytebase-v1-CreatePlanRequest)+ - [GetPlanRequest](#bytebase-v1-GetPlanRequest)+ - [ListPlanCheckRunsRequest](#bytebase-v1-ListPlanCheckRunsRequest)+ - [ListPlanCheckRunsResponse](#bytebase-v1-ListPlanCheckRunsResponse)+ - [ListPlansRequest](#bytebase-v1-ListPlansRequest)+ - [ListPlansResponse](#bytebase-v1-ListPlansResponse)+ - [Plan](#bytebase-v1-Plan)+ - [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig)+ - [Plan.ChangeDatabaseConfig.GhostFlagsEntry](#bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry)+ - [Plan.ChangeDatabaseConfig.PreUpdateBackupDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail)+ - [Plan.ChangeDatabaseConfig.RollbackDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-RollbackDetail)+ - [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig)+ - [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry)+ - [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig)+ - [Plan.Spec](#bytebase-v1-Plan-Spec)+ - [Plan.Step](#bytebase-v1-Plan-Step)+ - [Plan.VCSSource](#bytebase-v1-Plan-VCSSource)+ - [PlanCheckRun](#bytebase-v1-PlanCheckRun)+ - [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result)+ - [PlanCheckRun.Result.SqlReviewReport](#bytebase-v1-PlanCheckRun-Result-SqlReviewReport)+ - [PlanCheckRun.Result.SqlSummaryReport](#bytebase-v1-PlanCheckRun-Result-SqlSummaryReport)+ - [RunPlanChecksRequest](#bytebase-v1-RunPlanChecksRequest)+ - [RunPlanChecksResponse](#bytebase-v1-RunPlanChecksResponse)+ - [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest)++ - [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type)+ - [PlanCheckRun.Result.Status](#bytebase-v1-PlanCheckRun-Result-Status)+ - [PlanCheckRun.Status](#bytebase-v1-PlanCheckRun-Status)+ - [PlanCheckRun.Type](#bytebase-v1-PlanCheckRun-Type)++ - [PlanService](#bytebase-v1-PlanService)+- [v1/project_service.proto](#v1_project_service-proto)- [Activity](#bytebase-v1-Activity)- [AddWebhookRequest](#bytebase-v1-AddWebhookRequest)@@ -452,36 +485,13 @@- [BatchRunTasksResponse](#bytebase-v1-BatchRunTasksResponse)- [BatchSkipTasksRequest](#bytebase-v1-BatchSkipTasksRequest)- [BatchSkipTasksResponse](#bytebase-v1-BatchSkipTasksResponse)- - [CreatePlanRequest](#bytebase-v1-CreatePlanRequest)- [CreateRolloutRequest](#bytebase-v1-CreateRolloutRequest)- - [GetPlanRequest](#bytebase-v1-GetPlanRequest)- [GetRolloutRequest](#bytebase-v1-GetRolloutRequest)- [GetTaskRunLogRequest](#bytebase-v1-GetTaskRunLogRequest)- - [ListPlanCheckRunsRequest](#bytebase-v1-ListPlanCheckRunsRequest)- - [ListPlanCheckRunsResponse](#bytebase-v1-ListPlanCheckRunsResponse)- - [ListPlansRequest](#bytebase-v1-ListPlansRequest)- - [ListPlansResponse](#bytebase-v1-ListPlansResponse)- [ListTaskRunsRequest](#bytebase-v1-ListTaskRunsRequest)- [ListTaskRunsResponse](#bytebase-v1-ListTaskRunsResponse)- - [Plan](#bytebase-v1-Plan)- - [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig)- - [Plan.ChangeDatabaseConfig.GhostFlagsEntry](#bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry)- - [Plan.ChangeDatabaseConfig.PreUpdateBackupDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail)- - [Plan.ChangeDatabaseConfig.RollbackDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-RollbackDetail)- - [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig)- - [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry)- - [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig)- - [Plan.Spec](#bytebase-v1-Plan-Spec)- - [Plan.Step](#bytebase-v1-Plan-Step)- - [Plan.VCSSource](#bytebase-v1-Plan-VCSSource)- - [PlanCheckRun](#bytebase-v1-PlanCheckRun)- - [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result)- - [PlanCheckRun.Result.SqlReviewReport](#bytebase-v1-PlanCheckRun-Result-SqlReviewReport)- - [PlanCheckRun.Result.SqlSummaryReport](#bytebase-v1-PlanCheckRun-Result-SqlSummaryReport)- [PreviewRolloutRequest](#bytebase-v1-PreviewRolloutRequest)- [Rollout](#bytebase-v1-Rollout)- - [RunPlanChecksRequest](#bytebase-v1-RunPlanChecksRequest)- - [RunPlanChecksResponse](#bytebase-v1-RunPlanChecksResponse)- [Stage](#bytebase-v1-Stage)- [Task](#bytebase-v1-Task)- [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate)@@ -498,12 +508,7 @@- [TaskRunLogEntry.CommandExecute](#bytebase-v1-TaskRunLogEntry-CommandExecute)- [TaskRunLogEntry.CommandExecute.CommandResponse](#bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse)- [TaskRunLogEntry.SchemaDump](#bytebase-v1-TaskRunLogEntry-SchemaDump)- - [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest)- - [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type)- - [PlanCheckRun.Result.Status](#bytebase-v1-PlanCheckRun-Result-Status)- - [PlanCheckRun.Status](#bytebase-v1-PlanCheckRun-Status)- - [PlanCheckRun.Type](#bytebase-v1-PlanCheckRun-Type)- [Task.DatabaseDataUpdate.RollbackSqlStatus](#bytebase-v1-Task-DatabaseDataUpdate-RollbackSqlStatus)- [Task.Status](#bytebase-v1-Task-Status)- [Task.Type](#bytebase-v1-Task-Type)@@ -6048,1524 +6053,1635 @@ The policy's `name` field is used to identify the instance to update. Format-<a name="v1_project_service-proto"></a>+<a name="v1_plan_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/project_service.proto+## v1/plan_service.proto-<a name="bytebase-v1-Activity"></a>+<a name="bytebase-v1-CreatePlanRequest"></a>-### Activity-TODO(zp): move to activity later.+### CreatePlanRequest+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent project where this plan will be created. Format: projects/{project} |+| plan | [Plan](#bytebase-v1-Plan) | | The plan to create. |-<a name="bytebase-v1-AddWebhookRequest"></a>-### AddWebhookRequest+++<a name="bytebase-v1-GetPlanRequest"></a>++### GetPlanRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The name of the project to add the webhook to. Format: projects/{project} |-| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to add. |+| name | [string](#string) | | The name of the plan to retrieve. Format: projects/{project}/plans/{plan} |-<a name="bytebase-v1-BatchGetIamPolicyRequest"></a>+<a name="bytebase-v1-ListPlanCheckRunsRequest"></a>-### BatchGetIamPolicyRequest+### ListPlanCheckRunsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| scope | [string](#string) | | The scope of the batch get. Typically it's "projects/-". |-| names | [string](#string) | repeated | |+| parent | [string](#string) | | The parent, which owns this collection of plan check runs. Format: projects/{project}/plans/{plan} |+| page_size | [int32](#int32) | | The maximum number of plan check runs to return. The service may return fewer than this value. If unspecified, at most 50 plans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListPlanCheckRuns` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListPlanCheckRuns` must match the call that provided the page token. |-<a name="bytebase-v1-BatchGetIamPolicyResponse"></a>-### BatchGetIamPolicyResponse+<a name="bytebase-v1-ListPlanCheckRunsResponse"></a>++### ListPlanCheckRunsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| policy_results | [BatchGetIamPolicyResponse.PolicyResult](#bytebase-v1-BatchGetIamPolicyResponse-PolicyResult) | repeated | |+| plan_check_runs | [PlanCheckRun](#bytebase-v1-PlanCheckRun) | repeated | The plan check runs from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-BatchGetIamPolicyResponse-PolicyResult"></a>+<a name="bytebase-v1-ListPlansRequest"></a>-### BatchGetIamPolicyResponse.PolicyResult+### ListPlansRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | |-| policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |+| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project} Use "projects/-" to list all plans from all projects. |+| page_size | [int32](#int32) | | The maximum number of plans to return. The service may return fewer than this value. If unspecified, at most 50 plans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListPlans` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListPlans` must match the call that provided the page token. |-<a name="bytebase-v1-CreateDatabaseGroupRequest"></a>+<a name="bytebase-v1-ListPlansResponse"></a>-### CreateDatabaseGroupRequest+### ListPlansResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this database group will be created. Format: projects/{project} |-| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to create. |-| database_group_id | [string](#string) | | The ID to use for the database group, which will become the final component of the database group's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-| validate_only | [bool](#bool) | | If set, validate the create request and preview the full database group response, but do not actually create it. |+| plans | [Plan](#bytebase-v1-Plan) | repeated | The plans from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-CreateProjectRequest"></a>+<a name="bytebase-v1-Plan"></a>-### CreateProjectRequest+### Plan| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [Project](#bytebase-v1-Project) | | The project to create. |-| project_id | [string](#string) | | The ID to use for the project, which will become the final component of the project's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| name | [string](#string) | | The name of the plan. `plan` is a system generated ID. Format: projects/{project}/plans/{plan} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| issue | [string](#string) | | The resource name of the issue associated with this plan. Format: projects/{project}/issues/{issue} |+| title | [string](#string) | | |+| description | [string](#string) | | |+| steps | [Plan.Step](#bytebase-v1-Plan-Step) | repeated | |+| vcs_source | [Plan.VCSSource](#bytebase-v1-Plan-VCSSource) | | |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-<a name="bytebase-v1-CreateSchemaGroupRequest"></a>+<a name="bytebase-v1-Plan-ChangeDatabaseConfig"></a>-### CreateSchemaGroupRequest+### Plan.ChangeDatabaseConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this schema group will be created. Format: projects/{project}/databaseGroups/{databaseGroup} |-| schema_group | [SchemaGroup](#bytebase-v1-SchemaGroup) | | The schema group to create. |-| schema_group_id | [string](#string) | | The ID to use for the schema group, which will become the final component of the schema group's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-| validate_only | [bool](#bool) | | If set, validate the create request and preview the full schema group response, but do not actually create it. |+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. Format: projects/{project}/deploymentConfigs/default. The plan should have a single step and single spec for the deployment configuration type. |+| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |+| type | [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type) | | |+| schema_version | [string](#string) | | schema_version is parsed from VCS file name. It is automatically generated in the UI workflow. |+| rollback_enabled | [bool](#bool) | | If RollbackEnabled, build the RollbackSheetID of the task after the task is completed. |+| rollback_detail | [Plan.ChangeDatabaseConfig.RollbackDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-RollbackDetail) | optional | |+| ghost_flags | [Plan.ChangeDatabaseConfig.GhostFlagsEntry](#bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry) | repeated | |+| pre_update_backup_detail | [Plan.ChangeDatabaseConfig.PreUpdateBackupDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail) | optional | If set, a backup of the modified data will be created automatically before any changes are applied. |-<a name="bytebase-v1-DatabaseGroup"></a>+<a name="bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry"></a>-### DatabaseGroup+### Plan.ChangeDatabaseConfig.GhostFlagsEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database group. Format: projects/{project}/databaseGroups/{databaseGroup} |-| database_placeholder | [string](#string) | | The short name used in actual databases specified by users. For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1". |-| database_expr | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this database group. |-| matched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |-| unmatched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="bytebase-v1-DatabaseGroup-Database"></a>+<a name="bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail"></a>-### DatabaseGroup.Database+### Plan.ChangeDatabaseConfig.PreUpdateBackupDetail| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The resource name of the database. Format: instances/{instance}/databases/{database} |+| database | [string](#string) | | The database for keeping the backup data. Format: instances/{instance}/databases/{database} |-<a name="bytebase-v1-DeleteDatabaseGroupRequest"></a>+<a name="bytebase-v1-Plan-ChangeDatabaseConfig-RollbackDetail"></a>-### DeleteDatabaseGroupRequest+### Plan.ChangeDatabaseConfig.RollbackDetail| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database group to delete. Format: projects/{project}/databaseGroups/{databaseGroup} |+| rollback_from_task | [string](#string) | | rollback_from_task is the task from which the rollback SQL statement is generated for this task. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| rollback_from_issue | [string](#string) | | rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task. Format: projects/{project}/issues/{issue} |-<a name="bytebase-v1-DeleteProjectRequest"></a>+<a name="bytebase-v1-Plan-CreateDatabaseConfig"></a>-### DeleteProjectRequest+### Plan.CreateDatabaseConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the project to delete. Format: projects/{project} |-| force | [bool](#bool) | | If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. |+| target | [string](#string) | | The resource name of the instance on which the database is created. Format: instances/{instance} |+| database | [string](#string) | | The name of the database to create. |+| table | [string](#string) | | table is the name of the table, if it is not empty, Bytebase should create a table after creating the database. For example, in MongoDB, it only creates the database when we first store data in that database. |+| character_set | [string](#string) | | character_set is the character set of the database. |+| collation | [string](#string) | | collation is the collation of the database. |+| cluster | [string](#string) | | cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". |+| owner | [string](#string) | | owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". |+| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |+| labels | [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry) | repeated | labels of the database. |-<a name="bytebase-v1-DeleteSchemaGroupRequest"></a>+<a name="bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry"></a>-### DeleteSchemaGroupRequest+### Plan.CreateDatabaseConfig.LabelsEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the schema group to delete. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="bytebase-v1-DeploymentConfig"></a>+<a name="bytebase-v1-Plan-ExportDataConfig"></a>-### DeploymentConfig+### Plan.ExportDataConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the resource. Format: projects/{project}/deploymentConfigs/default. |-| title | [string](#string) | | The title of the deployment config. |-| schedule | [Schedule](#bytebase-v1-Schedule) | | |+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name} |+| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |+| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The format of the exported file. |+| password | [string](#string) | optional | The zip password provide by users. Leave it empty if no needs to encrypt the zip file. |-<a name="bytebase-v1-DeploymentSpec"></a>+<a name="bytebase-v1-Plan-Spec"></a>-### DeploymentSpec+### Plan.Spec| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| label_selector | [LabelSelector](#bytebase-v1-LabelSelector) | | |+| earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | earliest_allowed_time the earliest execution time of the change. |+| id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. |+| depends_on_specs | [string](#string) | repeated | IDs of the specs that this spec depends on. Must be a subset of the specs in the same step. |+| create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | | |+| change_database_config | [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig) | | |+| export_data_config | [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig) | | |-<a name="bytebase-v1-GetDatabaseGroupRequest"></a>+<a name="bytebase-v1-Plan-Step"></a>-### GetDatabaseGroupRequest+### Plan.Step| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database group to retrieve. Format: projects/{project}/databaseGroups/{databaseGroup} |-| view | [DatabaseGroupView](#bytebase-v1-DatabaseGroupView) | | The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. |+| title | [string](#string) | | TODO: implement |+| specs | [Plan.Spec](#bytebase-v1-Plan-Spec) | repeated | |-<a name="bytebase-v1-GetDeploymentConfigRequest"></a>+<a name="bytebase-v1-Plan-VCSSource"></a>-### GetDeploymentConfigRequest+### Plan.VCSSource| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the resource. Format: projects/{project}/deploymentConfigs/default. |+| vcs_type | [VCSType](#bytebase-v1-VCSType) | | |+| vcs_connector | [string](#string) | | Optional. If present, we will update the pull request for rollout status. Format: projects/{project-ID}/vcsConnectors/{vcs-connector} |+| pull_request_url | [string](#string) | | |-<a name="bytebase-v1-GetIamPolicyRequest"></a>+<a name="bytebase-v1-PlanCheckRun"></a>-### GetIamPolicyRequest+### PlanCheckRun| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The name of the project to get the IAM policy. Format: projects/{project} |+| name | [string](#string) | | Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| type | [PlanCheckRun.Type](#bytebase-v1-PlanCheckRun-Type) | | |+| status | [PlanCheckRun.Status](#bytebase-v1-PlanCheckRun-Status) | | |+| target | [string](#string) | | Format: instances/{instance}/databases/{database} |+| sheet | [string](#string) | | Format: project/{project}/sheets/{sheet} |+| results | [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result) | repeated | |+| error | [string](#string) | | error is set if the Status is FAILED. |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-<a name="bytebase-v1-GetProjectProtectionRulesRequest"></a>+<a name="bytebase-v1-PlanCheckRun-Result"></a>-### GetProjectProtectionRulesRequest+### PlanCheckRun.Result| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the protection rules. Format: projects/{project}/protectionRules |+| status | [PlanCheckRun.Result.Status](#bytebase-v1-PlanCheckRun-Result-Status) | | |+| title | [string](#string) | | |+| content | [string](#string) | | |+| code | [int32](#int32) | | |+| sql_summary_report | [PlanCheckRun.Result.SqlSummaryReport](#bytebase-v1-PlanCheckRun-Result-SqlSummaryReport) | | |+| sql_review_report | [PlanCheckRun.Result.SqlReviewReport](#bytebase-v1-PlanCheckRun-Result-SqlReviewReport) | | |-<a name="bytebase-v1-GetProjectRequest"></a>+<a name="bytebase-v1-PlanCheckRun-Result-SqlReviewReport"></a>-### GetProjectRequest+### PlanCheckRun.Result.SqlReviewReport| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the project to retrieve. Format: projects/{project} |+| line | [int32](#int32) | | |+| column | [int32](#int32) | | |+| detail | [string](#string) | | |+| code | [int32](#int32) | | Code from sql review. |-<a name="bytebase-v1-GetSchemaGroupRequest"></a>+<a name="bytebase-v1-PlanCheckRun-Result-SqlSummaryReport"></a>-### GetSchemaGroupRequest+### PlanCheckRun.Result.SqlSummaryReport| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database group to retrieve. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |-| view | [SchemaGroupView](#bytebase-v1-SchemaGroupView) | | The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC. |+| code | [int32](#int32) | | |+| statement_types | [string](#string) | repeated | statement_types are the types of statements that are found in the sql. |+| affected_rows | [int32](#int32) | | |+| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |-<a name="bytebase-v1-Label"></a>+<a name="bytebase-v1-RunPlanChecksRequest"></a>-### Label+### RunPlanChecksRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| value | [string](#string) | | |-| color | [string](#string) | | |-| group | [string](#string) | | |--+| name | [string](#string) | | The plan to run plan checks. Format: projects/{project}/plans/{plan} |-<a name="bytebase-v1-LabelSelector"></a>-### LabelSelector+<a name="bytebase-v1-RunPlanChecksResponse"></a>+### RunPlanChecksResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| match_expressions | [LabelSelectorRequirement](#bytebase-v1-LabelSelectorRequirement) | repeated | |-<a name="bytebase-v1-LabelSelectorRequirement"></a>+<a name="bytebase-v1-UpdatePlanRequest"></a>-### LabelSelectorRequirement+### UpdatePlanRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| operator | [OperatorType](#bytebase-v1-OperatorType) | | |-| values | [string](#string) | repeated | |+| plan | [Plan](#bytebase-v1-Plan) | | The plan to update.+The plan's `name` field is used to identify the plan to update. Format: projects/{project}/plans/{plan} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-ListDatabaseGroupsRequest"></a>+-### ListDatabaseGroupsRequest+<a name="bytebase-v1-Plan-ChangeDatabaseConfig-Type"></a>+### Plan.ChangeDatabaseConfig.Type+Type is the database change type.++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| BASELINE | 1 | Used for establishing schema baseline, this is used when 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema. 2. Had schema drift and need to re-establish the baseline. |+| MIGRATE | 2 | Used for DDL changes including CREATE DATABASE. |+| MIGRATE_SDL | 3 | Used for schema changes via state-based schema migration including CREATE DATABASE. |+| MIGRATE_GHOST | 4 | Used for DDL changes using gh-ost. |+| DATA | 6 | Used for DML change. |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource whose database groups are to be listed. Format: projects/{project} Using "projects/-" will list database groups across all projects. |-| page_size | [int32](#int32) | | Not used. The maximum number of anomalies to return. The service may return fewer than this value. If unspecified, at most 50 anomalies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListDatabaseGroups` call. Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListDatabaseGroups` must match the call that provided the page token. |+<a name="bytebase-v1-PlanCheckRun-Result-Status"></a>+### PlanCheckRun.Result.Status+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| ERROR | 1 | |+| WARNING | 2 | |+| SUCCESS | 3 | |-<a name="bytebase-v1-ListDatabaseGroupsResponse"></a>-### ListDatabaseGroupsResponse+<a name="bytebase-v1-PlanCheckRun-Status"></a>+### PlanCheckRun.Status-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database_groups | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | repeated | database_groups is the list of database groups. |-| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| RUNNING | 1 | |+| DONE | 2 | |+| FAILED | 3 | |+| CANCELED | 4 | |+<a name="bytebase-v1-PlanCheckRun-Type"></a>+### PlanCheckRun.Type-<a name="bytebase-v1-ListProjectsRequest"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| DATABASE_STATEMENT_FAKE_ADVISE | 1 | |+| DATABASE_STATEMENT_COMPATIBILITY | 2 | |+| DATABASE_STATEMENT_ADVISE | 3 | |+| DATABASE_STATEMENT_TYPE | 4 | |+| DATABASE_STATEMENT_SUMMARY_REPORT | 5 | |+| DATABASE_CONNECT | 6 | |+| DATABASE_GHOST_SYNC | 7 | |-### ListProjectsRequest++-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of projects to return. The service may return fewer than this value. If unspecified, at most 50 projects will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListProjects` call. Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListProjects` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted projects if specified. |+<a name="bytebase-v1-PlanService"></a>++### PlanService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetPlan | [GetPlanRequest](#bytebase-v1-GetPlanRequest) | [Plan](#bytebase-v1-Plan) | |+| ListPlans | [ListPlansRequest](#bytebase-v1-ListPlansRequest) | [ListPlansResponse](#bytebase-v1-ListPlansResponse) | |+| CreatePlan | [CreatePlanRequest](#bytebase-v1-CreatePlanRequest) | [Plan](#bytebase-v1-Plan) | |+| UpdatePlan | [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest) | [Plan](#bytebase-v1-Plan) | |+| ListPlanCheckRuns | [ListPlanCheckRunsRequest](#bytebase-v1-ListPlanCheckRunsRequest) | [ListPlanCheckRunsResponse](#bytebase-v1-ListPlanCheckRunsResponse) | |+| RunPlanChecks | [RunPlanChecksRequest](#bytebase-v1-RunPlanChecksRequest) | [RunPlanChecksResponse](#bytebase-v1-RunPlanChecksResponse) | |+++<a name="v1_project_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>-<a name="bytebase-v1-ListProjectsResponse"></a>+## v1/project_service.proto-### ListProjectsResponse+<a name="bytebase-v1-Activity"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| projects | [Project](#bytebase-v1-Project) | repeated | The projects from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+### Activity+TODO(zp): move to activity later.-<a name="bytebase-v1-ListSchemaGroupsRequest"></a>+<a name="bytebase-v1-AddWebhookRequest"></a>-### ListSchemaGroupsRequest+### AddWebhookRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource whose schema groups are to be listed. Format: projects/{project}/schemaGroups/{schemaGroup} |-| page_size | [int32](#int32) | | Not used. The maximum number of anomalies to return. The service may return fewer than this value. If unspecified, at most 50 anomalies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `ListSchemaGroups` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListSchemaGroups` must match the call that provided the page token. |+| project | [string](#string) | | The name of the project to add the webhook to. Format: projects/{project} |+| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to add. |-<a name="bytebase-v1-ListSchemaGroupsResponse"></a>+<a name="bytebase-v1-BatchGetIamPolicyRequest"></a>-### ListSchemaGroupsResponse+### BatchGetIamPolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema_groups | [SchemaGroup](#bytebase-v1-SchemaGroup) | repeated | schema_groups is the list of schema groups. |-| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| scope | [string](#string) | | The scope of the batch get. Typically it's "projects/-". |+| names | [string](#string) | repeated | |-<a name="bytebase-v1-Project"></a>+<a name="bytebase-v1-BatchGetIamPolicyResponse"></a>-### Project+### BatchGetIamPolicyResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the project. Format: projects/{project} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | The title or name of a project. It's not unique within the workspace. |-| key | [string](#string) | | The key is a short and upper-case identifier for a project. It's unique within the workspace. |-| workflow | [Workflow](#bytebase-v1-Workflow) | | |-| tenant_mode | [TenantMode](#bytebase-v1-TenantMode) | | |-| webhooks | [Webhook](#bytebase-v1-Webhook) | repeated | |-| data_classification_config_id | [string](#string) | | |-| issue_labels | [Label](#bytebase-v1-Label) | repeated | |-| force_issue_labels | [bool](#bool) | | |+| policy_results | [BatchGetIamPolicyResponse.PolicyResult](#bytebase-v1-BatchGetIamPolicyResponse-PolicyResult) | repeated | |-<a name="bytebase-v1-ProtectionRule"></a>+<a name="bytebase-v1-BatchGetIamPolicyResponse-PolicyResult"></a>-### ProtectionRule+### BatchGetIamPolicyResponse.PolicyResult| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | A unique identifier for a node in UUID format. |-| target | [ProtectionRule.Target](#bytebase-v1-ProtectionRule-Target) | | |-| name_filter | [string](#string) | | The name of the branch/changelist or wildcard. |-| allowed_roles | [string](#string) | repeated | The roles allowed to create branches or changelists, rebase branches, delete branches. Format: roles/projectOwner. |-| branch_source | [ProtectionRule.BranchSource](#bytebase-v1-ProtectionRule-BranchSource) | | |+| project | [string](#string) | | |+| policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |-<a name="bytebase-v1-ProtectionRules"></a>+<a name="bytebase-v1-CreateDatabaseGroupRequest"></a>-### ProtectionRules+### CreateDatabaseGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the protection rules. Format: projects/{project}/protectionRules |-| rules | [ProtectionRule](#bytebase-v1-ProtectionRule) | repeated | |+| parent | [string](#string) | | The parent resource where this database group will be created. Format: projects/{project} |+| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to create. |+| database_group_id | [string](#string) | | The ID to use for the database group, which will become the final component of the database group's resource name.++This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| validate_only | [bool](#bool) | | If set, validate the create request and preview the full database group response, but do not actually create it. |-<a name="bytebase-v1-RemoveWebhookRequest"></a>+<a name="bytebase-v1-CreateProjectRequest"></a>-### RemoveWebhookRequest+### CreateProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to remove. Identified by its url. |+| project | [Project](#bytebase-v1-Project) | | The project to create. |+| project_id | [string](#string) | | The ID to use for the project, which will become the final component of the project's resource name.+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-Schedule"></a>-### Schedule+<a name="bytebase-v1-CreateSchemaGroupRequest"></a>++### CreateSchemaGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| deployments | [ScheduleDeployment](#bytebase-v1-ScheduleDeployment) | repeated | |+| parent | [string](#string) | | The parent resource where this schema group will be created. Format: projects/{project}/databaseGroups/{databaseGroup} |+| schema_group | [SchemaGroup](#bytebase-v1-SchemaGroup) | | The schema group to create. |+| schema_group_id | [string](#string) | | The ID to use for the schema group, which will become the final component of the schema group's resource name.+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |+| validate_only | [bool](#bool) | | If set, validate the create request and preview the full schema group response, but do not actually create it. |-<a name="bytebase-v1-ScheduleDeployment"></a>-### ScheduleDeployment+<a name="bytebase-v1-DatabaseGroup"></a>++### DatabaseGroup| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| title | [string](#string) | | The title of the deployment (stage) in a schedule. |-| spec | [DeploymentSpec](#bytebase-v1-DeploymentSpec) | | |+| name | [string](#string) | | The name of the database group. Format: projects/{project}/databaseGroups/{databaseGroup} |+| database_placeholder | [string](#string) | | The short name used in actual databases specified by users. For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1". |+| database_expr | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this database group. |+| matched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |+| unmatched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |-<a name="bytebase-v1-SchemaGroup"></a>+<a name="bytebase-v1-DatabaseGroup-Database"></a>-### SchemaGroup+### DatabaseGroup.Database| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the schema group. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |-| table_expr | [google.type.Expr](#google-type-Expr) | | The table condition that is associated with this schema group. The table_placeholder in the sheet script will be rendered to the actual table name. |-| table_placeholder | [string](#string) | | The table placeholder used for rendering. For example, if set to "tbl", all the table name "tbl" in the SQL script will be rendered to the actual table name. |-| matched_tables | [SchemaGroup.Table](#bytebase-v1-SchemaGroup-Table) | repeated | The list of databases that match the database group condition. |-| unmatched_tables | [SchemaGroup.Table](#bytebase-v1-SchemaGroup-Table) | repeated | The list of databases that match the database group condition. |+| name | [string](#string) | | The resource name of the database. Format: instances/{instance}/databases/{database} |-<a name="bytebase-v1-SchemaGroup-Table"></a>+<a name="bytebase-v1-DeleteDatabaseGroupRequest"></a>++### DeleteDatabaseGroupRequest-### SchemaGroup.Table-In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.-Its keyword will be {{SCHEMA}}.-All the expressions will be used to filter the schema objects in DatabaseSchema.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The resource name of the database. Format: instances/{instance}/databases/{database} |-| schema | [string](#string) | | |-| table | [string](#string) | | |+| name | [string](#string) | | The name of the database group to delete. Format: projects/{project}/databaseGroups/{databaseGroup} |-<a name="bytebase-v1-SearchProjectsRequest"></a>+<a name="bytebase-v1-DeleteProjectRequest"></a>-### SearchProjectsRequest+### DeleteProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| show_deleted | [bool](#bool) | | Show deleted projects if specified. |+| name | [string](#string) | | The name of the project to delete. Format: projects/{project} |+| force | [bool](#bool) | | If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. |-<a name="bytebase-v1-SearchProjectsResponse"></a>+<a name="bytebase-v1-DeleteSchemaGroupRequest"></a>-### SearchProjectsResponse+### DeleteSchemaGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| projects | [Project](#bytebase-v1-Project) | repeated | The projects from the specified request. |+| name | [string](#string) | | The name of the schema group to delete. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |-<a name="bytebase-v1-SetIamPolicyRequest"></a>+<a name="bytebase-v1-DeploymentConfig"></a>-### SetIamPolicyRequest+### DeploymentConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The name of the project to set the IAM policy. Format: projects/{project} |-| policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |+| name | [string](#string) | | The name of the resource. Format: projects/{project}/deploymentConfigs/default. |+| title | [string](#string) | | The title of the deployment config. |+| schedule | [Schedule](#bytebase-v1-Schedule) | | |-<a name="bytebase-v1-TestWebhookRequest"></a>+<a name="bytebase-v1-DeploymentSpec"></a>-### TestWebhookRequest+### DeploymentSpec| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The name of the project which owns the webhook to test. Format: projects/{project} |-| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to test. Identified by its url. |+| label_selector | [LabelSelector](#bytebase-v1-LabelSelector) | | |-<a name="bytebase-v1-TestWebhookResponse"></a>+<a name="bytebase-v1-GetDatabaseGroupRequest"></a>-### TestWebhookResponse+### GetDatabaseGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| error | [string](#string) | | The result of the test, empty if the test is successful. |+| name | [string](#string) | | The name of the database group to retrieve. Format: projects/{project}/databaseGroups/{databaseGroup} |+| view | [DatabaseGroupView](#bytebase-v1-DatabaseGroupView) | | The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. |-<a name="bytebase-v1-UndeleteProjectRequest"></a>+<a name="bytebase-v1-GetDeploymentConfigRequest"></a>-### UndeleteProjectRequest+### GetDeploymentConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted project. Format: projects/{project} |+| name | [string](#string) | | The name of the resource. Format: projects/{project}/deploymentConfigs/default. |-<a name="bytebase-v1-UpdateDatabaseGroupRequest"></a>+<a name="bytebase-v1-GetIamPolicyRequest"></a>-### UpdateDatabaseGroupRequest+### GetIamPolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to update.--The database group's `name` field is used to identify the database group to update. Format: projects/{project}/databaseGroups/{databaseGroup} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| project | [string](#string) | | The name of the project to get the IAM policy. Format: projects/{project} |-<a name="bytebase-v1-UpdateDeploymentConfigRequest"></a>+<a name="bytebase-v1-GetProjectProtectionRulesRequest"></a>-### UpdateDeploymentConfigRequest+### GetProjectProtectionRulesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| config | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | | |+| name | [string](#string) | | The name of the protection rules. Format: projects/{project}/protectionRules |-<a name="bytebase-v1-UpdateProjectProtectionRulesRequest"></a>+<a name="bytebase-v1-GetProjectRequest"></a>-### UpdateProjectProtectionRulesRequest+### GetProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| protection_rules | [ProtectionRules](#bytebase-v1-ProtectionRules) | | |+| name | [string](#string) | | The name of the project to retrieve. Format: projects/{project} |-<a name="bytebase-v1-UpdateProjectRequest"></a>+<a name="bytebase-v1-GetSchemaGroupRequest"></a>-### UpdateProjectRequest+### GetSchemaGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [Project](#bytebase-v1-Project) | | The project to update.--The project's `name` field is used to identify the project to update. Format: projects/{project} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| name | [string](#string) | | The name of the database group to retrieve. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |+| view | [SchemaGroupView](#bytebase-v1-SchemaGroupView) | | The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC. |-<a name="bytebase-v1-UpdateSchemaGroupRequest"></a>+<a name="bytebase-v1-Label"></a>-### UpdateSchemaGroupRequest+### Label| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema_group | [SchemaGroup](#bytebase-v1-SchemaGroup) | | The schema group to update.--The schema group's `name` field is used to identify the schema group to update. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| value | [string](#string) | | |+| color | [string](#string) | | |+| group | [string](#string) | | |-<a name="bytebase-v1-UpdateWebhookRequest"></a>+<a name="bytebase-v1-LabelSelector"></a>-### UpdateWebhookRequest+### LabelSelector| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to modify. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| match_expressions | [LabelSelectorRequirement](#bytebase-v1-LabelSelectorRequirement) | repeated | |-<a name="bytebase-v1-Webhook"></a>+<a name="bytebase-v1-LabelSelectorRequirement"></a>-### Webhook+### LabelSelectorRequirement| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | name is the name of the webhook, generated by the server. format: projects/{project}/webhooks/{webhook} |-| type | [Webhook.Type](#bytebase-v1-Webhook-Type) | | type is the type of the webhook. |-| title | [string](#string) | | title is the title of the webhook. |-| url | [string](#string) | | url is the url of the webhook, should be unique within the project. |-| notification_types | [Activity.Type](#bytebase-v1-Activity-Type) | repeated | notification_types is the list of activities types that the webhook is interested in. Bytebase will only send notifications to the webhook if the activity type is in the list. It should not be empty, and shoule be a subset of the following: - TYPE_ISSUE_CREATED - TYPE_ISSUE_STATUS_UPDATE - TYPE_ISSUE_PIPELINE_STAGE_UPDATE - TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE - TYPE_ISSUE_FIELD_UPDATE - TYPE_ISSUE_COMMENT_CREAT |+| key | [string](#string) | | |+| operator | [OperatorType](#bytebase-v1-OperatorType) | | |+| values | [string](#string) | repeated | |-+<a name="bytebase-v1-ListDatabaseGroupsRequest"></a>-<a name="bytebase-v1-Activity-Type"></a>+### ListDatabaseGroupsRequest-### Activity.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| TYPE_NOTIFY_ISSUE_APPROVED | 23 | Notifications via webhooks.+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent resource whose database groups are to be listed. Format: projects/{project} Using "projects/-" will list database groups across all projects. |+| page_size | [int32](#int32) | | Not used. The maximum number of anomalies to return. The service may return fewer than this value. If unspecified, at most 50 anomalies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListDatabaseGroups` call. Provide this to retrieve the subsequent page.-TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification. |-| TYPE_NOTIFY_PIPELINE_ROLLOUT | 24 | TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification. |-| TYPE_ISSUE_CREATE | 1 | Issue related activity types.+When paginating, all other parameters provided to `ListDatabaseGroups` must match the call that provided the page token. |-TYPE_ISSUE_CREATE represents creating an issue. |-| TYPE_ISSUE_COMMENT_CREATE | 2 | TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue. |-| TYPE_ISSUE_FIELD_UPDATE | 3 | TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, assignee, etc. |-| TYPE_ISSUE_STATUS_UPDATE | 4 | TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now. |-| TYPE_ISSUE_APPROVAL_NOTIFY | 21 | TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |-| TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE | 5 | TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |-| TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE | 6 | TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |-| TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE | 22 | TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED. |-| TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE | 8 | TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |-| TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 9 | TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |-| TYPE_MEMBER_CREATE | 10 | Member related activity types.-TYPE_MEMBER_CREATE represents creating a members. |-| TYPE_MEMBER_ROLE_UPDATE | 11 | TYPE_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER. |-| TYPE_MEMBER_ACTIVATE | 12 | TYPE_MEMBER_ACTIVATE represents activating a deactivated member. |-| TYPE_MEMBER_DEACTIVATE | 13 | TYPE_MEMBER_DEACTIVATE represents deactivating an active member. |-| TYPE_PROJECT_REPOSITORY_PUSH | 14 | Project related activity types.-TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |-| TYPE_PROJECT_DATABASE_TRANSFER | 15 | TYPE_PROJECT_DATABASE_TRANFER represents transfering the database from one project to another. |-| TYPE_PROJECT_MEMBER_CREATE | 16 | TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project. |-| TYPE_PROJECT_MEMBER_DELETE | 17 | TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project. |-| TYPE_SQL_EDITOR_QUERY | 19 | SQL Editor related activity types. TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor. |-<a name="bytebase-v1-DatabaseGroupView"></a>+<a name="bytebase-v1-ListDatabaseGroupsResponse"></a>-### DatabaseGroupView+### ListDatabaseGroupsResponse-| Name | Number | Description |-| ---- | ------ | ----------- |-| DATABASE_GROUP_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |-| DATABASE_GROUP_VIEW_BASIC | 1 | Include basic information about the database group, but exclude the list of matched databases and unmatched databases. |-| DATABASE_GROUP_VIEW_FULL | 2 | Include everything. |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| database_groups | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | repeated | database_groups is the list of database groups. |+| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-OperatorType"></a>-### OperatorType-| Name | Number | Description |-| ---- | ------ | ----------- |-| OPERATOR_TYPE_UNSPECIFIED | 0 | The operator is not specified. |-| OPERATOR_TYPE_IN | 1 | The operator is "In". |-| OPERATOR_TYPE_EXISTS | 2 | The operator is "Exists". |-| OPERATOR_TYPE_NOT_IN | 3 | The operator is "Not In". |+<a name="bytebase-v1-ListProjectsRequest"></a>+### ListProjectsRequest-<a name="bytebase-v1-ProtectionRule-BranchSource"></a>-### ProtectionRule.BranchSource+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| page_size | [int32](#int32) | | The maximum number of projects to return. The service may return fewer than this value. If unspecified, at most 50 projects will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListProjects` call. Provide this to retrieve the subsequent page.-| Name | Number | Description |-| ---- | ------ | ----------- |-| BRANCH_SOURCE_UNSPECIFIED | 0 | |-| DATABASE | 1 | |+When paginating, all other parameters provided to `ListProjects` must match the call that provided the page token. |+| show_deleted | [bool](#bool) | | Show deleted projects if specified. |-<a name="bytebase-v1-ProtectionRule-Target"></a>-### ProtectionRule.Target-The type of target.-| Name | Number | Description |-| ---- | ------ | ----------- |-| PROTECTION_TARGET_UNSPECIFIED | 0 | |-| BRANCH | 1 | |-| CHANGELIST | 2 | |+<a name="bytebase-v1-ListProjectsResponse"></a>+### ListProjectsResponse-<a name="bytebase-v1-SchemaGroupView"></a>-### SchemaGroupView+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| projects | [Project](#bytebase-v1-Project) | repeated | The projects from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-| Name | Number | Description |-| ---- | ------ | ----------- |-| SCHEMA_GROUP_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |-| SCHEMA_GROUP_VIEW_BASIC | 1 | Include basic information about the schema group, but exclude the list of matched tables and unmatched tables. |-| SCHEMA_GROUP_VIEW_FULL | 2 | Include everything. |-<a name="bytebase-v1-TenantMode"></a>-### TenantMode+<a name="bytebase-v1-ListSchemaGroupsRequest"></a>-| Name | Number | Description |-| ---- | ------ | ----------- |-| TENANT_MODE_UNSPECIFIED | 0 | |-| TENANT_MODE_DISABLED | 1 | |-| TENANT_MODE_ENABLED | 2 | |+### ListSchemaGroupsRequest-<a name="bytebase-v1-Webhook-Type"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent resource whose schema groups are to be listed. Format: projects/{project}/schemaGroups/{schemaGroup} |+| page_size | [int32](#int32) | | Not used. The maximum number of anomalies to return. The service may return fewer than this value. If unspecified, at most 50 anomalies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListSchemaGroups` call. Provide this to retrieve the subsequent page.-### Webhook.Type+When paginating, all other parameters provided to `ListSchemaGroups` must match the call that provided the page token. |-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| TYPE_SLACK | 1 | |-| TYPE_DISCORD | 2 | |-| TYPE_TEAMS | 3 | |-| TYPE_DINGTALK | 4 | |-| TYPE_FEISHU | 5 | |-| TYPE_WECOM | 6 | |-| TYPE_CUSTOM | 7 | |-<a name="bytebase-v1-Workflow"></a>-### Workflow+<a name="bytebase-v1-ListSchemaGroupsResponse"></a>+### ListSchemaGroupsResponse-| Name | Number | Description |-| ---- | ------ | ----------- |-| WORKFLOW_UNSPECIFIED | 0 | |-| UI | 1 | |-| VCS | 2 | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| schema_groups | [SchemaGroup](#bytebase-v1-SchemaGroup) | repeated | schema_groups is the list of schema groups. |+| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |--<a name="bytebase-v1-ProjectService"></a>-### ProjectService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetProject | [GetProjectRequest](#bytebase-v1-GetProjectRequest) | [Project](#bytebase-v1-Project) | |-| ListProjects | [ListProjectsRequest](#bytebase-v1-ListProjectsRequest) | [ListProjectsResponse](#bytebase-v1-ListProjectsResponse) | |-| SearchProjects | [SearchProjectsRequest](#bytebase-v1-SearchProjectsRequest) | [SearchProjectsResponse](#bytebase-v1-SearchProjectsResponse) | |-| CreateProject | [CreateProjectRequest](#bytebase-v1-CreateProjectRequest) | [Project](#bytebase-v1-Project) | |-| UpdateProject | [UpdateProjectRequest](#bytebase-v1-UpdateProjectRequest) | [Project](#bytebase-v1-Project) | |-| DeleteProject | [DeleteProjectRequest](#bytebase-v1-DeleteProjectRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteProject | [UndeleteProjectRequest](#bytebase-v1-UndeleteProjectRequest) | [Project](#bytebase-v1-Project) | |-| GetIamPolicy | [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |-| BatchGetIamPolicy | [BatchGetIamPolicyRequest](#bytebase-v1-BatchGetIamPolicyRequest) | [BatchGetIamPolicyResponse](#bytebase-v1-BatchGetIamPolicyResponse) | |-| SetIamPolicy | [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |-| GetDeploymentConfig | [GetDeploymentConfigRequest](#bytebase-v1-GetDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | |-| UpdateDeploymentConfig | [UpdateDeploymentConfigRequest](#bytebase-v1-UpdateDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | |-| AddWebhook | [AddWebhookRequest](#bytebase-v1-AddWebhookRequest) | [Project](#bytebase-v1-Project) | |-| UpdateWebhook | [UpdateWebhookRequest](#bytebase-v1-UpdateWebhookRequest) | [Project](#bytebase-v1-Project) | |-| RemoveWebhook | [RemoveWebhookRequest](#bytebase-v1-RemoveWebhookRequest) | [Project](#bytebase-v1-Project) | |-| TestWebhook | [TestWebhookRequest](#bytebase-v1-TestWebhookRequest) | [TestWebhookResponse](#bytebase-v1-TestWebhookResponse) | |-| ListDatabaseGroups | [ListDatabaseGroupsRequest](#bytebase-v1-ListDatabaseGroupsRequest) | [ListDatabaseGroupsResponse](#bytebase-v1-ListDatabaseGroupsResponse) | |-| GetDatabaseGroup | [GetDatabaseGroupRequest](#bytebase-v1-GetDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |-| CreateDatabaseGroup | [CreateDatabaseGroupRequest](#bytebase-v1-CreateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |-| UpdateDatabaseGroup | [UpdateDatabaseGroupRequest](#bytebase-v1-UpdateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |-| DeleteDatabaseGroup | [DeleteDatabaseGroupRequest](#bytebase-v1-DeleteDatabaseGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| ListSchemaGroups | [ListSchemaGroupsRequest](#bytebase-v1-ListSchemaGroupsRequest) | [ListSchemaGroupsResponse](#bytebase-v1-ListSchemaGroupsResponse) | |-| GetSchemaGroup | [GetSchemaGroupRequest](#bytebase-v1-GetSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |-| CreateSchemaGroup | [CreateSchemaGroupRequest](#bytebase-v1-CreateSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |-| UpdateSchemaGroup | [UpdateSchemaGroupRequest](#bytebase-v1-UpdateSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |-| DeleteSchemaGroup | [DeleteSchemaGroupRequest](#bytebase-v1-DeleteSchemaGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| GetProjectProtectionRules | [GetProjectProtectionRulesRequest](#bytebase-v1-GetProjectProtectionRulesRequest) | [ProtectionRules](#bytebase-v1-ProtectionRules) | |-| UpdateProjectProtectionRules | [UpdateProjectProtectionRulesRequest](#bytebase-v1-UpdateProjectProtectionRulesRequest) | [ProtectionRules](#bytebase-v1-ProtectionRules) | |+<a name="bytebase-v1-Project"></a>-+### Project-<a name="v1_risk_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the project. Format: projects/{project} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | The title or name of a project. It's not unique within the workspace. |+| key | [string](#string) | | The key is a short and upper-case identifier for a project. It's unique within the workspace. |+| workflow | [Workflow](#bytebase-v1-Workflow) | | |+| tenant_mode | [TenantMode](#bytebase-v1-TenantMode) | | |+| webhooks | [Webhook](#bytebase-v1-Webhook) | repeated | |+| data_classification_config_id | [string](#string) | | |+| issue_labels | [Label](#bytebase-v1-Label) | repeated | |+| force_issue_labels | [bool](#bool) | | |-## v1/risk_service.proto-<a name="bytebase-v1-CreateRiskRequest"></a>-### CreateRiskRequest++<a name="bytebase-v1-ProtectionRule"></a>++### ProtectionRule| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| risk | [Risk](#bytebase-v1-Risk) | | The risk to create. |+| id | [string](#string) | | A unique identifier for a node in UUID format. |+| target | [ProtectionRule.Target](#bytebase-v1-ProtectionRule-Target) | | |+| name_filter | [string](#string) | | The name of the branch/changelist or wildcard. |+| allowed_roles | [string](#string) | repeated | The roles allowed to create branches or changelists, rebase branches, delete branches. Format: roles/projectOwner. |+| branch_source | [ProtectionRule.BranchSource](#bytebase-v1-ProtectionRule-BranchSource) | | |-<a name="bytebase-v1-DeleteRiskRequest"></a>+<a name="bytebase-v1-ProtectionRules"></a>-### DeleteRiskRequest+### ProtectionRules| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the risk to delete. Format: risks/{risk} |+| name | [string](#string) | | The name of the protection rules. Format: projects/{project}/protectionRules |+| rules | [ProtectionRule](#bytebase-v1-ProtectionRule) | repeated | |-<a name="bytebase-v1-ListRisksRequest"></a>+<a name="bytebase-v1-RemoveWebhookRequest"></a>-### ListRisksRequest+### RemoveWebhookRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of risks to return. The service may return fewer than this value. If unspecified, at most 50 risks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListRisks` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `LiskRisks` must match the call that provided the page token. |+| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to remove. Identified by its url. |-<a name="bytebase-v1-ListRisksResponse"></a>+<a name="bytebase-v1-Schedule"></a>-### ListRisksResponse+### Schedule| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| risks | [Risk](#bytebase-v1-Risk) | repeated | |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| deployments | [ScheduleDeployment](#bytebase-v1-ScheduleDeployment) | repeated | |-<a name="bytebase-v1-Risk"></a>+<a name="bytebase-v1-ScheduleDeployment"></a>-### Risk+### ScheduleDeployment| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: risks/{risk} |-| uid | [string](#string) | | system-generated unique identifier. |-| source | [Risk.Source](#bytebase-v1-Risk-Source) | | |-| title | [string](#string) | | |-| level | [int32](#int32) | | |-| active | [bool](#bool) | | |-| condition | [google.type.Expr](#google-type-Expr) | | |+| title | [string](#string) | | The title of the deployment (stage) in a schedule. |+| spec | [DeploymentSpec](#bytebase-v1-DeploymentSpec) | | |-<a name="bytebase-v1-UpdateRiskRequest"></a>+<a name="bytebase-v1-SchemaGroup"></a>-### UpdateRiskRequest+### SchemaGroup| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| risk | [Risk](#bytebase-v1-Risk) | | The risk to update.--The risk's `name` field is used to identify the risk to update. Format: risks/{risk} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-+| name | [string](#string) | | The name of the schema group. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |+| table_expr | [google.type.Expr](#google-type-Expr) | | The table condition that is associated with this schema group. The table_placeholder in the sheet script will be rendered to the actual table name. |+| table_placeholder | [string](#string) | | The table placeholder used for rendering. For example, if set to "tbl", all the table name "tbl" in the SQL script will be rendered to the actual table name. |+| matched_tables | [SchemaGroup.Table](#bytebase-v1-SchemaGroup-Table) | repeated | The list of databases that match the database group condition. |+| unmatched_tables | [SchemaGroup.Table](#bytebase-v1-SchemaGroup-Table) | repeated | The list of databases that match the database group condition. |--<a name="bytebase-v1-Risk-Source"></a>+<a name="bytebase-v1-SchemaGroup-Table"></a>-### Risk.Source+### SchemaGroup.Table+In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.+Its keyword will be {{SCHEMA}}.+All the expressions will be used to filter the schema objects in DatabaseSchema.-| Name | Number | Description |-| ---- | ------ | ----------- |-| SOURCE_UNSPECIFIED | 0 | |-| DDL | 1 | |-| DML | 2 | |-| CREATE_DATABASE | 3 | |-| REQUEST_QUERY | 4 | |-| REQUEST_EXPORT | 5 | |-| DATA_EXPORT | 6 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| database | [string](#string) | | The resource name of the database. Format: instances/{instance}/databases/{database} |+| schema | [string](#string) | | |+| table | [string](#string) | | |---<a name="bytebase-v1-RiskService"></a>-### RiskService+<a name="bytebase-v1-SearchProjectsRequest"></a>+### SearchProjectsRequest-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| ListRisks | [ListRisksRequest](#bytebase-v1-ListRisksRequest) | [ListRisksResponse](#bytebase-v1-ListRisksResponse) | |-| CreateRisk | [CreateRiskRequest](#bytebase-v1-CreateRiskRequest) | [Risk](#bytebase-v1-Risk) | |-| UpdateRisk | [UpdateRiskRequest](#bytebase-v1-UpdateRiskRequest) | [Risk](#bytebase-v1-Risk) | |-| DeleteRisk | [DeleteRiskRequest](#bytebase-v1-DeleteRiskRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| show_deleted | [bool](#bool) | | Show deleted projects if specified. |-<a name="v1_role_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/role_service.proto-<a name="bytebase-v1-CreateRoleRequest"></a>+<a name="bytebase-v1-SearchProjectsResponse"></a>-### CreateRoleRequest+### SearchProjectsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [Role](#bytebase-v1-Role) | | |-| role_id | [string](#string) | | The ID to use for the role, which will become the final component of the role's resource name.--This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]/. |+| projects | [Project](#bytebase-v1-Project) | repeated | The projects from the specified request. |-<a name="bytebase-v1-DeleteRoleRequest"></a>+<a name="bytebase-v1-SetIamPolicyRequest"></a>-### DeleteRoleRequest+### SetIamPolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: roles/{role} |+| project | [string](#string) | | The name of the project to set the IAM policy. Format: projects/{project} |+| policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |-<a name="bytebase-v1-ListRolesRequest"></a>+<a name="bytebase-v1-TestWebhookRequest"></a>-### ListRolesRequest+### TestWebhookRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 50 reviews will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |+| project | [string](#string) | | The name of the project which owns the webhook to test. Format: projects/{project} |+| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to test. Identified by its url. |-<a name="bytebase-v1-ListRolesResponse"></a>+<a name="bytebase-v1-TestWebhookResponse"></a>-### ListRolesResponse+### TestWebhookResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| roles | [Role](#bytebase-v1-Role) | repeated | |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| error | [string](#string) | | The result of the test, empty if the test is successful. |-<a name="bytebase-v1-Role"></a>+<a name="bytebase-v1-UndeleteProjectRequest"></a>-### Role+### UndeleteProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: roles/{role} |-| title | [string](#string) | | |-| description | [string](#string) | | |-| permissions | [string](#string) | repeated | |+| name | [string](#string) | | The name of the deleted project. Format: projects/{project} |-<a name="bytebase-v1-UpdateRoleRequest"></a>+<a name="bytebase-v1-UpdateDatabaseGroupRequest"></a>-### UpdateRoleRequest+### UpdateDatabaseGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [Role](#bytebase-v1-Role) | | |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |+| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to update.+The database group's `name` field is used to identify the database group to update. Format: projects/{project}/databaseGroups/{databaseGroup} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |---+<a name="bytebase-v1-UpdateDeploymentConfigRequest"></a>+### UpdateDeploymentConfigRequest-<a name="bytebase-v1-RoleService"></a>-### RoleService+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| config | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | | |-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| ListRoles | [ListRolesRequest](#bytebase-v1-ListRolesRequest) | [ListRolesResponse](#bytebase-v1-ListRolesResponse) | |-| CreateRole | [CreateRoleRequest](#bytebase-v1-CreateRoleRequest) | [Role](#bytebase-v1-Role) | |-| UpdateRole | [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest) | [Role](#bytebase-v1-Role) | |-| DeleteRole | [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |--<a name="v1_rollout_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/rollout_service.proto+<a name="bytebase-v1-UpdateProjectProtectionRulesRequest"></a>+### UpdateProjectProtectionRulesRequest-<a name="bytebase-v1-BatchCancelTaskRunsRequest"></a>-### BatchCancelTaskRunsRequest+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| protection_rules | [ProtectionRules](#bytebase-v1-ProtectionRules) | | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the taskRuns. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. |-| task_runs | [string](#string) | repeated | The taskRuns to cancel. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-| reason | [string](#string) | | |+<a name="bytebase-v1-UpdateProjectRequest"></a>+### UpdateProjectRequest-<a name="bytebase-v1-BatchCancelTaskRunsResponse"></a>-### BatchCancelTaskRunsResponse+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| project | [Project](#bytebase-v1-Project) | | The project to update.+The project's `name` field is used to identify the project to update. Format: projects/{project} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-BatchRunTasksRequest"></a>+<a name="bytebase-v1-UpdateSchemaGroupRequest"></a>-### BatchRunTasksRequest+### UpdateSchemaGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |-| tasks | [string](#string) | repeated | The tasks to run. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| reason | [string](#string) | | |+| schema_group | [SchemaGroup](#bytebase-v1-SchemaGroup) | | The schema group to update.+The schema group's `name` field is used to identify the schema group to update. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-BatchRunTasksResponse"></a>-### BatchRunTasksResponse+<a name="bytebase-v1-UpdateWebhookRequest"></a>+### UpdateWebhookRequest+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to modify. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-BatchSkipTasksRequest"></a>-### BatchSkipTasksRequest+<a name="bytebase-v1-Webhook"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |-| tasks | [string](#string) | repeated | The tasks to skip. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| reason | [string](#string) | | |+### Webhook+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | name is the name of the webhook, generated by the server. format: projects/{project}/webhooks/{webhook} |+| type | [Webhook.Type](#bytebase-v1-Webhook-Type) | | type is the type of the webhook. |+| title | [string](#string) | | title is the title of the webhook. |+| url | [string](#string) | | url is the url of the webhook, should be unique within the project. |+| notification_types | [Activity.Type](#bytebase-v1-Activity-Type) | repeated | notification_types is the list of activities types that the webhook is interested in. Bytebase will only send notifications to the webhook if the activity type is in the list. It should not be empty, and shoule be a subset of the following: - TYPE_ISSUE_CREATED - TYPE_ISSUE_STATUS_UPDATE - TYPE_ISSUE_PIPELINE_STAGE_UPDATE - TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE - TYPE_ISSUE_FIELD_UPDATE - TYPE_ISSUE_COMMENT_CREAT |-<a name="bytebase-v1-BatchSkipTasksResponse"></a>-### BatchSkipTasksResponse++<a name="bytebase-v1-Activity-Type"></a>+### Activity.Type+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| TYPE_NOTIFY_ISSUE_APPROVED | 23 | Notifications via webhooks.-<a name="bytebase-v1-CreatePlanRequest"></a>+TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification. |+| TYPE_NOTIFY_PIPELINE_ROLLOUT | 24 | TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification. |+| TYPE_ISSUE_CREATE | 1 | Issue related activity types.-### CreatePlanRequest+TYPE_ISSUE_CREATE represents creating an issue. |+| TYPE_ISSUE_COMMENT_CREATE | 2 | TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue. |+| TYPE_ISSUE_FIELD_UPDATE | 3 | TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, assignee, etc. |+| TYPE_ISSUE_STATUS_UPDATE | 4 | TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now. |+| TYPE_ISSUE_APPROVAL_NOTIFY | 21 | TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |+| TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE | 5 | TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |+| TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE | 6 | TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |+| TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE | 22 | TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED. |+| TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE | 8 | TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |+| TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 9 | TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |+| TYPE_MEMBER_CREATE | 10 | Member related activity types.+TYPE_MEMBER_CREATE represents creating a members. |+| TYPE_MEMBER_ROLE_UPDATE | 11 | TYPE_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER. |+| TYPE_MEMBER_ACTIVATE | 12 | TYPE_MEMBER_ACTIVATE represents activating a deactivated member. |+| TYPE_MEMBER_DEACTIVATE | 13 | TYPE_MEMBER_DEACTIVATE represents deactivating an active member. |+| TYPE_PROJECT_REPOSITORY_PUSH | 14 | Project related activity types.++TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |+| TYPE_PROJECT_DATABASE_TRANSFER | 15 | TYPE_PROJECT_DATABASE_TRANFER represents transfering the database from one project to another. |+| TYPE_PROJECT_MEMBER_CREATE | 16 | TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project. |+| TYPE_PROJECT_MEMBER_DELETE | 17 | TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project. |+| TYPE_SQL_EDITOR_QUERY | 19 | SQL Editor related activity types. TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor. |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent project where this plan will be created. Format: projects/{project} |-| plan | [Plan](#bytebase-v1-Plan) | | The plan to create. |+<a name="bytebase-v1-DatabaseGroupView"></a>+### DatabaseGroupView+| Name | Number | Description |+| ---- | ------ | ----------- |+| DATABASE_GROUP_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |+| DATABASE_GROUP_VIEW_BASIC | 1 | Include basic information about the database group, but exclude the list of matched databases and unmatched databases. |+| DATABASE_GROUP_VIEW_FULL | 2 | Include everything. |-<a name="bytebase-v1-CreateRolloutRequest"></a>-### CreateRolloutRequest+<a name="bytebase-v1-OperatorType"></a>+### OperatorType-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent project where this rollout will be created. Format: projects/{project} |-| rollout | [Rollout](#bytebase-v1-Rollout) | | The rollout to create. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| OPERATOR_TYPE_UNSPECIFIED | 0 | The operator is not specified. |+| OPERATOR_TYPE_IN | 1 | The operator is "In". |+| OPERATOR_TYPE_EXISTS | 2 | The operator is "Exists". |+| OPERATOR_TYPE_NOT_IN | 3 | The operator is "Not In". |+<a name="bytebase-v1-ProtectionRule-BranchSource"></a>+### ProtectionRule.BranchSource-<a name="bytebase-v1-GetPlanRequest"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| BRANCH_SOURCE_UNSPECIFIED | 0 | |+| DATABASE | 1 | |-### GetPlanRequest+<a name="bytebase-v1-ProtectionRule-Target"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the plan to retrieve. Format: projects/{project}/plans/{plan} |+### ProtectionRule.Target+The type of target.+| Name | Number | Description |+| ---- | ------ | ----------- |+| PROTECTION_TARGET_UNSPECIFIED | 0 | |+| BRANCH | 1 | |+| CHANGELIST | 2 | |+<a name="bytebase-v1-SchemaGroupView"></a>+### SchemaGroupView-<a name="bytebase-v1-GetRolloutRequest"></a>-### GetRolloutRequest+| Name | Number | Description |+| ---- | ------ | ----------- |+| SCHEMA_GROUP_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |+| SCHEMA_GROUP_VIEW_BASIC | 1 | Include basic information about the schema group, but exclude the list of matched tables and unmatched tables. |+| SCHEMA_GROUP_VIEW_FULL | 2 | Include everything. |++++<a name="bytebase-v1-TenantMode"></a>++### TenantMode+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TENANT_MODE_UNSPECIFIED | 0 | |+| TENANT_MODE_DISABLED | 1 | |+| TENANT_MODE_ENABLED | 2 | |++++<a name="bytebase-v1-Webhook-Type"></a>++### Webhook.Type+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| TYPE_SLACK | 1 | |+| TYPE_DISCORD | 2 | |+| TYPE_TEAMS | 3 | |+| TYPE_DINGTALK | 4 | |+| TYPE_FEISHU | 5 | |+| TYPE_WECOM | 6 | |+| TYPE_CUSTOM | 7 | |++++<a name="bytebase-v1-Workflow"></a>++### Workflow+++| Name | Number | Description |+| ---- | ------ | ----------- |+| WORKFLOW_UNSPECIFIED | 0 | |+| UI | 1 | |+| VCS | 2 | |++++++++<a name="bytebase-v1-ProjectService"></a>++### ProjectService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetProject | [GetProjectRequest](#bytebase-v1-GetProjectRequest) | [Project](#bytebase-v1-Project) | |+| ListProjects | [ListProjectsRequest](#bytebase-v1-ListProjectsRequest) | [ListProjectsResponse](#bytebase-v1-ListProjectsResponse) | |+| SearchProjects | [SearchProjectsRequest](#bytebase-v1-SearchProjectsRequest) | [SearchProjectsResponse](#bytebase-v1-SearchProjectsResponse) | |+| CreateProject | [CreateProjectRequest](#bytebase-v1-CreateProjectRequest) | [Project](#bytebase-v1-Project) | |+| UpdateProject | [UpdateProjectRequest](#bytebase-v1-UpdateProjectRequest) | [Project](#bytebase-v1-Project) | |+| DeleteProject | [DeleteProjectRequest](#bytebase-v1-DeleteProjectRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteProject | [UndeleteProjectRequest](#bytebase-v1-UndeleteProjectRequest) | [Project](#bytebase-v1-Project) | |+| GetIamPolicy | [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |+| BatchGetIamPolicy | [BatchGetIamPolicyRequest](#bytebase-v1-BatchGetIamPolicyRequest) | [BatchGetIamPolicyResponse](#bytebase-v1-BatchGetIamPolicyResponse) | |+| SetIamPolicy | [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |+| GetDeploymentConfig | [GetDeploymentConfigRequest](#bytebase-v1-GetDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | |+| UpdateDeploymentConfig | [UpdateDeploymentConfigRequest](#bytebase-v1-UpdateDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | |+| AddWebhook | [AddWebhookRequest](#bytebase-v1-AddWebhookRequest) | [Project](#bytebase-v1-Project) | |+| UpdateWebhook | [UpdateWebhookRequest](#bytebase-v1-UpdateWebhookRequest) | [Project](#bytebase-v1-Project) | |+| RemoveWebhook | [RemoveWebhookRequest](#bytebase-v1-RemoveWebhookRequest) | [Project](#bytebase-v1-Project) | |+| TestWebhook | [TestWebhookRequest](#bytebase-v1-TestWebhookRequest) | [TestWebhookResponse](#bytebase-v1-TestWebhookResponse) | |+| ListDatabaseGroups | [ListDatabaseGroupsRequest](#bytebase-v1-ListDatabaseGroupsRequest) | [ListDatabaseGroupsResponse](#bytebase-v1-ListDatabaseGroupsResponse) | |+| GetDatabaseGroup | [GetDatabaseGroupRequest](#bytebase-v1-GetDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |+| CreateDatabaseGroup | [CreateDatabaseGroupRequest](#bytebase-v1-CreateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |+| UpdateDatabaseGroup | [UpdateDatabaseGroupRequest](#bytebase-v1-UpdateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |+| DeleteDatabaseGroup | [DeleteDatabaseGroupRequest](#bytebase-v1-DeleteDatabaseGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| ListSchemaGroups | [ListSchemaGroupsRequest](#bytebase-v1-ListSchemaGroupsRequest) | [ListSchemaGroupsResponse](#bytebase-v1-ListSchemaGroupsResponse) | |+| GetSchemaGroup | [GetSchemaGroupRequest](#bytebase-v1-GetSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |+| CreateSchemaGroup | [CreateSchemaGroupRequest](#bytebase-v1-CreateSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |+| UpdateSchemaGroup | [UpdateSchemaGroupRequest](#bytebase-v1-UpdateSchemaGroupRequest) | [SchemaGroup](#bytebase-v1-SchemaGroup) | |+| DeleteSchemaGroup | [DeleteSchemaGroupRequest](#bytebase-v1-DeleteSchemaGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| GetProjectProtectionRules | [GetProjectProtectionRulesRequest](#bytebase-v1-GetProjectProtectionRulesRequest) | [ProtectionRules](#bytebase-v1-ProtectionRules) | |+| UpdateProjectProtectionRules | [UpdateProjectProtectionRulesRequest](#bytebase-v1-UpdateProjectProtectionRulesRequest) | [ProtectionRules](#bytebase-v1-ProtectionRules) | |++++++<a name="v1_risk_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/risk_service.proto++++<a name="bytebase-v1-CreateRiskRequest"></a>++### CreateRiskRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the rollout to retrieve. Format: projects/{project}/rollouts/{rollout} |+| risk | [Risk](#bytebase-v1-Risk) | | The risk to create. |-<a name="bytebase-v1-GetTaskRunLogRequest"></a>+<a name="bytebase-v1-DeleteRiskRequest"></a>-### GetTaskRunLogRequest+### DeleteRiskRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| name | [string](#string) | | The name of the risk to delete. Format: risks/{risk} |-<a name="bytebase-v1-ListPlanCheckRunsRequest"></a>+<a name="bytebase-v1-ListRisksRequest"></a>-### ListPlanCheckRunsRequest+### ListRisksRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plan check runs. Format: projects/{project}/plans/{plan} |-| page_size | [int32](#int32) | | The maximum number of plan check runs to return. The service may return fewer than this value. If unspecified, at most 50 plans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListPlanCheckRuns` call. Provide this to retrieve the subsequent page.+| page_size | [int32](#int32) | | The maximum number of risks to return. The service may return fewer than this value. If unspecified, at most 50 risks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListRisks` call. Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListPlanCheckRuns` must match the call that provided the page token. |+When paginating, all other parameters provided to `LiskRisks` must match the call that provided the page token. |-<a name="bytebase-v1-ListPlanCheckRunsResponse"></a>+<a name="bytebase-v1-ListRisksResponse"></a>-### ListPlanCheckRunsResponse+### ListRisksResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| plan_check_runs | [PlanCheckRun](#bytebase-v1-PlanCheckRun) | repeated | The plan check runs from the specified request. |+| risks | [Risk](#bytebase-v1-Risk) | repeated | || next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |@@ -7573,351 +7689,377 @@ When paginating, all other parameters provided to `ListPlanCheckRuns` must match-<a name="bytebase-v1-ListPlansRequest"></a>+<a name="bytebase-v1-Risk"></a>-### ListPlansRequest+### Risk| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project} Use "projects/-" to list all plans from all projects. |-| page_size | [int32](#int32) | | The maximum number of plans to return. The service may return fewer than this value. If unspecified, at most 50 plans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListPlans` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListPlans` must match the call that provided the page token. |+| name | [string](#string) | | Format: risks/{risk} |+| uid | [string](#string) | | system-generated unique identifier. |+| source | [Risk.Source](#bytebase-v1-Risk-Source) | | |+| title | [string](#string) | | |+| level | [int32](#int32) | | |+| active | [bool](#bool) | | |+| condition | [google.type.Expr](#google-type-Expr) | | |-<a name="bytebase-v1-ListPlansResponse"></a>+<a name="bytebase-v1-UpdateRiskRequest"></a>-### ListPlansResponse+### UpdateRiskRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| plans | [Plan](#bytebase-v1-Plan) | repeated | The plans from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| risk | [Risk](#bytebase-v1-Risk) | | The risk to update.++The risk's `name` field is used to identify the risk to update. Format: risks/{risk} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |++++<a name="bytebase-v1-Risk-Source"></a>++### Risk.Source+++| Name | Number | Description |+| ---- | ------ | ----------- |+| SOURCE_UNSPECIFIED | 0 | |+| DDL | 1 | |+| DML | 2 | |+| CREATE_DATABASE | 3 | |+| REQUEST_QUERY | 4 | |+| REQUEST_EXPORT | 5 | |+| DATA_EXPORT | 6 | |++++++++<a name="bytebase-v1-RiskService"></a>++### RiskService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListRisks | [ListRisksRequest](#bytebase-v1-ListRisksRequest) | [ListRisksResponse](#bytebase-v1-ListRisksResponse) | |+| CreateRisk | [CreateRiskRequest](#bytebase-v1-CreateRiskRequest) | [Risk](#bytebase-v1-Risk) | |+| UpdateRisk | [UpdateRiskRequest](#bytebase-v1-UpdateRiskRequest) | [Risk](#bytebase-v1-Risk) | |+| DeleteRisk | [DeleteRiskRequest](#bytebase-v1-DeleteRiskRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |++++++<a name="v1_role_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/role_service.proto-<a name="bytebase-v1-ListTaskRunsRequest"></a>-### ListTaskRunsRequest++<a name="bytebase-v1-CreateRoleRequest"></a>++### CreateRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. |-| page_size | [int32](#int32) | | The maximum number of taskRuns to return. The service may return fewer than this value. If unspecified, at most 50 taskRuns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListRolloutTaskRuns` call. Provide this to retrieve the subsequent page.+| role | [Role](#bytebase-v1-Role) | | |+| role_id | [string](#string) | | The ID to use for the role, which will become the final component of the role's resource name.-When paginating, all other parameters provided to `ListRolloutTaskRuns` must match the call that provided the page token. |+This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]/. |-<a name="bytebase-v1-ListTaskRunsResponse"></a>+<a name="bytebase-v1-DeleteRoleRequest"></a>-### ListTaskRunsResponse+### DeleteRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| task_runs | [TaskRun](#bytebase-v1-TaskRun) | repeated | The taskRuns from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | Format: roles/{role} |-<a name="bytebase-v1-Plan"></a>+<a name="bytebase-v1-ListRolesRequest"></a>-### Plan+### ListRolesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the plan. `plan` is a system generated ID. Format: projects/{project}/plans/{plan} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| issue | [string](#string) | | The resource name of the issue associated with this plan. Format: projects/{project}/issues/{issue} |-| title | [string](#string) | | |-| description | [string](#string) | | |-| steps | [Plan.Step](#bytebase-v1-Plan-Step) | repeated | |-| vcs_source | [Plan.VCSSource](#bytebase-v1-Plan-VCSSource) | | |-| creator | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| page_size | [int32](#int32) | | The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 50 reviews will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |-<a name="bytebase-v1-Plan-ChangeDatabaseConfig"></a>-### Plan.ChangeDatabaseConfig+<a name="bytebase-v1-ListRolesResponse"></a>++### ListRolesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. Format: projects/{project}/deploymentConfigs/default. The plan should have a single step and single spec for the deployment configuration type. |-| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |-| type | [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type) | | |-| schema_version | [string](#string) | | schema_version is parsed from VCS file name. It is automatically generated in the UI workflow. |-| rollback_enabled | [bool](#bool) | | If RollbackEnabled, build the RollbackSheetID of the task after the task is completed. |-| rollback_detail | [Plan.ChangeDatabaseConfig.RollbackDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-RollbackDetail) | optional | |-| ghost_flags | [Plan.ChangeDatabaseConfig.GhostFlagsEntry](#bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry) | repeated | |-| pre_update_backup_detail | [Plan.ChangeDatabaseConfig.PreUpdateBackupDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail) | optional | If set, a backup of the modified data will be created automatically before any changes are applied. |+| roles | [Role](#bytebase-v1-Role) | repeated | |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry"></a>+<a name="bytebase-v1-Role"></a>-### Plan.ChangeDatabaseConfig.GhostFlagsEntry+### Role| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| name | [string](#string) | | Format: roles/{role} |+| title | [string](#string) | | |+| description | [string](#string) | | |+| permissions | [string](#string) | repeated | |-<a name="bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail"></a>+<a name="bytebase-v1-UpdateRoleRequest"></a>++### UpdateRoleRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| role | [Role](#bytebase-v1-Role) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |+++++++++++++<a name="bytebase-v1-RoleService"></a>++### RoleService-### Plan.ChangeDatabaseConfig.PreUpdateBackupDetail+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListRoles | [ListRolesRequest](#bytebase-v1-ListRolesRequest) | [ListRolesResponse](#bytebase-v1-ListRolesResponse) | |+| CreateRole | [CreateRoleRequest](#bytebase-v1-CreateRoleRequest) | [Role](#bytebase-v1-Role) | |+| UpdateRole | [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest) | [Role](#bytebase-v1-Role) | |+| DeleteRole | [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The database for keeping the backup data. Format: instances/{instance}/databases/{database} |+<a name="v1_rollout_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/rollout_service.proto-<a name="bytebase-v1-Plan-ChangeDatabaseConfig-RollbackDetail"></a>+<a name="bytebase-v1-BatchCancelTaskRunsRequest"></a>-### Plan.ChangeDatabaseConfig.RollbackDetail+### BatchCancelTaskRunsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| rollback_from_task | [string](#string) | | rollback_from_task is the task from which the rollback SQL statement is generated for this task. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| rollback_from_issue | [string](#string) | | rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task. Format: projects/{project}/issues/{issue} |--+| parent | [string](#string) | | The name of the parent of the taskRuns. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. |+| task_runs | [string](#string) | repeated | The taskRuns to cancel. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| reason | [string](#string) | | |-<a name="bytebase-v1-Plan-CreateDatabaseConfig"></a>-### Plan.CreateDatabaseConfig+<a name="bytebase-v1-BatchCancelTaskRunsResponse"></a>+### BatchCancelTaskRunsResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the instance on which the database is created. Format: instances/{instance} |-| database | [string](#string) | | The name of the database to create. |-| table | [string](#string) | | table is the name of the table, if it is not empty, Bytebase should create a table after creating the database. For example, in MongoDB, it only creates the database when we first store data in that database. |-| character_set | [string](#string) | | character_set is the character set of the database. |-| collation | [string](#string) | | collation is the collation of the database. |-| cluster | [string](#string) | | cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". |-| owner | [string](#string) | | owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". |-| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |-| labels | [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry) | repeated | labels of the database. |-<a name="bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry"></a>+<a name="bytebase-v1-BatchRunTasksRequest"></a>-### Plan.CreateDatabaseConfig.LabelsEntry+### BatchRunTasksRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |--+| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| tasks | [string](#string) | repeated | The tasks to run. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| reason | [string](#string) | | |-<a name="bytebase-v1-Plan-ExportDataConfig"></a>-### Plan.ExportDataConfig+<a name="bytebase-v1-BatchRunTasksResponse"></a>+### BatchRunTasksResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name} |-| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |-| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The format of the exported file. |-| password | [string](#string) | optional | The zip password provide by users. Leave it empty if no needs to encrypt the zip file. |-<a name="bytebase-v1-Plan-Spec"></a>+<a name="bytebase-v1-BatchSkipTasksRequest"></a>-### Plan.Spec+### BatchSkipTasksRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | earliest_allowed_time the earliest execution time of the change. |-| id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. |-| depends_on_specs | [string](#string) | repeated | IDs of the specs that this spec depends on. Must be a subset of the specs in the same step. |-| create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | | |-| change_database_config | [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig) | | |-| export_data_config | [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig) | | |--+| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| tasks | [string](#string) | repeated | The tasks to skip. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| reason | [string](#string) | | |-<a name="bytebase-v1-Plan-Step"></a>-### Plan.Step+<a name="bytebase-v1-BatchSkipTasksResponse"></a>+### BatchSkipTasksResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| title | [string](#string) | | TODO: implement |-| specs | [Plan.Spec](#bytebase-v1-Plan-Spec) | repeated | |-<a name="bytebase-v1-Plan-VCSSource"></a>+<a name="bytebase-v1-CreateRolloutRequest"></a>-### Plan.VCSSource+### CreateRolloutRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| vcs_type | [VCSType](#bytebase-v1-VCSType) | | |-| vcs_connector | [string](#string) | | Optional. If present, we will update the pull request for rollout status. Format: projects/{project-ID}/vcsConnectors/{vcs-connector} |-| pull_request_url | [string](#string) | | |+| parent | [string](#string) | | The parent project where this rollout will be created. Format: projects/{project} |+| rollout | [Rollout](#bytebase-v1-Rollout) | | The rollout to create. |-<a name="bytebase-v1-PlanCheckRun"></a>+<a name="bytebase-v1-GetRolloutRequest"></a>-### PlanCheckRun+### GetRolloutRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} |-| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |-| type | [PlanCheckRun.Type](#bytebase-v1-PlanCheckRun-Type) | | |-| status | [PlanCheckRun.Status](#bytebase-v1-PlanCheckRun-Status) | | |-| target | [string](#string) | | Format: instances/{instance}/databases/{database} |-| sheet | [string](#string) | | Format: project/{project}/sheets/{sheet} |-| results | [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result) | repeated | |-| error | [string](#string) | | error is set if the Status is FAILED. |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| name | [string](#string) | | The name of the rollout to retrieve. Format: projects/{project}/rollouts/{rollout} |-<a name="bytebase-v1-PlanCheckRun-Result"></a>+<a name="bytebase-v1-GetTaskRunLogRequest"></a>-### PlanCheckRun.Result+### GetTaskRunLogRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| status | [PlanCheckRun.Result.Status](#bytebase-v1-PlanCheckRun-Result-Status) | | |-| title | [string](#string) | | |-| content | [string](#string) | | |-| code | [int32](#int32) | | |-| sql_summary_report | [PlanCheckRun.Result.SqlSummaryReport](#bytebase-v1-PlanCheckRun-Result-SqlSummaryReport) | | |-| sql_review_report | [PlanCheckRun.Result.SqlReviewReport](#bytebase-v1-PlanCheckRun-Result-SqlReviewReport) | | |+| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-<a name="bytebase-v1-PlanCheckRun-Result-SqlReviewReport"></a>+<a name="bytebase-v1-ListTaskRunsRequest"></a>-### PlanCheckRun.Result.SqlReviewReport+### ListTaskRunsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| line | [int32](#int32) | | |-| column | [int32](#int32) | | |-| detail | [string](#string) | | |-| code | [int32](#int32) | | Code from sql review. |+| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. |+| page_size | [int32](#int32) | | The maximum number of taskRuns to return. The service may return fewer than this value. If unspecified, at most 50 taskRuns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListRolloutTaskRuns` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListRolloutTaskRuns` must match the call that provided the page token. |-<a name="bytebase-v1-PlanCheckRun-Result-SqlSummaryReport"></a>-### PlanCheckRun.Result.SqlSummaryReport+<a name="bytebase-v1-ListTaskRunsResponse"></a>++### ListTaskRunsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| code | [int32](#int32) | | |-| statement_types | [string](#string) | repeated | statement_types are the types of statements that are found in the sql. |-| affected_rows | [int32](#int32) | | |-| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |+| task_runs | [TaskRun](#bytebase-v1-TaskRun) | repeated | The taskRuns from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |@@ -7959,31 +8101,6 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat-<a name="bytebase-v1-RunPlanChecksRequest"></a>--### RunPlanChecksRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The plan to run plan checks. Format: projects/{project}/plans/{plan} |-------<a name="bytebase-v1-RunPlanChecksResponse"></a>--### RunPlanChecksResponse-------<a name="bytebase-v1-Stage"></a>### Stage@@ -8287,90 +8404,9 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat--<a name="bytebase-v1-UpdatePlanRequest"></a>--### UpdatePlanRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| plan | [Plan](#bytebase-v1-Plan) | | The plan to update.--The plan's `name` field is used to identify the plan to update. Format: projects/{project}/plans/{plan} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |------<a name="bytebase-v1-Plan-ChangeDatabaseConfig-Type"></a>--### Plan.ChangeDatabaseConfig.Type-Type is the database change type.--| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| BASELINE | 1 | Used for establishing schema baseline, this is used when 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema. 2. Had schema drift and need to re-establish the baseline. |-| MIGRATE | 2 | Used for DDL changes including CREATE DATABASE. |-| MIGRATE_SDL | 3 | Used for schema changes via state-based schema migration including CREATE DATABASE. |-| MIGRATE_GHOST | 4 | Used for DDL changes using gh-ost. |-| DATA | 6 | Used for DML change. |----<a name="bytebase-v1-PlanCheckRun-Result-Status"></a>--### PlanCheckRun.Result.Status---| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| ERROR | 1 | |-| WARNING | 2 | |-| SUCCESS | 3 | |----<a name="bytebase-v1-PlanCheckRun-Status"></a>--### PlanCheckRun.Status---| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| RUNNING | 1 | |-| DONE | 2 | |-| FAILED | 3 | |-| CANCELED | 4 | |----<a name="bytebase-v1-PlanCheckRun-Type"></a>--### PlanCheckRun.Type---| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| DATABASE_STATEMENT_FAKE_ADVISE | 1 | |-| DATABASE_STATEMENT_COMPATIBILITY | 2 | |-| DATABASE_STATEMENT_ADVISE | 3 | |-| DATABASE_STATEMENT_TYPE | 4 | |-| DATABASE_STATEMENT_SUMMARY_REPORT | 5 | |-| DATABASE_CONNECT | 6 | |-| DATABASE_GHOST_SYNC | 7 | |---<a name="bytebase-v1-Task-DatabaseDataUpdate-RollbackSqlStatus"></a>### Task.DatabaseDataUpdate.RollbackSqlStatus@@ -8490,17 +8526,11 @@ Type is the database change type.| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| GetPlan | [GetPlanRequest](#bytebase-v1-GetPlanRequest) | [Plan](#bytebase-v1-Plan) | |-| ListPlans | [ListPlansRequest](#bytebase-v1-ListPlansRequest) | [ListPlansResponse](#bytebase-v1-ListPlansResponse) | |-| CreatePlan | [CreatePlanRequest](#bytebase-v1-CreatePlanRequest) | [Plan](#bytebase-v1-Plan) | |-| UpdatePlan | [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest) | [Plan](#bytebase-v1-Plan) | || GetRollout | [GetRolloutRequest](#bytebase-v1-GetRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | || CreateRollout | [CreateRolloutRequest](#bytebase-v1-CreateRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | || PreviewRollout | [PreviewRolloutRequest](#bytebase-v1-PreviewRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | || ListTaskRuns | [ListTaskRunsRequest](#bytebase-v1-ListTaskRunsRequest) | [ListTaskRunsResponse](#bytebase-v1-ListTaskRunsResponse) | || GetTaskRunLog | [GetTaskRunLogRequest](#bytebase-v1-GetTaskRunLogRequest) | [TaskRunLog](#bytebase-v1-TaskRunLog) | |-| ListPlanCheckRuns | [ListPlanCheckRunsRequest](#bytebase-v1-ListPlanCheckRunsRequest) | [ListPlanCheckRunsResponse](#bytebase-v1-ListPlanCheckRunsResponse) | |-| RunPlanChecks | [RunPlanChecksRequest](#bytebase-v1-RunPlanChecksRequest) | [RunPlanChecksResponse](#bytebase-v1-RunPlanChecksResponse) | || BatchRunTasks | [BatchRunTasksRequest](#bytebase-v1-BatchRunTasksRequest) | [BatchRunTasksResponse](#bytebase-v1-BatchRunTasksResponse) | || BatchSkipTasks | [BatchSkipTasksRequest](#bytebase-v1-BatchSkipTasksRequest) | [BatchSkipTasksResponse](#bytebase-v1-BatchSkipTasksResponse) | || BatchCancelTaskRuns | [BatchCancelTaskRunsRequest](#bytebase-v1-BatchCancelTaskRunsRequest) | [BatchCancelTaskRunsResponse](#bytebase-v1-BatchCancelTaskRunsResponse) | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 6747ade097..ca7a16fcb2 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1541,6 +1541,133 @@</li>+ <li>+ <a href="#v1%2fplan_service.proto">v1/plan_service.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.CreatePlanRequest"><span class="badge">M</span>CreatePlanRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.GetPlanRequest"><span class="badge">M</span>GetPlanRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListPlanCheckRunsRequest"><span class="badge">M</span>ListPlanCheckRunsRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListPlanCheckRunsResponse"><span class="badge">M</span>ListPlanCheckRunsResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListPlansRequest"><span class="badge">M</span>ListPlansRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ListPlansResponse"><span class="badge">M</span>ListPlansResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan"><span class="badge">M</span>Plan</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig"><span class="badge">M</span>Plan.ChangeDatabaseConfig</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry"><span class="badge">M</span>Plan.ChangeDatabaseConfig.GhostFlagsEntry</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail"><span class="badge">M</span>Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail"><span class="badge">M</span>Plan.ChangeDatabaseConfig.RollbackDetail</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.CreateDatabaseConfig"><span class="badge">M</span>Plan.CreateDatabaseConfig</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry"><span class="badge">M</span>Plan.CreateDatabaseConfig.LabelsEntry</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.ExportDataConfig"><span class="badge">M</span>Plan.ExportDataConfig</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.Spec"><span class="badge">M</span>Plan.Spec</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.Step"><span class="badge">M</span>Plan.Step</a>+ </li>++ <li>+ <a href="#bytebase.v1.Plan.VCSSource"><span class="badge">M</span>Plan.VCSSource</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun"><span class="badge">M</span>PlanCheckRun</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Result"><span class="badge">M</span>PlanCheckRun.Result</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport"><span class="badge">M</span>PlanCheckRun.Result.SqlReviewReport</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport"><span class="badge">M</span>PlanCheckRun.Result.SqlSummaryReport</a>+ </li>++ <li>+ <a href="#bytebase.v1.RunPlanChecksRequest"><span class="badge">M</span>RunPlanChecksRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.RunPlanChecksResponse"><span class="badge">M</span>RunPlanChecksResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.UpdatePlanRequest"><span class="badge">M</span>UpdatePlanRequest</a>+ </li>+++ <li>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type"><span class="badge">E</span>Plan.ChangeDatabaseConfig.Type</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Result.Status"><span class="badge">E</span>PlanCheckRun.Result.Status</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Status"><span class="badge">E</span>PlanCheckRun.Status</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Type"><span class="badge">E</span>PlanCheckRun.Type</a>+ </li>++++ <li>+ <a href="#bytebase.v1.PlanService"><span class="badge">S</span>PlanService</a>+ </li>++ </ul>+ </li>++<li><a href="#v1%2fproject_service.proto">v1/project_service.proto</a><ul>@@ -1906,18 +2033,10 @@<a href="#bytebase.v1.BatchSkipTasksResponse"><span class="badge">M</span>BatchSkipTasksResponse</a></li>- <li>- <a href="#bytebase.v1.CreatePlanRequest"><span class="badge">M</span>CreatePlanRequest</a>- </li>-<li><a href="#bytebase.v1.CreateRolloutRequest"><span class="badge">M</span>CreateRolloutRequest</a></li>- <li>- <a href="#bytebase.v1.GetPlanRequest"><span class="badge">M</span>GetPlanRequest</a>- </li>-<li><a href="#bytebase.v1.GetRolloutRequest"><span class="badge">M</span>GetRolloutRequest</a></li>@@ -1926,22 +2045,6 @@<a href="#bytebase.v1.GetTaskRunLogRequest"><span class="badge">M</span>GetTaskRunLogRequest</a></li>- <li>- <a href="#bytebase.v1.ListPlanCheckRunsRequest"><span class="badge">M</span>ListPlanCheckRunsRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListPlanCheckRunsResponse"><span class="badge">M</span>ListPlanCheckRunsResponse</a>- </li>-- <li>- <a href="#bytebase.v1.ListPlansRequest"><span class="badge">M</span>ListPlansRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListPlansResponse"><span class="badge">M</span>ListPlansResponse</a>- </li>-<li><a href="#bytebase.v1.ListTaskRunsRequest"><span class="badge">M</span>ListTaskRunsRequest</a></li>@@ -1950,66 +2053,6 @@<a href="#bytebase.v1.ListTaskRunsResponse"><span class="badge">M</span>ListTaskRunsResponse</a></li>- <li>- <a href="#bytebase.v1.Plan"><span class="badge">M</span>Plan</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig"><span class="badge">M</span>Plan.ChangeDatabaseConfig</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry"><span class="badge">M</span>Plan.ChangeDatabaseConfig.GhostFlagsEntry</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail"><span class="badge">M</span>Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail"><span class="badge">M</span>Plan.ChangeDatabaseConfig.RollbackDetail</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.CreateDatabaseConfig"><span class="badge">M</span>Plan.CreateDatabaseConfig</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry"><span class="badge">M</span>Plan.CreateDatabaseConfig.LabelsEntry</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.ExportDataConfig"><span class="badge">M</span>Plan.ExportDataConfig</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.Spec"><span class="badge">M</span>Plan.Spec</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.Step"><span class="badge">M</span>Plan.Step</a>- </li>-- <li>- <a href="#bytebase.v1.Plan.VCSSource"><span class="badge">M</span>Plan.VCSSource</a>- </li>-- <li>- <a href="#bytebase.v1.PlanCheckRun"><span class="badge">M</span>PlanCheckRun</a>- </li>-- <li>- <a href="#bytebase.v1.PlanCheckRun.Result"><span class="badge">M</span>PlanCheckRun.Result</a>- </li>-- <li>- <a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport"><span class="badge">M</span>PlanCheckRun.Result.SqlReviewReport</a>- </li>-- <li>- <a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport"><span class="badge">M</span>PlanCheckRun.Result.SqlSummaryReport</a>- </li>-<li><a href="#bytebase.v1.PreviewRolloutRequest"><span class="badge">M</span>PreviewRolloutRequest</a></li>@@ -2018,14 +2061,6 @@<a href="#bytebase.v1.Rollout"><span class="badge">M</span>Rollout</a></li>- <li>- <a href="#bytebase.v1.RunPlanChecksRequest"><span class="badge">M</span>RunPlanChecksRequest</a>- </li>-- <li>- <a href="#bytebase.v1.RunPlanChecksResponse"><span class="badge">M</span>RunPlanChecksResponse</a>- </li>-<li><a href="#bytebase.v1.Stage"><span class="badge">M</span>Stage</a></li>@@ -2090,26 +2125,6 @@<a href="#bytebase.v1.TaskRunLogEntry.SchemaDump"><span class="badge">M</span>TaskRunLogEntry.SchemaDump</a></li>- <li>- <a href="#bytebase.v1.UpdatePlanRequest"><span class="badge">M</span>UpdatePlanRequest</a>- </li>--- <li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type"><span class="badge">E</span>Plan.ChangeDatabaseConfig.Type</a>- </li>-- <li>- <a href="#bytebase.v1.PlanCheckRun.Result.Status"><span class="badge">E</span>PlanCheckRun.Result.Status</a>- </li>-- <li>- <a href="#bytebase.v1.PlanCheckRun.Status"><span class="badge">E</span>PlanCheckRun.Status</a>- </li>-- <li>- <a href="#bytebase.v1.PlanCheckRun.Type"><span class="badge">E</span>PlanCheckRun.Type</a>- </li><li><a href="#bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus"><span class="badge">E</span>Task.DatabaseDataUpdate.RollbackSqlStatus</a>@@ -17447,19 +17462,12 @@ In this situation, `update_mask` is ignored. </p></td><div class="file-heading">- <h2 id="v1/project_service.proto">v1/project_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/plan_service.proto">v1/plan_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.Activity">Activity</h3>- <p>TODO(zp): move to activity later.</p>------ <h3 id="bytebase.v1.AddWebhookRequest">AddWebhookRequest</h3>+ <h3 id="bytebase.v1.CreatePlanRequest">CreatePlanRequest</h3><p></p>@@ -17470,18 +17478,18 @@ In this situation, `update_mask` is ignored. </p></td><tbody><tr>- <td>project</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project to add the webhook to.+ <td><p>The parent project where this plan will be created.Format: projects/{project} </p></td></tr><tr>- <td>webhook</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td>plan</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td><td></td>- <td><p>The webhook to add. </p></td>+ <td><p>The plan to create. </p></td></tr></tbody>@@ -17491,7 +17499,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.BatchGetIamPolicyRequest">BatchGetIamPolicyRequest</h3>+ <h3 id="bytebase.v1.GetPlanRequest">GetPlanRequest</h3><p></p>@@ -17502,17 +17510,11 @@ Format: projects/{project} </p></td><tbody><tr>- <td>scope</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The scope of the batch get. Typically it's "projects/-". </p></td>- </tr>-- <tr>- <td>names</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>The name of the plan to retrieve.+Format: projects/{project}/plans/{plan} </p></td></tr></tbody>@@ -17522,7 +17524,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.BatchGetIamPolicyResponse">BatchGetIamPolicyResponse</h3>+ <h3 id="bytebase.v1.ListPlanCheckRunsRequest">ListPlanCheckRunsRequest</h3><p></p>@@ -17533,10 +17535,32 @@ Format: projects/{project} </p></td><tbody><tr>- <td>policy_results</td>- <td><a href="#bytebase.v1.BatchGetIamPolicyResponse.PolicyResult">BatchGetIamPolicyResponse.PolicyResult</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent, which owns this collection of plan check runs.+Format: projects/{project}/plans/{plan} </p></td>+ </tr>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of plan check runs to return. The service may return fewer than+this value.+If unspecified, at most 50 plans will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListPlanCheckRuns` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListPlanCheckRuns` must match+the call that provided the page token. </p></td></tr></tbody>@@ -17546,7 +17570,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.BatchGetIamPolicyResponse.PolicyResult">BatchGetIamPolicyResponse.PolicyResult</h3>+ <h3 id="bytebase.v1.ListPlanCheckRunsResponse">ListPlanCheckRunsResponse</h3><p></p>@@ -17557,17 +17581,18 @@ Format: projects/{project} </p></td><tbody><tr>- <td>project</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>plan_check_runs</td>+ <td><a href="#bytebase.v1.PlanCheckRun">PlanCheckRun</a></td>+ <td>repeated</td>+ <td><p>The plan check runs from the specified request. </p></td></tr><tr>- <td>policy</td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -17577,7 +17602,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</h3>+ <h3 id="bytebase.v1.ListPlansRequest">ListPlansRequest</h3><p></p>@@ -17591,33 +17616,30 @@ Format: projects/{project} </p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource where this database group will be created.-Format: projects/{project} </p></td>+ <td><p>The parent, which owns this collection of plans.+Format: projects/{project}+Use "projects/-" to list all plans from all projects. </p></td></tr><tr>- <td>database_group</td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The database group to create. </p></td>+ <td><p>The maximum number of plans to return. The service may return fewer than+this value.+If unspecified, at most 50 plans will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>database_group_id</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The ID to use for the database group, which will become the final component of-the database group's resource name.+ <td><p>A page token, received from a previous `ListPlans` call.+Provide this to retrieve the subsequent page.-This value should be 4-63 characters, and valid characters-are /[a-z][0-9]-/. </p></td>- </tr>-- <tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If set, validate the create request and preview the full database group response, but do not actually create it. </p></td>+When paginating, all other parameters provided to `ListPlans` must match+the call that provided the page token. </p></td></tr></tbody>@@ -17627,7 +17649,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.CreateProjectRequest">CreateProjectRequest</h3>+ <h3 id="bytebase.v1.ListPlansResponse">ListPlansResponse</h3><p></p>@@ -17638,21 +17660,18 @@ are /[a-z][0-9]-/. </p></td><tbody><tr>- <td>project</td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td></td>- <td><p>The project to create. </p></td>+ <td>plans</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td>repeated</td>+ <td><p>The plans from the specified request. </p></td></tr><tr>- <td>project_id</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The ID to use for the project, which will become the final component of-the project's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][0-9]-/. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -17662,7 +17681,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.CreateSchemaGroupRequest">CreateSchemaGroupRequest</h3>+ <h3 id="bytebase.v1.Plan">Plan</h3><p></p>@@ -17673,36 +17692,69 @@ are /[a-z][0-9]-/. </p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource where this schema group will be created.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ <td><p>The name of the plan.+`plan` is a system generated ID.+Format: projects/{project}/plans/{plan} </p></td></tr><tr>- <td>schema_group</td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>+ <td>uid</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The schema group to create. </p></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td></tr><tr>- <td>schema_group_id</td>+ <td>issue</td><td><a href="#string">string</a></td><td></td>- <td><p>The ID to use for the schema group, which will become the final component of-the schema group's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][0-9]-/. </p></td>+ <td><p>The resource name of the issue associated with this plan.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>If set, validate the create request and preview the full schema group response, but do not actually create it. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>steps</td>+ <td><a href="#bytebase.v1.Plan.Step">Plan.Step</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>vcs_source</td>+ <td><a href="#bytebase.v1.Plan.VCSSource">Plan.VCSSource</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: users/[email protected] </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -17712,7 +17764,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.DatabaseGroup">DatabaseGroup</h3>+ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</h3><p></p>@@ -17723,40 +17775,65 @@ are /[a-z][0-9]-/. </p></td><tbody><tr>- <td>name</td>+ <td>target</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the database group.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ <td><p>The resource name of the target.+Format: instances/{instance-id}/databases/{database-name}.+Format: projects/{project}/databaseGroups/{databaseGroup}.+Format: projects/{project}/deploymentConfigs/default. The plan should+have a single step and single spec for the deployment configuration type. </p></td></tr><tr>- <td>database_placeholder</td>+ <td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p>The short name used in actual databases specified by users.-For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1". </p></td>+ <td><p>The resource name of the sheet.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>database_expr</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</a></td><td></td>- <td><p>The condition that is associated with this database group. </p></td>+ <td><p> </p></td></tr><tr>- <td>matched_databases</td>- <td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td>- <td>repeated</td>- <td><p>The list of databases that match the database group condition. </p></td>+ <td>schema_version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>schema_version is parsed from VCS file name.+It is automatically generated in the UI workflow. </p></td></tr><tr>- <td>unmatched_databases</td>- <td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td>+ <td>rollback_enabled</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If RollbackEnabled, build the RollbackSheetID of the task after the task is completed. </p></td>+ </tr>++ <tr>+ <td>rollback_detail</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail">Plan.ChangeDatabaseConfig.RollbackDetail</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>ghost_flags</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry">Plan.ChangeDatabaseConfig.GhostFlagsEntry</a></td><td>repeated</td>- <td><p>The list of databases that match the database group condition. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>pre_update_backup_detail</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail">Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</a></td>+ <td>optional</td>+ <td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td></tr></tbody>@@ -17766,7 +17843,7 @@ For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1&#- <h3 id="bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</h3>+ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry">Plan.ChangeDatabaseConfig.GhostFlagsEntry</h3><p></p>@@ -17777,11 +17854,17 @@ For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1&#<tbody><tr>- <td>name</td>+ <td>key</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the database.-Format: instances/{instance}/databases/{database} </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -17791,7 +17874,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</h3>+ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail">Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</h3><p></p>@@ -17802,11 +17885,11 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>name</td>+ <td>database</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the database group to delete.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ <td><p>The database for keeping the backup data.+Format: instances/{instance}/databases/{database} </p></td></tr></tbody>@@ -17816,7 +17899,7 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>- <h3 id="bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</h3>+ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail">Plan.ChangeDatabaseConfig.RollbackDetail</h3><p></p>@@ -17827,18 +17910,19 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td><tbody><tr>- <td>name</td>+ <td>rollback_from_task</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project to delete.-Format: projects/{project} </p></td>+ <td><p>rollback_from_task is the task from which the rollback SQL statement is generated for this task.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td></tr><tr>- <td>force</td>- <td><a href="#bool">bool</a></td>+ <td>rollback_from_issue</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. </p></td>+ <td><p>rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.+Format: projects/{project}/issues/{issue} </p></td></tr></tbody>@@ -17848,7 +17932,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.DeleteSchemaGroupRequest">DeleteSchemaGroupRequest</h3>+ <h3 id="bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</h3><p></p>@@ -17859,74 +17943,69 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>+ <td>target</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the schema group to delete.-Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>+ <td><p>The resource name of the instance on which the database is created.+Format: instances/{instance} </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DeploymentConfig">DeploymentConfig</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database to create. </p></td>+ </tr><tr>- <td>name</td>+ <td>table</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the resource.-Format: projects/{project}/deploymentConfigs/default. </p></td>+ <td><p>table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+For example, in MongoDB, it only creates the database when we first store data in that database. </p></td></tr><tr>- <td>title</td>+ <td>character_set</td><td><a href="#string">string</a></td><td></td>- <td><p>The title of the deployment config. </p></td>+ <td><p>character_set is the character set of the database. </p></td></tr><tr>- <td>schedule</td>- <td><a href="#bytebase.v1.Schedule">Schedule</a></td>+ <td>collation</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>collation is the collation of the database. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DeploymentSpec">DeploymentSpec</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>cluster</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". </p></td>+ </tr><tr>- <td>label_selector</td>- <td><a href="#bytebase.v1.LabelSelector">LabelSelector</a></td>+ <td>owner</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td>+ </tr>++ <tr>+ <td>environment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The environment resource.+Format: environments/prod where prod is the environment resource ID. </p></td>+ </tr>++ <tr>+ <td>labels</td>+ <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry">Plan.CreateDatabaseConfig.LabelsEntry</a></td>+ <td>repeated</td>+ <td><p>labels of the database. </p></td></tr></tbody>@@ -17936,7 +18015,7 @@ Format: projects/{project}/deploymentConfigs/default. </p></td>- <h3 id="bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</h3>+ <h3 id="bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry">Plan.CreateDatabaseConfig.LabelsEntry</h3><p></p>@@ -17947,18 +18026,17 @@ Format: projects/{project}/deploymentConfigs/default. </p></td><tbody><tr>- <td>name</td>+ <td>key</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the database group to retrieve.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ <td><p> </p></td></tr><tr>- <td>view</td>- <td><a href="#bytebase.v1.DatabaseGroupView">DatabaseGroupView</a></td>+ <td>value</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. </p></td>+ <td><p> </p></td></tr></tbody>@@ -17968,7 +18046,7 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>- <h3 id="bytebase.v1.GetDeploymentConfigRequest">GetDeploymentConfigRequest</h3>+ <h3 id="bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</h3><p></p>@@ -17979,36 +18057,34 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td><tbody><tr>- <td>name</td>+ <td>target</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the resource.-Format: projects/{project}/deploymentConfigs/default. </p></td>+ <td><p>The resource name of the target.+Format: instances/{instance-id}/databases/{database-name} </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>project</td>+ <td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project to get the IAM policy.-Format: projects/{project} </p></td>+ <td><p>The resource name of the sheet.+Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>format</td>+ <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>+ <td></td>+ <td><p>The format of the exported file. </p></td>+ </tr>++ <tr>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The zip password provide by users.+Leave it empty if no needs to encrypt the zip file. </p></td></tr></tbody>@@ -18018,7 +18094,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.GetProjectProtectionRulesRequest">GetProjectProtectionRulesRequest</h3>+ <h3 id="bytebase.v1.Plan.Spec">Plan.Spec</h3><p></p>@@ -18029,11 +18105,46 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>+ <td>earliest_allowed_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>earliest_allowed_time the earliest execution time of the change. </p></td>+ </tr>++ <tr>+ <td>id</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the protection rules.-Format: projects/{project}/protectionRules </p></td>+ <td><p>A UUID4 string that uniquely identifies the Spec. </p></td>+ </tr>++ <tr>+ <td>depends_on_specs</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>IDs of the specs that this spec depends on.+Must be a subset of the specs in the same step. </p></td>+ </tr>++ <tr>+ <td>create_database_config</td>+ <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>change_database_config</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>export_data_config</td>+ <td><a href="#bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -18043,7 +18154,7 @@ Format: projects/{project}/protectionRules </p></td>- <h3 id="bytebase.v1.GetProjectRequest">GetProjectRequest</h3>+ <h3 id="bytebase.v1.Plan.Step">Plan.Step</h3><p></p>@@ -18054,11 +18165,17 @@ Format: projects/{project}/protectionRules </p></td><tbody><tr>- <td>name</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project to retrieve.-Format: projects/{project} </p></td>+ <td><p>TODO: implement </p></td>+ </tr>++ <tr>+ <td>specs</td>+ <td><a href="#bytebase.v1.Plan.Spec">Plan.Spec</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -18068,7 +18185,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.GetSchemaGroupRequest">GetSchemaGroupRequest</h3>+ <h3 id="bytebase.v1.Plan.VCSSource">Plan.VCSSource</h3><p></p>@@ -18079,18 +18196,26 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>+ <td>vcs_type</td>+ <td><a href="#bytebase.v1.VCSType">VCSType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>vcs_connector</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the database group to retrieve.-Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>+ <td><p>Optional.+If present, we will update the pull request for rollout status.+Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td></tr><tr>- <td>view</td>- <td><a href="#bytebase.v1.SchemaGroupView">SchemaGroupView</a></td>+ <td>pull_request_url</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC. </p></td>+ <td><p> </p></td></tr></tbody>@@ -18100,7 +18225,7 @@ Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGr- <h3 id="bytebase.v1.Label">Label</h3>+ <h3 id="bytebase.v1.PlanCheckRun">PlanCheckRun</h3><p></p>@@ -18111,85 +18236,65 @@ Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGr<tbody><tr>- <td>value</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} </p></td></tr><tr>- <td>color</td>+ <td>uid</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td></tr><tr>- <td>group</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Type">PlanCheckRun.Type</a></td><td></td><td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.LabelSelector">LabelSelector</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>match_expressions</td>- <td><a href="#bytebase.v1.LabelSelectorRequirement">LabelSelectorRequirement</a></td>- <td>repeated</td>+ <td>status</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</a></td>+ <td></td><td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.LabelSelectorRequirement">LabelSelectorRequirement</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>key</td>+ <td>target</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>operator</td>- <td><a href="#bytebase.v1.OperatorType">OperatorType</a></td>+ <td>sheet</td>+ <td><a href="#string">string</a></td><td></td>+ <td><p>Format: project/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>results</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>values</td>+ <td>error</td><td><a href="#string">string</a></td>- <td>repeated</td>+ <td></td>+ <td><p>error is set if the Status is FAILED. </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td><td><p> </p></td></tr>@@ -18200,7 +18305,7 @@ Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGr- <h3 id="bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</h3>+ <h3 id="bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</h3><p></p>@@ -18211,65 +18316,45 @@ Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGr<tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Result.Status">PlanCheckRun.Result.Status</a></td><td></td>- <td><p>The parent resource whose database groups are to be listed.-Format: projects/{project}-Using "projects/-" will list database groups across all projects. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Not used. The maximum number of anomalies to return. The service may return fewer than-this value.-If unspecified, at most 50 anomalies will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>content</td><td><a href="#string">string</a></td><td></td>- <td><p>Not used. A page token, received from a previous `ListDatabaseGroups` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListDatabaseGroups` must match-the call that provided the page token. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>code</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>database_groups</td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td>repeated</td>- <td><p>database_groups is the list of database groups. </p></td>+ <td>sql_summary_report</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>sql_review_report</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</a></td><td></td>- <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p> </p></td></tr></tbody>@@ -18279,7 +18364,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListProjectsRequest">ListProjectsRequest</h3>+ <h3 id="bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</h3><p></p>@@ -18290,31 +18375,31 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>page_size</td>+ <td>line</td><td><a href="#int32">int32</a></td><td></td>- <td><p>The maximum number of projects to return. The service may return fewer than-this value.-If unspecified, at most 50 projects will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>column</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>detail</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListProjects` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListProjects` must match-the call that provided the page token. </p></td>+ <td><p> </p></td></tr><tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>+ <td>code</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>Show deleted projects if specified. </p></td>+ <td><p>Code from sql review. </p></td></tr></tbody>@@ -18324,7 +18409,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListProjectsResponse">ListProjectsResponse</h3>+ <h3 id="bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</h3><p></p>@@ -18335,18 +18420,31 @@ the call that provided the page token. </p></td><tbody><tr>- <td>projects</td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td>repeated</td>- <td><p>The projects from the specified request. </p></td>+ <td>code</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>next_page_token</td>+ <td>statement_types</td><td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>statement_types are the types of statements that are found in the sql. </p></td>+ </tr>++ <tr>+ <td>affected_rows</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>changed_resources</td>+ <td><a href="#bytebase.v1.ChangedResources">ChangedResources</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -18356,7 +18454,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListSchemaGroupsRequest">ListSchemaGroupsRequest</h3>+ <h3 id="bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</h3><p></p>@@ -18367,32 +18465,11 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent resource whose schema groups are to be listed.-Format: projects/{project}/schemaGroups/{schemaGroup} </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>Not used. The maximum number of anomalies to return. The service may return fewer than-this value.-If unspecified, at most 50 anomalies will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Not used. A page token, received from a previous `ListSchemaGroups` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListSchemaGroups` must match-the call that provided the page token. </p></td>+ <td><p>The plan to run plan checks.+Format: projects/{project}/plans/{plan} </p></td></tr></tbody>@@ -18402,7 +18479,14 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListSchemaGroupsResponse">ListSchemaGroupsResponse</h3>+ <h3 id="bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</h3><p></p>@@ -18413,18 +18497,20 @@ the call that provided the page token. </p></td><tbody><tr>- <td>schema_groups</td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td>repeated</td>- <td><p>schema_groups is the list of schema groups. </p></td>+ <td>plan</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td></td>+ <td><p>The plan to update.++The plan's `name` field is used to identify the plan to update.+Format: projects/{project}/plans/{plan} </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -18434,917 +18520,93 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Project">Project</h3>- <p></p>-- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the project.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>uid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>- </tr>-- <tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The title or name of a project. It's not unique within the workspace. </p></td>- </tr>-- <tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The key is a short and upper-case identifier for a project. It's unique within the workspace. </p></td>- </tr>-- <tr>- <td>workflow</td>- <td><a href="#bytebase.v1.Workflow">Workflow</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>tenant_mode</td>- <td><a href="#bytebase.v1.TenantMode">TenantMode</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>webhooks</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>data_classification_config_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>issue_labels</td>- <td><a href="#bytebase.v1.Label">Label</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>force_issue_labels</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ProtectionRule">ProtectionRule</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A unique identifier for a node in UUID format. </p></td>- </tr>-- <tr>- <td>target</td>- <td><a href="#bytebase.v1.ProtectionRule.Target">ProtectionRule.Target</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>name_filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the branch/changelist or wildcard. </p></td>- </tr>-- <tr>- <td>allowed_roles</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The roles allowed to create branches or changelists, rebase branches, delete branches.-Format: roles/projectOwner. </p></td>- </tr>-- <tr>- <td>branch_source</td>- <td><a href="#bytebase.v1.ProtectionRule.BranchSource">ProtectionRule.BranchSource</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ProtectionRules">ProtectionRules</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the protection rules.-Format: projects/{project}/protectionRules </p></td>- </tr>-- <tr>- <td>rules</td>- <td><a href="#bytebase.v1.ProtectionRule">ProtectionRule</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>webhook</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>- <td></td>- <td><p>The webhook to remove. Identified by its url. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Schedule">Schedule</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>deployments</td>- <td><a href="#bytebase.v1.ScheduleDeployment">ScheduleDeployment</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ScheduleDeployment">ScheduleDeployment</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The title of the deployment (stage) in a schedule. </p></td>- </tr>-- <tr>- <td>spec</td>- <td><a href="#bytebase.v1.DeploymentSpec">DeploymentSpec</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SchemaGroup">SchemaGroup</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the schema group.-Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>- </tr>-- <tr>- <td>table_expr</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>- <td></td>- <td><p>The table condition that is associated with this schema group.-The table_placeholder in the sheet script will be rendered to the actual table name. </p></td>- </tr>-- <tr>- <td>table_placeholder</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The table placeholder used for rendering. For example, if set to "tbl", all the table name-"tbl" in the SQL script will be rendered to the actual table name. </p></td>- </tr>-- <tr>- <td>matched_tables</td>- <td><a href="#bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</a></td>- <td>repeated</td>- <td><p>The list of databases that match the database group condition. </p></td>- </tr>-- <tr>- <td>unmatched_tables</td>- <td><a href="#bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</a></td>- <td>repeated</td>- <td><p>The list of databases that match the database group condition. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</h3>- <p>In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.</p><p>Its keyword will be {{SCHEMA}}.</p><p>All the expressions will be used to filter the schema objects in DatabaseSchema.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the database.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Show deleted projects if specified. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>projects</td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td>repeated</td>- <td><p>The projects from the specified request. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>project</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the project to set the IAM policy.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>policy</td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.TestWebhookRequest">TestWebhookRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>project</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the project which owns the webhook to test.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>webhook</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>- <td></td>- <td><p>The webhook to test. Identified by its url. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.TestWebhookResponse">TestWebhookResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The result of the test, empty if the test is successful. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the deleted project.-Format: projects/{project} </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>database_group</td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td></td>- <td><p>The database group to update.--The database group's `name` field is used to identify the database group to update.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateDeploymentConfigRequest">UpdateDeploymentConfigRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>config</td>- <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateProjectProtectionRulesRequest">UpdateProjectProtectionRulesRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>protection_rules</td>- <td><a href="#bytebase.v1.ProtectionRules">ProtectionRules</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>project</td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td></td>- <td><p>The project to update.--The project's `name` field is used to identify the project to update.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateSchemaGroupRequest">UpdateSchemaGroupRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>schema_group</td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td></td>- <td><p>The schema group to update.--The schema group's `name` field is used to identify the schema group to update.-Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>webhook</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>- <td></td>- <td><p>The webhook to modify. </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Webhook">Webhook</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>name is the name of the webhook, generated by the server.-format: projects/{project}/webhooks/{webhook} </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Webhook.Type">Webhook.Type</a></td>- <td></td>- <td><p>type is the type of the webhook. </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>title is the title of the webhook. </p></td>- </tr>-- <tr>- <td>url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>url is the url of the webhook, should be unique within the project. </p></td>- </tr>-- <tr>- <td>notification_types</td>- <td><a href="#bytebase.v1.Activity.Type">Activity.Type</a></td>- <td>repeated</td>- <td><p>notification_types is the list of activities types that the webhook is interested in.-Bytebase will only send notifications to the webhook if the activity type is in the list.-It should not be empty, and shoule be a subset of the following:-- TYPE_ISSUE_CREATED-- TYPE_ISSUE_STATUS_UPDATE-- TYPE_ISSUE_PIPELINE_STAGE_UPDATE-- TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE-- TYPE_ISSUE_FIELD_UPDATE-- TYPE_ISSUE_COMMENT_CREAT </p></td>- </tr>-- </tbody>- </table>-------- <h3 id="bytebase.v1.Activity.Type">Activity.Type</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_NOTIFY_ISSUE_APPROVED</td>- <td>23</td>- <td><p>Notifications via webhooks.--TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td>- </tr>-- <tr>- <td>TYPE_NOTIFY_PIPELINE_ROLLOUT</td>- <td>24</td>- <td><p>TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_CREATE</td>- <td>1</td>- <td><p>Issue related activity types.--TYPE_ISSUE_CREATE represents creating an issue.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_COMMENT_CREATE</td>- <td>2</td>- <td><p>TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_FIELD_UPDATE</td>- <td>3</td>- <td><p>TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, assignee, etc.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_STATUS_UPDATE</td>- <td>4</td>- <td><p>TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_APPROVAL_NOTIFY</td>- <td>21</td>- <td><p>TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE</td>- <td>5</td>- <td><p>TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE</td>- <td>6</td>- <td><p>TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE</td>- <td>22</td>- <td><p>TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED.</p></td>- </tr>++ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</h3>+ <p>Type is the database change type.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE</td>- <td>8</td>- <td><p>TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement.</p></td>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td></tr><tr>- <td>TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE</td>- <td>9</td>- <td><p>TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time.</p></td>+ <td>BASELINE</td>+ <td>1</td>+ <td><p>Used for establishing schema baseline, this is used when+1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.+2. Had schema drift and need to re-establish the baseline.</p></td></tr><tr>- <td>TYPE_MEMBER_CREATE</td>- <td>10</td>- <td><p>Member related activity types.--TYPE_MEMBER_CREATE represents creating a members.</p></td>+ <td>MIGRATE</td>+ <td>2</td>+ <td><p>Used for DDL changes including CREATE DATABASE.</p></td></tr><tr>- <td>TYPE_MEMBER_ROLE_UPDATE</td>- <td>11</td>- <td><p>TYPE_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER.</p></td>+ <td>MIGRATE_SDL</td>+ <td>3</td>+ <td><p>Used for schema changes via state-based schema migration including CREATE DATABASE.</p></td></tr><tr>- <td>TYPE_MEMBER_ACTIVATE</td>- <td>12</td>- <td><p>TYPE_MEMBER_ACTIVATE represents activating a deactivated member.</p></td>+ <td>MIGRATE_GHOST</td>+ <td>4</td>+ <td><p>Used for DDL changes using gh-ost.</p></td></tr><tr>- <td>TYPE_MEMBER_DEACTIVATE</td>- <td>13</td>- <td><p>TYPE_MEMBER_DEACTIVATE represents deactivating an active member.</p></td>+ <td>DATA</td>+ <td>6</td>+ <td><p>Used for DML change.</p></td></tr>- <tr>- <td>TYPE_PROJECT_REPOSITORY_PUSH</td>- <td>14</td>- <td><p>Project related activity types.--TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository.</p></td>- </tr>+ </tbody>+ </table>++ <h3 id="bytebase.v1.PlanCheckRun.Result.Status">PlanCheckRun.Result.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>TYPE_PROJECT_DATABASE_TRANSFER</td>- <td>15</td>- <td><p>TYPE_PROJECT_DATABASE_TRANFER represents transfering the database from one project to another.</p></td>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td></tr><tr>- <td>TYPE_PROJECT_MEMBER_CREATE</td>- <td>16</td>- <td><p>TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project.</p></td>+ <td>ERROR</td>+ <td>1</td>+ <td><p></p></td></tr><tr>- <td>TYPE_PROJECT_MEMBER_DELETE</td>- <td>17</td>- <td><p>TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project.</p></td>+ <td>WARNING</td>+ <td>2</td>+ <td><p></p></td></tr><tr>- <td>TYPE_SQL_EDITOR_QUERY</td>- <td>19</td>- <td><p>SQL Editor related activity types.-TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td>+ <td>SUCCESS</td>+ <td>3</td>+ <td><p></p></td></tr></tbody></table>- <h3 id="bytebase.v1.DatabaseGroupView">DatabaseGroupView</h3>+ <h3 id="bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</h3><p></p><table class="enum-table"><thead>@@ -19353,28 +18615,39 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tbody><tr>- <td>DATABASE_GROUP_VIEW_UNSPECIFIED</td>+ <td>STATUS_UNSPECIFIED</td><td>0</td>- <td><p>The default / unset value.-The API will default to the BASIC view.</p></td>+ <td><p></p></td></tr><tr>- <td>DATABASE_GROUP_VIEW_BASIC</td>+ <td>RUNNING</td><td>1</td>- <td><p>Include basic information about the database group, but exclude the list of matched databases and unmatched databases.</p></td>+ <td><p></p></td></tr><tr>- <td>DATABASE_GROUP_VIEW_FULL</td>+ <td>DONE</td><td>2</td>- <td><p>Include everything.</p></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FAILED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>4</td>+ <td><p></p></td></tr></tbody></table>- <h3 id="bytebase.v1.OperatorType">OperatorType</h3>+ <h3 id="bytebase.v1.PlanCheckRun.Type">PlanCheckRun.Type</h3><p></p><table class="enum-table"><thead>@@ -19383,750 +18656,1648 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>OPERATOR_TYPE_UNSPECIFIED</td>+ <td>TYPE_UNSPECIFIED</td><td>0</td>- <td><p>The operator is not specified.</p></td>+ <td><p></p></td></tr><tr>- <td>OPERATOR_TYPE_IN</td>+ <td>DATABASE_STATEMENT_FAKE_ADVISE</td><td>1</td>- <td><p>The operator is "In".</p></td>+ <td><p></p></td></tr><tr>- <td>OPERATOR_TYPE_EXISTS</td>+ <td>DATABASE_STATEMENT_COMPATIBILITY</td><td>2</td>- <td><p>The operator is "Exists".</p></td>+ <td><p></p></td></tr><tr>- <td>OPERATOR_TYPE_NOT_IN</td>+ <td>DATABASE_STATEMENT_ADVISE</td><td>3</td>- <td><p>The operator is "Not In".</p></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_STATEMENT_TYPE</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_STATEMENT_SUMMARY_REPORT</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_CONNECT</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_GHOST_SYNC</td>+ <td>7</td>+ <td><p></p></td></tr></tbody></table>- <h3 id="bytebase.v1.ProtectionRule.BranchSource">ProtectionRule.BranchSource</h3>+++++ <h3 id="bytebase.v1.PlanService">PlanService</h3><p></p><table class="enum-table"><thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody><tr>- <td>BRANCH_SOURCE_UNSPECIFIED</td>- <td>0</td>+ <td>GetPlan</td>+ <td><a href="#bytebase.v1.GetPlanRequest">GetPlanRequest</a></td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td><td><p></p></td></tr><tr>- <td>DATABASE</td>- <td>1</td>+ <td>ListPlans</td>+ <td><a href="#bytebase.v1.ListPlansRequest">ListPlansRequest</a></td>+ <td><a href="#bytebase.v1.ListPlansResponse">ListPlansResponse</a></td><td><p></p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.ProtectionRule.Target">ProtectionRule.Target</h3>- <p>The type of target.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>CreatePlan</td>+ <td><a href="#bytebase.v1.CreatePlanRequest">CreatePlanRequest</a></td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td><p></p></td>+ </tr><tr>- <td>PROTECTION_TARGET_UNSPECIFIED</td>- <td>0</td>+ <td>UpdatePlan</td>+ <td><a href="#bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</a></td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td><td><p></p></td></tr><tr>- <td>BRANCH</td>- <td>1</td>+ <td>ListPlanCheckRuns</td>+ <td><a href="#bytebase.v1.ListPlanCheckRunsRequest">ListPlanCheckRunsRequest</a></td>+ <td><a href="#bytebase.v1.ListPlanCheckRunsResponse">ListPlanCheckRunsResponse</a></td><td><p></p></td></tr><tr>- <td>CHANGELIST</td>- <td>2</td>+ <td>RunPlanChecks</td>+ <td><a href="#bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</a></td>+ <td><a href="#bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</a></td><td><p></p></td></tr></tbody></table>-- <h3 id="bytebase.v1.SchemaGroupView">SchemaGroupView</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr>+ </thead>+ <tbody>++++ <tr>+ <td>GetPlan</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/plans/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>ListPlans</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/plans</td>+ <td></td>+ </tr>+++++ <tr>+ <td>CreatePlan</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/plans</td>+ <td>plan</td>+ </tr>+++<tr>- <td>SCHEMA_GROUP_VIEW_UNSPECIFIED</td>- <td>0</td>- <td><p>The default / unset value.-The API will default to the BASIC view.</p></td>+ <td>UpdatePlan</td>+ <td>PATCH</td>+ <td>/v1/{plan.name=projects/*/plans/*}</td>+ <td>plan</td></tr>+++<tr>- <td>SCHEMA_GROUP_VIEW_BASIC</td>- <td>1</td>- <td><p>Include basic information about the schema group, but exclude the list of matched tables and unmatched tables.</p></td>+ <td>ListPlanCheckRuns</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/plans/*}/planCheckRuns</td>+ <td></td></tr>+++<tr>- <td>SCHEMA_GROUP_VIEW_FULL</td>- <td>2</td>- <td><p>Include everything.</p></td>+ <td>RunPlanChecks</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/plans/*}:runPlanChecks</td>+ <td>*</td></tr>+- </tbody>- </table>+ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/project_service.proto">v1/project_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.Activity">Activity</h3>+ <p>TODO(zp): move to activity later.</p>++++++ <h3 id="bytebase.v1.AddWebhookRequest">AddWebhookRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>project</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the project to add the webhook to.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>webhook</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td></td>+ <td><p>The webhook to add. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchGetIamPolicyRequest">BatchGetIamPolicyRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>scope</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The scope of the batch get. Typically it's "projects/-". </p></td>+ </tr>++ <tr>+ <td>names</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchGetIamPolicyResponse">BatchGetIamPolicyResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>policy_results</td>+ <td><a href="#bytebase.v1.BatchGetIamPolicyResponse.PolicyResult">BatchGetIamPolicyResponse.PolicyResult</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchGetIamPolicyResponse.PolicyResult">BatchGetIamPolicyResponse.PolicyResult</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>project</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>policy</td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource where this database group will be created.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>database_group</td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td></td>+ <td><p>The database group to create. </p></td>+ </tr>++ <tr>+ <td>database_group_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The ID to use for the database group, which will become the final component of+the database group's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If set, validate the create request and preview the full database group response, but do not actually create it. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.CreateProjectRequest">CreateProjectRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>project</td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td></td>+ <td><p>The project to create. </p></td>+ </tr>++ <tr>+ <td>project_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The ID to use for the project, which will become the final component of+the project's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.TenantMode">TenantMode</h3>+ <h3 id="bytebase.v1.CreateSchemaGroupRequest">CreateSchemaGroupRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TENANT_MODE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>TENANT_MODE_DISABLED</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>TENANT_MODE_ENABLED</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource where this schema group will be created.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ </tr>++ <tr>+ <td>schema_group</td>+ <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>+ <td></td>+ <td><p>The schema group to create. </p></td>+ </tr>++ <tr>+ <td>schema_group_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The ID to use for the schema group, which will become the final component of+the schema group's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][0-9]-/. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If set, validate the create request and preview the full schema group response, but do not actually create it. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.Webhook.Type">Webhook.Type</h3>+ <h3 id="bytebase.v1.DatabaseGroup">DatabaseGroup</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_SLACK</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_DISCORD</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_TEAMS</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_DINGTALK</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_FEISHU</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_WECOM</td>- <td>6</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_CUSTOM</td>- <td>7</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database group.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ </tr>++ <tr>+ <td>database_placeholder</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The short name used in actual databases specified by users.+For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1". </p></td>+ </tr>++ <tr>+ <td>database_expr</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p>The condition that is associated with this database group. </p></td>+ </tr>++ <tr>+ <td>matched_databases</td>+ <td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td>+ <td>repeated</td>+ <td><p>The list of databases that match the database group condition. </p></td>+ </tr>++ <tr>+ <td>unmatched_databases</td>+ <td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td>+ <td>repeated</td>+ <td><p>The list of databases that match the database group condition. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.Workflow">Workflow</h3>+ <h3 id="bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>WORKFLOW_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>UI</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>VCS</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the database.+Format: instances/{instance}/databases/{database} </p></td>+ </tr>++ </tbody>+ </table>+++++ <h3 id="bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database group to delete.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ </tr>++ </tbody>+ </table>++++ <h3 id="bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the project to delete.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>force</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.ProjectService">ProjectService</h3>+ <h3 id="bytebase.v1.DeleteSchemaGroupRequest">DeleteSchemaGroupRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the schema group to delete.+Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DeploymentConfig">DeploymentConfig</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetProject</td>- <td><a href="#bytebase.v1.GetProjectRequest">GetProjectRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListProjects</td>- <td><a href="#bytebase.v1.ListProjectsRequest">ListProjectsRequest</a></td>- <td><a href="#bytebase.v1.ListProjectsResponse">ListProjectsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>SearchProjects</td>- <td><a href="#bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</a></td>- <td><a href="#bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateProject</td>- <td><a href="#bytebase.v1.CreateProjectRequest">CreateProjectRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateProject</td>- <td><a href="#bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteProject</td>- <td><a href="#bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UndeleteProject</td>- <td><a href="#bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetIamPolicy</td>- <td><a href="#bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</a></td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchGetIamPolicy</td>- <td><a href="#bytebase.v1.BatchGetIamPolicyRequest">BatchGetIamPolicyRequest</a></td>- <td><a href="#bytebase.v1.BatchGetIamPolicyResponse">BatchGetIamPolicyResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>SetIamPolicy</td>- <td><a href="#bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</a></td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetDeploymentConfig</td>- <td><a href="#bytebase.v1.GetDeploymentConfigRequest">GetDeploymentConfigRequest</a></td>- <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateDeploymentConfig</td>- <td><a href="#bytebase.v1.UpdateDeploymentConfigRequest">UpdateDeploymentConfigRequest</a></td>- <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>AddWebhook</td>- <td><a href="#bytebase.v1.AddWebhookRequest">AddWebhookRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateWebhook</td>- <td><a href="#bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>RemoveWebhook</td>- <td><a href="#bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>TestWebhook</td>- <td><a href="#bytebase.v1.TestWebhookRequest">TestWebhookRequest</a></td>- <td><a href="#bytebase.v1.TestWebhookResponse">TestWebhookResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListDatabaseGroups</td>- <td><a href="#bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</a></td>- <td><a href="#bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetDatabaseGroup</td>- <td><a href="#bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</a></td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateDatabaseGroup</td>- <td><a href="#bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</a></td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateDatabaseGroup</td>- <td><a href="#bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</a></td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteDatabaseGroup</td>- <td><a href="#bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListSchemaGroups</td>- <td><a href="#bytebase.v1.ListSchemaGroupsRequest">ListSchemaGroupsRequest</a></td>- <td><a href="#bytebase.v1.ListSchemaGroupsResponse">ListSchemaGroupsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetSchemaGroup</td>- <td><a href="#bytebase.v1.GetSchemaGroupRequest">GetSchemaGroupRequest</a></td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateSchemaGroup</td>- <td><a href="#bytebase.v1.CreateSchemaGroupRequest">CreateSchemaGroupRequest</a></td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateSchemaGroup</td>- <td><a href="#bytebase.v1.UpdateSchemaGroupRequest">UpdateSchemaGroupRequest</a></td>- <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteSchemaGroup</td>- <td><a href="#bytebase.v1.DeleteSchemaGroupRequest">DeleteSchemaGroupRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetProjectProtectionRules</td>- <td><a href="#bytebase.v1.GetProjectProtectionRulesRequest">GetProjectProtectionRulesRequest</a></td>- <td><a href="#bytebase.v1.ProtectionRules">ProtectionRules</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateProjectProtectionRules</td>- <td><a href="#bytebase.v1.UpdateProjectProtectionRulesRequest">UpdateProjectProtectionRulesRequest</a></td>- <td><a href="#bytebase.v1.ProtectionRules">ProtectionRules</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>+ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the resource.+Format: projects/{project}/deploymentConfigs/default. </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The title of the deployment config. </p></td>+ </tr>++ <tr>+ <td>schedule</td>+ <td><a href="#bytebase.v1.Schedule">Schedule</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++ <h3 id="bytebase.v1.DeploymentSpec">DeploymentSpec</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>label_selector</td>+ <td><a href="#bytebase.v1.LabelSelector">LabelSelector</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+- <h4>Methods with HTTP bindings</h4>- <table>++++ <h3 id="bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</h3>+ <p></p>+++ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database group to retrieve.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ </tr>- <tr>- <td>GetProject</td>- <td>GET</td>- <td>/v1/{name=projects/*}</td>- <td></td>- </tr>+ <tr>+ <td>view</td>+ <td><a href="#bytebase.v1.DatabaseGroupView">DatabaseGroupView</a></td>+ <td></td>+ <td><p>The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetDeploymentConfigRequest">GetDeploymentConfigRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the resource.+Format: projects/{project}/deploymentConfigs/default. </p></td>+ </tr>- <tr>- <td>ListProjects</td>- <td>GET</td>- <td>/v1/projects</td>- <td></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>project</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the project to get the IAM policy.+Format: projects/{project} </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetProjectProtectionRulesRequest">GetProjectProtectionRulesRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the protection rules.+Format: projects/{project}/protectionRules </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetProjectRequest">GetProjectRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the project to retrieve.+Format: projects/{project} </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetSchemaGroupRequest">GetSchemaGroupRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database group to retrieve.+Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>+ </tr>++ <tr>+ <td>view</td>+ <td><a href="#bytebase.v1.SchemaGroupView">SchemaGroupView</a></td>+ <td></td>+ <td><p>The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Label">Label</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>-+ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>color</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>SearchProjects</td>- <td>GET</td>- <td>/v1/projects:search</td>- <td></td>- </tr>+ <tr>+ <td>group</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.LabelSelector">LabelSelector</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>match_expressions</td>+ <td><a href="#bytebase.v1.LabelSelectorRequirement">LabelSelectorRequirement</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>- <tr>- <td>CreateProject</td>- <td>POST</td>- <td>/v1/projects</td>- <td>project</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.LabelSelectorRequirement">LabelSelectorRequirement</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>-+ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>operator</td>+ <td><a href="#bytebase.v1.OperatorType">OperatorType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>UpdateProject</td>- <td>PATCH</td>- <td>/v1/{project.name=projects/*}</td>- <td>project</td>- </tr>+ <tr>+ <td>values</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource whose database groups are to be listed.+Format: projects/{project}+Using "projects/-" will list database groups across all projects. </p></td>+ </tr>- <tr>- <td>DeleteProject</td>- <td>DELETE</td>- <td>/v1/{name=projects/*}</td>- <td></td>- </tr>+ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>Not used. The maximum number of anomalies to return. The service may return fewer than+this value.+If unspecified, at most 50 anomalies will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>-+ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used. A page token, received from a previous `ListDatabaseGroups` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListDatabaseGroups` must match+the call that provided the page token. </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>- <tr>- <td>UndeleteProject</td>- <td>POST</td>- <td>/v1/{name=projects/*}:undelete</td>- <td>*</td>- </tr>+ <tr>+ <td>database_groups</td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td>repeated</td>+ <td><p>database_groups is the list of database groups. </p></td>+ </tr>-+ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListProjectsRequest">ListProjectsRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>- <tr>- <td>GetIamPolicy</td>- <td>GET</td>- <td>/v1/{project=projects/*}:getIamPolicy</td>- <td></td>- </tr>+ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of projects to return. The service may return fewer than+this value.+If unspecified, at most 50 projects will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>-+ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListProjects` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListProjects` must match+the call that provided the page token. </p></td>+ </tr>+ <tr>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Show deleted projects if specified. </p></td>+ </tr>- <tr>- <td>BatchGetIamPolicy</td>- <td>GET</td>- <td>/v1/{scope=*/*}/iamPolicies:batchGet</td>- <td></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListProjectsResponse">ListProjectsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>-+ <tr>+ <td>projects</td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>repeated</td>+ <td><p>The projects from the specified request. </p></td>+ </tr>+ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>- <tr>- <td>SetIamPolicy</td>- <td>POST</td>- <td>/v1/{project=projects/*}:setIamPolicy</td>- <td>*</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListSchemaGroupsRequest">ListSchemaGroupsRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>-+ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource whose schema groups are to be listed.+Format: projects/{project}/schemaGroups/{schemaGroup} </p></td>+ </tr>+ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>Not used. The maximum number of anomalies to return. The service may return fewer than+this value.+If unspecified, at most 50 anomalies will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ </tr>- <tr>- <td>GetDeploymentConfig</td>- <td>GET</td>- <td>/v1/{name=projects/*/deploymentConfigs/*}</td>- <td></td>- </tr>+ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used. A page token, received from a previous `ListSchemaGroups` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListSchemaGroups` must match+the call that provided the page token. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListSchemaGroupsResponse">ListSchemaGroupsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>schema_groups</td>+ <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>+ <td>repeated</td>+ <td><p>schema_groups is the list of schema groups. </p></td>+ </tr>- <tr>- <td>UpdateDeploymentConfig</td>- <td>PATCH</td>- <td>/v1/{config.name=projects/*/deploymentConfigs/*}</td>- <td>config</td>- </tr>+ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Project">Project</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the project.+Format: projects/{project} </p></td>+ </tr>- <tr>- <td>AddWebhook</td>- <td>POST</td>- <td>/v1/{project=projects/*}:addWebhook</td>- <td>*</td>- </tr>+ <tr>+ <td>uid</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The system-assigned, unique identifier for a resource. </p></td>+ </tr>-+ <tr>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The title or name of a project. It's not unique within the workspace. </p></td>+ </tr>- <tr>- <td>UpdateWebhook</td>- <td>POST</td>- <td>/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook</td>- <td>*</td>- </tr>+ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The key is a short and upper-case identifier for a project. It's unique within the workspace. </p></td>+ </tr>-+ <tr>+ <td>workflow</td>+ <td><a href="#bytebase.v1.Workflow">Workflow</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>tenant_mode</td>+ <td><a href="#bytebase.v1.TenantMode">TenantMode</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>RemoveWebhook</td>- <td>POST</td>- <td>/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook</td>- <td>*</td>- </tr>+ <tr>+ <td>webhooks</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>data_classification_config_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>issue_labels</td>+ <td><a href="#bytebase.v1.Label">Label</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>- <tr>- <td>TestWebhook</td>- <td>POST</td>- <td>/v1/{project=projects/*}:testWebhook</td>- <td>*</td>- </tr>+ <tr>+ <td>force_issue_labels</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ProtectionRule">ProtectionRule</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A unique identifier for a node in UUID format. </p></td>+ </tr>- <tr>- <td>ListDatabaseGroups</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/databaseGroups</td>- <td></td>- </tr>+ <tr>+ <td>target</td>+ <td><a href="#bytebase.v1.ProtectionRule.Target">ProtectionRule.Target</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>name_filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the branch/changelist or wildcard. </p></td>+ </tr>+ <tr>+ <td>allowed_roles</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The roles allowed to create branches or changelists, rebase branches, delete branches.+Format: roles/projectOwner. </p></td>+ </tr>- <tr>- <td>GetDatabaseGroup</td>- <td>GET</td>- <td>/v1/{name=projects/*/databaseGroups/*}</td>- <td></td>- </tr>+ <tr>+ <td>branch_source</td>+ <td><a href="#bytebase.v1.ProtectionRule.BranchSource">ProtectionRule.BranchSource</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ProtectionRules">ProtectionRules</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the protection rules.+Format: projects/{project}/protectionRules </p></td>+ </tr>- <tr>- <td>CreateDatabaseGroup</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/databaseGroups</td>- <td>database_group</td>- </tr>+ <tr>+ <td>rules</td>+ <td><a href="#bytebase.v1.ProtectionRule">ProtectionRule</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>webhook</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td></td>+ <td><p>The webhook to remove. Identified by its url. </p></td>+ </tr>- <tr>- <td>UpdateDatabaseGroup</td>- <td>PATCH</td>- <td>/v1/{database_group.name=projects/*/databaseGroups/*}</td>- <td>database_group</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Schedule">Schedule</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>-+ <tr>+ <td>deployments</td>+ <td><a href="#bytebase.v1.ScheduleDeployment">ScheduleDeployment</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ScheduleDeployment">ScheduleDeployment</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>- <tr>- <td>DeleteDatabaseGroup</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/databaseGroups/*}</td>- <td></td>- </tr>+ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The title of the deployment (stage) in a schedule. </p></td>+ </tr>-+ <tr>+ <td>spec</td>+ <td><a href="#bytebase.v1.DeploymentSpec">DeploymentSpec</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SchemaGroup">SchemaGroup</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>- <tr>- <td>ListSchemaGroups</td>- <td>GET</td>- <td>/v1/{parent=projects/*/databaseGroups/*}/schemaGroups</td>- <td></td>- </tr>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the schema group.+Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td>+ </tr>-+ <tr>+ <td>table_expr</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p>The table condition that is associated with this schema group.+The table_placeholder in the sheet script will be rendered to the actual table name. </p></td>+ </tr>+ <tr>+ <td>table_placeholder</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The table placeholder used for rendering. For example, if set to "tbl", all the table name+"tbl" in the SQL script will be rendered to the actual table name. </p></td>+ </tr>- <tr>- <td>GetSchemaGroup</td>- <td>GET</td>- <td>/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}</td>- <td></td>- </tr>+ <tr>+ <td>matched_tables</td>+ <td><a href="#bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</a></td>+ <td>repeated</td>+ <td><p>The list of databases that match the database group condition. </p></td>+ </tr>-+ <tr>+ <td>unmatched_tables</td>+ <td><a href="#bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</a></td>+ <td>repeated</td>+ <td><p>The list of databases that match the database group condition. </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SchemaGroup.Table">SchemaGroup.Table</h3>+ <p>In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.</p><p>Its keyword will be {{SCHEMA}}.</p><p>All the expressions will be used to filter the schema objects in DatabaseSchema.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>- <tr>- <td>CreateSchemaGroup</td>- <td>POST</td>- <td>/v1/{parent=projects/*/databaseGroups/*}/schemaGroups</td>- <td>schema_group</td>- </tr>+ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the database.+Format: instances/{instance}/databases/{database} </p></td>+ </tr>-+ <tr>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>- <tr>- <td>UpdateSchemaGroup</td>- <td>PATCH</td>- <td>/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}</td>- <td>schema_group</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>-+ <tr>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Show deleted projects if specified. </p></td>+ </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>- <tr>- <td>DeleteSchemaGroup</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}</td>- <td></td>- </tr>+ <tr>+ <td>projects</td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>repeated</td>+ <td><p>The projects from the specified request. </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>project</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the project to set the IAM policy.+Format: projects/{project} </p></td>+ </tr>- <tr>- <td>GetProjectProtectionRules</td>- <td>GET</td>- <td>/v1/{name=projects/*/protectionRules}</td>- <td></td>- </tr>+ <tr>+ <td>policy</td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TestWebhookRequest">TestWebhookRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>project</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the project which owns the webhook to test.+Format: projects/{project} </p></td>+ </tr>- <tr>- <td>UpdateProjectProtectionRules</td>- <td>PATCH</td>- <td>/v1/{protection_rules.name=projects/*/protectionRules}</td>- <td>*</td>- </tr>+ <tr>+ <td>webhook</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td></td>+ <td><p>The webhook to test. Identified by its url. </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/risk_service.proto">v1/risk_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreateRiskRequest">CreateRiskRequest</h3>+ <h3 id="bytebase.v1.TestWebhookResponse">TestWebhookResponse</h3><p></p>@@ -20137,10 +20308,10 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>risk</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>error</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The risk to create. </p></td>+ <td><p>The result of the test, empty if the test is successful. </p></td></tr></tbody>@@ -20150,7 +20321,7 @@ The API will default to the BASIC view.</p></td>- <h3 id="bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</h3>+ <h3 id="bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</h3><p></p>@@ -20164,8 +20335,8 @@ The API will default to the BASIC view.</p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the risk to delete.-Format: risks/{risk} </p></td>+ <td><p>The name of the deleted project.+Format: projects/{project} </p></td></tr></tbody>@@ -20175,7 +20346,7 @@ Format: risks/{risk} </p></td>- <h3 id="bytebase.v1.ListRisksRequest">ListRisksRequest</h3>+ <h3 id="bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</h3><p></p>@@ -20186,24 +20357,20 @@ Format: risks/{risk} </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>database_group</td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td><td></td>- <td><p>The maximum number of risks to return. The service may return fewer than-this value.-If unspecified, at most 50 risks will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>+ <td><p>The database group to update.++The database group's `name` field is used to identify the database group to update.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr><tr>- <td>page_token</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>A page token, received from a previous `ListRisks` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `LiskRisks` must match-the call that provided the page token. </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -20213,7 +20380,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListRisksResponse">ListRisksResponse</h3>+ <h3 id="bytebase.v1.UpdateDeploymentConfigRequest">UpdateDeploymentConfigRequest</h3><p></p>@@ -20224,18 +20391,34 @@ the call that provided the page token. </p></td><tbody><tr>- <td>risks</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>- <td>repeated</td>+ <td>config</td>+ <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>+ <td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateProjectProtectionRulesRequest">UpdateProjectProtectionRulesRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>protection_rules</td>+ <td><a href="#bytebase.v1.ProtectionRules">ProtectionRules</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p> </p></td></tr></tbody>@@ -20245,7 +20428,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Risk">Risk</h3>+ <h3 id="bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</h3><p></p>@@ -20256,52 +20439,85 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>project</td>+ <td><a href="#bytebase.v1.Project">Project</a></td><td></td>- <td><p>Format: risks/{risk} </p></td>+ <td><p>The project to update.++The project's `name` field is used to identify the project to update.+Format: projects/{project} </p></td></tr><tr>- <td>uid</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>system-generated unique identifier. </p></td>+ <td><p>The list of fields to update. </p></td></tr>- <tr>- <td>source</td>- <td><a href="#bytebase.v1.Risk.Source">Risk.Source</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateSchemaGroupRequest">UpdateSchemaGroupRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>schema_group</td>+ <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td><td></td>- <td><p> </p></td>+ <td><p>The schema group to update.++The schema group's `name` field is used to identify the schema group to update.+Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} </p></td></tr><tr>- <td>level</td>- <td><a href="#int32">int32</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>active</td>- <td><a href="#bool">bool</a></td>+ <td>webhook</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td>- <td><p> </p></td>+ <td><p>The webhook to modify. </p></td></tr><tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -20311,7 +20527,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</h3>+ <h3 id="bytebase.v1.Webhook">Webhook</h3><p></p>@@ -20322,20 +20538,47 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>risk</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The risk to update.--The risk's `name` field is used to identify the risk to update.-Format: risks/{risk} </p></td>+ <td><p>name is the name of the webhook, generated by the server.+format: projects/{project}/webhooks/{webhook} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.Webhook.Type">Webhook.Type</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>type is the type of the webhook. </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>title is the title of the webhook. </p></td>+ </tr>++ <tr>+ <td>url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>url is the url of the webhook, should be unique within the project. </p></td>+ </tr>++ <tr>+ <td>notification_types</td>+ <td><a href="#bytebase.v1.Activity.Type">Activity.Type</a></td>+ <td>repeated</td>+ <td><p>notification_types is the list of activities types that the webhook is interested in.+Bytebase will only send notifications to the webhook if the activity type is in the list.+It should not be empty, and shoule be a subset of the following:+- TYPE_ISSUE_CREATED+- TYPE_ISSUE_STATUS_UPDATE+- TYPE_ISSUE_PIPELINE_STAGE_UPDATE+- TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE+- TYPE_ISSUE_FIELD_UPDATE+- TYPE_ISSUE_COMMENT_CREAT </p></td></tr></tbody>@@ -20347,7 +20590,7 @@ Format: risks/{risk} </p></td>- <h3 id="bytebase.v1.Risk.Source">Risk.Source</h3>+ <h3 id="bytebase.v1.Activity.Type">Activity.Type</h3><p></p><table class="enum-table"><thead>@@ -20356,372 +20599,418 @@ Format: risks/{risk} </p></td><tbody><tr>- <td>SOURCE_UNSPECIFIED</td>+ <td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>DDL</td>+ <td>TYPE_NOTIFY_ISSUE_APPROVED</td>+ <td>23</td>+ <td><p>Notifications via webhooks.++TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td>+ </tr>++ <tr>+ <td>TYPE_NOTIFY_PIPELINE_ROLLOUT</td>+ <td>24</td>+ <td><p>TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_CREATE</td><td>1</td>- <td><p></p></td>+ <td><p>Issue related activity types.++TYPE_ISSUE_CREATE represents creating an issue.</p></td></tr><tr>- <td>DML</td>+ <td>TYPE_ISSUE_COMMENT_CREATE</td><td>2</td>- <td><p></p></td>+ <td><p>TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue.</p></td></tr><tr>- <td>CREATE_DATABASE</td>+ <td>TYPE_ISSUE_FIELD_UPDATE</td><td>3</td>- <td><p></p></td>+ <td><p>TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, assignee, etc.</p></td></tr><tr>- <td>REQUEST_QUERY</td>+ <td>TYPE_ISSUE_STATUS_UPDATE</td><td>4</td>- <td><p></p></td>+ <td><p>TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now.</p></td></tr><tr>- <td>REQUEST_EXPORT</td>+ <td>TYPE_ISSUE_APPROVAL_NOTIFY</td>+ <td>21</td>+ <td><p>TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE</td><td>5</td>- <td><p></p></td>+ <td><p>TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE</td>+ <td>6</td>+ <td><p>TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE</td>+ <td>22</td>+ <td><p>TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE</td>+ <td>8</td>+ <td><p>TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE</td>+ <td>9</td>+ <td><p>TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time.</p></td>+ </tr>++ <tr>+ <td>TYPE_MEMBER_CREATE</td>+ <td>10</td>+ <td><p>Member related activity types.++TYPE_MEMBER_CREATE represents creating a members.</p></td>+ </tr>++ <tr>+ <td>TYPE_MEMBER_ROLE_UPDATE</td>+ <td>11</td>+ <td><p>TYPE_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER.</p></td>+ </tr>++ <tr>+ <td>TYPE_MEMBER_ACTIVATE</td>+ <td>12</td>+ <td><p>TYPE_MEMBER_ACTIVATE represents activating a deactivated member.</p></td>+ </tr>++ <tr>+ <td>TYPE_MEMBER_DEACTIVATE</td>+ <td>13</td>+ <td><p>TYPE_MEMBER_DEACTIVATE represents deactivating an active member.</p></td>+ </tr>++ <tr>+ <td>TYPE_PROJECT_REPOSITORY_PUSH</td>+ <td>14</td>+ <td><p>Project related activity types.++TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository.</p></td>+ </tr>++ <tr>+ <td>TYPE_PROJECT_DATABASE_TRANSFER</td>+ <td>15</td>+ <td><p>TYPE_PROJECT_DATABASE_TRANFER represents transfering the database from one project to another.</p></td>+ </tr>++ <tr>+ <td>TYPE_PROJECT_MEMBER_CREATE</td>+ <td>16</td>+ <td><p>TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project.</p></td>+ </tr>++ <tr>+ <td>TYPE_PROJECT_MEMBER_DELETE</td>+ <td>17</td>+ <td><p>TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project.</p></td>+ </tr>++ <tr>+ <td>TYPE_SQL_EDITOR_QUERY</td>+ <td>19</td>+ <td><p>SQL Editor related activity types.+TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.DatabaseGroupView">DatabaseGroupView</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>DATABASE_GROUP_VIEW_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The default / unset value.+The API will default to the BASIC view.</p></td>+ </tr>++ <tr>+ <td>DATABASE_GROUP_VIEW_BASIC</td>+ <td>1</td>+ <td><p>Include basic information about the database group, but exclude the list of matched databases and unmatched databases.</p></td>+ </tr>++ <tr>+ <td>DATABASE_GROUP_VIEW_FULL</td>+ <td>2</td>+ <td><p>Include everything.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.OperatorType">OperatorType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>OPERATOR_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The operator is not specified.</p></td>+ </tr>++ <tr>+ <td>OPERATOR_TYPE_IN</td>+ <td>1</td>+ <td><p>The operator is "In".</p></td>+ </tr>++ <tr>+ <td>OPERATOR_TYPE_EXISTS</td>+ <td>2</td>+ <td><p>The operator is "Exists".</p></td></tr><tr>- <td>DATA_EXPORT</td>- <td>6</td>- <td><p></p></td>+ <td>OPERATOR_TYPE_NOT_IN</td>+ <td>3</td>+ <td><p>The operator is "Not In".</p></td></tr></tbody></table>----- <h3 id="bytebase.v1.RiskService">RiskService</h3>+ <h3 id="bytebase.v1.ProtectionRule.BranchSource">ProtectionRule.BranchSource</h3><p></p><table class="enum-table"><thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody><tr>- <td>ListRisks</td>- <td><a href="#bytebase.v1.ListRisksRequest">ListRisksRequest</a></td>- <td><a href="#bytebase.v1.ListRisksResponse">ListRisksResponse</a></td>+ <td>BRANCH_SOURCE_UNSPECIFIED</td>+ <td>0</td><td><p></p></td></tr><tr>- <td>CreateRisk</td>- <td><a href="#bytebase.v1.CreateRiskRequest">CreateRiskRequest</a></td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>DATABASE</td>+ <td>1</td><td><p></p></td></tr>+ </tbody>+ </table>++ <h3 id="bytebase.v1.ProtectionRule.Target">ProtectionRule.Target</h3>+ <p>The type of target.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>UpdateRisk</td>- <td><a href="#bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</a></td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>PROTECTION_TARGET_UNSPECIFIED</td>+ <td>0</td><td><p></p></td></tr><tr>- <td>DeleteRisk</td>- <td><a href="#bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>BRANCH</td>+ <td>1</td><td><p></p></td></tr>- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead><tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>+ <td>CHANGELIST</td>+ <td>2</td>+ <td><p></p></td></tr>- </thead>- <tbody>--- <tr>- <td>ListRisks</td>- <td>GET</td>- <td>/v1/risks</td>- <td></td>- </tr>-+ </tbody>+ </table>++ <h3 id="bytebase.v1.SchemaGroupView">SchemaGroupView</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>--<tr>- <td>CreateRisk</td>- <td>POST</td>- <td>/v1/risks</td>- <td>risk</td>+ <td>SCHEMA_GROUP_VIEW_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The default / unset value.+The API will default to the BASIC view.</p></td></tr>---<tr>- <td>UpdateRisk</td>- <td>PATCH</td>- <td>/v1/{risk.name=risks/*}</td>- <td>risk</td>+ <td>SCHEMA_GROUP_VIEW_BASIC</td>+ <td>1</td>+ <td><p>Include basic information about the schema group, but exclude the list of matched tables and unmatched tables.</p></td></tr>---<tr>- <td>DeleteRisk</td>- <td>DELETE</td>- <td>/v1/{name=risks/*}</td>- <td></td>- </tr>--- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/role_service.proto">v1/role_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.CreateRoleRequest">CreateRoleRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>role</td>- <td><a href="#bytebase.v1.Role">Role</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>role_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The ID to use for the role, which will become the final component-of the role's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][A-Z][0-9]/. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: roles/{role} </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListRolesRequest">ListRolesRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of roles to return. The service may return fewer than-this value.-If unspecified, at most 50 reviews will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `ListRoles` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match-the call that provided the page token. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListRolesResponse">ListRolesResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>roles</td>- <td><a href="#bytebase.v1.Role">Role</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>-- </tbody>- </table>----+ <td>SCHEMA_GROUP_VIEW_FULL</td>+ <td>2</td>+ <td><p>Include everything.</p></td>+ </tr>++ </tbody>+ </table>- <h3 id="bytebase.v1.Role">Role</h3>+ <h3 id="bytebase.v1.TenantMode">TenantMode</h3><p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: roles/{role} </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>permissions</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>----+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TENANT_MODE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TENANT_MODE_DISABLED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TENANT_MODE_ENABLED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <h3 id="bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</h3>+ <h3 id="bytebase.v1.Webhook.Type">Webhook.Type</h3><p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>role</td>- <td><a href="#bytebase.v1.Role">Role</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>----+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_SLACK</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_DISCORD</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_TEAMS</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_DINGTALK</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_FEISHU</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_WECOM</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_CUSTOM</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>-+ <h3 id="bytebase.v1.Workflow">Workflow</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>WORKFLOW_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UI</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>VCS</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <h3 id="bytebase.v1.RoleService">RoleService</h3>+ <h3 id="bytebase.v1.ProjectService">ProjectService</h3><p></p><table class="enum-table"><thead>@@ -20730,33 +21019,201 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>ListRoles</td>- <td><a href="#bytebase.v1.ListRolesRequest">ListRolesRequest</a></td>- <td><a href="#bytebase.v1.ListRolesResponse">ListRolesResponse</a></td>+ <td>GetProject</td>+ <td><a href="#bytebase.v1.GetProjectRequest">GetProjectRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListProjects</td>+ <td><a href="#bytebase.v1.ListProjectsRequest">ListProjectsRequest</a></td>+ <td><a href="#bytebase.v1.ListProjectsResponse">ListProjectsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SearchProjects</td>+ <td><a href="#bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</a></td>+ <td><a href="#bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateProject</td>+ <td><a href="#bytebase.v1.CreateProjectRequest">CreateProjectRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateProject</td>+ <td><a href="#bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteProject</td>+ <td><a href="#bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UndeleteProject</td>+ <td><a href="#bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetIamPolicy</td>+ <td><a href="#bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</a></td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BatchGetIamPolicy</td>+ <td><a href="#bytebase.v1.BatchGetIamPolicyRequest">BatchGetIamPolicyRequest</a></td>+ <td><a href="#bytebase.v1.BatchGetIamPolicyResponse">BatchGetIamPolicyResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SetIamPolicy</td>+ <td><a href="#bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</a></td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td><td><p></p></td></tr><tr>- <td>CreateRole</td>- <td><a href="#bytebase.v1.CreateRoleRequest">CreateRoleRequest</a></td>- <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>GetDeploymentConfig</td>+ <td><a href="#bytebase.v1.GetDeploymentConfigRequest">GetDeploymentConfigRequest</a></td>+ <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td><td><p></p></td></tr><tr>- <td>UpdateRole</td>- <td><a href="#bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</a></td>- <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>UpdateDeploymentConfig</td>+ <td><a href="#bytebase.v1.UpdateDeploymentConfigRequest">UpdateDeploymentConfigRequest</a></td>+ <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td><td><p></p></td></tr><tr>- <td>DeleteRole</td>- <td><a href="#bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</a></td>+ <td>AddWebhook</td>+ <td><a href="#bytebase.v1.AddWebhookRequest">AddWebhookRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateWebhook</td>+ <td><a href="#bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RemoveWebhook</td>+ <td><a href="#bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TestWebhook</td>+ <td><a href="#bytebase.v1.TestWebhookRequest">TestWebhookRequest</a></td>+ <td><a href="#bytebase.v1.TestWebhookResponse">TestWebhookResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListDatabaseGroups</td>+ <td><a href="#bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</a></td>+ <td><a href="#bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetDatabaseGroup</td>+ <td><a href="#bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateDatabaseGroup</td>+ <td><a href="#bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateDatabaseGroup</td>+ <td><a href="#bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteDatabaseGroup</td>+ <td><a href="#bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListSchemaGroups</td>+ <td><a href="#bytebase.v1.ListSchemaGroupsRequest">ListSchemaGroupsRequest</a></td>+ <td><a href="#bytebase.v1.ListSchemaGroupsResponse">ListSchemaGroupsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetSchemaGroup</td>+ <td><a href="#bytebase.v1.GetSchemaGroupRequest">GetSchemaGroupRequest</a></td>+ <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateSchemaGroup</td>+ <td><a href="#bytebase.v1.CreateSchemaGroupRequest">CreateSchemaGroupRequest</a></td>+ <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateSchemaGroup</td>+ <td><a href="#bytebase.v1.UpdateSchemaGroupRequest">UpdateSchemaGroupRequest</a></td>+ <td><a href="#bytebase.v1.SchemaGroup">SchemaGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteSchemaGroup</td>+ <td><a href="#bytebase.v1.DeleteSchemaGroupRequest">DeleteSchemaGroupRequest</a></td><td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr>+ <tr>+ <td>GetProjectProtectionRules</td>+ <td><a href="#bytebase.v1.GetProjectProtectionRulesRequest">GetProjectProtectionRulesRequest</a></td>+ <td><a href="#bytebase.v1.ProtectionRules">ProtectionRules</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateProjectProtectionRules</td>+ <td><a href="#bytebase.v1.UpdateProjectProtectionRulesRequest">UpdateProjectProtectionRulesRequest</a></td>+ <td><a href="#bytebase.v1.ProtectionRules">ProtectionRules</a></td>+ <td><p></p></td>+ </tr>+</tbody></table>@@ -20772,420 +21229,302 @@ If this field is omitted, there are no subsequent pages. </p></td><td>Pattern</td><td>Body</td></tr>- </thead>- <tbody>+ </thead>+ <tbody>++++ <tr>+ <td>GetProject</td>+ <td>GET</td>+ <td>/v1/{name=projects/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>ListProjects</td>+ <td>GET</td>+ <td>/v1/projects</td>+ <td></td>+ </tr>+++++ <tr>+ <td>SearchProjects</td>+ <td>GET</td>+ <td>/v1/projects:search</td>+ <td></td>+ </tr>+++++ <tr>+ <td>CreateProject</td>+ <td>POST</td>+ <td>/v1/projects</td>+ <td>project</td>+ </tr>+++++ <tr>+ <td>UpdateProject</td>+ <td>PATCH</td>+ <td>/v1/{project.name=projects/*}</td>+ <td>project</td>+ </tr>+++++ <tr>+ <td>DeleteProject</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UndeleteProject</td>+ <td>POST</td>+ <td>/v1/{name=projects/*}:undelete</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>GetIamPolicy</td>+ <td>GET</td>+ <td>/v1/{project=projects/*}:getIamPolicy</td>+ <td></td>+ </tr>+++++ <tr>+ <td>BatchGetIamPolicy</td>+ <td>GET</td>+ <td>/v1/{scope=*/*}/iamPolicies:batchGet</td>+ <td></td>+ </tr>+++++ <tr>+ <td>SetIamPolicy</td>+ <td>POST</td>+ <td>/v1/{project=projects/*}:setIamPolicy</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>GetDeploymentConfig</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/deploymentConfigs/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UpdateDeploymentConfig</td>+ <td>PATCH</td>+ <td>/v1/{config.name=projects/*/deploymentConfigs/*}</td>+ <td>config</td>+ </tr>+++++ <tr>+ <td>AddWebhook</td>+ <td>POST</td>+ <td>/v1/{project=projects/*}:addWebhook</td>+ <td>*</td>+ </tr>+<tr>- <td>ListRoles</td>- <td>GET</td>- <td>/v1/roles</td>- <td></td>+ <td>UpdateWebhook</td>+ <td>POST</td>+ <td>/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook</td>+ <td>*</td></tr><tr>- <td>CreateRole</td>+ <td>RemoveWebhook</td><td>POST</td>- <td>/v1/roles</td>- <td>role</td>+ <td>/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook</td>+ <td>*</td></tr><tr>- <td>UpdateRole</td>- <td>PATCH</td>- <td>/v1/{role.name=roles/*}</td>- <td>role</td>+ <td>TestWebhook</td>+ <td>POST</td>+ <td>/v1/{project=projects/*}:testWebhook</td>+ <td>*</td></tr><tr>- <td>DeleteRole</td>- <td>DELETE</td>- <td>/v1/{name=roles/*}</td>+ <td>ListDatabaseGroups</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/databaseGroups</td><td></td></tr>- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/rollout_service.proto">v1/rollout_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the parent of the taskRuns.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}-Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. </p></td>- </tr>- <tr>- <td>task_runs</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The taskRuns to cancel.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>- </tr>+ <tr>+ <td>GetDatabaseGroup</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/databaseGroups/*}</td>+ <td></td>+ </tr>- <tr>- <td>reason</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</h3>- <p></p>------ <h3 id="bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the parent of the tasks.-Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>- </tr>+ <tr>+ <td>CreateDatabaseGroup</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/databaseGroups</td>+ <td>database_group</td>+ </tr>- <tr>- <td>tasks</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The tasks to run.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>+- <tr>- <td>reason</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</h3>- <p></p>------ <h3 id="bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>UpdateDatabaseGroup</td>+ <td>PATCH</td>+ <td>/v1/{database_group.name=projects/*/databaseGroups/*}</td>+ <td>database_group</td>+ </tr>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the parent of the tasks.-Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>- </tr>+- <tr>- <td>tasks</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The tasks to skip.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>- <tr>- <td>reason</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>DeleteDatabaseGroup</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/databaseGroups/*}</td>+ <td></td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</h3>- <p></p>------ <h3 id="bytebase.v1.CreatePlanRequest">CreatePlanRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent project where this plan will be created.-Format: projects/{project} </p></td>- </tr>- <tr>- <td>plan</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td></td>- <td><p>The plan to create. </p></td>- </tr>+ <tr>+ <td>ListSchemaGroups</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/databaseGroups/*}/schemaGroups</td>+ <td></td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>++++ <tr>+ <td>GetSchemaGroup</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}</td>+ <td></td>+ </tr>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent project where this rollout will be created.-Format: projects/{project} </p></td>- </tr>+- <tr>- <td>rollout</td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td></td>- <td><p>The rollout to create. </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetPlanRequest">GetPlanRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>CreateSchemaGroup</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/databaseGroups/*}/schemaGroups</td>+ <td>schema_group</td>+ </tr>- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the plan to retrieve.-Format: projects/{project}/plans/{plan} </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.GetRolloutRequest">GetRolloutRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the rollout to retrieve.-Format: projects/{project}/rollouts/{rollout} </p></td>- </tr>+ <tr>+ <td>UpdateSchemaGroup</td>+ <td>PATCH</td>+ <td>/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}</td>+ <td>schema_group</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListPlanCheckRunsRequest">ListPlanCheckRunsRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>DeleteSchemaGroup</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}</td>+ <td></td>+ </tr>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of plan check runs.-Format: projects/{project}/plans/{plan} </p></td>- </tr>+- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of plan check runs to return. The service may return fewer than-this value.-If unspecified, at most 50 plans will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `ListPlanCheckRuns` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListPlanCheckRuns` must match-the call that provided the page token. </p></td>- </tr>+ <tr>+ <td>GetProjectProtectionRules</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/protectionRules}</td>+ <td></td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListPlanCheckRunsResponse">ListPlanCheckRunsResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>plan_check_runs</td>- <td><a href="#bytebase.v1.PlanCheckRun">PlanCheckRun</a></td>- <td>repeated</td>- <td><p>The plan check runs from the specified request. </p></td>- </tr>- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>+ <tr>+ <td>UpdateProjectProtectionRules</td>+ <td>PATCH</td>+ <td>/v1/{protection_rules.name=projects/*/protectionRules}</td>+ <td>*</td>+ </tr>+</tbody></table>--+- <h3 id="bytebase.v1.ListPlansRequest">ListPlansRequest</h3>+ <div class="file-heading">+ <h2 id="v1/risk_service.proto">v1/risk_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateRiskRequest">CreateRiskRequest</h3><p></p>@@ -21196,33 +21535,10 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of plans.-Format: projects/{project}-Use "projects/-" to list all plans from all projects. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of plans to return. The service may return fewer than-this value.-If unspecified, at most 50 plans will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>+ <td>risk</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td><td></td>- <td><p>A page token, received from a previous `ListPlans` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListPlans` must match-the call that provided the page token. </p></td>+ <td><p>The risk to create. </p></td></tr></tbody>@@ -21232,7 +21548,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListPlansResponse">ListPlansResponse</h3>+ <h3 id="bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</h3><p></p>@@ -21243,18 +21559,11 @@ the call that provided the page token. </p></td><tbody><tr>- <td>plans</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td>repeated</td>- <td><p>The plans from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The name of the risk to delete.+Format: risks/{risk} </p></td></tr></tbody>@@ -21264,7 +21573,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</h3>+ <h3 id="bytebase.v1.ListRisksRequest">ListRisksRequest</h3><p></p>@@ -21272,24 +21581,15 @@ If this field is omitted, there are no subsequent pages. </p></td><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of plans.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}-Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. </p></td>- </tr>+ <tbody><tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>The maximum number of taskRuns to return. The service may return fewer than+ <td><p>The maximum number of risks to return. The service may return fewer thanthis value.-If unspecified, at most 50 taskRuns will be returned.+If unspecified, at most 50 risks will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>@@ -21297,10 +21597,10 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListRolloutTaskRuns` call.+ <td><p>A page token, received from a previous `ListRisks` call.Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListRolloutTaskRuns` must match+When paginating, all other parameters provided to `LiskRisks` must matchthe call that provided the page token. </p></td></tr>@@ -21311,7 +21611,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</h3>+ <h3 id="bytebase.v1.ListRisksResponse">ListRisksResponse</h3><p></p>@@ -21322,10 +21622,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>task_runs</td>- <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td>+ <td>risks</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td><td>repeated</td>- <td><p>The taskRuns from the specified request. </p></td>+ <td><p> </p></td></tr><tr>@@ -21343,7 +21643,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Plan">Plan</h3>+ <h3 id="bytebase.v1.Risk">Risk</h3><p></p>@@ -21357,24 +21657,21 @@ If this field is omitted, there are no subsequent pages. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the plan.-`plan` is a system generated ID.-Format: projects/{project}/plans/{plan} </p></td>+ <td><p>Format: risks/{risk} </p></td></tr><tr><td>uid</td><td><a href="#string">string</a></td><td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>+ <td><p>system-generated unique identifier. </p></td></tr><tr>- <td>issue</td>- <td><a href="#string">string</a></td>+ <td>source</td>+ <td><a href="#bytebase.v1.Risk.Source">Risk.Source</a></td><td></td>- <td><p>The resource name of the issue associated with this plan.-Format: projects/{project}/issues/{issue} </p></td>+ <td><p> </p></td></tr><tr>@@ -21385,36 +21682,22 @@ Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>description</td>- <td><a href="#string">string</a></td>+ <td>level</td>+ <td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr><tr>- <td>steps</td>- <td><a href="#bytebase.v1.Plan.Step">Plan.Step</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>vcs_source</td>- <td><a href="#bytebase.v1.Plan.VCSSource">Plan.VCSSource</a></td>+ <td>active</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td><td><p> </p></td></tr>@@ -21426,7 +21709,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</h3>+ <h3 id="bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</h3><p></p>@@ -21437,75 +21720,195 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>target</td>- <td><a href="#string">string</a></td>+ <td>risk</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td><td></td>- <td><p>The resource name of the target.-Format: instances/{instance-id}/databases/{database-name}.-Format: projects/{project}/databaseGroups/{databaseGroup}.-Format: projects/{project}/deploymentConfigs/default. The plan should-have a single step and single spec for the deployment configuration type. </p></td>+ <td><p>The risk to update.++The risk's `name` field is used to identify the risk to update.+Format: risks/{risk} </p></td></tr><tr>- <td>sheet</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>The resource name of the sheet.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p>The list of fields to update. </p></td></tr>- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++++ <h3 id="bytebase.v1.Risk.Source">Risk.Source</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SOURCE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DDL</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DML</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CREATE_DATABASE</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REQUEST_QUERY</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REQUEST_EXPORT</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATA_EXPORT</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.RiskService">RiskService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ListRisks</td>+ <td><a href="#bytebase.v1.ListRisksRequest">ListRisksRequest</a></td>+ <td><a href="#bytebase.v1.ListRisksResponse">ListRisksResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateRisk</td>+ <td><a href="#bytebase.v1.CreateRiskRequest">CreateRiskRequest</a></td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateRisk</td>+ <td><a href="#bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</a></td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteRisk</td>+ <td><a href="#bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr>+ </thead>+ <tbody>+- <tr>- <td>schema_version</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>schema_version is parsed from VCS file name.-It is automatically generated in the UI workflow. </p></td>- </tr>- <tr>- <td>rollback_enabled</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If RollbackEnabled, build the RollbackSheetID of the task after the task is completed. </p></td>- </tr>+ <tr>+ <td>ListRisks</td>+ <td>GET</td>+ <td>/v1/risks</td>+ <td></td>+ </tr>- <tr>- <td>rollback_detail</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail">Plan.ChangeDatabaseConfig.RollbackDetail</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>+- <tr>- <td>ghost_flags</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry">Plan.ChangeDatabaseConfig.GhostFlagsEntry</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>- <tr>- <td>pre_update_backup_detail</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail">Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</a></td>- <td>optional</td>- <td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td>- </tr>+ <tr>+ <td>CreateRisk</td>+ <td>POST</td>+ <td>/v1/risks</td>+ <td>risk</td>+ </tr>+++++ <tr>+ <td>UpdateRisk</td>+ <td>PATCH</td>+ <td>/v1/{risk.name=risks/*}</td>+ <td>risk</td>+ </tr>+++++ <tr>+ <td>DeleteRisk</td>+ <td>DELETE</td>+ <td>/v1/{name=risks/*}</td>+ <td></td>+ </tr>+</tbody></table>--+- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry">Plan.ChangeDatabaseConfig.GhostFlagsEntry</h3>+ <div class="file-heading">+ <h2 id="v1/role_service.proto">v1/role_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateRoleRequest">CreateRoleRequest</h3><p></p>@@ -21516,17 +21919,21 @@ It is automatically generated in the UI workflow. </p></td><tbody><tr>- <td>key</td>- <td><a href="#string">string</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.Role">Role</a></td><td></td><td><p> </p></td></tr><tr>- <td>value</td>+ <td>role_id</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The ID to use for the role, which will become the final component+of the role's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][A-Z][0-9]/. </p></td></tr></tbody>@@ -21536,7 +21943,7 @@ It is automatically generated in the UI workflow. </p></td>- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail">Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</h3>+ <h3 id="bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</h3><p></p>@@ -21547,11 +21954,10 @@ It is automatically generated in the UI workflow. </p></td><tbody><tr>- <td>database</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The database for keeping the backup data.-Format: instances/{instance}/databases/{database} </p></td>+ <td><p>Format: roles/{role} </p></td></tr></tbody>@@ -21561,7 +21967,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail">Plan.ChangeDatabaseConfig.RollbackDetail</h3>+ <h3 id="bytebase.v1.ListRolesRequest">ListRolesRequest</h3><p></p>@@ -21572,19 +21978,24 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>rollback_from_task</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>rollback_from_task is the task from which the rollback SQL statement is generated for this task.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ <td><p>The maximum number of roles to return. The service may return fewer than+this value.+If unspecified, at most 50 reviews will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>rollback_from_issue</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.-Format: projects/{project}/issues/{issue} </p></td>+ <td><p>A page token, received from a previous `ListRoles` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListRoles` must match+the call that provided the page token. </p></td></tr></tbody>@@ -21594,7 +22005,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</h3>+ <h3 id="bytebase.v1.ListRolesResponse">ListRolesResponse</h3><p></p>@@ -21605,69 +22016,63 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the instance on which the database is created.-Format: instances/{instance} </p></td>- </tr>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the database to create. </p></td>+ <td>roles</td>+ <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>table</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.-For example, in MongoDB, it only creates the database when we first store data in that database. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr>- <tr>- <td>character_set</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>character_set is the character set of the database. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Role">Role</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>collation</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>collation is the collation of the database. </p></td>+ <td><p>Format: roles/{role} </p></td></tr><tr>- <td>cluster</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". </p></td>+ <td><p> </p></td></tr><tr>- <td>owner</td>+ <td>description</td><td><a href="#string">string</a></td><td></td>- <td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td>+ <td><p> </p></td></tr><tr>- <td>environment</td>+ <td>permissions</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The environment resource.-Format: environments/prod where prod is the environment resource ID. </p></td>- </tr>-- <tr>- <td>labels</td>- <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry">Plan.CreateDatabaseConfig.LabelsEntry</a></td><td>repeated</td>- <td><p>labels of the database. </p></td>+ <td><p> </p></td></tr></tbody>@@ -21677,7 +22082,7 @@ Format: environments/prod where prod is the environment resource ID. </p></td>- <h3 id="bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry">Plan.CreateDatabaseConfig.LabelsEntry</h3>+ <h3 id="bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</h3><p></p>@@ -21688,15 +22093,15 @@ Format: environments/prod where prod is the environment resource ID. </p></td><tbody><tr>- <td>key</td>- <td><a href="#string">string</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.Role">Role</a></td><td></td><td><p> </p></td></tr><tr>- <td>value</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p> </p></td></tr>@@ -21706,9 +22111,121 @@ Format: environments/prod where prod is the environment resource ID. </p></td>-+++++++++ <h3 id="bytebase.v1.RoleService">RoleService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ListRoles</td>+ <td><a href="#bytebase.v1.ListRolesRequest">ListRolesRequest</a></td>+ <td><a href="#bytebase.v1.ListRolesResponse">ListRolesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateRole</td>+ <td><a href="#bytebase.v1.CreateRoleRequest">CreateRoleRequest</a></td>+ <td><a href="#bytebase.v1.Role">Role</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateRole</td>+ <td><a href="#bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</a></td>+ <td><a href="#bytebase.v1.Role">Role</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteRole</td>+ <td><a href="#bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr>+ </thead>+ <tbody>++++ <tr>+ <td>ListRoles</td>+ <td>GET</td>+ <td>/v1/roles</td>+ <td></td>+ </tr>+++++ <tr>+ <td>CreateRole</td>+ <td>POST</td>+ <td>/v1/roles</td>+ <td>role</td>+ </tr>+++++ <tr>+ <td>UpdateRole</td>+ <td>PATCH</td>+ <td>/v1/{role.name=roles/*}</td>+ <td>role</td>+ </tr>+++++ <tr>+ <td>DeleteRole</td>+ <td>DELETE</td>+ <td>/v1/{name=roles/*}</td>+ <td></td>+ </tr>+++ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/rollout_service.proto">v1/rollout_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+- <h3 id="bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</h3>+ <h3 id="bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</h3><p></p>@@ -21719,34 +22236,27 @@ Format: environments/prod where prod is the environment resource ID. </p></td><tbody><tr>- <td>target</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the target.-Format: instances/{instance-id}/databases/{database-name} </p></td>+ <td><p>The name of the parent of the taskRuns.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. </p></td></tr><tr>- <td>sheet</td>+ <td>task_runs</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the sheet.-Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>format</td>- <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>- <td></td>- <td><p>The format of the exported file. </p></td>+ <td>repeated</td>+ <td><p>The taskRuns to cancel.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr><tr>- <td>password</td>+ <td>reason</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The zip password provide by users.-Leave it empty if no needs to encrypt the zip file. </p></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -21756,7 +22266,14 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Plan.Spec">Plan.Spec</h3>+ <h3 id="bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</h3><p></p>@@ -21767,44 +22284,24 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>earliest_allowed_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>earliest_allowed_time the earliest execution time of the change. </p></td>- </tr>-- <tr>- <td>id</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>A UUID4 string that uniquely identifies the Spec. </p></td>+ <td><p>The name of the parent of the tasks.+Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td></tr><tr>- <td>depends_on_specs</td>+ <td>tasks</td><td><a href="#string">string</a></td><td>repeated</td>- <td><p>IDs of the specs that this spec depends on.-Must be a subset of the specs in the same step. </p></td>- </tr>-- <tr>- <td>create_database_config</td>- <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>change_database_config</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The tasks to run.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td></tr><tr>- <td>export_data_config</td>- <td><a href="#bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</a></td>+ <td>reason</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -21816,7 +22313,14 @@ Must be a subset of the specs in the same step. </p></td>- <h3 id="bytebase.v1.Plan.Step">Plan.Step</h3>+ <h3 id="bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</h3><p></p>@@ -21827,16 +22331,25 @@ Must be a subset of the specs in the same step. </p></td><tbody><tr>- <td>title</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>TODO: implement </p></td>+ <td><p>The name of the parent of the tasks.+Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td></tr><tr>- <td>specs</td>- <td><a href="#bytebase.v1.Plan.Spec">Plan.Spec</a></td>+ <td>tasks</td>+ <td><a href="#string">string</a></td><td>repeated</td>+ <td><p>The tasks to skip.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ </tr>++ <tr>+ <td>reason</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr>@@ -21847,7 +22360,14 @@ Must be a subset of the specs in the same step. </p></td>- <h3 id="bytebase.v1.Plan.VCSSource">Plan.VCSSource</h3>+ <h3 id="bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</h3><p></p>@@ -21858,26 +22378,18 @@ Must be a subset of the specs in the same step. </p></td><tbody><tr>- <td>vcs_type</td>- <td><a href="#bytebase.v1.VCSType">VCSType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>vcs_connector</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>Optional.-If present, we will update the pull request for rollout status.-Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>+ <td><p>The parent project where this rollout will be created.+Format: projects/{project} </p></td></tr><tr>- <td>pull_request_url</td>- <td><a href="#string">string</a></td>+ <td>rollout</td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td><td></td>- <td><p> </p></td>+ <td><p>The rollout to create. </p></td></tr></tbody>@@ -21887,7 +22399,7 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>- <h3 id="bytebase.v1.PlanCheckRun">PlanCheckRun</h3>+ <h3 id="bytebase.v1.GetRolloutRequest">GetRolloutRequest</h3><p></p>@@ -21901,63 +22413,8 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} </p></td>- </tr>-- <tr>- <td>uid</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The system-assigned, unique identifier for a resource. </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.PlanCheckRun.Type">PlanCheckRun.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>status</td>- <td><a href="#bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: project/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>results</td>- <td><a href="#bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>error is set if the Status is FAILED. </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the rollout to retrieve.+Format: projects/{project}/rollouts/{rollout} </p></td></tr></tbody>@@ -21967,7 +22424,7 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>- <h3 id="bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</h3>+ <h3 id="bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</h3><p></p>@@ -21978,45 +22435,10 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td><tbody><tr>- <td>status</td>- <td><a href="#bytebase.v1.PlanCheckRun.Result.Status">PlanCheckRun.Result.Status</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>content</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>code</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>sql_summary_report</td>- <td><a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>sql_review_report</td>- <td><a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</a></td>- <td></td>- <td><p> </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr></tbody>@@ -22026,7 +22448,7 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>- <h3 id="bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</h3>+ <h3 id="bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</h3><p></p>@@ -22037,31 +22459,33 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td><tbody><tr>- <td>line</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>column</td>- <td><a href="#int32">int32</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The parent, which owns this collection of plans.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. </p></td></tr><tr>- <td>detail</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>The maximum number of taskRuns to return. The service may return fewer than+this value.+If unspecified, at most 50 taskRuns will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>code</td>- <td><a href="#int32">int32</a></td>+ <td>page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Code from sql review. </p></td>+ <td><p>A page token, received from a previous `ListRolloutTaskRuns` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListRolloutTaskRuns` must match+the call that provided the page token. </p></td></tr></tbody>@@ -22071,7 +22495,7 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>- <h3 id="bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</h3>+ <h3 id="bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</h3><p></p>@@ -22082,31 +22506,18 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td><tbody><tr>- <td>code</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>statement_types</td>- <td><a href="#string">string</a></td>+ <td>task_runs</td>+ <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td><td>repeated</td>- <td><p>statement_types are the types of statements that are found in the sql. </p></td>- </tr>-- <tr>- <td>affected_rows</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The taskRuns from the specified request. </p></td></tr><tr>- <td>changed_resources</td>- <td><a href="#bytebase.v1.ChangedResources">ChangedResources</a></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -22202,38 +22613,6 @@ Format: projects/{project}/plans/{plan} </p></td>- <h3 id="bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The plan to run plan checks.-Format: projects/{project}/plans/{plan} </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</h3>- <p></p>-----<h3 id="bytebase.v1.Stage">Stage</h3><p></p>@@ -23021,284 +23400,66 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory</tr><tr>- <td>affected_rows</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>all_affected_rows</td>- <td><a href="#int32">int32</a></td>- <td>repeated</td>- <td><p>`all_affected_rows` is the affected rows of each command.-`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>end_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>plan</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td></td>- <td><p>The plan to update.--The plan's `name` field is used to identify the plan to update.-Format: projects/{project}/plans/{plan} </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>- </tr>-- </tbody>- </table>-------- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</h3>- <p>Type is the database change type.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>BASELINE</td>- <td>1</td>- <td><p>Used for establishing schema baseline, this is used when-1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.-2. Had schema drift and need to re-establish the baseline.</p></td>- </tr>-- <tr>- <td>MIGRATE</td>- <td>2</td>- <td><p>Used for DDL changes including CREATE DATABASE.</p></td>- </tr>-- <tr>- <td>MIGRATE_SDL</td>- <td>3</td>- <td><p>Used for schema changes via state-based schema migration including CREATE DATABASE.</p></td>- </tr>-- <tr>- <td>MIGRATE_GHOST</td>- <td>4</td>- <td><p>Used for DDL changes using gh-ost.</p></td>- </tr>-- <tr>- <td>DATA</td>- <td>6</td>- <td><p>Used for DML change.</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.PlanCheckRun.Result.Status">PlanCheckRun.Result.Status</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ERROR</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>WARNING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>SUCCESS</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+ <td>affected_rows</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>all_affected_rows</td>+ <td><a href="#int32">int32</a></td>+ <td>repeated</td>+ <td><p>`all_affected_rows` is the affected rows of each command.+`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</h3>+ <h3 id="bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>RUNNING</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DONE</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>FAILED</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>CANCELED</td>- <td>4</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>end_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.PlanCheckRun.Type">PlanCheckRun.Type</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_STATEMENT_FAKE_ADVISE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_STATEMENT_COMPATIBILITY</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_STATEMENT_ADVISE</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_STATEMENT_TYPE</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_STATEMENT_SUMMARY_REPORT</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_CONNECT</td>- <td>6</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_GHOST_SYNC</td>- <td>7</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+<h3 id="bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus">Task.DatabaseDataUpdate.RollbackSqlStatus</h3><p></p>@@ -23617,34 +23778,6 @@ Format: projects/{project}/plans/{plan} </p></td></thead><tbody>- <tr>- <td>GetPlan</td>- <td><a href="#bytebase.v1.GetPlanRequest">GetPlanRequest</a></td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListPlans</td>- <td><a href="#bytebase.v1.ListPlansRequest">ListPlansRequest</a></td>- <td><a href="#bytebase.v1.ListPlansResponse">ListPlansResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreatePlan</td>- <td><a href="#bytebase.v1.CreatePlanRequest">CreatePlanRequest</a></td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdatePlan</td>- <td><a href="#bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</a></td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td><p></p></td>- </tr>-<tr><td>GetRollout</td><td><a href="#bytebase.v1.GetRolloutRequest">GetRolloutRequest</a></td>@@ -23680,20 +23813,6 @@ Format: projects/{project}/plans/{plan} </p></td><td><p></p></td></tr>- <tr>- <td>ListPlanCheckRuns</td>- <td><a href="#bytebase.v1.ListPlanCheckRunsRequest">ListPlanCheckRunsRequest</a></td>- <td><a href="#bytebase.v1.ListPlanCheckRunsResponse">ListPlanCheckRunsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>RunPlanChecks</td>- <td><a href="#bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</a></td>- <td><a href="#bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</a></td>- <td><p></p></td>- </tr>-<tr><td>BatchRunTasks</td><td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>@@ -23735,46 +23854,6 @@ Format: projects/{project}/plans/{plan} </p></td>- <tr>- <td>GetPlan</td>- <td>GET</td>- <td>/v1/{name=projects/*/plans/*}</td>- <td></td>- </tr>----- <tr>- <td>ListPlans</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/plans</td>- <td></td>- </tr>----- <tr>- <td>CreatePlan</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/plans</td>- <td>plan</td>- </tr>----- <tr>- <td>UpdatePlan</td>- <td>PATCH</td>- <td>/v1/{plan.name=projects/*/plans/*}</td>- <td>plan</td>- </tr>----<tr><td>GetRollout</td><td>GET</td>@@ -23825,26 +23904,6 @@ Format: projects/{project}/plans/{plan} </p></td>- <tr>- <td>ListPlanCheckRuns</td>- <td>GET</td>- <td>/v1/{parent=projects/*/plans/*}/planCheckRuns</td>- <td></td>- </tr>----- <tr>- <td>RunPlanChecks</td>- <td>POST</td>- <td>/v1/{name=projects/*/plans/*}:runPlanChecks</td>- <td>*</td>- </tr>----<tr><td>BatchRunTasks</td><td>POST</td>diff --git a/proto/generated-go/v1/plan_service.pb.go b/proto/generated-go/v1/plan_service.pb.gonew file mode 100644index 0000000000..09e964710b--- /dev/null+++ b/proto/generated-go/v1/plan_service.pb.go@@ -0,0 +1,2710 @@+// Code generated by protoc-gen-go. DO NOT EDIT.+// versions:+// protoc-gen-go v1.34.1+// protoc (unknown)+// source: v1/plan_service.proto++package v1++import (+ _ "google.golang.org/genproto/googleapis/api/annotations"+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"+ timestamppb "google.golang.org/protobuf/types/known/timestamppb"+ reflect "reflect"+ sync "sync"+)++const (+ // Verify that this generated code is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)+ // Verify that runtime/protoimpl is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)+)++// Type is the database change type.+type Plan_ChangeDatabaseConfig_Type int32++const (+ Plan_ChangeDatabaseConfig_TYPE_UNSPECIFIED Plan_ChangeDatabaseConfig_Type = 0+ // Used for establishing schema baseline, this is used when+ // 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.+ // 2. Had schema drift and need to re-establish the baseline.+ Plan_ChangeDatabaseConfig_BASELINE Plan_ChangeDatabaseConfig_Type = 1+ // Used for DDL changes including CREATE DATABASE.+ Plan_ChangeDatabaseConfig_MIGRATE Plan_ChangeDatabaseConfig_Type = 2+ // Used for schema changes via state-based schema migration including CREATE DATABASE.+ Plan_ChangeDatabaseConfig_MIGRATE_SDL Plan_ChangeDatabaseConfig_Type = 3+ // Used for DDL changes using gh-ost.+ Plan_ChangeDatabaseConfig_MIGRATE_GHOST Plan_ChangeDatabaseConfig_Type = 4+ // Used for DML change.+ Plan_ChangeDatabaseConfig_DATA Plan_ChangeDatabaseConfig_Type = 6+)++// Enum value maps for Plan_ChangeDatabaseConfig_Type.+var (+ Plan_ChangeDatabaseConfig_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "BASELINE",+ 2: "MIGRATE",+ 3: "MIGRATE_SDL",+ 4: "MIGRATE_GHOST",+ 6: "DATA",+ }+ Plan_ChangeDatabaseConfig_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "BASELINE": 1,+ "MIGRATE": 2,+ "MIGRATE_SDL": 3,+ "MIGRATE_GHOST": 4,+ "DATA": 6,+ }+)++func (x Plan_ChangeDatabaseConfig_Type) Enum() *Plan_ChangeDatabaseConfig_Type {+ p := new(Plan_ChangeDatabaseConfig_Type)+ *p = x+ return p+}++func (x Plan_ChangeDatabaseConfig_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (Plan_ChangeDatabaseConfig_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_plan_service_proto_enumTypes[0].Descriptor()+}++func (Plan_ChangeDatabaseConfig_Type) Type() protoreflect.EnumType {+ return &file_v1_plan_service_proto_enumTypes[0]+}++func (x Plan_ChangeDatabaseConfig_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use Plan_ChangeDatabaseConfig_Type.Descriptor instead.+func (Plan_ChangeDatabaseConfig_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 3, 0}+}++type PlanCheckRun_Type int32++const (+ PlanCheckRun_TYPE_UNSPECIFIED PlanCheckRun_Type = 0+ PlanCheckRun_DATABASE_STATEMENT_FAKE_ADVISE PlanCheckRun_Type = 1+ PlanCheckRun_DATABASE_STATEMENT_COMPATIBILITY PlanCheckRun_Type = 2+ PlanCheckRun_DATABASE_STATEMENT_ADVISE PlanCheckRun_Type = 3+ PlanCheckRun_DATABASE_STATEMENT_TYPE PlanCheckRun_Type = 4+ PlanCheckRun_DATABASE_STATEMENT_SUMMARY_REPORT PlanCheckRun_Type = 5+ PlanCheckRun_DATABASE_CONNECT PlanCheckRun_Type = 6+ PlanCheckRun_DATABASE_GHOST_SYNC PlanCheckRun_Type = 7+)++// Enum value maps for PlanCheckRun_Type.+var (+ PlanCheckRun_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "DATABASE_STATEMENT_FAKE_ADVISE",+ 2: "DATABASE_STATEMENT_COMPATIBILITY",+ 3: "DATABASE_STATEMENT_ADVISE",+ 4: "DATABASE_STATEMENT_TYPE",+ 5: "DATABASE_STATEMENT_SUMMARY_REPORT",+ 6: "DATABASE_CONNECT",+ 7: "DATABASE_GHOST_SYNC",+ }+ PlanCheckRun_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "DATABASE_STATEMENT_FAKE_ADVISE": 1,+ "DATABASE_STATEMENT_COMPATIBILITY": 2,+ "DATABASE_STATEMENT_ADVISE": 3,+ "DATABASE_STATEMENT_TYPE": 4,+ "DATABASE_STATEMENT_SUMMARY_REPORT": 5,+ "DATABASE_CONNECT": 6,+ "DATABASE_GHOST_SYNC": 7,+ }+)++func (x PlanCheckRun_Type) Enum() *PlanCheckRun_Type {+ p := new(PlanCheckRun_Type)+ *p = x+ return p+}++func (x PlanCheckRun_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (PlanCheckRun_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_plan_service_proto_enumTypes[1].Descriptor()+}++func (PlanCheckRun_Type) Type() protoreflect.EnumType {+ return &file_v1_plan_service_proto_enumTypes[1]+}++func (x PlanCheckRun_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use PlanCheckRun_Type.Descriptor instead.+func (PlanCheckRun_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{10, 0}+}++type PlanCheckRun_Status int32++const (+ PlanCheckRun_STATUS_UNSPECIFIED PlanCheckRun_Status = 0+ PlanCheckRun_RUNNING PlanCheckRun_Status = 1+ PlanCheckRun_DONE PlanCheckRun_Status = 2+ PlanCheckRun_FAILED PlanCheckRun_Status = 3+ PlanCheckRun_CANCELED PlanCheckRun_Status = 4+)++// Enum value maps for PlanCheckRun_Status.+var (+ PlanCheckRun_Status_name = map[int32]string{+ 0: "STATUS_UNSPECIFIED",+ 1: "RUNNING",+ 2: "DONE",+ 3: "FAILED",+ 4: "CANCELED",+ }+ PlanCheckRun_Status_value = map[string]int32{+ "STATUS_UNSPECIFIED": 0,+ "RUNNING": 1,+ "DONE": 2,+ "FAILED": 3,+ "CANCELED": 4,+ }+)++func (x PlanCheckRun_Status) Enum() *PlanCheckRun_Status {+ p := new(PlanCheckRun_Status)+ *p = x+ return p+}++func (x PlanCheckRun_Status) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (PlanCheckRun_Status) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_plan_service_proto_enumTypes[2].Descriptor()+}++func (PlanCheckRun_Status) Type() protoreflect.EnumType {+ return &file_v1_plan_service_proto_enumTypes[2]+}++func (x PlanCheckRun_Status) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use PlanCheckRun_Status.Descriptor instead.+func (PlanCheckRun_Status) EnumDescriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{10, 1}+}++type PlanCheckRun_Result_Status int32++const (+ PlanCheckRun_Result_STATUS_UNSPECIFIED PlanCheckRun_Result_Status = 0+ PlanCheckRun_Result_ERROR PlanCheckRun_Result_Status = 1+ PlanCheckRun_Result_WARNING PlanCheckRun_Result_Status = 2+ PlanCheckRun_Result_SUCCESS PlanCheckRun_Result_Status = 3+)++// Enum value maps for PlanCheckRun_Result_Status.+var (+ PlanCheckRun_Result_Status_name = map[int32]string{+ 0: "STATUS_UNSPECIFIED",+ 1: "ERROR",+ 2: "WARNING",+ 3: "SUCCESS",+ }+ PlanCheckRun_Result_Status_value = map[string]int32{+ "STATUS_UNSPECIFIED": 0,+ "ERROR": 1,+ "WARNING": 2,+ "SUCCESS": 3,+ }+)++func (x PlanCheckRun_Result_Status) Enum() *PlanCheckRun_Result_Status {+ p := new(PlanCheckRun_Result_Status)+ *p = x+ return p+}++func (x PlanCheckRun_Result_Status) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (PlanCheckRun_Result_Status) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_plan_service_proto_enumTypes[3].Descriptor()+}++func (PlanCheckRun_Result_Status) Type() protoreflect.EnumType {+ return &file_v1_plan_service_proto_enumTypes[3]+}++func (x PlanCheckRun_Result_Status) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use PlanCheckRun_Result_Status.Descriptor instead.+func (PlanCheckRun_Result_Status) EnumDescriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{10, 0, 0}+}++type GetPlanRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the plan to retrieve.+ // Format: projects/{project}/plans/{plan}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *GetPlanRequest) Reset() {+ *x = GetPlanRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *GetPlanRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*GetPlanRequest) ProtoMessage() {}++func (x *GetPlanRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[0]+ 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 GetPlanRequest.ProtoReflect.Descriptor instead.+func (*GetPlanRequest) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{0}+}++func (x *GetPlanRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type ListPlansRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The parent, which owns this collection of plans.+ // Format: projects/{project}+ // Use "projects/-" to list all plans from all projects.+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The maximum number of plans to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 plans will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`+ // A page token, received from a previous `ListPlans` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListPlans` must match+ // the call that provided the page token.+ PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`+}++func (x *ListPlansRequest) Reset() {+ *x = ListPlansRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListPlansRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListPlansRequest) ProtoMessage() {}++func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[1]+ 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 ListPlansRequest.ProtoReflect.Descriptor instead.+func (*ListPlansRequest) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{1}+}++func (x *ListPlansRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *ListPlansRequest) GetPageSize() int32 {+ if x != nil {+ return x.PageSize+ }+ return 0+}++func (x *ListPlansRequest) GetPageToken() string {+ if x != nil {+ return x.PageToken+ }+ return ""+}++type ListPlansResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The plans from the specified request.+ Plans []*Plan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`+ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+}++func (x *ListPlansResponse) Reset() {+ *x = ListPlansResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListPlansResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListPlansResponse) ProtoMessage() {}++func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[2]+ 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 ListPlansResponse.ProtoReflect.Descriptor instead.+func (*ListPlansResponse) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{2}+}++func (x *ListPlansResponse) GetPlans() []*Plan {+ if x != nil {+ return x.Plans+ }+ return nil+}++func (x *ListPlansResponse) GetNextPageToken() string {+ if x != nil {+ return x.NextPageToken+ }+ return ""+}++type CreatePlanRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The parent project where this plan will be created.+ // Format: projects/{project}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The plan to create.+ Plan *Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"`+}++func (x *CreatePlanRequest) Reset() {+ *x = CreatePlanRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[3]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *CreatePlanRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*CreatePlanRequest) ProtoMessage() {}++func (x *CreatePlanRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[3]+ 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 CreatePlanRequest.ProtoReflect.Descriptor instead.+func (*CreatePlanRequest) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{3}+}++func (x *CreatePlanRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *CreatePlanRequest) GetPlan() *Plan {+ if x != nil {+ return x.Plan+ }+ return nil+}++type UpdatePlanRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The plan to update.+ //+ // The plan's `name` field is used to identify the plan to update.+ // Format: projects/{project}/plans/{plan}+ Plan *Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`+ // The list of fields to update.+ UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`+}++func (x *UpdatePlanRequest) Reset() {+ *x = UpdatePlanRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[4]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *UpdatePlanRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*UpdatePlanRequest) ProtoMessage() {}++func (x *UpdatePlanRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[4]+ 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 UpdatePlanRequest.ProtoReflect.Descriptor instead.+func (*UpdatePlanRequest) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{4}+}++func (x *UpdatePlanRequest) GetPlan() *Plan {+ if x != nil {+ return x.Plan+ }+ return nil+}++func (x *UpdatePlanRequest) GetUpdateMask() *fieldmaskpb.FieldMask {+ if x != nil {+ return x.UpdateMask+ }+ return nil+}++type Plan struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the plan.+ // `plan` is a system generated ID.+ // Format: projects/{project}/plans/{plan}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ // The resource name of the issue associated with this plan.+ // Format: projects/{project}/issues/{issue}+ Issue string `protobuf:"bytes,3,opt,name=issue,proto3" json:"issue,omitempty"`+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`+ Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`+ Steps []*Plan_Step `protobuf:"bytes,6,rep,name=steps,proto3" json:"steps,omitempty"`+ VcsSource *Plan_VCSSource `protobuf:"bytes,7,opt,name=vcs_source,json=vcsSource,proto3" json:"vcs_source,omitempty"`+ // Format: users/[email protected]+ Creator string `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"`+ CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`+}++func (x *Plan) Reset() {+ *x = Plan{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[5]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan) ProtoMessage() {}++func (x *Plan) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[5]+ 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 Plan.ProtoReflect.Descriptor instead.+func (*Plan) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5}+}++func (x *Plan) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *Plan) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *Plan) GetIssue() string {+ if x != nil {+ return x.Issue+ }+ return ""+}++func (x *Plan) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Plan) GetDescription() string {+ if x != nil {+ return x.Description+ }+ return ""+}++func (x *Plan) GetSteps() []*Plan_Step {+ if x != nil {+ return x.Steps+ }+ return nil+}++func (x *Plan) GetVcsSource() *Plan_VCSSource {+ if x != nil {+ return x.VcsSource+ }+ return nil+}++func (x *Plan) GetCreator() string {+ if x != nil {+ return x.Creator+ }+ return ""+}++func (x *Plan) GetCreateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.CreateTime+ }+ return nil+}++type ListPlanCheckRunsRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The parent, which owns this collection of plan check runs.+ // Format: projects/{project}/plans/{plan}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The maximum number of plan check runs to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 plans will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`+ // A page token, received from a previous `ListPlanCheckRuns` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListPlanCheckRuns` must match+ // the call that provided the page token.+ PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`+}++func (x *ListPlanCheckRunsRequest) Reset() {+ *x = ListPlanCheckRunsRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[6]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListPlanCheckRunsRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListPlanCheckRunsRequest) ProtoMessage() {}++func (x *ListPlanCheckRunsRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[6]+ 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 ListPlanCheckRunsRequest.ProtoReflect.Descriptor instead.+func (*ListPlanCheckRunsRequest) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{6}+}++func (x *ListPlanCheckRunsRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *ListPlanCheckRunsRequest) GetPageSize() int32 {+ if x != nil {+ return x.PageSize+ }+ return 0+}++func (x *ListPlanCheckRunsRequest) GetPageToken() string {+ if x != nil {+ return x.PageToken+ }+ return ""+}++type ListPlanCheckRunsResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The plan check runs from the specified request.+ PlanCheckRuns []*PlanCheckRun `protobuf:"bytes,1,rep,name=plan_check_runs,json=planCheckRuns,proto3" json:"plan_check_runs,omitempty"`+ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+}++func (x *ListPlanCheckRunsResponse) Reset() {+ *x = ListPlanCheckRunsResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[7]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListPlanCheckRunsResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListPlanCheckRunsResponse) ProtoMessage() {}++func (x *ListPlanCheckRunsResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[7]+ 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 ListPlanCheckRunsResponse.ProtoReflect.Descriptor instead.+func (*ListPlanCheckRunsResponse) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{7}+}++func (x *ListPlanCheckRunsResponse) GetPlanCheckRuns() []*PlanCheckRun {+ if x != nil {+ return x.PlanCheckRuns+ }+ return nil+}++func (x *ListPlanCheckRunsResponse) GetNextPageToken() string {+ if x != nil {+ return x.NextPageToken+ }+ return ""+}++type RunPlanChecksRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The plan to run plan checks.+ // Format: projects/{project}/plans/{plan}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *RunPlanChecksRequest) Reset() {+ *x = RunPlanChecksRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[8]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *RunPlanChecksRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*RunPlanChecksRequest) ProtoMessage() {}++func (x *RunPlanChecksRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[8]+ 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 RunPlanChecksRequest.ProtoReflect.Descriptor instead.+func (*RunPlanChecksRequest) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{8}+}++func (x *RunPlanChecksRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type RunPlanChecksResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields+}++func (x *RunPlanChecksResponse) Reset() {+ *x = RunPlanChecksResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[9]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *RunPlanChecksResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*RunPlanChecksResponse) ProtoMessage() {}++func (x *RunPlanChecksResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[9]+ 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 RunPlanChecksResponse.ProtoReflect.Descriptor instead.+func (*RunPlanChecksResponse) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{9}+}++type PlanCheckRun struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ Type PlanCheckRun_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.PlanCheckRun_Type" json:"type,omitempty"`+ Status PlanCheckRun_Status `protobuf:"varint,4,opt,name=status,proto3,enum=bytebase.v1.PlanCheckRun_Status" json:"status,omitempty"`+ // Format: instances/{instance}/databases/{database}+ Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`+ // Format: project/{project}/sheets/{sheet}+ Sheet string `protobuf:"bytes,6,opt,name=sheet,proto3" json:"sheet,omitempty"`+ Results []*PlanCheckRun_Result `protobuf:"bytes,7,rep,name=results,proto3" json:"results,omitempty"`+ // error is set if the Status is FAILED.+ Error string `protobuf:"bytes,8,opt,name=error,proto3" json:"error,omitempty"`+ CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`+}++func (x *PlanCheckRun) Reset() {+ *x = PlanCheckRun{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[10]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PlanCheckRun) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PlanCheckRun) ProtoMessage() {}++func (x *PlanCheckRun) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[10]+ 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 PlanCheckRun.ProtoReflect.Descriptor instead.+func (*PlanCheckRun) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{10}+}++func (x *PlanCheckRun) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *PlanCheckRun) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *PlanCheckRun) GetType() PlanCheckRun_Type {+ if x != nil {+ return x.Type+ }+ return PlanCheckRun_TYPE_UNSPECIFIED+}++func (x *PlanCheckRun) GetStatus() PlanCheckRun_Status {+ if x != nil {+ return x.Status+ }+ return PlanCheckRun_STATUS_UNSPECIFIED+}++func (x *PlanCheckRun) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (x *PlanCheckRun) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *PlanCheckRun) GetResults() []*PlanCheckRun_Result {+ if x != nil {+ return x.Results+ }+ return nil+}++func (x *PlanCheckRun) GetError() string {+ if x != nil {+ return x.Error+ }+ return ""+}++func (x *PlanCheckRun) GetCreateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.CreateTime+ }+ return nil+}++type Plan_Step struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // TODO: implement+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Specs []*Plan_Spec `protobuf:"bytes,1,rep,name=specs,proto3" json:"specs,omitempty"`+}++func (x *Plan_Step) Reset() {+ *x = Plan_Step{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[11]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_Step) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_Step) ProtoMessage() {}++func (x *Plan_Step) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[11]+ 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 Plan_Step.ProtoReflect.Descriptor instead.+func (*Plan_Step) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 0}+}++func (x *Plan_Step) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Plan_Step) GetSpecs() []*Plan_Spec {+ if x != nil {+ return x.Specs+ }+ return nil+}++type Plan_Spec struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // earliest_allowed_time the earliest execution time of the change.+ EarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=earliest_allowed_time,json=earliestAllowedTime,proto3" json:"earliest_allowed_time,omitempty"`+ // A UUID4 string that uniquely identifies the Spec.+ Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`+ // IDs of the specs that this spec depends on.+ // Must be a subset of the specs in the same step.+ DependsOnSpecs []string `protobuf:"bytes,6,rep,name=depends_on_specs,json=dependsOnSpecs,proto3" json:"depends_on_specs,omitempty"`+ // Types that are assignable to Config:+ //+ // *Plan_Spec_CreateDatabaseConfig+ // *Plan_Spec_ChangeDatabaseConfig+ // *Plan_Spec_ExportDataConfig+ Config isPlan_Spec_Config `protobuf_oneof:"config"`+}++func (x *Plan_Spec) Reset() {+ *x = Plan_Spec{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[12]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_Spec) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_Spec) ProtoMessage() {}++func (x *Plan_Spec) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[12]+ 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 Plan_Spec.ProtoReflect.Descriptor instead.+func (*Plan_Spec) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 1}+}++func (x *Plan_Spec) GetEarliestAllowedTime() *timestamppb.Timestamp {+ if x != nil {+ return x.EarliestAllowedTime+ }+ return nil+}++func (x *Plan_Spec) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *Plan_Spec) GetDependsOnSpecs() []string {+ if x != nil {+ return x.DependsOnSpecs+ }+ return nil+}++func (m *Plan_Spec) GetConfig() isPlan_Spec_Config {+ if m != nil {+ return m.Config+ }+ return nil+}++func (x *Plan_Spec) GetCreateDatabaseConfig() *Plan_CreateDatabaseConfig {+ if x, ok := x.GetConfig().(*Plan_Spec_CreateDatabaseConfig); ok {+ return x.CreateDatabaseConfig+ }+ return nil+}++func (x *Plan_Spec) GetChangeDatabaseConfig() *Plan_ChangeDatabaseConfig {+ if x, ok := x.GetConfig().(*Plan_Spec_ChangeDatabaseConfig); ok {+ return x.ChangeDatabaseConfig+ }+ return nil+}++func (x *Plan_Spec) GetExportDataConfig() *Plan_ExportDataConfig {+ if x, ok := x.GetConfig().(*Plan_Spec_ExportDataConfig); ok {+ return x.ExportDataConfig+ }+ return nil+}++type isPlan_Spec_Config interface {+ isPlan_Spec_Config()+}++type Plan_Spec_CreateDatabaseConfig struct {+ CreateDatabaseConfig *Plan_CreateDatabaseConfig `protobuf:"bytes,1,opt,name=create_database_config,json=createDatabaseConfig,proto3,oneof"`+}++type Plan_Spec_ChangeDatabaseConfig struct {+ ChangeDatabaseConfig *Plan_ChangeDatabaseConfig `protobuf:"bytes,2,opt,name=change_database_config,json=changeDatabaseConfig,proto3,oneof"`+}++type Plan_Spec_ExportDataConfig struct {+ ExportDataConfig *Plan_ExportDataConfig `protobuf:"bytes,7,opt,name=export_data_config,json=exportDataConfig,proto3,oneof"`+}++func (*Plan_Spec_CreateDatabaseConfig) isPlan_Spec_Config() {}++func (*Plan_Spec_ChangeDatabaseConfig) isPlan_Spec_Config() {}++func (*Plan_Spec_ExportDataConfig) isPlan_Spec_Config() {}++type Plan_CreateDatabaseConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The resource name of the instance on which the database is created.+ // Format: instances/{instance}+ Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`+ // The name of the database to create.+ Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`+ // table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+ // For example, in MongoDB, it only creates the database when we first store data in that database.+ Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`+ // character_set is the character set of the database.+ CharacterSet string `protobuf:"bytes,4,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`+ // collation is the collation of the database.+ Collation string `protobuf:"bytes,5,opt,name=collation,proto3" json:"collation,omitempty"`+ // cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".+ Cluster string `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`+ // owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".+ Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`+ // The environment resource.+ // Format: environments/prod where prod is the environment resource ID.+ Environment string `protobuf:"bytes,9,opt,name=environment,proto3" json:"environment,omitempty"`+ // labels of the database.+ Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`+}++func (x *Plan_CreateDatabaseConfig) Reset() {+ *x = Plan_CreateDatabaseConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[13]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_CreateDatabaseConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_CreateDatabaseConfig) ProtoMessage() {}++func (x *Plan_CreateDatabaseConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[13]+ 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 Plan_CreateDatabaseConfig.ProtoReflect.Descriptor instead.+func (*Plan_CreateDatabaseConfig) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 2}+}++func (x *Plan_CreateDatabaseConfig) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetDatabase() string {+ if x != nil {+ return x.Database+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetTable() string {+ if x != nil {+ return x.Table+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetCharacterSet() string {+ if x != nil {+ return x.CharacterSet+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetCollation() string {+ if x != nil {+ return x.Collation+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetCluster() string {+ if x != nil {+ return x.Cluster+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetOwner() string {+ if x != nil {+ return x.Owner+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetEnvironment() string {+ if x != nil {+ return x.Environment+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetLabels() map[string]string {+ if x != nil {+ return x.Labels+ }+ return nil+}++type Plan_ChangeDatabaseConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The resource name of the target.+ // Format: instances/{instance-id}/databases/{database-name}.+ // Format: projects/{project}/databaseGroups/{databaseGroup}.+ // Format: projects/{project}/deploymentConfigs/default. The plan should+ // have a single step and single spec for the deployment configuration type.+ Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`+ // The resource name of the sheet.+ // Format: projects/{project}/sheets/{sheet}+ Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`+ Type Plan_ChangeDatabaseConfig_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.Plan_ChangeDatabaseConfig_Type" json:"type,omitempty"`+ // schema_version is parsed from VCS file name.+ // It is automatically generated in the UI workflow.+ SchemaVersion string `protobuf:"bytes,4,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+ // If RollbackEnabled, build the RollbackSheetID of the task after the task is completed.+ RollbackEnabled bool `protobuf:"varint,5,opt,name=rollback_enabled,json=rollbackEnabled,proto3" json:"rollback_enabled,omitempty"`+ RollbackDetail *Plan_ChangeDatabaseConfig_RollbackDetail `protobuf:"bytes,6,opt,name=rollback_detail,json=rollbackDetail,proto3,oneof" json:"rollback_detail,omitempty"`+ GhostFlags map[string]string `protobuf:"bytes,7,rep,name=ghost_flags,json=ghostFlags,proto3" json:"ghost_flags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`+ // If set, a backup of the modified data will be created automatically before any changes are applied.+ PreUpdateBackupDetail *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail `protobuf:"bytes,8,opt,name=pre_update_backup_detail,json=preUpdateBackupDetail,proto3,oneof" json:"pre_update_backup_detail,omitempty"`+}++func (x *Plan_ChangeDatabaseConfig) Reset() {+ *x = Plan_ChangeDatabaseConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[14]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_ChangeDatabaseConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_ChangeDatabaseConfig) ProtoMessage() {}++func (x *Plan_ChangeDatabaseConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[14]+ 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 Plan_ChangeDatabaseConfig.ProtoReflect.Descriptor instead.+func (*Plan_ChangeDatabaseConfig) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 3}+}++func (x *Plan_ChangeDatabaseConfig) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (x *Plan_ChangeDatabaseConfig) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *Plan_ChangeDatabaseConfig) GetType() Plan_ChangeDatabaseConfig_Type {+ if x != nil {+ return x.Type+ }+ return Plan_ChangeDatabaseConfig_TYPE_UNSPECIFIED+}++func (x *Plan_ChangeDatabaseConfig) GetSchemaVersion() string {+ if x != nil {+ return x.SchemaVersion+ }+ return ""+}++func (x *Plan_ChangeDatabaseConfig) GetRollbackEnabled() bool {+ if x != nil {+ return x.RollbackEnabled+ }+ return false+}++func (x *Plan_ChangeDatabaseConfig) GetRollbackDetail() *Plan_ChangeDatabaseConfig_RollbackDetail {+ if x != nil {+ return x.RollbackDetail+ }+ return nil+}++func (x *Plan_ChangeDatabaseConfig) GetGhostFlags() map[string]string {+ if x != nil {+ return x.GhostFlags+ }+ return nil+}++func (x *Plan_ChangeDatabaseConfig) GetPreUpdateBackupDetail() *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {+ if x != nil {+ return x.PreUpdateBackupDetail+ }+ return nil+}++type Plan_ExportDataConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The resource name of the target.+ // Format: instances/{instance-id}/databases/{database-name}+ Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`+ // The resource name of the sheet.+ // Format: projects/{project}/sheets/{sheet}+ Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`+ // The format of the exported file.+ Format ExportFormat `protobuf:"varint,3,opt,name=format,proto3,enum=bytebase.v1.ExportFormat" json:"format,omitempty"`+ // The zip password provide by users.+ // Leave it empty if no needs to encrypt the zip file.+ Password *string `protobuf:"bytes,4,opt,name=password,proto3,oneof" json:"password,omitempty"`+}++func (x *Plan_ExportDataConfig) Reset() {+ *x = Plan_ExportDataConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[15]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_ExportDataConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_ExportDataConfig) ProtoMessage() {}++func (x *Plan_ExportDataConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[15]+ 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 Plan_ExportDataConfig.ProtoReflect.Descriptor instead.+func (*Plan_ExportDataConfig) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 4}+}++func (x *Plan_ExportDataConfig) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (x *Plan_ExportDataConfig) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *Plan_ExportDataConfig) GetFormat() ExportFormat {+ if x != nil {+ return x.Format+ }+ return ExportFormat_FORMAT_UNSPECIFIED+}++func (x *Plan_ExportDataConfig) GetPassword() string {+ if x != nil && x.Password != nil {+ return *x.Password+ }+ return ""+}++type Plan_VCSSource struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ VcsType VCSType `protobuf:"varint,1,opt,name=vcs_type,json=vcsType,proto3,enum=bytebase.v1.VCSType" json:"vcs_type,omitempty"`+ // Optional.+ // If present, we will update the pull request for rollout status.+ // Format: projects/{project-ID}/vcsConnectors/{vcs-connector}+ VcsConnector string `protobuf:"bytes,2,opt,name=vcs_connector,json=vcsConnector,proto3" json:"vcs_connector,omitempty"`+ PullRequestUrl string `protobuf:"bytes,3,opt,name=pull_request_url,json=pullRequestUrl,proto3" json:"pull_request_url,omitempty"`+}++func (x *Plan_VCSSource) Reset() {+ *x = Plan_VCSSource{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[16]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_VCSSource) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_VCSSource) ProtoMessage() {}++func (x *Plan_VCSSource) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[16]+ 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 Plan_VCSSource.ProtoReflect.Descriptor instead.+func (*Plan_VCSSource) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 5}+}++func (x *Plan_VCSSource) GetVcsType() VCSType {+ if x != nil {+ return x.VcsType+ }+ return VCSType_VCS_TYPE_UNSPECIFIED+}++func (x *Plan_VCSSource) GetVcsConnector() string {+ if x != nil {+ return x.VcsConnector+ }+ return ""+}++func (x *Plan_VCSSource) GetPullRequestUrl() string {+ if x != nil {+ return x.PullRequestUrl+ }+ return ""+}++type Plan_ChangeDatabaseConfig_RollbackDetail struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // rollback_from_task is the task from which the rollback SQL statement is generated for this task.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ RollbackFromTask string `protobuf:"bytes,1,opt,name=rollback_from_task,json=rollbackFromTask,proto3" json:"rollback_from_task,omitempty"`+ // rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.+ // Format: projects/{project}/issues/{issue}+ RollbackFromIssue string `protobuf:"bytes,2,opt,name=rollback_from_issue,json=rollbackFromIssue,proto3" json:"rollback_from_issue,omitempty"`+}++func (x *Plan_ChangeDatabaseConfig_RollbackDetail) Reset() {+ *x = Plan_ChangeDatabaseConfig_RollbackDetail{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[18]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_ChangeDatabaseConfig_RollbackDetail) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_ChangeDatabaseConfig_RollbackDetail) ProtoMessage() {}++func (x *Plan_ChangeDatabaseConfig_RollbackDetail) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[18]+ 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 Plan_ChangeDatabaseConfig_RollbackDetail.ProtoReflect.Descriptor instead.+func (*Plan_ChangeDatabaseConfig_RollbackDetail) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 3, 0}+}++func (x *Plan_ChangeDatabaseConfig_RollbackDetail) GetRollbackFromTask() string {+ if x != nil {+ return x.RollbackFromTask+ }+ return ""+}++func (x *Plan_ChangeDatabaseConfig_RollbackDetail) GetRollbackFromIssue() string {+ if x != nil {+ return x.RollbackFromIssue+ }+ return ""+}++type Plan_ChangeDatabaseConfig_PreUpdateBackupDetail struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The database for keeping the backup data.+ // Format: instances/{instance}/databases/{database}+ Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`+}++func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) Reset() {+ *x = Plan_ChangeDatabaseConfig_PreUpdateBackupDetail{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[20]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoMessage() {}++func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[20]+ 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 Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.ProtoReflect.Descriptor instead.+func (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 3, 2}+}++func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) GetDatabase() string {+ if x != nil {+ return x.Database+ }+ return ""+}++type PlanCheckRun_Result struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Status PlanCheckRun_Result_Status `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.v1.PlanCheckRun_Result_Status" json:"status,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`+ Code int32 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`+ // Types that are assignable to Report:+ //+ // *PlanCheckRun_Result_SqlSummaryReport_+ // *PlanCheckRun_Result_SqlReviewReport_+ Report isPlanCheckRun_Result_Report `protobuf_oneof:"report"`+}++func (x *PlanCheckRun_Result) Reset() {+ *x = PlanCheckRun_Result{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[21]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PlanCheckRun_Result) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PlanCheckRun_Result) ProtoMessage() {}++func (x *PlanCheckRun_Result) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[21]+ 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 PlanCheckRun_Result.ProtoReflect.Descriptor instead.+func (*PlanCheckRun_Result) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{10, 0}+}++func (x *PlanCheckRun_Result) GetStatus() PlanCheckRun_Result_Status {+ if x != nil {+ return x.Status+ }+ return PlanCheckRun_Result_STATUS_UNSPECIFIED+}++func (x *PlanCheckRun_Result) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *PlanCheckRun_Result) GetContent() string {+ if x != nil {+ return x.Content+ }+ return ""+}++func (x *PlanCheckRun_Result) GetCode() int32 {+ if x != nil {+ return x.Code+ }+ return 0+}++func (m *PlanCheckRun_Result) GetReport() isPlanCheckRun_Result_Report {+ if m != nil {+ return m.Report+ }+ return nil+}++func (x *PlanCheckRun_Result) GetSqlSummaryReport() *PlanCheckRun_Result_SqlSummaryReport {+ if x, ok := x.GetReport().(*PlanCheckRun_Result_SqlSummaryReport_); ok {+ return x.SqlSummaryReport+ }+ return nil+}++func (x *PlanCheckRun_Result) GetSqlReviewReport() *PlanCheckRun_Result_SqlReviewReport {+ if x, ok := x.GetReport().(*PlanCheckRun_Result_SqlReviewReport_); ok {+ return x.SqlReviewReport+ }+ return nil+}++type isPlanCheckRun_Result_Report interface {+ isPlanCheckRun_Result_Report()+}++type PlanCheckRun_Result_SqlSummaryReport_ struct {+ SqlSummaryReport *PlanCheckRun_Result_SqlSummaryReport `protobuf:"bytes,5,opt,name=sql_summary_report,json=sqlSummaryReport,proto3,oneof"`+}++type PlanCheckRun_Result_SqlReviewReport_ struct {+ SqlReviewReport *PlanCheckRun_Result_SqlReviewReport `protobuf:"bytes,6,opt,name=sql_review_report,json=sqlReviewReport,proto3,oneof"`+}++func (*PlanCheckRun_Result_SqlSummaryReport_) isPlanCheckRun_Result_Report() {}++func (*PlanCheckRun_Result_SqlReviewReport_) isPlanCheckRun_Result_Report() {}++type PlanCheckRun_Result_SqlSummaryReport struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`+ // statement_types are the types of statements that are found in the sql.+ StatementTypes []string `protobuf:"bytes,2,rep,name=statement_types,json=statementTypes,proto3" json:"statement_types,omitempty"`+ AffectedRows int32 `protobuf:"varint,3,opt,name=affected_rows,json=affectedRows,proto3" json:"affected_rows,omitempty"`+ ChangedResources *ChangedResources `protobuf:"bytes,4,opt,name=changed_resources,json=changedResources,proto3" json:"changed_resources,omitempty"`+}++func (x *PlanCheckRun_Result_SqlSummaryReport) Reset() {+ *x = PlanCheckRun_Result_SqlSummaryReport{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[22]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PlanCheckRun_Result_SqlSummaryReport) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PlanCheckRun_Result_SqlSummaryReport) ProtoMessage() {}++func (x *PlanCheckRun_Result_SqlSummaryReport) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[22]+ 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 PlanCheckRun_Result_SqlSummaryReport.ProtoReflect.Descriptor instead.+func (*PlanCheckRun_Result_SqlSummaryReport) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{10, 0, 0}+}++func (x *PlanCheckRun_Result_SqlSummaryReport) GetCode() int32 {+ if x != nil {+ return x.Code+ }+ return 0+}++func (x *PlanCheckRun_Result_SqlSummaryReport) GetStatementTypes() []string {+ if x != nil {+ return x.StatementTypes+ }+ return nil+}++func (x *PlanCheckRun_Result_SqlSummaryReport) GetAffectedRows() int32 {+ if x != nil {+ return x.AffectedRows+ }+ return 0+}++func (x *PlanCheckRun_Result_SqlSummaryReport) GetChangedResources() *ChangedResources {+ if x != nil {+ return x.ChangedResources+ }+ return nil+}++type PlanCheckRun_Result_SqlReviewReport struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`+ Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`+ Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`+ // Code from sql review.+ Code int32 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`+}++func (x *PlanCheckRun_Result_SqlReviewReport) Reset() {+ *x = PlanCheckRun_Result_SqlReviewReport{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_plan_service_proto_msgTypes[23]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PlanCheckRun_Result_SqlReviewReport) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PlanCheckRun_Result_SqlReviewReport) ProtoMessage() {}++func (x *PlanCheckRun_Result_SqlReviewReport) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[23]+ 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 PlanCheckRun_Result_SqlReviewReport.ProtoReflect.Descriptor instead.+func (*PlanCheckRun_Result_SqlReviewReport) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{10, 0, 1}+}++func (x *PlanCheckRun_Result_SqlReviewReport) GetLine() int32 {+ if x != nil {+ return x.Line+ }+ return 0+}++func (x *PlanCheckRun_Result_SqlReviewReport) GetColumn() int32 {+ if x != nil {+ return x.Column+ }+ return 0+}++func (x *PlanCheckRun_Result_SqlReviewReport) GetDetail() string {+ if x != nil {+ return x.Detail+ }+ return ""+}++func (x *PlanCheckRun_Result_SqlReviewReport) GetCode() int32 {+ if x != nil {+ return x.Code+ }+ return 0+}++var File_v1_plan_service_proto protoreflect.FileDescriptor++var file_v1_plan_service_proto_rawDesc = []byte{+ 0x0a, 0x15, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,+ 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,+ 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,+ 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,+ 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69,+ 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,+ 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,+ 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x1a, 0x19, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65,+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2a, 0x0a, 0x0e, 0x47,+ 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,+ 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50,+ 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,+ 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,+ 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,+ 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,+ 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61,+ 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x70, 0x6c,+ 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x05, 0x70, 0x6c,+ 0x61, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,+ 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,+ 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5e, 0x0a, 0x11, 0x43,+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b,+ 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x83, 0x01, 0x0a, 0x11,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,+ 0x61, 0x6e, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12, 0x41,+ 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,+ 0x6b, 0x22, 0xc1, 0x13, 0x0a, 0x04, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16,+ 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,+ 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05,+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,+ 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,+ 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,+ 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x06, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05, 0x73, 0x74, 0x65,+ 0x70, 0x73, 0x12, 0x3a, 0x0a, 0x0a, 0x76, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,+ 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x56, 0x43, 0x53, 0x53, 0x6f, 0x75,+ 0x72, 0x63, 0x65, 0x52, 0x09, 0x76, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1e,+ 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41,+ 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,+ 0x65, 0x1a, 0x4a, 0x0a, 0x04, 0x53, 0x74, 0x65, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,+ 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,+ 0x2c, 0x0a, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,+ 0x6e, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x1a, 0xae, 0x03,+ 0x0a, 0x04, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4e, 0x0a, 0x15, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65,+ 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,+ 0x70, 0x52, 0x13, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77,+ 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64,+ 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09,+ 0x52, 0x0e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x73,+ 0x12, 0x5e, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x12, 0x5e, 0x0a, 0x16, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x14, 0x63, 0x68, 0x61, 0x6e,+ 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x12, 0x52, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f,+ 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e,+ 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xb2,+ 0x03, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x74,+ 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x20, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x08, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x05, 0x74, 0x61,+ 0x62, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72,+ 0x5f, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01,+ 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x22,+ 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74,+ 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x26,+ 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72,+ 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x50, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73,+ 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c,+ 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01,+ 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65,+ 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,+ 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,+ 0x02, 0x38, 0x01, 0x1a, 0x8d, 0x07, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06,+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61,+ 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79,+ 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x6e,+ 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69,+ 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x65,+ 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x72, 0x6f,+ 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x63, 0x0a,+ 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52,+ 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x00, 0x52,+ 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x88,+ 0x01, 0x01, 0x12, 0x57, 0x0a, 0x0b, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67,+ 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,+ 0x47, 0x68, 0x6f, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,+ 0x0a, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x7a, 0x0a, 0x18, 0x70,+ 0x72, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70,+ 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e,+ 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42,+ 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x01, 0x52, 0x15, 0x70,+ 0x72, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65,+ 0x74, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0x6e, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x62,+ 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x6f, 0x6c,+ 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46,+ 0x72, 0x6f, 0x6d, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62,+ 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72,+ 0x6f, 0x6d, 0x49, 0x73, 0x73, 0x75, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x47, 0x68, 0x6f, 0x73, 0x74,+ 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,+ 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x33, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,+ 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x65, 0x0a, 0x04, 0x54,+ 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x53,+ 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41,+ 0x54, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f,+ 0x53, 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45,+ 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41,+ 0x10, 0x06, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f,+ 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x70, 0x72, 0x65, 0x5f, 0x75,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65, 0x74,+ 0x61, 0x69, 0x6c, 0x1a, 0xa1, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61,+ 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67,+ 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,+ 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61,+ 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73,+ 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70,+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70,+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x8b, 0x01, 0x0a, 0x09, 0x56, 0x43, 0x53, 0x53,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f, 0x74, 0x79, 0x70,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76,+ 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x63, 0x73, 0x5f, 0x63, 0x6f,+ 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76,+ 0x63, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x70,+ 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x55, 0x72, 0x6c, 0x22, 0x74, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61,+ 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,+ 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,+ 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x86, 0x01, 0x0a, 0x19,+ 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x70, 0x6c, 0x61,+ 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,+ 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x0d, 0x70,+ 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f,+ 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54,+ 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x30, 0x0a, 0x14, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43,+ 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61,+ 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,+ 0x85, 0x0b, 0x0a, 0x0c, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e,+ 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e,+ 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65,+ 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05,+ 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65,+ 0x65, 0x74, 0x12, 0x3a, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x07, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52,+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x14,+ 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,+ 0x72, 0x72, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74,+ 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,+ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,+ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65,+ 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0xcf, 0x05, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75,+ 0x6c, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65,+ 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61,+ 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74,+ 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x61, 0x0a, 0x12, 0x73, 0x71, 0x6c, 0x5f, 0x73,+ 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52,+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79,+ 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x10, 0x73, 0x71, 0x6c, 0x53, 0x75, 0x6d,+ 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x5e, 0x0a, 0x11, 0x73, 0x71,+ 0x6c, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18,+ 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e,+ 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65,+ 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65,+ 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0xc0, 0x01, 0x0a, 0x10, 0x53,+ 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12,+ 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63,+ 0x6f, 0x64, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74,+ 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74,+ 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d,+ 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77,+ 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61,+ 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x69, 0x0a,+ 0x0f, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74,+ 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,+ 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x16, 0x0a, 0x06,+ 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65,+ 0x74, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,+ 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52,+ 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47,+ 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x03, 0x42,+ 0x08, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0xf8, 0x01, 0x0a, 0x04, 0x54, 0x79,+ 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, 0x41,+ 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x46,+ 0x41, 0x4b, 0x45, 0x5f, 0x41, 0x44, 0x56, 0x49, 0x53, 0x45, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20,+ 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45,+ 0x4e, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x41, 0x54, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59,+ 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53,+ 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x44, 0x56, 0x49, 0x53, 0x45, 0x10,+ 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54,+ 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x04, 0x12, 0x25,+ 0x0a, 0x21, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45,+ 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x55, 0x4d, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x50,+ 0x4f, 0x52, 0x54, 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,+ 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x44,+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59,+ 0x4e, 0x43, 0x10, 0x07, 0x22, 0x51, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,+ 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e,+ 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a,+ 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e,+ 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x32, 0xb2, 0x06, 0x0a, 0x0b, 0x50, 0x6c, 0x61, 0x6e,+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x67, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x50, 0x6c,+ 0x61, 0x6e, 0x12, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,+ 0x61, 0x6e, 0x22, 0x2c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d,+ 0x12, 0x7a, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1d, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,+ 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50,+ 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0xda, 0x41,+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x7a, 0x0a, 0x0a,+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,+ 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x39, 0xda,+ 0x41, 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6c, 0x61, 0x6e, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x25, 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x43, 0xda, 0x41, 0x10, 0x70,+ 0x6c, 0x61, 0x6e, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x32, 0x22, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12,+ 0xa2, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63,+ 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63,+ 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50,+ 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c,+ 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b,+ 0x52, 0x75, 0x6e, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e,+ 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63,+ 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43,+ 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda,+ 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22,+ 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72,+ 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x42, 0x11, 0x5a, 0x0f,+ 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+}++var (+ file_v1_plan_service_proto_rawDescOnce sync.Once+ file_v1_plan_service_proto_rawDescData = file_v1_plan_service_proto_rawDesc+)++func file_v1_plan_service_proto_rawDescGZIP() []byte {+ file_v1_plan_service_proto_rawDescOnce.Do(func() {+ file_v1_plan_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_plan_service_proto_rawDescData)+ })+ return file_v1_plan_service_proto_rawDescData+}++var file_v1_plan_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)+var file_v1_plan_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24)+var file_v1_plan_service_proto_goTypes = []interface{}{+ (Plan_ChangeDatabaseConfig_Type)(0), // 0: bytebase.v1.Plan.ChangeDatabaseConfig.Type+ (PlanCheckRun_Type)(0), // 1: bytebase.v1.PlanCheckRun.Type+ (PlanCheckRun_Status)(0), // 2: bytebase.v1.PlanCheckRun.Status+ (PlanCheckRun_Result_Status)(0), // 3: bytebase.v1.PlanCheckRun.Result.Status+ (*GetPlanRequest)(nil), // 4: bytebase.v1.GetPlanRequest+ (*ListPlansRequest)(nil), // 5: bytebase.v1.ListPlansRequest+ (*ListPlansResponse)(nil), // 6: bytebase.v1.ListPlansResponse+ (*CreatePlanRequest)(nil), // 7: bytebase.v1.CreatePlanRequest+ (*UpdatePlanRequest)(nil), // 8: bytebase.v1.UpdatePlanRequest+ (*Plan)(nil), // 9: bytebase.v1.Plan+ (*ListPlanCheckRunsRequest)(nil), // 10: bytebase.v1.ListPlanCheckRunsRequest+ (*ListPlanCheckRunsResponse)(nil), // 11: bytebase.v1.ListPlanCheckRunsResponse+ (*RunPlanChecksRequest)(nil), // 12: bytebase.v1.RunPlanChecksRequest+ (*RunPlanChecksResponse)(nil), // 13: bytebase.v1.RunPlanChecksResponse+ (*PlanCheckRun)(nil), // 14: bytebase.v1.PlanCheckRun+ (*Plan_Step)(nil), // 15: bytebase.v1.Plan.Step+ (*Plan_Spec)(nil), // 16: bytebase.v1.Plan.Spec+ (*Plan_CreateDatabaseConfig)(nil), // 17: bytebase.v1.Plan.CreateDatabaseConfig+ (*Plan_ChangeDatabaseConfig)(nil), // 18: bytebase.v1.Plan.ChangeDatabaseConfig+ (*Plan_ExportDataConfig)(nil), // 19: bytebase.v1.Plan.ExportDataConfig+ (*Plan_VCSSource)(nil), // 20: bytebase.v1.Plan.VCSSource+ nil, // 21: bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry+ (*Plan_ChangeDatabaseConfig_RollbackDetail)(nil), // 22: bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail+ nil, // 23: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry+ (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 24: bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail+ (*PlanCheckRun_Result)(nil), // 25: bytebase.v1.PlanCheckRun.Result+ (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 26: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ (*PlanCheckRun_Result_SqlReviewReport)(nil), // 27: bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ (*fieldmaskpb.FieldMask)(nil), // 28: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp+ (ExportFormat)(0), // 30: bytebase.v1.ExportFormat+ (VCSType)(0), // 31: bytebase.v1.VCSType+ (*ChangedResources)(nil), // 32: bytebase.v1.ChangedResources+}+var file_v1_plan_service_proto_depIdxs = []int32{+ 9, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan+ 9, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan+ 9, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan+ 28, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask+ 15, // 4: bytebase.v1.Plan.steps:type_name -> bytebase.v1.Plan.Step+ 20, // 5: bytebase.v1.Plan.vcs_source:type_name -> bytebase.v1.Plan.VCSSource+ 29, // 6: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp+ 14, // 7: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun+ 1, // 8: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type+ 2, // 9: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status+ 25, // 10: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result+ 29, // 11: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp+ 16, // 12: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec+ 29, // 13: bytebase.v1.Plan.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp+ 17, // 14: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig+ 18, // 15: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig+ 19, // 16: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig+ 21, // 17: bytebase.v1.Plan.CreateDatabaseConfig.labels:type_name -> bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry+ 0, // 18: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type+ 22, // 19: bytebase.v1.Plan.ChangeDatabaseConfig.rollback_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail+ 23, // 20: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry+ 24, // 21: bytebase.v1.Plan.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail+ 30, // 22: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat+ 31, // 23: bytebase.v1.Plan.VCSSource.vcs_type:type_name -> bytebase.v1.VCSType+ 3, // 24: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status+ 26, // 25: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ 27, // 26: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ 32, // 27: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources+ 4, // 28: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest+ 5, // 29: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest+ 7, // 30: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest+ 8, // 31: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest+ 10, // 32: bytebase.v1.PlanService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest+ 12, // 33: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest+ 9, // 34: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan+ 6, // 35: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse+ 9, // 36: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan+ 9, // 37: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan+ 11, // 38: bytebase.v1.PlanService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse+ 13, // 39: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse+ 34, // [34:40] is the sub-list for method output_type+ 28, // [28:34] is the sub-list for method input_type+ 28, // [28:28] is the sub-list for extension type_name+ 28, // [28:28] is the sub-list for extension extendee+ 0, // [0:28] is the sub-list for field type_name+}++func init() { file_v1_plan_service_proto_init() }+func file_v1_plan_service_proto_init() {+ if File_v1_plan_service_proto != nil {+ return+ }+ file_v1_common_proto_init()+ file_v1_database_service_proto_init()+ if !protoimpl.UnsafeEnabled {+ file_v1_plan_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*GetPlanRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListPlansRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListPlansResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*CreatePlanRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*UpdatePlanRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListPlanCheckRunsRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListPlanCheckRunsResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*RunPlanChecksRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*RunPlanChecksResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PlanCheckRun); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_Step); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_Spec); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_CreateDatabaseConfig); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_ChangeDatabaseConfig); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_ExportDataConfig); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_VCSSource); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_ChangeDatabaseConfig_RollbackDetail); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PlanCheckRun_Result); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PlanCheckRun_Result_SqlSummaryReport); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_plan_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PlanCheckRun_Result_SqlReviewReport); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ }+ file_v1_plan_service_proto_msgTypes[12].OneofWrappers = []interface{}{+ (*Plan_Spec_CreateDatabaseConfig)(nil),+ (*Plan_Spec_ChangeDatabaseConfig)(nil),+ (*Plan_Spec_ExportDataConfig)(nil),+ }+ file_v1_plan_service_proto_msgTypes[14].OneofWrappers = []interface{}{}+ file_v1_plan_service_proto_msgTypes[15].OneofWrappers = []interface{}{}+ file_v1_plan_service_proto_msgTypes[21].OneofWrappers = []interface{}{+ (*PlanCheckRun_Result_SqlSummaryReport_)(nil),+ (*PlanCheckRun_Result_SqlReviewReport_)(nil),+ }+ type x struct{}+ out := protoimpl.TypeBuilder{+ File: protoimpl.DescBuilder{+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),+ RawDescriptor: file_v1_plan_service_proto_rawDesc,+ NumEnums: 4,+ NumMessages: 24,+ NumExtensions: 0,+ NumServices: 1,+ },+ GoTypes: file_v1_plan_service_proto_goTypes,+ DependencyIndexes: file_v1_plan_service_proto_depIdxs,+ EnumInfos: file_v1_plan_service_proto_enumTypes,+ MessageInfos: file_v1_plan_service_proto_msgTypes,+ }.Build()+ File_v1_plan_service_proto = out.File+ file_v1_plan_service_proto_rawDesc = nil+ file_v1_plan_service_proto_goTypes = nil+ file_v1_plan_service_proto_depIdxs = nil+}diff --git a/proto/generated-go/v1/plan_service.pb.gw.go b/proto/generated-go/v1/plan_service.pb.gw.gonew file mode 100644index 0000000000..9dc2b15af6--- /dev/null+++ b/proto/generated-go/v1/plan_service.pb.gw.go@@ -0,0 +1,804 @@+// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.+// source: v1/plan_service.proto++/*+Package v1 is a reverse proxy.++It translates gRPC into RESTful JSON APIs.+*/+package v1++import (+ "context"+ "io"+ "net/http"++ "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"+ "github.com/grpc-ecosystem/grpc-gateway/v2/utilities"+ "google.golang.org/grpc"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/status"+ "google.golang.org/protobuf/proto"+)++// Suppress "imported and not used" errors+var _ codes.Code+var _ io.Reader+var _ status.Status+var _ = runtime.String+var _ = utilities.NewDoubleArray+var _ = metadata.Join++func request_PlanService_GetPlan_0(ctx context.Context, marshaler runtime.Marshaler, client PlanServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetPlanRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.GetPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_PlanService_GetPlan_0(ctx context.Context, marshaler runtime.Marshaler, server PlanServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetPlanRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.GetPlan(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_PlanService_ListPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}+)++func request_PlanService_ListPlans_0(ctx context.Context, marshaler runtime.Marshaler, client PlanServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListPlansRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PlanService_ListPlans_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.ListPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_PlanService_ListPlans_0(ctx context.Context, marshaler runtime.Marshaler, server PlanServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListPlansRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PlanService_ListPlans_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.ListPlans(ctx, &protoReq)+ return msg, metadata, err++}++func request_PlanService_CreatePlan_0(ctx context.Context, marshaler runtime.Marshaler, client PlanServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq CreatePlanRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Plan); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ msg, err := client.CreatePlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_PlanService_CreatePlan_0(ctx context.Context, marshaler runtime.Marshaler, server PlanServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq CreatePlanRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Plan); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ msg, err := server.CreatePlan(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_PlanService_UpdatePlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"plan": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}}+)++func request_PlanService_UpdatePlan_0(ctx context.Context, marshaler runtime.Marshaler, client PlanServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdatePlanRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Plan); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Plan); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ } else {+ protoReq.UpdateMask = fieldMask+ }+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["plan.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "plan.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "plan.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "plan.name", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PlanService_UpdatePlan_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.UpdatePlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_PlanService_UpdatePlan_0(ctx context.Context, marshaler runtime.Marshaler, server PlanServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdatePlanRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Plan); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Plan); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ } else {+ protoReq.UpdateMask = fieldMask+ }+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["plan.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "plan.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "plan.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "plan.name", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PlanService_UpdatePlan_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.UpdatePlan(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_PlanService_ListPlanCheckRuns_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}+)++func request_PlanService_ListPlanCheckRuns_0(ctx context.Context, marshaler runtime.Marshaler, client PlanServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListPlanCheckRunsRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PlanService_ListPlanCheckRuns_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.ListPlanCheckRuns(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_PlanService_ListPlanCheckRuns_0(ctx context.Context, marshaler runtime.Marshaler, server PlanServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListPlanCheckRunsRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PlanService_ListPlanCheckRuns_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.ListPlanCheckRuns(ctx, &protoReq)+ return msg, metadata, err++}++func request_PlanService_RunPlanChecks_0(ctx context.Context, marshaler runtime.Marshaler, client PlanServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq RunPlanChecksRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.RunPlanChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_PlanService_RunPlanChecks_0(ctx context.Context, marshaler runtime.Marshaler, server PlanServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq RunPlanChecksRequest+ var metadata runtime.ServerMetadata++ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.RunPlanChecks(ctx, &protoReq)+ return msg, metadata, err++}++// RegisterPlanServiceHandlerServer registers the http handlers for service PlanService to "mux".+// UnaryRPC :call PlanServiceServer directly.+// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.+// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPlanServiceHandlerFromEndpoint instead.+func RegisterPlanServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PlanServiceServer) error {++ mux.Handle("GET", pattern_PlanService_GetPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.PlanService/GetPlan", runtime.WithHTTPPathPattern("/v1/{name=projects/*/plans/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_PlanService_GetPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_GetPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_PlanService_ListPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.PlanService/ListPlans", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_PlanService_ListPlans_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_ListPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_PlanService_CreatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.PlanService/CreatePlan", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_PlanService_CreatePlan_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_CreatePlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("PATCH", pattern_PlanService_UpdatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.PlanService/UpdatePlan", runtime.WithHTTPPathPattern("/v1/{plan.name=projects/*/plans/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_PlanService_UpdatePlan_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_UpdatePlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_PlanService_ListPlanCheckRuns_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.PlanService/ListPlanCheckRuns", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/plans/*}/planCheckRuns"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_PlanService_ListPlanCheckRuns_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_ListPlanCheckRuns_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_PlanService_RunPlanChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.PlanService/RunPlanChecks", runtime.WithHTTPPathPattern("/v1/{name=projects/*/plans/*}:runPlanChecks"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_PlanService_RunPlanChecks_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_RunPlanChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ return nil+}++// RegisterPlanServiceHandlerFromEndpoint is same as RegisterPlanServiceHandler but+// automatically dials to "endpoint" and closes the connection when "ctx" gets done.+func RegisterPlanServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {+ conn, err := grpc.NewClient(endpoint, opts...)+ if err != nil {+ return err+ }+ defer func() {+ if err != nil {+ if cerr := conn.Close(); cerr != nil {+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)+ }+ return+ }+ go func() {+ <-ctx.Done()+ if cerr := conn.Close(); cerr != nil {+ grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)+ }+ }()+ }()++ return RegisterPlanServiceHandler(ctx, mux, conn)+}++// RegisterPlanServiceHandler registers the http handlers for service PlanService to "mux".+// The handlers forward requests to the grpc endpoint over "conn".+func RegisterPlanServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {+ return RegisterPlanServiceHandlerClient(ctx, mux, NewPlanServiceClient(conn))+}++// RegisterPlanServiceHandlerClient registers the http handlers for service PlanService+// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PlanServiceClient".+// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PlanServiceClient"+// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in+// "PlanServiceClient" to call the correct interceptors.+func RegisterPlanServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PlanServiceClient) error {++ mux.Handle("GET", pattern_PlanService_GetPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.PlanService/GetPlan", runtime.WithHTTPPathPattern("/v1/{name=projects/*/plans/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_PlanService_GetPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_GetPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_PlanService_ListPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.PlanService/ListPlans", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_PlanService_ListPlans_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_ListPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_PlanService_CreatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.PlanService/CreatePlan", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_PlanService_CreatePlan_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_CreatePlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("PATCH", pattern_PlanService_UpdatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.PlanService/UpdatePlan", runtime.WithHTTPPathPattern("/v1/{plan.name=projects/*/plans/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_PlanService_UpdatePlan_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_UpdatePlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_PlanService_ListPlanCheckRuns_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.PlanService/ListPlanCheckRuns", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/plans/*}/planCheckRuns"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_PlanService_ListPlanCheckRuns_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_ListPlanCheckRuns_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_PlanService_RunPlanChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.PlanService/RunPlanChecks", runtime.WithHTTPPathPattern("/v1/{name=projects/*/plans/*}:runPlanChecks"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_PlanService_RunPlanChecks_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_PlanService_RunPlanChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ return nil+}++var (+ pattern_PlanService_GetPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "name"}, ""))++ pattern_PlanService_ListPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "plans"}, ""))++ pattern_PlanService_CreatePlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "plans"}, ""))++ pattern_PlanService_UpdatePlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "plan.name"}, ""))++ pattern_PlanService_ListPlanCheckRuns_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "projects", "plans", "parent", "planCheckRuns"}, ""))++ pattern_PlanService_RunPlanChecks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "name"}, "runPlanChecks"))+)++var (+ forward_PlanService_GetPlan_0 = runtime.ForwardResponseMessage++ forward_PlanService_ListPlans_0 = runtime.ForwardResponseMessage++ forward_PlanService_CreatePlan_0 = runtime.ForwardResponseMessage++ forward_PlanService_UpdatePlan_0 = runtime.ForwardResponseMessage++ forward_PlanService_ListPlanCheckRuns_0 = runtime.ForwardResponseMessage++ forward_PlanService_RunPlanChecks_0 = runtime.ForwardResponseMessage+)diff --git a/proto/generated-go/v1/plan_service_grpc.pb.go b/proto/generated-go/v1/plan_service_grpc.pb.gonew file mode 100644index 0000000000..374f975b83--- /dev/null+++ b/proto/generated-go/v1/plan_service_grpc.pb.go@@ -0,0 +1,294 @@+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.+// versions:+// - protoc-gen-go-grpc v1.3.0+// - protoc (unknown)+// source: v1/plan_service.proto++package v1++import (+ context "context"+ grpc "google.golang.org/grpc"+ codes "google.golang.org/grpc/codes"+ status "google.golang.org/grpc/status"+)++// This is a compile-time assertion to ensure that this generated file+// is compatible with the grpc package it is being compiled against.+// Requires gRPC-Go v1.32.0 or later.+const _ = grpc.SupportPackageIsVersion7++const (+ PlanService_GetPlan_FullMethodName = "/bytebase.v1.PlanService/GetPlan"+ PlanService_ListPlans_FullMethodName = "/bytebase.v1.PlanService/ListPlans"+ PlanService_CreatePlan_FullMethodName = "/bytebase.v1.PlanService/CreatePlan"+ PlanService_UpdatePlan_FullMethodName = "/bytebase.v1.PlanService/UpdatePlan"+ PlanService_ListPlanCheckRuns_FullMethodName = "/bytebase.v1.PlanService/ListPlanCheckRuns"+ PlanService_RunPlanChecks_FullMethodName = "/bytebase.v1.PlanService/RunPlanChecks"+)++// PlanServiceClient is the client API for PlanService service.+//+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.+type PlanServiceClient interface {+ GetPlan(ctx context.Context, in *GetPlanRequest, opts ...grpc.CallOption) (*Plan, error)+ ListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*ListPlansResponse, error)+ CreatePlan(ctx context.Context, in *CreatePlanRequest, opts ...grpc.CallOption) (*Plan, error)+ UpdatePlan(ctx context.Context, in *UpdatePlanRequest, opts ...grpc.CallOption) (*Plan, error)+ ListPlanCheckRuns(ctx context.Context, in *ListPlanCheckRunsRequest, opts ...grpc.CallOption) (*ListPlanCheckRunsResponse, error)+ RunPlanChecks(ctx context.Context, in *RunPlanChecksRequest, opts ...grpc.CallOption) (*RunPlanChecksResponse, error)+}++type planServiceClient struct {+ cc grpc.ClientConnInterface+}++func NewPlanServiceClient(cc grpc.ClientConnInterface) PlanServiceClient {+ return &planServiceClient{cc}+}++func (c *planServiceClient) GetPlan(ctx context.Context, in *GetPlanRequest, opts ...grpc.CallOption) (*Plan, error) {+ out := new(Plan)+ err := c.cc.Invoke(ctx, PlanService_GetPlan_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *planServiceClient) ListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*ListPlansResponse, error) {+ out := new(ListPlansResponse)+ err := c.cc.Invoke(ctx, PlanService_ListPlans_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *planServiceClient) CreatePlan(ctx context.Context, in *CreatePlanRequest, opts ...grpc.CallOption) (*Plan, error) {+ out := new(Plan)+ err := c.cc.Invoke(ctx, PlanService_CreatePlan_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *planServiceClient) UpdatePlan(ctx context.Context, in *UpdatePlanRequest, opts ...grpc.CallOption) (*Plan, error) {+ out := new(Plan)+ err := c.cc.Invoke(ctx, PlanService_UpdatePlan_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *planServiceClient) ListPlanCheckRuns(ctx context.Context, in *ListPlanCheckRunsRequest, opts ...grpc.CallOption) (*ListPlanCheckRunsResponse, error) {+ out := new(ListPlanCheckRunsResponse)+ err := c.cc.Invoke(ctx, PlanService_ListPlanCheckRuns_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *planServiceClient) RunPlanChecks(ctx context.Context, in *RunPlanChecksRequest, opts ...grpc.CallOption) (*RunPlanChecksResponse, error) {+ out := new(RunPlanChecksResponse)+ err := c.cc.Invoke(ctx, PlanService_RunPlanChecks_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++// PlanServiceServer is the server API for PlanService service.+// All implementations must embed UnimplementedPlanServiceServer+// for forward compatibility+type PlanServiceServer interface {+ GetPlan(context.Context, *GetPlanRequest) (*Plan, error)+ ListPlans(context.Context, *ListPlansRequest) (*ListPlansResponse, error)+ CreatePlan(context.Context, *CreatePlanRequest) (*Plan, error)+ UpdatePlan(context.Context, *UpdatePlanRequest) (*Plan, error)+ ListPlanCheckRuns(context.Context, *ListPlanCheckRunsRequest) (*ListPlanCheckRunsResponse, error)+ RunPlanChecks(context.Context, *RunPlanChecksRequest) (*RunPlanChecksResponse, error)+ mustEmbedUnimplementedPlanServiceServer()+}++// UnimplementedPlanServiceServer must be embedded to have forward compatible implementations.+type UnimplementedPlanServiceServer struct {+}++func (UnimplementedPlanServiceServer) GetPlan(context.Context, *GetPlanRequest) (*Plan, error) {+ return nil, status.Errorf(codes.Unimplemented, "method GetPlan not implemented")+}+func (UnimplementedPlanServiceServer) ListPlans(context.Context, *ListPlansRequest) (*ListPlansResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListPlans not implemented")+}+func (UnimplementedPlanServiceServer) CreatePlan(context.Context, *CreatePlanRequest) (*Plan, error) {+ return nil, status.Errorf(codes.Unimplemented, "method CreatePlan not implemented")+}+func (UnimplementedPlanServiceServer) UpdatePlan(context.Context, *UpdatePlanRequest) (*Plan, error) {+ return nil, status.Errorf(codes.Unimplemented, "method UpdatePlan not implemented")+}+func (UnimplementedPlanServiceServer) ListPlanCheckRuns(context.Context, *ListPlanCheckRunsRequest) (*ListPlanCheckRunsResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListPlanCheckRuns not implemented")+}+func (UnimplementedPlanServiceServer) RunPlanChecks(context.Context, *RunPlanChecksRequest) (*RunPlanChecksResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method RunPlanChecks not implemented")+}+func (UnimplementedPlanServiceServer) mustEmbedUnimplementedPlanServiceServer() {}++// UnsafePlanServiceServer may be embedded to opt out of forward compatibility for this service.+// Use of this interface is not recommended, as added methods to PlanServiceServer will+// result in compilation errors.+type UnsafePlanServiceServer interface {+ mustEmbedUnimplementedPlanServiceServer()+}++func RegisterPlanServiceServer(s grpc.ServiceRegistrar, srv PlanServiceServer) {+ s.RegisterService(&PlanService_ServiceDesc, srv)+}++func _PlanService_GetPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(GetPlanRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(PlanServiceServer).GetPlan(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: PlanService_GetPlan_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(PlanServiceServer).GetPlan(ctx, req.(*GetPlanRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _PlanService_ListPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListPlansRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(PlanServiceServer).ListPlans(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: PlanService_ListPlans_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(PlanServiceServer).ListPlans(ctx, req.(*ListPlansRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _PlanService_CreatePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(CreatePlanRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(PlanServiceServer).CreatePlan(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: PlanService_CreatePlan_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(PlanServiceServer).CreatePlan(ctx, req.(*CreatePlanRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _PlanService_UpdatePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(UpdatePlanRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(PlanServiceServer).UpdatePlan(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: PlanService_UpdatePlan_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(PlanServiceServer).UpdatePlan(ctx, req.(*UpdatePlanRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _PlanService_ListPlanCheckRuns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListPlanCheckRunsRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(PlanServiceServer).ListPlanCheckRuns(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: PlanService_ListPlanCheckRuns_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(PlanServiceServer).ListPlanCheckRuns(ctx, req.(*ListPlanCheckRunsRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _PlanService_RunPlanChecks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(RunPlanChecksRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(PlanServiceServer).RunPlanChecks(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: PlanService_RunPlanChecks_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(PlanServiceServer).RunPlanChecks(ctx, req.(*RunPlanChecksRequest))+ }+ return interceptor(ctx, in, info, handler)+}++// PlanService_ServiceDesc is the grpc.ServiceDesc for PlanService service.+// It's only intended for direct use with grpc.RegisterService,+// and not to be introspected or modified (even as a copy)+var PlanService_ServiceDesc = grpc.ServiceDesc{+ ServiceName: "bytebase.v1.PlanService",+ HandlerType: (*PlanServiceServer)(nil),+ Methods: []grpc.MethodDesc{+ {+ MethodName: "GetPlan",+ Handler: _PlanService_GetPlan_Handler,+ },+ {+ MethodName: "ListPlans",+ Handler: _PlanService_ListPlans_Handler,+ },+ {+ MethodName: "CreatePlan",+ Handler: _PlanService_CreatePlan_Handler,+ },+ {+ MethodName: "UpdatePlan",+ Handler: _PlanService_UpdatePlan_Handler,+ },+ {+ MethodName: "ListPlanCheckRuns",+ Handler: _PlanService_ListPlanCheckRuns_Handler,+ },+ {+ MethodName: "RunPlanChecks",+ Handler: _PlanService_RunPlanChecks_Handler,+ },+ },+ Streams: []grpc.StreamDesc{},+ Metadata: "v1/plan_service.proto",+}diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.goindex 18831589ae..a0c7ef0bc1 100644--- a/proto/generated-go/v1/rollout_service.pb.go+++ b/proto/generated-go/v1/rollout_service.pb.go@@ -10,7 +10,6 @@ import (_ "google.golang.org/genproto/googleapis/api/annotations"protoreflect "google.golang.org/protobuf/reflect/protoreflect"protoimpl "google.golang.org/protobuf/runtime/protoimpl"- fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"timestamppb "google.golang.org/protobuf/types/known/timestamppb"reflect "reflect"sync "sync"@@ -23,243 +22,6 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))-// Type is the database change type.-type Plan_ChangeDatabaseConfig_Type int32--const (- Plan_ChangeDatabaseConfig_TYPE_UNSPECIFIED Plan_ChangeDatabaseConfig_Type = 0- // Used for establishing schema baseline, this is used when- // 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.- // 2. Had schema drift and need to re-establish the baseline.- Plan_ChangeDatabaseConfig_BASELINE Plan_ChangeDatabaseConfig_Type = 1- // Used for DDL changes including CREATE DATABASE.- Plan_ChangeDatabaseConfig_MIGRATE Plan_ChangeDatabaseConfig_Type = 2- // Used for schema changes via state-based schema migration including CREATE DATABASE.- Plan_ChangeDatabaseConfig_MIGRATE_SDL Plan_ChangeDatabaseConfig_Type = 3- // Used for DDL changes using gh-ost.- Plan_ChangeDatabaseConfig_MIGRATE_GHOST Plan_ChangeDatabaseConfig_Type = 4- // Used for DML change.- Plan_ChangeDatabaseConfig_DATA Plan_ChangeDatabaseConfig_Type = 6-)--// Enum value maps for Plan_ChangeDatabaseConfig_Type.-var (- Plan_ChangeDatabaseConfig_Type_name = map[int32]string{- 0: "TYPE_UNSPECIFIED",- 1: "BASELINE",- 2: "MIGRATE",- 3: "MIGRATE_SDL",- 4: "MIGRATE_GHOST",- 6: "DATA",- }- Plan_ChangeDatabaseConfig_Type_value = map[string]int32{- "TYPE_UNSPECIFIED": 0,- "BASELINE": 1,- "MIGRATE": 2,- "MIGRATE_SDL": 3,- "MIGRATE_GHOST": 4,- "DATA": 6,- }-)--func (x Plan_ChangeDatabaseConfig_Type) Enum() *Plan_ChangeDatabaseConfig_Type {- p := new(Plan_ChangeDatabaseConfig_Type)- *p = x- return p-}--func (x Plan_ChangeDatabaseConfig_Type) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (Plan_ChangeDatabaseConfig_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[0].Descriptor()-}--func (Plan_ChangeDatabaseConfig_Type) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[0]-}--func (x Plan_ChangeDatabaseConfig_Type) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use Plan_ChangeDatabaseConfig_Type.Descriptor instead.-func (Plan_ChangeDatabaseConfig_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 3, 0}-}--type PlanCheckRun_Type int32--const (- PlanCheckRun_TYPE_UNSPECIFIED PlanCheckRun_Type = 0- PlanCheckRun_DATABASE_STATEMENT_FAKE_ADVISE PlanCheckRun_Type = 1- PlanCheckRun_DATABASE_STATEMENT_COMPATIBILITY PlanCheckRun_Type = 2- PlanCheckRun_DATABASE_STATEMENT_ADVISE PlanCheckRun_Type = 3- PlanCheckRun_DATABASE_STATEMENT_TYPE PlanCheckRun_Type = 4- PlanCheckRun_DATABASE_STATEMENT_SUMMARY_REPORT PlanCheckRun_Type = 5- PlanCheckRun_DATABASE_CONNECT PlanCheckRun_Type = 6- PlanCheckRun_DATABASE_GHOST_SYNC PlanCheckRun_Type = 7-)--// Enum value maps for PlanCheckRun_Type.-var (- PlanCheckRun_Type_name = map[int32]string{- 0: "TYPE_UNSPECIFIED",- 1: "DATABASE_STATEMENT_FAKE_ADVISE",- 2: "DATABASE_STATEMENT_COMPATIBILITY",- 3: "DATABASE_STATEMENT_ADVISE",- 4: "DATABASE_STATEMENT_TYPE",- 5: "DATABASE_STATEMENT_SUMMARY_REPORT",- 6: "DATABASE_CONNECT",- 7: "DATABASE_GHOST_SYNC",- }- PlanCheckRun_Type_value = map[string]int32{- "TYPE_UNSPECIFIED": 0,- "DATABASE_STATEMENT_FAKE_ADVISE": 1,- "DATABASE_STATEMENT_COMPATIBILITY": 2,- "DATABASE_STATEMENT_ADVISE": 3,- "DATABASE_STATEMENT_TYPE": 4,- "DATABASE_STATEMENT_SUMMARY_REPORT": 5,- "DATABASE_CONNECT": 6,- "DATABASE_GHOST_SYNC": 7,- }-)--func (x PlanCheckRun_Type) Enum() *PlanCheckRun_Type {- p := new(PlanCheckRun_Type)- *p = x- return p-}--func (x PlanCheckRun_Type) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (PlanCheckRun_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[1].Descriptor()-}--func (PlanCheckRun_Type) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[1]-}--func (x PlanCheckRun_Type) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use PlanCheckRun_Type.Descriptor instead.-func (PlanCheckRun_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{16, 0}-}--type PlanCheckRun_Status int32--const (- PlanCheckRun_STATUS_UNSPECIFIED PlanCheckRun_Status = 0- PlanCheckRun_RUNNING PlanCheckRun_Status = 1- PlanCheckRun_DONE PlanCheckRun_Status = 2- PlanCheckRun_FAILED PlanCheckRun_Status = 3- PlanCheckRun_CANCELED PlanCheckRun_Status = 4-)--// Enum value maps for PlanCheckRun_Status.-var (- PlanCheckRun_Status_name = map[int32]string{- 0: "STATUS_UNSPECIFIED",- 1: "RUNNING",- 2: "DONE",- 3: "FAILED",- 4: "CANCELED",- }- PlanCheckRun_Status_value = map[string]int32{- "STATUS_UNSPECIFIED": 0,- "RUNNING": 1,- "DONE": 2,- "FAILED": 3,- "CANCELED": 4,- }-)--func (x PlanCheckRun_Status) Enum() *PlanCheckRun_Status {- p := new(PlanCheckRun_Status)- *p = x- return p-}--func (x PlanCheckRun_Status) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (PlanCheckRun_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[2].Descriptor()-}--func (PlanCheckRun_Status) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[2]-}--func (x PlanCheckRun_Status) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use PlanCheckRun_Status.Descriptor instead.-func (PlanCheckRun_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{16, 1}-}--type PlanCheckRun_Result_Status int32--const (- PlanCheckRun_Result_STATUS_UNSPECIFIED PlanCheckRun_Result_Status = 0- PlanCheckRun_Result_ERROR PlanCheckRun_Result_Status = 1- PlanCheckRun_Result_WARNING PlanCheckRun_Result_Status = 2- PlanCheckRun_Result_SUCCESS PlanCheckRun_Result_Status = 3-)--// Enum value maps for PlanCheckRun_Result_Status.-var (- PlanCheckRun_Result_Status_name = map[int32]string{- 0: "STATUS_UNSPECIFIED",- 1: "ERROR",- 2: "WARNING",- 3: "SUCCESS",- }- PlanCheckRun_Result_Status_value = map[string]int32{- "STATUS_UNSPECIFIED": 0,- "ERROR": 1,- "WARNING": 2,- "SUCCESS": 3,- }-)--func (x PlanCheckRun_Result_Status) Enum() *PlanCheckRun_Result_Status {- p := new(PlanCheckRun_Result_Status)- *p = x- return p-}--func (x PlanCheckRun_Result_Status) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (PlanCheckRun_Result_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[3].Descriptor()-}--func (PlanCheckRun_Result_Status) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[3]-}--func (x PlanCheckRun_Result_Status) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use PlanCheckRun_Result_Status.Descriptor instead.-func (PlanCheckRun_Result_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{16, 0, 0}-}-type Task_Status int32const (@@ -308,11 +70,11 @@ func (x Task_Status) String() string {}func (Task_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[4].Descriptor()+ return file_v1_rollout_service_proto_enumTypes[0].Descriptor()}func (Task_Status) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[4]+ return &file_v1_rollout_service_proto_enumTypes[0]}func (x Task_Status) Number() protoreflect.EnumNumber {@@ -321,7 +83,7 @@ func (x Task_Status) Number() protoreflect.EnumNumber {// Deprecated: Use Task_Status.Descriptor instead.func (Task_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{14, 0}}type Task_Type int32@@ -386,11 +148,11 @@ func (x Task_Type) String() string {}func (Task_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[5].Descriptor()+ return file_v1_rollout_service_proto_enumTypes[1].Descriptor()}func (Task_Type) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[5]+ return &file_v1_rollout_service_proto_enumTypes[1]}func (x Task_Type) Number() protoreflect.EnumNumber {@@ -399,7 +161,7 @@ func (x Task_Type) Number() protoreflect.EnumNumber {// Deprecated: Use Task_Type.Descriptor instead.func (Task_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 1}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{14, 1}}type Task_DatabaseDataUpdate_RollbackSqlStatus int32@@ -438,11 +200,11 @@ func (x Task_DatabaseDataUpdate_RollbackSqlStatus) String() string {}func (Task_DatabaseDataUpdate_RollbackSqlStatus) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[6].Descriptor()+ return file_v1_rollout_service_proto_enumTypes[2].Descriptor()}func (Task_DatabaseDataUpdate_RollbackSqlStatus) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[6]+ return &file_v1_rollout_service_proto_enumTypes[2]}func (x Task_DatabaseDataUpdate_RollbackSqlStatus) Number() protoreflect.EnumNumber {@@ -451,7 +213,7 @@ func (x Task_DatabaseDataUpdate_RollbackSqlStatus) Number() protoreflect.EnumNum// Deprecated: Use Task_DatabaseDataUpdate_RollbackSqlStatus.Descriptor instead.func (Task_DatabaseDataUpdate_RollbackSqlStatus) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 3, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{14, 3, 0}}type TaskRun_Status int32@@ -496,11 +258,11 @@ func (x TaskRun_Status) String() string {}func (TaskRun_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[7].Descriptor()+ return file_v1_rollout_service_proto_enumTypes[3].Descriptor()}func (TaskRun_Status) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[7]+ return &file_v1_rollout_service_proto_enumTypes[3]}func (x TaskRun_Status) Number() protoreflect.EnumNumber {@@ -509,7 +271,7 @@ func (x TaskRun_Status) Number() protoreflect.EnumNumber {// Deprecated: Use TaskRun_Status.Descriptor instead.func (TaskRun_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{26, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{15, 0}}type TaskRun_ExecutionStatus int32@@ -548,11 +310,11 @@ func (x TaskRun_ExecutionStatus) String() string {}func (TaskRun_ExecutionStatus) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[8].Descriptor()+ return file_v1_rollout_service_proto_enumTypes[4].Descriptor()}func (TaskRun_ExecutionStatus) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[8]+ return &file_v1_rollout_service_proto_enumTypes[4]}func (x TaskRun_ExecutionStatus) Number() protoreflect.EnumNumber {@@ -561,7 +323,7 @@ func (x TaskRun_ExecutionStatus) Number() protoreflect.EnumNumber {// Deprecated: Use TaskRun_ExecutionStatus.Descriptor instead.func (TaskRun_ExecutionStatus) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{26, 1}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{15, 1}}type TaskRun_ExportArchiveStatus int32@@ -597,11 +359,11 @@ func (x TaskRun_ExportArchiveStatus) String() string {}func (TaskRun_ExportArchiveStatus) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[9].Descriptor()+ return file_v1_rollout_service_proto_enumTypes[5].Descriptor()}func (TaskRun_ExportArchiveStatus) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[9]+ return &file_v1_rollout_service_proto_enumTypes[5]}func (x TaskRun_ExportArchiveStatus) Number() protoreflect.EnumNumber {@@ -610,7 +372,7 @@ func (x TaskRun_ExportArchiveStatus) Number() protoreflect.EnumNumber {// Deprecated: Use TaskRun_ExportArchiveStatus.Descriptor instead.func (TaskRun_ExportArchiveStatus) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{26, 2}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{15, 2}}type TaskRunLogEntry_Type int32@@ -646,11 +408,11 @@ func (x TaskRunLogEntry_Type) String() string {}func (TaskRunLogEntry_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_rollout_service_proto_enumTypes[10].Descriptor()+ return file_v1_rollout_service_proto_enumTypes[6].Descriptor()}func (TaskRunLogEntry_Type) Type() protoreflect.EnumType {- return &file_v1_rollout_service_proto_enumTypes[10]+ return &file_v1_rollout_service_proto_enumTypes[6]}func (x TaskRunLogEntry_Type) Number() protoreflect.EnumNumber {@@ -659,21 +421,25 @@ func (x TaskRunLogEntry_Type) Number() protoreflect.EnumNumber {// Deprecated: Use TaskRunLogEntry_Type.Descriptor instead.func (TaskRunLogEntry_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{28, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 0}}-type GetPlanRequest struct {+type BatchRunTasksRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the plan to retrieve.- // Format: projects/{project}/plans/{plan}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The name of the parent of the tasks.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The tasks to run.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ Tasks []string `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`+ Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`}-func (x *GetPlanRequest) Reset() {- *x = GetPlanRequest{}+func (x *BatchRunTasksRequest) Reset() {+ *x = BatchRunTasksRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[0]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -681,13 +447,13 @@ func (x *GetPlanRequest) Reset() {}}-func (x *GetPlanRequest) String() string {+func (x *BatchRunTasksRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*GetPlanRequest) ProtoMessage() {}+func (*BatchRunTasksRequest) ProtoMessage() {}-func (x *GetPlanRequest) ProtoReflect() protoreflect.Message {+func (x *BatchRunTasksRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[0]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -699,42 +465,40 @@ func (x *GetPlanRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use GetPlanRequest.ProtoReflect.Descriptor instead.-func (*GetPlanRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use BatchRunTasksRequest.ProtoReflect.Descriptor instead.+func (*BatchRunTasksRequest) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{0}}-func (x *GetPlanRequest) GetName() string {+func (x *BatchRunTasksRequest) GetParent() string {if x != nil {- return x.Name+ return x.Parent+ }+ return ""+}++func (x *BatchRunTasksRequest) GetTasks() []string {+ if x != nil {+ return x.Tasks+ }+ return nil+}++func (x *BatchRunTasksRequest) GetReason() string {+ if x != nil {+ return x.Reason}return ""}-type ListPlansRequest struct {+type BatchRunTasksResponse struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields-- // The parent, which owns this collection of plans.- // Format: projects/{project}- // Use "projects/-" to list all plans from all projects.- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The maximum number of plans to return. The service may return fewer than- // this value.- // If unspecified, at most 50 plans will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`- // A page token, received from a previous `ListPlans` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListPlans` must match- // the call that provided the page token.- PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`}-func (x *ListPlansRequest) Reset() {- *x = ListPlansRequest{}+func (x *BatchRunTasksResponse) Reset() {+ *x = BatchRunTasksResponse{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[1]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -742,13 +506,13 @@ func (x *ListPlansRequest) Reset() {}}-func (x *ListPlansRequest) String() string {+func (x *BatchRunTasksResponse) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListPlansRequest) ProtoMessage() {}+func (*BatchRunTasksResponse) ProtoMessage() {}-func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {+func (x *BatchRunTasksResponse) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[1]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -760,46 +524,27 @@ func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListPlansRequest.ProtoReflect.Descriptor instead.-func (*ListPlansRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use BatchRunTasksResponse.ProtoReflect.Descriptor instead.+func (*BatchRunTasksResponse) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{1}}-func (x *ListPlansRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *ListPlansRequest) GetPageSize() int32 {- if x != nil {- return x.PageSize- }- return 0-}--func (x *ListPlansRequest) GetPageToken() string {- if x != nil {- return x.PageToken- }- return ""-}--type ListPlansResponse struct {+type BatchSkipTasksRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The plans from the specified request.- Plans []*Plan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+ // The name of the parent of the tasks.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The tasks to skip.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ Tasks []string `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`+ Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`}-func (x *ListPlansResponse) Reset() {- *x = ListPlansResponse{}+func (x *BatchSkipTasksRequest) Reset() {+ *x = BatchSkipTasksRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -807,13 +552,13 @@ func (x *ListPlansResponse) Reset() {}}-func (x *ListPlansResponse) String() string {+func (x *BatchSkipTasksRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListPlansResponse) ProtoMessage() {}+func (*BatchSkipTasksRequest) ProtoMessage() {}-func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {+func (x *BatchSkipTasksRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[2]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -825,39 +570,40 @@ func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListPlansResponse.ProtoReflect.Descriptor instead.-func (*ListPlansResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use BatchSkipTasksRequest.ProtoReflect.Descriptor instead.+func (*BatchSkipTasksRequest) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{2}}-func (x *ListPlansResponse) GetPlans() []*Plan {+func (x *BatchSkipTasksRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *BatchSkipTasksRequest) GetTasks() []string {if x != nil {- return x.Plans+ return x.Tasks}return nil}-func (x *ListPlansResponse) GetNextPageToken() string {+func (x *BatchSkipTasksRequest) GetReason() string {if x != nil {- return x.NextPageToken+ return x.Reason}return ""}-type CreatePlanRequest struct {+type BatchSkipTasksResponse struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields-- // The parent project where this plan will be created.- // Format: projects/{project}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The plan to create.- Plan *Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"`}-func (x *CreatePlanRequest) Reset() {- *x = CreatePlanRequest{}+func (x *BatchSkipTasksResponse) Reset() {+ *x = BatchSkipTasksResponse{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -865,13 +611,13 @@ func (x *CreatePlanRequest) Reset() {}}-func (x *CreatePlanRequest) String() string {+func (x *BatchSkipTasksResponse) String() string {return protoimpl.X.MessageStringOf(x)}-func (*CreatePlanRequest) ProtoMessage() {}+func (*BatchSkipTasksResponse) ProtoMessage() {}-func (x *CreatePlanRequest) ProtoReflect() protoreflect.Message {+func (x *BatchSkipTasksResponse) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[3]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -883,41 +629,28 @@ func (x *CreatePlanRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use CreatePlanRequest.ProtoReflect.Descriptor instead.-func (*CreatePlanRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use BatchSkipTasksResponse.ProtoReflect.Descriptor instead.+func (*BatchSkipTasksResponse) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{3}}-func (x *CreatePlanRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *CreatePlanRequest) GetPlan() *Plan {- if x != nil {- return x.Plan- }- return nil-}--type UpdatePlanRequest struct {+type BatchCancelTaskRunsRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The plan to update.- //- // The plan's `name` field is used to identify the plan to update.- // Format: projects/{project}/plans/{plan}- Plan *Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`- // The list of fields to update.- UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`+ // The name of the parent of the taskRuns.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ // Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage.+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The taskRuns to cancel.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}+ TaskRuns []string `protobuf:"bytes,2,rep,name=task_runs,json=taskRuns,proto3" json:"task_runs,omitempty"`+ Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`}-func (x *UpdatePlanRequest) Reset() {- *x = UpdatePlanRequest{}+func (x *BatchCancelTaskRunsRequest) Reset() {+ *x = BatchCancelTaskRunsRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -925,13 +658,13 @@ func (x *UpdatePlanRequest) Reset() {}}-func (x *UpdatePlanRequest) String() string {+func (x *BatchCancelTaskRunsRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*UpdatePlanRequest) ProtoMessage() {}+func (*BatchCancelTaskRunsRequest) ProtoMessage() {}-func (x *UpdatePlanRequest) ProtoReflect() protoreflect.Message {+func (x *BatchCancelTaskRunsRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[4]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -943,50 +676,40 @@ func (x *UpdatePlanRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use UpdatePlanRequest.ProtoReflect.Descriptor instead.-func (*UpdatePlanRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use BatchCancelTaskRunsRequest.ProtoReflect.Descriptor instead.+func (*BatchCancelTaskRunsRequest) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{4}}-func (x *UpdatePlanRequest) GetPlan() *Plan {+func (x *BatchCancelTaskRunsRequest) GetParent() string {if x != nil {- return x.Plan+ return x.Parent}- return nil+ return ""}-func (x *UpdatePlanRequest) GetUpdateMask() *fieldmaskpb.FieldMask {+func (x *BatchCancelTaskRunsRequest) GetTaskRuns() []string {if x != nil {- return x.UpdateMask+ return x.TaskRuns}return nil}-type Plan struct {+func (x *BatchCancelTaskRunsRequest) GetReason() string {+ if x != nil {+ return x.Reason+ }+ return ""+}++type BatchCancelTaskRunsResponse struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields+}- // The name of the plan.- // `plan` is a system generated ID.- // Format: projects/{project}/plans/{plan}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The system-assigned, unique identifier for a resource.- Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`- // The resource name of the issue associated with this plan.- // Format: projects/{project}/issues/{issue}- Issue string `protobuf:"bytes,3,opt,name=issue,proto3" json:"issue,omitempty"`- Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`- Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`- Steps []*Plan_Step `protobuf:"bytes,6,rep,name=steps,proto3" json:"steps,omitempty"`- VcsSource *Plan_VCSSource `protobuf:"bytes,7,opt,name=vcs_source,json=vcsSource,proto3" json:"vcs_source,omitempty"`- // Format: users/[email protected]- Creator string `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"`- CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`-}--func (x *Plan) Reset() {- *x = Plan{}+func (x *BatchCancelTaskRunsResponse) Reset() {+ *x = BatchCancelTaskRunsResponse{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -994,13 +717,13 @@ func (x *Plan) Reset() {}}-func (x *Plan) String() string {+func (x *BatchCancelTaskRunsResponse) String() string {return protoimpl.X.MessageStringOf(x)}-func (*Plan) ProtoMessage() {}+func (*BatchCancelTaskRunsResponse) ProtoMessage() {}-func (x *Plan) ProtoReflect() protoreflect.Message {+func (x *BatchCancelTaskRunsResponse) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1012,97 +735,23 @@ func (x *Plan) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use Plan.ProtoReflect.Descriptor instead.-func (*Plan) Descriptor() ([]byte, []int) {+// Deprecated: Use BatchCancelTaskRunsResponse.ProtoReflect.Descriptor instead.+func (*BatchCancelTaskRunsResponse) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{5}}-func (x *Plan) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *Plan) GetUid() string {- if x != nil {- return x.Uid- }- return ""-}--func (x *Plan) GetIssue() string {- if x != nil {- return x.Issue- }- return ""-}--func (x *Plan) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *Plan) GetDescription() string {- if x != nil {- return x.Description- }- return ""-}--func (x *Plan) GetSteps() []*Plan_Step {- if x != nil {- return x.Steps- }- return nil-}--func (x *Plan) GetVcsSource() *Plan_VCSSource {- if x != nil {- return x.VcsSource- }- return nil-}--func (x *Plan) GetCreator() string {- if x != nil {- return x.Creator- }- return ""-}--func (x *Plan) GetCreateTime() *timestamppb.Timestamp {- if x != nil {- return x.CreateTime- }- return nil-}--type ListPlanCheckRunsRequest struct {+type GetRolloutRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The parent, which owns this collection of plan check runs.- // Format: projects/{project}/plans/{plan}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The maximum number of plan check runs to return. The service may return fewer than- // this value.- // If unspecified, at most 50 plans will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`- // A page token, received from a previous `ListPlanCheckRuns` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListPlanCheckRuns` must match- // the call that provided the page token.- PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`+ // The name of the rollout to retrieve.+ // Format: projects/{project}/rollouts/{rollout}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`}-func (x *ListPlanCheckRunsRequest) Reset() {- *x = ListPlanCheckRunsRequest{}+func (x *GetRolloutRequest) Reset() {+ *x = GetRolloutRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1110,13 +759,13 @@ func (x *ListPlanCheckRunsRequest) Reset() {}}-func (x *ListPlanCheckRunsRequest) String() string {+func (x *GetRolloutRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListPlanCheckRunsRequest) ProtoMessage() {}+func (*GetRolloutRequest) ProtoMessage() {}-func (x *ListPlanCheckRunsRequest) ProtoReflect() protoreflect.Message {+func (x *GetRolloutRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[6]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1128,46 +777,32 @@ func (x *ListPlanCheckRunsRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListPlanCheckRunsRequest.ProtoReflect.Descriptor instead.-func (*ListPlanCheckRunsRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use GetRolloutRequest.ProtoReflect.Descriptor instead.+func (*GetRolloutRequest) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{6}}-func (x *ListPlanCheckRunsRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *ListPlanCheckRunsRequest) GetPageSize() int32 {- if x != nil {- return x.PageSize- }- return 0-}--func (x *ListPlanCheckRunsRequest) GetPageToken() string {+func (x *GetRolloutRequest) GetName() string {if x != nil {- return x.PageToken+ return x.Name}return ""}-type ListPlanCheckRunsResponse struct {+type CreateRolloutRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The plan check runs from the specified request.- PlanCheckRuns []*PlanCheckRun `protobuf:"bytes,1,rep,name=plan_check_runs,json=planCheckRuns,proto3" json:"plan_check_runs,omitempty"`- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+ // The parent project where this rollout will be created.+ // Format: projects/{project}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The rollout to create.+ Rollout *Rollout `protobuf:"bytes,2,opt,name=rollout,proto3" json:"rollout,omitempty"`}-func (x *ListPlanCheckRunsResponse) Reset() {- *x = ListPlanCheckRunsResponse{}+func (x *CreateRolloutRequest) Reset() {+ *x = CreateRolloutRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1175,13 +810,13 @@ func (x *ListPlanCheckRunsResponse) Reset() {}}-func (x *ListPlanCheckRunsResponse) String() string {+func (x *CreateRolloutRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListPlanCheckRunsResponse) ProtoMessage() {}+func (*CreateRolloutRequest) ProtoMessage() {}-func (x *ListPlanCheckRunsResponse) ProtoReflect() protoreflect.Message {+func (x *CreateRolloutRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[7]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1193,37 +828,39 @@ func (x *ListPlanCheckRunsResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListPlanCheckRunsResponse.ProtoReflect.Descriptor instead.-func (*ListPlanCheckRunsResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use CreateRolloutRequest.ProtoReflect.Descriptor instead.+func (*CreateRolloutRequest) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{7}}-func (x *ListPlanCheckRunsResponse) GetPlanCheckRuns() []*PlanCheckRun {+func (x *CreateRolloutRequest) GetParent() string {if x != nil {- return x.PlanCheckRuns+ return x.Parent}- return nil+ return ""}-func (x *ListPlanCheckRunsResponse) GetNextPageToken() string {+func (x *CreateRolloutRequest) GetRollout() *Rollout {if x != nil {- return x.NextPageToken+ return x.Rollout}- return ""+ return nil}-type RunPlanChecksRequest struct {+type PreviewRolloutRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The plan to run plan checks.- // Format: projects/{project}/plans/{plan}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The name of the project.+ // Format: projects/{project}+ Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`+ // The plan used to preview rollout.+ Plan *Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"`}-func (x *RunPlanChecksRequest) Reset() {- *x = RunPlanChecksRequest{}+func (x *PreviewRolloutRequest) Reset() {+ *x = PreviewRolloutRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1231,13 +868,13 @@ func (x *RunPlanChecksRequest) Reset() {}}-func (x *RunPlanChecksRequest) String() string {+func (x *PreviewRolloutRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*RunPlanChecksRequest) ProtoMessage() {}+func (*PreviewRolloutRequest) ProtoMessage() {}-func (x *RunPlanChecksRequest) ProtoReflect() protoreflect.Message {+func (x *PreviewRolloutRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1249,26 +886,49 @@ func (x *RunPlanChecksRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use RunPlanChecksRequest.ProtoReflect.Descriptor instead.-func (*RunPlanChecksRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use PreviewRolloutRequest.ProtoReflect.Descriptor instead.+func (*PreviewRolloutRequest) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{8}}-func (x *RunPlanChecksRequest) GetName() string {+func (x *PreviewRolloutRequest) GetProject() string {if x != nil {- return x.Name+ return x.Project}return ""}-type RunPlanChecksResponse struct {+func (x *PreviewRolloutRequest) GetPlan() *Plan {+ if x != nil {+ return x.Plan+ }+ return nil+}++type ListTaskRunsRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields++ // The parent, which owns this collection of plans.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ // Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout.+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The maximum number of taskRuns to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 taskRuns will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`+ // A page token, received from a previous `ListRolloutTaskRuns` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListRolloutTaskRuns` must match+ // the call that provided the page token.+ PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`}-func (x *RunPlanChecksResponse) Reset() {- *x = RunPlanChecksResponse{}+func (x *ListTaskRunsRequest) Reset() {+ *x = ListTaskRunsRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1276,13 +936,13 @@ func (x *RunPlanChecksResponse) Reset() {}}-func (x *RunPlanChecksResponse) String() string {+func (x *ListTaskRunsRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*RunPlanChecksResponse) ProtoMessage() {}+func (*ListTaskRunsRequest) ProtoMessage() {}-func (x *RunPlanChecksResponse) ProtoReflect() protoreflect.Message {+func (x *ListTaskRunsRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1294,27 +954,46 @@ func (x *RunPlanChecksResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use RunPlanChecksResponse.ProtoReflect.Descriptor instead.-func (*RunPlanChecksResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use ListTaskRunsRequest.ProtoReflect.Descriptor instead.+func (*ListTaskRunsRequest) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{9}}-type BatchRunTasksRequest struct {+func (x *ListTaskRunsRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++func (x *ListTaskRunsRequest) GetPageSize() int32 {+ if x != nil {+ return x.PageSize+ }+ return 0+}++func (x *ListTaskRunsRequest) GetPageToken() string {+ if x != nil {+ return x.PageToken+ }+ return ""+}++type ListTaskRunsResponse struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the parent of the tasks.- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The tasks to run.- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- Tasks []string `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`- Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`+ // The taskRuns from the specified request.+ TaskRuns []*TaskRun `protobuf:"bytes,1,rep,name=task_runs,json=taskRuns,proto3" json:"task_runs,omitempty"`+ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`}-func (x *BatchRunTasksRequest) Reset() {- *x = BatchRunTasksRequest{}+func (x *ListTaskRunsResponse) Reset() {+ *x = ListTaskRunsResponse{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1322,13 +1001,13 @@ func (x *BatchRunTasksRequest) Reset() {}}-func (x *BatchRunTasksRequest) String() string {+func (x *ListTaskRunsResponse) String() string {return protoimpl.X.MessageStringOf(x)}-func (*BatchRunTasksRequest) ProtoMessage() {}+func (*ListTaskRunsResponse) ProtoMessage() {}-func (x *BatchRunTasksRequest) ProtoReflect() protoreflect.Message {+func (x *ListTaskRunsResponse) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[10]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1340,40 +1019,36 @@ func (x *BatchRunTasksRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use BatchRunTasksRequest.ProtoReflect.Descriptor instead.-func (*BatchRunTasksRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use ListTaskRunsResponse.ProtoReflect.Descriptor instead.+func (*ListTaskRunsResponse) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{10}}-func (x *BatchRunTasksRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *BatchRunTasksRequest) GetTasks() []string {+func (x *ListTaskRunsResponse) GetTaskRuns() []*TaskRun {if x != nil {- return x.Tasks+ return x.TaskRuns}return nil}-func (x *BatchRunTasksRequest) GetReason() string {+func (x *ListTaskRunsResponse) GetNextPageToken() string {if x != nil {- return x.Reason+ return x.NextPageToken}return ""}-type BatchRunTasksResponse struct {+type GetTaskRunLogRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields++ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`}-func (x *BatchRunTasksResponse) Reset() {- *x = BatchRunTasksResponse{}+func (x *GetTaskRunLogRequest) Reset() {+ *x = GetTaskRunLogRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1381,13 +1056,13 @@ func (x *BatchRunTasksResponse) Reset() {}}-func (x *BatchRunTasksResponse) String() string {+func (x *GetTaskRunLogRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*BatchRunTasksResponse) ProtoMessage() {}+func (*GetTaskRunLogRequest) ProtoMessage() {}-func (x *BatchRunTasksResponse) ProtoReflect() protoreflect.Message {+func (x *GetTaskRunLogRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[11]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1399,27 +1074,38 @@ func (x *BatchRunTasksResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use BatchRunTasksResponse.ProtoReflect.Descriptor instead.-func (*BatchRunTasksResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use GetTaskRunLogRequest.ProtoReflect.Descriptor instead.+func (*GetTaskRunLogRequest) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{11}}-type BatchSkipTasksRequest struct {+func (x *GetTaskRunLogRequest) GetParent() string {+ if x != nil {+ return x.Parent+ }+ return ""+}++type Rollout struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the parent of the tasks.- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The tasks to skip.- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- Tasks []string `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`- Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`+ // The resource name of the rollout.+ // Format: projects/{project}/rollouts/{rollout}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ // The plan that this rollout is based on.+ // Format: projects/{project}/plans/{plan}+ Plan string `protobuf:"bytes,3,opt,name=plan,proto3" json:"plan,omitempty"`+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`+ // stages and thus tasks of the rollout.+ Stages []*Stage `protobuf:"bytes,5,rep,name=stages,proto3" json:"stages,omitempty"`}-func (x *BatchSkipTasksRequest) Reset() {- *x = BatchSkipTasksRequest{}+func (x *Rollout) Reset() {+ *x = Rollout{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1427,13 +1113,13 @@ func (x *BatchSkipTasksRequest) Reset() {}}-func (x *BatchSkipTasksRequest) String() string {+func (x *Rollout) String() string {return protoimpl.X.MessageStringOf(x)}-func (*BatchSkipTasksRequest) ProtoMessage() {}+func (*Rollout) ProtoMessage() {}-func (x *BatchSkipTasksRequest) ProtoReflect() protoreflect.Message {+func (x *Rollout) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[12]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1445,40 +1131,61 @@ func (x *BatchSkipTasksRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use BatchSkipTasksRequest.ProtoReflect.Descriptor instead.-func (*BatchSkipTasksRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use Rollout.ProtoReflect.Descriptor instead.+func (*Rollout) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{12}}-func (x *BatchSkipTasksRequest) GetParent() string {+func (x *Rollout) GetName() string {if x != nil {- return x.Parent+ return x.Name}return ""}-func (x *BatchSkipTasksRequest) GetTasks() []string {+func (x *Rollout) GetUid() string {if x != nil {- return x.Tasks+ return x.Uid}- return nil+ return ""}-func (x *BatchSkipTasksRequest) GetReason() string {+func (x *Rollout) GetPlan() string {if x != nil {- return x.Reason+ return x.Plan}return ""}-type BatchSkipTasksResponse struct {+func (x *Rollout) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Rollout) GetStages() []*Stage {+ if x != nil {+ return x.Stages+ }+ return nil+}++type Stage struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields++ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`+ Tasks []*Task `protobuf:"bytes,5,rep,name=tasks,proto3" json:"tasks,omitempty"`}-func (x *BatchSkipTasksResponse) Reset() {- *x = BatchSkipTasksResponse{}+func (x *Stage) Reset() {+ *x = Stage{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1486,13 +1193,13 @@ func (x *BatchSkipTasksResponse) Reset() {}}-func (x *BatchSkipTasksResponse) String() string {+func (x *Stage) String() string {return protoimpl.X.MessageStringOf(x)}-func (*BatchSkipTasksResponse) ProtoMessage() {}+func (*Stage) ProtoMessage() {}-func (x *BatchSkipTasksResponse) ProtoReflect() protoreflect.Message {+func (x *Stage) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[13]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1504,28 +1211,73 @@ func (x *BatchSkipTasksResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use BatchSkipTasksResponse.ProtoReflect.Descriptor instead.-func (*BatchSkipTasksResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use Stage.ProtoReflect.Descriptor instead.+func (*Stage) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{13}}-type BatchCancelTaskRunsRequest struct {+func (x *Stage) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *Stage) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *Stage) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Stage) GetTasks() []*Task {+ if x != nil {+ return x.Tasks+ }+ return nil+}++type Task struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The name of the parent of the taskRuns.// Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- // Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage.- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The taskRuns to cancel.- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}- TaskRuns []string `protobuf:"bytes,2,rep,name=task_runs,json=taskRuns,proto3" json:"task_runs,omitempty"`- Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`+ // A UUID4 string that uniquely identifies the Spec.+ // Could be empty if the rollout of the task does not have an associating plan.+ SpecId string `protobuf:"bytes,4,opt,name=spec_id,json=specId,proto3" json:"spec_id,omitempty"`+ // Status is the status of the task.+ Status Task_Status `protobuf:"varint,5,opt,name=status,proto3,enum=bytebase.v1.Task_Status" json:"status,omitempty"`+ SkippedReason string `protobuf:"bytes,15,opt,name=skipped_reason,json=skippedReason,proto3" json:"skipped_reason,omitempty"`+ Type Task_Type `protobuf:"varint,6,opt,name=type,proto3,enum=bytebase.v1.Task_Type" json:"type,omitempty"`+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ DependsOnTasks []string `protobuf:"bytes,7,rep,name=depends_on_tasks,json=dependsOnTasks,proto3" json:"depends_on_tasks,omitempty"`+ // Format: instances/{instance} if the task is DatabaseCreate.+ // Format: instances/{instance}/databases/{database}+ Target string `protobuf:"bytes,8,opt,name=target,proto3" json:"target,omitempty"`+ // Types that are assignable to Payload:+ //+ // *Task_DatabaseCreate_+ // *Task_DatabaseSchemaBaseline_+ // *Task_DatabaseSchemaUpdate_+ // *Task_DatabaseDataUpdate_+ // *Task_DatabaseDataExport_+ Payload isTask_Payload `protobuf_oneof:"payload"`}-func (x *BatchCancelTaskRunsRequest) Reset() {- *x = BatchCancelTaskRunsRequest{}+func (x *Task) Reset() {+ *x = Task{}if protoimpl.UnsafeEnabled {mi := &file_v1_rollout_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1533,13 +1285,13 @@ func (x *BatchCancelTaskRunsRequest) Reset() {}}-func (x *BatchCancelTaskRunsRequest) String() string {+func (x *Task) String() string {return protoimpl.X.MessageStringOf(x)}-func (*BatchCancelTaskRunsRequest) ProtoMessage() {}+func (*Task) ProtoMessage() {}-func (x *BatchCancelTaskRunsRequest) ProtoReflect() protoreflect.Message {+func (x *Task) ProtoReflect() protoreflect.Message {mi := &file_v1_rollout_service_proto_msgTypes[14]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -1551,1833 +1303,198 @@ func (x *BatchCancelTaskRunsRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use BatchCancelTaskRunsRequest.ProtoReflect.Descriptor instead.-func (*BatchCancelTaskRunsRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use Task.ProtoReflect.Descriptor instead.+func (*Task) Descriptor() ([]byte, []int) {return file_v1_rollout_service_proto_rawDescGZIP(), []int{14}}-func (x *BatchCancelTaskRunsRequest) GetParent() string {+func (x *Task) GetName() string {if x != nil {- return x.Parent+ return x.Name}return ""}-func (x *BatchCancelTaskRunsRequest) GetTaskRuns() []string {+func (x *Task) GetUid() string {if x != nil {- return x.TaskRuns+ return x.Uid}- return nil+ return ""}-func (x *BatchCancelTaskRunsRequest) GetReason() string {+func (x *Task) GetTitle() string {if x != nil {- return x.Reason+ return x.Title}return ""}-type BatchCancelTaskRunsResponse struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-}--func (x *BatchCancelTaskRunsResponse) Reset() {- *x = BatchCancelTaskRunsResponse{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[15]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)+func (x *Task) GetSpecId() string {+ if x != nil {+ return x.SpecId}+ return ""}-func (x *BatchCancelTaskRunsResponse) String() string {- return protoimpl.X.MessageStringOf(x)+func (x *Task) GetStatus() Task_Status {+ if x != nil {+ return x.Status+ }+ return Task_STATUS_UNSPECIFIED}-func (*BatchCancelTaskRunsResponse) ProtoMessage() {}--func (x *BatchCancelTaskRunsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[15]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms+func (x *Task) GetSkippedReason() string {+ if x != nil {+ return x.SkippedReason}- return mi.MessageOf(x)+ return ""}-// Deprecated: Use BatchCancelTaskRunsResponse.ProtoReflect.Descriptor instead.-func (*BatchCancelTaskRunsResponse) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{15}-}--type PlanCheckRun struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The system-assigned, unique identifier for a resource.- Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`- Type PlanCheckRun_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.PlanCheckRun_Type" json:"type,omitempty"`- Status PlanCheckRun_Status `protobuf:"varint,4,opt,name=status,proto3,enum=bytebase.v1.PlanCheckRun_Status" json:"status,omitempty"`- // Format: instances/{instance}/databases/{database}- Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`- // Format: project/{project}/sheets/{sheet}- Sheet string `protobuf:"bytes,6,opt,name=sheet,proto3" json:"sheet,omitempty"`- Results []*PlanCheckRun_Result `protobuf:"bytes,7,rep,name=results,proto3" json:"results,omitempty"`- // error is set if the Status is FAILED.- Error string `protobuf:"bytes,8,opt,name=error,proto3" json:"error,omitempty"`- CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`-}--func (x *PlanCheckRun) Reset() {- *x = PlanCheckRun{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[16]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *PlanCheckRun) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*PlanCheckRun) ProtoMessage() {}--func (x *PlanCheckRun) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[16]- 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 PlanCheckRun.ProtoReflect.Descriptor instead.-func (*PlanCheckRun) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{16}-}--func (x *PlanCheckRun) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *PlanCheckRun) GetUid() string {- if x != nil {- return x.Uid- }- return ""-}--func (x *PlanCheckRun) GetType() PlanCheckRun_Type {- if x != nil {- return x.Type- }- return PlanCheckRun_TYPE_UNSPECIFIED-}--func (x *PlanCheckRun) GetStatus() PlanCheckRun_Status {- if x != nil {- return x.Status- }- return PlanCheckRun_STATUS_UNSPECIFIED-}--func (x *PlanCheckRun) GetTarget() string {- if x != nil {- return x.Target- }- return ""-}--func (x *PlanCheckRun) GetSheet() string {- if x != nil {- return x.Sheet- }- return ""-}--func (x *PlanCheckRun) GetResults() []*PlanCheckRun_Result {- if x != nil {- return x.Results- }- return nil-}--func (x *PlanCheckRun) GetError() string {- if x != nil {- return x.Error- }- return ""-}--func (x *PlanCheckRun) GetCreateTime() *timestamppb.Timestamp {- if x != nil {- return x.CreateTime- }- return nil-}--type GetRolloutRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the rollout to retrieve.- // Format: projects/{project}/rollouts/{rollout}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`-}--func (x *GetRolloutRequest) Reset() {- *x = GetRolloutRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[17]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *GetRolloutRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*GetRolloutRequest) ProtoMessage() {}--func (x *GetRolloutRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[17]- 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 GetRolloutRequest.ProtoReflect.Descriptor instead.-func (*GetRolloutRequest) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{17}-}--func (x *GetRolloutRequest) GetName() string {- if x != nil {- return x.Name- }- return ""-}--type CreateRolloutRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The parent project where this rollout will be created.- // Format: projects/{project}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The rollout to create.- Rollout *Rollout `protobuf:"bytes,2,opt,name=rollout,proto3" json:"rollout,omitempty"`-}--func (x *CreateRolloutRequest) Reset() {- *x = CreateRolloutRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[18]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *CreateRolloutRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*CreateRolloutRequest) ProtoMessage() {}--func (x *CreateRolloutRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[18]- 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 CreateRolloutRequest.ProtoReflect.Descriptor instead.-func (*CreateRolloutRequest) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{18}-}--func (x *CreateRolloutRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *CreateRolloutRequest) GetRollout() *Rollout {- if x != nil {- return x.Rollout- }- return nil-}--type PreviewRolloutRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the project.- // Format: projects/{project}- Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`- // The plan used to preview rollout.- Plan *Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"`-}--func (x *PreviewRolloutRequest) Reset() {- *x = PreviewRolloutRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[19]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *PreviewRolloutRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*PreviewRolloutRequest) ProtoMessage() {}--func (x *PreviewRolloutRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[19]- 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 PreviewRolloutRequest.ProtoReflect.Descriptor instead.-func (*PreviewRolloutRequest) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{19}-}--func (x *PreviewRolloutRequest) GetProject() string {- if x != nil {- return x.Project- }- return ""-}--func (x *PreviewRolloutRequest) GetPlan() *Plan {- if x != nil {- return x.Plan- }- return nil-}--type ListTaskRunsRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The parent, which owns this collection of plans.- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- // Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout.- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The maximum number of taskRuns to return. The service may return fewer than- // this value.- // If unspecified, at most 50 taskRuns will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`- // A page token, received from a previous `ListRolloutTaskRuns` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListRolloutTaskRuns` must match- // the call that provided the page token.- PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`-}--func (x *ListTaskRunsRequest) Reset() {- *x = ListTaskRunsRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[20]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListTaskRunsRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListTaskRunsRequest) ProtoMessage() {}--func (x *ListTaskRunsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[20]- 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 ListTaskRunsRequest.ProtoReflect.Descriptor instead.-func (*ListTaskRunsRequest) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{20}-}--func (x *ListTaskRunsRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *ListTaskRunsRequest) GetPageSize() int32 {- if x != nil {- return x.PageSize- }- return 0-}--func (x *ListTaskRunsRequest) GetPageToken() string {- if x != nil {- return x.PageToken- }- return ""-}--type ListTaskRunsResponse struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The taskRuns from the specified request.- TaskRuns []*TaskRun `protobuf:"bytes,1,rep,name=task_runs,json=taskRuns,proto3" json:"task_runs,omitempty"`- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`-}--func (x *ListTaskRunsResponse) Reset() {- *x = ListTaskRunsResponse{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[21]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *ListTaskRunsResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListTaskRunsResponse) ProtoMessage() {}--func (x *ListTaskRunsResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[21]- 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 ListTaskRunsResponse.ProtoReflect.Descriptor instead.-func (*ListTaskRunsResponse) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{21}-}--func (x *ListTaskRunsResponse) GetTaskRuns() []*TaskRun {- if x != nil {- return x.TaskRuns- }- return nil-}--func (x *ListTaskRunsResponse) GetNextPageToken() string {- if x != nil {- return x.NextPageToken- }- return ""-}--type GetTaskRunLogRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`-}--func (x *GetTaskRunLogRequest) Reset() {- *x = GetTaskRunLogRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[22]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *GetTaskRunLogRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*GetTaskRunLogRequest) ProtoMessage() {}--func (x *GetTaskRunLogRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[22]- 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 GetTaskRunLogRequest.ProtoReflect.Descriptor instead.-func (*GetTaskRunLogRequest) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{22}-}--func (x *GetTaskRunLogRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--type Rollout struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the rollout.- // Format: projects/{project}/rollouts/{rollout}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The system-assigned, unique identifier for a resource.- Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`- // The plan that this rollout is based on.- // Format: projects/{project}/plans/{plan}- Plan string `protobuf:"bytes,3,opt,name=plan,proto3" json:"plan,omitempty"`- Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`- // stages and thus tasks of the rollout.- Stages []*Stage `protobuf:"bytes,5,rep,name=stages,proto3" json:"stages,omitempty"`-}--func (x *Rollout) Reset() {- *x = Rollout{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[23]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Rollout) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Rollout) ProtoMessage() {}--func (x *Rollout) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[23]- 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 Rollout.ProtoReflect.Descriptor instead.-func (*Rollout) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{23}-}--func (x *Rollout) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *Rollout) GetUid() string {- if x != nil {- return x.Uid- }- return ""-}--func (x *Rollout) GetPlan() string {- if x != nil {- return x.Plan- }- return ""-}--func (x *Rollout) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *Rollout) GetStages() []*Stage {- if x != nil {- return x.Stages- }- return nil-}--type Stage struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The system-assigned, unique identifier for a resource.- Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`- Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`- Tasks []*Task `protobuf:"bytes,5,rep,name=tasks,proto3" json:"tasks,omitempty"`-}--func (x *Stage) Reset() {- *x = Stage{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[24]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Stage) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Stage) ProtoMessage() {}--func (x *Stage) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[24]- 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 Stage.ProtoReflect.Descriptor instead.-func (*Stage) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{24}-}--func (x *Stage) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *Stage) GetUid() string {- if x != nil {- return x.Uid- }- return ""-}--func (x *Stage) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *Stage) GetTasks() []*Task {- if x != nil {- return x.Tasks- }- return nil-}--type Task struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The system-assigned, unique identifier for a resource.- Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`- Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`- // A UUID4 string that uniquely identifies the Spec.- // Could be empty if the rollout of the task does not have an associating plan.- SpecId string `protobuf:"bytes,4,opt,name=spec_id,json=specId,proto3" json:"spec_id,omitempty"`- // Status is the status of the task.- Status Task_Status `protobuf:"varint,5,opt,name=status,proto3,enum=bytebase.v1.Task_Status" json:"status,omitempty"`- SkippedReason string `protobuf:"bytes,15,opt,name=skipped_reason,json=skippedReason,proto3" json:"skipped_reason,omitempty"`- Type Task_Type `protobuf:"varint,6,opt,name=type,proto3,enum=bytebase.v1.Task_Type" json:"type,omitempty"`- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- DependsOnTasks []string `protobuf:"bytes,7,rep,name=depends_on_tasks,json=dependsOnTasks,proto3" json:"depends_on_tasks,omitempty"`- // Format: instances/{instance} if the task is DatabaseCreate.- // Format: instances/{instance}/databases/{database}- Target string `protobuf:"bytes,8,opt,name=target,proto3" json:"target,omitempty"`- // Types that are assignable to Payload:- //- // *Task_DatabaseCreate_- // *Task_DatabaseSchemaBaseline_- // *Task_DatabaseSchemaUpdate_- // *Task_DatabaseDataUpdate_- // *Task_DatabaseDataExport_- Payload isTask_Payload `protobuf_oneof:"payload"`-}--func (x *Task) Reset() {- *x = Task{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[25]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Task) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Task) ProtoMessage() {}--func (x *Task) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[25]- 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 Task.ProtoReflect.Descriptor instead.-func (*Task) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25}-}--func (x *Task) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *Task) GetUid() string {- if x != nil {- return x.Uid- }- return ""-}--func (x *Task) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *Task) GetSpecId() string {- if x != nil {- return x.SpecId- }- return ""-}--func (x *Task) GetStatus() Task_Status {- if x != nil {- return x.Status- }- return Task_STATUS_UNSPECIFIED-}--func (x *Task) GetSkippedReason() string {- if x != nil {- return x.SkippedReason- }- return ""-}--func (x *Task) GetType() Task_Type {- if x != nil {- return x.Type- }- return Task_TYPE_UNSPECIFIED-}--func (x *Task) GetDependsOnTasks() []string {- if x != nil {- return x.DependsOnTasks- }- return nil-}--func (x *Task) GetTarget() string {- if x != nil {- return x.Target- }- return ""-}--func (m *Task) GetPayload() isTask_Payload {- if m != nil {- return m.Payload- }- return nil-}--func (x *Task) GetDatabaseCreate() *Task_DatabaseCreate {- if x, ok := x.GetPayload().(*Task_DatabaseCreate_); ok {- return x.DatabaseCreate- }- return nil-}--func (x *Task) GetDatabaseSchemaBaseline() *Task_DatabaseSchemaBaseline {- if x, ok := x.GetPayload().(*Task_DatabaseSchemaBaseline_); ok {- return x.DatabaseSchemaBaseline- }- return nil-}--func (x *Task) GetDatabaseSchemaUpdate() *Task_DatabaseSchemaUpdate {- if x, ok := x.GetPayload().(*Task_DatabaseSchemaUpdate_); ok {- return x.DatabaseSchemaUpdate- }- return nil-}--func (x *Task) GetDatabaseDataUpdate() *Task_DatabaseDataUpdate {- if x, ok := x.GetPayload().(*Task_DatabaseDataUpdate_); ok {- return x.DatabaseDataUpdate- }- return nil-}--func (x *Task) GetDatabaseDataExport() *Task_DatabaseDataExport {- if x, ok := x.GetPayload().(*Task_DatabaseDataExport_); ok {- return x.DatabaseDataExport- }- return nil-}--type isTask_Payload interface {- isTask_Payload()-}--type Task_DatabaseCreate_ struct {- DatabaseCreate *Task_DatabaseCreate `protobuf:"bytes,9,opt,name=database_create,json=databaseCreate,proto3,oneof"`-}--type Task_DatabaseSchemaBaseline_ struct {- DatabaseSchemaBaseline *Task_DatabaseSchemaBaseline `protobuf:"bytes,10,opt,name=database_schema_baseline,json=databaseSchemaBaseline,proto3,oneof"`-}--type Task_DatabaseSchemaUpdate_ struct {- DatabaseSchemaUpdate *Task_DatabaseSchemaUpdate `protobuf:"bytes,11,opt,name=database_schema_update,json=databaseSchemaUpdate,proto3,oneof"`-}--type Task_DatabaseDataUpdate_ struct {- DatabaseDataUpdate *Task_DatabaseDataUpdate `protobuf:"bytes,12,opt,name=database_data_update,json=databaseDataUpdate,proto3,oneof"`-}--type Task_DatabaseDataExport_ struct {- DatabaseDataExport *Task_DatabaseDataExport `protobuf:"bytes,16,opt,name=database_data_export,json=databaseDataExport,proto3,oneof"`-}--func (*Task_DatabaseCreate_) isTask_Payload() {}--func (*Task_DatabaseSchemaBaseline_) isTask_Payload() {}--func (*Task_DatabaseSchemaUpdate_) isTask_Payload() {}--func (*Task_DatabaseDataUpdate_) isTask_Payload() {}--func (*Task_DatabaseDataExport_) isTask_Payload() {}--type TaskRun struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The system-assigned, unique identifier for a resource.- Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`- // Format: user/[email protected]- Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`- // Format: user/[email protected]- Updater string `protobuf:"bytes,4,opt,name=updater,proto3" json:"updater,omitempty"`- CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`- Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`- Status TaskRun_Status `protobuf:"varint,8,opt,name=status,proto3,enum=bytebase.v1.TaskRun_Status" json:"status,omitempty"`- // Below are the results of a task run.- Detail string `protobuf:"bytes,9,opt,name=detail,proto3" json:"detail,omitempty"`- // The resource name of the change history- // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}- ChangeHistory string `protobuf:"bytes,10,opt,name=change_history,json=changeHistory,proto3" json:"change_history,omitempty"`- SchemaVersion string `protobuf:"bytes,11,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`- ExecutionStatus TaskRun_ExecutionStatus `protobuf:"varint,12,opt,name=execution_status,json=executionStatus,proto3,enum=bytebase.v1.TaskRun_ExecutionStatus" json:"execution_status,omitempty"`- // Last execution status update timestamp.- ExecutionStatusUpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=execution_status_update_time,json=executionStatusUpdateTime,proto3" json:"execution_status_update_time,omitempty"`- ExecutionDetail *TaskRun_ExecutionDetail `protobuf:"bytes,15,opt,name=execution_detail,json=executionDetail,proto3" json:"execution_detail,omitempty"`- StartTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`- ExportArchiveStatus TaskRun_ExportArchiveStatus `protobuf:"varint,16,opt,name=export_archive_status,json=exportArchiveStatus,proto3,enum=bytebase.v1.TaskRun_ExportArchiveStatus" json:"export_archive_status,omitempty"`-}--func (x *TaskRun) Reset() {- *x = TaskRun{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[26]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *TaskRun) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*TaskRun) ProtoMessage() {}--func (x *TaskRun) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[26]- 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 TaskRun.ProtoReflect.Descriptor instead.-func (*TaskRun) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{26}-}--func (x *TaskRun) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *TaskRun) GetUid() string {- if x != nil {- return x.Uid- }- return ""-}--func (x *TaskRun) GetCreator() string {- if x != nil {- return x.Creator- }- return ""-}--func (x *TaskRun) GetUpdater() string {- if x != nil {- return x.Updater- }- return ""-}--func (x *TaskRun) GetCreateTime() *timestamppb.Timestamp {- if x != nil {- return x.CreateTime- }- return nil-}--func (x *TaskRun) GetUpdateTime() *timestamppb.Timestamp {- if x != nil {- return x.UpdateTime- }- return nil-}--func (x *TaskRun) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *TaskRun) GetStatus() TaskRun_Status {- if x != nil {- return x.Status- }- return TaskRun_STATUS_UNSPECIFIED-}--func (x *TaskRun) GetDetail() string {- if x != nil {- return x.Detail- }- return ""-}--func (x *TaskRun) GetChangeHistory() string {- if x != nil {- return x.ChangeHistory- }- return ""-}--func (x *TaskRun) GetSchemaVersion() string {- if x != nil {- return x.SchemaVersion- }- return ""-}--func (x *TaskRun) GetExecutionStatus() TaskRun_ExecutionStatus {- if x != nil {- return x.ExecutionStatus- }- return TaskRun_EXECUTION_STATUS_UNSPECIFIED-}--func (x *TaskRun) GetExecutionStatusUpdateTime() *timestamppb.Timestamp {- if x != nil {- return x.ExecutionStatusUpdateTime- }- return nil-}--func (x *TaskRun) GetExecutionDetail() *TaskRun_ExecutionDetail {- if x != nil {- return x.ExecutionDetail- }- return nil-}--func (x *TaskRun) GetStartTime() *timestamppb.Timestamp {- if x != nil {- return x.StartTime- }- return nil-}--func (x *TaskRun) GetExportArchiveStatus() TaskRun_ExportArchiveStatus {- if x != nil {- return x.ExportArchiveStatus- }- return TaskRun_EXPORT_ARCHIVE_STATUS_UNSPECIFIED-}--type TaskRunLog struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- Entries []*TaskRunLogEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`-}--func (x *TaskRunLog) Reset() {- *x = TaskRunLog{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[27]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *TaskRunLog) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*TaskRunLog) ProtoMessage() {}--func (x *TaskRunLog) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[27]- 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 TaskRunLog.ProtoReflect.Descriptor instead.-func (*TaskRunLog) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{27}-}--func (x *TaskRunLog) GetName() string {- if x != nil {- return x.Name- }- return ""-}--func (x *TaskRunLog) GetEntries() []*TaskRunLogEntry {- if x != nil {- return x.Entries- }- return nil-}--type TaskRunLogEntry struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- Type TaskRunLogEntry_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.TaskRunLogEntry_Type" json:"type,omitempty"`- SchemaDump *TaskRunLogEntry_SchemaDump `protobuf:"bytes,2,opt,name=schema_dump,json=schemaDump,proto3" json:"schema_dump,omitempty"`- CommandExecute *TaskRunLogEntry_CommandExecute `protobuf:"bytes,3,opt,name=command_execute,json=commandExecute,proto3" json:"command_execute,omitempty"`-}--func (x *TaskRunLogEntry) Reset() {- *x = TaskRunLogEntry{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[28]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *TaskRunLogEntry) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*TaskRunLogEntry) ProtoMessage() {}--func (x *TaskRunLogEntry) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[28]- 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 TaskRunLogEntry.ProtoReflect.Descriptor instead.-func (*TaskRunLogEntry) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{28}-}--func (x *TaskRunLogEntry) GetType() TaskRunLogEntry_Type {- if x != nil {- return x.Type- }- return TaskRunLogEntry_TYPE_UNSPECIFIED-}--func (x *TaskRunLogEntry) GetSchemaDump() *TaskRunLogEntry_SchemaDump {- if x != nil {- return x.SchemaDump- }- return nil-}--func (x *TaskRunLogEntry) GetCommandExecute() *TaskRunLogEntry_CommandExecute {- if x != nil {- return x.CommandExecute- }- return nil-}--type Plan_Step struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // TODO: implement- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`- Specs []*Plan_Spec `protobuf:"bytes,1,rep,name=specs,proto3" json:"specs,omitempty"`-}--func (x *Plan_Step) Reset() {- *x = Plan_Step{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[29]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Plan_Step) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Plan_Step) ProtoMessage() {}--func (x *Plan_Step) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[29]- 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 Plan_Step.ProtoReflect.Descriptor instead.-func (*Plan_Step) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 0}-}--func (x *Plan_Step) GetTitle() string {- if x != nil {- return x.Title- }- return ""-}--func (x *Plan_Step) GetSpecs() []*Plan_Spec {- if x != nil {- return x.Specs- }- return nil-}--type Plan_Spec struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // earliest_allowed_time the earliest execution time of the change.- EarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=earliest_allowed_time,json=earliestAllowedTime,proto3" json:"earliest_allowed_time,omitempty"`- // A UUID4 string that uniquely identifies the Spec.- Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`- // IDs of the specs that this spec depends on.- // Must be a subset of the specs in the same step.- DependsOnSpecs []string `protobuf:"bytes,6,rep,name=depends_on_specs,json=dependsOnSpecs,proto3" json:"depends_on_specs,omitempty"`- // Types that are assignable to Config:- //- // *Plan_Spec_CreateDatabaseConfig- // *Plan_Spec_ChangeDatabaseConfig- // *Plan_Spec_ExportDataConfig- Config isPlan_Spec_Config `protobuf_oneof:"config"`-}--func (x *Plan_Spec) Reset() {- *x = Plan_Spec{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[30]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Plan_Spec) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Plan_Spec) ProtoMessage() {}--func (x *Plan_Spec) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[30]- 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 Plan_Spec.ProtoReflect.Descriptor instead.-func (*Plan_Spec) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 1}-}--func (x *Plan_Spec) GetEarliestAllowedTime() *timestamppb.Timestamp {- if x != nil {- return x.EarliestAllowedTime- }- return nil-}--func (x *Plan_Spec) GetId() string {- if x != nil {- return x.Id- }- return ""-}--func (x *Plan_Spec) GetDependsOnSpecs() []string {- if x != nil {- return x.DependsOnSpecs- }- return nil-}--func (m *Plan_Spec) GetConfig() isPlan_Spec_Config {- if m != nil {- return m.Config- }- return nil-}--func (x *Plan_Spec) GetCreateDatabaseConfig() *Plan_CreateDatabaseConfig {- if x, ok := x.GetConfig().(*Plan_Spec_CreateDatabaseConfig); ok {- return x.CreateDatabaseConfig- }- return nil-}--func (x *Plan_Spec) GetChangeDatabaseConfig() *Plan_ChangeDatabaseConfig {- if x, ok := x.GetConfig().(*Plan_Spec_ChangeDatabaseConfig); ok {- return x.ChangeDatabaseConfig- }- return nil-}--func (x *Plan_Spec) GetExportDataConfig() *Plan_ExportDataConfig {- if x, ok := x.GetConfig().(*Plan_Spec_ExportDataConfig); ok {- return x.ExportDataConfig- }- return nil-}--type isPlan_Spec_Config interface {- isPlan_Spec_Config()-}--type Plan_Spec_CreateDatabaseConfig struct {- CreateDatabaseConfig *Plan_CreateDatabaseConfig `protobuf:"bytes,1,opt,name=create_database_config,json=createDatabaseConfig,proto3,oneof"`-}--type Plan_Spec_ChangeDatabaseConfig struct {- ChangeDatabaseConfig *Plan_ChangeDatabaseConfig `protobuf:"bytes,2,opt,name=change_database_config,json=changeDatabaseConfig,proto3,oneof"`-}--type Plan_Spec_ExportDataConfig struct {- ExportDataConfig *Plan_ExportDataConfig `protobuf:"bytes,7,opt,name=export_data_config,json=exportDataConfig,proto3,oneof"`-}--func (*Plan_Spec_CreateDatabaseConfig) isPlan_Spec_Config() {}--func (*Plan_Spec_ChangeDatabaseConfig) isPlan_Spec_Config() {}--func (*Plan_Spec_ExportDataConfig) isPlan_Spec_Config() {}--type Plan_CreateDatabaseConfig struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the instance on which the database is created.- // Format: instances/{instance}- Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`- // The name of the database to create.- Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`- // table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.- // For example, in MongoDB, it only creates the database when we first store data in that database.- Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`- // character_set is the character set of the database.- CharacterSet string `protobuf:"bytes,4,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`- // collation is the collation of the database.- Collation string `protobuf:"bytes,5,opt,name=collation,proto3" json:"collation,omitempty"`- // cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".- Cluster string `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`- // owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".- Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`- // The environment resource.- // Format: environments/prod where prod is the environment resource ID.- Environment string `protobuf:"bytes,9,opt,name=environment,proto3" json:"environment,omitempty"`- // labels of the database.- Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`-}--func (x *Plan_CreateDatabaseConfig) Reset() {- *x = Plan_CreateDatabaseConfig{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[31]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Plan_CreateDatabaseConfig) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Plan_CreateDatabaseConfig) ProtoMessage() {}--func (x *Plan_CreateDatabaseConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[31]- 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 Plan_CreateDatabaseConfig.ProtoReflect.Descriptor instead.-func (*Plan_CreateDatabaseConfig) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 2}-}--func (x *Plan_CreateDatabaseConfig) GetTarget() string {- if x != nil {- return x.Target- }- return ""-}--func (x *Plan_CreateDatabaseConfig) GetDatabase() string {- if x != nil {- return x.Database- }- return ""-}--func (x *Plan_CreateDatabaseConfig) GetTable() string {- if x != nil {- return x.Table- }- return ""-}--func (x *Plan_CreateDatabaseConfig) GetCharacterSet() string {- if x != nil {- return x.CharacterSet- }- return ""-}--func (x *Plan_CreateDatabaseConfig) GetCollation() string {- if x != nil {- return x.Collation- }- return ""-}--func (x *Plan_CreateDatabaseConfig) GetCluster() string {- if x != nil {- return x.Cluster- }- return ""-}--func (x *Plan_CreateDatabaseConfig) GetOwner() string {- if x != nil {- return x.Owner- }- return ""-}--func (x *Plan_CreateDatabaseConfig) GetEnvironment() string {- if x != nil {- return x.Environment- }- return ""-}--func (x *Plan_CreateDatabaseConfig) GetLabels() map[string]string {- if x != nil {- return x.Labels- }- return nil-}--type Plan_ChangeDatabaseConfig struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the target.- // Format: instances/{instance-id}/databases/{database-name}.- // Format: projects/{project}/databaseGroups/{databaseGroup}.- // Format: projects/{project}/deploymentConfigs/default. The plan should- // have a single step and single spec for the deployment configuration type.- Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`- // The resource name of the sheet.- // Format: projects/{project}/sheets/{sheet}- Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`- Type Plan_ChangeDatabaseConfig_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.Plan_ChangeDatabaseConfig_Type" json:"type,omitempty"`- // schema_version is parsed from VCS file name.- // It is automatically generated in the UI workflow.- SchemaVersion string `protobuf:"bytes,4,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`- // If RollbackEnabled, build the RollbackSheetID of the task after the task is completed.- RollbackEnabled bool `protobuf:"varint,5,opt,name=rollback_enabled,json=rollbackEnabled,proto3" json:"rollback_enabled,omitempty"`- RollbackDetail *Plan_ChangeDatabaseConfig_RollbackDetail `protobuf:"bytes,6,opt,name=rollback_detail,json=rollbackDetail,proto3,oneof" json:"rollback_detail,omitempty"`- GhostFlags map[string]string `protobuf:"bytes,7,rep,name=ghost_flags,json=ghostFlags,proto3" json:"ghost_flags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`- // If set, a backup of the modified data will be created automatically before any changes are applied.- PreUpdateBackupDetail *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail `protobuf:"bytes,8,opt,name=pre_update_backup_detail,json=preUpdateBackupDetail,proto3,oneof" json:"pre_update_backup_detail,omitempty"`-}--func (x *Plan_ChangeDatabaseConfig) Reset() {- *x = Plan_ChangeDatabaseConfig{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[32]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Plan_ChangeDatabaseConfig) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Plan_ChangeDatabaseConfig) ProtoMessage() {}--func (x *Plan_ChangeDatabaseConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[32]- 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 Plan_ChangeDatabaseConfig.ProtoReflect.Descriptor instead.-func (*Plan_ChangeDatabaseConfig) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 3}-}--func (x *Plan_ChangeDatabaseConfig) GetTarget() string {- if x != nil {- return x.Target- }- return ""-}--func (x *Plan_ChangeDatabaseConfig) GetSheet() string {- if x != nil {- return x.Sheet- }- return ""-}--func (x *Plan_ChangeDatabaseConfig) GetType() Plan_ChangeDatabaseConfig_Type {+func (x *Task) GetType() Task_Type {if x != nil {return x.Type}- return Plan_ChangeDatabaseConfig_TYPE_UNSPECIFIED-}--func (x *Plan_ChangeDatabaseConfig) GetSchemaVersion() string {- if x != nil {- return x.SchemaVersion- }- return ""-}--func (x *Plan_ChangeDatabaseConfig) GetRollbackEnabled() bool {- if x != nil {- return x.RollbackEnabled- }- return false-}--func (x *Plan_ChangeDatabaseConfig) GetRollbackDetail() *Plan_ChangeDatabaseConfig_RollbackDetail {- if x != nil {- return x.RollbackDetail- }- return nil-}--func (x *Plan_ChangeDatabaseConfig) GetGhostFlags() map[string]string {- if x != nil {- return x.GhostFlags- }- return nil-}--func (x *Plan_ChangeDatabaseConfig) GetPreUpdateBackupDetail() *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail {- if x != nil {- return x.PreUpdateBackupDetail- }- return nil-}--type Plan_ExportDataConfig struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The resource name of the target.- // Format: instances/{instance-id}/databases/{database-name}- Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`- // The resource name of the sheet.- // Format: projects/{project}/sheets/{sheet}- Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`- // The format of the exported file.- Format ExportFormat `protobuf:"varint,3,opt,name=format,proto3,enum=bytebase.v1.ExportFormat" json:"format,omitempty"`- // The zip password provide by users.- // Leave it empty if no needs to encrypt the zip file.- Password *string `protobuf:"bytes,4,opt,name=password,proto3,oneof" json:"password,omitempty"`-}--func (x *Plan_ExportDataConfig) Reset() {- *x = Plan_ExportDataConfig{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[33]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *Plan_ExportDataConfig) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Plan_ExportDataConfig) ProtoMessage() {}--func (x *Plan_ExportDataConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[33]- 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 Plan_ExportDataConfig.ProtoReflect.Descriptor instead.-func (*Plan_ExportDataConfig) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 4}-}--func (x *Plan_ExportDataConfig) GetTarget() string {- if x != nil {- return x.Target- }- return ""-}--func (x *Plan_ExportDataConfig) GetSheet() string {- if x != nil {- return x.Sheet- }- return ""+ return Task_TYPE_UNSPECIFIED}-func (x *Plan_ExportDataConfig) GetFormat() ExportFormat {+func (x *Task) GetDependsOnTasks() []string {if x != nil {- return x.Format+ return x.DependsOnTasks}- return ExportFormat_FORMAT_UNSPECIFIED+ return nil}-func (x *Plan_ExportDataConfig) GetPassword() string {- if x != nil && x.Password != nil {- return *x.Password+func (x *Task) GetTarget() string {+ if x != nil {+ return x.Target}return ""}-type Plan_VCSSource struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- VcsType VCSType `protobuf:"varint,1,opt,name=vcs_type,json=vcsType,proto3,enum=bytebase.v1.VCSType" json:"vcs_type,omitempty"`- // Optional.- // If present, we will update the pull request for rollout status.- // Format: projects/{project-ID}/vcsConnectors/{vcs-connector}- VcsConnector string `protobuf:"bytes,2,opt,name=vcs_connector,json=vcsConnector,proto3" json:"vcs_connector,omitempty"`- PullRequestUrl string `protobuf:"bytes,3,opt,name=pull_request_url,json=pullRequestUrl,proto3" json:"pull_request_url,omitempty"`+func (m *Task) GetPayload() isTask_Payload {+ if m != nil {+ return m.Payload+ }+ return nil}-func (x *Plan_VCSSource) Reset() {- *x = Plan_VCSSource{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[34]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)+func (x *Task) GetDatabaseCreate() *Task_DatabaseCreate {+ if x, ok := x.GetPayload().(*Task_DatabaseCreate_); ok {+ return x.DatabaseCreate}+ return nil}-func (x *Plan_VCSSource) String() string {- return protoimpl.X.MessageStringOf(x)+func (x *Task) GetDatabaseSchemaBaseline() *Task_DatabaseSchemaBaseline {+ if x, ok := x.GetPayload().(*Task_DatabaseSchemaBaseline_); ok {+ return x.DatabaseSchemaBaseline+ }+ return nil}-func (*Plan_VCSSource) ProtoMessage() {}--func (x *Plan_VCSSource) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[34]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms+func (x *Task) GetDatabaseSchemaUpdate() *Task_DatabaseSchemaUpdate {+ if x, ok := x.GetPayload().(*Task_DatabaseSchemaUpdate_); ok {+ return x.DatabaseSchemaUpdate}- return mi.MessageOf(x)+ return nil}-// Deprecated: Use Plan_VCSSource.ProtoReflect.Descriptor instead.-func (*Plan_VCSSource) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 5}+func (x *Task) GetDatabaseDataUpdate() *Task_DatabaseDataUpdate {+ if x, ok := x.GetPayload().(*Task_DatabaseDataUpdate_); ok {+ return x.DatabaseDataUpdate+ }+ return nil}-func (x *Plan_VCSSource) GetVcsType() VCSType {- if x != nil {- return x.VcsType+func (x *Task) GetDatabaseDataExport() *Task_DatabaseDataExport {+ if x, ok := x.GetPayload().(*Task_DatabaseDataExport_); ok {+ return x.DatabaseDataExport}- return VCSType_VCS_TYPE_UNSPECIFIED+ return nil}-func (x *Plan_VCSSource) GetVcsConnector() string {- if x != nil {- return x.VcsConnector- }- return ""+type isTask_Payload interface {+ isTask_Payload()}-func (x *Plan_VCSSource) GetPullRequestUrl() string {- if x != nil {- return x.PullRequestUrl- }- return ""+type Task_DatabaseCreate_ struct {+ DatabaseCreate *Task_DatabaseCreate `protobuf:"bytes,9,opt,name=database_create,json=databaseCreate,proto3,oneof"`}-type Plan_ChangeDatabaseConfig_RollbackDetail struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields+type Task_DatabaseSchemaBaseline_ struct {+ DatabaseSchemaBaseline *Task_DatabaseSchemaBaseline `protobuf:"bytes,10,opt,name=database_schema_baseline,json=databaseSchemaBaseline,proto3,oneof"`+}- // rollback_from_task is the task from which the rollback SQL statement is generated for this task.- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- RollbackFromTask string `protobuf:"bytes,1,opt,name=rollback_from_task,json=rollbackFromTask,proto3" json:"rollback_from_task,omitempty"`- // rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.- // Format: projects/{project}/issues/{issue}- RollbackFromIssue string `protobuf:"bytes,2,opt,name=rollback_from_issue,json=rollbackFromIssue,proto3" json:"rollback_from_issue,omitempty"`+type Task_DatabaseSchemaUpdate_ struct {+ DatabaseSchemaUpdate *Task_DatabaseSchemaUpdate `protobuf:"bytes,11,opt,name=database_schema_update,json=databaseSchemaUpdate,proto3,oneof"`}-func (x *Plan_ChangeDatabaseConfig_RollbackDetail) Reset() {- *x = Plan_ChangeDatabaseConfig_RollbackDetail{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[36]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }+type Task_DatabaseDataUpdate_ struct {+ DatabaseDataUpdate *Task_DatabaseDataUpdate `protobuf:"bytes,12,opt,name=database_data_update,json=databaseDataUpdate,proto3,oneof"`}-func (x *Plan_ChangeDatabaseConfig_RollbackDetail) String() string {- return protoimpl.X.MessageStringOf(x)+type Task_DatabaseDataExport_ struct {+ DatabaseDataExport *Task_DatabaseDataExport `protobuf:"bytes,16,opt,name=database_data_export,json=databaseDataExport,proto3,oneof"`}-func (*Plan_ChangeDatabaseConfig_RollbackDetail) ProtoMessage() {}+func (*Task_DatabaseCreate_) isTask_Payload() {}-func (x *Plan_ChangeDatabaseConfig_RollbackDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[36]- 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)-}+func (*Task_DatabaseSchemaBaseline_) isTask_Payload() {}-// Deprecated: Use Plan_ChangeDatabaseConfig_RollbackDetail.ProtoReflect.Descriptor instead.-func (*Plan_ChangeDatabaseConfig_RollbackDetail) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 3, 0}-}+func (*Task_DatabaseSchemaUpdate_) isTask_Payload() {}-func (x *Plan_ChangeDatabaseConfig_RollbackDetail) GetRollbackFromTask() string {- if x != nil {- return x.RollbackFromTask- }- return ""-}+func (*Task_DatabaseDataUpdate_) isTask_Payload() {}-func (x *Plan_ChangeDatabaseConfig_RollbackDetail) GetRollbackFromIssue() string {- if x != nil {- return x.RollbackFromIssue- }- return ""-}+func (*Task_DatabaseDataExport_) isTask_Payload() {}-type Plan_ChangeDatabaseConfig_PreUpdateBackupDetail struct {+type TaskRun struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- // The database for keeping the backup data.- // Format: instances/{instance}/databases/{database}- Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ // Format: user/[email protected]+ Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`+ // Format: user/[email protected]+ Updater string `protobuf:"bytes,4,opt,name=updater,proto3" json:"updater,omitempty"`+ CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`+ Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`+ Status TaskRun_Status `protobuf:"varint,8,opt,name=status,proto3,enum=bytebase.v1.TaskRun_Status" json:"status,omitempty"`+ // Below are the results of a task run.+ Detail string `protobuf:"bytes,9,opt,name=detail,proto3" json:"detail,omitempty"`+ // The resource name of the change history+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ ChangeHistory string `protobuf:"bytes,10,opt,name=change_history,json=changeHistory,proto3" json:"change_history,omitempty"`+ SchemaVersion string `protobuf:"bytes,11,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+ ExecutionStatus TaskRun_ExecutionStatus `protobuf:"varint,12,opt,name=execution_status,json=executionStatus,proto3,enum=bytebase.v1.TaskRun_ExecutionStatus" json:"execution_status,omitempty"`+ // Last execution status update timestamp.+ ExecutionStatusUpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=execution_status_update_time,json=executionStatusUpdateTime,proto3" json:"execution_status_update_time,omitempty"`+ ExecutionDetail *TaskRun_ExecutionDetail `protobuf:"bytes,15,opt,name=execution_detail,json=executionDetail,proto3" json:"execution_detail,omitempty"`+ StartTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`+ ExportArchiveStatus TaskRun_ExportArchiveStatus `protobuf:"varint,16,opt,name=export_archive_status,json=exportArchiveStatus,proto3,enum=bytebase.v1.TaskRun_ExportArchiveStatus" json:"export_archive_status,omitempty"`}-func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) Reset() {- *x = Plan_ChangeDatabaseConfig_PreUpdateBackupDetail{}+func (x *TaskRun) Reset() {+ *x = TaskRun{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[38]+ mi := &file_v1_rollout_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}}-func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) String() string {+func (x *TaskRun) String() string {return protoimpl.X.MessageStringOf(x)}-func (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoMessage() {}+func (*TaskRun) ProtoMessage() {}-func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[38]+func (x *TaskRun) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[15]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3388,160 +1505,150 @@ func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoReflect() protorereturn mi.MessageOf(x)}-// Deprecated: Use Plan_ChangeDatabaseConfig_PreUpdateBackupDetail.ProtoReflect.Descriptor instead.-func (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 3, 2}+// Deprecated: Use TaskRun.ProtoReflect.Descriptor instead.+func (*TaskRun) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{15}}-func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) GetDatabase() string {+func (x *TaskRun) GetName() string {if x != nil {- return x.Database+ return x.Name}return ""}-type PlanCheckRun_Result struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- Status PlanCheckRun_Result_Status `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.v1.PlanCheckRun_Result_Status" json:"status,omitempty"`- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`- Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`- Code int32 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`- // Types that are assignable to Report:- //- // *PlanCheckRun_Result_SqlSummaryReport_- // *PlanCheckRun_Result_SqlReviewReport_- Report isPlanCheckRun_Result_Report `protobuf_oneof:"report"`+func (x *TaskRun) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""}-func (x *PlanCheckRun_Result) Reset() {- *x = PlanCheckRun_Result{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[39]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)+func (x *TaskRun) GetCreator() string {+ if x != nil {+ return x.Creator}+ return ""}-func (x *PlanCheckRun_Result) String() string {- return protoimpl.X.MessageStringOf(x)+func (x *TaskRun) GetUpdater() string {+ if x != nil {+ return x.Updater+ }+ return ""}-func (*PlanCheckRun_Result) ProtoMessage() {}+func (x *TaskRun) GetCreateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.CreateTime+ }+ return nil+}-func (x *PlanCheckRun_Result) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[39]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms+func (x *TaskRun) GetUpdateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.UpdateTime}- return mi.MessageOf(x)+ return nil}-// Deprecated: Use PlanCheckRun_Result.ProtoReflect.Descriptor instead.-func (*PlanCheckRun_Result) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{16, 0}+func (x *TaskRun) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""}-func (x *PlanCheckRun_Result) GetStatus() PlanCheckRun_Result_Status {+func (x *TaskRun) GetStatus() TaskRun_Status {if x != nil {return x.Status}- return PlanCheckRun_Result_STATUS_UNSPECIFIED+ return TaskRun_STATUS_UNSPECIFIED}-func (x *PlanCheckRun_Result) GetTitle() string {+func (x *TaskRun) GetDetail() string {if x != nil {- return x.Title+ return x.Detail}return ""}-func (x *PlanCheckRun_Result) GetContent() string {+func (x *TaskRun) GetChangeHistory() string {if x != nil {- return x.Content+ return x.ChangeHistory}return ""}-func (x *PlanCheckRun_Result) GetCode() int32 {+func (x *TaskRun) GetSchemaVersion() string {if x != nil {- return x.Code+ return x.SchemaVersion}- return 0+ return ""}-func (m *PlanCheckRun_Result) GetReport() isPlanCheckRun_Result_Report {- if m != nil {- return m.Report+func (x *TaskRun) GetExecutionStatus() TaskRun_ExecutionStatus {+ if x != nil {+ return x.ExecutionStatus}- return nil+ return TaskRun_EXECUTION_STATUS_UNSPECIFIED}-func (x *PlanCheckRun_Result) GetSqlSummaryReport() *PlanCheckRun_Result_SqlSummaryReport {- if x, ok := x.GetReport().(*PlanCheckRun_Result_SqlSummaryReport_); ok {- return x.SqlSummaryReport+func (x *TaskRun) GetExecutionStatusUpdateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.ExecutionStatusUpdateTime}return nil}-func (x *PlanCheckRun_Result) GetSqlReviewReport() *PlanCheckRun_Result_SqlReviewReport {- if x, ok := x.GetReport().(*PlanCheckRun_Result_SqlReviewReport_); ok {- return x.SqlReviewReport+func (x *TaskRun) GetExecutionDetail() *TaskRun_ExecutionDetail {+ if x != nil {+ return x.ExecutionDetail}return nil}-type isPlanCheckRun_Result_Report interface {- isPlanCheckRun_Result_Report()-}--type PlanCheckRun_Result_SqlSummaryReport_ struct {- SqlSummaryReport *PlanCheckRun_Result_SqlSummaryReport `protobuf:"bytes,5,opt,name=sql_summary_report,json=sqlSummaryReport,proto3,oneof"`+func (x *TaskRun) GetStartTime() *timestamppb.Timestamp {+ if x != nil {+ return x.StartTime+ }+ return nil}-type PlanCheckRun_Result_SqlReviewReport_ struct {- SqlReviewReport *PlanCheckRun_Result_SqlReviewReport `protobuf:"bytes,6,opt,name=sql_review_report,json=sqlReviewReport,proto3,oneof"`+func (x *TaskRun) GetExportArchiveStatus() TaskRun_ExportArchiveStatus {+ if x != nil {+ return x.ExportArchiveStatus+ }+ return TaskRun_EXPORT_ARCHIVE_STATUS_UNSPECIFIED}-func (*PlanCheckRun_Result_SqlSummaryReport_) isPlanCheckRun_Result_Report() {}--func (*PlanCheckRun_Result_SqlReviewReport_) isPlanCheckRun_Result_Report() {}--type PlanCheckRun_Result_SqlSummaryReport struct {+type TaskRunLog struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`- // statement_types are the types of statements that are found in the sql.- StatementTypes []string `protobuf:"bytes,2,rep,name=statement_types,json=statementTypes,proto3" json:"statement_types,omitempty"`- AffectedRows int32 `protobuf:"varint,3,opt,name=affected_rows,json=affectedRows,proto3" json:"affected_rows,omitempty"`- ChangedResources *ChangedResources `protobuf:"bytes,4,opt,name=changed_resources,json=changedResources,proto3" json:"changed_resources,omitempty"`+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ Entries []*TaskRunLogEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`}-func (x *PlanCheckRun_Result_SqlSummaryReport) Reset() {- *x = PlanCheckRun_Result_SqlSummaryReport{}+func (x *TaskRunLog) Reset() {+ *x = TaskRunLog{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[40]+ mi := &file_v1_rollout_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}}-func (x *PlanCheckRun_Result_SqlSummaryReport) String() string {+func (x *TaskRunLog) String() string {return protoimpl.X.MessageStringOf(x)}-func (*PlanCheckRun_Result_SqlSummaryReport) ProtoMessage() {}+func (*TaskRunLog) ProtoMessage() {}-func (x *PlanCheckRun_Result_SqlSummaryReport) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[40]+func (x *TaskRunLog) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[16]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3552,68 +1659,52 @@ func (x *PlanCheckRun_Result_SqlSummaryReport) ProtoReflect() protoreflect.Messareturn mi.MessageOf(x)}-// Deprecated: Use PlanCheckRun_Result_SqlSummaryReport.ProtoReflect.Descriptor instead.-func (*PlanCheckRun_Result_SqlSummaryReport) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{16, 0, 0}-}--func (x *PlanCheckRun_Result_SqlSummaryReport) GetCode() int32 {- if x != nil {- return x.Code- }- return 0-}--func (x *PlanCheckRun_Result_SqlSummaryReport) GetStatementTypes() []string {- if x != nil {- return x.StatementTypes- }- return nil+// Deprecated: Use TaskRunLog.ProtoReflect.Descriptor instead.+func (*TaskRunLog) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{16}}-func (x *PlanCheckRun_Result_SqlSummaryReport) GetAffectedRows() int32 {+func (x *TaskRunLog) GetName() string {if x != nil {- return x.AffectedRows+ return x.Name}- return 0+ return ""}-func (x *PlanCheckRun_Result_SqlSummaryReport) GetChangedResources() *ChangedResources {+func (x *TaskRunLog) GetEntries() []*TaskRunLogEntry {if x != nil {- return x.ChangedResources+ return x.Entries}return nil}-type PlanCheckRun_Result_SqlReviewReport struct {+type TaskRunLogEntry struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`- Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`- Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`- // Code from sql review.- Code int32 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`+ Type TaskRunLogEntry_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.v1.TaskRunLogEntry_Type" json:"type,omitempty"`+ SchemaDump *TaskRunLogEntry_SchemaDump `protobuf:"bytes,2,opt,name=schema_dump,json=schemaDump,proto3" json:"schema_dump,omitempty"`+ CommandExecute *TaskRunLogEntry_CommandExecute `protobuf:"bytes,3,opt,name=command_execute,json=commandExecute,proto3" json:"command_execute,omitempty"`}-func (x *PlanCheckRun_Result_SqlReviewReport) Reset() {- *x = PlanCheckRun_Result_SqlReviewReport{}+func (x *TaskRunLogEntry) Reset() {+ *x = TaskRunLogEntry{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[41]+ mi := &file_v1_rollout_service_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}}-func (x *PlanCheckRun_Result_SqlReviewReport) String() string {+func (x *TaskRunLogEntry) String() string {return protoimpl.X.MessageStringOf(x)}-func (*PlanCheckRun_Result_SqlReviewReport) ProtoMessage() {}+func (*TaskRunLogEntry) ProtoMessage() {}-func (x *PlanCheckRun_Result_SqlReviewReport) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[41]+func (x *TaskRunLogEntry) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[17]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3624,37 +1715,30 @@ func (x *PlanCheckRun_Result_SqlReviewReport) ProtoReflect() protoreflect.Messagreturn mi.MessageOf(x)}-// Deprecated: Use PlanCheckRun_Result_SqlReviewReport.ProtoReflect.Descriptor instead.-func (*PlanCheckRun_Result_SqlReviewReport) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{16, 0, 1}-}--func (x *PlanCheckRun_Result_SqlReviewReport) GetLine() int32 {- if x != nil {- return x.Line- }- return 0+// Deprecated: Use TaskRunLogEntry.ProtoReflect.Descriptor instead.+func (*TaskRunLogEntry) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{17}}-func (x *PlanCheckRun_Result_SqlReviewReport) GetColumn() int32 {+func (x *TaskRunLogEntry) GetType() TaskRunLogEntry_Type {if x != nil {- return x.Column+ return x.Type}- return 0+ return TaskRunLogEntry_TYPE_UNSPECIFIED}-func (x *PlanCheckRun_Result_SqlReviewReport) GetDetail() string {+func (x *TaskRunLogEntry) GetSchemaDump() *TaskRunLogEntry_SchemaDump {if x != nil {- return x.Detail+ return x.SchemaDump}- return ""+ return nil}-func (x *PlanCheckRun_Result_SqlReviewReport) GetCode() int32 {+func (x *TaskRunLogEntry) GetCommandExecute() *TaskRunLogEntry_CommandExecute {if x != nil {- return x.Code+ return x.CommandExecute}- return 0+ return nil}type Task_DatabaseCreate struct {@@ -3680,7 +1764,7 @@ type Task_DatabaseCreate struct {func (x *Task_DatabaseCreate) Reset() {*x = Task_DatabaseCreate{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[42]+ mi := &file_v1_rollout_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3693,7 +1777,7 @@ func (x *Task_DatabaseCreate) String() string {func (*Task_DatabaseCreate) ProtoMessage() {}func (x *Task_DatabaseCreate) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[42]+ mi := &file_v1_rollout_service_proto_msgTypes[18]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3706,7 +1790,7 @@ func (x *Task_DatabaseCreate) ProtoReflect() protoreflect.Message {// Deprecated: Use Task_DatabaseCreate.ProtoReflect.Descriptor instead.func (*Task_DatabaseCreate) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{14, 0}}func (x *Task_DatabaseCreate) GetProject() string {@@ -3776,7 +1860,7 @@ type Task_DatabaseSchemaBaseline struct {func (x *Task_DatabaseSchemaBaseline) Reset() {*x = Task_DatabaseSchemaBaseline{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[43]+ mi := &file_v1_rollout_service_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3789,7 +1873,7 @@ func (x *Task_DatabaseSchemaBaseline) String() string {func (*Task_DatabaseSchemaBaseline) ProtoMessage() {}func (x *Task_DatabaseSchemaBaseline) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[43]+ mi := &file_v1_rollout_service_proto_msgTypes[19]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3802,7 +1886,7 @@ func (x *Task_DatabaseSchemaBaseline) ProtoReflect() protoreflect.Message {// Deprecated: Use Task_DatabaseSchemaBaseline.ProtoReflect.Descriptor instead.func (*Task_DatabaseSchemaBaseline) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 1}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{14, 1}}func (x *Task_DatabaseSchemaBaseline) GetSchemaVersion() string {@@ -3825,7 +1909,7 @@ type Task_DatabaseSchemaUpdate struct {func (x *Task_DatabaseSchemaUpdate) Reset() {*x = Task_DatabaseSchemaUpdate{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[44]+ mi := &file_v1_rollout_service_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3838,7 +1922,7 @@ func (x *Task_DatabaseSchemaUpdate) String() string {func (*Task_DatabaseSchemaUpdate) ProtoMessage() {}func (x *Task_DatabaseSchemaUpdate) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[44]+ mi := &file_v1_rollout_service_proto_msgTypes[20]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3851,7 +1935,7 @@ func (x *Task_DatabaseSchemaUpdate) ProtoReflect() protoreflect.Message {// Deprecated: Use Task_DatabaseSchemaUpdate.ProtoReflect.Descriptor instead.func (*Task_DatabaseSchemaUpdate) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 2}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{14, 2}}func (x *Task_DatabaseSchemaUpdate) GetSheet() string {@@ -3898,7 +1982,7 @@ type Task_DatabaseDataUpdate struct {func (x *Task_DatabaseDataUpdate) Reset() {*x = Task_DatabaseDataUpdate{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[45]+ mi := &file_v1_rollout_service_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -3911,7 +1995,7 @@ func (x *Task_DatabaseDataUpdate) String() string {func (*Task_DatabaseDataUpdate) ProtoMessage() {}func (x *Task_DatabaseDataUpdate) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[45]+ mi := &file_v1_rollout_service_proto_msgTypes[21]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -3924,7 +2008,7 @@ func (x *Task_DatabaseDataUpdate) ProtoReflect() protoreflect.Message {// Deprecated: Use Task_DatabaseDataUpdate.ProtoReflect.Descriptor instead.func (*Task_DatabaseDataUpdate) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 3}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{14, 3}}func (x *Task_DatabaseDataUpdate) GetSheet() string {@@ -4004,7 +2088,7 @@ type Task_DatabaseDataExport struct {func (x *Task_DatabaseDataExport) Reset() {*x = Task_DatabaseDataExport{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[46]+ mi := &file_v1_rollout_service_proto_msgTypes[22]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4017,7 +2101,7 @@ func (x *Task_DatabaseDataExport) String() string {func (*Task_DatabaseDataExport) ProtoMessage() {}func (x *Task_DatabaseDataExport) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[46]+ mi := &file_v1_rollout_service_proto_msgTypes[22]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4030,7 +2114,7 @@ func (x *Task_DatabaseDataExport) ProtoReflect() protoreflect.Message {// Deprecated: Use Task_DatabaseDataExport.ProtoReflect.Descriptor instead.func (*Task_DatabaseDataExport) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 4}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{14, 4}}func (x *Task_DatabaseDataExport) GetTarget() string {@@ -4076,7 +2160,7 @@ type TaskRun_ExecutionDetail struct {func (x *TaskRun_ExecutionDetail) Reset() {*x = TaskRun_ExecutionDetail{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[48]+ mi := &file_v1_rollout_service_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4089,7 +2173,7 @@ func (x *TaskRun_ExecutionDetail) String() string {func (*TaskRun_ExecutionDetail) ProtoMessage() {}func (x *TaskRun_ExecutionDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[48]+ mi := &file_v1_rollout_service_proto_msgTypes[24]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4102,7 +2186,7 @@ func (x *TaskRun_ExecutionDetail) ProtoReflect() protoreflect.Message {// Deprecated: Use TaskRun_ExecutionDetail.ProtoReflect.Descriptor instead.func (*TaskRun_ExecutionDetail) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{26, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{15, 0}}func (x *TaskRun_ExecutionDetail) GetCommandsTotal() int32 {@@ -4147,7 +2231,7 @@ type TaskRun_ExecutionDetail_Position struct {func (x *TaskRun_ExecutionDetail_Position) Reset() {*x = TaskRun_ExecutionDetail_Position{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[49]+ mi := &file_v1_rollout_service_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4160,7 +2244,7 @@ func (x *TaskRun_ExecutionDetail_Position) String() string {func (*TaskRun_ExecutionDetail_Position) ProtoMessage() {}func (x *TaskRun_ExecutionDetail_Position) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[49]+ mi := &file_v1_rollout_service_proto_msgTypes[25]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4173,7 +2257,7 @@ func (x *TaskRun_ExecutionDetail_Position) ProtoReflect() protoreflect.Message {// Deprecated: Use TaskRun_ExecutionDetail_Position.ProtoReflect.Descriptor instead.func (*TaskRun_ExecutionDetail_Position) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{26, 0, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{15, 0, 0}}func (x *TaskRun_ExecutionDetail_Position) GetLine() int32 {@@ -4203,7 +2287,7 @@ type TaskRunLogEntry_SchemaDump struct {func (x *TaskRunLogEntry_SchemaDump) Reset() {*x = TaskRunLogEntry_SchemaDump{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[50]+ mi := &file_v1_rollout_service_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4216,7 +2300,7 @@ func (x *TaskRunLogEntry_SchemaDump) String() string {func (*TaskRunLogEntry_SchemaDump) ProtoMessage() {}func (x *TaskRunLogEntry_SchemaDump) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[50]+ mi := &file_v1_rollout_service_proto_msgTypes[26]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4229,7 +2313,7 @@ func (x *TaskRunLogEntry_SchemaDump) ProtoReflect() protoreflect.Message {// Deprecated: Use TaskRunLogEntry_SchemaDump.ProtoReflect.Descriptor instead.func (*TaskRunLogEntry_SchemaDump) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{28, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 0}}func (x *TaskRunLogEntry_SchemaDump) GetStartTime() *timestamppb.Timestamp {@@ -4267,7 +2351,7 @@ type TaskRunLogEntry_CommandExecute struct {func (x *TaskRunLogEntry_CommandExecute) Reset() {*x = TaskRunLogEntry_CommandExecute{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[51]+ mi := &file_v1_rollout_service_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4280,7 +2364,7 @@ func (x *TaskRunLogEntry_CommandExecute) String() string {func (*TaskRunLogEntry_CommandExecute) ProtoMessage() {}func (x *TaskRunLogEntry_CommandExecute) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[51]+ mi := &file_v1_rollout_service_proto_msgTypes[27]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4293,7 +2377,7 @@ func (x *TaskRunLogEntry_CommandExecute) ProtoReflect() protoreflect.Message {// Deprecated: Use TaskRunLogEntry_CommandExecute.ProtoReflect.Descriptor instead.func (*TaskRunLogEntry_CommandExecute) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{28, 1}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 1}}func (x *TaskRunLogEntry_CommandExecute) GetLogTime() *timestamppb.Timestamp {@@ -4333,7 +2417,7 @@ type TaskRunLogEntry_CommandExecute_CommandResponse struct {func (x *TaskRunLogEntry_CommandExecute_CommandResponse) Reset() {*x = TaskRunLogEntry_CommandExecute_CommandResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_rollout_service_proto_msgTypes[52]+ mi := &file_v1_rollout_service_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -4346,7 +2430,7 @@ func (x *TaskRunLogEntry_CommandExecute_CommandResponse) String() string {func (*TaskRunLogEntry_CommandExecute_CommandResponse) ProtoMessage() {}func (x *TaskRunLogEntry_CommandExecute_CommandResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_rollout_service_proto_msgTypes[52]+ mi := &file_v1_rollout_service_proto_msgTypes[28]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -4359,7 +2443,7 @@ func (x *TaskRunLogEntry_CommandExecute_CommandResponse) ProtoReflect() protoref// Deprecated: Use TaskRunLogEntry_CommandExecute_CommandResponse.ProtoReflect.Descriptor instead.func (*TaskRunLogEntry_CommandExecute_CommandResponse) Descriptor() ([]byte, []int) {- return file_v1_rollout_service_proto_rawDescGZIP(), []int{28, 1, 0}+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{17, 1, 0}}func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetLogTime() *timestamppb.Timestamp {@@ -4368,1158 +2452,620 @@ func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetLogTime() *timestamp}return nil}--func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetError() string {- if x != nil {- return x.Error- }- return ""-}--func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetAffectedRows() int32 {- if x != nil {- return x.AffectedRows- }- return 0-}--func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetAllAffectedRows() []int32 {- if x != nil {- return x.AllAffectedRows- }- return nil-}--var File_v1_rollout_service_proto protoreflect.FileDescriptor--var file_v1_rollout_service_proto_rawDesc = []byte{- 0x0a, 0x18, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x72,- 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,- 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,- 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,- 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,- 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,- 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,- 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2a,- 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x10, 0x4c, 0x69,- 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c,- 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09,- 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,- 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67,- 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70,- 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74,- 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a,- 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52,- 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70,- 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5e,- 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,- 0x61, 0x6e, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x83,- 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61,- 0x6e, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,- 0x73, 0x6b, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xc1, 0x13, 0x0a, 0x04, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x12, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x12, 0x16, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x73,- 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12,- 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73,- 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05,- 0x73, 0x74, 0x65, 0x70, 0x73, 0x12, 0x3a, 0x0a, 0x0a, 0x76, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x56, 0x43, 0x53,- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x76, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,- 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,- 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,- 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x4a, 0x0a, 0x04, 0x53, 0x74, 0x65, 0x70, 0x12, 0x14, 0x0a, 0x05,- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,- 0x6c, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73,- 0x1a, 0xae, 0x03, 0x0a, 0x04, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4e, 0x0a, 0x15, 0x65, 0x61, 0x72,- 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x74, 0x69,- 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,- 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x41, 0x6c,- 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,- 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70,- 0x65, 0x6e, 0x64, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20,- 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x53, 0x70,- 0x65, 0x63, 0x73, 0x12, 0x5e, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x14, 0x63,- 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x12, 0x5e, 0x0a, 0x16, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x14, 0x63,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x12, 0x52, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x61,- 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,- 0x61, 0x6e, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74,- 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x1a, 0xb2, 0x03, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x06, 0x74, 0x61,- 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02,- 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x20, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02,- 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x05, 0x74, 0x61,- 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52,- 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63,- 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2,- 0x41, 0x01, 0x01, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65,- 0x74, 0x12, 0x22, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,- 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x07, 0x63, 0x6c,- 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x07,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65,- 0x72, 0x12, 0x26, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,- 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x01, 0x52, 0x0b, 0x65, 0x6e,- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x50, 0x0a, 0x06, 0x6c, 0x61, 0x62,- 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xe2,- 0x41, 0x01, 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c,- 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,- 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,- 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,- 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x8d, 0x07, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67,- 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,- 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x3f, 0x0a,- 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x25,- 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65,- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,- 0x6b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,- 0x12, 0x63, 0x0a, 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x74,- 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68, 0x61,- 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69,- 0x67, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,- 0x48, 0x00, 0x52, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61,- 0x69, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x57, 0x0a, 0x0b, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x66,- 0x6c, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68,- 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66,- 0x69, 0x67, 0x2e, 0x47, 0x68, 0x6f, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74,- 0x72, 0x79, 0x52, 0x0a, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x7a,- 0x0a, 0x18, 0x70, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63,- 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x3c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,- 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x65, 0x55, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x48, 0x01,- 0x52, 0x15, 0x70, 0x72, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75,- 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0x6e, 0x0a, 0x0e, 0x52, 0x6f,- 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x2c, 0x0a, 0x12,- 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61,- 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61,- 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f,- 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x69, 0x73, 0x73, 0x75,- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,- 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x49, 0x73, 0x73, 0x75, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x47, 0x68,- 0x6f, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,- 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,- 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,- 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x33, 0x0a, 0x15, 0x50, 0x72, 0x65,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61,- 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x65,- 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55,- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08,- 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49,- 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41,- 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52,- 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x44,- 0x41, 0x54, 0x41, 0x10, 0x06, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61,- 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x70, 0x72,- 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f,- 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x1a, 0xa1, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72,- 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74,- 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72,- 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72,- 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f,- 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08,- 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,- 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a,- 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x8b, 0x01, 0x0a, 0x09, 0x56,- 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f,- 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x54, 0x79, 0x70, 0x65,- 0x52, 0x07, 0x76, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x63, 0x73,- 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0c, 0x76, 0x63, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x28,- 0x0a, 0x10, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75,- 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x22, 0x74, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74,- 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,- 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x86,- 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b,- 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f,- 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18,- 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e,- 0x52, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12,- 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,- 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,- 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x30, 0x0a, 0x14, 0x52, 0x75, 0x6e, 0x50, 0x6c,- 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,- 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2,- 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x75, 0x6e,- 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61,- 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,- 0x09, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73,- 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e,- 0x22, 0x17, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x15, 0x42, 0x61, 0x74,- 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61,- 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73,- 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x18, 0x0a, 0x16, 0x42, 0x61, 0x74, 0x63,- 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x22, 0x69, 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65,- 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b,- 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73,- 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x1d, 0x0a,- 0x1b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b,- 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x85, 0x0b, 0x0a,- 0x0c, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,- 0x75, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x54, 0x79, 0x70,- 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,- 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65,- 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12,- 0x3a, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b,- 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,- 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75,- 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65,- 0x72, 0x72, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f,- 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65,- 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,- 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x54, 0x69, 0x6d, 0x65, 0x1a, 0xcf, 0x05, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12,- 0x3f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,- 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c,- 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,- 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,- 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,- 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,- 0x63, 0x6f, 0x64, 0x65, 0x12, 0x61, 0x0a, 0x12, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x75, 0x6d, 0x6d,- 0x61, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,- 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75,- 0x6c, 0x74, 0x2e, 0x53, 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70,- 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x10, 0x73, 0x71, 0x6c, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72,- 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x5e, 0x0a, 0x11, 0x73, 0x71, 0x6c, 0x5f, 0x72,- 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65,- 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65,- 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65,- 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0xc0, 0x01, 0x0a, 0x10, 0x53, 0x71, 0x6c, 0x53,- 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04,- 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,- 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79,- 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65,- 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x66, 0x66,- 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,- 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x4a,- 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52,- 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,- 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x69, 0x0a, 0x0f, 0x53, 0x71,- 0x6c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a,- 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e,- 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74,- 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,- 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52,- 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12,- 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x03, 0x42, 0x08, 0x0a, 0x06,- 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0xf8, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12,- 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,- 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,- 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x4b, 0x45,- 0x5f, 0x41, 0x44, 0x56, 0x49, 0x53, 0x45, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54,- 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f,- 0x43, 0x4f, 0x4d, 0x50, 0x41, 0x54, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x02, 0x12,- 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54,- 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x44, 0x56, 0x49, 0x53, 0x45, 0x10, 0x03, 0x12, 0x1b,- 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45,- 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x04, 0x12, 0x25, 0x0a, 0x21, 0x44,- 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e,- 0x54, 0x5f, 0x53, 0x55, 0x4d, 0x4d, 0x41, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x52, 0x54,- 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43,- 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41,- 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10,- 0x07, 0x22, 0x51, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53,- 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01,- 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41,- 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c,- 0x45, 0x44, 0x10, 0x04, 0x22, 0x2d, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,- 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x22, 0x6a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c,- 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,- 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x6f, 0x6c,- 0x6c, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,- 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22,- 0x5e, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,- 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,- 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,- 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22,- 0x6f, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,- 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,- 0x22, 0x71, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73,- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b,- 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,- 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,- 0x6b, 0x65, 0x6e, 0x22, 0x2e, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x22, 0x91, 0x01, 0x0a, 0x07, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12,- 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x04, 0x70,- 0x6c, 0x61, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,- 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73,- 0x74, 0x61, 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52,- 0x06, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x22, 0x72, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65,- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,- 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x9f, 0x12, 0x0a, 0x04,- 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64,- 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69,- 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x70, 0x65, 0x63, 0x49, 0x64, 0x12,- 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,- 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x61,- 0x73, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x70,- 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,- 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,- 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x5f,- 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e,- 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16,- 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x4b, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,- 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x12, 0x64, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18,- 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x48,- 0x00, 0x52, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x5e, 0x0a, 0x16, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x48, 0x00, 0x52, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52,- 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,- 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0xd8, 0x02,- 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18,- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05,- 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65,- 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f,- 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61,- 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61,- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c,- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,- 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69,- 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c,- 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,- 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,- 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a,- 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,- 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,- 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,- 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61,- 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69,- 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72,- 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x53, 0x0a, 0x14, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xed,- 0x03, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69,- 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x65,- 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x72, 0x6f,- 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x66, 0x0a,- 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x74,- 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61, 0x74,- 0x75, 0x73, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53,- 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,- 0x6b, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72,- 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e,- 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x06,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x68,- 0x65, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f,- 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x49, 0x73,- 0x73, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f,- 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x61, 0x73,- 0x6b, 0x22, 0x5b, 0x0a, 0x11, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c,- 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x4f, 0x4c, 0x4c, 0x42, 0x41,- 0x43, 0x4b, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50,- 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45,- 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x1a, 0xa3,- 0x01, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45,- 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a,- 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68,- 0x65, 0x65, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06,- 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,- 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73,- 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73,- 0x77, 0x6f, 0x72, 0x64, 0x22, 0x7c, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,- 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54,- 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49,- 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10,- 0x03, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46,- 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45,- 0x4c, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44,- 0x10, 0x07, 0x22, 0x9d, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,- 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13,- 0x0a, 0x0f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54,- 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f,- 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10,- 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43,- 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a,- 0x1a, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,- 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x05, 0x12, 0x25, 0x0a,- 0x21, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,- 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59,- 0x4e, 0x43, 0x10, 0x06, 0x12, 0x28, 0x0a, 0x24, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,- 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47,- 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x18,- 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f,- 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41,- 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54,- 0x10, 0x0c, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xc8, 0x0b,- 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a,- 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,- 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12,- 0x18, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65,- 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,- 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,- 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2,- 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12,- 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,- 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74,- 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65,- 0x74, 0x61, 0x69, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61,- 0x69, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73,- 0x74, 0x6f, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e,- 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,- 0x12, 0x4f, 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74,- 0x61, 0x74, 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,- 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,- 0x52, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75,- 0x73, 0x12, 0x5b, 0x0a, 0x1c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73,- 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,- 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,- 0x61, 0x6d, 0x70, 0x52, 0x19, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74,- 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4f,- 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61,- 0x69, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45,- 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0f,- 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,- 0x3f, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,- 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65,- 0x12, 0x5c, 0x0a, 0x15, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69,- 0x76, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,- 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x63, 0x68,- 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x13, 0x65, 0x78, 0x70, 0x6f, 0x72,- 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0xe5,- 0x02, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61,- 0x69, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x5f, 0x74,- 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d,- 0x61, 0x6e, 0x64, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6d,- 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x43,- 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x63, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d,- 0x61, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,- 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45,- 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x50,- 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,- 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5f, 0x0a,- 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x73,- 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69,- 0x6c, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d,- 0x61, 0x6e, 0x64, 0x45, 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x36,- 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69,- 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16,- 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x5e, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,- 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44,- 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47,- 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06,- 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43,- 0x45, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x22, 0x69, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,- 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x58, 0x45,- 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x50,- 0x52, 0x45, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d,- 0x0a, 0x09, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x12, 0x0a,- 0x0e, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10,- 0x03, 0x22, 0x55, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69,- 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x21, 0x45, 0x58, 0x50, 0x4f,- 0x52, 0x54, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55,- 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,- 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58,- 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x58, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b,- 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x65, 0x6e,- 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69,- 0x65, 0x73, 0x22, 0xc1, 0x06, 0x0a, 0x0f, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f,- 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74,- 0x72, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a,- 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x75, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79,- 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x52, 0x0a, 0x73, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x12, 0x54, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61,- 0x6e, 0x64, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54,- 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x43,- 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x0e, 0x63,- 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x94, 0x01,- 0x0a, 0x0a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x12, 0x39, 0x0a, 0x0a,- 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,- 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74,- 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74,- 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,- 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14,- 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,- 0x72, 0x72, 0x6f, 0x72, 0x1a, 0xfb, 0x02, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,- 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x74,- 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,- 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x27,- 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65,- 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,- 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c,- 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45,- 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,- 0x1a, 0xaf, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70,- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,- 0x6d, 0x70, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65,- 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f,- 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f,- 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74,- 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x5f, 0x61, 0x66,- 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,- 0x05, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f,- 0x77, 0x73, 0x22, 0x42, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,- 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x55, 0x4d, 0x50, 0x10,- 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x45, 0x58, 0x45,- 0x43, 0x55, 0x54, 0x45, 0x10, 0x02, 0x32, 0xa8, 0x10, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,- 0x75, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x67, 0x0a, 0x07, 0x47, 0x65, 0x74,- 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x2c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0x7a, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12,- 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,- 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,- 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e,- 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12,- 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x7a,- 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22,- 0x39, 0xda, 0x41, 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6c, 0x61, 0x6e, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x1d, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x0a, 0x55,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c,- 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x43, 0xda, 0x41,- 0x10, 0x70, 0x6c, 0x61, 0x6e, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,- 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x32, 0x22, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0x73, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12,- 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,- 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f,- 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f,- 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c,- 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,- 0x74, 0x22, 0x42, 0xda, 0x41, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c,- 0x6c, 0x6f, 0x75, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x07, 0x72, 0x6f, 0x6c, 0x6c,- 0x6f, 0x75, 0x74, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c,- 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65,- 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f,- 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,- 0x75, 0x74, 0x22, 0x39, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70,- 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0xa2, 0x01,- 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x20,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,- 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,- 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x22, 0x4d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c,- 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a,- 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x4c, 0x6f, 0x67, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67,- 0x22, 0x53, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x44, 0x12, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61,- 0x73, 0x6b, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x2f, 0x2a,- 0x7d, 0x2f, 0x6c, 0x6f, 0x67, 0x12, 0xa2, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c,- 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x25, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c,- 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75,- 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0xda, 0x41, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61,- 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x52,- 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6c,- 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75,- 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e,- 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x75, 0x6e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63,- 0x6b, 0x73, 0x12, 0xa6, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54,- 0x61, 0x73, 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61,- 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0xda, 0x41, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x3a, 0x01, 0x2a, 0x22,- 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73,- 0x6b, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x12, 0xaa, 0x01, 0x0a, 0x0e,- 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x22,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74,- 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x3a, 0x01, 0x2a, 0x22, 0x3b, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73,- 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x62,- 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x12, 0xc6, 0x01, 0x0a, 0x13, 0x42, 0x61, 0x74,- 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73,- 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42,- 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,- 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e,- 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,- 0x6e, 0x73, 0x65, 0x22, 0x5c, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3,- 0xe4, 0x93, 0x02, 0x4d, 0x3a, 0x01, 0x2a, 0x22, 0x48, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65,- 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73,- 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65,- 0x6c, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67,- 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,-}--var (- file_v1_rollout_service_proto_rawDescOnce sync.Once- file_v1_rollout_service_proto_rawDescData = file_v1_rollout_service_proto_rawDesc-)--func file_v1_rollout_service_proto_rawDescGZIP() []byte {- file_v1_rollout_service_proto_rawDescOnce.Do(func() {- file_v1_rollout_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_rollout_service_proto_rawDescData)- })- return file_v1_rollout_service_proto_rawDescData-}--var file_v1_rollout_service_proto_enumTypes = make([]protoimpl.EnumInfo, 11)-var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 53)-var file_v1_rollout_service_proto_goTypes = []interface{}{- (Plan_ChangeDatabaseConfig_Type)(0), // 0: bytebase.v1.Plan.ChangeDatabaseConfig.Type- (PlanCheckRun_Type)(0), // 1: bytebase.v1.PlanCheckRun.Type- (PlanCheckRun_Status)(0), // 2: bytebase.v1.PlanCheckRun.Status- (PlanCheckRun_Result_Status)(0), // 3: bytebase.v1.PlanCheckRun.Result.Status- (Task_Status)(0), // 4: bytebase.v1.Task.Status- (Task_Type)(0), // 5: bytebase.v1.Task.Type- (Task_DatabaseDataUpdate_RollbackSqlStatus)(0), // 6: bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus- (TaskRun_Status)(0), // 7: bytebase.v1.TaskRun.Status- (TaskRun_ExecutionStatus)(0), // 8: bytebase.v1.TaskRun.ExecutionStatus- (TaskRun_ExportArchiveStatus)(0), // 9: bytebase.v1.TaskRun.ExportArchiveStatus- (TaskRunLogEntry_Type)(0), // 10: bytebase.v1.TaskRunLogEntry.Type- (*GetPlanRequest)(nil), // 11: bytebase.v1.GetPlanRequest- (*ListPlansRequest)(nil), // 12: bytebase.v1.ListPlansRequest- (*ListPlansResponse)(nil), // 13: bytebase.v1.ListPlansResponse- (*CreatePlanRequest)(nil), // 14: bytebase.v1.CreatePlanRequest- (*UpdatePlanRequest)(nil), // 15: bytebase.v1.UpdatePlanRequest- (*Plan)(nil), // 16: bytebase.v1.Plan- (*ListPlanCheckRunsRequest)(nil), // 17: bytebase.v1.ListPlanCheckRunsRequest- (*ListPlanCheckRunsResponse)(nil), // 18: bytebase.v1.ListPlanCheckRunsResponse- (*RunPlanChecksRequest)(nil), // 19: bytebase.v1.RunPlanChecksRequest- (*RunPlanChecksResponse)(nil), // 20: bytebase.v1.RunPlanChecksResponse- (*BatchRunTasksRequest)(nil), // 21: bytebase.v1.BatchRunTasksRequest- (*BatchRunTasksResponse)(nil), // 22: bytebase.v1.BatchRunTasksResponse- (*BatchSkipTasksRequest)(nil), // 23: bytebase.v1.BatchSkipTasksRequest- (*BatchSkipTasksResponse)(nil), // 24: bytebase.v1.BatchSkipTasksResponse- (*BatchCancelTaskRunsRequest)(nil), // 25: bytebase.v1.BatchCancelTaskRunsRequest- (*BatchCancelTaskRunsResponse)(nil), // 26: bytebase.v1.BatchCancelTaskRunsResponse- (*PlanCheckRun)(nil), // 27: bytebase.v1.PlanCheckRun- (*GetRolloutRequest)(nil), // 28: bytebase.v1.GetRolloutRequest- (*CreateRolloutRequest)(nil), // 29: bytebase.v1.CreateRolloutRequest- (*PreviewRolloutRequest)(nil), // 30: bytebase.v1.PreviewRolloutRequest- (*ListTaskRunsRequest)(nil), // 31: bytebase.v1.ListTaskRunsRequest- (*ListTaskRunsResponse)(nil), // 32: bytebase.v1.ListTaskRunsResponse- (*GetTaskRunLogRequest)(nil), // 33: bytebase.v1.GetTaskRunLogRequest- (*Rollout)(nil), // 34: bytebase.v1.Rollout- (*Stage)(nil), // 35: bytebase.v1.Stage- (*Task)(nil), // 36: bytebase.v1.Task- (*TaskRun)(nil), // 37: bytebase.v1.TaskRun- (*TaskRunLog)(nil), // 38: bytebase.v1.TaskRunLog- (*TaskRunLogEntry)(nil), // 39: bytebase.v1.TaskRunLogEntry- (*Plan_Step)(nil), // 40: bytebase.v1.Plan.Step- (*Plan_Spec)(nil), // 41: bytebase.v1.Plan.Spec- (*Plan_CreateDatabaseConfig)(nil), // 42: bytebase.v1.Plan.CreateDatabaseConfig- (*Plan_ChangeDatabaseConfig)(nil), // 43: bytebase.v1.Plan.ChangeDatabaseConfig- (*Plan_ExportDataConfig)(nil), // 44: bytebase.v1.Plan.ExportDataConfig- (*Plan_VCSSource)(nil), // 45: bytebase.v1.Plan.VCSSource- nil, // 46: bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry- (*Plan_ChangeDatabaseConfig_RollbackDetail)(nil), // 47: bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail- nil, // 48: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry- (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 49: bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail- (*PlanCheckRun_Result)(nil), // 50: bytebase.v1.PlanCheckRun.Result- (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 51: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- (*PlanCheckRun_Result_SqlReviewReport)(nil), // 52: bytebase.v1.PlanCheckRun.Result.SqlReviewReport- (*Task_DatabaseCreate)(nil), // 53: bytebase.v1.Task.DatabaseCreate- (*Task_DatabaseSchemaBaseline)(nil), // 54: bytebase.v1.Task.DatabaseSchemaBaseline- (*Task_DatabaseSchemaUpdate)(nil), // 55: bytebase.v1.Task.DatabaseSchemaUpdate- (*Task_DatabaseDataUpdate)(nil), // 56: bytebase.v1.Task.DatabaseDataUpdate- (*Task_DatabaseDataExport)(nil), // 57: bytebase.v1.Task.DatabaseDataExport- nil, // 58: bytebase.v1.Task.DatabaseCreate.LabelsEntry- (*TaskRun_ExecutionDetail)(nil), // 59: bytebase.v1.TaskRun.ExecutionDetail- (*TaskRun_ExecutionDetail_Position)(nil), // 60: bytebase.v1.TaskRun.ExecutionDetail.Position- (*TaskRunLogEntry_SchemaDump)(nil), // 61: bytebase.v1.TaskRunLogEntry.SchemaDump- (*TaskRunLogEntry_CommandExecute)(nil), // 62: bytebase.v1.TaskRunLogEntry.CommandExecute- (*TaskRunLogEntry_CommandExecute_CommandResponse)(nil), // 63: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse- (*fieldmaskpb.FieldMask)(nil), // 64: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 65: google.protobuf.Timestamp- (ExportFormat)(0), // 66: bytebase.v1.ExportFormat- (VCSType)(0), // 67: bytebase.v1.VCSType- (*ChangedResources)(nil), // 68: bytebase.v1.ChangedResources-}-var file_v1_rollout_service_proto_depIdxs = []int32{- 16, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan- 16, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan- 16, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan- 64, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask- 40, // 4: bytebase.v1.Plan.steps:type_name -> bytebase.v1.Plan.Step- 45, // 5: bytebase.v1.Plan.vcs_source:type_name -> bytebase.v1.Plan.VCSSource- 65, // 6: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp- 27, // 7: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun- 1, // 8: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type- 2, // 9: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status- 50, // 10: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result- 65, // 11: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp- 34, // 12: bytebase.v1.CreateRolloutRequest.rollout:type_name -> bytebase.v1.Rollout- 16, // 13: bytebase.v1.PreviewRolloutRequest.plan:type_name -> bytebase.v1.Plan- 37, // 14: bytebase.v1.ListTaskRunsResponse.task_runs:type_name -> bytebase.v1.TaskRun- 35, // 15: bytebase.v1.Rollout.stages:type_name -> bytebase.v1.Stage- 36, // 16: bytebase.v1.Stage.tasks:type_name -> bytebase.v1.Task- 4, // 17: bytebase.v1.Task.status:type_name -> bytebase.v1.Task.Status- 5, // 18: bytebase.v1.Task.type:type_name -> bytebase.v1.Task.Type- 53, // 19: bytebase.v1.Task.database_create:type_name -> bytebase.v1.Task.DatabaseCreate- 54, // 20: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline- 55, // 21: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate- 56, // 22: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate- 57, // 23: bytebase.v1.Task.database_data_export:type_name -> bytebase.v1.Task.DatabaseDataExport- 65, // 24: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp- 65, // 25: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp- 7, // 26: bytebase.v1.TaskRun.status:type_name -> bytebase.v1.TaskRun.Status- 8, // 27: bytebase.v1.TaskRun.execution_status:type_name -> bytebase.v1.TaskRun.ExecutionStatus- 65, // 28: bytebase.v1.TaskRun.execution_status_update_time:type_name -> google.protobuf.Timestamp- 59, // 29: bytebase.v1.TaskRun.execution_detail:type_name -> bytebase.v1.TaskRun.ExecutionDetail- 65, // 30: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp- 9, // 31: bytebase.v1.TaskRun.export_archive_status:type_name -> bytebase.v1.TaskRun.ExportArchiveStatus- 39, // 32: bytebase.v1.TaskRunLog.entries:type_name -> bytebase.v1.TaskRunLogEntry- 10, // 33: bytebase.v1.TaskRunLogEntry.type:type_name -> bytebase.v1.TaskRunLogEntry.Type- 61, // 34: bytebase.v1.TaskRunLogEntry.schema_dump:type_name -> bytebase.v1.TaskRunLogEntry.SchemaDump- 62, // 35: bytebase.v1.TaskRunLogEntry.command_execute:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute- 41, // 36: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec- 65, // 37: bytebase.v1.Plan.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp- 42, // 38: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig- 43, // 39: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig- 44, // 40: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig- 46, // 41: bytebase.v1.Plan.CreateDatabaseConfig.labels:type_name -> bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry- 0, // 42: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type- 47, // 43: bytebase.v1.Plan.ChangeDatabaseConfig.rollback_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail- 48, // 44: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry- 49, // 45: bytebase.v1.Plan.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail- 66, // 46: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat- 67, // 47: bytebase.v1.Plan.VCSSource.vcs_type:type_name -> bytebase.v1.VCSType- 3, // 48: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status- 51, // 49: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- 52, // 50: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport- 68, // 51: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources- 58, // 52: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry- 6, // 53: bytebase.v1.Task.DatabaseDataUpdate.rollback_sql_status:type_name -> bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus- 66, // 54: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat- 60, // 55: bytebase.v1.TaskRun.ExecutionDetail.command_start_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position- 60, // 56: bytebase.v1.TaskRun.ExecutionDetail.command_end_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position- 65, // 57: bytebase.v1.TaskRunLogEntry.SchemaDump.start_time:type_name -> google.protobuf.Timestamp- 65, // 58: bytebase.v1.TaskRunLogEntry.SchemaDump.end_time:type_name -> google.protobuf.Timestamp- 65, // 59: bytebase.v1.TaskRunLogEntry.CommandExecute.log_time:type_name -> google.protobuf.Timestamp- 63, // 60: bytebase.v1.TaskRunLogEntry.CommandExecute.response:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse- 65, // 61: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse.log_time:type_name -> google.protobuf.Timestamp- 11, // 62: bytebase.v1.RolloutService.GetPlan:input_type -> bytebase.v1.GetPlanRequest- 12, // 63: bytebase.v1.RolloutService.ListPlans:input_type -> bytebase.v1.ListPlansRequest- 14, // 64: bytebase.v1.RolloutService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest- 15, // 65: bytebase.v1.RolloutService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest- 28, // 66: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest- 29, // 67: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest- 30, // 68: bytebase.v1.RolloutService.PreviewRollout:input_type -> bytebase.v1.PreviewRolloutRequest- 31, // 69: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest- 33, // 70: bytebase.v1.RolloutService.GetTaskRunLog:input_type -> bytebase.v1.GetTaskRunLogRequest- 17, // 71: bytebase.v1.RolloutService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest- 19, // 72: bytebase.v1.RolloutService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest- 21, // 73: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest- 23, // 74: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest- 25, // 75: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest- 16, // 76: bytebase.v1.RolloutService.GetPlan:output_type -> bytebase.v1.Plan- 13, // 77: bytebase.v1.RolloutService.ListPlans:output_type -> bytebase.v1.ListPlansResponse- 16, // 78: bytebase.v1.RolloutService.CreatePlan:output_type -> bytebase.v1.Plan- 16, // 79: bytebase.v1.RolloutService.UpdatePlan:output_type -> bytebase.v1.Plan- 34, // 80: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout- 34, // 81: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout- 34, // 82: bytebase.v1.RolloutService.PreviewRollout:output_type -> bytebase.v1.Rollout- 32, // 83: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse- 38, // 84: bytebase.v1.RolloutService.GetTaskRunLog:output_type -> bytebase.v1.TaskRunLog- 18, // 85: bytebase.v1.RolloutService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse- 20, // 86: bytebase.v1.RolloutService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse- 22, // 87: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse- 24, // 88: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse- 26, // 89: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse- 76, // [76:90] is the sub-list for method output_type- 62, // [62:76] is the sub-list for method input_type- 62, // [62:62] is the sub-list for extension type_name- 62, // [62:62] is the sub-list for extension extendee- 0, // [0:62] is the sub-list for field type_name-}--func init() { file_v1_rollout_service_proto_init() }-func file_v1_rollout_service_proto_init() {- if File_v1_rollout_service_proto != nil {- return- }- file_v1_common_proto_init()- file_v1_database_service_proto_init()- if !protoimpl.UnsafeEnabled {- file_v1_rollout_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GetPlanRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListPlansRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListPlansResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*CreatePlanRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*UpdatePlanRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListPlanCheckRunsRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListPlanCheckRunsResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*RunPlanChecksRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*RunPlanChecksResponse); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {++func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetError() string {+ if x != nil {+ return x.Error+ }+ return ""+}++func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetAffectedRows() int32 {+ if x != nil {+ return x.AffectedRows+ }+ return 0+}++func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetAllAffectedRows() []int32 {+ if x != nil {+ return x.AllAffectedRows+ }+ return nil+}++var File_v1_rollout_service_proto protoreflect.FileDescriptor++var file_v1_rollout_service_proto_rawDesc = []byte{+ 0x0a, 0x18, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x72,+ 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,+ 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,+ 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,+ 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,+ 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x1a, 0x15, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,+ 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63,+ 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b,+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16,+ 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,+ 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x17, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52,+ 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,+ 0x5d, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b,+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,+ 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,+ 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x18,+ 0x0a, 0x16, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63,+ 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b,+ 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,+ 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72,+ 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61,+ 0x73, 0x6f, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63,+ 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x22, 0x6a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,+ 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f,+ 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x42, 0x04,+ 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x5e, 0x0a,+ 0x15, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x6f, 0x0a,+ 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,+ 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x71,+ 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72,+ 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52,+ 0x08, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78,+ 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,+ 0x6e, 0x22, 0x2e, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c,+ 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x22, 0x91, 0x01, 0x0a, 0x07, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x12, 0x0a,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x12, 0x16, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,+ 0xe2, 0x41, 0x01, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x04, 0x70, 0x6c, 0x61,+ 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x70,+ 0x6c, 0x61, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61,+ 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x06, 0x73,+ 0x74, 0x61, 0x67, 0x65, 0x73, 0x22, 0x72, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x12,+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,+ 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x12, 0x27, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,+ 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x9f, 0x12, 0x0a, 0x04, 0x54, 0x61,+ 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14,+ 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,+ 0x69, 0x74, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x70, 0x65, 0x63, 0x49, 0x64, 0x12, 0x30, 0x0a,+ 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b,+ 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,+ 0x25, 0x0a, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f,+ 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64,+ 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,+ 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x5f, 0x6f, 0x6e,+ 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65,+ 0x70, 0x65, 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06,+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61,+ 0x72, 0x67, 0x65, 0x74, 0x12, 0x4b, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b,+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48,+ 0x00, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74,+ 0x65, 0x12, 0x64, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x48, 0x00, 0x52,+ 0x16, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42,+ 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x5e, 0x0a, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,+ 0x00, 0x52, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18,+ 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x12, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61,+ 0x74, 0x61, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,+ 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45,+ 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0xd8, 0x02, 0x0a, 0x0e,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18,+ 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68,+ 0x65, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74,+ 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65,+ 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74,+ 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,+ 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,+ 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18,+ 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e,+ 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c,+ 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,+ 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65,+ 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,+ 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x53, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12,+ 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,+ 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,+ 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xed, 0x03, 0x0a,+ 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,+ 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6e, 0x61,+ 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x72, 0x6f, 0x6c, 0x6c,+ 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x66, 0x0a, 0x13, 0x72,+ 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74,+ 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x52,+ 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,+ 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61,+ 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f,+ 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x6f, 0x6c,+ 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f,+ 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x68, 0x65, 0x65,+ 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72,+ 0x6f, 0x6d, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11,+ 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x49, 0x73, 0x73, 0x75,+ 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72,+ 0x6f, 0x6d, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72,+ 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x61, 0x73, 0x6b, 0x22,+ 0x5b, 0x0a, 0x11, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x4f, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b,+ 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e,+ 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02,+ 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x1a, 0xa3, 0x01, 0x0a,+ 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70,+ 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73,+ 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65,+ 0x74, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f,+ 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,+ 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,+ 0x72, 0x64, 0x22, 0x7c, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12,+ 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x52,+ 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47,+ 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12,+ 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49,+ 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45,+ 0x44, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, 0x07,+ 0x22, 0x9d, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f,+ 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10,+ 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43,+ 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03, 0x12,+ 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45,+ 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x44,+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55,+ 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x05, 0x12, 0x25, 0x0a, 0x21, 0x44,+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55,+ 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43,+ 0x10, 0x06, 0x12, 0x28, 0x0a, 0x24, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53,+ 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f,+ 0x53, 0x54, 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x18, 0x0a, 0x14,+ 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x55, 0x50,+ 0x44, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,+ 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x0c,+ 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xc8, 0x0b, 0x0a, 0x07,+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x03, 0x75,+ 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x03,+ 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a,+ 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,+ 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a,+ 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,+ 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01,+ 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a,+ 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,+ 0x74, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,+ 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61,+ 0x69, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,+ 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f,+ 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4f,+ 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74,+ 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45,+ 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0f,+ 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,+ 0x5b, 0x0a, 0x1c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61,+ 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,+ 0x70, 0x52, 0x19, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74,+ 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4f, 0x0a, 0x10,+ 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,+ 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45, 0x78, 0x65,+ 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0f, 0x65, 0x78,+ 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x3f, 0x0a,+ 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2,+ 0x41, 0x01, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5c,+ 0x0a, 0x15, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65,+ 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b,+ 0x52, 0x75, 0x6e, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76,+ 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x13, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41,+ 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0xe5, 0x02, 0x0a,+ 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,+ 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x5f, 0x74, 0x6f, 0x74,+ 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,+ 0x64, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x61,+ 0x6e, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x05, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x43, 0x6f, 0x6d,+ 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x63, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,+ 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x45, 0x78, 0x65,+ 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x50, 0x6f, 0x73,+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x53, 0x74,+ 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5f, 0x0a, 0x14, 0x63,+ 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74,+ 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e,+ 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,+ 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,+ 0x64, 0x45, 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x36, 0x0a, 0x08,+ 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06,+ 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f,+ 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x5e, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,+ 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e,+ 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02,+ 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41,+ 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c,+ 0x45, 0x44, 0x10, 0x05, 0x22, 0x69, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,+ 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x58, 0x45, 0x43, 0x55,+ 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x52, 0x45,+ 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09,+ 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x50,+ 0x4f, 0x53, 0x54, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x22,+ 0x55, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65,+ 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x21, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54,+ 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a,+ 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50, 0x4f,+ 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x58, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,+ 0x6e, 0x4c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72,+ 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c,+ 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73,+ 0x22, 0xc1, 0x06, 0x0a, 0x0f, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x45,+ 0x6e, 0x74, 0x72, 0x79, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79,+ 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x75, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54,+ 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x44, 0x75, 0x6d, 0x70, 0x12, 0x54, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,+ 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73,+ 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d,+ 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x0e, 0x63, 0x6f, 0x6d,+ 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x94, 0x01, 0x0a, 0x0a,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74,+ 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72,+ 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,+ 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,+ 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72,+ 0x6f, 0x72, 0x1a, 0xfb, 0x02, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78,+ 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x69, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,+ 0x61, 0x6d, 0x70, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f,+ 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18,+ 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x49, 0x6e,+ 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67,+ 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65,+ 0x63, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0xaf,+ 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,+ 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72,+ 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12,+ 0x23, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64,+ 0x52, 0x6f, 0x77, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x5f, 0x61, 0x66, 0x66, 0x65,+ 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52,+ 0x0f, 0x61, 0x6c, 0x6c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73,+ 0x22, 0x42, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f,+ 0x0a, 0x0b, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x55, 0x4d, 0x50, 0x10, 0x01, 0x12,+ 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55,+ 0x54, 0x45, 0x10, 0x02, 0x32, 0x83, 0x0a, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x6f,+ 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x2f, 0xda, 0x41, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8c, 0x01, 0x0a,+ 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x21,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,+ 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x42, 0xda, 0x41, 0x0e, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b,+ 0x3a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x0e,+ 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x22,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65,+ 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x39, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c,+ 0x6f, 0x75, 0x74, 0x12, 0xa2, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b,+ 0x52, 0x75, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0xda, 0x41, 0x06, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74,+ 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,+ 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74,+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b,+ 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b,+ 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x22, 0x53, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,+ 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65,+ 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b,+ 0x52, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6c, 0x6f, 0x67, 0x12, 0xa6, 0x01, 0x0a, 0x0d,+ 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x21, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63,+ 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42,+ 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x3a, 0x01, 0x2a, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67,+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63,+ 0x68, 0x52, 0x75, 0x6e, 0x12, 0xaa, 0x01, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b,+ 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69, 0x70, 0x54,+ 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53,+ 0x6b, 0x69, 0x70, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,+ 0x22, 0x4f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x40, 0x3a, 0x01, 0x2a, 0x22, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c,+ 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a,+ 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x53, 0x6b, 0x69,+ 0x70, 0x12, 0xc6, 0x01, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65,+ 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e,+ 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x61, 0x73, 0x6b,+ 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0xda, 0x41,+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4d, 0x3a, 0x01, 0x2a,+ 0x22, 0x48, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,+ 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73,+ 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x3a, 0x62,+ 0x61, 0x74, 0x63, 0x68, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65,+ 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x33,+}++var (+ file_v1_rollout_service_proto_rawDescOnce sync.Once+ file_v1_rollout_service_proto_rawDescData = file_v1_rollout_service_proto_rawDesc+)++func file_v1_rollout_service_proto_rawDescGZIP() []byte {+ file_v1_rollout_service_proto_rawDescOnce.Do(func() {+ file_v1_rollout_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_rollout_service_proto_rawDescData)+ })+ return file_v1_rollout_service_proto_rawDescData+}++var file_v1_rollout_service_proto_enumTypes = make([]protoimpl.EnumInfo, 7)+var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 29)+var file_v1_rollout_service_proto_goTypes = []interface{}{+ (Task_Status)(0), // 0: bytebase.v1.Task.Status+ (Task_Type)(0), // 1: bytebase.v1.Task.Type+ (Task_DatabaseDataUpdate_RollbackSqlStatus)(0), // 2: bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus+ (TaskRun_Status)(0), // 3: bytebase.v1.TaskRun.Status+ (TaskRun_ExecutionStatus)(0), // 4: bytebase.v1.TaskRun.ExecutionStatus+ (TaskRun_ExportArchiveStatus)(0), // 5: bytebase.v1.TaskRun.ExportArchiveStatus+ (TaskRunLogEntry_Type)(0), // 6: bytebase.v1.TaskRunLogEntry.Type+ (*BatchRunTasksRequest)(nil), // 7: bytebase.v1.BatchRunTasksRequest+ (*BatchRunTasksResponse)(nil), // 8: bytebase.v1.BatchRunTasksResponse+ (*BatchSkipTasksRequest)(nil), // 9: bytebase.v1.BatchSkipTasksRequest+ (*BatchSkipTasksResponse)(nil), // 10: bytebase.v1.BatchSkipTasksResponse+ (*BatchCancelTaskRunsRequest)(nil), // 11: bytebase.v1.BatchCancelTaskRunsRequest+ (*BatchCancelTaskRunsResponse)(nil), // 12: bytebase.v1.BatchCancelTaskRunsResponse+ (*GetRolloutRequest)(nil), // 13: bytebase.v1.GetRolloutRequest+ (*CreateRolloutRequest)(nil), // 14: bytebase.v1.CreateRolloutRequest+ (*PreviewRolloutRequest)(nil), // 15: bytebase.v1.PreviewRolloutRequest+ (*ListTaskRunsRequest)(nil), // 16: bytebase.v1.ListTaskRunsRequest+ (*ListTaskRunsResponse)(nil), // 17: bytebase.v1.ListTaskRunsResponse+ (*GetTaskRunLogRequest)(nil), // 18: bytebase.v1.GetTaskRunLogRequest+ (*Rollout)(nil), // 19: bytebase.v1.Rollout+ (*Stage)(nil), // 20: bytebase.v1.Stage+ (*Task)(nil), // 21: bytebase.v1.Task+ (*TaskRun)(nil), // 22: bytebase.v1.TaskRun+ (*TaskRunLog)(nil), // 23: bytebase.v1.TaskRunLog+ (*TaskRunLogEntry)(nil), // 24: bytebase.v1.TaskRunLogEntry+ (*Task_DatabaseCreate)(nil), // 25: bytebase.v1.Task.DatabaseCreate+ (*Task_DatabaseSchemaBaseline)(nil), // 26: bytebase.v1.Task.DatabaseSchemaBaseline+ (*Task_DatabaseSchemaUpdate)(nil), // 27: bytebase.v1.Task.DatabaseSchemaUpdate+ (*Task_DatabaseDataUpdate)(nil), // 28: bytebase.v1.Task.DatabaseDataUpdate+ (*Task_DatabaseDataExport)(nil), // 29: bytebase.v1.Task.DatabaseDataExport+ nil, // 30: bytebase.v1.Task.DatabaseCreate.LabelsEntry+ (*TaskRun_ExecutionDetail)(nil), // 31: bytebase.v1.TaskRun.ExecutionDetail+ (*TaskRun_ExecutionDetail_Position)(nil), // 32: bytebase.v1.TaskRun.ExecutionDetail.Position+ (*TaskRunLogEntry_SchemaDump)(nil), // 33: bytebase.v1.TaskRunLogEntry.SchemaDump+ (*TaskRunLogEntry_CommandExecute)(nil), // 34: bytebase.v1.TaskRunLogEntry.CommandExecute+ (*TaskRunLogEntry_CommandExecute_CommandResponse)(nil), // 35: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse+ (*Plan)(nil), // 36: bytebase.v1.Plan+ (*timestamppb.Timestamp)(nil), // 37: google.protobuf.Timestamp+ (ExportFormat)(0), // 38: bytebase.v1.ExportFormat+}+var file_v1_rollout_service_proto_depIdxs = []int32{+ 19, // 0: bytebase.v1.CreateRolloutRequest.rollout:type_name -> bytebase.v1.Rollout+ 36, // 1: bytebase.v1.PreviewRolloutRequest.plan:type_name -> bytebase.v1.Plan+ 22, // 2: bytebase.v1.ListTaskRunsResponse.task_runs:type_name -> bytebase.v1.TaskRun+ 20, // 3: bytebase.v1.Rollout.stages:type_name -> bytebase.v1.Stage+ 21, // 4: bytebase.v1.Stage.tasks:type_name -> bytebase.v1.Task+ 0, // 5: bytebase.v1.Task.status:type_name -> bytebase.v1.Task.Status+ 1, // 6: bytebase.v1.Task.type:type_name -> bytebase.v1.Task.Type+ 25, // 7: bytebase.v1.Task.database_create:type_name -> bytebase.v1.Task.DatabaseCreate+ 26, // 8: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline+ 27, // 9: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate+ 28, // 10: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate+ 29, // 11: bytebase.v1.Task.database_data_export:type_name -> bytebase.v1.Task.DatabaseDataExport+ 37, // 12: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp+ 37, // 13: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp+ 3, // 14: bytebase.v1.TaskRun.status:type_name -> bytebase.v1.TaskRun.Status+ 4, // 15: bytebase.v1.TaskRun.execution_status:type_name -> bytebase.v1.TaskRun.ExecutionStatus+ 37, // 16: bytebase.v1.TaskRun.execution_status_update_time:type_name -> google.protobuf.Timestamp+ 31, // 17: bytebase.v1.TaskRun.execution_detail:type_name -> bytebase.v1.TaskRun.ExecutionDetail+ 37, // 18: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp+ 5, // 19: bytebase.v1.TaskRun.export_archive_status:type_name -> bytebase.v1.TaskRun.ExportArchiveStatus+ 24, // 20: bytebase.v1.TaskRunLog.entries:type_name -> bytebase.v1.TaskRunLogEntry+ 6, // 21: bytebase.v1.TaskRunLogEntry.type:type_name -> bytebase.v1.TaskRunLogEntry.Type+ 33, // 22: bytebase.v1.TaskRunLogEntry.schema_dump:type_name -> bytebase.v1.TaskRunLogEntry.SchemaDump+ 34, // 23: bytebase.v1.TaskRunLogEntry.command_execute:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute+ 30, // 24: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry+ 2, // 25: bytebase.v1.Task.DatabaseDataUpdate.rollback_sql_status:type_name -> bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus+ 38, // 26: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat+ 32, // 27: bytebase.v1.TaskRun.ExecutionDetail.command_start_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position+ 32, // 28: bytebase.v1.TaskRun.ExecutionDetail.command_end_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position+ 37, // 29: bytebase.v1.TaskRunLogEntry.SchemaDump.start_time:type_name -> google.protobuf.Timestamp+ 37, // 30: bytebase.v1.TaskRunLogEntry.SchemaDump.end_time:type_name -> google.protobuf.Timestamp+ 37, // 31: bytebase.v1.TaskRunLogEntry.CommandExecute.log_time:type_name -> google.protobuf.Timestamp+ 35, // 32: bytebase.v1.TaskRunLogEntry.CommandExecute.response:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse+ 37, // 33: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse.log_time:type_name -> google.protobuf.Timestamp+ 13, // 34: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest+ 14, // 35: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest+ 15, // 36: bytebase.v1.RolloutService.PreviewRollout:input_type -> bytebase.v1.PreviewRolloutRequest+ 16, // 37: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest+ 18, // 38: bytebase.v1.RolloutService.GetTaskRunLog:input_type -> bytebase.v1.GetTaskRunLogRequest+ 7, // 39: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest+ 9, // 40: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest+ 11, // 41: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest+ 19, // 42: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout+ 19, // 43: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout+ 19, // 44: bytebase.v1.RolloutService.PreviewRollout:output_type -> bytebase.v1.Rollout+ 17, // 45: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse+ 23, // 46: bytebase.v1.RolloutService.GetTaskRunLog:output_type -> bytebase.v1.TaskRunLog+ 8, // 47: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse+ 10, // 48: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse+ 12, // 49: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse+ 42, // [42:50] is the sub-list for method output_type+ 34, // [34:42] 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+}++func init() { file_v1_rollout_service_proto_init() }+func file_v1_rollout_service_proto_init() {+ if File_v1_rollout_service_proto != nil {+ return+ }+ file_v1_common_proto_init()+ file_v1_plan_service_proto_init()+ if !protoimpl.UnsafeEnabled {+ file_v1_rollout_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*BatchRunTasksRequest); i {case 0:return &v.state@@ -5531,7 +3077,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*BatchRunTasksResponse); i {case 0:return &v.state@@ -5543,7 +3089,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*BatchSkipTasksRequest); i {case 0:return &v.state@@ -5555,7 +3101,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*BatchSkipTasksResponse); i {case 0:return &v.state@@ -5567,7 +3113,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*BatchCancelTaskRunsRequest); i {case 0:return &v.state@@ -5579,7 +3125,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*BatchCancelTaskRunsResponse); i {case 0:return &v.state@@ -5591,19 +3137,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*PlanCheckRun); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*GetRolloutRequest); i {case 0:return &v.state@@ -5615,7 +3149,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*CreateRolloutRequest); i {case 0:return &v.state@@ -5627,7 +3161,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*PreviewRolloutRequest); i {case 0:return &v.state@@ -5639,7 +3173,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListTaskRunsRequest); i {case 0:return &v.state@@ -5651,7 +3185,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*ListTaskRunsResponse); i {case 0:return &v.state@@ -5663,7 +3197,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*GetTaskRunLogRequest); i {case 0:return &v.state@@ -5675,7 +3209,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Rollout); i {case 0:return &v.state@@ -5687,7 +3221,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Stage); i {case 0:return &v.state@@ -5699,7 +3233,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task); i {case 0:return &v.state@@ -5711,7 +3245,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRun); i {case 0:return &v.state@@ -5723,7 +3257,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRunLog); i {case 0:return &v.state@@ -5735,7 +3269,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRunLogEntry); i {case 0:return &v.state@@ -5747,139 +3281,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_Step); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_Spec); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_CreateDatabaseConfig); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_ChangeDatabaseConfig); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_ExportDataConfig); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_VCSSource); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_ChangeDatabaseConfig_RollbackDetail); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*PlanCheckRun_Result); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*PlanCheckRun_Result_SqlSummaryReport); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*PlanCheckRun_Result_SqlReviewReport); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_rollout_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseCreate); i {case 0:return &v.state@@ -5891,7 +3293,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseSchemaBaseline); i {case 0:return &v.state@@ -5903,7 +3305,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseSchemaUpdate); i {case 0:return &v.state@@ -5915,7 +3317,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseDataUpdate); i {case 0:return &v.state@@ -5927,7 +3329,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Task_DatabaseDataExport); i {case 0:return &v.state@@ -5939,7 +3341,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRun_ExecutionDetail); i {case 0:return &v.state@@ -5951,7 +3353,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRun_ExecutionDetail_Position); i {case 0:return &v.state@@ -5963,7 +3365,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRunLogEntry_SchemaDump); i {case 0:return &v.state@@ -5975,7 +3377,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRunLogEntry_CommandExecute); i {case 0:return &v.state@@ -5987,7 +3389,7 @@ func file_v1_rollout_service_proto_init() {return nil}}- file_v1_rollout_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} {+ file_v1_rollout_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*TaskRunLogEntry_CommandExecute_CommandResponse); i {case 0:return &v.state@@ -6000,32 +3402,21 @@ func file_v1_rollout_service_proto_init() {}}}- file_v1_rollout_service_proto_msgTypes[25].OneofWrappers = []interface{}{+ file_v1_rollout_service_proto_msgTypes[14].OneofWrappers = []interface{}{(*Task_DatabaseCreate_)(nil),(*Task_DatabaseSchemaBaseline_)(nil),(*Task_DatabaseSchemaUpdate_)(nil),(*Task_DatabaseDataUpdate_)(nil),(*Task_DatabaseDataExport_)(nil),}- file_v1_rollout_service_proto_msgTypes[30].OneofWrappers = []interface{}{- (*Plan_Spec_CreateDatabaseConfig)(nil),- (*Plan_Spec_ChangeDatabaseConfig)(nil),- (*Plan_Spec_ExportDataConfig)(nil),- }- file_v1_rollout_service_proto_msgTypes[32].OneofWrappers = []interface{}{}- file_v1_rollout_service_proto_msgTypes[33].OneofWrappers = []interface{}{}- file_v1_rollout_service_proto_msgTypes[39].OneofWrappers = []interface{}{- (*PlanCheckRun_Result_SqlSummaryReport_)(nil),- (*PlanCheckRun_Result_SqlReviewReport_)(nil),- }- file_v1_rollout_service_proto_msgTypes[46].OneofWrappers = []interface{}{}+ file_v1_rollout_service_proto_msgTypes[22].OneofWrappers = []interface{}{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_rollout_service_proto_rawDesc,- NumEnums: 11,- NumMessages: 53,+ NumEnums: 7,+ NumMessages: 29,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/rollout_service.pb.gw.go b/proto/generated-go/v1/rollout_service.pb.gw.goindex 18f81e24ed..f283b1aff8 100644--- a/proto/generated-go/v1/rollout_service.pb.gw.go+++ b/proto/generated-go/v1/rollout_service.pb.gw.go@@ -31,288 +31,6 @@ var _ = runtime.Stringvar _ = utilities.NewDoubleArrayvar _ = metadata.Join-func request_RolloutService_GetPlan_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetPlanRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := client.GetPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_RolloutService_GetPlan_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetPlanRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := server.GetPlan(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_RolloutService_ListPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}-)--func request_RolloutService_ListPlans_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListPlansRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListPlans_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.ListPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_RolloutService_ListPlans_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListPlansRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListPlans_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.ListPlans(ctx, &protoReq)- return msg, metadata, err--}--func request_RolloutService_CreatePlan_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreatePlanRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Plan); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- msg, err := client.CreatePlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_RolloutService_CreatePlan_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreatePlanRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Plan); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- msg, err := server.CreatePlan(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_RolloutService_UpdatePlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"plan": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}}-)--func request_RolloutService_UpdatePlan_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdatePlanRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Plan); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {- if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Plan); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- } else {- protoReq.UpdateMask = fieldMask- }- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["plan.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "plan.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "plan.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "plan.name", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_UpdatePlan_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.UpdatePlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_RolloutService_UpdatePlan_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdatePlanRequest- var metadata runtime.ServerMetadata-- newReader, berr := utilities.IOReaderFactory(req.Body)- if berr != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)- }- if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Plan); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {- if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Plan); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- } else {- protoReq.UpdateMask = fieldMask- }- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["plan.name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "plan.name")- }-- err = runtime.PopulateFieldFromPath(&protoReq, "plan.name", val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "plan.name", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_UpdatePlan_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.UpdatePlan(ctx, &protoReq)- return msg, metadata, err--}-func request_RolloutService_GetRollout_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {var protoReq GetRolloutRequestvar metadata runtime.ServerMetadata@@ -583,137 +301,7 @@ func request_RolloutService_GetTaskRunLog_0(ctx context.Context, marshaler runtifunc local_request_RolloutService_GetTaskRunLog_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {var protoReq GetTaskRunLogRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- msg, err := server.GetTaskRunLog(ctx, &protoReq)- return msg, metadata, err--}--var (- filter_RolloutService_ListPlanCheckRuns_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}-)--func request_RolloutService_ListPlanCheckRuns_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListPlanCheckRunsRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListPlanCheckRuns_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := client.ListPlanCheckRuns(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_RolloutService_ListPlanCheckRuns_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListPlanCheckRunsRequest- var metadata runtime.ServerMetadata-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }-- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }-- if err := req.ParseForm(); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListPlanCheckRuns_0); err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- msg, err := server.ListPlanCheckRuns(ctx, &protoReq)- return msg, metadata, err--}--func request_RolloutService_RunPlanChecks_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq RunPlanChecksRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }-- var (- val string- ok bool- err error- _ = err- )-- val, ok = pathParams["name"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")- }-- protoReq.Name, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)- }-- msg, err := client.RunPlanChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_RolloutService_RunPlanChecks_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq RunPlanChecksRequest- var metadata runtime.ServerMetadata-- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }+ var metadata runtime.ServerMetadatavar (val string@@ -722,17 +310,17 @@ func local_request_RolloutService_RunPlanChecks_0(ctx context.Context, marshaler_ = err)- val, ok = pathParams["name"]+ val, ok = pathParams["parent"]if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")}- protoReq.Name, err = runtime.String(val)+ protoReq.Parent, err = runtime.String(val)if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)}- msg, err := server.RunPlanChecks(ctx, &protoReq)+ msg, err := server.GetTaskRunLog(ctx, &protoReq)return msg, metadata, err}@@ -923,106 +511,6 @@ func local_request_RolloutService_BatchCancelTaskRuns_0(ctx context.Context, mar// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRolloutServiceHandlerFromEndpoint instead.func RegisterRolloutServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RolloutServiceServer) error {- mux.Handle("GET", pattern_RolloutService_GetPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/GetPlan", runtime.WithHTTPPathPattern("/v1/{name=projects/*/plans/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_RolloutService_GetPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_GetPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_RolloutService_ListPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/ListPlans", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_RolloutService_ListPlans_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_ListPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_RolloutService_CreatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/CreatePlan", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_RolloutService_CreatePlan_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_CreatePlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_RolloutService_UpdatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/UpdatePlan", runtime.WithHTTPPathPattern("/v1/{plan.name=projects/*/plans/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_RolloutService_UpdatePlan_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_UpdatePlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("GET", pattern_RolloutService_GetRollout_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -1148,56 +636,6 @@ func RegisterRolloutServiceHandlerServer(ctx context.Context, mux *runtime.Serve})- mux.Handle("GET", pattern_RolloutService_ListPlanCheckRuns_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/ListPlanCheckRuns", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/plans/*}/planCheckRuns"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_RolloutService_ListPlanCheckRuns_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_ListPlanCheckRuns_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_RolloutService_RunPlanChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/RunPlanChecks", runtime.WithHTTPPathPattern("/v1/{name=projects/*/plans/*}:runPlanChecks"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_RolloutService_RunPlanChecks_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_RunPlanChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("POST", pattern_RolloutService_BatchRunTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -1314,94 +752,6 @@ func RegisterRolloutServiceHandler(ctx context.Context, mux *runtime.ServeMux, c// "RolloutServiceClient" to call the correct interceptors.func RegisterRolloutServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RolloutServiceClient) error {- mux.Handle("GET", pattern_RolloutService_GetPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/GetPlan", runtime.WithHTTPPathPattern("/v1/{name=projects/*/plans/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_RolloutService_GetPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_GetPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("GET", pattern_RolloutService_ListPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/ListPlans", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_RolloutService_ListPlans_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_ListPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_RolloutService_CreatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/CreatePlan", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_RolloutService_CreatePlan_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_CreatePlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("PATCH", pattern_RolloutService_UpdatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/UpdatePlan", runtime.WithHTTPPathPattern("/v1/{plan.name=projects/*/plans/*}"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_RolloutService_UpdatePlan_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_UpdatePlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("GET", pattern_RolloutService_GetRollout_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -1512,50 +862,6 @@ func RegisterRolloutServiceHandlerClient(ctx context.Context, mux *runtime.Serve})- mux.Handle("GET", pattern_RolloutService_ListPlanCheckRuns_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/ListPlanCheckRuns", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/plans/*}/planCheckRuns"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_RolloutService_ListPlanCheckRuns_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_ListPlanCheckRuns_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-- mux.Handle("POST", pattern_RolloutService_RunPlanChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- var err error- var annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/RunPlanChecks", runtime.WithHTTPPathPattern("/v1/{name=projects/*/plans/*}:runPlanChecks"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_RolloutService_RunPlanChecks_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_RolloutService_RunPlanChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-mux.Handle("POST", pattern_RolloutService_BatchRunTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -1626,14 +932,6 @@ func RegisterRolloutServiceHandlerClient(ctx context.Context, mux *runtime.Serve}var (- pattern_RolloutService_GetPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "name"}, ""))-- pattern_RolloutService_ListPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "plans"}, ""))-- pattern_RolloutService_CreatePlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "plans"}, ""))-- pattern_RolloutService_UpdatePlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "plan.name"}, ""))-pattern_RolloutService_GetRollout_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "rollouts", "name"}, ""))pattern_RolloutService_CreateRollout_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "rollouts"}, ""))@@ -1644,10 +942,6 @@ var (pattern_RolloutService_GetTaskRunLog_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 1, 0, 2, 5, 1, 0, 4, 10, 5, 6, 2, 7}, []string{"v1", "projects", "rollouts", "stages", "tasks", "taskRuns", "parent", "log"}, ""))- pattern_RolloutService_ListPlanCheckRuns_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "projects", "plans", "parent", "planCheckRuns"}, ""))-- pattern_RolloutService_RunPlanChecks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "name"}, "runPlanChecks"))-pattern_RolloutService_BatchRunTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "projects", "rollouts", "stages", "parent", "tasks"}, "batchRun"))pattern_RolloutService_BatchSkipTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "projects", "rollouts", "stages", "parent", "tasks"}, "batchSkip"))@@ -1656,14 +950,6 @@ var ()var (- forward_RolloutService_GetPlan_0 = runtime.ForwardResponseMessage-- forward_RolloutService_ListPlans_0 = runtime.ForwardResponseMessage-- forward_RolloutService_CreatePlan_0 = runtime.ForwardResponseMessage-- forward_RolloutService_UpdatePlan_0 = runtime.ForwardResponseMessage-forward_RolloutService_GetRollout_0 = runtime.ForwardResponseMessageforward_RolloutService_CreateRollout_0 = runtime.ForwardResponseMessage@@ -1674,10 +960,6 @@ var (forward_RolloutService_GetTaskRunLog_0 = runtime.ForwardResponseMessage- forward_RolloutService_ListPlanCheckRuns_0 = runtime.ForwardResponseMessage-- forward_RolloutService_RunPlanChecks_0 = runtime.ForwardResponseMessage-forward_RolloutService_BatchRunTasks_0 = runtime.ForwardResponseMessageforward_RolloutService_BatchSkipTasks_0 = runtime.ForwardResponseMessagediff --git a/proto/generated-go/v1/rollout_service_grpc.pb.go b/proto/generated-go/v1/rollout_service_grpc.pb.goindex 3bf48eaa3c..41c50f3352 100644--- a/proto/generated-go/v1/rollout_service_grpc.pb.go+++ b/proto/generated-go/v1/rollout_service_grpc.pb.go@@ -19,17 +19,11 @@ import (const _ = grpc.SupportPackageIsVersion7const (- RolloutService_GetPlan_FullMethodName = "/bytebase.v1.RolloutService/GetPlan"- RolloutService_ListPlans_FullMethodName = "/bytebase.v1.RolloutService/ListPlans"- RolloutService_CreatePlan_FullMethodName = "/bytebase.v1.RolloutService/CreatePlan"- RolloutService_UpdatePlan_FullMethodName = "/bytebase.v1.RolloutService/UpdatePlan"RolloutService_GetRollout_FullMethodName = "/bytebase.v1.RolloutService/GetRollout"RolloutService_CreateRollout_FullMethodName = "/bytebase.v1.RolloutService/CreateRollout"RolloutService_PreviewRollout_FullMethodName = "/bytebase.v1.RolloutService/PreviewRollout"RolloutService_ListTaskRuns_FullMethodName = "/bytebase.v1.RolloutService/ListTaskRuns"RolloutService_GetTaskRunLog_FullMethodName = "/bytebase.v1.RolloutService/GetTaskRunLog"- RolloutService_ListPlanCheckRuns_FullMethodName = "/bytebase.v1.RolloutService/ListPlanCheckRuns"- RolloutService_RunPlanChecks_FullMethodName = "/bytebase.v1.RolloutService/RunPlanChecks"RolloutService_BatchRunTasks_FullMethodName = "/bytebase.v1.RolloutService/BatchRunTasks"RolloutService_BatchSkipTasks_FullMethodName = "/bytebase.v1.RolloutService/BatchSkipTasks"RolloutService_BatchCancelTaskRuns_FullMethodName = "/bytebase.v1.RolloutService/BatchCancelTaskRuns"@@ -39,17 +33,11 @@ const (//// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.type RolloutServiceClient interface {- GetPlan(ctx context.Context, in *GetPlanRequest, opts ...grpc.CallOption) (*Plan, error)- ListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*ListPlansResponse, error)- CreatePlan(ctx context.Context, in *CreatePlanRequest, opts ...grpc.CallOption) (*Plan, error)- UpdatePlan(ctx context.Context, in *UpdatePlanRequest, opts ...grpc.CallOption) (*Plan, error)GetRollout(ctx context.Context, in *GetRolloutRequest, opts ...grpc.CallOption) (*Rollout, error)CreateRollout(ctx context.Context, in *CreateRolloutRequest, opts ...grpc.CallOption) (*Rollout, error)PreviewRollout(ctx context.Context, in *PreviewRolloutRequest, opts ...grpc.CallOption) (*Rollout, error)ListTaskRuns(ctx context.Context, in *ListTaskRunsRequest, opts ...grpc.CallOption) (*ListTaskRunsResponse, error)GetTaskRunLog(ctx context.Context, in *GetTaskRunLogRequest, opts ...grpc.CallOption) (*TaskRunLog, error)- ListPlanCheckRuns(ctx context.Context, in *ListPlanCheckRunsRequest, opts ...grpc.CallOption) (*ListPlanCheckRunsResponse, error)- RunPlanChecks(ctx context.Context, in *RunPlanChecksRequest, opts ...grpc.CallOption) (*RunPlanChecksResponse, error)BatchRunTasks(ctx context.Context, in *BatchRunTasksRequest, opts ...grpc.CallOption) (*BatchRunTasksResponse, error)BatchSkipTasks(ctx context.Context, in *BatchSkipTasksRequest, opts ...grpc.CallOption) (*BatchSkipTasksResponse, error)BatchCancelTaskRuns(ctx context.Context, in *BatchCancelTaskRunsRequest, opts ...grpc.CallOption) (*BatchCancelTaskRunsResponse, error)@@ -63,42 +51,6 @@ func NewRolloutServiceClient(cc grpc.ClientConnInterface) RolloutServiceClient {return &rolloutServiceClient{cc}}-func (c *rolloutServiceClient) GetPlan(ctx context.Context, in *GetPlanRequest, opts ...grpc.CallOption) (*Plan, error) {- out := new(Plan)- err := c.cc.Invoke(ctx, RolloutService_GetPlan_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *rolloutServiceClient) ListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*ListPlansResponse, error) {- out := new(ListPlansResponse)- err := c.cc.Invoke(ctx, RolloutService_ListPlans_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *rolloutServiceClient) CreatePlan(ctx context.Context, in *CreatePlanRequest, opts ...grpc.CallOption) (*Plan, error) {- out := new(Plan)- err := c.cc.Invoke(ctx, RolloutService_CreatePlan_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *rolloutServiceClient) UpdatePlan(ctx context.Context, in *UpdatePlanRequest, opts ...grpc.CallOption) (*Plan, error) {- out := new(Plan)- err := c.cc.Invoke(ctx, RolloutService_UpdatePlan_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}-func (c *rolloutServiceClient) GetRollout(ctx context.Context, in *GetRolloutRequest, opts ...grpc.CallOption) (*Rollout, error) {out := new(Rollout)err := c.cc.Invoke(ctx, RolloutService_GetRollout_FullMethodName, in, out, opts...)@@ -144,24 +96,6 @@ func (c *rolloutServiceClient) GetTaskRunLog(ctx context.Context, in *GetTaskRunreturn out, nil}-func (c *rolloutServiceClient) ListPlanCheckRuns(ctx context.Context, in *ListPlanCheckRunsRequest, opts ...grpc.CallOption) (*ListPlanCheckRunsResponse, error) {- out := new(ListPlanCheckRunsResponse)- err := c.cc.Invoke(ctx, RolloutService_ListPlanCheckRuns_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}--func (c *rolloutServiceClient) RunPlanChecks(ctx context.Context, in *RunPlanChecksRequest, opts ...grpc.CallOption) (*RunPlanChecksResponse, error) {- out := new(RunPlanChecksResponse)- err := c.cc.Invoke(ctx, RolloutService_RunPlanChecks_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}-func (c *rolloutServiceClient) BatchRunTasks(ctx context.Context, in *BatchRunTasksRequest, opts ...grpc.CallOption) (*BatchRunTasksResponse, error) {out := new(BatchRunTasksResponse)err := c.cc.Invoke(ctx, RolloutService_BatchRunTasks_FullMethodName, in, out, opts...)@@ -193,17 +127,11 @@ func (c *rolloutServiceClient) BatchCancelTaskRuns(ctx context.Context, in *Batc// All implementations must embed UnimplementedRolloutServiceServer// for forward compatibilitytype RolloutServiceServer interface {- GetPlan(context.Context, *GetPlanRequest) (*Plan, error)- ListPlans(context.Context, *ListPlansRequest) (*ListPlansResponse, error)- CreatePlan(context.Context, *CreatePlanRequest) (*Plan, error)- UpdatePlan(context.Context, *UpdatePlanRequest) (*Plan, error)GetRollout(context.Context, *GetRolloutRequest) (*Rollout, error)CreateRollout(context.Context, *CreateRolloutRequest) (*Rollout, error)PreviewRollout(context.Context, *PreviewRolloutRequest) (*Rollout, error)ListTaskRuns(context.Context, *ListTaskRunsRequest) (*ListTaskRunsResponse, error)GetTaskRunLog(context.Context, *GetTaskRunLogRequest) (*TaskRunLog, error)- ListPlanCheckRuns(context.Context, *ListPlanCheckRunsRequest) (*ListPlanCheckRunsResponse, error)- RunPlanChecks(context.Context, *RunPlanChecksRequest) (*RunPlanChecksResponse, error)BatchRunTasks(context.Context, *BatchRunTasksRequest) (*BatchRunTasksResponse, error)BatchSkipTasks(context.Context, *BatchSkipTasksRequest) (*BatchSkipTasksResponse, error)BatchCancelTaskRuns(context.Context, *BatchCancelTaskRunsRequest) (*BatchCancelTaskRunsResponse, error)@@ -214,18 +142,6 @@ type RolloutServiceServer interface {type UnimplementedRolloutServiceServer struct {}-func (UnimplementedRolloutServiceServer) GetPlan(context.Context, *GetPlanRequest) (*Plan, error) {- return nil, status.Errorf(codes.Unimplemented, "method GetPlan not implemented")-}-func (UnimplementedRolloutServiceServer) ListPlans(context.Context, *ListPlansRequest) (*ListPlansResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListPlans not implemented")-}-func (UnimplementedRolloutServiceServer) CreatePlan(context.Context, *CreatePlanRequest) (*Plan, error) {- return nil, status.Errorf(codes.Unimplemented, "method CreatePlan not implemented")-}-func (UnimplementedRolloutServiceServer) UpdatePlan(context.Context, *UpdatePlanRequest) (*Plan, error) {- return nil, status.Errorf(codes.Unimplemented, "method UpdatePlan not implemented")-}func (UnimplementedRolloutServiceServer) GetRollout(context.Context, *GetRolloutRequest) (*Rollout, error) {return nil, status.Errorf(codes.Unimplemented, "method GetRollout not implemented")}@@ -241,12 +157,6 @@ func (UnimplementedRolloutServiceServer) ListTaskRuns(context.Context, *ListTaskfunc (UnimplementedRolloutServiceServer) GetTaskRunLog(context.Context, *GetTaskRunLogRequest) (*TaskRunLog, error) {return nil, status.Errorf(codes.Unimplemented, "method GetTaskRunLog not implemented")}-func (UnimplementedRolloutServiceServer) ListPlanCheckRuns(context.Context, *ListPlanCheckRunsRequest) (*ListPlanCheckRunsResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListPlanCheckRuns not implemented")-}-func (UnimplementedRolloutServiceServer) RunPlanChecks(context.Context, *RunPlanChecksRequest) (*RunPlanChecksResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method RunPlanChecks not implemented")-}func (UnimplementedRolloutServiceServer) BatchRunTasks(context.Context, *BatchRunTasksRequest) (*BatchRunTasksResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method BatchRunTasks not implemented")}@@ -269,78 +179,6 @@ func RegisterRolloutServiceServer(s grpc.ServiceRegistrar, srv RolloutServiceSers.RegisterService(&RolloutService_ServiceDesc, srv)}-func _RolloutService_GetPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(GetPlanRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(RolloutServiceServer).GetPlan(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: RolloutService_GetPlan_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(RolloutServiceServer).GetPlan(ctx, req.(*GetPlanRequest))- }- return interceptor(ctx, in, info, handler)-}--func _RolloutService_ListPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListPlansRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(RolloutServiceServer).ListPlans(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: RolloutService_ListPlans_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(RolloutServiceServer).ListPlans(ctx, req.(*ListPlansRequest))- }- return interceptor(ctx, in, info, handler)-}--func _RolloutService_CreatePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(CreatePlanRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(RolloutServiceServer).CreatePlan(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: RolloutService_CreatePlan_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(RolloutServiceServer).CreatePlan(ctx, req.(*CreatePlanRequest))- }- return interceptor(ctx, in, info, handler)-}--func _RolloutService_UpdatePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(UpdatePlanRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(RolloutServiceServer).UpdatePlan(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: RolloutService_UpdatePlan_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(RolloutServiceServer).UpdatePlan(ctx, req.(*UpdatePlanRequest))- }- return interceptor(ctx, in, info, handler)-}-func _RolloutService_GetRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(GetRolloutRequest)if err := dec(in); err != nil {@@ -431,42 +269,6 @@ func _RolloutService_GetTaskRunLog_Handler(srv interface{}, ctx context.Context,return interceptor(ctx, in, info, handler)}-func _RolloutService_ListPlanCheckRuns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListPlanCheckRunsRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(RolloutServiceServer).ListPlanCheckRuns(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: RolloutService_ListPlanCheckRuns_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(RolloutServiceServer).ListPlanCheckRuns(ctx, req.(*ListPlanCheckRunsRequest))- }- return interceptor(ctx, in, info, handler)-}--func _RolloutService_RunPlanChecks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(RunPlanChecksRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(RolloutServiceServer).RunPlanChecks(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: RolloutService_RunPlanChecks_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(RolloutServiceServer).RunPlanChecks(ctx, req.(*RunPlanChecksRequest))- }- return interceptor(ctx, in, info, handler)-}-func _RolloutService_BatchRunTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(BatchRunTasksRequest)if err := dec(in); err != nil {@@ -528,22 +330,6 @@ var RolloutService_ServiceDesc = grpc.ServiceDesc{ServiceName: "bytebase.v1.RolloutService",HandlerType: (*RolloutServiceServer)(nil),Methods: []grpc.MethodDesc{- {- MethodName: "GetPlan",- Handler: _RolloutService_GetPlan_Handler,- },- {- MethodName: "ListPlans",- Handler: _RolloutService_ListPlans_Handler,- },- {- MethodName: "CreatePlan",- Handler: _RolloutService_CreatePlan_Handler,- },- {- MethodName: "UpdatePlan",- Handler: _RolloutService_UpdatePlan_Handler,- },{MethodName: "GetRollout",Handler: _RolloutService_GetRollout_Handler,@@ -564,14 +350,6 @@ var RolloutService_ServiceDesc = grpc.ServiceDesc{MethodName: "GetTaskRunLog",Handler: _RolloutService_GetTaskRunLog_Handler,},- {- MethodName: "ListPlanCheckRuns",- Handler: _RolloutService_ListPlanCheckRuns_Handler,- },- {- MethodName: "RunPlanChecks",- Handler: _RolloutService_RunPlanChecks_Handler,- },{MethodName: "BatchRunTasks",Handler: _RolloutService_BatchRunTasks_Handler,diff --git a/proto/v1/plan_service.proto b/proto/v1/plan_service.protonew file mode 100644index 0000000000..27ef0db0df--- /dev/null+++ b/proto/v1/plan_service.proto@@ -0,0 +1,367 @@+syntax = "proto3";++package bytebase.v1;++import "google/api/annotations.proto";+import "google/api/client.proto";+import "google/api/field_behavior.proto";+import "google/protobuf/field_mask.proto";+import "google/protobuf/timestamp.proto";+import "v1/common.proto";+import "v1/database_service.proto";++option go_package = "generated-go/v1";++service PlanService {+ rpc GetPlan(GetPlanRequest) returns (Plan) {+ option (google.api.http) = {get: "/v1/{name=projects/*/plans/*}"};+ option (google.api.method_signature) = "name";+ }++ rpc ListPlans(ListPlansRequest) returns (ListPlansResponse) {+ option (google.api.http) = {get: "/v1/{parent=projects/*}/plans"};+ option (google.api.method_signature) = "parent";+ }++ rpc CreatePlan(CreatePlanRequest) returns (Plan) {+ option (google.api.http) = {+ post: "/v1/{parent=projects/*}/plans"+ body: "plan"+ };+ option (google.api.method_signature) = "parent,plan";+ }++ rpc UpdatePlan(UpdatePlanRequest) returns (Plan) {+ option (google.api.http) = {+ patch: "/v1/{plan.name=projects/*/plans/*}"+ body: "plan"+ };+ option (google.api.method_signature) = "plan,update_mask";+ }++ rpc ListPlanCheckRuns(ListPlanCheckRunsRequest) returns (ListPlanCheckRunsResponse) {+ option (google.api.http) = {get: "/v1/{parent=projects/*/plans/*}/planCheckRuns"};+ option (google.api.method_signature) = "parent";+ }++ rpc RunPlanChecks(RunPlanChecksRequest) returns (RunPlanChecksResponse) {+ option (google.api.http) = {+ post: "/v1/{name=projects/*/plans/*}:runPlanChecks"+ body: "*"+ };+ option (google.api.method_signature) = "name";+ }+}++message GetPlanRequest {+ // The name of the plan to retrieve.+ // Format: projects/{project}/plans/{plan}+ string name = 1 [(google.api.field_behavior) = REQUIRED];+}++message ListPlansRequest {+ // The parent, which owns this collection of plans.+ // Format: projects/{project}+ // Use "projects/-" to list all plans from all projects.+ string parent = 1 [(google.api.field_behavior) = REQUIRED];++ // The maximum number of plans to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 plans will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ int32 page_size = 2;++ // A page token, received from a previous `ListPlans` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListPlans` must match+ // the call that provided the page token.+ string page_token = 3;+}++message ListPlansResponse {+ // The plans from the specified request.+ repeated Plan plans = 1;++ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ string next_page_token = 2;+}++message CreatePlanRequest {+ // The parent project where this plan will be created.+ // Format: projects/{project}+ string parent = 1 [(google.api.field_behavior) = REQUIRED];++ // The plan to create.+ Plan plan = 2 [(google.api.field_behavior) = REQUIRED];+}++message UpdatePlanRequest {+ // The plan to update.+ //+ // The plan's `name` field is used to identify the plan to update.+ // Format: projects/{project}/plans/{plan}+ Plan plan = 1 [(google.api.field_behavior) = REQUIRED];++ // The list of fields to update.+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];+}++message Plan {+ // The name of the plan.+ // `plan` is a system generated ID.+ // Format: projects/{project}/plans/{plan}+ string name = 1;++ // The system-assigned, unique identifier for a resource.+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];++ // The resource name of the issue associated with this plan.+ // Format: projects/{project}/issues/{issue}+ string issue = 3;++ string title = 4;+ string description = 5;++ repeated Step steps = 6;++ message Step {+ // TODO: implement+ string title = 2;+ repeated Spec specs = 1;+ }++ message Spec {+ // earliest_allowed_time the earliest execution time of the change.+ google.protobuf.Timestamp earliest_allowed_time = 4;+ // A UUID4 string that uniquely identifies the Spec.+ string id = 5;+ // IDs of the specs that this spec depends on.+ // Must be a subset of the specs in the same step.+ repeated string depends_on_specs = 6;++ oneof config {+ CreateDatabaseConfig create_database_config = 1;+ ChangeDatabaseConfig change_database_config = 2;+ ExportDataConfig export_data_config = 7;+ }+ }+ VCSSource vcs_source = 7;++ // Format: users/[email protected]+ string creator = 8 [(google.api.field_behavior) = OUTPUT_ONLY];++ google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];++ message CreateDatabaseConfig {+ // The resource name of the instance on which the database is created.+ // Format: instances/{instance}+ string target = 1 [(google.api.field_behavior) = REQUIRED];+ // The name of the database to create.+ string database = 2 [(google.api.field_behavior) = REQUIRED];+ // table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+ // For example, in MongoDB, it only creates the database when we first store data in that database.+ string table = 3 [(google.api.field_behavior) = OPTIONAL];+ // character_set is the character set of the database.+ string character_set = 4 [(google.api.field_behavior) = OPTIONAL];+ // collation is the collation of the database.+ string collation = 5 [(google.api.field_behavior) = OPTIONAL];+ // cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".+ string cluster = 6 [(google.api.field_behavior) = OPTIONAL];+ // owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".+ string owner = 7 [(google.api.field_behavior) = OPTIONAL];+ // The environment resource.+ // Format: environments/prod where prod is the environment resource ID.+ string environment = 9 [(google.api.field_behavior) = OPTIONAL];+ // labels of the database.+ map<string, string> labels = 10 [(google.api.field_behavior) = OPTIONAL];+ }++ message ChangeDatabaseConfig {+ // The resource name of the target.+ // Format: instances/{instance-id}/databases/{database-name}.+ // Format: projects/{project}/databaseGroups/{databaseGroup}.+ // Format: projects/{project}/deploymentConfigs/default. The plan should+ // have a single step and single spec for the deployment configuration type.+ string target = 1;+ // The resource name of the sheet.+ // Format: projects/{project}/sheets/{sheet}+ string sheet = 2;+ // Type is the database change type.+ enum Type {+ TYPE_UNSPECIFIED = 0;+ // Used for establishing schema baseline, this is used when+ // 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.+ // 2. Had schema drift and need to re-establish the baseline.+ BASELINE = 1;+ // Used for DDL changes including CREATE DATABASE.+ MIGRATE = 2;+ // Used for schema changes via state-based schema migration including CREATE DATABASE.+ MIGRATE_SDL = 3;+ // Used for DDL changes using gh-ost.+ MIGRATE_GHOST = 4;+ // Used for DML change.+ DATA = 6;+ }+ Type type = 3;+ // schema_version is parsed from VCS file name.+ // It is automatically generated in the UI workflow.+ string schema_version = 4;++ // If RollbackEnabled, build the RollbackSheetID of the task after the task is completed.+ bool rollback_enabled = 5;++ message RollbackDetail {+ // rollback_from_task is the task from which the rollback SQL statement is generated for this task.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ string rollback_from_task = 1;+ // rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.+ // Format: projects/{project}/issues/{issue}+ string rollback_from_issue = 2;+ }+ optional RollbackDetail rollback_detail = 6;++ map<string, string> ghost_flags = 7;++ message PreUpdateBackupDetail {+ // The database for keeping the backup data.+ // Format: instances/{instance}/databases/{database}+ string database = 1;+ }+ // If set, a backup of the modified data will be created automatically before any changes are applied.+ optional PreUpdateBackupDetail pre_update_backup_detail = 8;+ }++ message ExportDataConfig {+ // The resource name of the target.+ // Format: instances/{instance-id}/databases/{database-name}+ string target = 1;+ // The resource name of the sheet.+ // Format: projects/{project}/sheets/{sheet}+ string sheet = 2;+ // The format of the exported file.+ ExportFormat format = 3;+ // The zip password provide by users.+ // Leave it empty if no needs to encrypt the zip file.+ optional string password = 4;+ }++ message VCSSource {+ VCSType vcs_type = 1;+ // Optional.+ // If present, we will update the pull request for rollout status.+ // Format: projects/{project-ID}/vcsConnectors/{vcs-connector}+ string vcs_connector = 2;+ string pull_request_url = 3;+ }+}++message ListPlanCheckRunsRequest {+ // The parent, which owns this collection of plan check runs.+ // Format: projects/{project}/plans/{plan}+ string parent = 1 [(google.api.field_behavior) = REQUIRED];++ // The maximum number of plan check runs to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 plans will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ int32 page_size = 2;++ // A page token, received from a previous `ListPlanCheckRuns` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListPlanCheckRuns` must match+ // the call that provided the page token.+ string page_token = 3;+}++message ListPlanCheckRunsResponse {+ // The plan check runs from the specified request.+ repeated PlanCheckRun plan_check_runs = 1;++ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ string next_page_token = 2;+}++message RunPlanChecksRequest {+ // The plan to run plan checks.+ // Format: projects/{project}/plans/{plan}+ string name = 1 [(google.api.field_behavior) = REQUIRED];+}++message RunPlanChecksResponse {}++message PlanCheckRun {+ // Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}+ string name = 1;++ // The system-assigned, unique identifier for a resource.+ string uid = 2;++ enum Type {+ TYPE_UNSPECIFIED = 0;+ DATABASE_STATEMENT_FAKE_ADVISE = 1;+ DATABASE_STATEMENT_COMPATIBILITY = 2;+ DATABASE_STATEMENT_ADVISE = 3;+ DATABASE_STATEMENT_TYPE = 4;+ DATABASE_STATEMENT_SUMMARY_REPORT = 5;+ DATABASE_CONNECT = 6;+ DATABASE_GHOST_SYNC = 7;+ }+ Type type = 3;++ enum Status {+ STATUS_UNSPECIFIED = 0;+ RUNNING = 1;+ DONE = 2;+ FAILED = 3;+ CANCELED = 4;+ }+ Status status = 4;++ // Format: instances/{instance}/databases/{database}+ string target = 5;++ // Format: project/{project}/sheets/{sheet}+ string sheet = 6;++ repeated Result results = 7;+ // error is set if the Status is FAILED.+ string error = 8;++ google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];++ message Result {+ enum Status {+ STATUS_UNSPECIFIED = 0;+ ERROR = 1;+ WARNING = 2;+ SUCCESS = 3;+ }+ Status status = 1;+ string title = 2;+ string content = 3;+ int32 code = 4;++ oneof report {+ SqlSummaryReport sql_summary_report = 5;+ SqlReviewReport sql_review_report = 6;+ }+ message SqlSummaryReport {+ int32 code = 1;+ // statement_types are the types of statements that are found in the sql.+ repeated string statement_types = 2;+ int32 affected_rows = 3;+ ChangedResources changed_resources = 4;+ }+ message SqlReviewReport {+ int32 line = 1;+ int32 column = 2;+ string detail = 3;+ // Code from sql review.+ int32 code = 4;+ }+ }+}diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.protoindex d835c8cb6e..0ce1440eec 100644--- a/proto/v1/rollout_service.proto+++ b/proto/v1/rollout_service.proto@@ -5,40 +5,13 @@ package bytebase.v1;import "google/api/annotations.proto";import "google/api/client.proto";import "google/api/field_behavior.proto";-import "google/protobuf/field_mask.proto";import "google/protobuf/timestamp.proto";import "v1/common.proto";-import "v1/database_service.proto";+import "v1/plan_service.proto";option go_package = "generated-go/v1";service RolloutService {- rpc GetPlan(GetPlanRequest) returns (Plan) {- option (google.api.http) = {get: "/v1/{name=projects/*/plans/*}"};- option (google.api.method_signature) = "name";- }-- rpc ListPlans(ListPlansRequest) returns (ListPlansResponse) {- option (google.api.http) = {get: "/v1/{parent=projects/*}/plans"};- option (google.api.method_signature) = "parent";- }-- rpc CreatePlan(CreatePlanRequest) returns (Plan) {- option (google.api.http) = {- post: "/v1/{parent=projects/*}/plans"- body: "plan"- };- option (google.api.method_signature) = "parent,plan";- }-- rpc UpdatePlan(UpdatePlanRequest) returns (Plan) {- option (google.api.http) = {- patch: "/v1/{plan.name=projects/*/plans/*}"- body: "plan"- };- option (google.api.method_signature) = "plan,update_mask";- }-rpc GetRollout(GetRolloutRequest) returns (Rollout) {option (google.api.http) = {get: "/v1/{name=projects/*/rollouts/*}"};option (google.api.method_signature) = "name";@@ -70,19 +43,6 @@ service RolloutService {option (google.api.method_signature) = "parent";}- rpc ListPlanCheckRuns(ListPlanCheckRunsRequest) returns (ListPlanCheckRunsResponse) {- option (google.api.http) = {get: "/v1/{parent=projects/*/plans/*}/planCheckRuns"};- option (google.api.method_signature) = "parent";- }-- rpc RunPlanChecks(RunPlanChecksRequest) returns (RunPlanChecksResponse) {- option (google.api.http) = {- post: "/v1/{name=projects/*/plans/*}:runPlanChecks"- body: "*"- };- option (google.api.method_signature) = "name";- }-rpc BatchRunTasks(BatchRunTasksRequest) returns (BatchRunTasksResponse) {option (google.api.http) = {post: "/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun",@@ -108,246 +68,6 @@ service RolloutService {}}-message GetPlanRequest {- // The name of the plan to retrieve.- // Format: projects/{project}/plans/{plan}- string name = 1 [(google.api.field_behavior) = REQUIRED];-}--message ListPlansRequest {- // The parent, which owns this collection of plans.- // Format: projects/{project}- // Use "projects/-" to list all plans from all projects.- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- // The maximum number of plans to return. The service may return fewer than- // this value.- // If unspecified, at most 50 plans will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- int32 page_size = 2;-- // A page token, received from a previous `ListPlans` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListPlans` must match- // the call that provided the page token.- string page_token = 3;-}--message ListPlansResponse {- // The plans from the specified request.- repeated Plan plans = 1;-- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- string next_page_token = 2;-}--message CreatePlanRequest {- // The parent project where this plan will be created.- // Format: projects/{project}- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- // The plan to create.- Plan plan = 2 [(google.api.field_behavior) = REQUIRED];-}--message UpdatePlanRequest {- // The plan to update.- //- // The plan's `name` field is used to identify the plan to update.- // Format: projects/{project}/plans/{plan}- Plan plan = 1 [(google.api.field_behavior) = REQUIRED];-- // The list of fields to update.- google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];-}--message Plan {- // The name of the plan.- // `plan` is a system generated ID.- // Format: projects/{project}/plans/{plan}- string name = 1;-- // The system-assigned, unique identifier for a resource.- string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];-- // The resource name of the issue associated with this plan.- // Format: projects/{project}/issues/{issue}- string issue = 3;-- string title = 4;- string description = 5;-- repeated Step steps = 6;-- message Step {- // TODO: implement- string title = 2;- repeated Spec specs = 1;- }-- message Spec {- // earliest_allowed_time the earliest execution time of the change.- google.protobuf.Timestamp earliest_allowed_time = 4;- // A UUID4 string that uniquely identifies the Spec.- string id = 5;- // IDs of the specs that this spec depends on.- // Must be a subset of the specs in the same step.- repeated string depends_on_specs = 6;-- oneof config {- CreateDatabaseConfig create_database_config = 1;- ChangeDatabaseConfig change_database_config = 2;- ExportDataConfig export_data_config = 7;- }- }- VCSSource vcs_source = 7;-- // Format: users/[email protected]- string creator = 8 [(google.api.field_behavior) = OUTPUT_ONLY];-- google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];-- message CreateDatabaseConfig {- // The resource name of the instance on which the database is created.- // Format: instances/{instance}- string target = 1 [(google.api.field_behavior) = REQUIRED];- // The name of the database to create.- string database = 2 [(google.api.field_behavior) = REQUIRED];- // table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.- // For example, in MongoDB, it only creates the database when we first store data in that database.- string table = 3 [(google.api.field_behavior) = OPTIONAL];- // character_set is the character set of the database.- string character_set = 4 [(google.api.field_behavior) = OPTIONAL];- // collation is the collation of the database.- string collation = 5 [(google.api.field_behavior) = OPTIONAL];- // cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".- string cluster = 6 [(google.api.field_behavior) = OPTIONAL];- // owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".- string owner = 7 [(google.api.field_behavior) = OPTIONAL];- // The environment resource.- // Format: environments/prod where prod is the environment resource ID.- string environment = 9 [(google.api.field_behavior) = OPTIONAL];- // labels of the database.- map<string, string> labels = 10 [(google.api.field_behavior) = OPTIONAL];- }-- message ChangeDatabaseConfig {- // The resource name of the target.- // Format: instances/{instance-id}/databases/{database-name}.- // Format: projects/{project}/databaseGroups/{databaseGroup}.- // Format: projects/{project}/deploymentConfigs/default. The plan should- // have a single step and single spec for the deployment configuration type.- string target = 1;- // The resource name of the sheet.- // Format: projects/{project}/sheets/{sheet}- string sheet = 2;- // Type is the database change type.- enum Type {- TYPE_UNSPECIFIED = 0;- // Used for establishing schema baseline, this is used when- // 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.- // 2. Had schema drift and need to re-establish the baseline.- BASELINE = 1;- // Used for DDL changes including CREATE DATABASE.- MIGRATE = 2;- // Used for schema changes via state-based schema migration including CREATE DATABASE.- MIGRATE_SDL = 3;- // Used for DDL changes using gh-ost.- MIGRATE_GHOST = 4;- // Used for DML change.- DATA = 6;- }- Type type = 3;- // schema_version is parsed from VCS file name.- // It is automatically generated in the UI workflow.- string schema_version = 4;-- // If RollbackEnabled, build the RollbackSheetID of the task after the task is completed.- bool rollback_enabled = 5;-- message RollbackDetail {- // rollback_from_task is the task from which the rollback SQL statement is generated for this task.- // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}- string rollback_from_task = 1;- // rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.- // Format: projects/{project}/issues/{issue}- string rollback_from_issue = 2;- }- optional RollbackDetail rollback_detail = 6;-- map<string, string> ghost_flags = 7;-- message PreUpdateBackupDetail {- // The database for keeping the backup data.- // Format: instances/{instance}/databases/{database}- string database = 1;- }- // If set, a backup of the modified data will be created automatically before any changes are applied.- optional PreUpdateBackupDetail pre_update_backup_detail = 8;- }-- message ExportDataConfig {- // The resource name of the target.- // Format: instances/{instance-id}/databases/{database-name}- string target = 1;- // The resource name of the sheet.- // Format: projects/{project}/sheets/{sheet}- string sheet = 2;- // The format of the exported file.- ExportFormat format = 3;- // The zip password provide by users.- // Leave it empty if no needs to encrypt the zip file.- optional string password = 4;- }-- message VCSSource {- VCSType vcs_type = 1;- // Optional.- // If present, we will update the pull request for rollout status.- // Format: projects/{project-ID}/vcsConnectors/{vcs-connector}- string vcs_connector = 2;- string pull_request_url = 3;- }-}--message ListPlanCheckRunsRequest {- // The parent, which owns this collection of plan check runs.- // Format: projects/{project}/plans/{plan}- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- // The maximum number of plan check runs to return. The service may return fewer than- // this value.- // If unspecified, at most 50 plans will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- int32 page_size = 2;-- // A page token, received from a previous `ListPlanCheckRuns` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `ListPlanCheckRuns` must match- // the call that provided the page token.- string page_token = 3;-}--message ListPlanCheckRunsResponse {- // The plan check runs from the specified request.- repeated PlanCheckRun plan_check_runs = 1;-- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- string next_page_token = 2;-}--message RunPlanChecksRequest {- // The plan to run plan checks.- // Format: projects/{project}/plans/{plan}- string name = 1 [(google.api.field_behavior) = REQUIRED];-}--message RunPlanChecksResponse {}-message BatchRunTasksRequest {// The name of the parent of the tasks.// Format: projects/{project}/rollouts/{rollout}/stages/{stage}@@ -388,79 +108,6 @@ message BatchCancelTaskRunsRequest {message BatchCancelTaskRunsResponse {}-message PlanCheckRun {- // Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}- string name = 1;-- // The system-assigned, unique identifier for a resource.- string uid = 2;-- enum Type {- TYPE_UNSPECIFIED = 0;- DATABASE_STATEMENT_FAKE_ADVISE = 1;- DATABASE_STATEMENT_COMPATIBILITY = 2;- DATABASE_STATEMENT_ADVISE = 3;- DATABASE_STATEMENT_TYPE = 4;- DATABASE_STATEMENT_SUMMARY_REPORT = 5;- DATABASE_CONNECT = 6;- DATABASE_GHOST_SYNC = 7;- }- Type type = 3;-- enum Status {- STATUS_UNSPECIFIED = 0;- RUNNING = 1;- DONE = 2;- FAILED = 3;- CANCELED = 4;- }- Status status = 4;-- // Format: instances/{instance}/databases/{database}- string target = 5;-- // Format: project/{project}/sheets/{sheet}- string sheet = 6;-- repeated Result results = 7;- // error is set if the Status is FAILED.- string error = 8;-- google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];-- message Result {- enum Status {- STATUS_UNSPECIFIED = 0;- ERROR = 1;- WARNING = 2;- SUCCESS = 3;- }- Status status = 1;- string title = 2;- string content = 3;- int32 code = 4;-- oneof report {- SqlSummaryReport sql_summary_report = 5;- SqlReviewReport sql_review_report = 6;- }- message SqlSummaryReport {- int32 code = 1;- // statement_types are the types of statements that are found in the sql.- repeated string statement_types = 2;- int32 affected_rows = 3;- ChangedResources changed_resources = 4;- }- message SqlReviewReport {- int32 line = 1;- int32 column = 2;- string detail = 3;- // Code from sql review.- int32 code = 4;- }- }-}-message GetRolloutRequest {// The name of the rollout to retrieve.// Format: projects/{project}/rollouts/{rollout}