Skip to content

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

chore: add prior backup info to task run and task run log (#12951)

boojackebd425ab457f
diff --git a/frontend/src/types/proto/store/task_run.ts b/frontend/src/types/proto/store/task_run.ts
index e09279f03e..62f56a6e6e 100644
--- a/frontend/src/types/proto/store/task_run.ts
+++ b/frontend/src/types/proto/store/task_run.ts
@@ -1,6 +1,7 @@
/* eslint-disable */
import Long from "long";
import _m0 from "protobufjs/minimal";
+import { Position } from "./common";
export const protobufPackage = "bytebase.store";
@@ -10,8 +11,13 @@ export interface TaskRunResult {
changeHistory: string;
version: string;
startPosition: TaskRunResult_Position | undefined;
- endPosition: TaskRunResult_Position | undefined;
+ endPosition:
+ | TaskRunResult_Position
+ | undefined;
+ /** The uid of the export archive. */
exportArchiveUid: number;
+ /** The prior backup detail that will be used to rollback the task run. */
+ priorBackupDetail: PriorBackupDetail | undefined;
}
/** The following fields are used for error reporting. */
@@ -20,6 +26,31 @@ export interface TaskRunResult_Position {
column: number;
}
+export interface PriorBackupDetail {
+ items: PriorBackupDetail_Item[];
+}
+
+export interface PriorBackupDetail_Item {
+ /** The original table information. */
+ sourceTable:
+ | PriorBackupDetail_Item_Table
+ | undefined;
+ /** The target backup table information. */
+ targetTable: PriorBackupDetail_Item_Table | undefined;
+ startPosition: Position | undefined;
+ endPosition: Position | undefined;
+}
+
+export interface PriorBackupDetail_Item_Table {
+ /**
+ * The database information.
+ * Format: instances/{instance}/databases/{database}
+ */
+ database: string;
+ schema: string;
+ table: string;
+}
+
function createBaseTaskRunResult(): TaskRunResult {
return {
detail: "",
@@ -28,6 +59,7 @@ function createBaseTaskRunResult(): TaskRunResult {
startPosition: undefined,
endPosition: undefined,
exportArchiveUid: 0,
+ priorBackupDetail: undefined,
};
}
@@ -51,6 +83,9 @@ export const TaskRunResult = {
if (message.exportArchiveUid !== 0) {
writer.uint32(48).int32(message.exportArchiveUid);
}
+ if (message.priorBackupDetail !== undefined) {
+ PriorBackupDetail.encode(message.priorBackupDetail, writer.uint32(58).fork()).ldelim();
+ }
return writer;
},
@@ -103,6 +138,13 @@ export const TaskRunResult = {
message.exportArchiveUid = reader.int32();
continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.priorBackupDetail = PriorBackupDetail.decode(reader, reader.uint32());
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -120,6 +162,9 @@ export const TaskRunResult = {
startPosition: isSet(object.startPosition) ? TaskRunResult_Position.fromJSON(object.startPosition) : undefined,
endPosition: isSet(object.endPosition) ? TaskRunResult_Position.fromJSON(object.endPosition) : undefined,
exportArchiveUid: isSet(object.exportArchiveUid) ? globalThis.Number(object.exportArchiveUid) : 0,
+ priorBackupDetail: isSet(object.priorBackupDetail)
+ ? PriorBackupDetail.fromJSON(object.priorBackupDetail)
+ : undefined,
};
},
@@ -143,6 +188,9 @@ export const TaskRunResult = {
if (message.exportArchiveUid !== 0) {
obj.exportArchiveUid = Math.round(message.exportArchiveUid);
}
+ if (message.priorBackupDetail !== undefined) {
+ obj.priorBackupDetail = PriorBackupDetail.toJSON(message.priorBackupDetail);
+ }
return obj;
},
@@ -161,6 +209,9 @@ export const TaskRunResult = {
? TaskRunResult_Position.fromPartial(object.endPosition)
: undefined;
message.exportArchiveUid = object.exportArchiveUid ?? 0;
+ message.priorBackupDetail = (object.priorBackupDetail !== undefined && object.priorBackupDetail !== null)
+ ? PriorBackupDetail.fromPartial(object.priorBackupDetail)
+ : undefined;
return message;
},
};
@@ -239,6 +290,268 @@ export const TaskRunResult_Position = {
},
};
+function createBasePriorBackupDetail(): PriorBackupDetail {
+ return { items: [] };
+}
+
+export const PriorBackupDetail = {
+ encode(message: PriorBackupDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.items) {
+ PriorBackupDetail_Item.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): PriorBackupDetail {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBasePriorBackupDetail();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.items.push(PriorBackupDetail_Item.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): PriorBackupDetail {
+ return {
+ items: globalThis.Array.isArray(object?.items)
+ ? object.items.map((e: any) => PriorBackupDetail_Item.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: PriorBackupDetail): unknown {
+ const obj: any = {};
+ if (message.items?.length) {
+ obj.items = message.items.map((e) => PriorBackupDetail_Item.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<PriorBackupDetail>): PriorBackupDetail {
+ return PriorBackupDetail.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<PriorBackupDetail>): PriorBackupDetail {
+ const message = createBasePriorBackupDetail();
+ message.items = object.items?.map((e) => PriorBackupDetail_Item.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBasePriorBackupDetail_Item(): PriorBackupDetail_Item {
+ return { sourceTable: undefined, targetTable: undefined, startPosition: undefined, endPosition: undefined };
+}
+
+export const PriorBackupDetail_Item = {
+ encode(message: PriorBackupDetail_Item, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.sourceTable !== undefined) {
+ PriorBackupDetail_Item_Table.encode(message.sourceTable, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.targetTable !== undefined) {
+ PriorBackupDetail_Item_Table.encode(message.targetTable, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.startPosition !== undefined) {
+ Position.encode(message.startPosition, writer.uint32(26).fork()).ldelim();
+ }
+ if (message.endPosition !== undefined) {
+ Position.encode(message.endPosition, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): PriorBackupDetail_Item {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBasePriorBackupDetail_Item();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.sourceTable = PriorBackupDetail_Item_Table.decode(reader, reader.uint32());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.targetTable = PriorBackupDetail_Item_Table.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.startPosition = Position.decode(reader, reader.uint32());
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.endPosition = Position.decode(reader, reader.uint32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): PriorBackupDetail_Item {
+ return {
+ sourceTable: isSet(object.sourceTable) ? PriorBackupDetail_Item_Table.fromJSON(object.sourceTable) : undefined,
+ targetTable: isSet(object.targetTable) ? PriorBackupDetail_Item_Table.fromJSON(object.targetTable) : undefined,
+ startPosition: isSet(object.startPosition) ? Position.fromJSON(object.startPosition) : undefined,
+ endPosition: isSet(object.endPosition) ? Position.fromJSON(object.endPosition) : undefined,
+ };
+ },
+
+ toJSON(message: PriorBackupDetail_Item): unknown {
+ const obj: any = {};
+ if (message.sourceTable !== undefined) {
+ obj.sourceTable = PriorBackupDetail_Item_Table.toJSON(message.sourceTable);
+ }
+ if (message.targetTable !== undefined) {
+ obj.targetTable = PriorBackupDetail_Item_Table.toJSON(message.targetTable);
+ }
+ if (message.startPosition !== undefined) {
+ obj.startPosition = Position.toJSON(message.startPosition);
+ }
+ if (message.endPosition !== undefined) {
+ obj.endPosition = Position.toJSON(message.endPosition);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<PriorBackupDetail_Item>): PriorBackupDetail_Item {
+ return PriorBackupDetail_Item.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<PriorBackupDetail_Item>): PriorBackupDetail_Item {
+ const message = createBasePriorBackupDetail_Item();
+ message.sourceTable = (object.sourceTable !== undefined && object.sourceTable !== null)
+ ? PriorBackupDetail_Item_Table.fromPartial(object.sourceTable)
+ : undefined;
+ message.targetTable = (object.targetTable !== undefined && object.targetTable !== null)
+ ? PriorBackupDetail_Item_Table.fromPartial(object.targetTable)
+ : undefined;
+ message.startPosition = (object.startPosition !== undefined && object.startPosition !== null)
+ ? Position.fromPartial(object.startPosition)
+ : undefined;
+ message.endPosition = (object.endPosition !== undefined && object.endPosition !== null)
+ ? Position.fromPartial(object.endPosition)
+ : undefined;
+ return message;
+ },
+};
+
+function createBasePriorBackupDetail_Item_Table(): PriorBackupDetail_Item_Table {
+ return { database: "", schema: "", table: "" };
+}
+
+export const PriorBackupDetail_Item_Table = {
+ encode(message: PriorBackupDetail_Item_Table, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.database !== "") {
+ writer.uint32(10).string(message.database);
+ }
+ if (message.schema !== "") {
+ writer.uint32(18).string(message.schema);
+ }
+ if (message.table !== "") {
+ writer.uint32(26).string(message.table);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): PriorBackupDetail_Item_Table {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBasePriorBackupDetail_Item_Table();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.database = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.schema = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.table = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): PriorBackupDetail_Item_Table {
+ return {
+ database: isSet(object.database) ? globalThis.String(object.database) : "",
+ schema: isSet(object.schema) ? globalThis.String(object.schema) : "",
+ table: isSet(object.table) ? globalThis.String(object.table) : "",
+ };
+ },
+
+ toJSON(message: PriorBackupDetail_Item_Table): unknown {
+ const obj: any = {};
+ if (message.database !== "") {
+ obj.database = message.database;
+ }
+ if (message.schema !== "") {
+ obj.schema = message.schema;
+ }
+ if (message.table !== "") {
+ obj.table = message.table;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<PriorBackupDetail_Item_Table>): PriorBackupDetail_Item_Table {
+ return PriorBackupDetail_Item_Table.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<PriorBackupDetail_Item_Table>): PriorBackupDetail_Item_Table {
+ const message = createBasePriorBackupDetail_Item_Table();
+ message.database = object.database ?? "";
+ message.schema = object.schema ?? "";
+ message.table = object.table ?? "";
+ return message;
+ },
+};
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/frontend/src/types/proto/store/task_run_log.ts b/frontend/src/types/proto/store/task_run_log.ts
index 45bee7a57f..10fa67952e 100644
--- a/frontend/src/types/proto/store/task_run_log.ts
+++ b/frontend/src/types/proto/store/task_run_log.ts
@@ -1,6 +1,7 @@
/* eslint-disable */
import Long from "long";
import _m0 from "protobufjs/minimal";
+import { PriorBackupDetail } from "./task_run";
export const protobufPackage = "bytebase.store";
@@ -14,6 +15,8 @@ export interface TaskRunLog {
databaseSyncEnd: TaskRunLog_DatabaseSyncEnd | undefined;
taskRunStatusUpdate: TaskRunLog_TaskRunStatusUpdate | undefined;
transactionControl: TaskRunLog_TransactionControl | undefined;
+ priorBackupStart: TaskRunLog_PriorBackupStart | undefined;
+ priorBackupEnd: TaskRunLog_PriorBackupEnd | undefined;
}
export enum TaskRunLog_Type {
@@ -26,6 +29,8 @@ export enum TaskRunLog_Type {
DATABASE_SYNC_END = "DATABASE_SYNC_END",
TASK_RUN_STATUS_UPDATE = "TASK_RUN_STATUS_UPDATE",
TRANSACTION_CONTROL = "TRANSACTION_CONTROL",
+ PRIOR_BACKUP_START = "PRIOR_BACKUP_START",
+ PRIOR_BACKUP_END = "PRIOR_BACKUP_END",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -58,6 +63,12 @@ export function taskRunLog_TypeFromJSON(object: any): TaskRunLog_Type {
case 8:
case "TRANSACTION_CONTROL":
return TaskRunLog_Type.TRANSACTION_CONTROL;
+ case 9:
+ case "PRIOR_BACKUP_START":
+ return TaskRunLog_Type.PRIOR_BACKUP_START;
+ case 10:
+ case "PRIOR_BACKUP_END":
+ return TaskRunLog_Type.PRIOR_BACKUP_END;
case -1:
case "UNRECOGNIZED":
default:
@@ -85,6 +96,10 @@ export function taskRunLog_TypeToJSON(object: TaskRunLog_Type): string {
return "TASK_RUN_STATUS_UPDATE";
case TaskRunLog_Type.TRANSACTION_CONTROL:
return "TRANSACTION_CONTROL";
+ case TaskRunLog_Type.PRIOR_BACKUP_START:
+ return "PRIOR_BACKUP_START";
+ case TaskRunLog_Type.PRIOR_BACKUP_END:
+ return "PRIOR_BACKUP_END";
case TaskRunLog_Type.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -111,6 +126,10 @@ export function taskRunLog_TypeToNumber(object: TaskRunLog_Type): number {
return 7;
case TaskRunLog_Type.TRANSACTION_CONTROL:
return 8;
+ case TaskRunLog_Type.PRIOR_BACKUP_START:
+ return 9;
+ case TaskRunLog_Type.PRIOR_BACKUP_END:
+ return 10;
case TaskRunLog_Type.UNRECOGNIZED:
default:
return -1;
@@ -273,6 +292,14 @@ export function taskRunLog_TransactionControl_TypeToNumber(object: TaskRunLog_Tr
}
}
+export interface TaskRunLog_PriorBackupStart {
+}
+
+export interface TaskRunLog_PriorBackupEnd {
+ priorBackupDetail: PriorBackupDetail | undefined;
+ error: string;
+}
+
function createBaseTaskRunLog(): TaskRunLog {
return {
type: TaskRunLog_Type.TYPE_UNSPECIFIED,
@@ -284,6 +311,8 @@ function createBaseTaskRunLog(): TaskRunLog {
databaseSyncEnd: undefined,
taskRunStatusUpdate: undefined,
transactionControl: undefined,
+ priorBackupStart: undefined,
+ priorBackupEnd: undefined,
};
}
@@ -316,6 +345,12 @@ export const TaskRunLog = {
if (message.transactionControl !== undefined) {
TaskRunLog_TransactionControl.encode(message.transactionControl, writer.uint32(74).fork()).ldelim();
}
+ if (message.priorBackupStart !== undefined) {
+ TaskRunLog_PriorBackupStart.encode(message.priorBackupStart, writer.uint32(82).fork()).ldelim();
+ }
+ if (message.priorBackupEnd !== undefined) {
+ TaskRunLog_PriorBackupEnd.encode(message.priorBackupEnd, writer.uint32(90).fork()).ldelim();
+ }
return writer;
},
@@ -389,6 +424,20 @@ export const TaskRunLog = {
message.transactionControl = TaskRunLog_TransactionControl.decode(reader, reader.uint32());
continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.priorBackupStart = TaskRunLog_PriorBackupStart.decode(reader, reader.uint32());
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.priorBackupEnd = TaskRunLog_PriorBackupEnd.decode(reader, reader.uint32());
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -423,6 +472,12 @@ export const TaskRunLog = {
transactionControl: isSet(object.transactionControl)
? TaskRunLog_TransactionControl.fromJSON(object.transactionControl)
: undefined,
+ priorBackupStart: isSet(object.priorBackupStart)
+ ? TaskRunLog_PriorBackupStart.fromJSON(object.priorBackupStart)
+ : undefined,
+ priorBackupEnd: isSet(object.priorBackupEnd)
+ ? TaskRunLog_PriorBackupEnd.fromJSON(object.priorBackupEnd)
+ : undefined,
};
},
@@ -455,6 +510,12 @@ export const TaskRunLog = {
if (message.transactionControl !== undefined) {
obj.transactionControl = TaskRunLog_TransactionControl.toJSON(message.transactionControl);
}
+ if (message.priorBackupStart !== undefined) {
+ obj.priorBackupStart = TaskRunLog_PriorBackupStart.toJSON(message.priorBackupStart);
+ }
+ if (message.priorBackupEnd !== undefined) {
+ obj.priorBackupEnd = TaskRunLog_PriorBackupEnd.toJSON(message.priorBackupEnd);
+ }
return obj;
},
@@ -488,6 +549,12 @@ export const TaskRunLog = {
message.transactionControl = (object.transactionControl !== undefined && object.transactionControl !== null)
? TaskRunLog_TransactionControl.fromPartial(object.transactionControl)
: undefined;
+ message.priorBackupStart = (object.priorBackupStart !== undefined && object.priorBackupStart !== null)
+ ? TaskRunLog_PriorBackupStart.fromPartial(object.priorBackupStart)
+ : undefined;
+ message.priorBackupEnd = (object.priorBackupEnd !== undefined && object.priorBackupEnd !== null)
+ ? TaskRunLog_PriorBackupEnd.fromPartial(object.priorBackupEnd)
+ : undefined;
return message;
},
};
@@ -1034,6 +1101,127 @@ export const TaskRunLog_TransactionControl = {
},
};
+function createBaseTaskRunLog_PriorBackupStart(): TaskRunLog_PriorBackupStart {
+ return {};
+}
+
+export const TaskRunLog_PriorBackupStart = {
+ encode(_: TaskRunLog_PriorBackupStart, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLog_PriorBackupStart {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTaskRunLog_PriorBackupStart();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(_: any): TaskRunLog_PriorBackupStart {
+ return {};
+ },
+
+ toJSON(_: TaskRunLog_PriorBackupStart): unknown {
+ const obj: any = {};
+ return obj;
+ },
+
+ create(base?: DeepPartial<TaskRunLog_PriorBackupStart>): TaskRunLog_PriorBackupStart {
+ return TaskRunLog_PriorBackupStart.fromPartial(base ?? {});
+ },
+ fromPartial(_: DeepPartial<TaskRunLog_PriorBackupStart>): TaskRunLog_PriorBackupStart {
+ const message = createBaseTaskRunLog_PriorBackupStart();
+ return message;
+ },
+};
+
+function createBaseTaskRunLog_PriorBackupEnd(): TaskRunLog_PriorBackupEnd {
+ return { priorBackupDetail: undefined, error: "" };
+}
+
+export const TaskRunLog_PriorBackupEnd = {
+ encode(message: TaskRunLog_PriorBackupEnd, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.priorBackupDetail !== undefined) {
+ PriorBackupDetail.encode(message.priorBackupDetail, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.error !== "") {
+ writer.uint32(18).string(message.error);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLog_PriorBackupEnd {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTaskRunLog_PriorBackupEnd();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.priorBackupDetail = PriorBackupDetail.decode(reader, reader.uint32());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.error = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): TaskRunLog_PriorBackupEnd {
+ return {
+ priorBackupDetail: isSet(object.priorBackupDetail)
+ ? PriorBackupDetail.fromJSON(object.priorBackupDetail)
+ : undefined,
+ error: isSet(object.error) ? globalThis.String(object.error) : "",
+ };
+ },
+
+ toJSON(message: TaskRunLog_PriorBackupEnd): unknown {
+ const obj: any = {};
+ if (message.priorBackupDetail !== undefined) {
+ obj.priorBackupDetail = PriorBackupDetail.toJSON(message.priorBackupDetail);
+ }
+ if (message.error !== "") {
+ obj.error = message.error;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<TaskRunLog_PriorBackupEnd>): TaskRunLog_PriorBackupEnd {
+ return TaskRunLog_PriorBackupEnd.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<TaskRunLog_PriorBackupEnd>): TaskRunLog_PriorBackupEnd {
+ const message = createBaseTaskRunLog_PriorBackupEnd();
+ message.priorBackupDetail = (object.priorBackupDetail !== undefined && object.priorBackupDetail !== null)
+ ? PriorBackupDetail.fromPartial(object.priorBackupDetail)
+ : undefined;
+ message.error = object.error ?? "";
+ return message;
+ },
+};
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index e6169c0f6b..323f8846b6 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -10798,6 +10798,18 @@ components:
principal:
type: string
description: 'Format: users/[email protected]'
+ Item_Table:
+ type: object
+ properties:
+ database:
+ type: string
+ description: |-
+ The database information.
+ Format: instances/{instance}/databases/{database}
+ schema:
+ type: string
+ table:
+ type: string
KerberosConfig:
type: object
properties:
@@ -11972,6 +11984,28 @@ components:
allOf:
- $ref: '#/components/schemas/Plan'
description: The plan used to preview rollout.
+ PriorBackupDetail:
+ type: object
+ properties:
+ items:
+ type: array
+ items:
+ $ref: '#/components/schemas/PriorBackupDetail_Item'
+ PriorBackupDetail_Item:
+ type: object
+ properties:
+ sourceTable:
+ allOf:
+ - $ref: '#/components/schemas/Item_Table'
+ description: The original table information.
+ targetTable:
+ allOf:
+ - $ref: '#/components/schemas/Item_Table'
+ description: The target backup table information.
+ startPosition:
+ $ref: '#/components/schemas/Position'
+ endPosition:
+ $ref: '#/components/schemas/Position'
ProcedureConfig:
type: object
properties:
@@ -13695,6 +13729,8 @@ components:
- DATABASE_SYNC_END
- TASK_RUN_STATUS_UPDATE
- TRANSACTION_CONTROL
+ - PRIOR_BACKUP_START
+ - PRIOR_BACKUP_END
type: string
format: enum
schemaDumpStart:
@@ -13713,6 +13749,10 @@ components:
$ref: '#/components/schemas/TaskRunLog_TaskRunStatusUpdate'
transactionControl:
$ref: '#/components/schemas/TaskRunLog_TransactionControl'
+ priorBackupStart:
+ $ref: '#/components/schemas/TaskRunLog_PriorBackupStart'
+ priorBackupEnd:
+ $ref: '#/components/schemas/TaskRunLog_PriorBackupEnd'
TaskRunLog_CommandExecute:
type: object
properties:
@@ -13752,6 +13792,16 @@ components:
TaskRunLog_DatabaseSyncStart:
type: object
properties: {}
+ TaskRunLog_PriorBackupEnd:
+ type: object
+ properties:
+ priorBackupDetail:
+ $ref: '#/components/schemas/PriorBackupDetail'
+ error:
+ type: string
+ TaskRunLog_PriorBackupStart:
+ type: object
+ properties: {}
TaskRunLog_SchemaDumpEnd:
type: object
properties:
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index f6bca575d0..028caae66b 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -272,6 +272,9 @@
- [TaskDatabaseUpdatePayload.FlagsEntry](#bytebase-store-TaskDatabaseUpdatePayload-FlagsEntry)
- [store/task_run.proto](#store_task_run-proto)
+ - [PriorBackupDetail](#bytebase-store-PriorBackupDetail)
+ - [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item)
+ - [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table)
- [TaskRunResult](#bytebase-store-TaskRunResult)
- [TaskRunResult.Position](#bytebase-store-TaskRunResult-Position)
@@ -281,6 +284,8 @@
- [TaskRunLog.CommandResponse](#bytebase-store-TaskRunLog-CommandResponse)
- [TaskRunLog.DatabaseSyncEnd](#bytebase-store-TaskRunLog-DatabaseSyncEnd)
- [TaskRunLog.DatabaseSyncStart](#bytebase-store-TaskRunLog-DatabaseSyncStart)
+ - [TaskRunLog.PriorBackupEnd](#bytebase-store-TaskRunLog-PriorBackupEnd)
+ - [TaskRunLog.PriorBackupStart](#bytebase-store-TaskRunLog-PriorBackupStart)
- [TaskRunLog.SchemaDumpEnd](#bytebase-store-TaskRunLog-SchemaDumpEnd)
- [TaskRunLog.SchemaDumpStart](#bytebase-store-TaskRunLog-SchemaDumpStart)
- [TaskRunLog.TaskRunStatusUpdate](#bytebase-store-TaskRunLog-TaskRunStatusUpdate)
@@ -4209,6 +4214,56 @@ TaskDatabaseDataUpdatePayload is the task payload for database data update (DML)
+<a name="bytebase-store-PriorBackupDetail"></a>
+
+### PriorBackupDetail
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| items | [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item) | repeated | |
+
+
+
+
+
+
+<a name="bytebase-store-PriorBackupDetail-Item"></a>
+
+### PriorBackupDetail.Item
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| source_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The original table information. |
+| target_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The target backup table information. |
+| start_position | [Position](#bytebase-store-Position) | | |
+| end_position | [Position](#bytebase-store-Position) | | |
+
+
+
+
+
+
+<a name="bytebase-store-PriorBackupDetail-Item-Table"></a>
+
+### PriorBackupDetail.Item.Table
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| database | [string](#string) | | The database information. Format: instances/{instance}/databases/{database} |
+| schema | [string](#string) | | |
+| table | [string](#string) | | |
+
+
+
+
+
+
<a name="bytebase-store-TaskRunResult"></a>
### TaskRunResult
@@ -4222,7 +4277,8 @@ TaskDatabaseDataUpdatePayload is the task payload for database data update (DML)
| version | [string](#string) | | |
| start_position | [TaskRunResult.Position](#bytebase-store-TaskRunResult-Position) | | |
| end_position | [TaskRunResult.Position](#bytebase-store-TaskRunResult-Position) | | |
-| export_archive_uid | [int32](#int32) | | |
+| export_archive_uid | [int32](#int32) | | The uid of the export archive. |
+| prior_backup_detail | [PriorBackupDetail](#bytebase-store-PriorBackupDetail) | | The prior backup detail that will be used to rollback the task run. |
@@ -4278,6 +4334,8 @@ The following fields are used for error reporting.
| database_sync_end | [TaskRunLog.DatabaseSyncEnd](#bytebase-store-TaskRunLog-DatabaseSyncEnd) | | |
| task_run_status_update | [TaskRunLog.TaskRunStatusUpdate](#bytebase-store-TaskRunLog-TaskRunStatusUpdate) | | |
| transaction_control | [TaskRunLog.TransactionControl](#bytebase-store-TaskRunLog-TransactionControl) | | |
+| prior_backup_start | [TaskRunLog.PriorBackupStart](#bytebase-store-TaskRunLog-PriorBackupStart) | | |
+| prior_backup_end | [TaskRunLog.PriorBackupEnd](#bytebase-store-TaskRunLog-PriorBackupEnd) | | |
@@ -4342,6 +4400,32 @@ The following fields are used for error reporting.
+<a name="bytebase-store-TaskRunLog-PriorBackupEnd"></a>
+
+### TaskRunLog.PriorBackupEnd
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| prior_backup_detail | [PriorBackupDetail](#bytebase-store-PriorBackupDetail) | | |
+| error | [string](#string) | | |
+
+
+
+
+
+
+<a name="bytebase-store-TaskRunLog-PriorBackupStart"></a>
+
+### TaskRunLog.PriorBackupStart
+
+
+
+
+
+
+
<a name="bytebase-store-TaskRunLog-SchemaDumpEnd"></a>
### TaskRunLog.SchemaDumpEnd
@@ -4443,6 +4527,8 @@ The following fields are used for error reporting.
| DATABASE_SYNC_END | 6 | |
| TASK_RUN_STATUS_UPDATE | 7 | |
| TRANSACTION_CONTROL | 8 | |
+| PRIOR_BACKUP_START | 9 | |
+| PRIOR_BACKUP_END | 10 | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 4c8cad6987..f3ee133daa 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -1282,6 +1282,18 @@
<a href="#store%2ftask_run.proto">store/task_run.proto</a>
<ul>
+ <li>
+ <a href="#bytebase.store.PriorBackupDetail"><span class="badge">M</span>PriorBackupDetail</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.PriorBackupDetail.Item"><span class="badge">M</span>PriorBackupDetail.Item</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.PriorBackupDetail.Item.Table"><span class="badge">M</span>PriorBackupDetail.Item.Table</a>
+ </li>
+
<li>
<a href="#bytebase.store.TaskRunResult"><span class="badge">M</span>TaskRunResult</a>
</li>
@@ -1321,6 +1333,14 @@
<a href="#bytebase.store.TaskRunLog.DatabaseSyncStart"><span class="badge">M</span>TaskRunLog.DatabaseSyncStart</a>
</li>
+ <li>
+ <a href="#bytebase.store.TaskRunLog.PriorBackupEnd"><span class="badge">M</span>TaskRunLog.PriorBackupEnd</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.TaskRunLog.PriorBackupStart"><span class="badge">M</span>TaskRunLog.PriorBackupStart</a>
+ </li>
+
<li>
<a href="#bytebase.store.TaskRunLog.SchemaDumpEnd"><span class="badge">M</span>TaskRunLog.SchemaDumpEnd</a>
</li>
@@ -10426,6 +10446,114 @@ Default to this mode.</p></td>
<p></p>
+ <h3 id="bytebase.store.PriorBackupDetail">PriorBackupDetail</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>items</td>
+ <td><a href="#bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>source_table</td>
+ <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td>
+ <td></td>
+ <td><p>The original table information. </p></td>
+ </tr>
+
+ <tr>
+ <td>target_table</td>
+ <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td>
+ <td></td>
+ <td><p>The target backup table information. </p></td>
+ </tr>
+
+ <tr>
+ <td>start_position</td>
+ <td><a href="#bytebase.store.Position">Position</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>end_position</td>
+ <td><a href="#bytebase.store.Position">Position</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>database</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The database information.
+Format: instances/{instance}/databases/{database} </p></td>
+ </tr>
+
+ <tr>
+ <td>schema</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>table</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.store.TaskRunResult">TaskRunResult</h3>
<p></p>
@@ -10475,7 +10603,14 @@ Default to this mode.</p></td>
<td>export_archive_uid</td>
<td><a href="#int32">int32</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The uid of the export archive. </p></td>
+ </tr>
+
+ <tr>
+ <td>prior_backup_detail</td>
+ <td><a href="#bytebase.store.PriorBackupDetail">PriorBackupDetail</a></td>
+ <td></td>
+ <td><p>The prior backup detail that will be used to rollback the task run. </p></td>
</tr>
</tbody>
@@ -10603,6 +10738,20 @@ Default to this mode.</p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>prior_backup_start</td>
+ <td><a href="#bytebase.store.TaskRunLog.PriorBackupStart">TaskRunLog.PriorBackupStart</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>prior_backup_end</td>
+ <td><a href="#bytebase.store.TaskRunLog.PriorBackupEnd">TaskRunLog.PriorBackupEnd</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
</tbody>
</table>
@@ -10711,6 +10860,44 @@ Default to this mode.</p></td>
+ <h3 id="bytebase.store.TaskRunLog.PriorBackupEnd">TaskRunLog.PriorBackupEnd</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>prior_backup_detail</td>
+ <td><a href="#bytebase.store.PriorBackupDetail">PriorBackupDetail</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>error</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.TaskRunLog.PriorBackupStart">TaskRunLog.PriorBackupStart</h3>
+ <p></p>
+
+
+
+
+
<h3 id="bytebase.store.TaskRunLog.SchemaDumpEnd">TaskRunLog.SchemaDumpEnd</h3>
<p></p>
@@ -10925,6 +11112,18 @@ Default to this mode.</p></td>
<td><p></p></td>
</tr>
+ <tr>
+ <td>PRIOR_BACKUP_START</td>
+ <td>9</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>PRIOR_BACKUP_END</td>
+ <td>10</td>
+ <td><p></p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/generated-go/store/task_run.pb.go b/proto/generated-go/store/task_run.pb.go
index c8e5c4b37f..047aee51ad 100644
--- a/proto/generated-go/store/task_run.pb.go
+++ b/proto/generated-go/store/task_run.pb.go
@@ -27,11 +27,14 @@ type TaskRunResult struct {
Detail string `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"`
// Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}
- ChangeHistory string `protobuf:"bytes,2,opt,name=change_history,json=changeHistory,proto3" json:"change_history,omitempty"`
- Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
- StartPosition *TaskRunResult_Position `protobuf:"bytes,4,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`
- EndPosition *TaskRunResult_Position `protobuf:"bytes,5,opt,name=end_position,json=endPosition,proto3" json:"end_position,omitempty"`
- ExportArchiveUid int32 `protobuf:"varint,6,opt,name=export_archive_uid,json=exportArchiveUid,proto3" json:"export_archive_uid,omitempty"`
+ ChangeHistory string `protobuf:"bytes,2,opt,name=change_history,json=changeHistory,proto3" json:"change_history,omitempty"`
+ Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
+ StartPosition *TaskRunResult_Position `protobuf:"bytes,4,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`
+ EndPosition *TaskRunResult_Position `protobuf:"bytes,5,opt,name=end_position,json=endPosition,proto3" json:"end_position,omitempty"`
+ // The uid of the export archive.
+ ExportArchiveUid int32 `protobuf:"varint,6,opt,name=export_archive_uid,json=exportArchiveUid,proto3" json:"export_archive_uid,omitempty"`
+ // The prior backup detail that will be used to rollback the task run.
+ PriorBackupDetail *PriorBackupDetail `protobuf:"bytes,7,opt,name=prior_backup_detail,json=priorBackupDetail,proto3" json:"prior_backup_detail,omitempty"`
}
func (x *TaskRunResult) Reset() {
@@ -108,6 +111,60 @@ func (x *TaskRunResult) GetExportArchiveUid() int32 {
return 0
}
+func (x *TaskRunResult) GetPriorBackupDetail() *PriorBackupDetail {
+ if x != nil {
+ return x.PriorBackupDetail
+ }
+ return nil
+}
+
+type PriorBackupDetail struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Items []*PriorBackupDetail_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
+}
+
+func (x *PriorBackupDetail) Reset() {
+ *x = PriorBackupDetail{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_task_run_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *PriorBackupDetail) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PriorBackupDetail) ProtoMessage() {}
+
+func (x *PriorBackupDetail) ProtoReflect() protoreflect.Message {
+ mi := &file_store_task_run_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use PriorBackupDetail.ProtoReflect.Descriptor instead.
+func (*PriorBackupDetail) Descriptor() ([]byte, []int) {
+ return file_store_task_run_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *PriorBackupDetail) GetItems() []*PriorBackupDetail_Item {
+ if x != nil {
+ return x.Items
+ }
+ return nil
+}
+
// The following fields are used for error reporting.
type TaskRunResult_Position struct {
state protoimpl.MessageState
@@ -121,7 +178,7 @@ type TaskRunResult_Position struct {
func (x *TaskRunResult_Position) Reset() {
*x = TaskRunResult_Position{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_task_run_proto_msgTypes[1]
+ mi := &file_store_task_run_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -134,7 +191,7 @@ func (x *TaskRunResult_Position) String() string {
func (*TaskRunResult_Position) ProtoMessage() {}
func (x *TaskRunResult_Position) ProtoReflect() protoreflect.Message {
- mi := &file_store_task_run_proto_msgTypes[1]
+ mi := &file_store_task_run_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -164,36 +221,210 @@ func (x *TaskRunResult_Position) GetColumn() int32 {
return 0
}
+type PriorBackupDetail_Item struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The original table information.
+ SourceTable *PriorBackupDetail_Item_Table `protobuf:"bytes,1,opt,name=source_table,json=sourceTable,proto3" json:"source_table,omitempty"`
+ // The target backup table information.
+ TargetTable *PriorBackupDetail_Item_Table `protobuf:"bytes,2,opt,name=target_table,json=targetTable,proto3" json:"target_table,omitempty"`
+ StartPosition *Position `protobuf:"bytes,3,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`
+ EndPosition *Position `protobuf:"bytes,4,opt,name=end_position,json=endPosition,proto3" json:"end_position,omitempty"`
+}
+
+func (x *PriorBackupDetail_Item) Reset() {
+ *x = PriorBackupDetail_Item{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_task_run_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *PriorBackupDetail_Item) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PriorBackupDetail_Item) ProtoMessage() {}
+
+func (x *PriorBackupDetail_Item) ProtoReflect() protoreflect.Message {
+ mi := &file_store_task_run_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use PriorBackupDetail_Item.ProtoReflect.Descriptor instead.
+func (*PriorBackupDetail_Item) Descriptor() ([]byte, []int) {
+ return file_store_task_run_proto_rawDescGZIP(), []int{1, 0}
+}
+
+func (x *PriorBackupDetail_Item) GetSourceTable() *PriorBackupDetail_Item_Table {
+ if x != nil {
+ return x.SourceTable
+ }
+ return nil
+}
+
+func (x *PriorBackupDetail_Item) GetTargetTable() *PriorBackupDetail_Item_Table {
+ if x != nil {
+ return x.TargetTable
+ }
+ return nil
+}
+
+func (x *PriorBackupDetail_Item) GetStartPosition() *Position {
+ if x != nil {
+ return x.StartPosition
+ }
+ return nil
+}
+
+func (x *PriorBackupDetail_Item) GetEndPosition() *Position {
+ if x != nil {
+ return x.EndPosition
+ }
+ return nil
+}
+
+type PriorBackupDetail_Item_Table struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The database information.
+ // Format: instances/{instance}/databases/{database}
+ Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
+ Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
+ Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
+}
+
+func (x *PriorBackupDetail_Item_Table) Reset() {
+ *x = PriorBackupDetail_Item_Table{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_task_run_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *PriorBackupDetail_Item_Table) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PriorBackupDetail_Item_Table) ProtoMessage() {}
+
+func (x *PriorBackupDetail_Item_Table) ProtoReflect() protoreflect.Message {
+ mi := &file_store_task_run_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use PriorBackupDetail_Item_Table.ProtoReflect.Descriptor instead.
+func (*PriorBackupDetail_Item_Table) Descriptor() ([]byte, []int) {
+ return file_store_task_run_proto_rawDescGZIP(), []int{1, 0, 0}
+}
+
+func (x *PriorBackupDetail_Item_Table) GetDatabase() string {
+ if x != nil {
+ return x.Database
+ }
+ return ""
+}
+
+func (x *PriorBackupDetail_Item_Table) GetSchema() string {
+ if x != nil {
+ return x.Schema
+ }
+ return ""
+}
+
+func (x *PriorBackupDetail_Item_Table) GetTable() string {
+ if x != nil {
+ return x.Table
+ }
+ return ""
+}
+
var File_store_task_run_proto protoreflect.FileDescriptor
var file_store_task_run_proto_rawDesc = []byte{
0x0a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xe8, 0x02, 0x0a, 0x0d, 0x54, 0x61, 0x73, 0x6b, 0x52,
- 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61,
- 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,
- 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f,
- 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,
- 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
- 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
- 0x6e, 0x12, 0x4d, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74,
- 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52,
- 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f,
- 0x6e, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
- 0x12, 0x49, 0x0a, 0x0c, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52,
- 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b,
- 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x65,
- 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x69,
- 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41,
- 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x69, 0x64, 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, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67,
- 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f,
+ 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x03, 0x0a, 0x0d, 0x54,
+ 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x06,
+ 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65,
+ 0x74, 0x61, 0x69, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68,
+ 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68,
+ 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65,
+ 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70,
+ 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54,
+ 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x6f, 0x73,
+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69,
+ 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0c, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x73, 0x69,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b,
+ 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x52, 0x0b, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x2c, 0x0a, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76,
+ 0x65, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x65, 0x78, 0x70,
+ 0x6f, 0x72, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x55, 0x69, 0x64, 0x12, 0x51, 0x0a,
+ 0x13, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65,
+ 0x74, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6f,
+ 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x11, 0x70,
+ 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
+ 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, 0xcd, 0x03, 0x0a, 0x11, 0x50, 0x72, 0x69,
+ 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x3c,
+ 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50,
+ 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
+ 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0xf9, 0x02, 0x0a,
+ 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x4f, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x69,
+ 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x49,
+ 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x4f, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
+ 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72,
+ 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
+ 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67,
+ 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74,
+ 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74,
+ 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0c, 0x65, 0x6e, 0x64, 0x5f,
+ 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
+ 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x73,
+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x51, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a,
+ 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63,
+ 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,
+ 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -208,19 +439,29 @@ func file_store_task_run_proto_rawDescGZIP() []byte {
return file_store_task_run_proto_rawDescData
}
-var file_store_task_run_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_store_task_run_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_store_task_run_proto_goTypes = []any{
- (*TaskRunResult)(nil), // 0: bytebase.store.TaskRunResult
- (*TaskRunResult_Position)(nil), // 1: bytebase.store.TaskRunResult.Position
+ (*TaskRunResult)(nil), // 0: bytebase.store.TaskRunResult
+ (*PriorBackupDetail)(nil), // 1: bytebase.store.PriorBackupDetail
+ (*TaskRunResult_Position)(nil), // 2: bytebase.store.TaskRunResult.Position
+ (*PriorBackupDetail_Item)(nil), // 3: bytebase.store.PriorBackupDetail.Item
+ (*PriorBackupDetail_Item_Table)(nil), // 4: bytebase.store.PriorBackupDetail.Item.Table
+ (*Position)(nil), // 5: bytebase.store.Position
}
var file_store_task_run_proto_depIdxs = []int32{
- 1, // 0: bytebase.store.TaskRunResult.start_position:type_name -> bytebase.store.TaskRunResult.Position
- 1, // 1: bytebase.store.TaskRunResult.end_position:type_name -> bytebase.store.TaskRunResult.Position
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
+ 2, // 0: bytebase.store.TaskRunResult.start_position:type_name -> bytebase.store.TaskRunResult.Position
+ 2, // 1: bytebase.store.TaskRunResult.end_position:type_name -> bytebase.store.TaskRunResult.Position
+ 1, // 2: bytebase.store.TaskRunResult.prior_backup_detail:type_name -> bytebase.store.PriorBackupDetail
+ 3, // 3: bytebase.store.PriorBackupDetail.items:type_name -> bytebase.store.PriorBackupDetail.Item
+ 4, // 4: bytebase.store.PriorBackupDetail.Item.source_table:type_name -> bytebase.store.PriorBackupDetail.Item.Table
+ 4, // 5: bytebase.store.PriorBackupDetail.Item.target_table:type_name -> bytebase.store.PriorBackupDetail.Item.Table
+ 5, // 6: bytebase.store.PriorBackupDetail.Item.start_position:type_name -> bytebase.store.Position
+ 5, // 7: bytebase.store.PriorBackupDetail.Item.end_position:type_name -> bytebase.store.Position
+ 8, // [8:8] is the sub-list for method output_type
+ 8, // [8:8] is the sub-list for method input_type
+ 8, // [8:8] is the sub-list for extension type_name
+ 8, // [8:8] is the sub-list for extension extendee
+ 0, // [0:8] is the sub-list for field type_name
}
func init() { file_store_task_run_proto_init() }
@@ -228,6 +469,7 @@ func file_store_task_run_proto_init() {
if File_store_task_run_proto != nil {
return
}
+ file_store_common_proto_init()
if !protoimpl.UnsafeEnabled {
file_store_task_run_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunResult); i {
@@ -242,6 +484,18 @@ func file_store_task_run_proto_init() {
}
}
file_store_task_run_proto_msgTypes[1].Exporter = func(v any, i int) any {
+ switch v := v.(*PriorBackupDetail); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_task_run_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunResult_Position); i {
case 0:
return &v.state
@@ -253,6 +507,30 @@ func file_store_task_run_proto_init() {
return nil
}
}
+ file_store_task_run_proto_msgTypes[3].Exporter = func(v any, i int) any {
+ switch v := v.(*PriorBackupDetail_Item); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_task_run_proto_msgTypes[4].Exporter = func(v any, i int) any {
+ switch v := v.(*PriorBackupDetail_Item_Table); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -260,7 +538,7 @@ func file_store_task_run_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_task_run_proto_rawDesc,
NumEnums: 0,
- NumMessages: 2,
+ NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/generated-go/store/task_run_log.pb.go b/proto/generated-go/store/task_run_log.pb.go
index 962f525392..5e2cc31ffa 100644
--- a/proto/generated-go/store/task_run_log.pb.go
+++ b/proto/generated-go/store/task_run_log.pb.go
@@ -32,20 +32,24 @@ const (
TaskRunLog_DATABASE_SYNC_END TaskRunLog_Type = 6
TaskRunLog_TASK_RUN_STATUS_UPDATE TaskRunLog_Type = 7
TaskRunLog_TRANSACTION_CONTROL TaskRunLog_Type = 8
+ TaskRunLog_PRIOR_BACKUP_START TaskRunLog_Type = 9
+ TaskRunLog_PRIOR_BACKUP_END TaskRunLog_Type = 10
)
// Enum value maps for TaskRunLog_Type.
var (
TaskRunLog_Type_name = map[int32]string{
- 0: "TYPE_UNSPECIFIED",
- 1: "SCHEMA_DUMP_START",
- 2: "SCHEMA_DUMP_END",
- 3: "COMMAND_EXECUTE",
- 4: "COMMAND_RESPONSE",
- 5: "DATABASE_SYNC_START",
- 6: "DATABASE_SYNC_END",
- 7: "TASK_RUN_STATUS_UPDATE",
- 8: "TRANSACTION_CONTROL",
+ 0: "TYPE_UNSPECIFIED",
+ 1: "SCHEMA_DUMP_START",
+ 2: "SCHEMA_DUMP_END",
+ 3: "COMMAND_EXECUTE",
+ 4: "COMMAND_RESPONSE",
+ 5: "DATABASE_SYNC_START",
+ 6: "DATABASE_SYNC_END",
+ 7: "TASK_RUN_STATUS_UPDATE",
+ 8: "TRANSACTION_CONTROL",
+ 9: "PRIOR_BACKUP_START",
+ 10: "PRIOR_BACKUP_END",
}
TaskRunLog_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
@@ -57,6 +61,8 @@ var (
"DATABASE_SYNC_END": 6,
"TASK_RUN_STATUS_UPDATE": 7,
"TRANSACTION_CONTROL": 8,
+ "PRIOR_BACKUP_START": 9,
+ "PRIOR_BACKUP_END": 10,
}
)
@@ -204,6 +210,8 @@ type TaskRunLog struct {
DatabaseSyncEnd *TaskRunLog_DatabaseSyncEnd `protobuf:"bytes,7,opt,name=database_sync_end,json=databaseSyncEnd,proto3" json:"database_sync_end,omitempty"`
TaskRunStatusUpdate *TaskRunLog_TaskRunStatusUpdate `protobuf:"bytes,8,opt,name=task_run_status_update,json=taskRunStatusUpdate,proto3" json:"task_run_status_update,omitempty"`
TransactionControl *TaskRunLog_TransactionControl `protobuf:"bytes,9,opt,name=transaction_control,json=transactionControl,proto3" json:"transaction_control,omitempty"`
+ PriorBackupStart *TaskRunLog_PriorBackupStart `protobuf:"bytes,10,opt,name=prior_backup_start,json=priorBackupStart,proto3" json:"prior_backup_start,omitempty"`
+ PriorBackupEnd *TaskRunLog_PriorBackupEnd `protobuf:"bytes,11,opt,name=prior_backup_end,json=priorBackupEnd,proto3" json:"prior_backup_end,omitempty"`
}
func (x *TaskRunLog) Reset() {
@@ -301,6 +309,20 @@ func (x *TaskRunLog) GetTransactionControl() *TaskRunLog_TransactionControl {
return nil
}
+func (x *TaskRunLog) GetPriorBackupStart() *TaskRunLog_PriorBackupStart {
+ if x != nil {
+ return x.PriorBackupStart
+ }
+ return nil
+}
+
+func (x *TaskRunLog) GetPriorBackupEnd() *TaskRunLog_PriorBackupEnd {
+ if x != nil {
+ return x.PriorBackupEnd
+ }
+ return nil
+}
+
type TaskRunLog_SchemaDumpStart struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -695,121 +717,238 @@ func (x *TaskRunLog_TransactionControl) GetError() string {
return ""
}
+type TaskRunLog_PriorBackupStart struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *TaskRunLog_PriorBackupStart) Reset() {
+ *x = TaskRunLog_PriorBackupStart{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_task_run_log_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TaskRunLog_PriorBackupStart) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TaskRunLog_PriorBackupStart) ProtoMessage() {}
+
+func (x *TaskRunLog_PriorBackupStart) ProtoReflect() protoreflect.Message {
+ mi := &file_store_task_run_log_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use TaskRunLog_PriorBackupStart.ProtoReflect.Descriptor instead.
+func (*TaskRunLog_PriorBackupStart) Descriptor() ([]byte, []int) {
+ return file_store_task_run_log_proto_rawDescGZIP(), []int{0, 8}
+}
+
+type TaskRunLog_PriorBackupEnd struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ PriorBackupDetail *PriorBackupDetail `protobuf:"bytes,1,opt,name=prior_backup_detail,json=priorBackupDetail,proto3" json:"prior_backup_detail,omitempty"`
+ Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
+}
+
+func (x *TaskRunLog_PriorBackupEnd) Reset() {
+ *x = TaskRunLog_PriorBackupEnd{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_task_run_log_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TaskRunLog_PriorBackupEnd) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TaskRunLog_PriorBackupEnd) ProtoMessage() {}
+
+func (x *TaskRunLog_PriorBackupEnd) ProtoReflect() protoreflect.Message {
+ mi := &file_store_task_run_log_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use TaskRunLog_PriorBackupEnd.ProtoReflect.Descriptor instead.
+func (*TaskRunLog_PriorBackupEnd) Descriptor() ([]byte, []int) {
+ return file_store_task_run_log_proto_rawDescGZIP(), []int{0, 9}
+}
+
+func (x *TaskRunLog_PriorBackupEnd) GetPriorBackupDetail() *PriorBackupDetail {
+ if x != nil {
+ return x.PriorBackupDetail
+ }
+ return nil
+}
+
+func (x *TaskRunLog_PriorBackupEnd) GetError() string {
+ if x != nil {
+ return x.Error
+ }
+ return ""
+}
+
var File_store_task_run_log_proto protoreflect.FileDescriptor
var file_store_task_run_log_proto_rawDesc = []byte{
0x0a, 0x18, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e,
0x5f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xae, 0x0d, 0x0a, 0x0a, 0x54,
- 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,
- 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x56,
- 0x0a, 0x11, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x75, 0x6d, 0x70, 0x5f, 0x73, 0x74,
- 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52,
- 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70,
- 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d,
- 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x50, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 0x5f, 0x64, 0x75, 0x6d, 0x70, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72,
+ 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x22, 0x9b, 0x10, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x12,
+ 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54,
+ 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
+ 0x74, 0x79, 0x70, 0x65, 0x12, 0x56, 0x0a, 0x11, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64,
+ 0x75, 0x6d, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x53, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x45, 0x6e, 0x64, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x44, 0x75, 0x6d, 0x70, 0x45, 0x6e, 0x64, 0x12, 0x52, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d,
- 0x61, 0x6e, 0x64, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
- 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x43, 0x6f,
- 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x0e, 0x63, 0x6f,
- 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x55, 0x0a, 0x10,
- 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c,
- 0x6f, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,
- 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x11,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x72,
- 0x74, 0x12, 0x56, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x79,
- 0x6e, 0x63, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62,
+ 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x0f, 0x73, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x50, 0x0a, 0x0f,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x75, 0x6d, 0x70, 0x5f, 0x65, 0x6e, 0x64, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f,
+ 0x67, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x45, 0x6e, 0x64, 0x52,
+ 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x45, 0x6e, 0x64, 0x12, 0x52,
+ 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74,
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,
+ 0x4c, 0x6f, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75,
+ 0x74, 0x65, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75,
+ 0x74, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62,
0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61,
- 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x12, 0x63, 0x0a, 0x16, 0x74, 0x61, 0x73,
- 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
+ 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x13, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c,
+ 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x53,
+ 0x74, 0x61, 0x72, 0x74, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79,
+ 0x6e, 0x63, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x56, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,
+ 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x52, 0x0f,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x12,
+ 0x63, 0x0a, 0x16, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74,
+ 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x73, 0x6b,
+ 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52,
+ 0x13, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
+ 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
+ 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x72,
+ 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
+ 0x52, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,
+ 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x59, 0x0a, 0x12, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x62, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
+ 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x50, 0x72, 0x69,
+ 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x10, 0x70,
+ 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12,
+ 0x53, 0x0a, 0x10, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f,
+ 0x65, 0x6e, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65,
0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52,
- 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61,
- 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x74, 0x61, 0x73, 0x6b, 0x52,
- 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x5e,
- 0x0a, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f,
- 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73,
- 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
- 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x12, 0x74, 0x72, 0x61, 0x6e,
- 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x1a, 0x11,
- 0x0a, 0x0f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x53, 0x74, 0x61, 0x72,
- 0x74, 0x1a, 0x25, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x45,
- 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0x39, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d,
- 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f,
- 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20,
- 0x03, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65,
- 0x78, 0x65, 0x73, 0x1a, 0xa1, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
- 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05,
- 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73,
- 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74,
- 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61,
- 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x61,
- 0x6c, 0x6c, 0x5f, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73,
- 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x41, 0x66, 0x66, 0x65, 0x63,
- 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x1a, 0x13, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x72, 0x74, 0x1a, 0x27, 0x0a, 0x0f,
- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x12,
- 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
- 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0xb0, 0x01, 0x0a, 0x13, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,
- 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x4d, 0x0a,
- 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54,
- 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,
- 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4a, 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, 0x13,
- 0x0a, 0x0f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e,
- 0x47, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x52,
- 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x1a, 0xb5, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61,
- 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12,
- 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54,
- 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61,
- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x54, 0x79, 0x70,
- 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x41, 0x0a,
- 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,
- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42,
- 0x45, 0x47, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54,
- 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x4f, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x03,
- 0x22, 0xd8, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50,
- 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
- 0x15, 0x0a, 0x11, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x55, 0x4d, 0x50, 0x5f, 0x53,
- 0x54, 0x41, 0x52, 0x54, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,
- 0x5f, 0x44, 0x55, 0x4d, 0x50, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x43,
- 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x10, 0x03,
- 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x50,
- 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,
- 0x53, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x05, 0x12,
- 0x15, 0x0a, 0x11, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43,
- 0x5f, 0x45, 0x4e, 0x44, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x52,
- 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45,
- 0x10, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f,
- 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x4f, 0x4c, 0x10, 0x08, 0x42, 0x14, 0x5a, 0x12, 0x67,
- 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x45, 0x6e, 0x64, 0x52, 0x0e, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x45, 0x6e, 0x64, 0x1a, 0x11, 0x0a, 0x0f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75,
+ 0x6d, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x1a, 0x25, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x44, 0x75, 0x6d, 0x70, 0x45, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f,
+ 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0x39,
+ 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65,
+ 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65,
+ 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
+ 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x1a, 0xa1, 0x01, 0x0a, 0x0f, 0x43, 0x6f,
+ 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a,
+ 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73,
+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x49,
+ 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d,
+ 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77,
+ 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x5f, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65,
+ 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0f, 0x61, 0x6c,
+ 0x6c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x1a, 0x13, 0x0a,
+ 0x11, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61,
+ 0x72, 0x74, 0x1a, 0x27, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79,
+ 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0xb0, 0x01, 0x0a, 0x13,
+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x12, 0x4d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e,
+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
+ 0x75, 0x73, 0x22, 0x4a, 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, 0x13, 0x0a, 0x0f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f,
+ 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x55, 0x4e,
+ 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x1a, 0xb5,
+ 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
+ 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e,
+ 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x72,
+ 0x6f, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a,
+ 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72,
+ 0x72, 0x6f, 0x72, 0x22, 0x41, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54,
+ 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
+ 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06,
+ 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x4f, 0x4c, 0x4c,
+ 0x42, 0x41, 0x43, 0x4b, 0x10, 0x03, 0x1a, 0x12, 0x0a, 0x10, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x42,
+ 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x0e, 0x50, 0x72,
+ 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x45, 0x6e, 0x64, 0x12, 0x51, 0x0a, 0x13,
+ 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 0x65, 0x74,
+ 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72,
+ 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x11, 0x70, 0x72,
+ 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12,
+ 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x86, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,
+ 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44,
+ 0x55, 0x4d, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53,
+ 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x55, 0x4d, 0x50, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0x02,
+ 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x45, 0x58, 0x45, 0x43,
+ 0x55, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44,
+ 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x44,
+ 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x54, 0x41,
+ 0x52, 0x54, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,
+ 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x54,
+ 0x41, 0x53, 0x4b, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55,
+ 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x52, 0x41, 0x4e, 0x53,
+ 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x4f, 0x4c, 0x10, 0x08,
+ 0x12, 0x16, 0x0a, 0x12, 0x50, 0x52, 0x49, 0x4f, 0x52, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50,
+ 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x09, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x52, 0x49, 0x4f,
+ 0x52, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0x0a, 0x42, 0x14,
+ 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -825,7 +964,7 @@ func file_store_task_run_log_proto_rawDescGZIP() []byte {
}
var file_store_task_run_log_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
-var file_store_task_run_log_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
+var file_store_task_run_log_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_store_task_run_log_proto_goTypes = []any{
(TaskRunLog_Type)(0), // 0: bytebase.store.TaskRunLog.Type
(TaskRunLog_TaskRunStatusUpdate_Status)(0), // 1: bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status
@@ -839,6 +978,9 @@ var file_store_task_run_log_proto_goTypes = []any{
(*TaskRunLog_DatabaseSyncEnd)(nil), // 9: bytebase.store.TaskRunLog.DatabaseSyncEnd
(*TaskRunLog_TaskRunStatusUpdate)(nil), // 10: bytebase.store.TaskRunLog.TaskRunStatusUpdate
(*TaskRunLog_TransactionControl)(nil), // 11: bytebase.store.TaskRunLog.TransactionControl
+ (*TaskRunLog_PriorBackupStart)(nil), // 12: bytebase.store.TaskRunLog.PriorBackupStart
+ (*TaskRunLog_PriorBackupEnd)(nil), // 13: bytebase.store.TaskRunLog.PriorBackupEnd
+ (*PriorBackupDetail)(nil), // 14: bytebase.store.PriorBackupDetail
}
var file_store_task_run_log_proto_depIdxs = []int32{
0, // 0: bytebase.store.TaskRunLog.type:type_name -> bytebase.store.TaskRunLog.Type
@@ -850,13 +992,16 @@ var file_store_task_run_log_proto_depIdxs = []int32{
9, // 6: bytebase.store.TaskRunLog.database_sync_end:type_name -> bytebase.store.TaskRunLog.DatabaseSyncEnd
10, // 7: bytebase.store.TaskRunLog.task_run_status_update:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate
11, // 8: bytebase.store.TaskRunLog.transaction_control:type_name -> bytebase.store.TaskRunLog.TransactionControl
- 1, // 9: bytebase.store.TaskRunLog.TaskRunStatusUpdate.status:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status
- 2, // 10: bytebase.store.TaskRunLog.TransactionControl.type:type_name -> bytebase.store.TaskRunLog.TransactionControl.Type
- 11, // [11:11] is the sub-list for method output_type
- 11, // [11:11] is the sub-list for method input_type
- 11, // [11:11] is the sub-list for extension type_name
- 11, // [11:11] is the sub-list for extension extendee
- 0, // [0:11] is the sub-list for field type_name
+ 12, // 9: bytebase.store.TaskRunLog.prior_backup_start:type_name -> bytebase.store.TaskRunLog.PriorBackupStart
+ 13, // 10: bytebase.store.TaskRunLog.prior_backup_end:type_name -> bytebase.store.TaskRunLog.PriorBackupEnd
+ 1, // 11: bytebase.store.TaskRunLog.TaskRunStatusUpdate.status:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status
+ 2, // 12: bytebase.store.TaskRunLog.TransactionControl.type:type_name -> bytebase.store.TaskRunLog.TransactionControl.Type
+ 14, // 13: bytebase.store.TaskRunLog.PriorBackupEnd.prior_backup_detail:type_name -> bytebase.store.PriorBackupDetail
+ 14, // [14:14] is the sub-list for method output_type
+ 14, // [14:14] is the sub-list for method input_type
+ 14, // [14:14] is the sub-list for extension type_name
+ 14, // [14:14] is the sub-list for extension extendee
+ 0, // [0:14] is the sub-list for field type_name
}
func init() { file_store_task_run_log_proto_init() }
@@ -864,6 +1009,7 @@ func file_store_task_run_log_proto_init() {
if File_store_task_run_log_proto != nil {
return
}
+ file_store_task_run_proto_init()
if !protoimpl.UnsafeEnabled {
file_store_task_run_log_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunLog); i {
@@ -973,6 +1119,30 @@ func file_store_task_run_log_proto_init() {
return nil
}
}
+ file_store_task_run_log_proto_msgTypes[9].Exporter = func(v any, i int) any {
+ switch v := v.(*TaskRunLog_PriorBackupStart); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_task_run_log_proto_msgTypes[10].Exporter = func(v any, i int) any {
+ switch v := v.(*TaskRunLog_PriorBackupEnd); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -980,7 +1150,7 @@ func file_store_task_run_log_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_task_run_log_proto_rawDesc,
NumEnums: 3,
- NumMessages: 9,
+ NumMessages: 11,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/store/task_run.proto b/proto/store/task_run.proto
index 7505773b75..ab99a8818c 100644
--- a/proto/store/task_run.proto
+++ b/proto/store/task_run.proto
@@ -2,6 +2,8 @@ syntax = "proto3";
package bytebase.store;
+import "store/common.proto";
+
option go_package = "generated-go/store";
message TaskRunResult {
@@ -18,5 +20,30 @@ message TaskRunResult {
Position start_position = 4;
Position end_position = 5;
+ // The uid of the export archive.
int32 export_archive_uid = 6;
+
+ // The prior backup detail that will be used to rollback the task run.
+ PriorBackupDetail prior_backup_detail = 7;
+}
+
+message PriorBackupDetail {
+ message Item {
+ message Table {
+ // The database information.
+ // Format: instances/{instance}/databases/{database}
+ string database = 1;
+ string schema = 2;
+ string table = 3;
+ }
+
+ // The original table information.
+ Table source_table = 1;
+ // The target backup table information.
+ Table target_table = 2;
+ Position start_position = 3;
+ Position end_position = 4;
+ }
+
+ repeated Item items = 1;
}
diff --git a/proto/store/task_run_log.proto b/proto/store/task_run_log.proto
index 306c12fa12..502f8f417a 100644
--- a/proto/store/task_run_log.proto
+++ b/proto/store/task_run_log.proto
@@ -2,6 +2,8 @@ syntax = "proto3";
package bytebase.store;
+import "store/task_run.proto";
+
option go_package = "generated-go/store";
message TaskRunLog {
@@ -15,6 +17,8 @@ message TaskRunLog {
DATABASE_SYNC_END = 6;
TASK_RUN_STATUS_UPDATE = 7;
TRANSACTION_CONTROL = 8;
+ PRIOR_BACKUP_START = 9;
+ PRIOR_BACKUP_END = 10;
}
Type type = 1;
SchemaDumpStart schema_dump_start = 2;
@@ -25,6 +29,8 @@ message TaskRunLog {
DatabaseSyncEnd database_sync_end = 7;
TaskRunStatusUpdate task_run_status_update = 8;
TransactionControl transaction_control = 9;
+ PriorBackupStart prior_backup_start = 10;
+ PriorBackupEnd prior_backup_end = 11;
message SchemaDumpStart {}
message SchemaDumpEnd {
@@ -67,4 +73,9 @@ message TaskRunLog {
Type type = 1;
string error = 2;
}
+ message PriorBackupStart {}
+ message PriorBackupEnd {
+ PriorBackupDetail prior_backup_detail = 1;
+ string error = 2;
+ }
}