Skip to content

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

feat(proto): store issue comment (#11395)

p0ny44c1bd95c510
diff --git a/frontend/src/types/proto/store/issue_comment.ts b/frontend/src/types/proto/store/issue_comment.ts
new file mode 100644
index 0000000000..b0b9fa484b
--- /dev/null
+++ b/frontend/src/types/proto/store/issue_comment.ts
@@ -0,0 +1,1079 @@
+/* eslint-disable */
+import Long from "long";
+import _m0 from "protobufjs/minimal";
+import { Timestamp } from "../google/protobuf/timestamp";
+
+export const protobufPackage = "bytebase.store";
+
+export interface IssueCommentPayload {
+ comment: string;
+ approval?: IssueCommentPayload_Approval | undefined;
+ issueUpdate?: IssueCommentPayload_IssueUpdate | undefined;
+ stageEnd?: IssueCommentPayload_StageEnd | undefined;
+ taskRunUpdate?: IssueCommentPayload_TaskRunUpdate | undefined;
+ taskUpdate?: IssueCommentPayload_TaskUpdate | undefined;
+ taskPriorBackup?: IssueCommentPayload_TaskPriorBackup | undefined;
+}
+
+export interface IssueCommentPayload_Approval {
+ status: IssueCommentPayload_Approval_Status;
+}
+
+export enum IssueCommentPayload_Approval_Status {
+ STATUS_UNSPECIFIED = 0,
+ PENDING = 1,
+ APPROVED = 2,
+ REJECTED = 3,
+ UNRECOGNIZED = -1,
+}
+
+export function issueCommentPayload_Approval_StatusFromJSON(object: any): IssueCommentPayload_Approval_Status {
+ switch (object) {
+ case 0:
+ case "STATUS_UNSPECIFIED":
+ return IssueCommentPayload_Approval_Status.STATUS_UNSPECIFIED;
+ case 1:
+ case "PENDING":
+ return IssueCommentPayload_Approval_Status.PENDING;
+ case 2:
+ case "APPROVED":
+ return IssueCommentPayload_Approval_Status.APPROVED;
+ case 3:
+ case "REJECTED":
+ return IssueCommentPayload_Approval_Status.REJECTED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return IssueCommentPayload_Approval_Status.UNRECOGNIZED;
+ }
+}
+
+export function issueCommentPayload_Approval_StatusToJSON(object: IssueCommentPayload_Approval_Status): string {
+ switch (object) {
+ case IssueCommentPayload_Approval_Status.STATUS_UNSPECIFIED:
+ return "STATUS_UNSPECIFIED";
+ case IssueCommentPayload_Approval_Status.PENDING:
+ return "PENDING";
+ case IssueCommentPayload_Approval_Status.APPROVED:
+ return "APPROVED";
+ case IssueCommentPayload_Approval_Status.REJECTED:
+ return "REJECTED";
+ case IssueCommentPayload_Approval_Status.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export interface IssueCommentPayload_IssueUpdate {
+ fromTitle?: string | undefined;
+ toTitle?: string | undefined;
+ fromDescription?: string | undefined;
+ toDescription?: string | undefined;
+ fromStatus?: IssueCommentPayload_IssueUpdate_IssueStatus | undefined;
+ toStatus?:
+ | IssueCommentPayload_IssueUpdate_IssueStatus
+ | undefined;
+ /** Format: users/{email} */
+ fromAssignee?:
+ | string
+ | undefined;
+ /** Format: users/{email} */
+ toAssignee?: string | undefined;
+}
+
+export enum IssueCommentPayload_IssueUpdate_IssueStatus {
+ ISSUE_STATUS_UNSPECIFIED = 0,
+ OPEN = 1,
+ DONE = 2,
+ CANCELED = 3,
+ UNRECOGNIZED = -1,
+}
+
+export function issueCommentPayload_IssueUpdate_IssueStatusFromJSON(
+ object: any,
+): IssueCommentPayload_IssueUpdate_IssueStatus {
+ switch (object) {
+ case 0:
+ case "ISSUE_STATUS_UNSPECIFIED":
+ return IssueCommentPayload_IssueUpdate_IssueStatus.ISSUE_STATUS_UNSPECIFIED;
+ case 1:
+ case "OPEN":
+ return IssueCommentPayload_IssueUpdate_IssueStatus.OPEN;
+ case 2:
+ case "DONE":
+ return IssueCommentPayload_IssueUpdate_IssueStatus.DONE;
+ case 3:
+ case "CANCELED":
+ return IssueCommentPayload_IssueUpdate_IssueStatus.CANCELED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return IssueCommentPayload_IssueUpdate_IssueStatus.UNRECOGNIZED;
+ }
+}
+
+export function issueCommentPayload_IssueUpdate_IssueStatusToJSON(
+ object: IssueCommentPayload_IssueUpdate_IssueStatus,
+): string {
+ switch (object) {
+ case IssueCommentPayload_IssueUpdate_IssueStatus.ISSUE_STATUS_UNSPECIFIED:
+ return "ISSUE_STATUS_UNSPECIFIED";
+ case IssueCommentPayload_IssueUpdate_IssueStatus.OPEN:
+ return "OPEN";
+ case IssueCommentPayload_IssueUpdate_IssueStatus.DONE:
+ return "DONE";
+ case IssueCommentPayload_IssueUpdate_IssueStatus.CANCELED:
+ return "CANCELED";
+ case IssueCommentPayload_IssueUpdate_IssueStatus.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export interface IssueCommentPayload_StageEnd {
+ stage: string;
+}
+
+export interface IssueCommentPayload_TaskRunUpdate {
+ taskRuns: string[];
+ toStatus?: IssueCommentPayload_TaskRunUpdate_Status | undefined;
+}
+
+export enum IssueCommentPayload_TaskRunUpdate_Status {
+ STATUS_UNSPECIFIED = 0,
+ PENDING = 1,
+ RUNNING = 2,
+ DONE = 3,
+ FAILED = 4,
+ UNRECOGNIZED = -1,
+}
+
+export function issueCommentPayload_TaskRunUpdate_StatusFromJSON(
+ object: any,
+): IssueCommentPayload_TaskRunUpdate_Status {
+ switch (object) {
+ case 0:
+ case "STATUS_UNSPECIFIED":
+ return IssueCommentPayload_TaskRunUpdate_Status.STATUS_UNSPECIFIED;
+ case 1:
+ case "PENDING":
+ return IssueCommentPayload_TaskRunUpdate_Status.PENDING;
+ case 2:
+ case "RUNNING":
+ return IssueCommentPayload_TaskRunUpdate_Status.RUNNING;
+ case 3:
+ case "DONE":
+ return IssueCommentPayload_TaskRunUpdate_Status.DONE;
+ case 4:
+ case "FAILED":
+ return IssueCommentPayload_TaskRunUpdate_Status.FAILED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return IssueCommentPayload_TaskRunUpdate_Status.UNRECOGNIZED;
+ }
+}
+
+export function issueCommentPayload_TaskRunUpdate_StatusToJSON(
+ object: IssueCommentPayload_TaskRunUpdate_Status,
+): string {
+ switch (object) {
+ case IssueCommentPayload_TaskRunUpdate_Status.STATUS_UNSPECIFIED:
+ return "STATUS_UNSPECIFIED";
+ case IssueCommentPayload_TaskRunUpdate_Status.PENDING:
+ return "PENDING";
+ case IssueCommentPayload_TaskRunUpdate_Status.RUNNING:
+ return "RUNNING";
+ case IssueCommentPayload_TaskRunUpdate_Status.DONE:
+ return "DONE";
+ case IssueCommentPayload_TaskRunUpdate_Status.FAILED:
+ return "FAILED";
+ case IssueCommentPayload_TaskRunUpdate_Status.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export interface IssueCommentPayload_TaskUpdate {
+ tasks: string[];
+ /** Format: projects/{project}/sheets/{sheet} */
+ fromSheet?:
+ | string
+ | undefined;
+ /** Format: projects/{project}/sheets/{sheet} */
+ toSheet?: string | undefined;
+ fromEarliestAllowedTime?: Date | undefined;
+ toEarliestAllowedTime?: Date | undefined;
+}
+
+export interface IssueCommentPayload_TaskPriorBackup {
+ task: string;
+ tables: IssueCommentPayload_TaskPriorBackup_Table[];
+}
+
+export interface IssueCommentPayload_TaskPriorBackup_Table {
+ schema: string;
+ table: string;
+}
+
+function createBaseIssueCommentPayload(): IssueCommentPayload {
+ return {
+ comment: "",
+ approval: undefined,
+ issueUpdate: undefined,
+ stageEnd: undefined,
+ taskRunUpdate: undefined,
+ taskUpdate: undefined,
+ taskPriorBackup: undefined,
+ };
+}
+
+export const IssueCommentPayload = {
+ encode(message: IssueCommentPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.comment !== "") {
+ writer.uint32(10).string(message.comment);
+ }
+ if (message.approval !== undefined) {
+ IssueCommentPayload_Approval.encode(message.approval, writer.uint32(66).fork()).ldelim();
+ }
+ if (message.issueUpdate !== undefined) {
+ IssueCommentPayload_IssueUpdate.encode(message.issueUpdate, writer.uint32(74).fork()).ldelim();
+ }
+ if (message.stageEnd !== undefined) {
+ IssueCommentPayload_StageEnd.encode(message.stageEnd, writer.uint32(82).fork()).ldelim();
+ }
+ if (message.taskRunUpdate !== undefined) {
+ IssueCommentPayload_TaskRunUpdate.encode(message.taskRunUpdate, writer.uint32(90).fork()).ldelim();
+ }
+ if (message.taskUpdate !== undefined) {
+ IssueCommentPayload_TaskUpdate.encode(message.taskUpdate, writer.uint32(98).fork()).ldelim();
+ }
+ if (message.taskPriorBackup !== undefined) {
+ IssueCommentPayload_TaskPriorBackup.encode(message.taskPriorBackup, writer.uint32(106).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): IssueCommentPayload {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseIssueCommentPayload();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.approval = IssueCommentPayload_Approval.decode(reader, reader.uint32());
+ continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.issueUpdate = IssueCommentPayload_IssueUpdate.decode(reader, reader.uint32());
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.stageEnd = IssueCommentPayload_StageEnd.decode(reader, reader.uint32());
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.taskRunUpdate = IssueCommentPayload_TaskRunUpdate.decode(reader, reader.uint32());
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.taskUpdate = IssueCommentPayload_TaskUpdate.decode(reader, reader.uint32());
+ continue;
+ case 13:
+ if (tag !== 106) {
+ break;
+ }
+
+ message.taskPriorBackup = IssueCommentPayload_TaskPriorBackup.decode(reader, reader.uint32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): IssueCommentPayload {
+ return {
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
+ approval: isSet(object.approval) ? IssueCommentPayload_Approval.fromJSON(object.approval) : undefined,
+ issueUpdate: isSet(object.issueUpdate) ? IssueCommentPayload_IssueUpdate.fromJSON(object.issueUpdate) : undefined,
+ stageEnd: isSet(object.stageEnd) ? IssueCommentPayload_StageEnd.fromJSON(object.stageEnd) : undefined,
+ taskRunUpdate: isSet(object.taskRunUpdate)
+ ? IssueCommentPayload_TaskRunUpdate.fromJSON(object.taskRunUpdate)
+ : undefined,
+ taskUpdate: isSet(object.taskUpdate) ? IssueCommentPayload_TaskUpdate.fromJSON(object.taskUpdate) : undefined,
+ taskPriorBackup: isSet(object.taskPriorBackup)
+ ? IssueCommentPayload_TaskPriorBackup.fromJSON(object.taskPriorBackup)
+ : undefined,
+ };
+ },
+
+ toJSON(message: IssueCommentPayload): unknown {
+ const obj: any = {};
+ if (message.comment !== "") {
+ obj.comment = message.comment;
+ }
+ if (message.approval !== undefined) {
+ obj.approval = IssueCommentPayload_Approval.toJSON(message.approval);
+ }
+ if (message.issueUpdate !== undefined) {
+ obj.issueUpdate = IssueCommentPayload_IssueUpdate.toJSON(message.issueUpdate);
+ }
+ if (message.stageEnd !== undefined) {
+ obj.stageEnd = IssueCommentPayload_StageEnd.toJSON(message.stageEnd);
+ }
+ if (message.taskRunUpdate !== undefined) {
+ obj.taskRunUpdate = IssueCommentPayload_TaskRunUpdate.toJSON(message.taskRunUpdate);
+ }
+ if (message.taskUpdate !== undefined) {
+ obj.taskUpdate = IssueCommentPayload_TaskUpdate.toJSON(message.taskUpdate);
+ }
+ if (message.taskPriorBackup !== undefined) {
+ obj.taskPriorBackup = IssueCommentPayload_TaskPriorBackup.toJSON(message.taskPriorBackup);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<IssueCommentPayload>): IssueCommentPayload {
+ return IssueCommentPayload.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<IssueCommentPayload>): IssueCommentPayload {
+ const message = createBaseIssueCommentPayload();
+ message.comment = object.comment ?? "";
+ message.approval = (object.approval !== undefined && object.approval !== null)
+ ? IssueCommentPayload_Approval.fromPartial(object.approval)
+ : undefined;
+ message.issueUpdate = (object.issueUpdate !== undefined && object.issueUpdate !== null)
+ ? IssueCommentPayload_IssueUpdate.fromPartial(object.issueUpdate)
+ : undefined;
+ message.stageEnd = (object.stageEnd !== undefined && object.stageEnd !== null)
+ ? IssueCommentPayload_StageEnd.fromPartial(object.stageEnd)
+ : undefined;
+ message.taskRunUpdate = (object.taskRunUpdate !== undefined && object.taskRunUpdate !== null)
+ ? IssueCommentPayload_TaskRunUpdate.fromPartial(object.taskRunUpdate)
+ : undefined;
+ message.taskUpdate = (object.taskUpdate !== undefined && object.taskUpdate !== null)
+ ? IssueCommentPayload_TaskUpdate.fromPartial(object.taskUpdate)
+ : undefined;
+ message.taskPriorBackup = (object.taskPriorBackup !== undefined && object.taskPriorBackup !== null)
+ ? IssueCommentPayload_TaskPriorBackup.fromPartial(object.taskPriorBackup)
+ : undefined;
+ return message;
+ },
+};
+
+function createBaseIssueCommentPayload_Approval(): IssueCommentPayload_Approval {
+ return { status: 0 };
+}
+
+export const IssueCommentPayload_Approval = {
+ encode(message: IssueCommentPayload_Approval, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.status !== 0) {
+ writer.uint32(8).int32(message.status);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): IssueCommentPayload_Approval {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseIssueCommentPayload_Approval();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.status = reader.int32() as any;
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): IssueCommentPayload_Approval {
+ return { status: isSet(object.status) ? issueCommentPayload_Approval_StatusFromJSON(object.status) : 0 };
+ },
+
+ toJSON(message: IssueCommentPayload_Approval): unknown {
+ const obj: any = {};
+ if (message.status !== 0) {
+ obj.status = issueCommentPayload_Approval_StatusToJSON(message.status);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<IssueCommentPayload_Approval>): IssueCommentPayload_Approval {
+ return IssueCommentPayload_Approval.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<IssueCommentPayload_Approval>): IssueCommentPayload_Approval {
+ const message = createBaseIssueCommentPayload_Approval();
+ message.status = object.status ?? 0;
+ return message;
+ },
+};
+
+function createBaseIssueCommentPayload_IssueUpdate(): IssueCommentPayload_IssueUpdate {
+ return {
+ fromTitle: undefined,
+ toTitle: undefined,
+ fromDescription: undefined,
+ toDescription: undefined,
+ fromStatus: undefined,
+ toStatus: undefined,
+ fromAssignee: undefined,
+ toAssignee: undefined,
+ };
+}
+
+export const IssueCommentPayload_IssueUpdate = {
+ encode(message: IssueCommentPayload_IssueUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.fromTitle !== undefined) {
+ writer.uint32(10).string(message.fromTitle);
+ }
+ if (message.toTitle !== undefined) {
+ writer.uint32(18).string(message.toTitle);
+ }
+ if (message.fromDescription !== undefined) {
+ writer.uint32(26).string(message.fromDescription);
+ }
+ if (message.toDescription !== undefined) {
+ writer.uint32(34).string(message.toDescription);
+ }
+ if (message.fromStatus !== undefined) {
+ writer.uint32(40).int32(message.fromStatus);
+ }
+ if (message.toStatus !== undefined) {
+ writer.uint32(48).int32(message.toStatus);
+ }
+ if (message.fromAssignee !== undefined) {
+ writer.uint32(58).string(message.fromAssignee);
+ }
+ if (message.toAssignee !== undefined) {
+ writer.uint32(66).string(message.toAssignee);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): IssueCommentPayload_IssueUpdate {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseIssueCommentPayload_IssueUpdate();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.fromTitle = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.toTitle = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.fromDescription = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.toDescription = reader.string();
+ continue;
+ case 5:
+ if (tag !== 40) {
+ break;
+ }
+
+ message.fromStatus = reader.int32() as any;
+ continue;
+ case 6:
+ if (tag !== 48) {
+ break;
+ }
+
+ message.toStatus = reader.int32() as any;
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.fromAssignee = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.toAssignee = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): IssueCommentPayload_IssueUpdate {
+ return {
+ fromTitle: isSet(object.fromTitle) ? globalThis.String(object.fromTitle) : undefined,
+ toTitle: isSet(object.toTitle) ? globalThis.String(object.toTitle) : undefined,
+ fromDescription: isSet(object.fromDescription) ? globalThis.String(object.fromDescription) : undefined,
+ toDescription: isSet(object.toDescription) ? globalThis.String(object.toDescription) : undefined,
+ fromStatus: isSet(object.fromStatus)
+ ? issueCommentPayload_IssueUpdate_IssueStatusFromJSON(object.fromStatus)
+ : undefined,
+ toStatus: isSet(object.toStatus)
+ ? issueCommentPayload_IssueUpdate_IssueStatusFromJSON(object.toStatus)
+ : undefined,
+ fromAssignee: isSet(object.fromAssignee) ? globalThis.String(object.fromAssignee) : undefined,
+ toAssignee: isSet(object.toAssignee) ? globalThis.String(object.toAssignee) : undefined,
+ };
+ },
+
+ toJSON(message: IssueCommentPayload_IssueUpdate): unknown {
+ const obj: any = {};
+ if (message.fromTitle !== undefined) {
+ obj.fromTitle = message.fromTitle;
+ }
+ if (message.toTitle !== undefined) {
+ obj.toTitle = message.toTitle;
+ }
+ if (message.fromDescription !== undefined) {
+ obj.fromDescription = message.fromDescription;
+ }
+ if (message.toDescription !== undefined) {
+ obj.toDescription = message.toDescription;
+ }
+ if (message.fromStatus !== undefined) {
+ obj.fromStatus = issueCommentPayload_IssueUpdate_IssueStatusToJSON(message.fromStatus);
+ }
+ if (message.toStatus !== undefined) {
+ obj.toStatus = issueCommentPayload_IssueUpdate_IssueStatusToJSON(message.toStatus);
+ }
+ if (message.fromAssignee !== undefined) {
+ obj.fromAssignee = message.fromAssignee;
+ }
+ if (message.toAssignee !== undefined) {
+ obj.toAssignee = message.toAssignee;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<IssueCommentPayload_IssueUpdate>): IssueCommentPayload_IssueUpdate {
+ return IssueCommentPayload_IssueUpdate.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<IssueCommentPayload_IssueUpdate>): IssueCommentPayload_IssueUpdate {
+ const message = createBaseIssueCommentPayload_IssueUpdate();
+ message.fromTitle = object.fromTitle ?? undefined;
+ message.toTitle = object.toTitle ?? undefined;
+ message.fromDescription = object.fromDescription ?? undefined;
+ message.toDescription = object.toDescription ?? undefined;
+ message.fromStatus = object.fromStatus ?? undefined;
+ message.toStatus = object.toStatus ?? undefined;
+ message.fromAssignee = object.fromAssignee ?? undefined;
+ message.toAssignee = object.toAssignee ?? undefined;
+ return message;
+ },
+};
+
+function createBaseIssueCommentPayload_StageEnd(): IssueCommentPayload_StageEnd {
+ return { stage: "" };
+}
+
+export const IssueCommentPayload_StageEnd = {
+ encode(message: IssueCommentPayload_StageEnd, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.stage !== "") {
+ writer.uint32(10).string(message.stage);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): IssueCommentPayload_StageEnd {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseIssueCommentPayload_StageEnd();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.stage = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): IssueCommentPayload_StageEnd {
+ return { stage: isSet(object.stage) ? globalThis.String(object.stage) : "" };
+ },
+
+ toJSON(message: IssueCommentPayload_StageEnd): unknown {
+ const obj: any = {};
+ if (message.stage !== "") {
+ obj.stage = message.stage;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<IssueCommentPayload_StageEnd>): IssueCommentPayload_StageEnd {
+ return IssueCommentPayload_StageEnd.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<IssueCommentPayload_StageEnd>): IssueCommentPayload_StageEnd {
+ const message = createBaseIssueCommentPayload_StageEnd();
+ message.stage = object.stage ?? "";
+ return message;
+ },
+};
+
+function createBaseIssueCommentPayload_TaskRunUpdate(): IssueCommentPayload_TaskRunUpdate {
+ return { taskRuns: [], toStatus: undefined };
+}
+
+export const IssueCommentPayload_TaskRunUpdate = {
+ encode(message: IssueCommentPayload_TaskRunUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.taskRuns) {
+ writer.uint32(10).string(v!);
+ }
+ if (message.toStatus !== undefined) {
+ writer.uint32(16).int32(message.toStatus);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): IssueCommentPayload_TaskRunUpdate {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseIssueCommentPayload_TaskRunUpdate();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.taskRuns.push(reader.string());
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.toStatus = reader.int32() as any;
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): IssueCommentPayload_TaskRunUpdate {
+ return {
+ taskRuns: globalThis.Array.isArray(object?.taskRuns) ? object.taskRuns.map((e: any) => globalThis.String(e)) : [],
+ toStatus: isSet(object.toStatus) ? issueCommentPayload_TaskRunUpdate_StatusFromJSON(object.toStatus) : undefined,
+ };
+ },
+
+ toJSON(message: IssueCommentPayload_TaskRunUpdate): unknown {
+ const obj: any = {};
+ if (message.taskRuns?.length) {
+ obj.taskRuns = message.taskRuns;
+ }
+ if (message.toStatus !== undefined) {
+ obj.toStatus = issueCommentPayload_TaskRunUpdate_StatusToJSON(message.toStatus);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<IssueCommentPayload_TaskRunUpdate>): IssueCommentPayload_TaskRunUpdate {
+ return IssueCommentPayload_TaskRunUpdate.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<IssueCommentPayload_TaskRunUpdate>): IssueCommentPayload_TaskRunUpdate {
+ const message = createBaseIssueCommentPayload_TaskRunUpdate();
+ message.taskRuns = object.taskRuns?.map((e) => e) || [];
+ message.toStatus = object.toStatus ?? undefined;
+ return message;
+ },
+};
+
+function createBaseIssueCommentPayload_TaskUpdate(): IssueCommentPayload_TaskUpdate {
+ return {
+ tasks: [],
+ fromSheet: undefined,
+ toSheet: undefined,
+ fromEarliestAllowedTime: undefined,
+ toEarliestAllowedTime: undefined,
+ };
+}
+
+export const IssueCommentPayload_TaskUpdate = {
+ encode(message: IssueCommentPayload_TaskUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.tasks) {
+ writer.uint32(10).string(v!);
+ }
+ if (message.fromSheet !== undefined) {
+ writer.uint32(18).string(message.fromSheet);
+ }
+ if (message.toSheet !== undefined) {
+ writer.uint32(26).string(message.toSheet);
+ }
+ if (message.fromEarliestAllowedTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.fromEarliestAllowedTime), writer.uint32(34).fork()).ldelim();
+ }
+ if (message.toEarliestAllowedTime !== undefined) {
+ Timestamp.encode(toTimestamp(message.toEarliestAllowedTime), writer.uint32(42).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): IssueCommentPayload_TaskUpdate {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseIssueCommentPayload_TaskUpdate();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.tasks.push(reader.string());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.fromSheet = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.toSheet = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.fromEarliestAllowedTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.toEarliestAllowedTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): IssueCommentPayload_TaskUpdate {
+ return {
+ tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => globalThis.String(e)) : [],
+ fromSheet: isSet(object.fromSheet) ? globalThis.String(object.fromSheet) : undefined,
+ toSheet: isSet(object.toSheet) ? globalThis.String(object.toSheet) : undefined,
+ fromEarliestAllowedTime: isSet(object.fromEarliestAllowedTime)
+ ? fromJsonTimestamp(object.fromEarliestAllowedTime)
+ : undefined,
+ toEarliestAllowedTime: isSet(object.toEarliestAllowedTime)
+ ? fromJsonTimestamp(object.toEarliestAllowedTime)
+ : undefined,
+ };
+ },
+
+ toJSON(message: IssueCommentPayload_TaskUpdate): unknown {
+ const obj: any = {};
+ if (message.tasks?.length) {
+ obj.tasks = message.tasks;
+ }
+ if (message.fromSheet !== undefined) {
+ obj.fromSheet = message.fromSheet;
+ }
+ if (message.toSheet !== undefined) {
+ obj.toSheet = message.toSheet;
+ }
+ if (message.fromEarliestAllowedTime !== undefined) {
+ obj.fromEarliestAllowedTime = message.fromEarliestAllowedTime.toISOString();
+ }
+ if (message.toEarliestAllowedTime !== undefined) {
+ obj.toEarliestAllowedTime = message.toEarliestAllowedTime.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<IssueCommentPayload_TaskUpdate>): IssueCommentPayload_TaskUpdate {
+ return IssueCommentPayload_TaskUpdate.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<IssueCommentPayload_TaskUpdate>): IssueCommentPayload_TaskUpdate {
+ const message = createBaseIssueCommentPayload_TaskUpdate();
+ message.tasks = object.tasks?.map((e) => e) || [];
+ message.fromSheet = object.fromSheet ?? undefined;
+ message.toSheet = object.toSheet ?? undefined;
+ message.fromEarliestAllowedTime = object.fromEarliestAllowedTime ?? undefined;
+ message.toEarliestAllowedTime = object.toEarliestAllowedTime ?? undefined;
+ return message;
+ },
+};
+
+function createBaseIssueCommentPayload_TaskPriorBackup(): IssueCommentPayload_TaskPriorBackup {
+ return { task: "", tables: [] };
+}
+
+export const IssueCommentPayload_TaskPriorBackup = {
+ encode(message: IssueCommentPayload_TaskPriorBackup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.task !== "") {
+ writer.uint32(10).string(message.task);
+ }
+ for (const v of message.tables) {
+ IssueCommentPayload_TaskPriorBackup_Table.encode(v!, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): IssueCommentPayload_TaskPriorBackup {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseIssueCommentPayload_TaskPriorBackup();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.task = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.tables.push(IssueCommentPayload_TaskPriorBackup_Table.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): IssueCommentPayload_TaskPriorBackup {
+ return {
+ task: isSet(object.task) ? globalThis.String(object.task) : "",
+ tables: globalThis.Array.isArray(object?.tables)
+ ? object.tables.map((e: any) => IssueCommentPayload_TaskPriorBackup_Table.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: IssueCommentPayload_TaskPriorBackup): unknown {
+ const obj: any = {};
+ if (message.task !== "") {
+ obj.task = message.task;
+ }
+ if (message.tables?.length) {
+ obj.tables = message.tables.map((e) => IssueCommentPayload_TaskPriorBackup_Table.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<IssueCommentPayload_TaskPriorBackup>): IssueCommentPayload_TaskPriorBackup {
+ return IssueCommentPayload_TaskPriorBackup.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<IssueCommentPayload_TaskPriorBackup>): IssueCommentPayload_TaskPriorBackup {
+ const message = createBaseIssueCommentPayload_TaskPriorBackup();
+ message.task = object.task ?? "";
+ message.tables = object.tables?.map((e) => IssueCommentPayload_TaskPriorBackup_Table.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseIssueCommentPayload_TaskPriorBackup_Table(): IssueCommentPayload_TaskPriorBackup_Table {
+ return { schema: "", table: "" };
+}
+
+export const IssueCommentPayload_TaskPriorBackup_Table = {
+ encode(message: IssueCommentPayload_TaskPriorBackup_Table, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.schema !== "") {
+ writer.uint32(10).string(message.schema);
+ }
+ if (message.table !== "") {
+ writer.uint32(18).string(message.table);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): IssueCommentPayload_TaskPriorBackup_Table {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseIssueCommentPayload_TaskPriorBackup_Table();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.schema = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.table = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): IssueCommentPayload_TaskPriorBackup_Table {
+ return {
+ schema: isSet(object.schema) ? globalThis.String(object.schema) : "",
+ table: isSet(object.table) ? globalThis.String(object.table) : "",
+ };
+ },
+
+ toJSON(message: IssueCommentPayload_TaskPriorBackup_Table): unknown {
+ const obj: any = {};
+ if (message.schema !== "") {
+ obj.schema = message.schema;
+ }
+ if (message.table !== "") {
+ obj.table = message.table;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<IssueCommentPayload_TaskPriorBackup_Table>): IssueCommentPayload_TaskPriorBackup_Table {
+ return IssueCommentPayload_TaskPriorBackup_Table.fromPartial(base ?? {});
+ },
+ fromPartial(
+ object: DeepPartial<IssueCommentPayload_TaskPriorBackup_Table>,
+ ): IssueCommentPayload_TaskPriorBackup_Table {
+ const message = createBaseIssueCommentPayload_TaskPriorBackup_Table();
+ 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
+ : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
+ : Partial<T>;
+
+function toTimestamp(date: Date): Timestamp {
+ const seconds = numberToLong(date.getTime() / 1_000);
+ const nanos = (date.getTime() % 1_000) * 1_000_000;
+ return { seconds, nanos };
+}
+
+function fromTimestamp(t: Timestamp): Date {
+ let millis = (t.seconds.toNumber() || 0) * 1_000;
+ millis += (t.nanos || 0) / 1_000_000;
+ return new globalThis.Date(millis);
+}
+
+function fromJsonTimestamp(o: any): Date {
+ if (o instanceof globalThis.Date) {
+ return o;
+ } else if (typeof o === "string") {
+ return new globalThis.Date(o);
+ } else {
+ return fromTimestamp(Timestamp.fromJSON(o));
+ }
+}
+
+function numberToLong(number: number) {
+ return Long.fromNumber(number);
+}
+
+if (_m0.util.Long !== Long) {
+ _m0.util.Long = Long as any;
+ _m0.configure();
+}
+
+function isSet(value: any): boolean {
+ return value !== null && value !== undefined;
+}
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 3067757dc8..c24aa94225 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -122,6 +122,20 @@
- [GrantRequest](#bytebase-store-GrantRequest)
- [IssuePayload](#bytebase-store-IssuePayload)
+- [store/issue_comment.proto](#store_issue_comment-proto)
+ - [IssueCommentPayload](#bytebase-store-IssueCommentPayload)
+ - [IssueCommentPayload.Approval](#bytebase-store-IssueCommentPayload-Approval)
+ - [IssueCommentPayload.IssueUpdate](#bytebase-store-IssueCommentPayload-IssueUpdate)
+ - [IssueCommentPayload.StageEnd](#bytebase-store-IssueCommentPayload-StageEnd)
+ - [IssueCommentPayload.TaskPriorBackup](#bytebase-store-IssueCommentPayload-TaskPriorBackup)
+ - [IssueCommentPayload.TaskPriorBackup.Table](#bytebase-store-IssueCommentPayload-TaskPriorBackup-Table)
+ - [IssueCommentPayload.TaskRunUpdate](#bytebase-store-IssueCommentPayload-TaskRunUpdate)
+ - [IssueCommentPayload.TaskUpdate](#bytebase-store-IssueCommentPayload-TaskUpdate)
+
+ - [IssueCommentPayload.Approval.Status](#bytebase-store-IssueCommentPayload-Approval-Status)
+ - [IssueCommentPayload.IssueUpdate.IssueStatus](#bytebase-store-IssueCommentPayload-IssueUpdate-IssueStatus)
+ - [IssueCommentPayload.TaskRunUpdate.Status](#bytebase-store-IssueCommentPayload-TaskRunUpdate-Status)
+
- [store/plan.proto](#store_plan-proto)
- [PlanConfig](#bytebase-store-PlanConfig)
- [PlanConfig.ChangeDatabaseConfig](#bytebase-store-PlanConfig-ChangeDatabaseConfig)
@@ -1979,6 +1993,205 @@ InstanceOptions is the option for instances.
+<a name="store_issue_comment-proto"></a>
+<p align="right"><a href="#top">Top</a></p>
+
+## store/issue_comment.proto
+
+
+
+<a name="bytebase-store-IssueCommentPayload"></a>
+
+### IssueCommentPayload
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| comment | [string](#string) | | |
+| approval | [IssueCommentPayload.Approval](#bytebase-store-IssueCommentPayload-Approval) | | |
+| issue_update | [IssueCommentPayload.IssueUpdate](#bytebase-store-IssueCommentPayload-IssueUpdate) | | |
+| stage_end | [IssueCommentPayload.StageEnd](#bytebase-store-IssueCommentPayload-StageEnd) | | |
+| task_run_update | [IssueCommentPayload.TaskRunUpdate](#bytebase-store-IssueCommentPayload-TaskRunUpdate) | | |
+| task_update | [IssueCommentPayload.TaskUpdate](#bytebase-store-IssueCommentPayload-TaskUpdate) | | |
+| task_prior_backup | [IssueCommentPayload.TaskPriorBackup](#bytebase-store-IssueCommentPayload-TaskPriorBackup) | | |
+
+
+
+
+
+
+<a name="bytebase-store-IssueCommentPayload-Approval"></a>
+
+### IssueCommentPayload.Approval
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| status | [IssueCommentPayload.Approval.Status](#bytebase-store-IssueCommentPayload-Approval-Status) | | |
+
+
+
+
+
+
+<a name="bytebase-store-IssueCommentPayload-IssueUpdate"></a>
+
+### IssueCommentPayload.IssueUpdate
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| from_title | [string](#string) | optional | |
+| to_title | [string](#string) | optional | |
+| from_description | [string](#string) | optional | |
+| to_description | [string](#string) | optional | |
+| from_status | [IssueCommentPayload.IssueUpdate.IssueStatus](#bytebase-store-IssueCommentPayload-IssueUpdate-IssueStatus) | optional | |
+| to_status | [IssueCommentPayload.IssueUpdate.IssueStatus](#bytebase-store-IssueCommentPayload-IssueUpdate-IssueStatus) | optional | |
+| from_assignee | [string](#string) | optional | Format: users/{email} |
+| to_assignee | [string](#string) | optional | Format: users/{email} |
+
+
+
+
+
+
+<a name="bytebase-store-IssueCommentPayload-StageEnd"></a>
+
+### IssueCommentPayload.StageEnd
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| stage | [string](#string) | | |
+
+
+
+
+
+
+<a name="bytebase-store-IssueCommentPayload-TaskPriorBackup"></a>
+
+### IssueCommentPayload.TaskPriorBackup
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| task | [string](#string) | | |
+| tables | [IssueCommentPayload.TaskPriorBackup.Table](#bytebase-store-IssueCommentPayload-TaskPriorBackup-Table) | repeated | |
+
+
+
+
+
+
+<a name="bytebase-store-IssueCommentPayload-TaskPriorBackup-Table"></a>
+
+### IssueCommentPayload.TaskPriorBackup.Table
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| schema | [string](#string) | | |
+| table | [string](#string) | | |
+
+
+
+
+
+
+<a name="bytebase-store-IssueCommentPayload-TaskRunUpdate"></a>
+
+### IssueCommentPayload.TaskRunUpdate
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| task_runs | [string](#string) | repeated | |
+| to_status | [IssueCommentPayload.TaskRunUpdate.Status](#bytebase-store-IssueCommentPayload-TaskRunUpdate-Status) | optional | |
+
+
+
+
+
+
+<a name="bytebase-store-IssueCommentPayload-TaskUpdate"></a>
+
+### IssueCommentPayload.TaskUpdate
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| tasks | [string](#string) | repeated | |
+| from_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |
+| to_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |
+| from_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |
+| to_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |
+
+
+
+
+
+
+
+
+<a name="bytebase-store-IssueCommentPayload-Approval-Status"></a>
+
+### IssueCommentPayload.Approval.Status
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| STATUS_UNSPECIFIED | 0 | |
+| PENDING | 1 | |
+| APPROVED | 2 | |
+| REJECTED | 3 | |
+
+
+
+<a name="bytebase-store-IssueCommentPayload-IssueUpdate-IssueStatus"></a>
+
+### IssueCommentPayload.IssueUpdate.IssueStatus
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| ISSUE_STATUS_UNSPECIFIED | 0 | |
+| OPEN | 1 | |
+| DONE | 2 | |
+| CANCELED | 3 | |
+
+
+
+<a name="bytebase-store-IssueCommentPayload-TaskRunUpdate-Status"></a>
+
+### IssueCommentPayload.TaskRunUpdate.Status
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| STATUS_UNSPECIFIED | 0 | |
+| PENDING | 1 | |
+| RUNNING | 2 | |
+| DONE | 3 | |
+| FAILED | 4 | |
+
+
+
+
+
+
+
+
+
+
<a name="store_plan-proto"></a>
<p align="right"><a href="#top">Top</a></p>
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index bac3bef8f3..4a7d798878 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -665,6 +665,61 @@
</li>
+ <li>
+ <a href="#store%2fissue_comment.proto">store/issue_comment.proto</a>
+ <ul>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload"><span class="badge">M</span>IssueCommentPayload</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.Approval"><span class="badge">M</span>IssueCommentPayload.Approval</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.IssueUpdate"><span class="badge">M</span>IssueCommentPayload.IssueUpdate</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.StageEnd"><span class="badge">M</span>IssueCommentPayload.StageEnd</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.TaskPriorBackup"><span class="badge">M</span>IssueCommentPayload.TaskPriorBackup</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.TaskPriorBackup.Table"><span class="badge">M</span>IssueCommentPayload.TaskPriorBackup.Table</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.TaskRunUpdate"><span class="badge">M</span>IssueCommentPayload.TaskRunUpdate</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.TaskUpdate"><span class="badge">M</span>IssueCommentPayload.TaskUpdate</a>
+ </li>
+
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.Approval.Status"><span class="badge">E</span>IssueCommentPayload.Approval.Status</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus"><span class="badge">E</span>IssueCommentPayload.IssueUpdate.IssueStatus</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.IssueCommentPayload.TaskRunUpdate.Status"><span class="badge">E</span>IssueCommentPayload.TaskRunUpdate.Status</a>
+ </li>
+
+
+
+ </ul>
+ </li>
+
+
<li>
<a href="#store%2fplan.proto">store/plan.proto</a>
<ul>
@@ -5254,6 +5309,463 @@ Format: users/{userUID}. </p></td>
+ <div class="file-heading">
+ <h2 id="store/issue_comment.proto">store/issue_comment.proto</h2><a href="#title">Top</a>
+ </div>
+ <p></p>
+
+
+ <h3 id="bytebase.store.IssueCommentPayload">IssueCommentPayload</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>comment</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>approval</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.Approval">IssueCommentPayload.Approval</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>issue_update</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.IssueUpdate">IssueCommentPayload.IssueUpdate</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>stage_end</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.StageEnd">IssueCommentPayload.StageEnd</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>task_run_update</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.TaskRunUpdate">IssueCommentPayload.TaskRunUpdate</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>task_update</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.TaskUpdate">IssueCommentPayload.TaskUpdate</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>task_prior_backup</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.TaskPriorBackup">IssueCommentPayload.TaskPriorBackup</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.IssueCommentPayload.Approval">IssueCommentPayload.Approval</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>status</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.Approval.Status">IssueCommentPayload.Approval.Status</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.IssueCommentPayload.IssueUpdate">IssueCommentPayload.IssueUpdate</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>from_title</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>to_title</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>from_description</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>to_description</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>from_status</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus">IssueCommentPayload.IssueUpdate.IssueStatus</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>to_status</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus">IssueCommentPayload.IssueUpdate.IssueStatus</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>from_assignee</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p>Format: users/{email} </p></td>
+ </tr>
+
+ <tr>
+ <td>to_assignee</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p>Format: users/{email} </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.IssueCommentPayload.StageEnd">IssueCommentPayload.StageEnd</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>stage</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.IssueCommentPayload.TaskPriorBackup">IssueCommentPayload.TaskPriorBackup</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>task</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>tables</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.TaskPriorBackup.Table">IssueCommentPayload.TaskPriorBackup.Table</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.IssueCommentPayload.TaskPriorBackup.Table">IssueCommentPayload.TaskPriorBackup.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>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.IssueCommentPayload.TaskRunUpdate">IssueCommentPayload.TaskRunUpdate</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>task_runs</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>to_status</td>
+ <td><a href="#bytebase.store.IssueCommentPayload.TaskRunUpdate.Status">IssueCommentPayload.TaskRunUpdate.Status</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.IssueCommentPayload.TaskUpdate">IssueCommentPayload.TaskUpdate</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>tasks</td>
+ <td><a href="#string">string</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>from_sheet</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td>
+ </tr>
+
+ <tr>
+ <td>to_sheet</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td>
+ </tr>
+
+ <tr>
+ <td>from_earliest_allowed_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>to_earliest_allowed_time</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+
+
+ <h3 id="bytebase.store.IssueCommentPayload.Approval.Status">IssueCommentPayload.Approval.Status</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>STATUS_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>PENDING</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>APPROVED</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>REJECTED</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus">IssueCommentPayload.IssueUpdate.IssueStatus</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>ISSUE_STATUS_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>OPEN</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>DONE</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>CANCELED</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.store.IssueCommentPayload.TaskRunUpdate.Status">IssueCommentPayload.TaskRunUpdate.Status</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>STATUS_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>PENDING</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>RUNNING</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>DONE</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>FAILED</td>
+ <td>4</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+
+
<div class="file-heading">
<h2 id="store/plan.proto">store/plan.proto</h2><a href="#title">Top</a>
</div>
diff --git a/proto/generated-go/store/issue_comment.pb.go b/proto/generated-go/store/issue_comment.pb.go
new file mode 100644
index 0000000000..3e2c57ad9f
--- /dev/null
+++ b/proto/generated-go/store/issue_comment.pb.go
@@ -0,0 +1,1106 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.33.0
+// protoc (unknown)
+// source: store/issue_comment.proto
+
+package store
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ timestamppb "google.golang.org/protobuf/types/known/timestamppb"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type IssueCommentPayload_Approval_Status int32
+
+const (
+ IssueCommentPayload_Approval_STATUS_UNSPECIFIED IssueCommentPayload_Approval_Status = 0
+ IssueCommentPayload_Approval_PENDING IssueCommentPayload_Approval_Status = 1
+ IssueCommentPayload_Approval_APPROVED IssueCommentPayload_Approval_Status = 2
+ IssueCommentPayload_Approval_REJECTED IssueCommentPayload_Approval_Status = 3
+)
+
+// Enum value maps for IssueCommentPayload_Approval_Status.
+var (
+ IssueCommentPayload_Approval_Status_name = map[int32]string{
+ 0: "STATUS_UNSPECIFIED",
+ 1: "PENDING",
+ 2: "APPROVED",
+ 3: "REJECTED",
+ }
+ IssueCommentPayload_Approval_Status_value = map[string]int32{
+ "STATUS_UNSPECIFIED": 0,
+ "PENDING": 1,
+ "APPROVED": 2,
+ "REJECTED": 3,
+ }
+)
+
+func (x IssueCommentPayload_Approval_Status) Enum() *IssueCommentPayload_Approval_Status {
+ p := new(IssueCommentPayload_Approval_Status)
+ *p = x
+ return p
+}
+
+func (x IssueCommentPayload_Approval_Status) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (IssueCommentPayload_Approval_Status) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_issue_comment_proto_enumTypes[0].Descriptor()
+}
+
+func (IssueCommentPayload_Approval_Status) Type() protoreflect.EnumType {
+ return &file_store_issue_comment_proto_enumTypes[0]
+}
+
+func (x IssueCommentPayload_Approval_Status) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use IssueCommentPayload_Approval_Status.Descriptor instead.
+func (IssueCommentPayload_Approval_Status) EnumDescriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 0, 0}
+}
+
+type IssueCommentPayload_IssueUpdate_IssueStatus int32
+
+const (
+ IssueCommentPayload_IssueUpdate_ISSUE_STATUS_UNSPECIFIED IssueCommentPayload_IssueUpdate_IssueStatus = 0
+ IssueCommentPayload_IssueUpdate_OPEN IssueCommentPayload_IssueUpdate_IssueStatus = 1
+ IssueCommentPayload_IssueUpdate_DONE IssueCommentPayload_IssueUpdate_IssueStatus = 2
+ IssueCommentPayload_IssueUpdate_CANCELED IssueCommentPayload_IssueUpdate_IssueStatus = 3
+)
+
+// Enum value maps for IssueCommentPayload_IssueUpdate_IssueStatus.
+var (
+ IssueCommentPayload_IssueUpdate_IssueStatus_name = map[int32]string{
+ 0: "ISSUE_STATUS_UNSPECIFIED",
+ 1: "OPEN",
+ 2: "DONE",
+ 3: "CANCELED",
+ }
+ IssueCommentPayload_IssueUpdate_IssueStatus_value = map[string]int32{
+ "ISSUE_STATUS_UNSPECIFIED": 0,
+ "OPEN": 1,
+ "DONE": 2,
+ "CANCELED": 3,
+ }
+)
+
+func (x IssueCommentPayload_IssueUpdate_IssueStatus) Enum() *IssueCommentPayload_IssueUpdate_IssueStatus {
+ p := new(IssueCommentPayload_IssueUpdate_IssueStatus)
+ *p = x
+ return p
+}
+
+func (x IssueCommentPayload_IssueUpdate_IssueStatus) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (IssueCommentPayload_IssueUpdate_IssueStatus) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_issue_comment_proto_enumTypes[1].Descriptor()
+}
+
+func (IssueCommentPayload_IssueUpdate_IssueStatus) Type() protoreflect.EnumType {
+ return &file_store_issue_comment_proto_enumTypes[1]
+}
+
+func (x IssueCommentPayload_IssueUpdate_IssueStatus) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use IssueCommentPayload_IssueUpdate_IssueStatus.Descriptor instead.
+func (IssueCommentPayload_IssueUpdate_IssueStatus) EnumDescriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 1, 0}
+}
+
+type IssueCommentPayload_TaskRunUpdate_Status int32
+
+const (
+ IssueCommentPayload_TaskRunUpdate_STATUS_UNSPECIFIED IssueCommentPayload_TaskRunUpdate_Status = 0
+ IssueCommentPayload_TaskRunUpdate_PENDING IssueCommentPayload_TaskRunUpdate_Status = 1
+ IssueCommentPayload_TaskRunUpdate_RUNNING IssueCommentPayload_TaskRunUpdate_Status = 2
+ IssueCommentPayload_TaskRunUpdate_DONE IssueCommentPayload_TaskRunUpdate_Status = 3
+ IssueCommentPayload_TaskRunUpdate_FAILED IssueCommentPayload_TaskRunUpdate_Status = 4
+)
+
+// Enum value maps for IssueCommentPayload_TaskRunUpdate_Status.
+var (
+ IssueCommentPayload_TaskRunUpdate_Status_name = map[int32]string{
+ 0: "STATUS_UNSPECIFIED",
+ 1: "PENDING",
+ 2: "RUNNING",
+ 3: "DONE",
+ 4: "FAILED",
+ }
+ IssueCommentPayload_TaskRunUpdate_Status_value = map[string]int32{
+ "STATUS_UNSPECIFIED": 0,
+ "PENDING": 1,
+ "RUNNING": 2,
+ "DONE": 3,
+ "FAILED": 4,
+ }
+)
+
+func (x IssueCommentPayload_TaskRunUpdate_Status) Enum() *IssueCommentPayload_TaskRunUpdate_Status {
+ p := new(IssueCommentPayload_TaskRunUpdate_Status)
+ *p = x
+ return p
+}
+
+func (x IssueCommentPayload_TaskRunUpdate_Status) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (IssueCommentPayload_TaskRunUpdate_Status) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_issue_comment_proto_enumTypes[2].Descriptor()
+}
+
+func (IssueCommentPayload_TaskRunUpdate_Status) Type() protoreflect.EnumType {
+ return &file_store_issue_comment_proto_enumTypes[2]
+}
+
+func (x IssueCommentPayload_TaskRunUpdate_Status) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use IssueCommentPayload_TaskRunUpdate_Status.Descriptor instead.
+func (IssueCommentPayload_TaskRunUpdate_Status) EnumDescriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 3, 0}
+}
+
+type IssueCommentPayload struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
+ // Types that are assignable to Event:
+ //
+ // *IssueCommentPayload_Approval_
+ // *IssueCommentPayload_IssueUpdate_
+ // *IssueCommentPayload_StageEnd_
+ // *IssueCommentPayload_TaskRunUpdate_
+ // *IssueCommentPayload_TaskUpdate_
+ // *IssueCommentPayload_TaskPriorBackup_
+ Event isIssueCommentPayload_Event `protobuf_oneof:"event"`
+}
+
+func (x *IssueCommentPayload) Reset() {
+ *x = IssueCommentPayload{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_issue_comment_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *IssueCommentPayload) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IssueCommentPayload) ProtoMessage() {}
+
+func (x *IssueCommentPayload) ProtoReflect() protoreflect.Message {
+ mi := &file_store_issue_comment_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use IssueCommentPayload.ProtoReflect.Descriptor instead.
+func (*IssueCommentPayload) Descriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *IssueCommentPayload) GetComment() string {
+ if x != nil {
+ return x.Comment
+ }
+ return ""
+}
+
+func (m *IssueCommentPayload) GetEvent() isIssueCommentPayload_Event {
+ if m != nil {
+ return m.Event
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload) GetApproval() *IssueCommentPayload_Approval {
+ if x, ok := x.GetEvent().(*IssueCommentPayload_Approval_); ok {
+ return x.Approval
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload) GetIssueUpdate() *IssueCommentPayload_IssueUpdate {
+ if x, ok := x.GetEvent().(*IssueCommentPayload_IssueUpdate_); ok {
+ return x.IssueUpdate
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload) GetStageEnd() *IssueCommentPayload_StageEnd {
+ if x, ok := x.GetEvent().(*IssueCommentPayload_StageEnd_); ok {
+ return x.StageEnd
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload) GetTaskRunUpdate() *IssueCommentPayload_TaskRunUpdate {
+ if x, ok := x.GetEvent().(*IssueCommentPayload_TaskRunUpdate_); ok {
+ return x.TaskRunUpdate
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload) GetTaskUpdate() *IssueCommentPayload_TaskUpdate {
+ if x, ok := x.GetEvent().(*IssueCommentPayload_TaskUpdate_); ok {
+ return x.TaskUpdate
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload) GetTaskPriorBackup() *IssueCommentPayload_TaskPriorBackup {
+ if x, ok := x.GetEvent().(*IssueCommentPayload_TaskPriorBackup_); ok {
+ return x.TaskPriorBackup
+ }
+ return nil
+}
+
+type isIssueCommentPayload_Event interface {
+ isIssueCommentPayload_Event()
+}
+
+type IssueCommentPayload_Approval_ struct {
+ Approval *IssueCommentPayload_Approval `protobuf:"bytes,8,opt,name=approval,proto3,oneof"`
+}
+
+type IssueCommentPayload_IssueUpdate_ struct {
+ IssueUpdate *IssueCommentPayload_IssueUpdate `protobuf:"bytes,9,opt,name=issue_update,json=issueUpdate,proto3,oneof"`
+}
+
+type IssueCommentPayload_StageEnd_ struct {
+ StageEnd *IssueCommentPayload_StageEnd `protobuf:"bytes,10,opt,name=stage_end,json=stageEnd,proto3,oneof"`
+}
+
+type IssueCommentPayload_TaskRunUpdate_ struct {
+ TaskRunUpdate *IssueCommentPayload_TaskRunUpdate `protobuf:"bytes,11,opt,name=task_run_update,json=taskRunUpdate,proto3,oneof"`
+}
+
+type IssueCommentPayload_TaskUpdate_ struct {
+ TaskUpdate *IssueCommentPayload_TaskUpdate `protobuf:"bytes,12,opt,name=task_update,json=taskUpdate,proto3,oneof"`
+}
+
+type IssueCommentPayload_TaskPriorBackup_ struct {
+ TaskPriorBackup *IssueCommentPayload_TaskPriorBackup `protobuf:"bytes,13,opt,name=task_prior_backup,json=taskPriorBackup,proto3,oneof"`
+}
+
+func (*IssueCommentPayload_Approval_) isIssueCommentPayload_Event() {}
+
+func (*IssueCommentPayload_IssueUpdate_) isIssueCommentPayload_Event() {}
+
+func (*IssueCommentPayload_StageEnd_) isIssueCommentPayload_Event() {}
+
+func (*IssueCommentPayload_TaskRunUpdate_) isIssueCommentPayload_Event() {}
+
+func (*IssueCommentPayload_TaskUpdate_) isIssueCommentPayload_Event() {}
+
+func (*IssueCommentPayload_TaskPriorBackup_) isIssueCommentPayload_Event() {}
+
+type IssueCommentPayload_Approval struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Status IssueCommentPayload_Approval_Status `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.store.IssueCommentPayload_Approval_Status" json:"status,omitempty"`
+}
+
+func (x *IssueCommentPayload_Approval) Reset() {
+ *x = IssueCommentPayload_Approval{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_issue_comment_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *IssueCommentPayload_Approval) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IssueCommentPayload_Approval) ProtoMessage() {}
+
+func (x *IssueCommentPayload_Approval) ProtoReflect() protoreflect.Message {
+ mi := &file_store_issue_comment_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 IssueCommentPayload_Approval.ProtoReflect.Descriptor instead.
+func (*IssueCommentPayload_Approval) Descriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 0}
+}
+
+func (x *IssueCommentPayload_Approval) GetStatus() IssueCommentPayload_Approval_Status {
+ if x != nil {
+ return x.Status
+ }
+ return IssueCommentPayload_Approval_STATUS_UNSPECIFIED
+}
+
+type IssueCommentPayload_IssueUpdate struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ FromTitle *string `protobuf:"bytes,1,opt,name=from_title,json=fromTitle,proto3,oneof" json:"from_title,omitempty"`
+ ToTitle *string `protobuf:"bytes,2,opt,name=to_title,json=toTitle,proto3,oneof" json:"to_title,omitempty"`
+ FromDescription *string `protobuf:"bytes,3,opt,name=from_description,json=fromDescription,proto3,oneof" json:"from_description,omitempty"`
+ ToDescription *string `protobuf:"bytes,4,opt,name=to_description,json=toDescription,proto3,oneof" json:"to_description,omitempty"`
+ FromStatus *IssueCommentPayload_IssueUpdate_IssueStatus `protobuf:"varint,5,opt,name=from_status,json=fromStatus,proto3,enum=bytebase.store.IssueCommentPayload_IssueUpdate_IssueStatus,oneof" json:"from_status,omitempty"`
+ ToStatus *IssueCommentPayload_IssueUpdate_IssueStatus `protobuf:"varint,6,opt,name=to_status,json=toStatus,proto3,enum=bytebase.store.IssueCommentPayload_IssueUpdate_IssueStatus,oneof" json:"to_status,omitempty"`
+ // Format: users/{email}
+ FromAssignee *string `protobuf:"bytes,7,opt,name=from_assignee,json=fromAssignee,proto3,oneof" json:"from_assignee,omitempty"`
+ // Format: users/{email}
+ ToAssignee *string `protobuf:"bytes,8,opt,name=to_assignee,json=toAssignee,proto3,oneof" json:"to_assignee,omitempty"`
+}
+
+func (x *IssueCommentPayload_IssueUpdate) Reset() {
+ *x = IssueCommentPayload_IssueUpdate{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_issue_comment_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *IssueCommentPayload_IssueUpdate) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IssueCommentPayload_IssueUpdate) ProtoMessage() {}
+
+func (x *IssueCommentPayload_IssueUpdate) ProtoReflect() protoreflect.Message {
+ mi := &file_store_issue_comment_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use IssueCommentPayload_IssueUpdate.ProtoReflect.Descriptor instead.
+func (*IssueCommentPayload_IssueUpdate) Descriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 1}
+}
+
+func (x *IssueCommentPayload_IssueUpdate) GetFromTitle() string {
+ if x != nil && x.FromTitle != nil {
+ return *x.FromTitle
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_IssueUpdate) GetToTitle() string {
+ if x != nil && x.ToTitle != nil {
+ return *x.ToTitle
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_IssueUpdate) GetFromDescription() string {
+ if x != nil && x.FromDescription != nil {
+ return *x.FromDescription
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_IssueUpdate) GetToDescription() string {
+ if x != nil && x.ToDescription != nil {
+ return *x.ToDescription
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_IssueUpdate) GetFromStatus() IssueCommentPayload_IssueUpdate_IssueStatus {
+ if x != nil && x.FromStatus != nil {
+ return *x.FromStatus
+ }
+ return IssueCommentPayload_IssueUpdate_ISSUE_STATUS_UNSPECIFIED
+}
+
+func (x *IssueCommentPayload_IssueUpdate) GetToStatus() IssueCommentPayload_IssueUpdate_IssueStatus {
+ if x != nil && x.ToStatus != nil {
+ return *x.ToStatus
+ }
+ return IssueCommentPayload_IssueUpdate_ISSUE_STATUS_UNSPECIFIED
+}
+
+func (x *IssueCommentPayload_IssueUpdate) GetFromAssignee() string {
+ if x != nil && x.FromAssignee != nil {
+ return *x.FromAssignee
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_IssueUpdate) GetToAssignee() string {
+ if x != nil && x.ToAssignee != nil {
+ return *x.ToAssignee
+ }
+ return ""
+}
+
+type IssueCommentPayload_StageEnd struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`
+}
+
+func (x *IssueCommentPayload_StageEnd) Reset() {
+ *x = IssueCommentPayload_StageEnd{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_issue_comment_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *IssueCommentPayload_StageEnd) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IssueCommentPayload_StageEnd) ProtoMessage() {}
+
+func (x *IssueCommentPayload_StageEnd) ProtoReflect() protoreflect.Message {
+ mi := &file_store_issue_comment_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 IssueCommentPayload_StageEnd.ProtoReflect.Descriptor instead.
+func (*IssueCommentPayload_StageEnd) Descriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 2}
+}
+
+func (x *IssueCommentPayload_StageEnd) GetStage() string {
+ if x != nil {
+ return x.Stage
+ }
+ return ""
+}
+
+type IssueCommentPayload_TaskRunUpdate struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ TaskRuns []string `protobuf:"bytes,1,rep,name=task_runs,json=taskRuns,proto3" json:"task_runs,omitempty"`
+ ToStatus *IssueCommentPayload_TaskRunUpdate_Status `protobuf:"varint,2,opt,name=to_status,json=toStatus,proto3,enum=bytebase.store.IssueCommentPayload_TaskRunUpdate_Status,oneof" json:"to_status,omitempty"`
+}
+
+func (x *IssueCommentPayload_TaskRunUpdate) Reset() {
+ *x = IssueCommentPayload_TaskRunUpdate{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_issue_comment_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *IssueCommentPayload_TaskRunUpdate) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IssueCommentPayload_TaskRunUpdate) ProtoMessage() {}
+
+func (x *IssueCommentPayload_TaskRunUpdate) ProtoReflect() protoreflect.Message {
+ mi := &file_store_issue_comment_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 IssueCommentPayload_TaskRunUpdate.ProtoReflect.Descriptor instead.
+func (*IssueCommentPayload_TaskRunUpdate) Descriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 3}
+}
+
+func (x *IssueCommentPayload_TaskRunUpdate) GetTaskRuns() []string {
+ if x != nil {
+ return x.TaskRuns
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload_TaskRunUpdate) GetToStatus() IssueCommentPayload_TaskRunUpdate_Status {
+ if x != nil && x.ToStatus != nil {
+ return *x.ToStatus
+ }
+ return IssueCommentPayload_TaskRunUpdate_STATUS_UNSPECIFIED
+}
+
+type IssueCommentPayload_TaskUpdate struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Tasks []string `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
+ // Format: projects/{project}/sheets/{sheet}
+ FromSheet *string `protobuf:"bytes,2,opt,name=from_sheet,json=fromSheet,proto3,oneof" json:"from_sheet,omitempty"`
+ // Format: projects/{project}/sheets/{sheet}
+ ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`
+ FromEarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=from_earliest_allowed_time,json=fromEarliestAllowedTime,proto3,oneof" json:"from_earliest_allowed_time,omitempty"`
+ ToEarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=to_earliest_allowed_time,json=toEarliestAllowedTime,proto3,oneof" json:"to_earliest_allowed_time,omitempty"`
+}
+
+func (x *IssueCommentPayload_TaskUpdate) Reset() {
+ *x = IssueCommentPayload_TaskUpdate{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_issue_comment_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *IssueCommentPayload_TaskUpdate) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IssueCommentPayload_TaskUpdate) ProtoMessage() {}
+
+func (x *IssueCommentPayload_TaskUpdate) ProtoReflect() protoreflect.Message {
+ mi := &file_store_issue_comment_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use IssueCommentPayload_TaskUpdate.ProtoReflect.Descriptor instead.
+func (*IssueCommentPayload_TaskUpdate) Descriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 4}
+}
+
+func (x *IssueCommentPayload_TaskUpdate) GetTasks() []string {
+ if x != nil {
+ return x.Tasks
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload_TaskUpdate) GetFromSheet() string {
+ if x != nil && x.FromSheet != nil {
+ return *x.FromSheet
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_TaskUpdate) GetToSheet() string {
+ if x != nil && x.ToSheet != nil {
+ return *x.ToSheet
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_TaskUpdate) GetFromEarliestAllowedTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.FromEarliestAllowedTime
+ }
+ return nil
+}
+
+func (x *IssueCommentPayload_TaskUpdate) GetToEarliestAllowedTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.ToEarliestAllowedTime
+ }
+ return nil
+}
+
+type IssueCommentPayload_TaskPriorBackup struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
+ Tables []*IssueCommentPayload_TaskPriorBackup_Table `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup) Reset() {
+ *x = IssueCommentPayload_TaskPriorBackup{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_issue_comment_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IssueCommentPayload_TaskPriorBackup) ProtoMessage() {}
+
+func (x *IssueCommentPayload_TaskPriorBackup) ProtoReflect() protoreflect.Message {
+ mi := &file_store_issue_comment_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use IssueCommentPayload_TaskPriorBackup.ProtoReflect.Descriptor instead.
+func (*IssueCommentPayload_TaskPriorBackup) Descriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 5}
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup) GetTask() string {
+ if x != nil {
+ return x.Task
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup) GetTables() []*IssueCommentPayload_TaskPriorBackup_Table {
+ if x != nil {
+ return x.Tables
+ }
+ return nil
+}
+
+type IssueCommentPayload_TaskPriorBackup_Table struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
+ Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup_Table) Reset() {
+ *x = IssueCommentPayload_TaskPriorBackup_Table{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_issue_comment_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup_Table) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*IssueCommentPayload_TaskPriorBackup_Table) ProtoMessage() {}
+
+func (x *IssueCommentPayload_TaskPriorBackup_Table) ProtoReflect() protoreflect.Message {
+ mi := &file_store_issue_comment_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use IssueCommentPayload_TaskPriorBackup_Table.ProtoReflect.Descriptor instead.
+func (*IssueCommentPayload_TaskPriorBackup_Table) Descriptor() ([]byte, []int) {
+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 5, 0}
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup_Table) GetSchema() string {
+ if x != nil {
+ return x.Schema
+ }
+ return ""
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup_Table) GetTable() string {
+ if x != nil {
+ return x.Table
+ }
+ return ""
+}
+
+var File_store_issue_comment_proto protoreflect.FileDescriptor
+
+var file_store_issue_comment_proto_rawDesc = []byte{
+ 0x0a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x63, 0x6f,
+ 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
+ 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
+ 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x11, 0x0a,
+ 0x13, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79,
+ 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4a,
+ 0x0a, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
+ 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61,
+ 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x48, 0x00,
+ 0x52, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x12, 0x54, 0x0a, 0x0c, 0x69, 0x73,
+ 0x73, 0x75, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x2f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
+ 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61,
+ 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x12, 0x4b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x0a, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x45, 0x6e,
+ 0x64, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x64, 0x12, 0x5b, 0x0a,
+ 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61, 0x73, 0x6b,
+ 0x52, 0x75, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x61, 0x73,
+ 0x6b, 0x52, 0x75, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x74, 0x61,
+ 0x73, 0x6b, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79,
+ 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
+ 0x00, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x61, 0x0a,
+ 0x11, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x62, 0x61, 0x63, 0x6b,
+ 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61,
+ 0x73, 0x6b, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52,
+ 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
+ 0x1a, 0xa2, 0x01, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x12, 0x4b, 0x0a,
+ 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49,
+ 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f,
+ 0x61, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74,
+ 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x49, 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, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50,
+ 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4a, 0x45, 0x43,
+ 0x54, 0x45, 0x44, 0x10, 0x03, 0x1a, 0x92, 0x05, 0x0a, 0x0b, 0x49, 0x73, 0x73, 0x75, 0x65, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x69,
+ 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x66, 0x72, 0x6f,
+ 0x6d, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1e, 0x0a, 0x08, 0x74, 0x6f, 0x5f,
+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x07, 0x74,
+ 0x6f, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x10, 0x66, 0x72, 0x6f,
+ 0x6d, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0f, 0x66, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72,
+ 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, 0x0e, 0x74, 0x6f, 0x5f,
+ 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x09, 0x48, 0x03, 0x52, 0x0d, 0x74, 0x6f, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
+ 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x61, 0x0a, 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x73, 0x74,
+ 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75,
+ 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e,
+ 0x49, 0x73, 0x73, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75,
+ 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x04, 0x52, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x53,
+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x5d, 0x0a, 0x09, 0x74, 0x6f, 0x5f, 0x73,
+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x73, 0x73,
+ 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
+ 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x73, 0x73,
+ 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x05, 0x52, 0x08, 0x74, 0x6f, 0x53, 0x74,
+ 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x5f,
+ 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x06,
+ 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x88, 0x01,
+ 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65,
+ 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x07, 0x52, 0x0a, 0x74, 0x6f, 0x41, 0x73, 0x73, 0x69,
+ 0x67, 0x6e, 0x65, 0x65, 0x88, 0x01, 0x01, 0x22, 0x4d, 0x0a, 0x0b, 0x49, 0x73, 0x73, 0x75, 0x65,
+ 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x49, 0x53, 0x53, 0x55, 0x45, 0x5f,
+ 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x08,
+ 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43,
+ 0x45, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f,
+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x74, 0x6f, 0x5f, 0x74, 0x69, 0x74,
+ 0x6c, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x64, 0x65, 0x73, 0x63,
+ 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x74, 0x6f, 0x5f, 0x64,
+ 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x66,
+ 0x72, 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74,
+ 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x66, 0x72, 0x6f,
+ 0x6d, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x74,
+ 0x6f, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x1a, 0x20, 0x0a, 0x08, 0x53, 0x74,
+ 0x61, 0x67, 0x65, 0x45, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x1a, 0xe8, 0x01, 0x0a,
+ 0x0d, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b,
+ 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
+ 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x5a, 0x0a, 0x09, 0x74,
+ 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
+ 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c,
+ 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x08, 0x74, 0x6f, 0x53, 0x74,
+ 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x22, 0x50, 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, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x6f,
+ 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0xf6, 0x02, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18,
+ 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x22, 0x0a, 0x0a,
+ 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x48, 0x00, 0x52, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x53, 0x68, 0x65, 0x65, 0x74, 0x88, 0x01, 0x01,
+ 0x12, 0x1e, 0x0a, 0x08, 0x74, 0x6f, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x48, 0x01, 0x52, 0x07, 0x74, 0x6f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x88, 0x01, 0x01,
+ 0x12, 0x5c, 0x0a, 0x1a, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73,
+ 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
+ 0x48, 0x02, 0x52, 0x17, 0x66, 0x72, 0x6f, 0x6d, 0x45, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74,
+ 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x58,
+ 0x0a, 0x18, 0x74, 0x6f, 0x5f, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c,
+ 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x03, 0x52, 0x15,
+ 0x74, 0x6f, 0x45, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65,
+ 0x64, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x66, 0x72, 0x6f,
+ 0x6d, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x74, 0x6f, 0x5f, 0x73,
+ 0x68, 0x65, 0x65, 0x74, 0x42, 0x1d, 0x0a, 0x1b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x65, 0x61,
+ 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x74,
+ 0x69, 0x6d, 0x65, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x61, 0x72, 0x6c, 0x69,
+ 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
+ 0x1a, 0xaf, 0x01, 0x0a, 0x0f, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x51, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c,
+ 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61,
+ 0x73, 0x6b, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x54, 0x61,
+ 0x62, 0x6c, 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, 0x35, 0x0a, 0x05, 0x54,
+ 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05,
+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 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 (
+ file_store_issue_comment_proto_rawDescOnce sync.Once
+ file_store_issue_comment_proto_rawDescData = file_store_issue_comment_proto_rawDesc
+)
+
+func file_store_issue_comment_proto_rawDescGZIP() []byte {
+ file_store_issue_comment_proto_rawDescOnce.Do(func() {
+ file_store_issue_comment_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_issue_comment_proto_rawDescData)
+ })
+ return file_store_issue_comment_proto_rawDescData
+}
+
+var file_store_issue_comment_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
+var file_store_issue_comment_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
+var file_store_issue_comment_proto_goTypes = []interface{}{
+ (IssueCommentPayload_Approval_Status)(0), // 0: bytebase.store.IssueCommentPayload.Approval.Status
+ (IssueCommentPayload_IssueUpdate_IssueStatus)(0), // 1: bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus
+ (IssueCommentPayload_TaskRunUpdate_Status)(0), // 2: bytebase.store.IssueCommentPayload.TaskRunUpdate.Status
+ (*IssueCommentPayload)(nil), // 3: bytebase.store.IssueCommentPayload
+ (*IssueCommentPayload_Approval)(nil), // 4: bytebase.store.IssueCommentPayload.Approval
+ (*IssueCommentPayload_IssueUpdate)(nil), // 5: bytebase.store.IssueCommentPayload.IssueUpdate
+ (*IssueCommentPayload_StageEnd)(nil), // 6: bytebase.store.IssueCommentPayload.StageEnd
+ (*IssueCommentPayload_TaskRunUpdate)(nil), // 7: bytebase.store.IssueCommentPayload.TaskRunUpdate
+ (*IssueCommentPayload_TaskUpdate)(nil), // 8: bytebase.store.IssueCommentPayload.TaskUpdate
+ (*IssueCommentPayload_TaskPriorBackup)(nil), // 9: bytebase.store.IssueCommentPayload.TaskPriorBackup
+ (*IssueCommentPayload_TaskPriorBackup_Table)(nil), // 10: bytebase.store.IssueCommentPayload.TaskPriorBackup.Table
+ (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
+}
+var file_store_issue_comment_proto_depIdxs = []int32{
+ 4, // 0: bytebase.store.IssueCommentPayload.approval:type_name -> bytebase.store.IssueCommentPayload.Approval
+ 5, // 1: bytebase.store.IssueCommentPayload.issue_update:type_name -> bytebase.store.IssueCommentPayload.IssueUpdate
+ 6, // 2: bytebase.store.IssueCommentPayload.stage_end:type_name -> bytebase.store.IssueCommentPayload.StageEnd
+ 7, // 3: bytebase.store.IssueCommentPayload.task_run_update:type_name -> bytebase.store.IssueCommentPayload.TaskRunUpdate
+ 8, // 4: bytebase.store.IssueCommentPayload.task_update:type_name -> bytebase.store.IssueCommentPayload.TaskUpdate
+ 9, // 5: bytebase.store.IssueCommentPayload.task_prior_backup:type_name -> bytebase.store.IssueCommentPayload.TaskPriorBackup
+ 0, // 6: bytebase.store.IssueCommentPayload.Approval.status:type_name -> bytebase.store.IssueCommentPayload.Approval.Status
+ 1, // 7: bytebase.store.IssueCommentPayload.IssueUpdate.from_status:type_name -> bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus
+ 1, // 8: bytebase.store.IssueCommentPayload.IssueUpdate.to_status:type_name -> bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus
+ 2, // 9: bytebase.store.IssueCommentPayload.TaskRunUpdate.to_status:type_name -> bytebase.store.IssueCommentPayload.TaskRunUpdate.Status
+ 11, // 10: bytebase.store.IssueCommentPayload.TaskUpdate.from_earliest_allowed_time:type_name -> google.protobuf.Timestamp
+ 11, // 11: bytebase.store.IssueCommentPayload.TaskUpdate.to_earliest_allowed_time:type_name -> google.protobuf.Timestamp
+ 10, // 12: bytebase.store.IssueCommentPayload.TaskPriorBackup.tables:type_name -> bytebase.store.IssueCommentPayload.TaskPriorBackup.Table
+ 13, // [13:13] is the sub-list for method output_type
+ 13, // [13:13] is the sub-list for method input_type
+ 13, // [13:13] is the sub-list for extension type_name
+ 13, // [13:13] is the sub-list for extension extendee
+ 0, // [0:13] is the sub-list for field type_name
+}
+
+func init() { file_store_issue_comment_proto_init() }
+func file_store_issue_comment_proto_init() {
+ if File_store_issue_comment_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_store_issue_comment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*IssueCommentPayload); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_issue_comment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*IssueCommentPayload_Approval); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_issue_comment_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*IssueCommentPayload_IssueUpdate); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_issue_comment_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*IssueCommentPayload_StageEnd); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_issue_comment_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*IssueCommentPayload_TaskRunUpdate); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_issue_comment_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*IssueCommentPayload_TaskUpdate); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_issue_comment_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*IssueCommentPayload_TaskPriorBackup); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_issue_comment_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*IssueCommentPayload_TaskPriorBackup_Table); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_store_issue_comment_proto_msgTypes[0].OneofWrappers = []interface{}{
+ (*IssueCommentPayload_Approval_)(nil),
+ (*IssueCommentPayload_IssueUpdate_)(nil),
+ (*IssueCommentPayload_StageEnd_)(nil),
+ (*IssueCommentPayload_TaskRunUpdate_)(nil),
+ (*IssueCommentPayload_TaskUpdate_)(nil),
+ (*IssueCommentPayload_TaskPriorBackup_)(nil),
+ }
+ file_store_issue_comment_proto_msgTypes[2].OneofWrappers = []interface{}{}
+ file_store_issue_comment_proto_msgTypes[4].OneofWrappers = []interface{}{}
+ file_store_issue_comment_proto_msgTypes[5].OneofWrappers = []interface{}{}
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_store_issue_comment_proto_rawDesc,
+ NumEnums: 3,
+ NumMessages: 8,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_store_issue_comment_proto_goTypes,
+ DependencyIndexes: file_store_issue_comment_proto_depIdxs,
+ EnumInfos: file_store_issue_comment_proto_enumTypes,
+ MessageInfos: file_store_issue_comment_proto_msgTypes,
+ }.Build()
+ File_store_issue_comment_proto = out.File
+ file_store_issue_comment_proto_rawDesc = nil
+ file_store_issue_comment_proto_goTypes = nil
+ file_store_issue_comment_proto_depIdxs = nil
+}
diff --git a/proto/store/issue_comment.proto b/proto/store/issue_comment.proto
new file mode 100644
index 0000000000..7d0e8ee3f4
--- /dev/null
+++ b/proto/store/issue_comment.proto
@@ -0,0 +1,88 @@
+syntax = "proto3";
+
+package bytebase.store;
+
+import "google/protobuf/timestamp.proto";
+
+option go_package = "generated-go/store";
+
+message IssueCommentPayload {
+ string comment = 1;
+
+ oneof event {
+ Approval approval = 8;
+ IssueUpdate issue_update = 9;
+ StageEnd stage_end = 10;
+ TaskRunUpdate task_run_update = 11;
+ TaskUpdate task_update = 12;
+ TaskPriorBackup task_prior_backup = 13;
+ }
+
+ message Approval {
+ Status status = 1;
+
+ enum Status {
+ STATUS_UNSPECIFIED = 0;
+ PENDING = 1;
+ APPROVED = 2;
+ REJECTED = 3;
+ }
+ }
+
+ message IssueUpdate {
+ optional string from_title = 1;
+ optional string to_title = 2;
+ optional string from_description = 3;
+ optional string to_description = 4;
+ optional IssueStatus from_status = 5;
+ optional IssueStatus to_status = 6;
+ // Format: users/{email}
+ optional string from_assignee = 7;
+ // Format: users/{email}
+ optional string to_assignee = 8;
+
+ enum IssueStatus {
+ ISSUE_STATUS_UNSPECIFIED = 0;
+ OPEN = 1;
+ DONE = 2;
+ CANCELED = 3;
+ }
+ }
+
+ message StageEnd {
+ string stage = 1;
+ }
+
+ message TaskRunUpdate {
+ repeated string task_runs = 1;
+ optional Status to_status = 2;
+
+ enum Status {
+ STATUS_UNSPECIFIED = 0;
+ PENDING = 1;
+ RUNNING = 2;
+ DONE = 3;
+ FAILED = 4;
+ }
+ }
+
+ message TaskUpdate {
+ repeated string tasks = 1;
+ // Format: projects/{project}/sheets/{sheet}
+ optional string from_sheet = 2;
+ // Format: projects/{project}/sheets/{sheet}
+ optional string to_sheet = 3;
+ optional google.protobuf.Timestamp from_earliest_allowed_time = 4;
+ optional google.protobuf.Timestamp to_earliest_allowed_time = 5;
+ }
+
+ message TaskPriorBackup {
+ string task = 1;
+ repeated Table tables = 2;
+
+ message Table {
+ string schema = 1;
+ string table = 2;
+ }
+ }
+}