Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(frontend): implement part of data export issue (#11377)

boojackbce2e625abfe
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index 01280d857b..cb41b74a6a 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -1181,7 +1181,7 @@ func convertToChangeHistory(h *store.InstanceChangeHistoryMessage) (*v1pb.Change
v1pbHistory.StatementSheet = fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, h.IssueProjectID, common.SheetIDPrefix, *h.SheetID)
}
if h.IssueUID != nil {
- v1pbHistory.Issue = fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, h.IssueProjectID, common.IssuePrefix, *h.IssueUID)
+ v1pbHistory.Issue = fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, h.IssueProjectID, common.IssueNamePrefix, *h.IssueUID)
}
if h.Payload != nil && h.Payload.ChangedResources != nil {
v1pbHistory.ChangedResources = convertToChangedResources(h.Payload.ChangedResources)
diff --git a/backend/api/v1/issue_service.go b/backend/api/v1/issue_service.go
index a149c3c0b1..5246ae8534 100644
--- a/backend/api/v1/issue_service.go
+++ b/backend/api/v1/issue_service.go
@@ -1921,7 +1921,7 @@ func convertToIssue(ctx context.Context, s *store.Store, issue *store.IssueMessa
}
issueV1 := &v1pb.Issue{
- Name: fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, issue.Project.ResourceID, common.IssuePrefix, issue.UID),
+ Name: fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, issue.Project.ResourceID, common.IssueNamePrefix, issue.UID),
Uid: fmt.Sprintf("%d", issue.UID),
Title: issue.Title,
Description: issue.Description,
diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.go
index a6375bd10e..a1f169373d 100644
--- a/backend/api/v1/rollout_service.go
+++ b/backend/api/v1/rollout_service.go
@@ -435,8 +435,12 @@ func (s *RolloutService) ListTaskRuns(ctx context.Context, request *v1pb.ListTas
return nil, status.Errorf(codes.Internal, "failed to list task runs, error: %v", err)
}
+ taskRunsV1, err := convertToTaskRuns(ctx, s.store, s.stateCfg, taskRuns)
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to convert to task runs, error: %v", err)
+ }
return &v1pb.ListTaskRunsResponse{
- TaskRuns: convertToTaskRuns(s.stateCfg, taskRuns),
+ TaskRuns: taskRunsV1,
NextPageToken: "",
}, nil
}
diff --git a/backend/api/v1/rollout_service_converter.go b/backend/api/v1/rollout_service_converter.go
index b4425d270f..d10e55e91f 100644
--- a/backend/api/v1/rollout_service_converter.go
+++ b/backend/api/v1/rollout_service_converter.go
@@ -46,7 +46,7 @@ func convertToPlan(ctx context.Context, s *store.Store, plan *store.PlanMessage)
return nil, errors.Wrapf(err, "failed to get issue by plan uid %d", plan.UID)
}
if issue != nil {
- p.Issue = fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, issue.Project.ResourceID, common.IssuePrefix, issue.UID)
+ p.Issue = fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, issue.Project.ResourceID, common.IssueNamePrefix, issue.UID)
}
return p, nil
}
@@ -419,34 +419,19 @@ func convertToPlanCheckRunResultStatus(status storepb.PlanCheckRunResult_Result_
return v1pb.PlanCheckRun_Result_STATUS_UNSPECIFIED
}
-func convertToTaskRuns(stateCfg *state.State, taskRuns []*store.TaskRunMessage) []*v1pb.TaskRun {
+func convertToTaskRuns(ctx context.Context, s *store.Store, stateCfg *state.State, taskRuns []*store.TaskRunMessage) ([]*v1pb.TaskRun, error) {
var taskRunsV1 []*v1pb.TaskRun
for _, taskRun := range taskRuns {
- taskRunsV1 = append(taskRunsV1, convertToTaskRun(stateCfg, taskRun))
- }
- return taskRunsV1
-}
-
-func convertToTaskRunStatus(status api.TaskRunStatus) v1pb.TaskRun_Status {
- switch status {
- case api.TaskRunUnknown:
- return v1pb.TaskRun_STATUS_UNSPECIFIED
- case api.TaskRunPending:
- return v1pb.TaskRun_PENDING
- case api.TaskRunRunning:
- return v1pb.TaskRun_RUNNING
- case api.TaskRunDone:
- return v1pb.TaskRun_DONE
- case api.TaskRunFailed:
- return v1pb.TaskRun_FAILED
- case api.TaskRunCanceled:
- return v1pb.TaskRun_CANCELED
- default:
- return v1pb.TaskRun_STATUS_UNSPECIFIED
+ taskRunV1, err := convertToTaskRun(ctx, s, stateCfg, taskRun)
+ if err != nil {
+ return nil, errors.Wrapf(err, "failed to convert task run")
+ }
+ taskRunsV1 = append(taskRunsV1, taskRunV1)
}
+ return taskRunsV1, nil
}
-func convertToTaskRun(stateCfg *state.State, taskRun *store.TaskRunMessage) *v1pb.TaskRun {
+func convertToTaskRun(ctx context.Context, s *store.Store, stateCfg *state.State, taskRun *store.TaskRunMessage) (*v1pb.TaskRun, error) {
t := &v1pb.TaskRun{
Name: fmt.Sprintf("%s%s/%s%d/%s%d/%s%d/%s%d", common.ProjectNamePrefix, taskRun.ProjectID, common.RolloutPrefix, taskRun.PipelineUID, common.StagePrefix, taskRun.StageUID, common.TaskPrefix, taskRun.TaskUID, common.TaskRunPrefix, taskRun.ID),
Uid: fmt.Sprintf("%d", taskRun.ID),
@@ -483,7 +468,38 @@ func convertToTaskRun(stateCfg *state.State, taskRun *store.TaskRunMessage) *v1p
}
}
- return t
+ if taskRun.ResultProto.ExportArchiveUid != 0 {
+ t.ExportArchiveStatus = v1pb.TaskRun_EXPORTED
+ exportArchiveUID := int(taskRun.ResultProto.ExportArchiveUid)
+ exportArchive, err := s.GetExportArchive(ctx, &store.FindExportArchiveMessage{UID: &exportArchiveUID})
+ if err != nil {
+ return nil, errors.Wrapf(err, "failed to get export archive")
+ }
+ if exportArchive != nil {
+ t.ExportArchiveStatus = v1pb.TaskRun_READY
+ }
+ }
+
+ return t, nil
+}
+
+func convertToTaskRunStatus(status api.TaskRunStatus) v1pb.TaskRun_Status {
+ switch status {
+ case api.TaskRunUnknown:
+ return v1pb.TaskRun_STATUS_UNSPECIFIED
+ case api.TaskRunPending:
+ return v1pb.TaskRun_PENDING
+ case api.TaskRunRunning:
+ return v1pb.TaskRun_RUNNING
+ case api.TaskRunDone:
+ return v1pb.TaskRun_DONE
+ case api.TaskRunFailed:
+ return v1pb.TaskRun_FAILED
+ case api.TaskRunCanceled:
+ return v1pb.TaskRun_CANCELED
+ default:
+ return v1pb.TaskRun_STATUS_UNSPECIFIED
+ }
}
func convertToRollout(ctx context.Context, s *store.Store, project *store.ProjectMessage, rollout *store.PipelineMessage) (*v1pb.Rollout, error) {
@@ -791,7 +807,7 @@ func convertToTaskFromDataUpdate(ctx context.Context, s *store.Store, project *s
if err != nil {
return nil, errors.Wrapf(err, "failed to get rollback task %q", payload.RollbackFromTaskID)
}
- v1pbTaskPayload.DatabaseDataUpdate.RollbackFromIssue = fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, project.ResourceID, common.IssuePrefix, rollbackFromIssue.UID)
+ v1pbTaskPayload.DatabaseDataUpdate.RollbackFromIssue = fmt.Sprintf("%s%s/%s%d", common.ProjectNamePrefix, project.ResourceID, common.IssueNamePrefix, rollbackFromIssue.UID)
v1pbTaskPayload.DatabaseDataUpdate.RollbackFromTask = fmt.Sprintf("%s%s/%s%d/%s%d/%s%d", common.ProjectNamePrefix, rollbackFromIssue.Project.ResourceID, common.RolloutPrefix, rollbackFromTask.PipelineID, common.StagePrefix, rollbackFromTask.StageID, common.TaskPrefix, rollbackFromTask.ID)
}
diff --git a/backend/api/v1/sql_service.go b/backend/api/v1/sql_service.go
index 80089ca28f..40ce53bc07 100644
--- a/backend/api/v1/sql_service.go
+++ b/backend/api/v1/sql_service.go
@@ -242,6 +242,10 @@ func (s *SQLService) preAdminExecute(ctx context.Context, request *v1pb.AdminExe
// Export exports the SQL query result.
func (s *SQLService) Export(ctx context.Context, request *v1pb.ExportRequest) (*v1pb.ExportResponse, error) {
+ // Prehandle the issue export.
+ if strings.Contains(request.Name, common.IssueNamePrefix) {
+ return s.DataExportIssueExport(ctx, request.Name)
+ }
// Prepare related message.
user, environment, instance, database, err := s.prepareRelatedMessage(ctx, request.Name, request.ConnectionDatabase)
if err != nil {
@@ -334,6 +338,58 @@ func (s *SQLService) Export(ctx context.Context, request *v1pb.ExportRequest) (*
}, nil
}
+func (s *SQLService) DataExportIssueExport(ctx context.Context, issueName string) (*v1pb.ExportResponse, error) {
+ issueUID, err := common.GetIssueID(issueName)
+ if err != nil {
+ return nil, status.Errorf(codes.InvalidArgument, "failed to get issue ID: %v", err)
+ }
+ issue, err := s.store.GetIssueV2(ctx, &store.FindIssueMessage{UID: &issueUID})
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to get issue: %v", err)
+ }
+ if issue.PipelineUID == nil {
+ return nil, status.Errorf(codes.InvalidArgument, "issue %s has no pipeline", issueName)
+ }
+ rollout, err := s.store.GetRollout(ctx, *issue.PipelineUID)
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to get rollout: %v", err)
+ }
+ tasks, err := s.store.ListTasks(ctx, &api.TaskFind{PipelineID: &rollout.ID})
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to get tasks: %v", err)
+ }
+ if len(tasks) != 1 {
+ return nil, status.Errorf(codes.InvalidArgument, "issue %s has unmatched tasks", issueName)
+ }
+ task := tasks[0]
+ taskRuns, err := s.store.ListTaskRunsV2(ctx, &store.FindTaskRunMessage{TaskUID: &task.ID})
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to get task run: %v", err)
+ }
+ if len(taskRuns) == 0 {
+ return nil, status.Errorf(codes.InvalidArgument, "issue %s has no task run", issueName)
+ }
+ taskRun := taskRuns[len(taskRuns)-1]
+ exportArchiveUID := int(taskRun.ResultProto.ExportArchiveUid)
+ if exportArchiveUID == 0 {
+ return nil, status.Errorf(codes.InvalidArgument, "issue %s has no export archive", issueName)
+ }
+ exportArchive, err := s.store.GetExportArchive(ctx, &store.FindExportArchiveMessage{UID: &exportArchiveUID})
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to get export archive: %v", err)
+ }
+ if exportArchive == nil {
+ return nil, status.Errorf(codes.NotFound, "export archive %d not found", exportArchiveUID)
+ }
+ // Delete the export archive after it's fetched.
+ if err := s.store.DeleteExportArchive(ctx, exportArchiveUID); err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to delete export archive: %v", err)
+ }
+ return &v1pb.ExportResponse{
+ Content: exportArchive.Bytes,
+ }, nil
+}
+
// DoExport does the export.
func DoExport(ctx context.Context, storeInstance *store.Store, dbFactory *dbfactory.DBFactory, licenseService enterprise.LicenseService, request *v1pb.ExportRequest, instance *store.InstanceMessage, database *store.DatabaseMessage, spans []*base.QuerySpan) ([]byte, int64, error) {
driver, err := dbFactory.GetReadOnlyDatabaseDriver(ctx, instance, database, "" /* dataSourceID */)
diff --git a/backend/common/resource_name.go b/backend/common/resource_name.go
index 50b3f022db..581095f3fc 100644
--- a/backend/common/resource_name.go
+++ b/backend/common/resource_name.go
@@ -23,7 +23,6 @@ const (
SettingNamePrefix = "settings/"
VCSProviderPrefix = "vcsProviders/"
RiskPrefix = "risks/"
- IssuePrefix = "issues/"
RolloutPrefix = "rollouts/"
StagePrefix = "stages/"
TaskPrefix = "tasks/"
@@ -264,7 +263,7 @@ func GetRiskID(name string) (int64, error) {
// GetProjectIDIssueID returns the project ID and issue ID from the issue name.
func GetProjectIDIssueID(name string) (string, string, error) {
- tokens, err := GetNameParentTokens(name, ProjectNamePrefix, IssuePrefix)
+ tokens, err := GetNameParentTokens(name, ProjectNamePrefix, IssueNamePrefix)
if err != nil {
return "", "", err
}
@@ -273,7 +272,7 @@ func GetProjectIDIssueID(name string) (string, string, error) {
// GetIssueID returns the issue ID from a resource name.
func GetIssueID(name string) (int, error) {
- tokens, err := GetNameParentTokens(name, ProjectNamePrefix, IssuePrefix)
+ tokens, err := GetNameParentTokens(name, ProjectNamePrefix, IssueNamePrefix)
if err != nil {
return 0, err
}
diff --git a/backend/runner/taskrun/data_export_executor.go b/backend/runner/taskrun/data_export_executor.go
index 9e181d136a..fcbfd52dbc 100644
--- a/backend/runner/taskrun/data_export_executor.go
+++ b/backend/runner/taskrun/data_export_executor.go
@@ -143,7 +143,7 @@ func (exec *DataExportExecutor) RunOnce(ctx context.Context, _ context.Context,
}
return true, &storepb.TaskRunResult{
- Detail: fmt.Sprintf("Exported successfully in %v", time.Duration(durationNs).String()),
+ Detail: fmt.Sprintf("Data export succeeded within %v", time.Duration(durationNs).String()),
ExportArchiveUid: int32(exportArchive.UID),
}, nil
}
diff --git a/backend/runner/taskrun/schedulerv2.go b/backend/runner/taskrun/schedulerv2.go
index 447df96285..1b1447d56e 100644
--- a/backend/runner/taskrun/schedulerv2.go
+++ b/backend/runner/taskrun/schedulerv2.go
@@ -645,6 +645,11 @@ func (s *SchedulerV2) ListenTaskSkippedOrDone(ctx context.Context) {
// Every task in the pipeline has finished.
// Resolve the issue.
if err := func() error {
+ // For those database data export issues, we don't resolve them automatically.
+ if issue.Type == api.IssueDatabaseDataExport {
+ return nil
+ }
+
newStatus := api.IssueDone
updatedIssue, err := s.store.UpdateIssueV2(ctx, issue.UID, &store.UpdateIssueMessage{Status: &newStatus}, api.SystemBotID)
if err != nil {
diff --git a/frontend/src/components/IssueV1/DataExportIssueDetailPage.vue b/frontend/src/components/IssueV1/DataExportIssueDetailPage.vue
new file mode 100644
index 0000000000..ae89ab792a
--- /dev/null
+++ b/frontend/src/components/IssueV1/DataExportIssueDetailPage.vue
@@ -0,0 +1,142 @@
+<template>
+ <div ref="containerRef" class="h-full flex flex-col">
+ <div class="border-b">
+ <div class="issue-debug">phase: {{ phase }}</div>
+ <BannerSection v-if="!isCreating" />
+
+ <HeaderSection />
+ </div>
+ <div class="flex-1 flex flex-row">
+ <div
+ class="flex-1 flex flex-col hide-scrollbar divide-y overflow-x-hidden"
+ >
+ <DataExportSection />
+ <TaskRunSection v-if="!isCreating" />
+ <SQLCheckSection v-if="isCreating" />
+ <PlanCheckSection v-if="!isCreating" />
+ <StatementSection />
+ <DescriptionSection />
+ <ActivitySection v-if="!isCreating" />
+ </div>
+
+ <div
+ v-if="sidebarMode == 'DESKTOP'"
+ class="hide-scrollbar border-l"
+ :style="{
+ width: `${desktopSidebarWidth}px`,
+ }"
+ >
+ <Sidebar />
+ </div>
+ </div>
+ </div>
+
+ <template v-if="sidebarMode === 'MOBILE'">
+ <!-- mobile sidebar -->
+ <Drawer :show="mobileSidebarOpen" @close="mobileSidebarOpen = false">
+ <div
+ style="
+ min-width: 240px;
+ width: 80vw;
+ max-width: 320px;
+ padding: 0.5rem 0;
+ "
+ >
+ <Sidebar v-if="sidebarMode === 'MOBILE'" />
+ </div>
+ </Drawer>
+ </template>
+
+ <IssueReviewActionPanel
+ :action="ongoingIssueReviewAction?.action"
+ @close="ongoingIssueReviewAction = undefined"
+ />
+ <IssueStatusActionPanel
+ :action="ongoingIssueStatusAction?.action"
+ @close="ongoingIssueStatusAction = undefined"
+ />
+ <TaskRolloutActionPanel
+ :action="ongoingTaskRolloutAction?.action"
+ :task-list="ongoingTaskRolloutAction?.taskList ?? []"
+ @close="ongoingTaskRolloutAction = undefined"
+ />
+
+ <div class="issue-debug">
+ <pre class="text-xs">{{ JSON.stringify(issue, null, " ") }}</pre>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref } from "vue";
+import type { Task } from "@/types/proto/v1/rollout_service";
+import { provideSQLCheckContext } from "../SQLCheck";
+import { Drawer } from "../v2";
+import {
+ BannerSection,
+ HeaderSection,
+ PlanCheckSection,
+ StatementSection,
+ DescriptionSection,
+ ActivitySection,
+ Sidebar,
+ IssueReviewActionPanel,
+ IssueStatusActionPanel,
+ TaskRolloutActionPanel,
+ SQLCheckSection,
+ DataExportSection,
+ TaskRunSection,
+} from "./components";
+import type {
+ IssueReviewAction,
+ IssueStatusAction,
+ TaskRolloutAction,
+} from "./logic";
+import {
+ provideIssueSidebarContext,
+ useIssueContext,
+ usePollIssue,
+} from "./logic";
+
+const containerRef = ref<HTMLElement>();
+const { isCreating, phase, issue, events } = useIssueContext();
+
+const ongoingIssueReviewAction = ref<{
+ action: IssueReviewAction;
+}>();
+const ongoingIssueStatusAction = ref<{
+ action: IssueStatusAction;
+}>();
+const ongoingTaskRolloutAction = ref<{
+ action: TaskRolloutAction;
+ taskList: Task[];
+}>();
+
+usePollIssue();
+
+events.on("perform-issue-review-action", ({ action }) => {
+ ongoingIssueReviewAction.value = {
+ action,
+ };
+});
+
+events.on("perform-issue-status-action", ({ action }) => {
+ ongoingIssueStatusAction.value = {
+ action,
+ };
+});
+
+events.on("perform-task-rollout-action", async ({ action, tasks }) => {
+ ongoingTaskRolloutAction.value = {
+ action,
+ taskList: tasks,
+ };
+});
+
+provideSQLCheckContext();
+
+const {
+ mode: sidebarMode,
+ desktopSidebarWidth,
+ mobileSidebarOpen,
+} = provideIssueSidebarContext(containerRef);
+</script>
diff --git a/frontend/src/components/IssueV1/IssueDetailPage.vue b/frontend/src/components/IssueV1/IssueDetailPage.vue
index 1c0ab7b981..aaf22cd6ec 100644
--- a/frontend/src/components/IssueV1/IssueDetailPage.vue
+++ b/frontend/src/components/IssueV1/IssueDetailPage.vue
@@ -92,6 +92,7 @@ import {
IssueReviewActionPanel,
IssueStatusActionPanel,
TaskRolloutActionPanel,
+ SQLCheckSection,
} from "./components";
import type {
IssueReviewAction,
diff --git a/frontend/src/components/IssueV1/components/BannerSection.vue b/frontend/src/components/IssueV1/components/BannerSection.vue
index 86ee30432b..2aca84a3f5 100644
--- a/frontend/src/components/IssueV1/components/BannerSection.vue
+++ b/frontend/src/components/IssueV1/components/BannerSection.vue
@@ -55,7 +55,7 @@ import {
Issue_Approver_Status,
} from "@/types/proto/v1/issue_service";
import { Task_Status } from "@/types/proto/v1/rollout_service";
-import { activeTaskInRollout, isDatabaseRelatedIssue } from "@/utils";
+import { activeTaskInRollout, isDatabaseChangeRelatedIssue } from "@/utils";
import {
useIssueContext,
isUnfinishedResolvedTask as checkUnfinishedResolvedTask,
@@ -86,7 +86,7 @@ const showSuccessBanner = computed(() => {
const showPendingRollout = computed(() => {
if (issue.value.status !== IssueStatus.OPEN) return false;
- if (!isDatabaseRelatedIssue(issue.value)) {
+ if (!isDatabaseChangeRelatedIssue(issue.value)) {
return false;
}
@@ -96,7 +96,7 @@ const showPendingRollout = computed(() => {
const showEarliestAllowedTimeBanner = computed(() => {
if (issue.value.status !== IssueStatus.OPEN) return false;
- if (!isDatabaseRelatedIssue(issue.value)) {
+ if (!isDatabaseChangeRelatedIssue(issue.value)) {
return false;
}
diff --git a/frontend/src/components/IssueV1/components/DataExportSection/DataExportSection.vue b/frontend/src/components/IssueV1/components/DataExportSection/DataExportSection.vue
new file mode 100644
index 0000000000..b6d721ede9
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/DataExportSection/DataExportSection.vue
@@ -0,0 +1,53 @@
+<template>
+ <div class="w-full flex flex-col divide-y">
+ <template v-if="stageList.length > 0">
+ <div class="w-full flex flex-row items-center py-2 px-2 sm:px-4">
+ <span class="textlabel mr-4">{{ $t("common.database") }}</span>
+ <DatabaseInfo />
+ </div>
+ <div class="w-full py-2 px-2 sm:px-4">
+ <ExportOptionSection />
+ </div>
+ </template>
+ <template v-else>
+ <NoPermissionPlaceholder
+ v-if="placeholder === 'PERMISSION_DENIED'"
+ class="!border-0"
+ />
+ <NoDataPlaceholder v-else class="!border-0" />
+ </template>
+ </div>
+</template>
+
+<script lang="ts" setup>
+import { computed } from "vue";
+import { useIssueContext } from "@/components/IssueV1/logic";
+import NoDataPlaceholder from "@/components/misc/NoDataPlaceholder.vue";
+import NoPermissionPlaceholder from "@/components/misc/NoPermissionPlaceholder.vue";
+import { useCurrentUserV1 } from "@/store";
+import { hasProjectPermissionV2 } from "@/utils";
+import DatabaseInfo from "./DatabaseInfo.vue";
+import ExportOptionSection from "./ExportOptionSection";
+
+const { isCreating, issue } = useIssueContext();
+const me = useCurrentUserV1();
+
+// For database data export issue, the stageList should always be only 1 stage.
+const stageList = computed(() => {
+ return issue.value.rolloutEntity.stages;
+});
+
+const placeholder = computed(() => {
+ if (
+ isCreating.value &&
+ !hasProjectPermissionV2(
+ issue.value.projectEntity,
+ me.value,
+ "bb.rollouts.preview"
+ )
+ ) {
+ return "PERMISSION_DENIED";
+ }
+ return "NO_DATA";
+});
+</script>
diff --git a/frontend/src/components/IssueV1/components/DataExportSection/DatabaseInfo.vue b/frontend/src/components/IssueV1/components/DataExportSection/DatabaseInfo.vue
new file mode 100644
index 0000000000..fad281a84b
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/DataExportSection/DatabaseInfo.vue
@@ -0,0 +1,86 @@
+<template>
+ <div class="flex items-center flex-wrap gap-1">
+ <InstanceV1Name
+ :instance="coreDatabaseInfo.instanceEntity"
+ :plain="true"
+ :link="link"
+ >
+ <template
+ v-if="
+ database &&
+ database.instanceEntity.environment !== database.effectiveEnvironment
+ "
+ #prefix
+ >
+ <EnvironmentV1Name
+ :environment="database.instanceEntity.environmentEntity"
+ :plain="true"
+ :show-icon="false"
+ :link="link"
+ text-class="text-control-light"
+ />
+ </template>
+ </InstanceV1Name>
+
+ <heroicons-outline:chevron-right class="text-control-light" />
+
+ <div class="flex items-center gap-x-1">
+ <heroicons-outline:database />
+
+ <EnvironmentV1Name
+ :environment="coreDatabaseInfo.effectiveEnvironmentEntity"
+ :plain="true"
+ :show-icon="false"
+ :link="link"
+ text-class="text-control-light"
+ />
+
+ <DatabaseV1Name
+ :database="coreDatabaseInfo"
+ :plain="true"
+ :link="link"
+ :show-not-found="true"
+ />
+
+ <SQLEditorButtonV1 v-if="showSQLEditorButton" :database="database" />
+ </div>
+ </div>
+</template>
+
+<script lang="ts" setup>
+import { computedAsync } from "@vueuse/core";
+import { computed } from "vue";
+import { SQLEditorButtonV1 } from "@/components/DatabaseDetail";
+import { databaseForTask, useIssueContext } from "@/components/IssueV1/logic";
+import { DatabaseV1Name, InstanceV1Name } from "@/components/v2";
+import { usePageMode } from "@/store";
+import { UNKNOWN_ID } from "@/types";
+
+withDefaults(
+ defineProps<{
+ link?: boolean;
+ }>(),
+ {
+ link: true,
+ }
+);
+
+const { issue, selectedTask } = useIssueContext();
+const pageMode = usePageMode();
+
+const coreDatabaseInfo = computed(() => {
+ return databaseForTask(issue.value, selectedTask.value);
+});
+
+const database = computedAsync(async () => {
+ const maybeExistedDatabase = coreDatabaseInfo.value;
+ if (maybeExistedDatabase.uid !== String(UNKNOWN_ID)) {
+ return maybeExistedDatabase;
+ }
+ return undefined;
+}, undefined);
+
+const showSQLEditorButton = computed(() => {
+ return pageMode.value === "BUNDLED" && database.value;
+});
+</script>
diff --git a/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportFormatSelector.vue b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportFormatSelector.vue
new file mode 100644
index 0000000000..8bfe96b7e6
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportFormatSelector.vue
@@ -0,0 +1,47 @@
+<template>
+ <NRadioGroup v-if="isCreating" :value="format" @update:value="handleUpdate">
+ <NRadio
+ v-for="formatItem in availableExportFormats"
+ :key="formatItem"
+ :value="formatItem"
+ :label="exportFormatToJSON(formatItem)"
+ />
+ </NRadioGroup>
+ <template v-else>
+ <span class="text-base">{{ exportFormatToJSON(format) }}</span>
+ </template>
+</template>
+
+<script setup lang="ts">
+import { NRadioGroup, NRadio } from "naive-ui";
+import { computed } from "vue";
+import { onMounted } from "vue";
+import { useIssueContext } from "@/components/IssueV1";
+import { ExportFormat, exportFormatToJSON } from "@/types/proto/v1/common";
+
+const props = defineProps<{
+ format: ExportFormat;
+}>();
+
+const emit = defineEmits<{
+ (event: "update:format", value: ExportFormat): void;
+}>();
+
+const { isCreating } = useIssueContext();
+const availableExportFormats = computed(() => [
+ ExportFormat.JSON,
+ ExportFormat.CSV,
+ ExportFormat.SQL,
+ ExportFormat.XLSX,
+]);
+
+const handleUpdate = (value: ExportFormat) => {
+ emit("update:format", value);
+};
+
+onMounted(() => {
+ if (!availableExportFormats.value.includes(props.format)) {
+ handleUpdate(availableExportFormats.value[0]);
+ }
+});
+</script>
diff --git a/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportOptionSection.vue b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportOptionSection.vue
new file mode 100644
index 0000000000..e67bd3033a
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportOptionSection.vue
@@ -0,0 +1,59 @@
+<template>
+ <div class="w-full flex flex-col">
+ <div class="w-full flex flex-row items-center mb-1">
+ <span class="textlabel mr-4">{{ $t("issue.data-export.options") }}</span>
+ </div>
+ <div class="w-full h-8 flex flex-row justify-start items-center">
+ <span class="textinfolabel inline-block mr-2 !min-w-[64px]">{{
+ $t("issue.data-export.format")
+ }}</span>
+ <ExportFormatSelector v-model:format="state.config.format" />
+ </div>
+ <div class="w-full h-8 flex flex-row justify-start items-center">
+ <span class="textinfolabel inline-block mr-2 !min-w-[64px]">{{
+ $t("issue.data-export.encrypt")
+ }}</span>
+ <ExportPasswordInputer v-model:password="state.config.password" />
+ </div>
+ </div>
+</template>
+
+<script lang="ts" setup>
+import { head } from "lodash-es";
+import { computed, watch, reactive } from "vue";
+import { useIssueContext } from "@/components/IssueV1/logic";
+import {
+ Plan_Spec,
+ Plan_ExportDataConfig,
+} from "@/types/proto/v1/rollout_service";
+import ExportFormatSelector from "./ExportFormatSelector.vue";
+import ExportPasswordInputer from "./ExportPasswordInputer.vue";
+
+interface LocalState {
+ config: Plan_ExportDataConfig;
+}
+
+const { issue } = useIssueContext();
+
+const spec = computed(
+ () =>
+ head(issue.value.planEntity?.steps.flatMap((step) => step.specs)) ||
+ Plan_Spec.fromPartial({})
+);
+
+const state = reactive<LocalState>({
+ config: spec.value.exportDataConfig || Plan_ExportDataConfig.fromPartial({}),
+});
+
+watch(
+ () => state.config,
+ () => {
+ spec.value.exportDataConfig = Plan_ExportDataConfig.fromPartial({
+ ...spec.value.exportDataConfig,
+ format: state.config.format,
+ password: state.config.password,
+ });
+ },
+ { deep: true }
+);
+</script>
diff --git a/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportPasswordInputer.vue b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportPasswordInputer.vue
new file mode 100644
index 0000000000..b7f45c36cc
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/ExportPasswordInputer.vue
@@ -0,0 +1,58 @@
+<template>
+ <NSwitch
+ v-model:value="state.encryptEnabled"
+ :disabled="!isCreating"
+ size="small"
+ />
+ <tempalte v-if="isCreating && state.encryptEnabled">
+ <span class="textinfolabel pl-4 pr-2"
+ >{{ $t("common.password") }}
+ <RequiredStar />
+ </span>
+ <NInput
+ v-model:value="state.password"
+ class="!w-auto"
+ size="small"
+ type="password"
+ :placeholder="$t('common.password')"
+ />
+ </tempalte>
+</template>
+
+<script setup lang="ts">
+import { NSwitch, NInput } from "naive-ui";
+import { reactive, watch } from "vue";
+import { useIssueContext } from "@/components/IssueV1";
+import RequiredStar from "@/components/RequiredStar.vue";
+
+interface LocalState {
+ encryptEnabled: boolean;
+ password: string;
+}
+
+const props = defineProps<{
+ password?: string;
+}>();
+
+const emit = defineEmits<{
+ (event: "update:password", value: string): void;
+}>();
+
+const { isCreating } = useIssueContext();
+const state = reactive<LocalState>({
+ encryptEnabled: Boolean(props.password),
+ password: props.password || "",
+});
+
+watch(
+ () => state,
+ () => {
+ if (!state.encryptEnabled) {
+ emit("update:password", "");
+ } else {
+ emit("update:password", state.password);
+ }
+ },
+ { deep: true }
+);
+</script>
diff --git a/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/index.ts b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/index.ts
new file mode 100644
index 0000000000..8df7a2ff74
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/DataExportSection/ExportOptionSection/index.ts
@@ -0,0 +1,3 @@
+import ExportOptionSection from "./ExportOptionSection.vue";
+
+export default ExportOptionSection;
diff --git a/frontend/src/components/IssueV1/components/DataExportSection/index.ts b/frontend/src/components/IssueV1/components/DataExportSection/index.ts
new file mode 100644
index 0000000000..d3df01c753
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/DataExportSection/index.ts
@@ -0,0 +1,3 @@
+import DataExportSection from "./DataExportSection.vue";
+
+export default DataExportSection;
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/Actions.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/Actions.vue
index 634af67d2b..3ff9bc74aa 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/Actions.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/Actions.vue
@@ -2,8 +2,6 @@
<div class="flex flex-col items-end">
<CreateButton v-if="actionType === 'CREATE'" />
- <ExportCenterButton v-if="actionType === 'EXPORT-CENTER'" />
-
<TinySQLEditorButton v-if="actionType === 'SQL-EDITOR'" />
<IssueReviewButtonGroup v-if="actionType === 'REVIEW'" />
@@ -19,19 +17,13 @@ import { useCurrentUserV1 } from "@/store";
import { PresetRoleType } from "@/types";
import { IssueStatus } from "@/types/proto/v1/issue_service";
import { isGrantRequestIssue } from "@/utils";
-import { convertFromCELString } from "@/utils/issue/cel";
import { useIssueContext } from "../../../logic";
import { CreateButton } from "./create";
-import { ExportCenterButton, TinySQLEditorButton } from "./request";
+import { TinySQLEditorButton } from "./request";
import { IssueReviewButtonGroup } from "./review";
import { CombinedRolloutButtonGroup } from "./rollout";
-type ActionType =
- | "CREATE"
- | "EXPORT-CENTER"
- | "SQL-EDITOR"
- | "REVIEW"
- | "ROLLOUT";
+type ActionType = "CREATE" | "SQL-EDITOR" | "REVIEW" | "ROLLOUT";
const currentUser = useCurrentUserV1();
const { isCreating, issue, reviewContext } = useIssueContext();
@@ -52,15 +44,6 @@ const actionType = asyncComputed(async (): Promise<ActionType | undefined> => {
if (isGrantRequestIssue(issue.value)) {
if (isFinishedGrantRequestIssueByCurrentUser.value) {
const role = issue.value.grantRequest?.role;
- if (role === PresetRoleType.PROJECT_EXPORTER) {
- // Show the export button only when the grant request condition is based on the statement.
- const expr = await convertFromCELString(
- issue.value.grantRequest?.condition?.expression ?? ""
- );
- if (expr.statement) {
- return "EXPORT-CENTER";
- }
- }
if (role === PresetRoleType.PROJECT_QUERIER) {
return "SQL-EDITOR";
}
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/common/IssueExtraActionButtonGroup.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/common/IssueExtraActionButtonGroup.vue
new file mode 100644
index 0000000000..da41494192
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/common/IssueExtraActionButtonGroup.vue
@@ -0,0 +1,45 @@
+<template>
+ <div v-if="show" class="flex items-center gap-x-2">
+ <ExportArchiveDownloadButton v-if="shouldShowExportArchiveDownloadButton" />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed } from "vue";
+import {
+ PrimaryTaskRolloutActionList,
+ getApplicableTaskRolloutActionList,
+ useIssueContext,
+} from "@/components/IssueV1/logic";
+import { useCurrentUserV1 } from "@/store";
+import { userNamePrefix } from "@/store/modules/v1/common";
+import { IssueStatus } from "@/types/proto/v1/issue_service";
+import { isDatabaseDataExportIssue } from "@/utils";
+import { ExportArchiveDownloadButton } from "../request";
+
+const currentUser = useCurrentUserV1();
+const { issue, activeTask } = useIssueContext();
+
+const taskRolloutActionList = computed(() => {
+ return getApplicableTaskRolloutActionList(issue.value, activeTask.value);
+});
+
+const primaryTaskRolloutActionList = computed(() => {
+ return taskRolloutActionList.value.filter((action) =>
+ PrimaryTaskRolloutActionList.includes(action)
+ );
+});
+
+const shouldShowExportArchiveDownloadButton = computed(() => {
+ return (
+ [IssueStatus.OPEN, IssueStatus.DONE].includes(issue.value.status) &&
+ primaryTaskRolloutActionList.value.length == 0 &&
+ issue.value.creator === `${userNamePrefix}${currentUser.value.email}` &&
+ isDatabaseDataExportIssue(issue.value)
+ );
+});
+
+const show = computed(() => {
+ return shouldShowExportArchiveDownloadButton.value;
+});
+</script>
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/common/index.ts b/frontend/src/components/IssueV1/components/HeaderSection/Actions/common/index.ts
index 0f556f0e6a..260d03e16d 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/common/index.ts
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/common/index.ts
@@ -1,4 +1,5 @@
+import IssueExtraActionButtonGroup from "./IssueExtraActionButtonGroup.vue";
import IssueStatusActionButtonGroup from "./IssueStatusActionButtonGroup";
export * from "./types";
-export { IssueStatusActionButtonGroup };
+export { IssueExtraActionButtonGroup, IssueStatusActionButtonGroup };
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
index 1d509301a2..d1f6007af7 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue
@@ -50,7 +50,8 @@ 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_ChangeDatabaseConfig } from "@/types/proto/v1/rollout_service";
+import type { Plan_ExportDataConfig } from "@/types/proto/v1/rollout_service";
+import { type Plan_ChangeDatabaseConfig } from "@/types/proto/v1/rollout_service";
import type { Sheet } from "@/types/proto/v1/sheet_service";
import {
extractDeploymentConfigName,
@@ -158,12 +159,15 @@ const createSheets = async () => {
return step.specs;
});
- const configWithSheetList: Plan_ChangeDatabaseConfig[] = [];
+ const configWithSheetList: (
+ | Plan_ChangeDatabaseConfig
+ | Plan_ExportDataConfig
+ )[] = [];
const pendingCreateSheetMap = new Map<string, Sheet>();
for (let i = 0; i < flattenSpecList.length; i++) {
const spec = flattenSpecList[i];
- const config = spec.changeDatabaseConfig;
+ const config = spec.changeDatabaseConfig || spec.exportDataConfig;
if (!config) continue;
configWithSheetList.push(config);
if (pendingCreateSheetMap.has(config.sheet)) continue;
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue
new file mode 100644
index 0000000000..4a0ef0805e
--- /dev/null
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue
@@ -0,0 +1,110 @@
+<template>
+ <NButton
+ v-if="taskRun?.exportArchiveStatus === TaskRun_ExportArchiveStatus.READY"
+ type="primary"
+ :loading="state.isExporting"
+ @click="downloadExportArchive"
+ >
+ <template #icon>
+ <DownloadIcon class="w-5 h-5" />
+ </template>
+ {{ $t("common.download") }}
+ </NButton>
+ <div
+ v-else-if="
+ taskRun?.exportArchiveStatus === TaskRun_ExportArchiveStatus.EXPORTED
+ "
+ class="flex flex-row items-center gap-2 text-sm textlabel !leading-8"
+ >
+ <CircleCheckBigIcon class="w-5 h-auto" />
+ {{ $t("issue.data-export.exported-file-downloaded") }}
+ </div>
+</template>
+
+<script setup lang="ts">
+import dayjs from "dayjs";
+import { head, last } from "lodash-es";
+import { DownloadIcon, CircleCheckBigIcon } from "lucide-vue-next";
+import { NButton } from "naive-ui";
+import { computed, reactive } from "vue";
+import { useIssueContext } from "@/components/IssueV1";
+import { issueServiceClient } from "@/grpcweb";
+import { useSQLStore } from "@/store";
+import { ExportFormat, exportFormatToJSON } from "@/types/proto/v1/common";
+import { IssueStatus } from "@/types/proto/v1/issue_service";
+import {
+ Plan_ExportDataConfig,
+ Plan_Spec,
+ TaskRun_ExportArchiveStatus,
+} from "@/types/proto/v1/rollout_service";
+import { ExportRequest } from "@/types/proto/v1/sql_service";
+
+interface LocalState {
+ isExporting: boolean;
+}
+
+const { issue, events } = useIssueContext();
+const state = reactive<LocalState>({
+ isExporting: false,
+});
+
+const taskRun = computed(() => {
+ return last(issue.value.rolloutTaskRunList);
+});
+
+const exportDataConfig = computed(() => {
+ return (
+ (
+ head(issue.value.planEntity?.steps.flatMap((step) => step.specs)) ||
+ Plan_Spec.fromPartial({})
+ ).exportDataConfig || Plan_ExportDataConfig.fromPartial({})
+ );
+});
+
+const downloadExportArchive = async () => {
+ state.isExporting = true;
+ const { content } = await useSQLStore().exportData(
+ ExportRequest.fromPartial({
+ name: issue.value.name,
+ })
+ );
+ const fileType = getExportFileType(exportDataConfig.value);
+ const blob = new Blob([content], {
+ type: fileType,
+ });
+ const url = window.URL.createObjectURL(blob);
+ const fileFormat = exportFormatToJSON(
+ exportDataConfig.value.format
+ ).toLowerCase();
+ const formattedDateString = dayjs(new Date()).format("YYYY-MM-DDTHH-mm-ss");
+ const filename = `export-data-${formattedDateString}`;
+ const link = document.createElement("a");
+ const isZip = exportDataConfig.value.password;
+ link.download = `${filename}.${isZip ? "zip" : fileFormat}`;
+ link.href = url;
+ link.click();
+ await issueServiceClient.batchUpdateIssuesStatus({
+ parent: issue.value.project,
+ issues: [issue.value.name],
+ status: IssueStatus.DONE,
+ });
+ events.emit("status-changed", { eager: true });
+ state.isExporting = false;
+};
+
+const getExportFileType = (exportDataConfig: Plan_ExportDataConfig) => {
+ if (exportDataConfig.password) {
+ return "application/zip";
+ }
+ switch (exportDataConfig.format) {
+ case ExportFormat.CSV:
+ return "text/csv";
+ case ExportFormat.JSON:
+ return "application/json";
+ case ExportFormat.SQL:
+ return "application/sql";
+ case ExportFormat.XLSX:
+ return "application/vnd.ms-excel";
+ }
+};
+</script>
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/index.ts b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/index.ts
index abb4ca2493..45d839284e 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/index.ts
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/index.ts
@@ -1,4 +1,5 @@
+import ExportArchiveDownloadButton from "./ExportArchiveDownloadButton.vue";
import ExportCenterButton from "./ExportCenterButton.vue";
import TinySQLEditorButton from "./TinySQLEditorButton.vue";
-export { TinySQLEditorButton, ExportCenterButton };
+export { TinySQLEditorButton, ExportCenterButton, ExportArchiveDownloadButton };
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/CombinedRolloutButtonGroup.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/CombinedRolloutButtonGroup.vue
index ca98fc1cd8..bfc9a14fdb 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/CombinedRolloutButtonGroup.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/CombinedRolloutButtonGroup.vue
@@ -1,5 +1,7 @@
<template>
<div class="flex gap-x-3">
+ <IssueExtraActionButtonGroup v-if="shouldShowExtraActionButtonGroup" />
+
<RolloutActionButtonGroup
v-if="primaryTaskRolloutActionList.length > 0"
:task-rollout-action-list="primaryTaskRolloutActionList"
@@ -11,7 +13,10 @@
<IssueStatusActionButtonGroup
:display-mode="
- primaryTaskRolloutActionList.length > 0 ? 'DROPDOWN' : 'BUTTON'
+ shouldShowExtraActionButtonGroup ||
+ primaryTaskRolloutActionList.length > 0
+ ? 'DROPDOWN'
+ : 'BUTTON'
"
:issue-status-action-list="issueStatusActionList"
:extra-action-list="extraActionList"
@@ -48,8 +53,12 @@ import {
} from "@/components/IssueV1/logic";
import { useCurrentUserV1 } from "@/store";
import type { Task } from "@/types/proto/v1/rollout_service";
+import { isDatabaseDataExportIssue } from "@/utils";
import type { ExtraActionOption } from "../common";
-import { IssueStatusActionButtonGroup } from "../common";
+import {
+ IssueStatusActionButtonGroup,
+ IssueExtraActionButtonGroup,
+} from "../common";
import RolloutActionButtonGroup from "./RolloutActionButtonGroup.vue";
import type { RolloutAction } from "./common";
@@ -117,6 +126,10 @@ const extraActionList = computed(() => {
return list;
});
+const shouldShowExtraActionButtonGroup = computed(() => {
+ return isDatabaseDataExportIssue(issue.value);
+});
+
const performRolloutAction = async (params: RolloutAction) => {
const { action, target } = params;
if (target === "TASK") {
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/HeaderSection.vue b/frontend/src/components/IssueV1/components/HeaderSection/HeaderSection.vue
index 62d8fd589e..39b1561bf9 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/HeaderSection.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/HeaderSection.vue
@@ -35,7 +35,7 @@ import { MenuIcon } from "lucide-vue-next";
import { NButton } from "naive-ui";
import { computed } from "vue";
import { Task_Status } from "@/types/proto/v1/rollout_service";
-import { activeTaskInRollout, isDatabaseRelatedIssue } from "@/utils";
+import { activeTaskInRollout, isDatabaseChangeRelatedIssue } from "@/utils";
import { useIssueContext, useIssueSidebarContext } from "../../logic";
import IssueStatusIcon from "../IssueStatusIcon.vue";
import Actions from "./Actions";
@@ -45,7 +45,7 @@ const { isCreating, issue } = useIssueContext();
const issueTaskStatus = computed(() => {
// For grant request issue, we always show the status as "NOT_STARTED" as task status.
- if (!isDatabaseRelatedIssue(issue.value)) {
+ if (!isDatabaseChangeRelatedIssue(issue.value)) {
return Task_Status.NOT_STARTED;
}
diff --git a/frontend/src/components/IssueV1/components/Sidebar/Assignee/Assignee.vue b/frontend/src/components/IssueV1/components/Sidebar/Assignee/Assignee.vue
index b7877b83ea..d1b127acbc 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/Assignee/Assignee.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/Assignee/Assignee.vue
@@ -74,7 +74,7 @@ import {
extractUserResourceName,
extractUserUID,
hasProjectPermissionV2,
- isDatabaseRelatedIssue,
+ isDatabaseChangeRelatedIssue,
} from "@/utils";
const { t } = useI18n();
@@ -89,7 +89,7 @@ const shouldShowAssignee = computed(() => {
return (
!isCreating.value &&
pageMode.value === "BUNDLED" &&
- isDatabaseRelatedIssue(issue.value)
+ isDatabaseChangeRelatedIssue(issue.value)
);
});
diff --git a/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue b/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue
index c4d195692e..ba92637de2 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/EarliestAllowedTime.vue
@@ -80,7 +80,7 @@ import {
import {
extractUserResourceName,
hasProjectPermissionV2,
- isDatabaseRelatedIssue,
+ isDatabaseChangeRelatedIssue,
} from "@/utils";
dayjs.extend(isSameOrAfter);
@@ -92,7 +92,7 @@ const isUpdating = ref(false);
const showFeatureModal = ref(false);
const shouldShowEarliestAllowedTime = computed(() => {
- if (!isDatabaseRelatedIssue(issue.value)) {
+ if (!isDatabaseChangeRelatedIssue(issue.value)) {
return false;
}
if (isDeploymentConfigChangeTaskV1(issue.value, selectedTask.value)) {
diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
index af1957dd01..3e57b6c89e 100644
--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
@@ -255,6 +255,8 @@ import {
sheetNameOfTaskV1,
useInstanceV1EditorLanguage,
getStatementSize,
+ isDatabaseChangeRelatedIssue,
+ isDatabaseDataExportIssue,
} from "@/utils";
import { readFileAsync } from "@/utils";
import { useSQLAdviceMarkers } from "../useSQLAdviceMarkers";
@@ -681,7 +683,12 @@ const updateStatement = async (statement: string) => {
for (let i = 0; i < specsToPatch.length; i++) {
const spec = specsToPatch[i];
- const config = spec.changeDatabaseConfig;
+ let config = undefined;
+ if (isDatabaseChangeRelatedIssue(issue.value)) {
+ config = spec.changeDatabaseConfig;
+ } else if (isDatabaseDataExportIssue(issue.value)) {
+ config = spec.exportDataConfig;
+ }
if (!config) continue;
config.sheet = createdSheet.name;
}
diff --git a/frontend/src/components/IssueV1/components/index.ts b/frontend/src/components/IssueV1/components/index.ts
index b39c405b8d..3295cd7692 100644
--- a/frontend/src/components/IssueV1/components/index.ts
+++ b/frontend/src/components/IssueV1/components/index.ts
@@ -1,9 +1,11 @@
import ActivitySection from "./ActivitySection";
import BannerSection from "./BannerSection.vue";
+import DataExportSection from "./DataExportSection";
import DescriptionSection from "./DescriptionSection";
import HeaderSection from "./HeaderSection";
import IssueSearch from "./IssueSearch";
import PlanCheckSection from "./PlanCheckSection";
+import SQLCheckSection from "./SQLCheckSection";
import Sidebar from "./Sidebar";
import StageSection from "./StageSection";
import StatementSection from "./StatementSection";
@@ -24,4 +26,6 @@ export {
ActivitySection,
IssueSearch,
Sidebar,
+ SQLCheckSection,
+ DataExportSection,
};
diff --git a/frontend/src/components/IssueV1/index.ts b/frontend/src/components/IssueV1/index.ts
index 5607abf290..bb7d726538 100644
--- a/frontend/src/components/IssueV1/index.ts
+++ b/frontend/src/components/IssueV1/index.ts
@@ -1,6 +1,11 @@
+import DataExportIssueDetailPage from "./DataExportIssueDetailPage.vue";
import GrantRequestIssueDetailPage from "./GrantRequestIssueDetailPage.vue";
import IssueDetailPage from "./IssueDetailPage.vue";
export * from "./logic";
-export { IssueDetailPage, GrantRequestIssueDetailPage };
+export {
+ DataExportIssueDetailPage,
+ IssueDetailPage,
+ GrantRequestIssueDetailPage,
+};
diff --git a/frontend/src/components/IssueV1/logic/action/issue.ts b/frontend/src/components/IssueV1/logic/action/issue.ts
index 121b6cdcfe..4ec0bd6971 100644
--- a/frontend/src/components/IssueV1/logic/action/issue.ts
+++ b/frontend/src/components/IssueV1/logic/action/issue.ts
@@ -7,7 +7,8 @@ import {
extractUserResourceName,
flattenTaskV1List,
hasProjectPermissionV2,
- isDatabaseRelatedIssue,
+ isDatabaseChangeRelatedIssue,
+ isDatabaseDataExportIssue,
isGrantRequestIssue,
} from "@/utils";
import { isTaskFinished } from "..";
@@ -41,13 +42,13 @@ export const getApplicableIssueStatusActionList = (
): IssueStatusAction[] => {
const list = PossibleIssueStatusActionMap[issue.status];
return list.filter((action) => {
- if (isGrantRequestIssue(issue)) {
+ if (isGrantRequestIssue(issue) || isDatabaseDataExportIssue(issue)) {
// Don't show RESOLVE or REOPEN for request granting issues.
if (action === "RESOLVE" || action === "REOPEN") {
return false;
}
}
- if (isDatabaseRelatedIssue(issue) && action === "RESOLVE") {
+ if (isDatabaseChangeRelatedIssue(issue) && action === "RESOLVE") {
const tasks = flattenTaskV1List(issue.rolloutEntity);
// Ths issue cannot be resolved if some tasks are not finished yet.
if (tasks.some((task) => !isTaskFinished(task))) {
diff --git a/frontend/src/components/IssueV1/logic/initialize/create.ts b/frontend/src/components/IssueV1/logic/initialize/create.ts
index deddad86dc..4260177cba 100644
--- a/frontend/src/components/IssueV1/logic/initialize/create.ts
+++ b/frontend/src/components/IssueV1/logic/initialize/create.ts
@@ -21,6 +21,7 @@ import {
Plan,
Plan_ChangeDatabaseConfig,
Plan_ChangeDatabaseConfig_Type,
+ Plan_ExportDataConfig,
Plan_Spec,
Plan_Step,
Rollout,
@@ -55,36 +56,24 @@ type CreateIssueParams = {
};
export const createIssueSkeleton = async (query: Record<string, string>) => {
- const issue = emptyIssue();
- const me = useCurrentUserV1();
- issue.creator = `users/${me.value.email}`;
- issue.creatorEntity = me.value;
-
const project = await useProjectV1Store().getOrFetchProjectByUID(
query.project
);
- issue.project = project.name;
- issue.projectEntity = project;
- issue.uid = nextUID();
- issue.name = `${project.name}/issues/${issue.uid}`;
- issue.title = query.name;
- issue.type = Issue_Type.DATABASE_CHANGE;
- issue.status = IssueStatus.OPEN;
-
const databaseUIDList = (query.databaseList ?? "")
.split(",")
.filter((uid) => uid && uid !== String(UNKNOWN_ID));
await prepareDatabaseList(databaseUIDList, project.uid);
- const branch = query.branch || undefined;
const params: CreateIssueParams = {
databaseUIDList,
project,
query,
initialSQL: extractInitialSQLListFromQuery(query),
- branch,
+ branch: query.branch || undefined,
};
+ const issue = await buildIssue(params);
+
// Prepare params context for building plan.
await prepareParamsContext(params);
@@ -110,6 +99,29 @@ const prepareParamsContext = async (params: CreateIssueParams) => {
}
};
+const buildIssue = async (params: CreateIssueParams) => {
+ const { project, query } = params;
+ const issue = emptyIssue();
+ const me = useCurrentUserV1();
+ issue.creator = `users/${me.value.email}`;
+ issue.creatorEntity = me.value;
+ issue.project = project.name;
+ issue.projectEntity = project;
+ issue.uid = nextUID();
+ issue.name = `${project.name}/issues/${issue.uid}`;
+ issue.title = query.name;
+ issue.status = IssueStatus.OPEN;
+
+ const template = query.template as TemplateType | undefined;
+ if (template === "bb.issue.database.data.export") {
+ issue.type = Issue_Type.DATABASE_DATA_EXPORT;
+ } else {
+ issue.type = Issue_Type.DATABASE_CHANGE;
+ }
+
+ return issue;
+};
+
export const buildPlan = async (params: CreateIssueParams) => {
const { databaseUIDList, project, query } = params;
@@ -366,6 +378,12 @@ export const buildSpecForTarget = async (
type: Plan_ChangeDatabaseConfig_Type.BASELINE,
});
}
+ if (template === "bb.issue.database.data.export") {
+ spec.exportDataConfig = Plan_ExportDataConfig.fromJSON({
+ target,
+ sheet,
+ });
+ }
return spec;
};
diff --git a/frontend/src/components/IssueV1/logic/plan-check.ts b/frontend/src/components/IssueV1/logic/plan-check.ts
index a3f1640263..3f77210bff 100644
--- a/frontend/src/components/IssueV1/logic/plan-check.ts
+++ b/frontend/src/components/IssueV1/logic/plan-check.ts
@@ -20,6 +20,9 @@ export const planSpecHasPlanChecks = (spec: Plan_Spec) => {
if (spec.changeDatabaseConfig !== undefined) {
return true;
}
+ if (spec.exportDataConfig !== undefined) {
+ return true;
+ }
return false;
};
diff --git a/frontend/src/components/IssueV1/logic/rollout.ts b/frontend/src/components/IssueV1/logic/rollout.ts
index fd1c19db93..4390c0435f 100644
--- a/frontend/src/components/IssueV1/logic/rollout.ts
+++ b/frontend/src/components/IssueV1/logic/rollout.ts
@@ -56,8 +56,11 @@ export const allowUserToEditStatementForTask = (
return [];
}
- if (issue.type !== Issue_Type.DATABASE_CHANGE) {
- denyReasons.push("Only database change issue type can be changed");
+ if (
+ issue.type !== Issue_Type.DATABASE_CHANGE &&
+ issue.type !== Issue_Type.DATABASE_DATA_EXPORT
+ ) {
+ denyReasons.push("Only database related issue type can be changed");
}
if (issue.status !== IssueStatus.OPEN) {
denyReasons.push("The issue is not open");
diff --git a/frontend/src/components/IssueV1/logic/transition.ts b/frontend/src/components/IssueV1/logic/transition.ts
index e1dae9ddea..1d3f957958 100644
--- a/frontend/src/components/IssueV1/logic/transition.ts
+++ b/frontend/src/components/IssueV1/logic/transition.ts
@@ -10,7 +10,7 @@ import { IssueStatus } from "@/types/proto/v1/issue_service";
import { Task_Status } from "@/types/proto/v1/rollout_service";
import type { StageStatusTransition, TaskStatusTransition } from "@/utils";
import {
- isDatabaseRelatedIssue,
+ isDatabaseChangeRelatedIssue,
flattenTaskV1List,
isGrantRequestIssue,
activeTaskInRollout,
@@ -60,7 +60,7 @@ export const calcApplicableIssueStatusTransitionList = (
}
}
- if (isDatabaseRelatedIssue(issue)) {
+ if (isDatabaseChangeRelatedIssue(issue)) {
const currentTask = activeTaskInRollout(issue.rolloutEntity);
const flattenTaskList = flattenTaskV1List(issue.rolloutEntity);
if (flattenTaskList.some((task) => task.status === Task_Status.RUNNING)) {
diff --git a/frontend/src/components/IssueV1/logic/utils.ts b/frontend/src/components/IssueV1/logic/utils.ts
index 490ec809e4..7c07126806 100644
--- a/frontend/src/components/IssueV1/logic/utils.ts
+++ b/frontend/src/components/IssueV1/logic/utils.ts
@@ -33,6 +33,7 @@ export const databaseForTask = (issue: ComposedIssue, task: Task) => {
if (
task.databaseDataUpdate ||
task.databaseSchemaUpdate ||
+ task.databaseDataExport ||
task.type === Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER ||
task.type === Task_Type.DATABASE_SCHEMA_BASELINE
) {
diff --git a/frontend/src/components/MarkdownEditor/MarkdownEditor.vue b/frontend/src/components/MarkdownEditor/MarkdownEditor.vue
index 119af0bbde..5c5a99489b 100644
--- a/frontend/src/components/MarkdownEditor/MarkdownEditor.vue
+++ b/frontend/src/components/MarkdownEditor/MarkdownEditor.vue
@@ -110,7 +110,7 @@ import type { ComposedIssue, ComposedProject } from "@/types";
import { Task_Status } from "@/types/proto/v1/rollout_service";
import {
activeTaskInRollout,
- isDatabaseRelatedIssue,
+ isDatabaseChangeRelatedIssue,
sizeToFit,
} from "@/utils";
import IssueStatusIcon from "../IssueV1/components/IssueStatusIcon.vue";
@@ -442,7 +442,7 @@ const onIssueSelect = (issue: ComposedIssue) => {
const issueTaskStatus = (issue: ComposedIssue) => {
// For grant request issue, we always show the status as "NOT_STARTED" as task status.
- if (!isDatabaseRelatedIssue(issue)) {
+ if (!isDatabaseChangeRelatedIssue(issue)) {
return Task_Status.NOT_STARTED;
}
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 215f8c0532..068cab4ac3 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1174,7 +1174,13 @@
"some-tasks-are-not-executed-successfully": "(Some tasks are not executed successfully)",
"preview": "Preview issue",
"missing-sql-statement": "SQL statement missing. To apply this change to all tasks, click the @:{'issue.apply-to-other-tasks'} button.",
- "task-summary-tooltip": "{failed} task failed | {failed} tasks failed"
+ "task-summary-tooltip": "{failed} task failed | {failed} tasks failed",
+ "data-export": {
+ "options": "Options",
+ "format": "Format",
+ "encrypt": "Encrypt",
+ "exported-file-downloaded": "Exported file downloaded"
+ }
},
"alter-schema": {
"vcs-enabled": "This project has enabled VCS based version control and selecting database below will navigate you to the corresponding Git repository to initiate the change process.",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index c122024207..781875d6a6 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1174,7 +1174,13 @@
"some-tasks-are-not-executed-successfully": "(Algunas tareas no se ejecutan correctamente)",
"preview": "Problema de vista previa",
"missing-sql-statement": "Sentencia SQL faltante. Para aplicar este cambio a todas las tareas, haz clic en el botón '@:{'issue.apply-to-other-tasks'}'.",
- "task-summary-tooltip": "{failed} tarea fallida | \n{failed} tareas fallidas"
+ "task-summary-tooltip": "{failed} tarea fallida | \n{failed} tareas fallidas",
+ "data-export": {
+ "options": "Opciones de exportación",
+ "format": "Formato",
+ "encrypt": "Cifrar",
+ "exported-file-downloaded": "Archivo exportado descargado"
+ }
},
"alter-schema": {
"vcs-enabled": "Este proyecto ha habilitado el control de versiones basado en VCS y seleccionar la base de datos a continuación lo llevará al repositorio Git correspondiente para iniciar el proceso de cambio.",
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index e142d6e65b..3643aae6c0 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -1174,7 +1174,13 @@
"some-tasks-are-not-executed-successfully": "(一部のタスクが正常に実行されていません)",
"preview": "問題のプレビュー",
"missing-sql-statement": "SQLステートメントが見つかりません。この変更をすべてのタスクに適用するには、「@:{'issue.apply-to-other-tasks'}」ボタンをクリックしてください。",
- "task-summary-tooltip": "{failed} タスクが失敗しました | \n{failed} 個のタスクが失敗しました"
+ "task-summary-tooltip": "{failed} タスクが失敗しました | \n{failed} 個のタスクが失敗しました",
+ "data-export": {
+ "options": "エクスポートオプション",
+ "format": "フォーマット",
+ "encrypt": "暗号化",
+ "exported-file-downloaded": "エクスポートされたファイルがダウンロードされました"
+ }
},
"alter-schema": {
"vcs-enabled": "このプロジェクトはVCSベースのバージョン管理が有効になっており、以下のデータベースを選択すると、対応するGitリポジトリに移動して変更プロセスを開始できます。",
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index d3a12a7409..5ff0030c93 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -1174,7 +1174,13 @@
"some-tasks-are-not-executed-successfully": "(Một số tác vụ không được thực hiện thành công)",
"preview": "Vấn đề xem trước",
"missing-sql-statement": "Câu lệnh SQL không tồn tại. Để áp dụng thay đổi này cho tất cả các nhiệm vụ, nhấn vào nút '@:{'issue.apply-to-other-tasks'}'.",
- "task-summary-tooltip": "nhiệm vụ {failed} không thành công | \n{failed} nhiệm vụ không thành công"
+ "task-summary-tooltip": "nhiệm vụ {failed} không thành công | \n{failed} nhiệm vụ không thành công",
+ "data-export": {
+ "options": "Tùy chọn xuất",
+ "format": "Định dạng",
+ "encrypt": "Mã hóa",
+ "exported-file-downloaded": "Tệp đã xuất đã được tải xuống"
+ }
},
"alter-schema": {
"vcs-enabled": "Dự án này đã kích hoạt tính năng kiểm soát phiên bản dựa trên VCS và việc chọn cơ sở dữ liệu bên dưới sẽ điều hướng bạn đến kho lưu trữ Git tương ứng để bắt đầu quá trình thay đổi.",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 0c1ab2ae86..caf1d45bbf 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1174,7 +1174,13 @@
"some-tasks-are-not-executed-successfully": "(部分任务并未成功执行)",
"preview": "预览工单",
"missing-sql-statement": "SQL 语句缺失。要将此更改应用于所有任务,请单击 “@:{'issue.apply-to-other-tasks'}” 按钮。",
- "task-summary-tooltip": "{failed} 个任务失败"
+ "task-summary-tooltip": "{failed} 个任务失败",
+ "data-export": {
+ "options": "配置项",
+ "format": "导出格式",
+ "encrypt": "加密",
+ "exported-file-downloaded": "导出结果已下载"
+ }
},
"alter-schema": {
"vcs-enabled": "该项目开启了基于 VCS 的版本管理,选择下面的数据库会将您导航到相应的 Git 仓库以发起变更流程。",
diff --git a/frontend/src/store/modules/v1/activity.ts b/frontend/src/store/modules/v1/activity.ts
index 7dd6aea8d9..d847016afb 100644
--- a/frontend/src/store/modules/v1/activity.ts
+++ b/frontend/src/store/modules/v1/activity.ts
@@ -11,7 +11,7 @@ import {
logEntity_ActionToJSON,
logEntity_LevelToJSON,
} from "@/types/proto/v1/logging_service";
-import { isDatabaseRelatedIssue, extractRolloutUID } from "@/utils";
+import { isDatabaseChangeRelatedIssue, extractRolloutUID } from "@/utils";
import { userNamePrefix, getLogId, logNamePrefix } from "./common";
dayjs.extend(utc);
@@ -74,7 +74,7 @@ export const useActivityV1Store = defineStore("activity_v1", () => {
pageSize: 1000, // Pagination is complex, and not high priority
}).then((resp) => resp.logEntities),
];
- if (isDatabaseRelatedIssue(issue) && issue.rollout) {
+ if (isDatabaseChangeRelatedIssue(issue) && issue.rollout) {
const pipelineUID = extractRolloutUID(issue.rollout);
requests.push(
fetchActivityList({
diff --git a/frontend/src/types/issue.ts b/frontend/src/types/issue.ts
index 34f0966201..92dfde1c9e 100644
--- a/frontend/src/types/issue.ts
+++ b/frontend/src/types/issue.ts
@@ -15,7 +15,8 @@ type IssueTypeDatabase =
| "bb.issue.database.schema.update"
| "bb.issue.database.data.update"
| "bb.issue.database.rollback"
- | "bb.issue.database.schema.update.ghost";
+ | "bb.issue.database.schema.update.ghost"
+ | "bb.issue.database.data.export";
type IssueTypeGrantRequest = "bb.issue.grant.request";
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index 824c1150fd..e5804c3efe 100644
--- a/frontend/src/types/proto/google/protobuf/descriptor.ts
+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts
@@ -4,98 +4,6 @@ import _m0 from "protobufjs/minimal";
export const protobufPackage = "google.protobuf";
-/** The full set of known editions. */
-export enum Edition {
- /** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
- EDITION_UNKNOWN = 0,
- /**
- * 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
- * files, but feature definitions must supply proto2/proto3 defaults for
- * backwards compatibility.
- */
- EDITION_PROTO2 = 998,
- EDITION_PROTO3 = 999,
- /**
- * EDITION_2023 - Editions that have been released. The specific values are arbitrary and
- * should not be depended on, but they will always be time-ordered for easy
- * comparison.
- */
- EDITION_2023 = 1000,
- /**
- * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
- * used or relyed on outside of tests.
- */
- EDITION_1_TEST_ONLY = 1,
- EDITION_2_TEST_ONLY = 2,
- EDITION_99997_TEST_ONLY = 99997,
- EDITION_99998_TEST_ONLY = 99998,
- EDITION_99999_TEST_ONLY = 99999,
- UNRECOGNIZED = -1,
-}
-
-export function editionFromJSON(object: any): Edition {
- switch (object) {
- case 0:
- case "EDITION_UNKNOWN":
- return Edition.EDITION_UNKNOWN;
- case 998:
- case "EDITION_PROTO2":
- return Edition.EDITION_PROTO2;
- case 999:
- case "EDITION_PROTO3":
- return Edition.EDITION_PROTO3;
- case 1000:
- case "EDITION_2023":
- return Edition.EDITION_2023;
- case 1:
- case "EDITION_1_TEST_ONLY":
- return Edition.EDITION_1_TEST_ONLY;
- case 2:
- case "EDITION_2_TEST_ONLY":
- return Edition.EDITION_2_TEST_ONLY;
- case 99997:
- case "EDITION_99997_TEST_ONLY":
- return Edition.EDITION_99997_TEST_ONLY;
- case 99998:
- case "EDITION_99998_TEST_ONLY":
- return Edition.EDITION_99998_TEST_ONLY;
- case 99999:
- case "EDITION_99999_TEST_ONLY":
- return Edition.EDITION_99999_TEST_ONLY;
- case -1:
- case "UNRECOGNIZED":
- default:
- return Edition.UNRECOGNIZED;
- }
-}
-
-export function editionToJSON(object: Edition): string {
- switch (object) {
- case Edition.EDITION_UNKNOWN:
- return "EDITION_UNKNOWN";
- case Edition.EDITION_PROTO2:
- return "EDITION_PROTO2";
- case Edition.EDITION_PROTO3:
- return "EDITION_PROTO3";
- case Edition.EDITION_2023:
- return "EDITION_2023";
- case Edition.EDITION_1_TEST_ONLY:
- return "EDITION_1_TEST_ONLY";
- case Edition.EDITION_2_TEST_ONLY:
- return "EDITION_2_TEST_ONLY";
- case Edition.EDITION_99997_TEST_ONLY:
- return "EDITION_99997_TEST_ONLY";
- case Edition.EDITION_99998_TEST_ONLY:
- return "EDITION_99998_TEST_ONLY";
- case Edition.EDITION_99999_TEST_ONLY:
- return "EDITION_99999_TEST_ONLY";
- case Edition.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
/**
* The protocol compiler can output a FileDescriptorSet containing the .proto
* files it parses.
@@ -143,8 +51,8 @@ export interface FileDescriptorProto {
* If `edition` is present, this value must be "editions".
*/
syntax: string;
- /** The edition of the proto file. */
- edition: Edition;
+ /** The edition of the proto file, which is an opaque string. */
+ edition: string;
}
/** Describes a message type. */
@@ -188,84 +96,6 @@ export interface DescriptorProto_ReservedRange {
export interface ExtensionRangeOptions {
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
- /**
- * For external users: DO NOT USE. We are in the process of open sourcing
- * extension declaration and executing internal cleanups before it can be
- * used externally.
- */
- declaration: ExtensionRangeOptions_Declaration[];
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
- /**
- * The verification state of the range.
- * TODO: flip the default to DECLARATION once all empty ranges
- * are marked as UNVERIFIED.
- */
- verification: ExtensionRangeOptions_VerificationState;
-}
-
-/** The verification state of the extension range. */
-export enum ExtensionRangeOptions_VerificationState {
- /** DECLARATION - All the extensions of the range must be declared. */
- DECLARATION = 0,
- UNVERIFIED = 1,
- UNRECOGNIZED = -1,
-}
-
-export function extensionRangeOptions_VerificationStateFromJSON(object: any): ExtensionRangeOptions_VerificationState {
- switch (object) {
- case 0:
- case "DECLARATION":
- return ExtensionRangeOptions_VerificationState.DECLARATION;
- case 1:
- case "UNVERIFIED":
- return ExtensionRangeOptions_VerificationState.UNVERIFIED;
- case -1:
- case "UNRECOGNIZED":
- default:
- return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;
- }
-}
-
-export function extensionRangeOptions_VerificationStateToJSON(object: ExtensionRangeOptions_VerificationState): string {
- switch (object) {
- case ExtensionRangeOptions_VerificationState.DECLARATION:
- return "DECLARATION";
- case ExtensionRangeOptions_VerificationState.UNVERIFIED:
- return "UNVERIFIED";
- case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export interface ExtensionRangeOptions_Declaration {
- /** The extension number declared within the extension range. */
- number: number;
- /**
- * The fully-qualified name of the extension field. There must be a leading
- * dot in front of the full name.
- */
- fullName: string;
- /**
- * The fully-qualified type name of the extension field. Unlike
- * Metadata.type, Declaration.type must have a leading dot for messages
- * and enums.
- */
- type: string;
- /**
- * If true, indicates that the number is reserved in the extension range,
- * and any extension field with the number will fail to compile. Set this
- * when a declared extension field is deleted.
- */
- reserved: boolean;
- /**
- * If true, indicates that the extension must be defined as repeated.
- * Otherwise the extension must be defined as optional.
- */
- repeated: boolean;
}
/** Describes a field within a message. */
@@ -363,10 +193,9 @@ export enum FieldDescriptorProto_Type {
TYPE_STRING = 9,
/**
* TYPE_GROUP - Tag-delimited aggregate.
- * Group type is deprecated and not supported after google.protobuf. However, Proto3
+ * Group type is deprecated and not supported in proto3. However, Proto3
* implementations should still be able to parse the group wire format and
- * treat group fields as unknown fields. In Editions, the group wire format
- * can be enabled via the `message_encoding` feature.
+ * treat group fields as unknown fields.
*/
TYPE_GROUP = 10,
/** TYPE_MESSAGE - Length-delimited aggregate. */
@@ -494,13 +323,8 @@ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Typ
export enum FieldDescriptorProto_Label {
/** LABEL_OPTIONAL - 0 is reserved for errors */
LABEL_OPTIONAL = 1,
- LABEL_REPEATED = 3,
- /**
- * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
- * it's explicitly prohibited. In Editions, the `field_presence` feature
- * can be used to get this behavior.
- */
LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3,
UNRECOGNIZED = -1,
}
@@ -509,12 +333,12 @@ export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptor
case 1:
case "LABEL_OPTIONAL":
return FieldDescriptorProto_Label.LABEL_OPTIONAL;
- case 3:
- case "LABEL_REPEATED":
- return FieldDescriptorProto_Label.LABEL_REPEATED;
case 2:
case "LABEL_REQUIRED":
return FieldDescriptorProto_Label.LABEL_REQUIRED;
+ case 3:
+ case "LABEL_REPEATED":
+ return FieldDescriptorProto_Label.LABEL_REPEATED;
case -1:
case "UNRECOGNIZED":
default:
@@ -526,10 +350,10 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
switch (object) {
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
return "LABEL_OPTIONAL";
- case FieldDescriptorProto_Label.LABEL_REPEATED:
- return "LABEL_REPEATED";
case FieldDescriptorProto_Label.LABEL_REQUIRED:
return "LABEL_REQUIRED";
+ case FieldDescriptorProto_Label.LABEL_REPEATED:
+ return "LABEL_REPEATED";
case FieldDescriptorProto_Label.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -723,10 +547,6 @@ export interface FileOptions {
* determining the ruby package.
*/
rubyPackage: string;
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
/**
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
@@ -845,16 +665,12 @@ export interface MessageOptions {
* This should only be used as a temporary measure against broken builds due
* to the change in behavior for JSON field name conflicts.
*
- * TODO This is legacy behavior we plan to remove once downstream
+ * TODO(b/261750190) This is legacy behavior we plan to remove once downstream
* teams have had time to migrate.
*
* @deprecated
*/
deprecatedLegacyJsonFieldConflicts: boolean;
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -863,10 +679,8 @@ export interface FieldOptions {
/**
* The ctype option instructs the C++ code generator to use a different
* representation of the field than it normally would. See the specific
- * options below. This option is only implemented to support use of
- * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
- * type "bytes" in the open source release -- sorry, we'll try to include
- * other types in a future version!
+ * options below. This option is not yet implemented in the open source
+ * release -- sorry, we'll try to include it in a future version!
*/
ctype: FieldOptions_CType;
/**
@@ -874,9 +688,7 @@ export interface FieldOptions {
* a more efficient representation on the wire. Rather than repeatedly
* writing the tag and type for each element, the entire array is encoded as
* a single length-delimited blob. In proto3, only explicit setting it to
- * false will avoid using packed encoding. This option is prohibited in
- * Editions, but the `repeated_field_encoding` feature can be used to control
- * the behavior.
+ * false will avoid using packed encoding.
*/
packed: boolean;
/**
@@ -947,12 +759,7 @@ export interface FieldOptions {
*/
debugRedact: boolean;
retention: FieldOptions_OptionRetention;
- targets: FieldOptions_OptionTargetType[];
- editionDefaults: FieldOptions_EditionDefault[];
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
+ target: FieldOptions_OptionTargetType;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -960,14 +767,6 @@ export interface FieldOptions {
export enum FieldOptions_CType {
/** STRING - Default mode. */
STRING = 0,
- /**
- * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
- * "bytes". It indicates that in C++, the data should be stored in a Cord
- * instead of a string. For very large strings, this may reduce memory
- * fragmentation. It may also allow better performance when parsing from a
- * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
- * alias the original buffer.
- */
CORD = 1,
STRING_PIECE = 2,
UNRECOGNIZED = -1,
@@ -1178,17 +977,7 @@ export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionT
}
}
-export interface FieldOptions_EditionDefault {
- edition: Edition;
- /** Textproto value. */
- value: string;
-}
-
export interface OneofOptions {
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1211,16 +1000,12 @@ export interface EnumOptions {
* and strips underscored from the fields before comparison in proto3 only.
* The new behavior takes `json_name` into account and applies to proto2 as
* well.
- * TODO Remove this legacy behavior once downstream teams have
+ * TODO(b/261750190) Remove this legacy behavior once downstream teams have
* had time to migrate.
*
* @deprecated
*/
deprecatedLegacyJsonFieldConflicts: boolean;
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1233,25 +1018,11 @@ export interface EnumValueOptions {
* this is a formalization for deprecating enum values.
*/
deprecated: boolean;
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
- /**
- * Indicate that fields annotated with this enum value should not be printed
- * out when using debug formats, e.g. when the field contains sensitive
- * credentials.
- */
- debugRedact: boolean;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
export interface ServiceOptions {
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
/**
* Is this service deprecated?
* Depending on the target platform, this can emit Deprecated annotations
@@ -1272,10 +1043,6 @@ export interface MethodOptions {
*/
deprecated: boolean;
idempotencyLevel: MethodOptions_IdempotencyLevel;
- /** Any features defined in the specific edition. */
- features:
- | FeatureSet
- | undefined;
/** The parser stores options it doesn't recognize here. See above. */
uninterpretedOption: UninterpretedOption[];
}
@@ -1360,294 +1127,6 @@ export interface UninterpretedOption_NamePart {
isExtension: boolean;
}
-/**
- * TODO Enums in C++ gencode (and potentially other languages) are
- * not well scoped. This means that each of the feature enums below can clash
- * with each other. The short names we've chosen maximize call-site
- * readability, but leave us very open to this scenario. A future feature will
- * be designed and implemented to handle this, hopefully before we ever hit a
- * conflict here.
- */
-export interface FeatureSet {
- fieldPresence: FeatureSet_FieldPresence;
- enumType: FeatureSet_EnumType;
- repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding;
- utf8Validation: FeatureSet_Utf8Validation;
- messageEncoding: FeatureSet_MessageEncoding;
- jsonFormat: FeatureSet_JsonFormat;
-}
-
-export enum FeatureSet_FieldPresence {
- FIELD_PRESENCE_UNKNOWN = 0,
- EXPLICIT = 1,
- IMPLICIT = 2,
- LEGACY_REQUIRED = 3,
- UNRECOGNIZED = -1,
-}
-
-export function featureSet_FieldPresenceFromJSON(object: any): FeatureSet_FieldPresence {
- switch (object) {
- case 0:
- case "FIELD_PRESENCE_UNKNOWN":
- return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
- case 1:
- case "EXPLICIT":
- return FeatureSet_FieldPresence.EXPLICIT;
- case 2:
- case "IMPLICIT":
- return FeatureSet_FieldPresence.IMPLICIT;
- case 3:
- case "LEGACY_REQUIRED":
- return FeatureSet_FieldPresence.LEGACY_REQUIRED;
- case -1:
- case "UNRECOGNIZED":
- default:
- return FeatureSet_FieldPresence.UNRECOGNIZED;
- }
-}
-
-export function featureSet_FieldPresenceToJSON(object: FeatureSet_FieldPresence): string {
- switch (object) {
- case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
- return "FIELD_PRESENCE_UNKNOWN";
- case FeatureSet_FieldPresence.EXPLICIT:
- return "EXPLICIT";
- case FeatureSet_FieldPresence.IMPLICIT:
- return "IMPLICIT";
- case FeatureSet_FieldPresence.LEGACY_REQUIRED:
- return "LEGACY_REQUIRED";
- case FeatureSet_FieldPresence.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export enum FeatureSet_EnumType {
- ENUM_TYPE_UNKNOWN = 0,
- OPEN = 1,
- CLOSED = 2,
- UNRECOGNIZED = -1,
-}
-
-export function featureSet_EnumTypeFromJSON(object: any): FeatureSet_EnumType {
- switch (object) {
- case 0:
- case "ENUM_TYPE_UNKNOWN":
- return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
- case 1:
- case "OPEN":
- return FeatureSet_EnumType.OPEN;
- case 2:
- case "CLOSED":
- return FeatureSet_EnumType.CLOSED;
- case -1:
- case "UNRECOGNIZED":
- default:
- return FeatureSet_EnumType.UNRECOGNIZED;
- }
-}
-
-export function featureSet_EnumTypeToJSON(object: FeatureSet_EnumType): string {
- switch (object) {
- case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
- return "ENUM_TYPE_UNKNOWN";
- case FeatureSet_EnumType.OPEN:
- return "OPEN";
- case FeatureSet_EnumType.CLOSED:
- return "CLOSED";
- case FeatureSet_EnumType.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export enum FeatureSet_RepeatedFieldEncoding {
- REPEATED_FIELD_ENCODING_UNKNOWN = 0,
- PACKED = 1,
- EXPANDED = 2,
- UNRECOGNIZED = -1,
-}
-
-export function featureSet_RepeatedFieldEncodingFromJSON(object: any): FeatureSet_RepeatedFieldEncoding {
- switch (object) {
- case 0:
- case "REPEATED_FIELD_ENCODING_UNKNOWN":
- return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
- case 1:
- case "PACKED":
- return FeatureSet_RepeatedFieldEncoding.PACKED;
- case 2:
- case "EXPANDED":
- return FeatureSet_RepeatedFieldEncoding.EXPANDED;
- case -1:
- case "UNRECOGNIZED":
- default:
- return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;
- }
-}
-
-export function featureSet_RepeatedFieldEncodingToJSON(object: FeatureSet_RepeatedFieldEncoding): string {
- switch (object) {
- case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
- return "REPEATED_FIELD_ENCODING_UNKNOWN";
- case FeatureSet_RepeatedFieldEncoding.PACKED:
- return "PACKED";
- case FeatureSet_RepeatedFieldEncoding.EXPANDED:
- return "EXPANDED";
- case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export enum FeatureSet_Utf8Validation {
- UTF8_VALIDATION_UNKNOWN = 0,
- NONE = 1,
- VERIFY = 2,
- UNRECOGNIZED = -1,
-}
-
-export function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation {
- switch (object) {
- case 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 -1:
- case "UNRECOGNIZED":
- default:
- return FeatureSet_Utf8Validation.UNRECOGNIZED;
- }
-}
-
-export function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validation): string {
- switch (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.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export enum FeatureSet_MessageEncoding {
- MESSAGE_ENCODING_UNKNOWN = 0,
- LENGTH_PREFIXED = 1,
- DELIMITED = 2,
- UNRECOGNIZED = -1,
-}
-
-export function featureSet_MessageEncodingFromJSON(object: any): FeatureSet_MessageEncoding {
- switch (object) {
- case 0:
- case "MESSAGE_ENCODING_UNKNOWN":
- return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
- case 1:
- case "LENGTH_PREFIXED":
- return FeatureSet_MessageEncoding.LENGTH_PREFIXED;
- case 2:
- case "DELIMITED":
- return FeatureSet_MessageEncoding.DELIMITED;
- case -1:
- case "UNRECOGNIZED":
- default:
- return FeatureSet_MessageEncoding.UNRECOGNIZED;
- }
-}
-
-export function featureSet_MessageEncodingToJSON(object: FeatureSet_MessageEncoding): string {
- switch (object) {
- case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
- return "MESSAGE_ENCODING_UNKNOWN";
- case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
- return "LENGTH_PREFIXED";
- case FeatureSet_MessageEncoding.DELIMITED:
- return "DELIMITED";
- case FeatureSet_MessageEncoding.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export enum FeatureSet_JsonFormat {
- JSON_FORMAT_UNKNOWN = 0,
- ALLOW = 1,
- LEGACY_BEST_EFFORT = 2,
- UNRECOGNIZED = -1,
-}
-
-export function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat {
- switch (object) {
- case 0:
- case "JSON_FORMAT_UNKNOWN":
- return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
- case 1:
- case "ALLOW":
- return FeatureSet_JsonFormat.ALLOW;
- case 2:
- case "LEGACY_BEST_EFFORT":
- return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;
- case -1:
- case "UNRECOGNIZED":
- default:
- return FeatureSet_JsonFormat.UNRECOGNIZED;
- }
-}
-
-export function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string {
- switch (object) {
- case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
- return "JSON_FORMAT_UNKNOWN";
- case FeatureSet_JsonFormat.ALLOW:
- return "ALLOW";
- case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
- return "LEGACY_BEST_EFFORT";
- case FeatureSet_JsonFormat.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-/**
- * A compiled specification for the defaults of a set of features. These
- * messages are generated from FeatureSet extensions and can be used to seed
- * feature resolution. The resolution with this object becomes a simple search
- * for the closest matching edition, followed by proto merges.
- */
-export interface FeatureSetDefaults {
- defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
- /**
- * The minimum supported edition (inclusive) when this was constructed.
- * Editions before this will not have defaults.
- */
- minimumEdition: Edition;
- /**
- * The maximum known edition (inclusive) when this was constructed. Editions
- * after this will not have reliable defaults.
- */
- maximumEdition: Edition;
-}
-
-/**
- * A map from every known edition with a unique set of defaults to its
- * defaults. Not all editions may be contained here. For a given edition,
- * the defaults at the closest matching edition ordered at or before it should
- * be used. This field must be in strict ascending order by edition.
- */
-export interface FeatureSetDefaults_FeatureSetEditionDefault {
- edition: Edition;
- features: FeatureSet | undefined;
-}
-
/**
* Encapsulates information about the original source file from which a
* FileDescriptorProto was generated.
@@ -1944,7 +1423,7 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {
options: undefined,
sourceCodeInfo: undefined,
syntax: "",
- edition: 0,
+ edition: "",
};
}
@@ -1990,8 +1469,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
writer.uint32(98).string(message.syntax);
}
- if (message.edition !== 0) {
- writer.uint32(112).int32(message.edition);
+ if (message.edition !== "") {
+ writer.uint32(106).string(message.edition);
}
return writer;
},
@@ -2107,12 +1586,12 @@ export const FileDescriptorProto = {
message.syntax = reader.string();
continue;
- case 14:
- if (tag !== 112) {
+ case 13:
+ if (tag !== 106) {
break;
}
- message.edition = reader.int32() as any;
+ message.edition = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
@@ -2151,7 +1630,7 @@ export const FileDescriptorProto = {
options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,
sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,
syntax: isSet(object.syntax) ? globalThis.String(object.syntax) : "",
- edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
+ edition: isSet(object.edition) ? globalThis.String(object.edition) : "",
};
},
@@ -2193,8 +1672,8 @@ export const FileDescriptorProto = {
if (message.syntax !== "") {
obj.syntax = message.syntax;
}
- if (message.edition !== 0) {
- obj.edition = editionToJSON(message.edition);
+ if (message.edition !== "") {
+ obj.edition = message.edition;
}
return obj;
},
@@ -2220,7 +1699,7 @@ export const FileDescriptorProto = {
? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
: undefined;
message.syntax = object.syntax ?? "";
- message.edition = object.edition ?? 0;
+ message.edition = object.edition ?? "";
return message;
},
};
@@ -2614,7 +2093,7 @@ export const DescriptorProto_ReservedRange = {
};
function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
- return { uninterpretedOption: [], declaration: [], features: undefined, verification: 0 };
+ return { uninterpretedOption: [] };
}
export const ExtensionRangeOptions = {
@@ -2622,15 +2101,6 @@ export const ExtensionRangeOptions = {
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
- for (const v of message.declaration) {
- ExtensionRangeOptions_Declaration.encode(v!, writer.uint32(18).fork()).ldelim();
- }
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
- }
- if (message.verification !== 0) {
- writer.uint32(24).int32(message.verification);
- }
return writer;
},
@@ -2648,27 +2118,6 @@ export const ExtensionRangeOptions = {
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
continue;
- case 2:
- if (tag !== 18) {
- break;
- }
-
- message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
- continue;
- case 50:
- if (tag !== 402) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
- case 3:
- if (tag !== 24) {
- break;
- }
-
- message.verification = reader.int32() as any;
- continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -2683,13 +2132,6 @@ export const ExtensionRangeOptions = {
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
- declaration: globalThis.Array.isArray(object?.declaration)
- ? object.declaration.map((e: any) => ExtensionRangeOptions_Declaration.fromJSON(e))
- : [],
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
- verification: isSet(object.verification)
- ? extensionRangeOptions_VerificationStateFromJSON(object.verification)
- : 0,
};
},
@@ -2698,15 +2140,6 @@ export const ExtensionRangeOptions = {
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
- if (message.declaration?.length) {
- obj.declaration = message.declaration.map((e) => ExtensionRangeOptions_Declaration.toJSON(e));
- }
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
- if (message.verification !== 0) {
- obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification);
- }
return obj;
},
@@ -2716,130 +2149,6 @@ export const ExtensionRangeOptions = {
fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
const message = createBaseExtensionRangeOptions();
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
- message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
- message.verification = object.verification ?? 0;
- return message;
- },
-};
-
-function createBaseExtensionRangeOptions_Declaration(): ExtensionRangeOptions_Declaration {
- return { number: 0, fullName: "", type: "", reserved: false, repeated: false };
-}
-
-export const ExtensionRangeOptions_Declaration = {
- encode(message: ExtensionRangeOptions_Declaration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.number !== 0) {
- writer.uint32(8).int32(message.number);
- }
- if (message.fullName !== "") {
- writer.uint32(18).string(message.fullName);
- }
- if (message.type !== "") {
- writer.uint32(26).string(message.type);
- }
- if (message.reserved === true) {
- writer.uint32(40).bool(message.reserved);
- }
- if (message.repeated === true) {
- writer.uint32(48).bool(message.repeated);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions_Declaration {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseExtensionRangeOptions_Declaration();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 8) {
- break;
- }
-
- message.number = reader.int32();
- continue;
- case 2:
- if (tag !== 18) {
- break;
- }
-
- message.fullName = reader.string();
- continue;
- case 3:
- if (tag !== 26) {
- break;
- }
-
- message.type = reader.string();
- continue;
- case 5:
- if (tag !== 40) {
- break;
- }
-
- message.reserved = reader.bool();
- continue;
- case 6:
- if (tag !== 48) {
- break;
- }
-
- message.repeated = reader.bool();
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): ExtensionRangeOptions_Declaration {
- return {
- number: isSet(object.number) ? globalThis.Number(object.number) : 0,
- fullName: isSet(object.fullName) ? globalThis.String(object.fullName) : "",
- type: isSet(object.type) ? globalThis.String(object.type) : "",
- reserved: isSet(object.reserved) ? globalThis.Boolean(object.reserved) : false,
- repeated: isSet(object.repeated) ? globalThis.Boolean(object.repeated) : false,
- };
- },
-
- toJSON(message: ExtensionRangeOptions_Declaration): unknown {
- const obj: any = {};
- if (message.number !== 0) {
- obj.number = Math.round(message.number);
- }
- if (message.fullName !== "") {
- obj.fullName = message.fullName;
- }
- if (message.type !== "") {
- obj.type = message.type;
- }
- if (message.reserved === true) {
- obj.reserved = message.reserved;
- }
- if (message.repeated === true) {
- obj.repeated = message.repeated;
- }
- return obj;
- },
-
- create(base?: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
- return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
- const message = createBaseExtensionRangeOptions_Declaration();
- message.number = object.number ?? 0;
- message.fullName = object.fullName ?? "";
- message.type = object.type ?? "";
- message.reserved = object.reserved ?? false;
- message.repeated = object.repeated ?? false;
return message;
},
};
@@ -3694,7 +3003,6 @@ function createBaseFileOptions(): FileOptions {
phpNamespace: "",
phpMetadataNamespace: "",
rubyPackage: "",
- features: undefined,
uninterpretedOption: [],
};
}
@@ -3761,9 +3069,6 @@ export const FileOptions = {
if (message.rubyPackage !== "") {
writer.uint32(362).string(message.rubyPackage);
}
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
- }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -3917,13 +3222,6 @@ export const FileOptions = {
message.rubyPackage = reader.string();
continue;
- case 50:
- if (tag !== 402) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
case 999:
if (tag !== 7994) {
break;
@@ -3964,7 +3262,6 @@ export const FileOptions = {
phpNamespace: isSet(object.phpNamespace) ? globalThis.String(object.phpNamespace) : "",
phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? globalThis.String(object.phpMetadataNamespace) : "",
rubyPackage: isSet(object.rubyPackage) ? globalThis.String(object.rubyPackage) : "",
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4033,9 +3330,6 @@ export const FileOptions = {
if (message.rubyPackage !== "") {
obj.rubyPackage = message.rubyPackage;
}
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4067,9 +3361,6 @@ export const FileOptions = {
message.phpNamespace = object.phpNamespace ?? "";
message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
message.rubyPackage = object.rubyPackage ?? "";
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -4082,7 +3373,6 @@ function createBaseMessageOptions(): MessageOptions {
deprecated: false,
mapEntry: false,
deprecatedLegacyJsonFieldConflicts: false,
- features: undefined,
uninterpretedOption: [],
};
}
@@ -4104,9 +3394,6 @@ export const MessageOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
}
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();
- }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4155,13 +3442,6 @@ export const MessageOptions = {
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
continue;
- case 12:
- if (tag !== 98) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
case 999:
if (tag !== 7994) {
break;
@@ -4191,7 +3471,6 @@ export const MessageOptions = {
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
: false,
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4215,9 +3494,6 @@ export const MessageOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
}
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4234,9 +3510,6 @@ export const MessageOptions = {
message.deprecated = object.deprecated ?? false;
message.mapEntry = object.mapEntry ?? false;
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -4253,9 +3526,7 @@ function createBaseFieldOptions(): FieldOptions {
weak: false,
debugRedact: false,
retention: 0,
- targets: [],
- editionDefaults: [],
- features: undefined,
+ target: 0,
uninterpretedOption: [],
};
}
@@ -4289,16 +3560,8 @@ export const FieldOptions = {
if (message.retention !== 0) {
writer.uint32(136).int32(message.retention);
}
- writer.uint32(154).fork();
- for (const v of message.targets) {
- writer.int32(v);
- }
- writer.ldelim();
- for (const v of message.editionDefaults) {
- FieldOptions_EditionDefault.encode(v!, writer.uint32(162).fork()).ldelim();
- }
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();
+ if (message.target !== 0) {
+ writer.uint32(144).int32(message.target);
}
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
@@ -4376,36 +3639,12 @@ export const FieldOptions = {
message.retention = reader.int32() as any;
continue;
- case 19:
- if (tag === 152) {
- message.targets.push(reader.int32() as any);
-
- continue;
- }
-
- if (tag === 154) {
- const end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2) {
- message.targets.push(reader.int32() as any);
- }
-
- continue;
- }
-
- break;
- case 20:
- if (tag !== 162) {
- break;
- }
-
- message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));
- continue;
- case 21:
- if (tag !== 170) {
+ case 18:
+ if (tag !== 144) {
break;
}
- message.features = FeatureSet.decode(reader, reader.uint32());
+ message.target = reader.int32() as any;
continue;
case 999:
if (tag !== 7994) {
@@ -4434,13 +3673,7 @@ export const FieldOptions = {
weak: isSet(object.weak) ? globalThis.Boolean(object.weak) : false,
debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,
- targets: globalThis.Array.isArray(object?.targets)
- ? object.targets.map((e: any) => fieldOptions_OptionTargetTypeFromJSON(e))
- : [],
- editionDefaults: globalThis.Array.isArray(object?.editionDefaults)
- ? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e))
- : [],
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
+ target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4476,14 +3709,8 @@ export const FieldOptions = {
if (message.retention !== 0) {
obj.retention = fieldOptions_OptionRetentionToJSON(message.retention);
}
- if (message.targets?.length) {
- obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));
- }
- if (message.editionDefaults?.length) {
- obj.editionDefaults = message.editionDefaults.map((e) => FieldOptions_EditionDefault.toJSON(e));
- }
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
+ if (message.target !== 0) {
+ obj.target = fieldOptions_OptionTargetTypeToJSON(message.target);
}
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
@@ -4505,99 +3732,18 @@ export const FieldOptions = {
message.weak = object.weak ?? false;
message.debugRedact = object.debugRedact ?? false;
message.retention = object.retention ?? 0;
- message.targets = object.targets?.map((e) => e) || [];
- message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || [];
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
+ message.target = object.target ?? 0;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
-function createBaseFieldOptions_EditionDefault(): FieldOptions_EditionDefault {
- return { edition: 0, value: "" };
-}
-
-export const FieldOptions_EditionDefault = {
- encode(message: FieldOptions_EditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.edition !== 0) {
- writer.uint32(24).int32(message.edition);
- }
- if (message.value !== "") {
- writer.uint32(18).string(message.value);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_EditionDefault {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseFieldOptions_EditionDefault();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 3:
- if (tag !== 24) {
- break;
- }
-
- message.edition = reader.int32() as any;
- 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): FieldOptions_EditionDefault {
- return {
- edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
- value: isSet(object.value) ? globalThis.String(object.value) : "",
- };
- },
-
- toJSON(message: FieldOptions_EditionDefault): unknown {
- const obj: any = {};
- if (message.edition !== 0) {
- obj.edition = editionToJSON(message.edition);
- }
- if (message.value !== "") {
- obj.value = message.value;
- }
- return obj;
- },
-
- create(base?: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
- return FieldOptions_EditionDefault.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
- const message = createBaseFieldOptions_EditionDefault();
- message.edition = object.edition ?? 0;
- message.value = object.value ?? "";
- return message;
- },
-};
-
function createBaseOneofOptions(): OneofOptions {
- return { features: undefined, uninterpretedOption: [] };
+ return { uninterpretedOption: [] };
}
export const OneofOptions = {
encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();
- }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4611,13 +3757,6 @@ export const OneofOptions = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
- case 1:
- if (tag !== 10) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
case 999:
if (tag !== 7994) {
break;
@@ -4636,7 +3775,6 @@ export const OneofOptions = {
fromJSON(object: any): OneofOptions {
return {
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4645,9 +3783,6 @@ export const OneofOptions = {
toJSON(message: OneofOptions): unknown {
const obj: any = {};
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4659,22 +3794,13 @@ export const OneofOptions = {
},
fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {
const message = createBaseOneofOptions();
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseEnumOptions(): EnumOptions {
- return {
- allowAlias: false,
- deprecated: false,
- deprecatedLegacyJsonFieldConflicts: false,
- features: undefined,
- uninterpretedOption: [],
- };
+ return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };
}
export const EnumOptions = {
@@ -4688,9 +3814,6 @@ export const EnumOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
}
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();
- }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4725,13 +3848,6 @@ export const EnumOptions = {
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
continue;
- case 7:
- if (tag !== 58) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
case 999:
if (tag !== 7994) {
break;
@@ -4755,7 +3871,6 @@ export const EnumOptions = {
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
? globalThis.Boolean(object.deprecatedLegacyJsonFieldConflicts)
: false,
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4773,9 +3888,6 @@ export const EnumOptions = {
if (message.deprecatedLegacyJsonFieldConflicts === true) {
obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
}
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4790,16 +3902,13 @@ export const EnumOptions = {
message.allowAlias = object.allowAlias ?? false;
message.deprecated = object.deprecated ?? false;
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseEnumValueOptions(): EnumValueOptions {
- return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] };
+ return { deprecated: false, uninterpretedOption: [] };
}
export const EnumValueOptions = {
@@ -4807,12 +3916,6 @@ export const EnumValueOptions = {
if (message.deprecated === true) {
writer.uint32(8).bool(message.deprecated);
}
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
- }
- if (message.debugRedact === true) {
- writer.uint32(24).bool(message.debugRedact);
- }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -4833,20 +3936,6 @@ export const EnumValueOptions = {
message.deprecated = reader.bool();
continue;
- case 2:
- if (tag !== 18) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
- case 3:
- if (tag !== 24) {
- break;
- }
-
- message.debugRedact = reader.bool();
- continue;
case 999:
if (tag !== 7994) {
break;
@@ -4866,8 +3955,6 @@ export const EnumValueOptions = {
fromJSON(object: any): EnumValueOptions {
return {
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
- debugRedact: isSet(object.debugRedact) ? globalThis.Boolean(object.debugRedact) : false,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -4879,12 +3966,6 @@ export const EnumValueOptions = {
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
- if (message.debugRedact === true) {
- obj.debugRedact = message.debugRedact;
- }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -4897,24 +3978,17 @@ export const EnumValueOptions = {
fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {
const message = createBaseEnumValueOptions();
message.deprecated = object.deprecated ?? false;
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
- message.debugRedact = object.debugRedact ?? false;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
};
function createBaseServiceOptions(): ServiceOptions {
- return { features: undefined, deprecated: false, uninterpretedOption: [] };
+ return { deprecated: false, uninterpretedOption: [] };
}
export const ServiceOptions = {
encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();
- }
if (message.deprecated === true) {
writer.uint32(264).bool(message.deprecated);
}
@@ -4931,13 +4005,6 @@ export const ServiceOptions = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
- case 34:
- if (tag !== 274) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
case 33:
if (tag !== 264) {
break;
@@ -4963,7 +4030,6 @@ export const ServiceOptions = {
fromJSON(object: any): ServiceOptions {
return {
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
@@ -4973,9 +4039,6 @@ export const ServiceOptions = {
toJSON(message: ServiceOptions): unknown {
const obj: any = {};
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
if (message.deprecated === true) {
obj.deprecated = message.deprecated;
}
@@ -4990,9 +4053,6 @@ export const ServiceOptions = {
},
fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {
const message = createBaseServiceOptions();
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
message.deprecated = object.deprecated ?? false;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
@@ -5000,7 +4060,7 @@ export const ServiceOptions = {
};
function createBaseMethodOptions(): MethodOptions {
- return { deprecated: false, idempotencyLevel: 0, features: undefined, uninterpretedOption: [] };
+ return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };
}
export const MethodOptions = {
@@ -5011,9 +4071,6 @@ export const MethodOptions = {
if (message.idempotencyLevel !== 0) {
writer.uint32(272).int32(message.idempotencyLevel);
}
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();
- }
for (const v of message.uninterpretedOption) {
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
}
@@ -5041,13 +4098,6 @@ export const MethodOptions = {
message.idempotencyLevel = reader.int32() as any;
continue;
- case 35:
- if (tag !== 282) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
case 999:
if (tag !== 7994) {
break;
@@ -5070,7 +4120,6 @@ export const MethodOptions = {
idempotencyLevel: isSet(object.idempotencyLevel)
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
: 0,
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)
? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
: [],
@@ -5085,9 +4134,6 @@ export const MethodOptions = {
if (message.idempotencyLevel !== 0) {
obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel);
}
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
if (message.uninterpretedOption?.length) {
obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e));
}
@@ -5101,9 +4147,6 @@ export const MethodOptions = {
const message = createBaseMethodOptions();
message.deprecated = object.deprecated ?? false;
message.idempotencyLevel = object.idempotencyLevel ?? 0;
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
return message;
},
@@ -5346,318 +4389,6 @@ export const UninterpretedOption_NamePart = {
},
};
-function createBaseFeatureSet(): FeatureSet {
- return {
- fieldPresence: 0,
- enumType: 0,
- repeatedFieldEncoding: 0,
- utf8Validation: 0,
- messageEncoding: 0,
- jsonFormat: 0,
- };
-}
-
-export const FeatureSet = {
- encode(message: FeatureSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.fieldPresence !== 0) {
- writer.uint32(8).int32(message.fieldPresence);
- }
- if (message.enumType !== 0) {
- writer.uint32(16).int32(message.enumType);
- }
- if (message.repeatedFieldEncoding !== 0) {
- writer.uint32(24).int32(message.repeatedFieldEncoding);
- }
- if (message.utf8Validation !== 0) {
- writer.uint32(32).int32(message.utf8Validation);
- }
- if (message.messageEncoding !== 0) {
- writer.uint32(40).int32(message.messageEncoding);
- }
- if (message.jsonFormat !== 0) {
- writer.uint32(48).int32(message.jsonFormat);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSet {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseFeatureSet();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 8) {
- break;
- }
-
- message.fieldPresence = reader.int32() as any;
- continue;
- case 2:
- if (tag !== 16) {
- break;
- }
-
- message.enumType = reader.int32() as any;
- continue;
- case 3:
- if (tag !== 24) {
- break;
- }
-
- message.repeatedFieldEncoding = reader.int32() as any;
- continue;
- case 4:
- if (tag !== 32) {
- break;
- }
-
- message.utf8Validation = reader.int32() as any;
- continue;
- case 5:
- if (tag !== 40) {
- break;
- }
-
- message.messageEncoding = reader.int32() as any;
- continue;
- case 6:
- if (tag !== 48) {
- break;
- }
-
- message.jsonFormat = reader.int32() as any;
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): FeatureSet {
- return {
- fieldPresence: isSet(object.fieldPresence) ? featureSet_FieldPresenceFromJSON(object.fieldPresence) : 0,
- enumType: isSet(object.enumType) ? featureSet_EnumTypeFromJSON(object.enumType) : 0,
- repeatedFieldEncoding: isSet(object.repeatedFieldEncoding)
- ? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)
- : 0,
- utf8Validation: isSet(object.utf8Validation) ? featureSet_Utf8ValidationFromJSON(object.utf8Validation) : 0,
- messageEncoding: isSet(object.messageEncoding) ? featureSet_MessageEncodingFromJSON(object.messageEncoding) : 0,
- jsonFormat: isSet(object.jsonFormat) ? featureSet_JsonFormatFromJSON(object.jsonFormat) : 0,
- };
- },
-
- toJSON(message: FeatureSet): unknown {
- const obj: any = {};
- if (message.fieldPresence !== 0) {
- obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence);
- }
- if (message.enumType !== 0) {
- obj.enumType = featureSet_EnumTypeToJSON(message.enumType);
- }
- if (message.repeatedFieldEncoding !== 0) {
- obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding);
- }
- if (message.utf8Validation !== 0) {
- obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation);
- }
- if (message.messageEncoding !== 0) {
- obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding);
- }
- if (message.jsonFormat !== 0) {
- obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat);
- }
- return obj;
- },
-
- create(base?: DeepPartial<FeatureSet>): FeatureSet {
- return FeatureSet.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<FeatureSet>): FeatureSet {
- const message = createBaseFeatureSet();
- message.fieldPresence = object.fieldPresence ?? 0;
- message.enumType = object.enumType ?? 0;
- message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 0;
- message.utf8Validation = object.utf8Validation ?? 0;
- message.messageEncoding = object.messageEncoding ?? 0;
- message.jsonFormat = object.jsonFormat ?? 0;
- return message;
- },
-};
-
-function createBaseFeatureSetDefaults(): FeatureSetDefaults {
- return { defaults: [], minimumEdition: 0, maximumEdition: 0 };
-}
-
-export const FeatureSetDefaults = {
- encode(message: FeatureSetDefaults, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- for (const v of message.defaults) {
- FeatureSetDefaults_FeatureSetEditionDefault.encode(v!, writer.uint32(10).fork()).ldelim();
- }
- if (message.minimumEdition !== 0) {
- writer.uint32(32).int32(message.minimumEdition);
- }
- if (message.maximumEdition !== 0) {
- writer.uint32(40).int32(message.maximumEdition);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseFeatureSetDefaults();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 10) {
- break;
- }
-
- message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));
- continue;
- case 4:
- if (tag !== 32) {
- break;
- }
-
- message.minimumEdition = reader.int32() as any;
- continue;
- case 5:
- if (tag !== 40) {
- break;
- }
-
- message.maximumEdition = reader.int32() as any;
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): FeatureSetDefaults {
- return {
- defaults: globalThis.Array.isArray(object?.defaults)
- ? object.defaults.map((e: any) => FeatureSetDefaults_FeatureSetEditionDefault.fromJSON(e))
- : [],
- minimumEdition: isSet(object.minimumEdition) ? editionFromJSON(object.minimumEdition) : 0,
- maximumEdition: isSet(object.maximumEdition) ? editionFromJSON(object.maximumEdition) : 0,
- };
- },
-
- toJSON(message: FeatureSetDefaults): unknown {
- const obj: any = {};
- if (message.defaults?.length) {
- obj.defaults = message.defaults.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e));
- }
- if (message.minimumEdition !== 0) {
- obj.minimumEdition = editionToJSON(message.minimumEdition);
- }
- if (message.maximumEdition !== 0) {
- obj.maximumEdition = editionToJSON(message.maximumEdition);
- }
- return obj;
- },
-
- create(base?: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {
- return FeatureSetDefaults.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<FeatureSetDefaults>): FeatureSetDefaults {
- const message = createBaseFeatureSetDefaults();
- message.defaults = object.defaults?.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];
- message.minimumEdition = object.minimumEdition ?? 0;
- message.maximumEdition = object.maximumEdition ?? 0;
- return message;
- },
-};
-
-function createBaseFeatureSetDefaults_FeatureSetEditionDefault(): FeatureSetDefaults_FeatureSetEditionDefault {
- return { edition: 0, features: undefined };
-}
-
-export const FeatureSetDefaults_FeatureSetEditionDefault = {
- encode(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.edition !== 0) {
- writer.uint32(24).int32(message.edition);
- }
- if (message.features !== undefined) {
- FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSetDefaults_FeatureSetEditionDefault {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 3:
- if (tag !== 24) {
- break;
- }
-
- message.edition = reader.int32() as any;
- continue;
- case 2:
- if (tag !== 18) {
- break;
- }
-
- message.features = FeatureSet.decode(reader, reader.uint32());
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): FeatureSetDefaults_FeatureSetEditionDefault {
- return {
- edition: isSet(object.edition) ? editionFromJSON(object.edition) : 0,
- features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined,
- };
- },
-
- toJSON(message: FeatureSetDefaults_FeatureSetEditionDefault): unknown {
- const obj: any = {};
- if (message.edition !== 0) {
- obj.edition = editionToJSON(message.edition);
- }
- if (message.features !== undefined) {
- obj.features = FeatureSet.toJSON(message.features);
- }
- return obj;
- },
-
- create(base?: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>): FeatureSetDefaults_FeatureSetEditionDefault {
- return FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(base ?? {});
- },
- fromPartial(
- object: DeepPartial<FeatureSetDefaults_FeatureSetEditionDefault>,
- ): FeatureSetDefaults_FeatureSetEditionDefault {
- const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
- message.edition = object.edition ?? 0;
- message.features = (object.features !== undefined && object.features !== null)
- ? FeatureSet.fromPartial(object.features)
- : undefined;
- return message;
- },
-};
-
function createBaseSourceCodeInfo(): SourceCodeInfo {
return { location: [] };
}
diff --git a/frontend/src/types/proto/google/protobuf/struct.ts b/frontend/src/types/proto/google/protobuf/struct.ts
index b87dbf5bac..dbdf7a289a 100644
--- a/frontend/src/types/proto/google/protobuf/struct.ts
+++ b/frontend/src/types/proto/google/protobuf/struct.ts
@@ -8,7 +8,7 @@ export const protobufPackage = "google.protobuf";
* `NullValue` is a singleton enumeration to represent the null value for the
* `Value` type union.
*
- * The JSON representation for `NullValue` is JSON `null`.
+ * The JSON representation for `NullValue` is JSON `null`.
*/
export enum NullValue {
/** NULL_VALUE - Null value. */
diff --git a/frontend/src/types/proto/google/protobuf/timestamp.ts b/frontend/src/types/proto/google/protobuf/timestamp.ts
index 5781891bc0..51695e08d0 100644
--- a/frontend/src/types/proto/google/protobuf/timestamp.ts
+++ b/frontend/src/types/proto/google/protobuf/timestamp.ts
@@ -92,7 +92,7 @@ export const protobufPackage = "google.protobuf";
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
- * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
+ * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
* ) to obtain a formatter capable of generating timestamps in this format.
*/
export interface Timestamp {
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index 0690dcb3a6..89991f8381 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -1042,6 +1042,7 @@ export interface TaskRun {
executionStatusUpdateTime: Date | undefined;
executionDetail: TaskRun_ExecutionDetail | undefined;
startTime: Date | undefined;
+ exportArchiveStatus: TaskRun_ExportArchiveStatus;
}
export enum TaskRun_Status {
@@ -1146,6 +1147,45 @@ export function taskRun_ExecutionStatusToJSON(object: TaskRun_ExecutionStatus):
}
}
+export enum TaskRun_ExportArchiveStatus {
+ EXPORT_ARCHIVE_STATUS_UNSPECIFIED = 0,
+ READY = 1,
+ EXPORTED = 2,
+ UNRECOGNIZED = -1,
+}
+
+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 {
+ switch (object) {
+ case TaskRun_ExportArchiveStatus.EXPORT_ARCHIVE_STATUS_UNSPECIFIED:
+ return "EXPORT_ARCHIVE_STATUS_UNSPECIFIED";
+ case TaskRun_ExportArchiveStatus.READY:
+ return "READY";
+ case TaskRun_ExportArchiveStatus.EXPORTED:
+ return "EXPORTED";
+ case TaskRun_ExportArchiveStatus.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
export interface TaskRun_ExecutionDetail {
/** Currently, the following fields are only used for EXECUTING status. */
commandsTotal: number;
@@ -5606,6 +5646,7 @@ function createBaseTaskRun(): TaskRun {
executionStatusUpdateTime: undefined,
executionDetail: undefined,
startTime: undefined,
+ exportArchiveStatus: 0,
};
}
@@ -5656,6 +5697,9 @@ export const TaskRun = {
if (message.startTime !== undefined) {
Timestamp.encode(toTimestamp(message.startTime), writer.uint32(114).fork()).ldelim();
}
+ if (message.exportArchiveStatus !== 0) {
+ writer.uint32(128).int32(message.exportArchiveStatus);
+ }
return writer;
},
@@ -5771,6 +5815,13 @@ export const TaskRun = {
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
continue;
+ case 16:
+ if (tag !== 128) {
+ break;
+ }
+
+ message.exportArchiveStatus = reader.int32() as any;
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -5801,6 +5852,9 @@ export const TaskRun = {
? TaskRun_ExecutionDetail.fromJSON(object.executionDetail)
: undefined,
startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : undefined,
+ exportArchiveStatus: isSet(object.exportArchiveStatus)
+ ? taskRun_ExportArchiveStatusFromJSON(object.exportArchiveStatus)
+ : 0,
};
},
@@ -5851,6 +5905,9 @@ export const TaskRun = {
if (message.startTime !== undefined) {
obj.startTime = message.startTime.toISOString();
}
+ if (message.exportArchiveStatus !== 0) {
+ obj.exportArchiveStatus = taskRun_ExportArchiveStatusToJSON(message.exportArchiveStatus);
+ }
return obj;
},
@@ -5876,6 +5933,7 @@ export const TaskRun = {
? TaskRun_ExecutionDetail.fromPartial(object.executionDetail)
: undefined;
message.startTime = object.startTime ?? undefined;
+ message.exportArchiveStatus = object.exportArchiveStatus ?? 0;
return message;
},
};
diff --git a/frontend/src/types/proto/v1/sql_service.ts b/frontend/src/types/proto/v1/sql_service.ts
index df5a6b6fa3..8f91ce03e5 100644
--- a/frontend/src/types/proto/v1/sql_service.ts
+++ b/frontend/src/types/proto/v1/sql_service.ts
@@ -2875,7 +2875,7 @@ export const SQLServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 79,
+ 120,
58,
1,
42,
@@ -2912,6 +2912,47 @@ export const SQLServiceDefinition = {
111,
114,
116,
+ 90,
+ 39,
+ 34,
+ 37,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 110,
+ 97,
+ 109,
+ 101,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
+ 42,
+ 47,
+ 105,
+ 115,
+ 115,
+ 117,
+ 101,
+ 115,
+ 47,
+ 42,
+ 125,
+ 58,
+ 101,
+ 120,
+ 112,
+ 111,
+ 114,
+ 116,
34,
41,
47,
diff --git a/frontend/src/types/v1/issue/rollout.ts b/frontend/src/types/v1/issue/rollout.ts
index 5b9287cfc8..26065eae5d 100644
--- a/frontend/src/types/v1/issue/rollout.ts
+++ b/frontend/src/types/v1/issue/rollout.ts
@@ -69,6 +69,7 @@ export const TaskTypeListWithStatement: Task_Type[] = [
Task_Type.DATABASE_SCHEMA_UPDATE,
Task_Type.DATABASE_SCHEMA_UPDATE_SDL,
Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC,
+ Task_Type.DATABASE_DATA_EXPORT,
];
export const TaskTypeListWithProgress: Task_Type[] = [
diff --git a/frontend/src/utils/v1/issue/issue.ts b/frontend/src/utils/v1/issue/issue.ts
index 4bed8f2e22..10beee00cf 100644
--- a/frontend/src/utils/v1/issue/issue.ts
+++ b/frontend/src/utils/v1/issue/issue.ts
@@ -14,10 +14,6 @@ export const extractIssueUID = (name: string) => {
return matches?.[1] ?? "";
};
-export const isGrantRequestIssue = (issue: ComposedIssue): boolean => {
- return issue.type === Issue_Type.GRANT_REQUEST;
-};
-
export const flattenTaskV1List = (rollout: Rollout) => {
return rollout.stages.flatMap((stage) => stage.tasks);
};
@@ -26,7 +22,7 @@ export const flattenSpecList = (plan: Plan) => {
return plan.steps.flatMap((step) => step.specs);
};
-export const isDatabaseRelatedIssue = (issue: ComposedIssue): boolean => {
+export const isDatabaseChangeRelatedIssue = (issue: ComposedIssue): boolean => {
return flattenTaskV1List(issue.rolloutEntity).some((task) => {
const DATABASE_RELATED_TASK_TYPE_LIST = [
Task_Type.DATABASE_CREATE,
@@ -40,3 +36,11 @@ export const isDatabaseRelatedIssue = (issue: ComposedIssue): boolean => {
return DATABASE_RELATED_TASK_TYPE_LIST.includes(task.type);
});
};
+
+export const isGrantRequestIssue = (issue: ComposedIssue): boolean => {
+ return issue.type === Issue_Type.GRANT_REQUEST;
+};
+
+export const isDatabaseDataExportIssue = (issue: ComposedIssue): boolean => {
+ return issue.type === Issue_Type.DATABASE_DATA_EXPORT;
+};
diff --git a/frontend/src/utils/v1/issue/rollout.ts b/frontend/src/utils/v1/issue/rollout.ts
index 92ecf891c1..4008753fd7 100644
--- a/frontend/src/utils/v1/issue/rollout.ts
+++ b/frontend/src/utils/v1/issue/rollout.ts
@@ -119,6 +119,7 @@ export const sheetNameOfTaskV1 = (task: Task): string => {
task.databaseCreate?.sheet ??
task.databaseDataUpdate?.sheet ??
task.databaseSchemaUpdate?.sheet ??
+ task.databaseDataExport?.sheet ??
""
);
};
@@ -130,6 +131,8 @@ export const setSheetNameForTask = (task: Task, sheetName: string) => {
task.databaseDataUpdate.sheet = sheetName;
} else if (task.databaseSchemaUpdate) {
task.databaseSchemaUpdate.sheet = sheetName;
+ } else if (task.databaseDataExport) {
+ task.databaseDataExport.sheet = sheetName;
}
};
diff --git a/frontend/src/views/IssueDetailV1.vue b/frontend/src/views/IssueDetailV1.vue
index d447605ca6..a91fcbe37c 100644
--- a/frontend/src/views/IssueDetailV1.vue
+++ b/frontend/src/views/IssueDetailV1.vue
@@ -1,8 +1,9 @@
<template>
<div class="w-full h-full relative overflow-x-hidden">
<template v-if="ready">
- <IssueDetailPage v-if="!isGrantRequestIssue(issue)" />
- <GrantRequestIssueDetailPage v-else />
+ <GrantRequestIssueDetailPage v-if="isGrantRequestIssue(issue)" />
+ <DataExportIssueDetailPage v-else-if="isDatabaseDataExportIssue(issue)" />
+ <IssueDetailPage v-else />
</template>
<div v-else class="w-full h-full flex flex-col items-center justify-center">
<NSpin />
@@ -21,6 +22,7 @@ import { NSpin } from "naive-ui";
import { computed, onMounted, reactive } from "vue";
import { useI18n } from "vue-i18n";
import {
+ DataExportIssueDetailPage,
GrantRequestIssueDetailPage,
IssueDetailPage,
provideIssueContext,
@@ -29,7 +31,7 @@ import {
} from "@/components/IssueV1";
import { useUIStateStore } from "@/store";
import { UNKNOWN_ID } from "@/types";
-import { isGrantRequestIssue } from "@/utils";
+import { isGrantRequestIssue, isDatabaseDataExportIssue } from "@/utils";
interface LocalState {
showFeatureModal: boolean;
diff --git a/frontend/src/views/project/ProjectIssueDetail.vue b/frontend/src/views/project/ProjectIssueDetail.vue
index 58d4cf7ec1..93b44d9ff2 100644
--- a/frontend/src/views/project/ProjectIssueDetail.vue
+++ b/frontend/src/views/project/ProjectIssueDetail.vue
@@ -1,8 +1,9 @@
<template>
<div class="-mx-4 h-full relative overflow-x-hidden">
<template v-if="ready">
- <IssueDetailPage v-if="!isGrantRequestIssue(issue)" />
- <GrantRequestIssueDetailPage v-else />
+ <GrantRequestIssueDetailPage v-if="isGrantRequestIssue(issue)" />
+ <DataExportIssueDetailPage v-else-if="isDatabaseDataExportIssue(issue)" />
+ <IssueDetailPage v-else />
</template>
<div v-else class="w-full h-full flex flex-col items-center justify-center">
<NSpin />
@@ -21,6 +22,7 @@ import { NSpin } from "naive-ui";
import { computed, onMounted, reactive, toRef } from "vue";
import { useI18n } from "vue-i18n";
import {
+ DataExportIssueDetailPage,
GrantRequestIssueDetailPage,
IssueDetailPage,
provideIssueContext,
@@ -30,7 +32,7 @@ import {
import { useBodyLayoutContext } from "@/layouts/common";
import { useUIStateStore } from "@/store";
import { UNKNOWN_ID } from "@/types";
-import { isGrantRequestIssue } from "@/utils";
+import { isGrantRequestIssue, isDatabaseDataExportIssue } from "@/utils";
interface LocalState {
showFeatureModal: boolean;
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 52e0de84a5..936c2dfa0f 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -478,6 +478,7 @@
- [Task.Status](#bytebase-v1-Task-Status)
- [Task.Type](#bytebase-v1-Task-Type)
- [TaskRun.ExecutionStatus](#bytebase-v1-TaskRun-ExecutionStatus)
+ - [TaskRun.ExportArchiveStatus](#bytebase-v1-TaskRun-ExportArchiveStatus)
- [TaskRun.Status](#bytebase-v1-TaskRun-Status)
- [RolloutService](#bytebase-v1-RolloutService)
@@ -7704,6 +7705,7 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat
| execution_status_update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last execution status update timestamp. |
| execution_detail | [TaskRun.ExecutionDetail](#bytebase-v1-TaskRun-ExecutionDetail) | | |
| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
+| export_archive_status | [TaskRun.ExportArchiveStatus](#bytebase-v1-TaskRun-ExportArchiveStatus) | | |
@@ -7893,6 +7895,19 @@ Type is the database change type.
+<a name="bytebase-v1-TaskRun-ExportArchiveStatus"></a>
+
+### TaskRun.ExportArchiveStatus
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| EXPORT_ARCHIVE_STATUS_UNSPECIFIED | 0 | |
+| READY | 1 | |
+| EXPORTED | 2 | |
+
+
+
<a name="bytebase-v1-TaskRun-Status"></a>
### TaskRun.Status
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 9e1e125a71..c970712e61 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -2011,6 +2011,10 @@
<a href="#bytebase.v1.TaskRun.ExecutionStatus"><span class="badge">E</span>TaskRun.ExecutionStatus</a>
</li>
+ <li>
+ <a href="#bytebase.v1.TaskRun.ExportArchiveStatus"><span class="badge">E</span>TaskRun.ExportArchiveStatus</a>
+ </li>
+
<li>
<a href="#bytebase.v1.TaskRun.Status"><span class="badge">E</span>TaskRun.Status</a>
</li>
@@ -21483,6 +21487,13 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory
<td><p> </p></td>
</tr>
+ <tr>
+ <td>export_archive_status</td>
+ <td><a href="#bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
</tbody>
</table>
@@ -21986,6 +21997,35 @@ Format: projects/{project}/plans/{plan} </p></td>
</tbody>
</table>
+ <h3 id="bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>EXPORT_ARCHIVE_STATUS_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>READY</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>EXPORTED</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
<h3 id="bytebase.v1.TaskRun.Status">TaskRun.Status</h3>
<p></p>
<table class="enum-table">
@@ -25938,6 +25978,13 @@ to retrieve the next page of history. </p></td>
<td></td>
</tr>
+ <tr>
+ <td>Export</td>
+ <td>POST</td>
+ <td>/v1/{name=projects/*/issues/*}:export</td>
+ <td></td>
+ </tr>
+
diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.go
index 205d2c81fe..4c8cf151b3 100644
--- a/proto/generated-go/v1/rollout_service.pb.go
+++ b/proto/generated-go/v1/rollout_service.pb.go
@@ -564,6 +564,55 @@ func (TaskRun_ExecutionStatus) EnumDescriptor() ([]byte, []int) {
return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 1}
}
+type TaskRun_ExportArchiveStatus int32
+
+const (
+ TaskRun_EXPORT_ARCHIVE_STATUS_UNSPECIFIED TaskRun_ExportArchiveStatus = 0
+ TaskRun_READY TaskRun_ExportArchiveStatus = 1
+ TaskRun_EXPORTED TaskRun_ExportArchiveStatus = 2
+)
+
+// Enum value maps for TaskRun_ExportArchiveStatus.
+var (
+ TaskRun_ExportArchiveStatus_name = map[int32]string{
+ 0: "EXPORT_ARCHIVE_STATUS_UNSPECIFIED",
+ 1: "READY",
+ 2: "EXPORTED",
+ }
+ TaskRun_ExportArchiveStatus_value = map[string]int32{
+ "EXPORT_ARCHIVE_STATUS_UNSPECIFIED": 0,
+ "READY": 1,
+ "EXPORTED": 2,
+ }
+)
+
+func (x TaskRun_ExportArchiveStatus) Enum() *TaskRun_ExportArchiveStatus {
+ p := new(TaskRun_ExportArchiveStatus)
+ *p = x
+ return p
+}
+
+func (x TaskRun_ExportArchiveStatus) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (TaskRun_ExportArchiveStatus) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_rollout_service_proto_enumTypes[9].Descriptor()
+}
+
+func (TaskRun_ExportArchiveStatus) Type() protoreflect.EnumType {
+ return &file_v1_rollout_service_proto_enumTypes[9]
+}
+
+func (x TaskRun_ExportArchiveStatus) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use TaskRun_ExportArchiveStatus.Descriptor instead.
+func (TaskRun_ExportArchiveStatus) EnumDescriptor() ([]byte, []int) {
+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{25, 2}
+}
+
type GetPlanRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -2301,9 +2350,10 @@ type TaskRun struct {
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"`
+ 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() {
@@ -2443,6 +2493,13 @@ func (x *TaskRun) GetStartTime() *timestamppb.Timestamp {
return nil
}
+func (x *TaskRun) GetExportArchiveStatus() TaskRun_ExportArchiveStatus {
+ if x != nil {
+ return x.ExportArchiveStatus
+ }
+ return TaskRun_EXPORT_ARCHIVE_STATUS_UNSPECIFIED
+}
+
type Plan_Step struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -4431,8 +4488,8 @@ var file_v1_rollout_service_proto_rawDesc = []byte{
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, 0x8f,
- 0x0a, 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
+ 0x54, 0x10, 0x0c, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xc4,
+ 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, 0x15,
0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03,
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
@@ -4477,165 +4534,176 @@ var file_v1_rollout_service_proto_rawDesc = []byte{
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, 0x03, 0xe0,
- 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 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,
- 0x32, 0x85, 0x0f, 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,
+ 0x41, 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, 0x32, 0x85, 0x0f, 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, 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, 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,
+ 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, 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, 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,
+ 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 (
@@ -4650,7 +4718,7 @@ func file_v1_rollout_service_proto_rawDescGZIP() []byte {
return file_v1_rollout_service_proto_rawDescData
}
-var file_v1_rollout_service_proto_enumTypes = make([]protoimpl.EnumInfo, 9)
+var file_v1_rollout_service_proto_enumTypes = make([]protoimpl.EnumInfo, 10)
var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 47)
var file_v1_rollout_service_proto_goTypes = []interface{}{
(Plan_ChangeDatabaseConfig_Type)(0), // 0: bytebase.v1.Plan.ChangeDatabaseConfig.Type
@@ -4662,140 +4730,142 @@ var file_v1_rollout_service_proto_goTypes = []interface{}{
(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
- (*GetPlanRequest)(nil), // 9: bytebase.v1.GetPlanRequest
- (*ListPlansRequest)(nil), // 10: bytebase.v1.ListPlansRequest
- (*ListPlansResponse)(nil), // 11: bytebase.v1.ListPlansResponse
- (*CreatePlanRequest)(nil), // 12: bytebase.v1.CreatePlanRequest
- (*UpdatePlanRequest)(nil), // 13: bytebase.v1.UpdatePlanRequest
- (*Plan)(nil), // 14: bytebase.v1.Plan
- (*ListPlanCheckRunsRequest)(nil), // 15: bytebase.v1.ListPlanCheckRunsRequest
- (*ListPlanCheckRunsResponse)(nil), // 16: bytebase.v1.ListPlanCheckRunsResponse
- (*RunPlanChecksRequest)(nil), // 17: bytebase.v1.RunPlanChecksRequest
- (*RunPlanChecksResponse)(nil), // 18: bytebase.v1.RunPlanChecksResponse
- (*BatchRunTasksRequest)(nil), // 19: bytebase.v1.BatchRunTasksRequest
- (*BatchRunTasksResponse)(nil), // 20: bytebase.v1.BatchRunTasksResponse
- (*BatchSkipTasksRequest)(nil), // 21: bytebase.v1.BatchSkipTasksRequest
- (*BatchSkipTasksResponse)(nil), // 22: bytebase.v1.BatchSkipTasksResponse
- (*BatchCancelTaskRunsRequest)(nil), // 23: bytebase.v1.BatchCancelTaskRunsRequest
- (*BatchCancelTaskRunsResponse)(nil), // 24: bytebase.v1.BatchCancelTaskRunsResponse
- (*PlanCheckRun)(nil), // 25: bytebase.v1.PlanCheckRun
- (*GetRolloutRequest)(nil), // 26: bytebase.v1.GetRolloutRequest
- (*CreateRolloutRequest)(nil), // 27: bytebase.v1.CreateRolloutRequest
- (*PreviewRolloutRequest)(nil), // 28: bytebase.v1.PreviewRolloutRequest
- (*ListTaskRunsRequest)(nil), // 29: bytebase.v1.ListTaskRunsRequest
- (*ListTaskRunsResponse)(nil), // 30: bytebase.v1.ListTaskRunsResponse
- (*Rollout)(nil), // 31: bytebase.v1.Rollout
- (*Stage)(nil), // 32: bytebase.v1.Stage
- (*Task)(nil), // 33: bytebase.v1.Task
- (*TaskRun)(nil), // 34: bytebase.v1.TaskRun
- (*Plan_Step)(nil), // 35: bytebase.v1.Plan.Step
- (*Plan_Spec)(nil), // 36: bytebase.v1.Plan.Spec
- (*Plan_CreateDatabaseConfig)(nil), // 37: bytebase.v1.Plan.CreateDatabaseConfig
- (*Plan_ChangeDatabaseConfig)(nil), // 38: bytebase.v1.Plan.ChangeDatabaseConfig
- (*Plan_ExportDataConfig)(nil), // 39: bytebase.v1.Plan.ExportDataConfig
- (*Plan_VCSSource)(nil), // 40: bytebase.v1.Plan.VCSSource
- nil, // 41: bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry
- (*Plan_ChangeDatabaseConfig_RollbackDetail)(nil), // 42: bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail
- nil, // 43: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry
- (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 44: bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail
- (*PlanCheckRun_Result)(nil), // 45: bytebase.v1.PlanCheckRun.Result
- (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 46: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
- (*PlanCheckRun_Result_SqlReviewReport)(nil), // 47: bytebase.v1.PlanCheckRun.Result.SqlReviewReport
- (*Task_DatabaseCreate)(nil), // 48: bytebase.v1.Task.DatabaseCreate
- (*Task_DatabaseSchemaBaseline)(nil), // 49: bytebase.v1.Task.DatabaseSchemaBaseline
- (*Task_DatabaseSchemaUpdate)(nil), // 50: bytebase.v1.Task.DatabaseSchemaUpdate
- (*Task_DatabaseDataUpdate)(nil), // 51: bytebase.v1.Task.DatabaseDataUpdate
- (*Task_DatabaseDataExport)(nil), // 52: bytebase.v1.Task.DatabaseDataExport
- nil, // 53: bytebase.v1.Task.DatabaseCreate.LabelsEntry
- (*TaskRun_ExecutionDetail)(nil), // 54: bytebase.v1.TaskRun.ExecutionDetail
- (*TaskRun_ExecutionDetail_Position)(nil), // 55: bytebase.v1.TaskRun.ExecutionDetail.Position
- (*fieldmaskpb.FieldMask)(nil), // 56: google.protobuf.FieldMask
- (*timestamppb.Timestamp)(nil), // 57: google.protobuf.Timestamp
- (ExportFormat)(0), // 58: bytebase.v1.ExportFormat
- (*ChangedResources)(nil), // 59: bytebase.v1.ChangedResources
+ (TaskRun_ExportArchiveStatus)(0), // 9: bytebase.v1.TaskRun.ExportArchiveStatus
+ (*GetPlanRequest)(nil), // 10: bytebase.v1.GetPlanRequest
+ (*ListPlansRequest)(nil), // 11: bytebase.v1.ListPlansRequest
+ (*ListPlansResponse)(nil), // 12: bytebase.v1.ListPlansResponse
+ (*CreatePlanRequest)(nil), // 13: bytebase.v1.CreatePlanRequest
+ (*UpdatePlanRequest)(nil), // 14: bytebase.v1.UpdatePlanRequest
+ (*Plan)(nil), // 15: bytebase.v1.Plan
+ (*ListPlanCheckRunsRequest)(nil), // 16: bytebase.v1.ListPlanCheckRunsRequest
+ (*ListPlanCheckRunsResponse)(nil), // 17: bytebase.v1.ListPlanCheckRunsResponse
+ (*RunPlanChecksRequest)(nil), // 18: bytebase.v1.RunPlanChecksRequest
+ (*RunPlanChecksResponse)(nil), // 19: bytebase.v1.RunPlanChecksResponse
+ (*BatchRunTasksRequest)(nil), // 20: bytebase.v1.BatchRunTasksRequest
+ (*BatchRunTasksResponse)(nil), // 21: bytebase.v1.BatchRunTasksResponse
+ (*BatchSkipTasksRequest)(nil), // 22: bytebase.v1.BatchSkipTasksRequest
+ (*BatchSkipTasksResponse)(nil), // 23: bytebase.v1.BatchSkipTasksResponse
+ (*BatchCancelTaskRunsRequest)(nil), // 24: bytebase.v1.BatchCancelTaskRunsRequest
+ (*BatchCancelTaskRunsResponse)(nil), // 25: bytebase.v1.BatchCancelTaskRunsResponse
+ (*PlanCheckRun)(nil), // 26: bytebase.v1.PlanCheckRun
+ (*GetRolloutRequest)(nil), // 27: bytebase.v1.GetRolloutRequest
+ (*CreateRolloutRequest)(nil), // 28: bytebase.v1.CreateRolloutRequest
+ (*PreviewRolloutRequest)(nil), // 29: bytebase.v1.PreviewRolloutRequest
+ (*ListTaskRunsRequest)(nil), // 30: bytebase.v1.ListTaskRunsRequest
+ (*ListTaskRunsResponse)(nil), // 31: bytebase.v1.ListTaskRunsResponse
+ (*Rollout)(nil), // 32: bytebase.v1.Rollout
+ (*Stage)(nil), // 33: bytebase.v1.Stage
+ (*Task)(nil), // 34: bytebase.v1.Task
+ (*TaskRun)(nil), // 35: bytebase.v1.TaskRun
+ (*Plan_Step)(nil), // 36: bytebase.v1.Plan.Step
+ (*Plan_Spec)(nil), // 37: bytebase.v1.Plan.Spec
+ (*Plan_CreateDatabaseConfig)(nil), // 38: bytebase.v1.Plan.CreateDatabaseConfig
+ (*Plan_ChangeDatabaseConfig)(nil), // 39: bytebase.v1.Plan.ChangeDatabaseConfig
+ (*Plan_ExportDataConfig)(nil), // 40: bytebase.v1.Plan.ExportDataConfig
+ (*Plan_VCSSource)(nil), // 41: bytebase.v1.Plan.VCSSource
+ nil, // 42: bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry
+ (*Plan_ChangeDatabaseConfig_RollbackDetail)(nil), // 43: bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail
+ nil, // 44: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry
+ (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 45: bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail
+ (*PlanCheckRun_Result)(nil), // 46: bytebase.v1.PlanCheckRun.Result
+ (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 47: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
+ (*PlanCheckRun_Result_SqlReviewReport)(nil), // 48: bytebase.v1.PlanCheckRun.Result.SqlReviewReport
+ (*Task_DatabaseCreate)(nil), // 49: bytebase.v1.Task.DatabaseCreate
+ (*Task_DatabaseSchemaBaseline)(nil), // 50: bytebase.v1.Task.DatabaseSchemaBaseline
+ (*Task_DatabaseSchemaUpdate)(nil), // 51: bytebase.v1.Task.DatabaseSchemaUpdate
+ (*Task_DatabaseDataUpdate)(nil), // 52: bytebase.v1.Task.DatabaseDataUpdate
+ (*Task_DatabaseDataExport)(nil), // 53: bytebase.v1.Task.DatabaseDataExport
+ nil, // 54: bytebase.v1.Task.DatabaseCreate.LabelsEntry
+ (*TaskRun_ExecutionDetail)(nil), // 55: bytebase.v1.TaskRun.ExecutionDetail
+ (*TaskRun_ExecutionDetail_Position)(nil), // 56: bytebase.v1.TaskRun.ExecutionDetail.Position
+ (*fieldmaskpb.FieldMask)(nil), // 57: google.protobuf.FieldMask
+ (*timestamppb.Timestamp)(nil), // 58: google.protobuf.Timestamp
+ (ExportFormat)(0), // 59: bytebase.v1.ExportFormat
+ (*ChangedResources)(nil), // 60: bytebase.v1.ChangedResources
}
var file_v1_rollout_service_proto_depIdxs = []int32{
- 14, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan
- 14, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan
- 14, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan
- 56, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask
- 35, // 4: bytebase.v1.Plan.steps:type_name -> bytebase.v1.Plan.Step
- 25, // 5: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun
+ 15, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan
+ 15, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan
+ 15, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan
+ 57, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 36, // 4: bytebase.v1.Plan.steps:type_name -> bytebase.v1.Plan.Step
+ 26, // 5: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun
1, // 6: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type
2, // 7: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status
- 45, // 8: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result
- 57, // 9: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp
- 31, // 10: bytebase.v1.CreateRolloutRequest.rollout:type_name -> bytebase.v1.Rollout
- 14, // 11: bytebase.v1.PreviewRolloutRequest.plan:type_name -> bytebase.v1.Plan
- 34, // 12: bytebase.v1.ListTaskRunsResponse.task_runs:type_name -> bytebase.v1.TaskRun
- 32, // 13: bytebase.v1.Rollout.stages:type_name -> bytebase.v1.Stage
- 33, // 14: bytebase.v1.Stage.tasks:type_name -> bytebase.v1.Task
+ 46, // 8: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result
+ 58, // 9: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp
+ 32, // 10: bytebase.v1.CreateRolloutRequest.rollout:type_name -> bytebase.v1.Rollout
+ 15, // 11: bytebase.v1.PreviewRolloutRequest.plan:type_name -> bytebase.v1.Plan
+ 35, // 12: bytebase.v1.ListTaskRunsResponse.task_runs:type_name -> bytebase.v1.TaskRun
+ 33, // 13: bytebase.v1.Rollout.stages:type_name -> bytebase.v1.Stage
+ 34, // 14: bytebase.v1.Stage.tasks:type_name -> bytebase.v1.Task
4, // 15: bytebase.v1.Task.status:type_name -> bytebase.v1.Task.Status
5, // 16: bytebase.v1.Task.type:type_name -> bytebase.v1.Task.Type
- 48, // 17: bytebase.v1.Task.database_create:type_name -> bytebase.v1.Task.DatabaseCreate
- 49, // 18: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline
- 50, // 19: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate
- 51, // 20: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate
- 52, // 21: bytebase.v1.Task.database_data_export:type_name -> bytebase.v1.Task.DatabaseDataExport
- 57, // 22: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp
- 57, // 23: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp
+ 49, // 17: bytebase.v1.Task.database_create:type_name -> bytebase.v1.Task.DatabaseCreate
+ 50, // 18: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline
+ 51, // 19: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate
+ 52, // 20: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate
+ 53, // 21: bytebase.v1.Task.database_data_export:type_name -> bytebase.v1.Task.DatabaseDataExport
+ 58, // 22: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp
+ 58, // 23: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp
7, // 24: bytebase.v1.TaskRun.status:type_name -> bytebase.v1.TaskRun.Status
8, // 25: bytebase.v1.TaskRun.execution_status:type_name -> bytebase.v1.TaskRun.ExecutionStatus
- 57, // 26: bytebase.v1.TaskRun.execution_status_update_time:type_name -> google.protobuf.Timestamp
- 54, // 27: bytebase.v1.TaskRun.execution_detail:type_name -> bytebase.v1.TaskRun.ExecutionDetail
- 57, // 28: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp
- 36, // 29: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec
- 57, // 30: bytebase.v1.Plan.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp
- 37, // 31: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig
- 38, // 32: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig
- 39, // 33: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig
- 40, // 34: bytebase.v1.Plan.Spec.vcs_source:type_name -> bytebase.v1.Plan.VCSSource
- 41, // 35: bytebase.v1.Plan.CreateDatabaseConfig.labels:type_name -> bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry
- 0, // 36: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type
- 42, // 37: bytebase.v1.Plan.ChangeDatabaseConfig.rollback_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail
- 43, // 38: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry
- 44, // 39: bytebase.v1.Plan.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail
- 58, // 40: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat
- 3, // 41: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status
- 46, // 42: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
- 47, // 43: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport
- 59, // 44: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources
- 53, // 45: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry
- 6, // 46: bytebase.v1.Task.DatabaseDataUpdate.rollback_sql_status:type_name -> bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus
- 58, // 47: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat
- 55, // 48: bytebase.v1.TaskRun.ExecutionDetail.command_start_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position
- 55, // 49: bytebase.v1.TaskRun.ExecutionDetail.command_end_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position
- 9, // 50: bytebase.v1.RolloutService.GetPlan:input_type -> bytebase.v1.GetPlanRequest
- 10, // 51: bytebase.v1.RolloutService.ListPlans:input_type -> bytebase.v1.ListPlansRequest
- 12, // 52: bytebase.v1.RolloutService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest
- 13, // 53: bytebase.v1.RolloutService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest
- 26, // 54: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest
- 27, // 55: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest
- 28, // 56: bytebase.v1.RolloutService.PreviewRollout:input_type -> bytebase.v1.PreviewRolloutRequest
- 29, // 57: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest
- 15, // 58: bytebase.v1.RolloutService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest
- 17, // 59: bytebase.v1.RolloutService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest
- 19, // 60: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest
- 21, // 61: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest
- 23, // 62: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest
- 14, // 63: bytebase.v1.RolloutService.GetPlan:output_type -> bytebase.v1.Plan
- 11, // 64: bytebase.v1.RolloutService.ListPlans:output_type -> bytebase.v1.ListPlansResponse
- 14, // 65: bytebase.v1.RolloutService.CreatePlan:output_type -> bytebase.v1.Plan
- 14, // 66: bytebase.v1.RolloutService.UpdatePlan:output_type -> bytebase.v1.Plan
- 31, // 67: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout
- 31, // 68: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout
- 31, // 69: bytebase.v1.RolloutService.PreviewRollout:output_type -> bytebase.v1.Rollout
- 30, // 70: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse
- 16, // 71: bytebase.v1.RolloutService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse
- 18, // 72: bytebase.v1.RolloutService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse
- 20, // 73: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse
- 22, // 74: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse
- 24, // 75: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse
- 63, // [63:76] is the sub-list for method output_type
- 50, // [50:63] is the sub-list for method input_type
- 50, // [50:50] is the sub-list for extension type_name
- 50, // [50:50] is the sub-list for extension extendee
- 0, // [0:50] is the sub-list for field type_name
+ 58, // 26: bytebase.v1.TaskRun.execution_status_update_time:type_name -> google.protobuf.Timestamp
+ 55, // 27: bytebase.v1.TaskRun.execution_detail:type_name -> bytebase.v1.TaskRun.ExecutionDetail
+ 58, // 28: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp
+ 9, // 29: bytebase.v1.TaskRun.export_archive_status:type_name -> bytebase.v1.TaskRun.ExportArchiveStatus
+ 37, // 30: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec
+ 58, // 31: bytebase.v1.Plan.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp
+ 38, // 32: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig
+ 39, // 33: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig
+ 40, // 34: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig
+ 41, // 35: bytebase.v1.Plan.Spec.vcs_source:type_name -> bytebase.v1.Plan.VCSSource
+ 42, // 36: bytebase.v1.Plan.CreateDatabaseConfig.labels:type_name -> bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry
+ 0, // 37: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type
+ 43, // 38: bytebase.v1.Plan.ChangeDatabaseConfig.rollback_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.RollbackDetail
+ 44, // 39: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry
+ 45, // 40: bytebase.v1.Plan.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail
+ 59, // 41: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat
+ 3, // 42: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status
+ 47, // 43: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
+ 48, // 44: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport
+ 60, // 45: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources
+ 54, // 46: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry
+ 6, // 47: bytebase.v1.Task.DatabaseDataUpdate.rollback_sql_status:type_name -> bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus
+ 59, // 48: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat
+ 56, // 49: bytebase.v1.TaskRun.ExecutionDetail.command_start_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position
+ 56, // 50: bytebase.v1.TaskRun.ExecutionDetail.command_end_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position
+ 10, // 51: bytebase.v1.RolloutService.GetPlan:input_type -> bytebase.v1.GetPlanRequest
+ 11, // 52: bytebase.v1.RolloutService.ListPlans:input_type -> bytebase.v1.ListPlansRequest
+ 13, // 53: bytebase.v1.RolloutService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest
+ 14, // 54: bytebase.v1.RolloutService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest
+ 27, // 55: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest
+ 28, // 56: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest
+ 29, // 57: bytebase.v1.RolloutService.PreviewRollout:input_type -> bytebase.v1.PreviewRolloutRequest
+ 30, // 58: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest
+ 16, // 59: bytebase.v1.RolloutService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest
+ 18, // 60: bytebase.v1.RolloutService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest
+ 20, // 61: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest
+ 22, // 62: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest
+ 24, // 63: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest
+ 15, // 64: bytebase.v1.RolloutService.GetPlan:output_type -> bytebase.v1.Plan
+ 12, // 65: bytebase.v1.RolloutService.ListPlans:output_type -> bytebase.v1.ListPlansResponse
+ 15, // 66: bytebase.v1.RolloutService.CreatePlan:output_type -> bytebase.v1.Plan
+ 15, // 67: bytebase.v1.RolloutService.UpdatePlan:output_type -> bytebase.v1.Plan
+ 32, // 68: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout
+ 32, // 69: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout
+ 32, // 70: bytebase.v1.RolloutService.PreviewRollout:output_type -> bytebase.v1.Rollout
+ 31, // 71: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse
+ 17, // 72: bytebase.v1.RolloutService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse
+ 19, // 73: bytebase.v1.RolloutService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse
+ 21, // 74: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse
+ 23, // 75: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse
+ 25, // 76: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse
+ 64, // [64:77] is the sub-list for method output_type
+ 51, // [51:64] is the sub-list for method input_type
+ 51, // [51:51] is the sub-list for extension type_name
+ 51, // [51:51] is the sub-list for extension extendee
+ 0, // [0:51] is the sub-list for field type_name
}
func init() { file_v1_rollout_service_proto_init() }
@@ -5359,7 +5429,7 @@ func file_v1_rollout_service_proto_init() {
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_rollout_service_proto_rawDesc,
- NumEnums: 9,
+ NumEnums: 10,
NumMessages: 47,
NumExtensions: 0,
NumServices: 1,
diff --git a/proto/generated-go/v1/sql_service.pb.go b/proto/generated-go/v1/sql_service.pb.go
index 85c72e8a05..565b3fe324 100644
--- a/proto/generated-go/v1/sql_service.pb.go
+++ b/proto/generated-go/v1/sql_service.pb.go
@@ -2153,7 +2153,7 @@ var file_v1_sql_service_proto_rawDesc = []byte{
0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10,
0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x42, 0x08, 0x0a,
- 0x06, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0x96, 0x09, 0x0a, 0x0a, 0x53, 0x51, 0x4c, 0x53,
+ 0x06, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xbf, 0x09, 0x0a, 0x0a, 0x53, 0x51, 0x4c, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79,
0x12, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51,
0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79,
@@ -2172,63 +2172,66 @@ var file_v1_sql_service_proto_rawDesc = []byte{
0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69,
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x48, 0x69, 0x73,
- 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x98, 0x01,
+ 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0xc1, 0x01,
0x0a, 0x06, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4f, 0x3a, 0x01, 0x2a, 0x5a, 0x1f, 0x22, 0x1d,
+ 0x65, 0x22, 0x7e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x78, 0x3a, 0x01, 0x2a, 0x5a, 0x1f, 0x22, 0x1d,
0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x29, 0x2f,
- 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x71, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69,
- 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x65, 0x63,
- 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78,
- 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82,
- 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x3a, 0x61, 0x64, 0x6d, 0x69, 0x6e,
- 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x78, 0x0a, 0x0d, 0x44,
- 0x69, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x21, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x65,
- 0x72, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69,
- 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15,
- 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72,
- 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x58, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x19,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65,
- 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x3a, 0x01, 0x2a,
- 0x22, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x12,
- 0x8c, 0x01, 0x0a, 0x12, 0x50, 0x61, 0x72, 0x73, 0x65, 0x4d, 0x79, 0x42, 0x61, 0x74, 0x69, 0x73,
- 0x4d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x4d, 0x79, 0x42, 0x61, 0x74, 0x69,
- 0x73, 0x4d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72,
- 0x73, 0x65, 0x4d, 0x79, 0x42, 0x61, 0x74, 0x69, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a,
- 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x70, 0x61, 0x72, 0x73,
- 0x65, 0x4d, 0x79, 0x42, 0x61, 0x74, 0x69, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x5c,
- 0x0a, 0x06, 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x12, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76,
- 0x31, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x70, 0x72, 0x65, 0x74, 0x74, 0x79, 0x12, 0x91, 0x01, 0x0a,
- 0x11, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
- 0x74, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5a, 0x27, 0x22,
+ 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
+ 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72,
+ 0x74, 0x12, 0x71, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,
+ 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10,
+ 0x2f, 0x76, 0x31, 0x3a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65,
+ 0x28, 0x01, 0x30, 0x01, 0x12, 0x78, 0x0a, 0x0d, 0x44, 0x69, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72,
+ 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65,
+ 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x65,
+ 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x71, 0x6c,
+ 0x2f, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x58,
+ 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x3a, 0x01, 0x2a, 0x22, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x73,
+ 0x71, 0x6c, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x8c, 0x01, 0x0a, 0x12, 0x50, 0x61, 0x72,
+ 0x73, 0x65, 0x4d, 0x79, 0x42, 0x61, 0x74, 0x69, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12,
+ 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61,
+ 0x72, 0x73, 0x65, 0x4d, 0x79, 0x42, 0x61, 0x74, 0x69, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x65, 0x72,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x4d, 0x79, 0x42, 0x61, 0x74,
+ 0x69, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x76, 0x31,
+ 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x4d, 0x79, 0x42, 0x61, 0x74, 0x69,
+ 0x73, 0x4d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x5c, 0x0a, 0x06, 0x50, 0x72, 0x65, 0x74, 0x74,
+ 0x79, 0x12, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x74,
+ 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x70,
+ 0x72, 0x65, 0x74, 0x74, 0x79, 0x12, 0x91, 0x01, 0x0a, 0x11, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
+ 0x69, 0x66, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
+ 0x69, 0x66, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
- 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x69, 0x66,
- 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x76,
- 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x73,
- 0x74, 0x72, 0x69, 0x6e, 0x67, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
- 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,
+ 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x27, 0x3a, 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x69, 0x66,
+ 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 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 (
diff --git a/proto/generated-go/v1/sql_service.pb.gw.go b/proto/generated-go/v1/sql_service.pb.gw.go
index 7a73e00560..89397aafd5 100644
--- a/proto/generated-go/v1/sql_service.pb.gw.go
+++ b/proto/generated-go/v1/sql_service.pb.gw.go
@@ -327,6 +327,76 @@ func local_request_SQLService_Export_1(ctx context.Context, marshaler runtime.Ma
}
+var (
+ filter_SQLService_Export_2 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
+)
+
+func request_SQLService_Export_2(ctx context.Context, marshaler runtime.Marshaler, client SQLServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq ExportRequest
+ 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)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SQLService_Export_2); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.Export(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_SQLService_Export_2(ctx context.Context, marshaler runtime.Marshaler, server SQLServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq ExportRequest
+ 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)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SQLService_Export_2); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.Export(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
func request_SQLService_AdminExecute_0(ctx context.Context, marshaler runtime.Marshaler, client SQLServiceClient, req *http.Request, pathParams map[string]string) (SQLService_AdminExecuteClient, runtime.ServerMetadata, error) {
var metadata runtime.ServerMetadata
stream, err := client.AdminExecute(ctx)
@@ -631,6 +701,31 @@ func RegisterSQLServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux,
})
+ mux.Handle("POST", pattern_SQLService_Export_2, 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.SQLService/Export", runtime.WithHTTPPathPattern("/v1/{name=projects/*/issues/*}:export"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_SQLService_Export_2(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_SQLService_Export_2(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
mux.Handle("GET", pattern_SQLService_AdminExecute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
@@ -914,6 +1009,28 @@ func RegisterSQLServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux,
})
+ mux.Handle("POST", pattern_SQLService_Export_2, 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.SQLService/Export", runtime.WithHTTPPathPattern("/v1/{name=projects/*/issues/*}:export"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_SQLService_Export_2(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_SQLService_Export_2(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
mux.Handle("GET", pattern_SQLService_AdminExecute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -1060,6 +1177,8 @@ var (
pattern_SQLService_Export_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "name"}, "export"))
+ pattern_SQLService_Export_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "issues", "name"}, "export"))
+
pattern_SQLService_AdminExecute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"v1"}, "adminExecute"))
pattern_SQLService_DifferPreview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "sql", "differPreview"}, ""))
@@ -1084,6 +1203,8 @@ var (
forward_SQLService_Export_1 = runtime.ForwardResponseMessage
+ forward_SQLService_Export_2 = runtime.ForwardResponseMessage
+
forward_SQLService_AdminExecute_0 = runtime.ForwardResponseStream
forward_SQLService_DifferPreview_0 = runtime.ForwardResponseMessage
diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.proto
index d26ce05b6d..e09c040396 100644
--- a/proto/v1/rollout_service.proto
+++ b/proto/v1/rollout_service.proto
@@ -727,4 +727,11 @@ message TaskRun {
ExecutionDetail execution_detail = 15;
google.protobuf.Timestamp start_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ enum ExportArchiveStatus {
+ EXPORT_ARCHIVE_STATUS_UNSPECIFIED = 0;
+ READY = 1;
+ EXPORTED = 2;
+ }
+ ExportArchiveStatus export_archive_status = 16;
}
diff --git a/proto/v1/sql_service.proto b/proto/v1/sql_service.proto
index 7d0a18948e..95d9c5c643 100644
--- a/proto/v1/sql_service.proto
+++ b/proto/v1/sql_service.proto
@@ -20,31 +20,38 @@ service SQLService {
body: "*"
};
}
+
rpc SearchQueryHistories(SearchQueryHistoriesRequest) returns (SearchQueryHistoriesResponse) {
option (google.api.http) = {get: "/v1/queryHistories:search"};
}
+
rpc Export(ExportRequest) returns (ExportResponse) {
option (google.api.http) = {
post: "/v1/{name=instances/*/databases/*}:export"
additional_bindings {post: "/v1/{name=instances/*}:export"}
+ additional_bindings {post: "/v1/{name=projects/*/issues/*}:export"}
body: "*"
};
}
+
rpc AdminExecute(stream AdminExecuteRequest) returns (stream AdminExecuteResponse) {
option (google.api.http) = {get: "/v1:adminExecute"};
}
+
rpc DifferPreview(DifferPreviewRequest) returns (DifferPreviewResponse) {
option (google.api.http) = {
post: "/v1/sql/differPreview"
body: "*"
};
}
+
rpc Check(CheckRequest) returns (CheckResponse) {
option (google.api.http) = {
post: "/v1/sql/check"
body: "*"
};
}
+
rpc ParseMyBatisMapper(ParseMyBatisMapperRequest) returns (ParseMyBatisMapperResponse) {
option (google.api.http) = {
post: "/v1/sql/parseMyBatisMapper"