Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(proto): rollout service (#6118)
p0ny2b8ba35bfe14
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.tsindex 84c6bf7dc5..20b42cbfb0 100644--- a/frontend/src/types/proto/v1/rollout_service.ts+++ b/frontend/src/types/proto/v1/rollout_service.ts@@ -1,7 +1,9 @@/* eslint-disable */+import * as Long from "long";import type { CallContext, CallOptions } from "nice-grpc-common";import * as _m0 from "protobufjs/minimal";import { FieldMask } from "../google/protobuf/field_mask";+import { Timestamp } from "../google/protobuf/timestamp";export const protobufPackage = "bytebase.v1";@@ -78,8 +80,859 @@ export interface Plan {name: string;/** The system-assigned, unique identifier for a resource. */uid: string;+ /**+ * The resource name of the review associated with this plan.+ * Format: projects/{project}/reviews/{review}+ */+ review: string;title: string;description: string;+ steps: Plan_Step[];+}++/** FIXME(d/xz): support spec with deployment config */+export interface Plan_Step {+ specs: Plan_Spec[];+}++export interface Plan_Spec {+ /** earliest_allowed_time the earliest execution time of the change. */+ earliestAllowedTime?: Date;+ createDatabaseConfig?: Plan_CreateDatabaseConfig | undefined;+ changeDatabaseConfig?: Plan_ChangeDatabaseConfig | undefined;+ restoreDatabaseConfig?: Plan_RestoreDatabaseConfig | undefined;+}++export interface Plan_CreateDatabaseConfig {+ /**+ * The resource name of the instance on which the database is created.+ * Format: instances/{instance}+ */+ target: string;+ /** The name of the database to create. */+ database: string;+ /**+ * table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+ * For example, in MongoDB, it only creates the database when we first store data in that database.+ */+ table: string;+ /** character_set is the character set of the database. */+ characterSet: string;+ /** collation is the collation of the database. */+ collation: string;+ /** cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". */+ cluster: string;+ /** owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". */+ owner: string;+ /**+ * backup is the resource name of the backup.+ * FIXME: backup v1 API is not ready yet, write the format here when it's ready.+ */+ backup: string;+ /** labels of the database. */+ labels: { [key: string]: string };+}++export interface Plan_CreateDatabaseConfig_LabelsEntry {+ key: string;+ value: string;+}++export interface Plan_ChangeDatabaseConfig {+ /**+ * The resource name of the target.+ * Format: projects/{project}/logicalDatabases/{ldb1}.+ * Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.+ * Format: instances/{xxx}/databases/{db1}.+ */+ target: string;+ /**+ * The resource name of the sheet.+ * Format: sheets/{sheet}+ */+ sheet: string;+ type: Plan_ChangeDatabaseConfig_Type;+ /**+ * schema_version is parsed from VCS file name.+ * It is automatically generated in the UI workflow.+ */+ schemaVersion: string;+ /** If RollbackEnabled, build the RollbackSheetID of the task. */+ rollbackEnabled: boolean;+}++/** Type is the database change type. */+export enum Plan_ChangeDatabaseConfig_Type {+ TYPE_UNSPECIFIED = 0,+ /**+ * BASELINE - Used for establishing schema baseline, this is used when+ * 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.+ * 2. Had schema drift and need to re-establish the baseline.+ */+ BASELINE = 1,+ /** MIGRATE - Used for DDL changes including CREATE DATABASE. */+ MIGRATE = 2,+ /** MIGRATE_SDL - Used for schema changes via state-based schema migration including CREATE DATABASE. */+ MIGRATE_SDL = 3,+ /** MIGRATE_GHOST - Used for DDL changes using gh-ost. */+ MIGRATE_GHOST = 4,+ /** BRANCH - Used when restoring from a backup (the restored database branched from the original backup). */+ BRANCH = 5,+ /** DATA - Used for DML change. */+ DATA = 6,+ UNRECOGNIZED = -1,+}++export function plan_ChangeDatabaseConfig_TypeFromJSON(object: any): Plan_ChangeDatabaseConfig_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED;+ case 1:+ case "BASELINE":+ return Plan_ChangeDatabaseConfig_Type.BASELINE;+ case 2:+ case "MIGRATE":+ return Plan_ChangeDatabaseConfig_Type.MIGRATE;+ case 3:+ case "MIGRATE_SDL":+ return Plan_ChangeDatabaseConfig_Type.MIGRATE_SDL;+ case 4:+ case "MIGRATE_GHOST":+ return Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST;+ case 5:+ case "BRANCH":+ return Plan_ChangeDatabaseConfig_Type.BRANCH;+ case 6:+ case "DATA":+ return Plan_ChangeDatabaseConfig_Type.DATA;+ case -1:+ case "UNRECOGNIZED":+ default:+ return Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED;+ }+}++export function plan_ChangeDatabaseConfig_TypeToJSON(object: Plan_ChangeDatabaseConfig_Type): string {+ switch (object) {+ case Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case Plan_ChangeDatabaseConfig_Type.BASELINE:+ return "BASELINE";+ case Plan_ChangeDatabaseConfig_Type.MIGRATE:+ return "MIGRATE";+ case Plan_ChangeDatabaseConfig_Type.MIGRATE_SDL:+ return "MIGRATE_SDL";+ case Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST:+ return "MIGRATE_GHOST";+ case Plan_ChangeDatabaseConfig_Type.BRANCH:+ return "BRANCH";+ case Plan_ChangeDatabaseConfig_Type.DATA:+ return "DATA";+ case Plan_ChangeDatabaseConfig_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface Plan_RestoreDatabaseConfig {+ /**+ * The resource name of the target to restore.+ * Format: instances/{instance}/databases/{database}+ */+ target: string;+ /** create_database_config is present if the user wants to restore to a new database. */+ createDatabaseConfig?:+ | Plan_CreateDatabaseConfig+ | undefined;+ /**+ * FIXME: format TBD+ * Restore from a backup.+ */+ backup?:+ | string+ | undefined;+ /** After the PITR operations, the database will be recovered to the state at this time. */+ pointInTime?: Date | undefined;+}++export interface ListPlanCheckRunsRequest {+ /**+ * The parent, which owns this collection of plan check runs.+ * Format: projects/{project}/plans/{plan}+ */+ parent: string;+ /**+ * The maximum number of plan check runs to return. The service may return fewer than+ * this value.+ * If unspecified, at most 50 plans will be returned.+ * The maximum value is 1000; values above 1000 will be coerced to 1000.+ */+ pageSize: number;+ /**+ * A page token, received from a previous `ListPlanCheckRuns` call.+ * Provide this to retrieve the subsequent page.+ *+ * When paginating, all other parameters provided to `ListPlanCheckRuns` must match+ * the call that provided the page token.+ */+ pageToken: string;+}++export interface ListPlanCheckRunsResponse {+ /** The plan check runs from the specified request. */+ planCheckRuns: PlanCheckRun[];+ /**+ * A token, which can be sent as `page_token` to retrieve the next page.+ * If this field is omitted, there are no subsequent pages.+ */+ nextPageToken: string;+}++export interface PlanCheckRun {+ /** Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ type: PlanCheckRun_Type;+ status: PlanCheckRun_Status;+ /** Format: instances/{instance}/databases/{database} */+ target: string;+ /** Format: sheets/{sheet} */+ sheet: string;+ detail: string;+ results: PlanCheckRun_Result[];+}++export enum PlanCheckRun_Type {+ TYPE_UNSPECIFIED = 0,+ DATABASE_STATEMENT_FAKE_ADVISE = 1,+ DATABASE_STATEMENT_SYNTAX = 2,+ DATABASE_STATEMENT_COMPATIBILITY = 3,+ DATABASE_STATEMENT_ADVISE = 4,+ DATABASE_STATEMENT_TYPE = 5,+ DATABASE_STATEMENT_TYPE_REPORT = 6,+ DATABASE_STATEMENT_AFFECTED_ROWS_REPORT = 7,+ DATABASE_CONNECT = 8,+ DATABASE_GHOST_SYNC = 9,+ DATABASE_PITR_MYSQL = 10,+ UNRECOGNIZED = -1,+}++export function planCheckRun_TypeFromJSON(object: any): PlanCheckRun_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return PlanCheckRun_Type.TYPE_UNSPECIFIED;+ case 1:+ case "DATABASE_STATEMENT_FAKE_ADVISE":+ return PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE;+ case 2:+ case "DATABASE_STATEMENT_SYNTAX":+ return PlanCheckRun_Type.DATABASE_STATEMENT_SYNTAX;+ case 3:+ case "DATABASE_STATEMENT_COMPATIBILITY":+ return PlanCheckRun_Type.DATABASE_STATEMENT_COMPATIBILITY;+ case 4:+ case "DATABASE_STATEMENT_ADVISE":+ return PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE;+ case 5:+ case "DATABASE_STATEMENT_TYPE":+ return PlanCheckRun_Type.DATABASE_STATEMENT_TYPE;+ case 6:+ case "DATABASE_STATEMENT_TYPE_REPORT":+ return PlanCheckRun_Type.DATABASE_STATEMENT_TYPE_REPORT;+ case 7:+ case "DATABASE_STATEMENT_AFFECTED_ROWS_REPORT":+ return PlanCheckRun_Type.DATABASE_STATEMENT_AFFECTED_ROWS_REPORT;+ case 8:+ case "DATABASE_CONNECT":+ return PlanCheckRun_Type.DATABASE_CONNECT;+ case 9:+ case "DATABASE_GHOST_SYNC":+ return PlanCheckRun_Type.DATABASE_GHOST_SYNC;+ case 10:+ case "DATABASE_PITR_MYSQL":+ return PlanCheckRun_Type.DATABASE_PITR_MYSQL;+ case -1:+ case "UNRECOGNIZED":+ default:+ return PlanCheckRun_Type.UNRECOGNIZED;+ }+}++export function planCheckRun_TypeToJSON(object: PlanCheckRun_Type): string {+ switch (object) {+ case PlanCheckRun_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE:+ return "DATABASE_STATEMENT_FAKE_ADVISE";+ case PlanCheckRun_Type.DATABASE_STATEMENT_SYNTAX:+ return "DATABASE_STATEMENT_SYNTAX";+ case PlanCheckRun_Type.DATABASE_STATEMENT_COMPATIBILITY:+ return "DATABASE_STATEMENT_COMPATIBILITY";+ case PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE:+ return "DATABASE_STATEMENT_ADVISE";+ case PlanCheckRun_Type.DATABASE_STATEMENT_TYPE:+ return "DATABASE_STATEMENT_TYPE";+ case PlanCheckRun_Type.DATABASE_STATEMENT_TYPE_REPORT:+ return "DATABASE_STATEMENT_TYPE_REPORT";+ case PlanCheckRun_Type.DATABASE_STATEMENT_AFFECTED_ROWS_REPORT:+ return "DATABASE_STATEMENT_AFFECTED_ROWS_REPORT";+ case PlanCheckRun_Type.DATABASE_CONNECT:+ return "DATABASE_CONNECT";+ case PlanCheckRun_Type.DATABASE_GHOST_SYNC:+ return "DATABASE_GHOST_SYNC";+ case PlanCheckRun_Type.DATABASE_PITR_MYSQL:+ return "DATABASE_PITR_MYSQL";+ case PlanCheckRun_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum PlanCheckRun_Status {+ STATUS_UNSPECIFIED = 0,+ RUNNING = 1,+ DONE = 2,+ FAILED = 3,+ CANCELED = 4,+ UNRECOGNIZED = -1,+}++export function planCheckRun_StatusFromJSON(object: any): PlanCheckRun_Status {+ switch (object) {+ case 0:+ case "STATUS_UNSPECIFIED":+ return PlanCheckRun_Status.STATUS_UNSPECIFIED;+ case 1:+ case "RUNNING":+ return PlanCheckRun_Status.RUNNING;+ case 2:+ case "DONE":+ return PlanCheckRun_Status.DONE;+ case 3:+ case "FAILED":+ return PlanCheckRun_Status.FAILED;+ case 4:+ case "CANCELED":+ return PlanCheckRun_Status.CANCELED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return PlanCheckRun_Status.UNRECOGNIZED;+ }+}++export function planCheckRun_StatusToJSON(object: PlanCheckRun_Status): string {+ switch (object) {+ case PlanCheckRun_Status.STATUS_UNSPECIFIED:+ return "STATUS_UNSPECIFIED";+ case PlanCheckRun_Status.RUNNING:+ return "RUNNING";+ case PlanCheckRun_Status.DONE:+ return "DONE";+ case PlanCheckRun_Status.FAILED:+ return "FAILED";+ case PlanCheckRun_Status.CANCELED:+ return "CANCELED";+ case PlanCheckRun_Status.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface PlanCheckRun_Result {+ namespace: PlanCheckRun_Result_Namespace;+ code: number;+ status: PlanCheckRun_Result_Status;+ title: string;+ content: string;+ line: number;+ detail: string;+}++export enum PlanCheckRun_Result_Namespace {+ NAMESPACE_UNSPECIFIED = 0,+ BYTEBASE = 1,+ ADVISOR = 2,+ UNRECOGNIZED = -1,+}++export function planCheckRun_Result_NamespaceFromJSON(object: any): PlanCheckRun_Result_Namespace {+ switch (object) {+ case 0:+ case "NAMESPACE_UNSPECIFIED":+ return PlanCheckRun_Result_Namespace.NAMESPACE_UNSPECIFIED;+ case 1:+ case "BYTEBASE":+ return PlanCheckRun_Result_Namespace.BYTEBASE;+ case 2:+ case "ADVISOR":+ return PlanCheckRun_Result_Namespace.ADVISOR;+ case -1:+ case "UNRECOGNIZED":+ default:+ return PlanCheckRun_Result_Namespace.UNRECOGNIZED;+ }+}++export function planCheckRun_Result_NamespaceToJSON(object: PlanCheckRun_Result_Namespace): string {+ switch (object) {+ case PlanCheckRun_Result_Namespace.NAMESPACE_UNSPECIFIED:+ return "NAMESPACE_UNSPECIFIED";+ case PlanCheckRun_Result_Namespace.BYTEBASE:+ return "BYTEBASE";+ case PlanCheckRun_Result_Namespace.ADVISOR:+ return "ADVISOR";+ case PlanCheckRun_Result_Namespace.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export enum PlanCheckRun_Result_Status {+ STATUS_UNSPECIFIED = 0,+ ERROR = 1,+ WARNING = 2,+ SUCCESS = 3,+ UNRECOGNIZED = -1,+}++export function planCheckRun_Result_StatusFromJSON(object: any): PlanCheckRun_Result_Status {+ switch (object) {+ case 0:+ case "STATUS_UNSPECIFIED":+ return PlanCheckRun_Result_Status.STATUS_UNSPECIFIED;+ case 1:+ case "ERROR":+ return PlanCheckRun_Result_Status.ERROR;+ case 2:+ case "WARNING":+ return PlanCheckRun_Result_Status.WARNING;+ case 3:+ case "SUCCESS":+ return PlanCheckRun_Result_Status.SUCCESS;+ case -1:+ case "UNRECOGNIZED":+ default:+ return PlanCheckRun_Result_Status.UNRECOGNIZED;+ }+}++export function planCheckRun_Result_StatusToJSON(object: PlanCheckRun_Result_Status): string {+ switch (object) {+ case PlanCheckRun_Result_Status.STATUS_UNSPECIFIED:+ return "STATUS_UNSPECIFIED";+ case PlanCheckRun_Result_Status.ERROR:+ return "ERROR";+ case PlanCheckRun_Result_Status.WARNING:+ return "WARNING";+ case PlanCheckRun_Result_Status.SUCCESS:+ return "SUCCESS";+ case PlanCheckRun_Result_Status.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface GetRolloutRequest {+ /**+ * The name of the rollout to retrieve.+ * Format: projects/{project}/rollouts/{rollout}+ */+ name: string;+}++export interface Rollout {+ /**+ * The resource name of the rollout.+ * Format: projects/{project}/rollouts/{rollout}+ */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ /**+ * The plan that this rollout is based on.+ * Format: projects/{project}/plans/{plan}+ */+ plan: string;+ title: string;+ /** stages and thus tasks of the rollout. */+ stages: Stage[];+}++export interface Stage {+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage} */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ /** Format: environments/{environment} */+ environment: string;+ title: string;+ tasks: Task[];+}++export interface Task {+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ title: string;+ type: Task_Type;+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} */+ blockedByTasks: string[];+ /** Format: instances/{instance}/databases/{database} */+ target: string;+ databaseCase?: Task_DatabaseCreate | undefined;+ databaseSchemaBaseline?: Task_DatabaseSchemaBaseline | undefined;+ databaseSchemaUpdate?: Task_DatabaseSchemaUpdate | undefined;+ databaseDataUpdate?: Task_DatabaseDataUpdate | undefined;+ databaseRestoreRestore?: Task_DatabaseRestoreRestore | undefined;+}++export enum Task_Type {+ TYPE_UNSPECIFIED = 0,+ GENERAL = 1,+ /** DATABASE_CREATE - use payload DatabaseCreate */+ DATABASE_CREATE = 2,+ /** DATABASE_SCHEMA_BASELINE - use payload DatabaseSchemaBaseline */+ DATABASE_SCHEMA_BASELINE = 3,+ /** DATABASE_SCHEMA_UPDATE - use payload DatabaseSchemaUpdate */+ DATABASE_SCHEMA_UPDATE = 4,+ /** DATABASE_SCHEMA_UPDATE_SDL - use payload DatabaseSchemaUpdate */+ DATABASE_SCHEMA_UPDATE_SDL = 5,+ /** DATABASE_SCHEMA_UPDATE_GHOST_SYNC - use payload DatabaseSchemaUpdate */+ DATABASE_SCHEMA_UPDATE_GHOST_SYNC = 6,+ /** DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER - use payload nil */+ DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER = 7,+ /** DATABASE_DATA_UPDATE - use payload DatabaseDataUpdate */+ DATABASE_DATA_UPDATE = 8,+ /** DATABASE_BACKUP - use payload DatabaseBackup */+ DATABASE_BACKUP = 9,+ /** DATABASE_RESTORE_RESTORE - use payload DatabaseRestoreRestore */+ DATABASE_RESTORE_RESTORE = 10,+ /** DATABASE_RESTORE_CUTOVER - use payload nil */+ DATABASE_RESTORE_CUTOVER = 11,+ UNRECOGNIZED = -1,+}++export function task_TypeFromJSON(object: any): Task_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return Task_Type.TYPE_UNSPECIFIED;+ case 1:+ case "GENERAL":+ return Task_Type.GENERAL;+ case 2:+ case "DATABASE_CREATE":+ return Task_Type.DATABASE_CREATE;+ case 3:+ case "DATABASE_SCHEMA_BASELINE":+ return Task_Type.DATABASE_SCHEMA_BASELINE;+ case 4:+ case "DATABASE_SCHEMA_UPDATE":+ return Task_Type.DATABASE_SCHEMA_UPDATE;+ case 5:+ case "DATABASE_SCHEMA_UPDATE_SDL":+ return Task_Type.DATABASE_SCHEMA_UPDATE_SDL;+ case 6:+ case "DATABASE_SCHEMA_UPDATE_GHOST_SYNC":+ return Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC;+ case 7:+ case "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER":+ return Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER;+ case 8:+ case "DATABASE_DATA_UPDATE":+ return Task_Type.DATABASE_DATA_UPDATE;+ case 9:+ case "DATABASE_BACKUP":+ return Task_Type.DATABASE_BACKUP;+ case 10:+ case "DATABASE_RESTORE_RESTORE":+ return Task_Type.DATABASE_RESTORE_RESTORE;+ case 11:+ case "DATABASE_RESTORE_CUTOVER":+ return Task_Type.DATABASE_RESTORE_CUTOVER;+ case -1:+ case "UNRECOGNIZED":+ default:+ return Task_Type.UNRECOGNIZED;+ }+}++export function task_TypeToJSON(object: Task_Type): string {+ switch (object) {+ case Task_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case Task_Type.GENERAL:+ return "GENERAL";+ case Task_Type.DATABASE_CREATE:+ return "DATABASE_CREATE";+ case Task_Type.DATABASE_SCHEMA_BASELINE:+ return "DATABASE_SCHEMA_BASELINE";+ case Task_Type.DATABASE_SCHEMA_UPDATE:+ return "DATABASE_SCHEMA_UPDATE";+ case Task_Type.DATABASE_SCHEMA_UPDATE_SDL:+ return "DATABASE_SCHEMA_UPDATE_SDL";+ case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_SYNC:+ return "DATABASE_SCHEMA_UPDATE_GHOST_SYNC";+ case Task_Type.DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER:+ return "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER";+ case Task_Type.DATABASE_DATA_UPDATE:+ return "DATABASE_DATA_UPDATE";+ case Task_Type.DATABASE_BACKUP:+ return "DATABASE_BACKUP";+ case Task_Type.DATABASE_RESTORE_RESTORE:+ return "DATABASE_RESTORE_RESTORE";+ case Task_Type.DATABASE_RESTORE_CUTOVER:+ return "DATABASE_RESTORE_CUTOVER";+ case Task_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface Task_DatabaseCreate {+ /**+ * The project owning the database.+ * Format: projects/{project}+ */+ project: string;+ /** database name */+ database: string;+ /** table name */+ table: string;+ /** Format: sheets/{sheet} */+ sheet: string;+ characterSet: string;+ collection: string;+ labels: { [key: string]: string };+}++export interface Task_DatabaseCreate_LabelsEntry {+ key: string;+ value: string;+}++export interface Task_DatabaseSchemaBaseline {+ schemaVersion: string;+}++export interface Task_DatabaseSchemaUpdate {+ /** Format: sheets/{sheet} */+ sheet: string;+ schemaVersion: string;+}++export interface Task_DatabaseDataUpdate {+ /** Format: sheets/{sheet} */+ sheet: string;+ schemaVersion: string;+ /** Build the rollback SQL if rollback_enabled. */+ rollbackEnabled: boolean;+ /** The status of the rollback SQL generation. */+ rollbackSqlStatus: Task_DatabaseDataUpdate_RollbackSqlStatus;+ /**+ * transaction_id is the ID of the transaction executing the migration.+ * It is only use for Oracle to find Rollback SQL statement now.+ */+ transactionId: string;+ /**+ * thread_id is the ID of the connection executing the migration.+ * We use it to filter the binlog events of the migration transaction.+ */+ threadId: string;+ /**+ * change_history is the resource name of the change history.+ * We use it to get the schema when the transaction ran.+ * Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ */+ changeHistory: string;+ binlogFileStart: string;+ binlogFileEnd: string;+ binlogPositionStart: number;+ binlogPositionEnd: number;+ rollbackError: string;+ /**+ * rollback_sheet is the resource name of+ * the sheet that stores the generated rollback SQL statement.+ * Format: sheets/{sheet}+ */+ rollbackSheet: string;+ /**+ * rollback_from_review is the resource name of the review that+ * the rollback SQL statement is generated from.+ * Format: projects/{project}/reviews/{review}+ */+ rollbackFromReview: string;+ /**+ * rollback_from_task is the resource name of the task that+ * the rollback SQL statement is generated from.+ * Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ */+ rollbackFromTask: string;+}++export enum Task_DatabaseDataUpdate_RollbackSqlStatus {+ ROLLBACK_SQL_STATUS_UNSPECIFIED = 0,+ PENDING = 1,+ DONE = 2,+ FAILED = 3,+ UNRECOGNIZED = -1,+}++export function task_DatabaseDataUpdate_RollbackSqlStatusFromJSON(+ object: any,+): Task_DatabaseDataUpdate_RollbackSqlStatus {+ switch (object) {+ case 0:+ case "ROLLBACK_SQL_STATUS_UNSPECIFIED":+ return Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED;+ case 1:+ case "PENDING":+ return Task_DatabaseDataUpdate_RollbackSqlStatus.PENDING;+ case 2:+ case "DONE":+ return Task_DatabaseDataUpdate_RollbackSqlStatus.DONE;+ case 3:+ case "FAILED":+ return Task_DatabaseDataUpdate_RollbackSqlStatus.FAILED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return Task_DatabaseDataUpdate_RollbackSqlStatus.UNRECOGNIZED;+ }+}++export function task_DatabaseDataUpdate_RollbackSqlStatusToJSON(+ object: Task_DatabaseDataUpdate_RollbackSqlStatus,+): string {+ switch (object) {+ case Task_DatabaseDataUpdate_RollbackSqlStatus.ROLLBACK_SQL_STATUS_UNSPECIFIED:+ return "ROLLBACK_SQL_STATUS_UNSPECIFIED";+ case Task_DatabaseDataUpdate_RollbackSqlStatus.PENDING:+ return "PENDING";+ case Task_DatabaseDataUpdate_RollbackSqlStatus.DONE:+ return "DONE";+ case Task_DatabaseDataUpdate_RollbackSqlStatus.FAILED:+ return "FAILED";+ case Task_DatabaseDataUpdate_RollbackSqlStatus.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface Task_DatabaseBackup {+ /**+ * The resource name of the backup.+ * FIXME: format TBD.+ */+ backup: string;+}++export interface Task_DatabaseRestoreRestore {+ /**+ * Target is only used when doing restore to a new database now.+ * It is empty for the case of in-place restore.+ * Target {instance} must be within the same environment as the instance of the original database.+ * {database} is the target database name.+ * Format: instances/{instance}/databases/database+ */+ target: string;+ /** Only used when doing restore full backup only. */+ backup?:+ | string+ | undefined;+ /** After the PITR operations, the database will be recovered to the state at this time. */+ pointInTime?: Date | undefined;+}++export interface TaskRun {+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskrun} */+ name: string;+ /** The system-assigned, unique identifier for a resource. */+ uid: string;+ /** Format: user:[email protected] */+ creator: string;+ /** Format: user:[email protected] */+ updater: string;+ createTime?: Date;+ updateTime?: Date;+ title: string;+ status: TaskRun_Status;+ /** Below are the results of a task run. */+ detail: string;+ /**+ * The resource name of the change history+ * Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ */+ changeHistory: string;+ schemaVersion: string;+}++export enum TaskRun_Status {+ STATUS_UNSPECIFIED = 0,+ PENDING = 1,+ RUNNING = 2,+ COMPLETED = 3,+ FAILED = 4,+ CANCELED = 5,+ SKIPPED = 6,+ UNRECOGNIZED = -1,+}++export function taskRun_StatusFromJSON(object: any): TaskRun_Status {+ switch (object) {+ case 0:+ case "STATUS_UNSPECIFIED":+ return TaskRun_Status.STATUS_UNSPECIFIED;+ case 1:+ case "PENDING":+ return TaskRun_Status.PENDING;+ case 2:+ case "RUNNING":+ return TaskRun_Status.RUNNING;+ case 3:+ case "COMPLETED":+ return TaskRun_Status.COMPLETED;+ case 4:+ case "FAILED":+ return TaskRun_Status.FAILED;+ case 5:+ case "CANCELED":+ return TaskRun_Status.CANCELED;+ case 6:+ case "SKIPPED":+ return TaskRun_Status.SKIPPED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return TaskRun_Status.UNRECOGNIZED;+ }+}++export function taskRun_StatusToJSON(object: TaskRun_Status): string {+ switch (object) {+ case TaskRun_Status.STATUS_UNSPECIFIED:+ return "STATUS_UNSPECIFIED";+ case TaskRun_Status.PENDING:+ return "PENDING";+ case TaskRun_Status.RUNNING:+ return "RUNNING";+ case TaskRun_Status.COMPLETED:+ return "COMPLETED";+ case TaskRun_Status.FAILED:+ return "FAILED";+ case TaskRun_Status.CANCELED:+ return "CANCELED";+ case TaskRun_Status.SKIPPED:+ return "SKIPPED";+ case TaskRun_Status.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }}function createBaseGetPlanRequest(): GetPlanRequest {@@ -440,7 +1293,7 @@ export const UpdatePlanRequest = {};function createBasePlan(): Plan {- return { name: "", uid: "", title: "", description: "" };+ return { name: "", uid: "", review: "", title: "", description: "", steps: [] };}export const Plan = {@@ -451,11 +1304,17 @@ export const Plan = {if (message.uid !== "") {writer.uint32(18).string(message.uid);}+ if (message.review !== "") {+ writer.uint32(26).string(message.review);+ }if (message.title !== "") {- writer.uint32(26).string(message.title);+ writer.uint32(34).string(message.title);}if (message.description !== "") {- writer.uint32(34).string(message.description);+ writer.uint32(42).string(message.description);+ }+ for (const v of message.steps) {+ Plan_Step.encode(v!, writer.uint32(50).fork()).ldelim();}return writer;},@@ -486,15 +1345,29 @@ export const Plan = {break;}- message.title = reader.string();+ message.review = reader.string();continue;case 4:if (tag !== 34) {break;}+ message.title = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }+message.description = reader.string();continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.steps.push(Plan_Step.decode(reader, reader.uint32()));+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -508,8 +1381,10 @@ export const Plan = {return {name: isSet(object.name) ? String(object.name) : "",uid: isSet(object.uid) ? String(object.uid) : "",+ review: isSet(object.review) ? String(object.review) : "",title: isSet(object.title) ? String(object.title) : "",description: isSet(object.description) ? String(object.description) : "",+ steps: Array.isArray(object?.steps) ? object.steps.map((e: any) => Plan_Step.fromJSON(e)) : [],};},@@ -517,8 +1392,14 @@ export const Plan = {const obj: any = {};message.name !== undefined && (obj.name = message.name);message.uid !== undefined && (obj.uid = message.uid);+ message.review !== undefined && (obj.review = message.review);message.title !== undefined && (obj.title = message.title);message.description !== undefined && (obj.description = message.description);+ if (message.steps) {+ obj.steps = message.steps.map((e) => e ? Plan_Step.toJSON(e) : undefined);+ } else {+ obj.steps = [];+ }return obj;},@@ -530,71 +1411,2642 @@ export const Plan = {const message = createBasePlan();message.name = object.name ?? "";message.uid = object.uid ?? "";+ message.review = object.review ?? "";message.title = object.title ?? "";message.description = object.description ?? "";+ message.steps = object.steps?.map((e) => Plan_Step.fromPartial(e)) || [];return message;},};-export type RolloutServiceDefinition = typeof RolloutServiceDefinition;-export const RolloutServiceDefinition = {- name: "RolloutService",- fullName: "bytebase.v1.RolloutService",- methods: {- getPlan: {- name: "GetPlan",- requestType: GetPlanRequest,- requestStream: false,- responseType: Plan,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([4, 110, 97, 109, 101])],- 578365826: [- new Uint8Array([- 31,- 18,- 29,- 47,- 118,- 49,- 47,- 123,- 110,- 97,- 109,- 101,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 47,- 112,- 108,- 97,- 110,- 115,- 47,- 42,- 125,- ]),- ],- },- },- },- listPlans: {- name: "ListPlans",- requestType: ListPlansRequest,- requestStream: false,- responseType: ListPlansResponse,- responseStream: false,+function createBasePlan_Step(): Plan_Step {+ return { specs: [] };+}++export const Plan_Step = {+ encode(message: Plan_Step, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.specs) {+ Plan_Spec.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_Step {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_Step();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.specs.push(Plan_Spec.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_Step {+ return { specs: Array.isArray(object?.specs) ? object.specs.map((e: any) => Plan_Spec.fromJSON(e)) : [] };+ },++ toJSON(message: Plan_Step): unknown {+ const obj: any = {};+ if (message.specs) {+ obj.specs = message.specs.map((e) => e ? Plan_Spec.toJSON(e) : undefined);+ } else {+ obj.specs = [];+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_Step>): Plan_Step {+ return Plan_Step.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Plan_Step>): Plan_Step {+ const message = createBasePlan_Step();+ message.specs = object.specs?.map((e) => Plan_Spec.fromPartial(e)) || [];+ return message;+ },+};++function createBasePlan_Spec(): Plan_Spec {+ return {+ earliestAllowedTime: undefined,+ createDatabaseConfig: undefined,+ changeDatabaseConfig: undefined,+ restoreDatabaseConfig: undefined,+ };+}++export const Plan_Spec = {+ encode(message: Plan_Spec, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.earliestAllowedTime !== undefined) {+ Timestamp.encode(toTimestamp(message.earliestAllowedTime), writer.uint32(34).fork()).ldelim();+ }+ if (message.createDatabaseConfig !== undefined) {+ Plan_CreateDatabaseConfig.encode(message.createDatabaseConfig, writer.uint32(10).fork()).ldelim();+ }+ if (message.changeDatabaseConfig !== undefined) {+ Plan_ChangeDatabaseConfig.encode(message.changeDatabaseConfig, writer.uint32(18).fork()).ldelim();+ }+ if (message.restoreDatabaseConfig !== undefined) {+ Plan_RestoreDatabaseConfig.encode(message.restoreDatabaseConfig, writer.uint32(26).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_Spec {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_Spec();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 4:+ if (tag !== 34) {+ break;+ }++ message.earliestAllowedTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 1:+ if (tag !== 10) {+ break;+ }++ message.createDatabaseConfig = Plan_CreateDatabaseConfig.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.changeDatabaseConfig = Plan_ChangeDatabaseConfig.decode(reader, reader.uint32());+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.restoreDatabaseConfig = Plan_RestoreDatabaseConfig.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_Spec {+ return {+ earliestAllowedTime: isSet(object.earliestAllowedTime)+ ? fromJsonTimestamp(object.earliestAllowedTime)+ : undefined,+ createDatabaseConfig: isSet(object.createDatabaseConfig)+ ? Plan_CreateDatabaseConfig.fromJSON(object.createDatabaseConfig)+ : undefined,+ changeDatabaseConfig: isSet(object.changeDatabaseConfig)+ ? Plan_ChangeDatabaseConfig.fromJSON(object.changeDatabaseConfig)+ : undefined,+ restoreDatabaseConfig: isSet(object.restoreDatabaseConfig)+ ? Plan_RestoreDatabaseConfig.fromJSON(object.restoreDatabaseConfig)+ : undefined,+ };+ },++ toJSON(message: Plan_Spec): unknown {+ const obj: any = {};+ message.earliestAllowedTime !== undefined && (obj.earliestAllowedTime = message.earliestAllowedTime.toISOString());+ message.createDatabaseConfig !== undefined && (obj.createDatabaseConfig = message.createDatabaseConfig+ ? Plan_CreateDatabaseConfig.toJSON(message.createDatabaseConfig)+ : undefined);+ message.changeDatabaseConfig !== undefined && (obj.changeDatabaseConfig = message.changeDatabaseConfig+ ? Plan_ChangeDatabaseConfig.toJSON(message.changeDatabaseConfig)+ : undefined);+ message.restoreDatabaseConfig !== undefined && (obj.restoreDatabaseConfig = message.restoreDatabaseConfig+ ? Plan_RestoreDatabaseConfig.toJSON(message.restoreDatabaseConfig)+ : undefined);+ return obj;+ },++ create(base?: DeepPartial<Plan_Spec>): Plan_Spec {+ return Plan_Spec.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Plan_Spec>): Plan_Spec {+ const message = createBasePlan_Spec();+ message.earliestAllowedTime = object.earliestAllowedTime ?? undefined;+ message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)+ ? Plan_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig)+ : undefined;+ message.changeDatabaseConfig = (object.changeDatabaseConfig !== undefined && object.changeDatabaseConfig !== null)+ ? Plan_ChangeDatabaseConfig.fromPartial(object.changeDatabaseConfig)+ : undefined;+ message.restoreDatabaseConfig =+ (object.restoreDatabaseConfig !== undefined && object.restoreDatabaseConfig !== null)+ ? Plan_RestoreDatabaseConfig.fromPartial(object.restoreDatabaseConfig)+ : undefined;+ return message;+ },+};++function createBasePlan_CreateDatabaseConfig(): Plan_CreateDatabaseConfig {+ return {+ target: "",+ database: "",+ table: "",+ characterSet: "",+ collation: "",+ cluster: "",+ owner: "",+ backup: "",+ labels: {},+ };+}++export const Plan_CreateDatabaseConfig = {+ encode(message: Plan_CreateDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.target !== "") {+ writer.uint32(10).string(message.target);+ }+ if (message.database !== "") {+ writer.uint32(18).string(message.database);+ }+ if (message.table !== "") {+ writer.uint32(26).string(message.table);+ }+ if (message.characterSet !== "") {+ writer.uint32(34).string(message.characterSet);+ }+ if (message.collation !== "") {+ writer.uint32(42).string(message.collation);+ }+ if (message.cluster !== "") {+ writer.uint32(50).string(message.cluster);+ }+ if (message.owner !== "") {+ writer.uint32(58).string(message.owner);+ }+ if (message.backup !== "") {+ writer.uint32(66).string(message.backup);+ }+ Object.entries(message.labels).forEach(([key, value]) => {+ Plan_CreateDatabaseConfig_LabelsEntry.encode({ key: key as any, value }, writer.uint32(74).fork()).ldelim();+ });+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_CreateDatabaseConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_CreateDatabaseConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.target = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.database = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.table = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.characterSet = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.collation = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.cluster = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.owner = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.backup = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ const entry9 = Plan_CreateDatabaseConfig_LabelsEntry.decode(reader, reader.uint32());+ if (entry9.value !== undefined) {+ message.labels[entry9.key] = entry9.value;+ }+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_CreateDatabaseConfig {+ return {+ target: isSet(object.target) ? String(object.target) : "",+ database: isSet(object.database) ? String(object.database) : "",+ table: isSet(object.table) ? String(object.table) : "",+ characterSet: isSet(object.characterSet) ? String(object.characterSet) : "",+ collation: isSet(object.collation) ? String(object.collation) : "",+ cluster: isSet(object.cluster) ? String(object.cluster) : "",+ owner: isSet(object.owner) ? String(object.owner) : "",+ backup: isSet(object.backup) ? String(object.backup) : "",+ labels: isObject(object.labels)+ ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ };+ },++ toJSON(message: Plan_CreateDatabaseConfig): unknown {+ const obj: any = {};+ message.target !== undefined && (obj.target = message.target);+ message.database !== undefined && (obj.database = message.database);+ message.table !== undefined && (obj.table = message.table);+ message.characterSet !== undefined && (obj.characterSet = message.characterSet);+ message.collation !== undefined && (obj.collation = message.collation);+ message.cluster !== undefined && (obj.cluster = message.cluster);+ message.owner !== undefined && (obj.owner = message.owner);+ message.backup !== undefined && (obj.backup = message.backup);+ obj.labels = {};+ if (message.labels) {+ Object.entries(message.labels).forEach(([k, v]) => {+ obj.labels[k] = v;+ });+ }+ return obj;+ },++ create(base?: DeepPartial<Plan_CreateDatabaseConfig>): Plan_CreateDatabaseConfig {+ return Plan_CreateDatabaseConfig.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Plan_CreateDatabaseConfig>): Plan_CreateDatabaseConfig {+ const message = createBasePlan_CreateDatabaseConfig();+ message.target = object.target ?? "";+ message.database = object.database ?? "";+ message.table = object.table ?? "";+ message.characterSet = object.characterSet ?? "";+ message.collation = object.collation ?? "";+ message.cluster = object.cluster ?? "";+ message.owner = object.owner ?? "";+ message.backup = object.backup ?? "";+ message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = String(value);+ }+ return acc;+ }, {});+ return message;+ },+};++function createBasePlan_CreateDatabaseConfig_LabelsEntry(): Plan_CreateDatabaseConfig_LabelsEntry {+ return { key: "", value: "" };+}++export const Plan_CreateDatabaseConfig_LabelsEntry = {+ encode(message: Plan_CreateDatabaseConfig_LabelsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== "") {+ writer.uint32(18).string(message.value);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_CreateDatabaseConfig_LabelsEntry {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_CreateDatabaseConfig_LabelsEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.value = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_CreateDatabaseConfig_LabelsEntry {+ return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };+ },++ toJSON(message: Plan_CreateDatabaseConfig_LabelsEntry): unknown {+ const obj: any = {};+ message.key !== undefined && (obj.key = message.key);+ message.value !== undefined && (obj.value = message.value);+ return obj;+ },++ create(base?: DeepPartial<Plan_CreateDatabaseConfig_LabelsEntry>): Plan_CreateDatabaseConfig_LabelsEntry {+ return Plan_CreateDatabaseConfig_LabelsEntry.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Plan_CreateDatabaseConfig_LabelsEntry>): Plan_CreateDatabaseConfig_LabelsEntry {+ const message = createBasePlan_CreateDatabaseConfig_LabelsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";+ return message;+ },+};++function createBasePlan_ChangeDatabaseConfig(): Plan_ChangeDatabaseConfig {+ return { target: "", sheet: "", type: 0, schemaVersion: "", rollbackEnabled: false };+}++export const Plan_ChangeDatabaseConfig = {+ encode(message: Plan_ChangeDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.target !== "") {+ writer.uint32(10).string(message.target);+ }+ if (message.sheet !== "") {+ writer.uint32(18).string(message.sheet);+ }+ if (message.type !== 0) {+ writer.uint32(24).int32(message.type);+ }+ if (message.schemaVersion !== "") {+ writer.uint32(34).string(message.schemaVersion);+ }+ if (message.rollbackEnabled === true) {+ writer.uint32(40).bool(message.rollbackEnabled);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_ChangeDatabaseConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_ChangeDatabaseConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.target = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.type = reader.int32() as any;+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.schemaVersion = reader.string();+ continue;+ case 5:+ if (tag !== 40) {+ break;+ }++ message.rollbackEnabled = reader.bool();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_ChangeDatabaseConfig {+ return {+ target: isSet(object.target) ? String(object.target) : "",+ sheet: isSet(object.sheet) ? String(object.sheet) : "",+ type: isSet(object.type) ? plan_ChangeDatabaseConfig_TypeFromJSON(object.type) : 0,+ schemaVersion: isSet(object.schemaVersion) ? String(object.schemaVersion) : "",+ rollbackEnabled: isSet(object.rollbackEnabled) ? Boolean(object.rollbackEnabled) : false,+ };+ },++ toJSON(message: Plan_ChangeDatabaseConfig): unknown {+ const obj: any = {};+ message.target !== undefined && (obj.target = message.target);+ message.sheet !== undefined && (obj.sheet = message.sheet);+ message.type !== undefined && (obj.type = plan_ChangeDatabaseConfig_TypeToJSON(message.type));+ message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion);+ message.rollbackEnabled !== undefined && (obj.rollbackEnabled = message.rollbackEnabled);+ return obj;+ },++ create(base?: DeepPartial<Plan_ChangeDatabaseConfig>): Plan_ChangeDatabaseConfig {+ return Plan_ChangeDatabaseConfig.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Plan_ChangeDatabaseConfig>): Plan_ChangeDatabaseConfig {+ const message = createBasePlan_ChangeDatabaseConfig();+ message.target = object.target ?? "";+ message.sheet = object.sheet ?? "";+ message.type = object.type ?? 0;+ message.schemaVersion = object.schemaVersion ?? "";+ message.rollbackEnabled = object.rollbackEnabled ?? false;+ return message;+ },+};++function createBasePlan_RestoreDatabaseConfig(): Plan_RestoreDatabaseConfig {+ return { target: "", createDatabaseConfig: undefined, backup: undefined, pointInTime: undefined };+}++export const Plan_RestoreDatabaseConfig = {+ encode(message: Plan_RestoreDatabaseConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.target !== "") {+ writer.uint32(10).string(message.target);+ }+ if (message.createDatabaseConfig !== undefined) {+ Plan_CreateDatabaseConfig.encode(message.createDatabaseConfig, writer.uint32(18).fork()).ldelim();+ }+ if (message.backup !== undefined) {+ writer.uint32(26).string(message.backup);+ }+ if (message.pointInTime !== undefined) {+ Timestamp.encode(toTimestamp(message.pointInTime), writer.uint32(34).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Plan_RestoreDatabaseConfig {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlan_RestoreDatabaseConfig();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.target = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.createDatabaseConfig = Plan_CreateDatabaseConfig.decode(reader, reader.uint32());+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.backup = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.pointInTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Plan_RestoreDatabaseConfig {+ return {+ target: isSet(object.target) ? String(object.target) : "",+ createDatabaseConfig: isSet(object.createDatabaseConfig)+ ? Plan_CreateDatabaseConfig.fromJSON(object.createDatabaseConfig)+ : undefined,+ backup: isSet(object.backup) ? String(object.backup) : undefined,+ pointInTime: isSet(object.pointInTime) ? fromJsonTimestamp(object.pointInTime) : undefined,+ };+ },++ toJSON(message: Plan_RestoreDatabaseConfig): unknown {+ const obj: any = {};+ message.target !== undefined && (obj.target = message.target);+ message.createDatabaseConfig !== undefined && (obj.createDatabaseConfig = message.createDatabaseConfig+ ? Plan_CreateDatabaseConfig.toJSON(message.createDatabaseConfig)+ : undefined);+ message.backup !== undefined && (obj.backup = message.backup);+ message.pointInTime !== undefined && (obj.pointInTime = message.pointInTime.toISOString());+ return obj;+ },++ create(base?: DeepPartial<Plan_RestoreDatabaseConfig>): Plan_RestoreDatabaseConfig {+ return Plan_RestoreDatabaseConfig.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Plan_RestoreDatabaseConfig>): Plan_RestoreDatabaseConfig {+ const message = createBasePlan_RestoreDatabaseConfig();+ message.target = object.target ?? "";+ message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)+ ? Plan_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig)+ : undefined;+ message.backup = object.backup ?? undefined;+ message.pointInTime = object.pointInTime ?? undefined;+ return message;+ },+};++function createBaseListPlanCheckRunsRequest(): ListPlanCheckRunsRequest {+ return { parent: "", pageSize: 0, pageToken: "" };+}++export const ListPlanCheckRunsRequest = {+ encode(message: ListPlanCheckRunsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.parent !== "") {+ writer.uint32(10).string(message.parent);+ }+ if (message.pageSize !== 0) {+ writer.uint32(16).int32(message.pageSize);+ }+ if (message.pageToken !== "") {+ writer.uint32(26).string(message.pageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListPlanCheckRunsRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListPlanCheckRunsRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.parent = reader.string();+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.pageSize = reader.int32();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.pageToken = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ListPlanCheckRunsRequest {+ return {+ parent: isSet(object.parent) ? String(object.parent) : "",+ pageSize: isSet(object.pageSize) ? Number(object.pageSize) : 0,+ pageToken: isSet(object.pageToken) ? String(object.pageToken) : "",+ };+ },++ toJSON(message: ListPlanCheckRunsRequest): unknown {+ const obj: any = {};+ message.parent !== undefined && (obj.parent = message.parent);+ message.pageSize !== undefined && (obj.pageSize = Math.round(message.pageSize));+ message.pageToken !== undefined && (obj.pageToken = message.pageToken);+ return obj;+ },++ create(base?: DeepPartial<ListPlanCheckRunsRequest>): ListPlanCheckRunsRequest {+ return ListPlanCheckRunsRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<ListPlanCheckRunsRequest>): ListPlanCheckRunsRequest {+ const message = createBaseListPlanCheckRunsRequest();+ message.parent = object.parent ?? "";+ message.pageSize = object.pageSize ?? 0;+ message.pageToken = object.pageToken ?? "";+ return message;+ },+};++function createBaseListPlanCheckRunsResponse(): ListPlanCheckRunsResponse {+ return { planCheckRuns: [], nextPageToken: "" };+}++export const ListPlanCheckRunsResponse = {+ encode(message: ListPlanCheckRunsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.planCheckRuns) {+ PlanCheckRun.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ if (message.nextPageToken !== "") {+ writer.uint32(18).string(message.nextPageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListPlanCheckRunsResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListPlanCheckRunsResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.planCheckRuns.push(PlanCheckRun.decode(reader, reader.uint32()));+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.nextPageToken = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ListPlanCheckRunsResponse {+ return {+ planCheckRuns: Array.isArray(object?.planCheckRuns)+ ? object.planCheckRuns.map((e: any) => PlanCheckRun.fromJSON(e))+ : [],+ nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "",+ };+ },++ toJSON(message: ListPlanCheckRunsResponse): unknown {+ const obj: any = {};+ if (message.planCheckRuns) {+ obj.planCheckRuns = message.planCheckRuns.map((e) => e ? PlanCheckRun.toJSON(e) : undefined);+ } else {+ obj.planCheckRuns = [];+ }+ message.nextPageToken !== undefined && (obj.nextPageToken = message.nextPageToken);+ return obj;+ },++ create(base?: DeepPartial<ListPlanCheckRunsResponse>): ListPlanCheckRunsResponse {+ return ListPlanCheckRunsResponse.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<ListPlanCheckRunsResponse>): ListPlanCheckRunsResponse {+ const message = createBaseListPlanCheckRunsResponse();+ message.planCheckRuns = object.planCheckRuns?.map((e) => PlanCheckRun.fromPartial(e)) || [];+ message.nextPageToken = object.nextPageToken ?? "";+ return message;+ },+};++function createBasePlanCheckRun(): PlanCheckRun {+ return { name: "", uid: "", type: 0, status: 0, target: "", sheet: "", detail: "", results: [] };+}++export const PlanCheckRun = {+ encode(message: PlanCheckRun, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.type !== 0) {+ writer.uint32(24).int32(message.type);+ }+ if (message.status !== 0) {+ writer.uint32(32).int32(message.status);+ }+ if (message.target !== "") {+ writer.uint32(42).string(message.target);+ }+ if (message.sheet !== "") {+ writer.uint32(50).string(message.sheet);+ }+ if (message.detail !== "") {+ writer.uint32(58).string(message.detail);+ }+ for (const v of message.results) {+ PlanCheckRun_Result.encode(v!, writer.uint32(66).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlanCheckRun();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.uid = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.type = reader.int32() as any;+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.status = reader.int32() as any;+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.target = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.detail = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.results.push(PlanCheckRun_Result.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PlanCheckRun {+ return {+ name: isSet(object.name) ? String(object.name) : "",+ uid: isSet(object.uid) ? String(object.uid) : "",+ type: isSet(object.type) ? planCheckRun_TypeFromJSON(object.type) : 0,+ status: isSet(object.status) ? planCheckRun_StatusFromJSON(object.status) : 0,+ target: isSet(object.target) ? String(object.target) : "",+ sheet: isSet(object.sheet) ? String(object.sheet) : "",+ detail: isSet(object.detail) ? String(object.detail) : "",+ results: Array.isArray(object?.results) ? object.results.map((e: any) => PlanCheckRun_Result.fromJSON(e)) : [],+ };+ },++ toJSON(message: PlanCheckRun): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ message.uid !== undefined && (obj.uid = message.uid);+ message.type !== undefined && (obj.type = planCheckRun_TypeToJSON(message.type));+ message.status !== undefined && (obj.status = planCheckRun_StatusToJSON(message.status));+ message.target !== undefined && (obj.target = message.target);+ message.sheet !== undefined && (obj.sheet = message.sheet);+ message.detail !== undefined && (obj.detail = message.detail);+ if (message.results) {+ obj.results = message.results.map((e) => e ? PlanCheckRun_Result.toJSON(e) : undefined);+ } else {+ obj.results = [];+ }+ return obj;+ },++ create(base?: DeepPartial<PlanCheckRun>): PlanCheckRun {+ return PlanCheckRun.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<PlanCheckRun>): PlanCheckRun {+ const message = createBasePlanCheckRun();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.type = object.type ?? 0;+ message.status = object.status ?? 0;+ message.target = object.target ?? "";+ message.sheet = object.sheet ?? "";+ message.detail = object.detail ?? "";+ message.results = object.results?.map((e) => PlanCheckRun_Result.fromPartial(e)) || [];+ return message;+ },+};++function createBasePlanCheckRun_Result(): PlanCheckRun_Result {+ return { namespace: 0, code: 0, status: 0, title: "", content: "", line: 0, detail: "" };+}++export const PlanCheckRun_Result = {+ encode(message: PlanCheckRun_Result, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.namespace !== 0) {+ writer.uint32(8).int32(message.namespace);+ }+ if (message.code !== 0) {+ writer.uint32(16).int64(message.code);+ }+ if (message.status !== 0) {+ writer.uint32(24).int32(message.status);+ }+ if (message.title !== "") {+ writer.uint32(34).string(message.title);+ }+ if (message.content !== "") {+ writer.uint32(42).string(message.content);+ }+ if (message.line !== 0) {+ writer.uint32(48).int64(message.line);+ }+ if (message.detail !== "") {+ writer.uint32(58).string(message.detail);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): PlanCheckRun_Result {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBasePlanCheckRun_Result();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.namespace = reader.int32() as any;+ continue;+ case 2:+ if (tag !== 16) {+ break;+ }++ message.code = longToNumber(reader.int64() as Long);+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.status = reader.int32() as any;+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.title = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.content = reader.string();+ continue;+ case 6:+ if (tag !== 48) {+ break;+ }++ message.line = longToNumber(reader.int64() as Long);+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.detail = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): PlanCheckRun_Result {+ return {+ namespace: isSet(object.namespace) ? planCheckRun_Result_NamespaceFromJSON(object.namespace) : 0,+ code: isSet(object.code) ? Number(object.code) : 0,+ status: isSet(object.status) ? planCheckRun_Result_StatusFromJSON(object.status) : 0,+ title: isSet(object.title) ? String(object.title) : "",+ content: isSet(object.content) ? String(object.content) : "",+ line: isSet(object.line) ? Number(object.line) : 0,+ detail: isSet(object.detail) ? String(object.detail) : "",+ };+ },++ toJSON(message: PlanCheckRun_Result): unknown {+ const obj: any = {};+ message.namespace !== undefined && (obj.namespace = planCheckRun_Result_NamespaceToJSON(message.namespace));+ message.code !== undefined && (obj.code = Math.round(message.code));+ message.status !== undefined && (obj.status = planCheckRun_Result_StatusToJSON(message.status));+ message.title !== undefined && (obj.title = message.title);+ message.content !== undefined && (obj.content = message.content);+ message.line !== undefined && (obj.line = Math.round(message.line));+ message.detail !== undefined && (obj.detail = message.detail);+ return obj;+ },++ create(base?: DeepPartial<PlanCheckRun_Result>): PlanCheckRun_Result {+ return PlanCheckRun_Result.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<PlanCheckRun_Result>): PlanCheckRun_Result {+ const message = createBasePlanCheckRun_Result();+ message.namespace = object.namespace ?? 0;+ message.code = object.code ?? 0;+ message.status = object.status ?? 0;+ message.title = object.title ?? "";+ message.content = object.content ?? "";+ message.line = object.line ?? 0;+ message.detail = object.detail ?? "";+ return message;+ },+};++function createBaseGetRolloutRequest(): GetRolloutRequest {+ return { name: "" };+}++export const GetRolloutRequest = {+ encode(message: GetRolloutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): GetRolloutRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseGetRolloutRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): GetRolloutRequest {+ return { name: isSet(object.name) ? String(object.name) : "" };+ },++ toJSON(message: GetRolloutRequest): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ return obj;+ },++ create(base?: DeepPartial<GetRolloutRequest>): GetRolloutRequest {+ return GetRolloutRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<GetRolloutRequest>): GetRolloutRequest {+ const message = createBaseGetRolloutRequest();+ message.name = object.name ?? "";+ return message;+ },+};++function createBaseRollout(): Rollout {+ return { name: "", uid: "", plan: "", title: "", stages: [] };+}++export const Rollout = {+ encode(message: Rollout, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.plan !== "") {+ writer.uint32(26).string(message.plan);+ }+ if (message.title !== "") {+ writer.uint32(34).string(message.title);+ }+ for (const v of message.stages) {+ Stage.encode(v!, writer.uint32(42).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Rollout {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseRollout();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.uid = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.plan = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.title = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.stages.push(Stage.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Rollout {+ return {+ name: isSet(object.name) ? String(object.name) : "",+ uid: isSet(object.uid) ? String(object.uid) : "",+ plan: isSet(object.plan) ? String(object.plan) : "",+ title: isSet(object.title) ? String(object.title) : "",+ stages: Array.isArray(object?.stages) ? object.stages.map((e: any) => Stage.fromJSON(e)) : [],+ };+ },++ toJSON(message: Rollout): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ message.uid !== undefined && (obj.uid = message.uid);+ message.plan !== undefined && (obj.plan = message.plan);+ message.title !== undefined && (obj.title = message.title);+ if (message.stages) {+ obj.stages = message.stages.map((e) => e ? Stage.toJSON(e) : undefined);+ } else {+ obj.stages = [];+ }+ return obj;+ },++ create(base?: DeepPartial<Rollout>): Rollout {+ return Rollout.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Rollout>): Rollout {+ const message = createBaseRollout();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.plan = object.plan ?? "";+ message.title = object.title ?? "";+ message.stages = object.stages?.map((e) => Stage.fromPartial(e)) || [];+ return message;+ },+};++function createBaseStage(): Stage {+ return { name: "", uid: "", environment: "", title: "", tasks: [] };+}++export const Stage = {+ encode(message: Stage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.environment !== "") {+ writer.uint32(26).string(message.environment);+ }+ if (message.title !== "") {+ writer.uint32(34).string(message.title);+ }+ for (const v of message.tasks) {+ Task.encode(v!, writer.uint32(42).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Stage {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseStage();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.uid = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.environment = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.title = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.tasks.push(Task.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Stage {+ return {+ name: isSet(object.name) ? String(object.name) : "",+ uid: isSet(object.uid) ? String(object.uid) : "",+ environment: isSet(object.environment) ? String(object.environment) : "",+ title: isSet(object.title) ? String(object.title) : "",+ tasks: Array.isArray(object?.tasks) ? object.tasks.map((e: any) => Task.fromJSON(e)) : [],+ };+ },++ toJSON(message: Stage): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ message.uid !== undefined && (obj.uid = message.uid);+ message.environment !== undefined && (obj.environment = message.environment);+ message.title !== undefined && (obj.title = message.title);+ if (message.tasks) {+ obj.tasks = message.tasks.map((e) => e ? Task.toJSON(e) : undefined);+ } else {+ obj.tasks = [];+ }+ return obj;+ },++ create(base?: DeepPartial<Stage>): Stage {+ return Stage.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Stage>): Stage {+ const message = createBaseStage();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.environment = object.environment ?? "";+ message.title = object.title ?? "";+ message.tasks = object.tasks?.map((e) => Task.fromPartial(e)) || [];+ return message;+ },+};++function createBaseTask(): Task {+ return {+ name: "",+ uid: "",+ title: "",+ type: 0,+ blockedByTasks: [],+ target: "",+ databaseCase: undefined,+ databaseSchemaBaseline: undefined,+ databaseSchemaUpdate: undefined,+ databaseDataUpdate: undefined,+ databaseRestoreRestore: undefined,+ };+}++export const Task = {+ encode(message: Task, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.title !== "") {+ writer.uint32(26).string(message.title);+ }+ if (message.type !== 0) {+ writer.uint32(32).int32(message.type);+ }+ for (const v of message.blockedByTasks) {+ writer.uint32(42).string(v!);+ }+ if (message.target !== "") {+ writer.uint32(50).string(message.target);+ }+ if (message.databaseCase !== undefined) {+ Task_DatabaseCreate.encode(message.databaseCase, writer.uint32(58).fork()).ldelim();+ }+ if (message.databaseSchemaBaseline !== undefined) {+ Task_DatabaseSchemaBaseline.encode(message.databaseSchemaBaseline, writer.uint32(66).fork()).ldelim();+ }+ if (message.databaseSchemaUpdate !== undefined) {+ Task_DatabaseSchemaUpdate.encode(message.databaseSchemaUpdate, writer.uint32(74).fork()).ldelim();+ }+ if (message.databaseDataUpdate !== undefined) {+ Task_DatabaseDataUpdate.encode(message.databaseDataUpdate, writer.uint32(82).fork()).ldelim();+ }+ if (message.databaseRestoreRestore !== undefined) {+ Task_DatabaseRestoreRestore.encode(message.databaseRestoreRestore, writer.uint32(90).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Task {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTask();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.uid = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.title = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.type = reader.int32() as any;+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.blockedByTasks.push(reader.string());+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.target = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.databaseCase = Task_DatabaseCreate.decode(reader, reader.uint32());+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.databaseSchemaBaseline = Task_DatabaseSchemaBaseline.decode(reader, reader.uint32());+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.databaseSchemaUpdate = Task_DatabaseSchemaUpdate.decode(reader, reader.uint32());+ continue;+ case 10:+ if (tag !== 82) {+ break;+ }++ message.databaseDataUpdate = Task_DatabaseDataUpdate.decode(reader, reader.uint32());+ continue;+ case 11:+ if (tag !== 90) {+ break;+ }++ message.databaseRestoreRestore = Task_DatabaseRestoreRestore.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Task {+ return {+ name: isSet(object.name) ? String(object.name) : "",+ uid: isSet(object.uid) ? String(object.uid) : "",+ title: isSet(object.title) ? String(object.title) : "",+ type: isSet(object.type) ? task_TypeFromJSON(object.type) : 0,+ blockedByTasks: Array.isArray(object?.blockedByTasks) ? object.blockedByTasks.map((e: any) => String(e)) : [],+ target: isSet(object.target) ? String(object.target) : "",+ databaseCase: isSet(object.databaseCase) ? Task_DatabaseCreate.fromJSON(object.databaseCase) : undefined,+ databaseSchemaBaseline: isSet(object.databaseSchemaBaseline)+ ? Task_DatabaseSchemaBaseline.fromJSON(object.databaseSchemaBaseline)+ : undefined,+ databaseSchemaUpdate: isSet(object.databaseSchemaUpdate)+ ? Task_DatabaseSchemaUpdate.fromJSON(object.databaseSchemaUpdate)+ : undefined,+ databaseDataUpdate: isSet(object.databaseDataUpdate)+ ? Task_DatabaseDataUpdate.fromJSON(object.databaseDataUpdate)+ : undefined,+ databaseRestoreRestore: isSet(object.databaseRestoreRestore)+ ? Task_DatabaseRestoreRestore.fromJSON(object.databaseRestoreRestore)+ : undefined,+ };+ },++ toJSON(message: Task): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ message.uid !== undefined && (obj.uid = message.uid);+ message.title !== undefined && (obj.title = message.title);+ message.type !== undefined && (obj.type = task_TypeToJSON(message.type));+ if (message.blockedByTasks) {+ obj.blockedByTasks = message.blockedByTasks.map((e) => e);+ } else {+ obj.blockedByTasks = [];+ }+ message.target !== undefined && (obj.target = message.target);+ message.databaseCase !== undefined &&+ (obj.databaseCase = message.databaseCase ? Task_DatabaseCreate.toJSON(message.databaseCase) : undefined);+ message.databaseSchemaBaseline !== undefined && (obj.databaseSchemaBaseline = message.databaseSchemaBaseline+ ? Task_DatabaseSchemaBaseline.toJSON(message.databaseSchemaBaseline)+ : undefined);+ message.databaseSchemaUpdate !== undefined && (obj.databaseSchemaUpdate = message.databaseSchemaUpdate+ ? Task_DatabaseSchemaUpdate.toJSON(message.databaseSchemaUpdate)+ : undefined);+ message.databaseDataUpdate !== undefined && (obj.databaseDataUpdate = message.databaseDataUpdate+ ? Task_DatabaseDataUpdate.toJSON(message.databaseDataUpdate)+ : undefined);+ message.databaseRestoreRestore !== undefined && (obj.databaseRestoreRestore = message.databaseRestoreRestore+ ? Task_DatabaseRestoreRestore.toJSON(message.databaseRestoreRestore)+ : undefined);+ return obj;+ },++ create(base?: DeepPartial<Task>): Task {+ return Task.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Task>): Task {+ const message = createBaseTask();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.title = object.title ?? "";+ message.type = object.type ?? 0;+ message.blockedByTasks = object.blockedByTasks?.map((e) => e) || [];+ message.target = object.target ?? "";+ message.databaseCase = (object.databaseCase !== undefined && object.databaseCase !== null)+ ? Task_DatabaseCreate.fromPartial(object.databaseCase)+ : undefined;+ message.databaseSchemaBaseline =+ (object.databaseSchemaBaseline !== undefined && object.databaseSchemaBaseline !== null)+ ? Task_DatabaseSchemaBaseline.fromPartial(object.databaseSchemaBaseline)+ : undefined;+ message.databaseSchemaUpdate = (object.databaseSchemaUpdate !== undefined && object.databaseSchemaUpdate !== null)+ ? Task_DatabaseSchemaUpdate.fromPartial(object.databaseSchemaUpdate)+ : undefined;+ message.databaseDataUpdate = (object.databaseDataUpdate !== undefined && object.databaseDataUpdate !== null)+ ? Task_DatabaseDataUpdate.fromPartial(object.databaseDataUpdate)+ : undefined;+ message.databaseRestoreRestore =+ (object.databaseRestoreRestore !== undefined && object.databaseRestoreRestore !== null)+ ? Task_DatabaseRestoreRestore.fromPartial(object.databaseRestoreRestore)+ : undefined;+ return message;+ },+};++function createBaseTask_DatabaseCreate(): Task_DatabaseCreate {+ return { project: "", database: "", table: "", sheet: "", characterSet: "", collection: "", labels: {} };+}++export const Task_DatabaseCreate = {+ encode(message: Task_DatabaseCreate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.project !== "") {+ writer.uint32(10).string(message.project);+ }+ if (message.database !== "") {+ writer.uint32(18).string(message.database);+ }+ if (message.table !== "") {+ writer.uint32(26).string(message.table);+ }+ if (message.sheet !== "") {+ writer.uint32(34).string(message.sheet);+ }+ if (message.characterSet !== "") {+ writer.uint32(42).string(message.characterSet);+ }+ if (message.collection !== "") {+ writer.uint32(50).string(message.collection);+ }+ Object.entries(message.labels).forEach(([key, value]) => {+ Task_DatabaseCreate_LabelsEntry.encode({ key: key as any, value }, writer.uint32(58).fork()).ldelim();+ });+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseCreate {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTask_DatabaseCreate();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.project = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.database = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.table = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.characterSet = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.collection = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ const entry7 = Task_DatabaseCreate_LabelsEntry.decode(reader, reader.uint32());+ if (entry7.value !== undefined) {+ message.labels[entry7.key] = entry7.value;+ }+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Task_DatabaseCreate {+ return {+ project: isSet(object.project) ? String(object.project) : "",+ database: isSet(object.database) ? String(object.database) : "",+ table: isSet(object.table) ? String(object.table) : "",+ sheet: isSet(object.sheet) ? String(object.sheet) : "",+ characterSet: isSet(object.characterSet) ? String(object.characterSet) : "",+ collection: isSet(object.collection) ? String(object.collection) : "",+ labels: isObject(object.labels)+ ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ };+ },++ toJSON(message: Task_DatabaseCreate): unknown {+ const obj: any = {};+ message.project !== undefined && (obj.project = message.project);+ message.database !== undefined && (obj.database = message.database);+ message.table !== undefined && (obj.table = message.table);+ message.sheet !== undefined && (obj.sheet = message.sheet);+ message.characterSet !== undefined && (obj.characterSet = message.characterSet);+ message.collection !== undefined && (obj.collection = message.collection);+ obj.labels = {};+ if (message.labels) {+ Object.entries(message.labels).forEach(([k, v]) => {+ obj.labels[k] = v;+ });+ }+ return obj;+ },++ create(base?: DeepPartial<Task_DatabaseCreate>): Task_DatabaseCreate {+ return Task_DatabaseCreate.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Task_DatabaseCreate>): Task_DatabaseCreate {+ const message = createBaseTask_DatabaseCreate();+ message.project = object.project ?? "";+ message.database = object.database ?? "";+ message.table = object.table ?? "";+ message.sheet = object.sheet ?? "";+ message.characterSet = object.characterSet ?? "";+ message.collection = object.collection ?? "";+ message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = String(value);+ }+ return acc;+ }, {});+ return message;+ },+};++function createBaseTask_DatabaseCreate_LabelsEntry(): Task_DatabaseCreate_LabelsEntry {+ return { key: "", value: "" };+}++export const Task_DatabaseCreate_LabelsEntry = {+ encode(message: Task_DatabaseCreate_LabelsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== "") {+ writer.uint32(18).string(message.value);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseCreate_LabelsEntry {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTask_DatabaseCreate_LabelsEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.value = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Task_DatabaseCreate_LabelsEntry {+ return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };+ },++ toJSON(message: Task_DatabaseCreate_LabelsEntry): unknown {+ const obj: any = {};+ message.key !== undefined && (obj.key = message.key);+ message.value !== undefined && (obj.value = message.value);+ return obj;+ },++ create(base?: DeepPartial<Task_DatabaseCreate_LabelsEntry>): Task_DatabaseCreate_LabelsEntry {+ return Task_DatabaseCreate_LabelsEntry.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Task_DatabaseCreate_LabelsEntry>): Task_DatabaseCreate_LabelsEntry {+ const message = createBaseTask_DatabaseCreate_LabelsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";+ return message;+ },+};++function createBaseTask_DatabaseSchemaBaseline(): Task_DatabaseSchemaBaseline {+ return { schemaVersion: "" };+}++export const Task_DatabaseSchemaBaseline = {+ encode(message: Task_DatabaseSchemaBaseline, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.schemaVersion !== "") {+ writer.uint32(10).string(message.schemaVersion);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseSchemaBaseline {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTask_DatabaseSchemaBaseline();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.schemaVersion = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Task_DatabaseSchemaBaseline {+ return { schemaVersion: isSet(object.schemaVersion) ? String(object.schemaVersion) : "" };+ },++ toJSON(message: Task_DatabaseSchemaBaseline): unknown {+ const obj: any = {};+ message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion);+ return obj;+ },++ create(base?: DeepPartial<Task_DatabaseSchemaBaseline>): Task_DatabaseSchemaBaseline {+ return Task_DatabaseSchemaBaseline.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Task_DatabaseSchemaBaseline>): Task_DatabaseSchemaBaseline {+ const message = createBaseTask_DatabaseSchemaBaseline();+ message.schemaVersion = object.schemaVersion ?? "";+ return message;+ },+};++function createBaseTask_DatabaseSchemaUpdate(): Task_DatabaseSchemaUpdate {+ return { sheet: "", schemaVersion: "" };+}++export const Task_DatabaseSchemaUpdate = {+ encode(message: Task_DatabaseSchemaUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.sheet !== "") {+ writer.uint32(10).string(message.sheet);+ }+ if (message.schemaVersion !== "") {+ writer.uint32(18).string(message.schemaVersion);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseSchemaUpdate {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTask_DatabaseSchemaUpdate();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.schemaVersion = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Task_DatabaseSchemaUpdate {+ return {+ sheet: isSet(object.sheet) ? String(object.sheet) : "",+ schemaVersion: isSet(object.schemaVersion) ? String(object.schemaVersion) : "",+ };+ },++ toJSON(message: Task_DatabaseSchemaUpdate): unknown {+ const obj: any = {};+ message.sheet !== undefined && (obj.sheet = message.sheet);+ message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion);+ return obj;+ },++ create(base?: DeepPartial<Task_DatabaseSchemaUpdate>): Task_DatabaseSchemaUpdate {+ return Task_DatabaseSchemaUpdate.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Task_DatabaseSchemaUpdate>): Task_DatabaseSchemaUpdate {+ const message = createBaseTask_DatabaseSchemaUpdate();+ message.sheet = object.sheet ?? "";+ message.schemaVersion = object.schemaVersion ?? "";+ return message;+ },+};++function createBaseTask_DatabaseDataUpdate(): Task_DatabaseDataUpdate {+ return {+ sheet: "",+ schemaVersion: "",+ rollbackEnabled: false,+ rollbackSqlStatus: 0,+ transactionId: "",+ threadId: "",+ changeHistory: "",+ binlogFileStart: "",+ binlogFileEnd: "",+ binlogPositionStart: 0,+ binlogPositionEnd: 0,+ rollbackError: "",+ rollbackSheet: "",+ rollbackFromReview: "",+ rollbackFromTask: "",+ };+}++export const Task_DatabaseDataUpdate = {+ encode(message: Task_DatabaseDataUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.sheet !== "") {+ writer.uint32(10).string(message.sheet);+ }+ if (message.schemaVersion !== "") {+ writer.uint32(18).string(message.schemaVersion);+ }+ if (message.rollbackEnabled === true) {+ writer.uint32(24).bool(message.rollbackEnabled);+ }+ if (message.rollbackSqlStatus !== 0) {+ writer.uint32(32).int32(message.rollbackSqlStatus);+ }+ if (message.transactionId !== "") {+ writer.uint32(42).string(message.transactionId);+ }+ if (message.threadId !== "") {+ writer.uint32(50).string(message.threadId);+ }+ if (message.changeHistory !== "") {+ writer.uint32(58).string(message.changeHistory);+ }+ if (message.binlogFileStart !== "") {+ writer.uint32(66).string(message.binlogFileStart);+ }+ if (message.binlogFileEnd !== "") {+ writer.uint32(74).string(message.binlogFileEnd);+ }+ if (message.binlogPositionStart !== 0) {+ writer.uint32(80).int64(message.binlogPositionStart);+ }+ if (message.binlogPositionEnd !== 0) {+ writer.uint32(88).int64(message.binlogPositionEnd);+ }+ if (message.rollbackError !== "") {+ writer.uint32(98).string(message.rollbackError);+ }+ if (message.rollbackSheet !== "") {+ writer.uint32(106).string(message.rollbackSheet);+ }+ if (message.rollbackFromReview !== "") {+ writer.uint32(114).string(message.rollbackFromReview);+ }+ if (message.rollbackFromTask !== "") {+ writer.uint32(122).string(message.rollbackFromTask);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseDataUpdate {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTask_DatabaseDataUpdate();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.schemaVersion = reader.string();+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.rollbackEnabled = reader.bool();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.rollbackSqlStatus = reader.int32() as any;+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.transactionId = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.threadId = reader.string();+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.changeHistory = reader.string();+ continue;+ case 8:+ if (tag !== 66) {+ break;+ }++ message.binlogFileStart = reader.string();+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.binlogFileEnd = reader.string();+ continue;+ case 10:+ if (tag !== 80) {+ break;+ }++ message.binlogPositionStart = longToNumber(reader.int64() as Long);+ continue;+ case 11:+ if (tag !== 88) {+ break;+ }++ message.binlogPositionEnd = longToNumber(reader.int64() as Long);+ continue;+ case 12:+ if (tag !== 98) {+ break;+ }++ message.rollbackError = reader.string();+ continue;+ case 13:+ if (tag !== 106) {+ break;+ }++ message.rollbackSheet = reader.string();+ continue;+ case 14:+ if (tag !== 114) {+ break;+ }++ message.rollbackFromReview = reader.string();+ continue;+ case 15:+ if (tag !== 122) {+ break;+ }++ message.rollbackFromTask = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Task_DatabaseDataUpdate {+ return {+ sheet: isSet(object.sheet) ? String(object.sheet) : "",+ schemaVersion: isSet(object.schemaVersion) ? String(object.schemaVersion) : "",+ rollbackEnabled: isSet(object.rollbackEnabled) ? Boolean(object.rollbackEnabled) : false,+ rollbackSqlStatus: isSet(object.rollbackSqlStatus)+ ? task_DatabaseDataUpdate_RollbackSqlStatusFromJSON(object.rollbackSqlStatus)+ : 0,+ transactionId: isSet(object.transactionId) ? String(object.transactionId) : "",+ threadId: isSet(object.threadId) ? String(object.threadId) : "",+ changeHistory: isSet(object.changeHistory) ? String(object.changeHistory) : "",+ binlogFileStart: isSet(object.binlogFileStart) ? String(object.binlogFileStart) : "",+ binlogFileEnd: isSet(object.binlogFileEnd) ? String(object.binlogFileEnd) : "",+ binlogPositionStart: isSet(object.binlogPositionStart) ? Number(object.binlogPositionStart) : 0,+ binlogPositionEnd: isSet(object.binlogPositionEnd) ? Number(object.binlogPositionEnd) : 0,+ rollbackError: isSet(object.rollbackError) ? String(object.rollbackError) : "",+ rollbackSheet: isSet(object.rollbackSheet) ? String(object.rollbackSheet) : "",+ rollbackFromReview: isSet(object.rollbackFromReview) ? String(object.rollbackFromReview) : "",+ rollbackFromTask: isSet(object.rollbackFromTask) ? String(object.rollbackFromTask) : "",+ };+ },++ toJSON(message: Task_DatabaseDataUpdate): unknown {+ const obj: any = {};+ message.sheet !== undefined && (obj.sheet = message.sheet);+ message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion);+ message.rollbackEnabled !== undefined && (obj.rollbackEnabled = message.rollbackEnabled);+ message.rollbackSqlStatus !== undefined &&+ (obj.rollbackSqlStatus = task_DatabaseDataUpdate_RollbackSqlStatusToJSON(message.rollbackSqlStatus));+ message.transactionId !== undefined && (obj.transactionId = message.transactionId);+ message.threadId !== undefined && (obj.threadId = message.threadId);+ message.changeHistory !== undefined && (obj.changeHistory = message.changeHistory);+ message.binlogFileStart !== undefined && (obj.binlogFileStart = message.binlogFileStart);+ message.binlogFileEnd !== undefined && (obj.binlogFileEnd = message.binlogFileEnd);+ message.binlogPositionStart !== undefined && (obj.binlogPositionStart = Math.round(message.binlogPositionStart));+ message.binlogPositionEnd !== undefined && (obj.binlogPositionEnd = Math.round(message.binlogPositionEnd));+ message.rollbackError !== undefined && (obj.rollbackError = message.rollbackError);+ message.rollbackSheet !== undefined && (obj.rollbackSheet = message.rollbackSheet);+ message.rollbackFromReview !== undefined && (obj.rollbackFromReview = message.rollbackFromReview);+ message.rollbackFromTask !== undefined && (obj.rollbackFromTask = message.rollbackFromTask);+ return obj;+ },++ create(base?: DeepPartial<Task_DatabaseDataUpdate>): Task_DatabaseDataUpdate {+ return Task_DatabaseDataUpdate.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Task_DatabaseDataUpdate>): Task_DatabaseDataUpdate {+ const message = createBaseTask_DatabaseDataUpdate();+ message.sheet = object.sheet ?? "";+ message.schemaVersion = object.schemaVersion ?? "";+ message.rollbackEnabled = object.rollbackEnabled ?? false;+ message.rollbackSqlStatus = object.rollbackSqlStatus ?? 0;+ message.transactionId = object.transactionId ?? "";+ message.threadId = object.threadId ?? "";+ message.changeHistory = object.changeHistory ?? "";+ message.binlogFileStart = object.binlogFileStart ?? "";+ message.binlogFileEnd = object.binlogFileEnd ?? "";+ message.binlogPositionStart = object.binlogPositionStart ?? 0;+ message.binlogPositionEnd = object.binlogPositionEnd ?? 0;+ message.rollbackError = object.rollbackError ?? "";+ message.rollbackSheet = object.rollbackSheet ?? "";+ message.rollbackFromReview = object.rollbackFromReview ?? "";+ message.rollbackFromTask = object.rollbackFromTask ?? "";+ return message;+ },+};++function createBaseTask_DatabaseBackup(): Task_DatabaseBackup {+ return { backup: "" };+}++export const Task_DatabaseBackup = {+ encode(message: Task_DatabaseBackup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.backup !== "") {+ writer.uint32(10).string(message.backup);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseBackup {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTask_DatabaseBackup();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.backup = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Task_DatabaseBackup {+ return { backup: isSet(object.backup) ? String(object.backup) : "" };+ },++ toJSON(message: Task_DatabaseBackup): unknown {+ const obj: any = {};+ message.backup !== undefined && (obj.backup = message.backup);+ return obj;+ },++ create(base?: DeepPartial<Task_DatabaseBackup>): Task_DatabaseBackup {+ return Task_DatabaseBackup.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Task_DatabaseBackup>): Task_DatabaseBackup {+ const message = createBaseTask_DatabaseBackup();+ message.backup = object.backup ?? "";+ return message;+ },+};++function createBaseTask_DatabaseRestoreRestore(): Task_DatabaseRestoreRestore {+ return { target: "", backup: undefined, pointInTime: undefined };+}++export const Task_DatabaseRestoreRestore = {+ encode(message: Task_DatabaseRestoreRestore, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.target !== "") {+ writer.uint32(10).string(message.target);+ }+ if (message.backup !== undefined) {+ writer.uint32(18).string(message.backup);+ }+ if (message.pointInTime !== undefined) {+ Timestamp.encode(toTimestamp(message.pointInTime), writer.uint32(26).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Task_DatabaseRestoreRestore {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTask_DatabaseRestoreRestore();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.target = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.backup = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.pointInTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Task_DatabaseRestoreRestore {+ return {+ target: isSet(object.target) ? String(object.target) : "",+ backup: isSet(object.backup) ? String(object.backup) : undefined,+ pointInTime: isSet(object.pointInTime) ? fromJsonTimestamp(object.pointInTime) : undefined,+ };+ },++ toJSON(message: Task_DatabaseRestoreRestore): unknown {+ const obj: any = {};+ message.target !== undefined && (obj.target = message.target);+ message.backup !== undefined && (obj.backup = message.backup);+ message.pointInTime !== undefined && (obj.pointInTime = message.pointInTime.toISOString());+ return obj;+ },++ create(base?: DeepPartial<Task_DatabaseRestoreRestore>): Task_DatabaseRestoreRestore {+ return Task_DatabaseRestoreRestore.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Task_DatabaseRestoreRestore>): Task_DatabaseRestoreRestore {+ const message = createBaseTask_DatabaseRestoreRestore();+ message.target = object.target ?? "";+ message.backup = object.backup ?? undefined;+ message.pointInTime = object.pointInTime ?? undefined;+ return message;+ },+};++function createBaseTaskRun(): TaskRun {+ return {+ name: "",+ uid: "",+ creator: "",+ updater: "",+ createTime: undefined,+ updateTime: undefined,+ title: "",+ status: 0,+ detail: "",+ changeHistory: "",+ schemaVersion: "",+ };+}++export const TaskRun = {+ encode(message: TaskRun, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.uid !== "") {+ writer.uint32(18).string(message.uid);+ }+ if (message.creator !== "") {+ writer.uint32(26).string(message.creator);+ }+ if (message.updater !== "") {+ writer.uint32(34).string(message.updater);+ }+ if (message.createTime !== undefined) {+ Timestamp.encode(toTimestamp(message.createTime), writer.uint32(42).fork()).ldelim();+ }+ if (message.updateTime !== undefined) {+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(50).fork()).ldelim();+ }+ if (message.title !== "") {+ writer.uint32(58).string(message.title);+ }+ if (message.status !== 0) {+ writer.uint32(64).int32(message.status);+ }+ if (message.detail !== "") {+ writer.uint32(74).string(message.detail);+ }+ if (message.changeHistory !== "") {+ writer.uint32(82).string(message.changeHistory);+ }+ if (message.schemaVersion !== "") {+ writer.uint32(90).string(message.schemaVersion);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRun {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTaskRun();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.uid = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.creator = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.updater = reader.string();+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 7:+ if (tag !== 58) {+ break;+ }++ message.title = reader.string();+ continue;+ case 8:+ if (tag !== 64) {+ break;+ }++ message.status = reader.int32() as any;+ continue;+ case 9:+ if (tag !== 74) {+ break;+ }++ message.detail = reader.string();+ continue;+ case 10:+ if (tag !== 82) {+ break;+ }++ message.changeHistory = reader.string();+ continue;+ case 11:+ if (tag !== 90) {+ break;+ }++ message.schemaVersion = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): TaskRun {+ return {+ name: isSet(object.name) ? String(object.name) : "",+ uid: isSet(object.uid) ? String(object.uid) : "",+ creator: isSet(object.creator) ? String(object.creator) : "",+ updater: isSet(object.updater) ? String(object.updater) : "",+ createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,+ title: isSet(object.title) ? String(object.title) : "",+ status: isSet(object.status) ? taskRun_StatusFromJSON(object.status) : 0,+ detail: isSet(object.detail) ? String(object.detail) : "",+ changeHistory: isSet(object.changeHistory) ? String(object.changeHistory) : "",+ schemaVersion: isSet(object.schemaVersion) ? String(object.schemaVersion) : "",+ };+ },++ toJSON(message: TaskRun): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ message.uid !== undefined && (obj.uid = message.uid);+ message.creator !== undefined && (obj.creator = message.creator);+ message.updater !== undefined && (obj.updater = message.updater);+ message.createTime !== undefined && (obj.createTime = message.createTime.toISOString());+ message.updateTime !== undefined && (obj.updateTime = message.updateTime.toISOString());+ message.title !== undefined && (obj.title = message.title);+ message.status !== undefined && (obj.status = taskRun_StatusToJSON(message.status));+ message.detail !== undefined && (obj.detail = message.detail);+ message.changeHistory !== undefined && (obj.changeHistory = message.changeHistory);+ message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion);+ return obj;+ },++ create(base?: DeepPartial<TaskRun>): TaskRun {+ return TaskRun.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<TaskRun>): TaskRun {+ const message = createBaseTaskRun();+ message.name = object.name ?? "";+ message.uid = object.uid ?? "";+ message.creator = object.creator ?? "";+ message.updater = object.updater ?? "";+ message.createTime = object.createTime ?? undefined;+ message.updateTime = object.updateTime ?? undefined;+ message.title = object.title ?? "";+ message.status = object.status ?? 0;+ message.detail = object.detail ?? "";+ message.changeHistory = object.changeHistory ?? "";+ message.schemaVersion = object.schemaVersion ?? "";+ return message;+ },+};++export type RolloutServiceDefinition = typeof RolloutServiceDefinition;+export const RolloutServiceDefinition = {+ name: "RolloutService",+ fullName: "bytebase.v1.RolloutService",+ methods: {+ getPlan: {+ name: "GetPlan",+ requestType: GetPlanRequest,+ requestStream: false,+ responseType: Plan,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],+ 578365826: [+ new Uint8Array([+ 31,+ 18,+ 29,+ 47,+ 118,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,+ 101,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 112,+ 108,+ 97,+ 110,+ 115,+ 47,+ 42,+ 125,+ ]),+ ],+ },+ },+ },+ listPlans: {+ name: "ListPlans",+ requestType: ListPlansRequest,+ requestStream: false,+ responseType: ListPlansResponse,+ responseStream: false,options: {_unknownFields: {8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],@@ -750,6 +4202,172 @@ export const RolloutServiceDefinition = {},},},+ getRollout: {+ name: "GetRollout",+ requestType: GetRolloutRequest,+ requestStream: false,+ responseType: Rollout,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],+ 578365826: [+ new Uint8Array([+ 34,+ 18,+ 32,+ 47,+ 118,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,+ 101,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 114,+ 111,+ 108,+ 108,+ 111,+ 117,+ 116,+ 115,+ 47,+ 42,+ 125,+ ]),+ ],+ },+ },+ },+ listRolloutTaskRuns: {+ name: "ListRolloutTaskRuns",+ requestType: ListPlansRequest,+ requestStream: false,+ responseType: ListPlansResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],+ 578365826: [+ new Uint8Array([+ 34,+ 18,+ 32,+ 47,+ 118,+ 49,+ 47,+ 123,+ 112,+ 97,+ 114,+ 101,+ 110,+ 116,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 125,+ 47,+ 114,+ 111,+ 108,+ 108,+ 111,+ 117,+ 116,+ 115,+ ]),+ ],+ },+ },+ },+ listPlanCheckRuns: {+ name: "ListPlanCheckRuns",+ requestType: ListPlanCheckRunsRequest,+ requestStream: false,+ responseType: ListPlanCheckRunsResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],+ 578365826: [+ new Uint8Array([+ 47,+ 18,+ 45,+ 47,+ 118,+ 49,+ 47,+ 123,+ 112,+ 97,+ 114,+ 101,+ 110,+ 116,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 112,+ 108,+ 97,+ 110,+ 115,+ 47,+ 42,+ 125,+ 47,+ 112,+ 108,+ 97,+ 110,+ 67,+ 104,+ 101,+ 99,+ 107,+ 82,+ 117,+ 110,+ 115,+ ]),+ ],+ },+ },+ },},} as const;@@ -758,6 +4376,15 @@ export interface RolloutServiceImplementation<CallContextExt = {}> {listPlans(request: ListPlansRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListPlansResponse>>;createPlan(request: CreatePlanRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Plan>>;updatePlan(request: UpdatePlanRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Plan>>;+ getRollout(request: GetRolloutRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Rollout>>;+ listRolloutTaskRuns(+ request: ListPlansRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<ListPlansResponse>>;+ listPlanCheckRuns(+ request: ListPlanCheckRunsRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<ListPlanCheckRunsResponse>>;}export interface RolloutServiceClient<CallOptionsExt = {}> {@@ -765,8 +4392,36 @@ export interface RolloutServiceClient<CallOptionsExt = {}> {listPlans(request: DeepPartial<ListPlansRequest>, options?: CallOptions & CallOptionsExt): Promise<ListPlansResponse>;createPlan(request: DeepPartial<CreatePlanRequest>, options?: CallOptions & CallOptionsExt): Promise<Plan>;updatePlan(request: DeepPartial<UpdatePlanRequest>, options?: CallOptions & CallOptionsExt): Promise<Plan>;+ getRollout(request: DeepPartial<GetRolloutRequest>, options?: CallOptions & CallOptionsExt): Promise<Rollout>;+ listRolloutTaskRuns(+ request: DeepPartial<ListPlansRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<ListPlansResponse>;+ listPlanCheckRuns(+ request: DeepPartial<ListPlanCheckRunsRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<ListPlanCheckRunsResponse>;}+declare var self: any | undefined;+declare var window: any | undefined;+declare var global: any | undefined;+var tsProtoGlobalThis: any = (() => {+ if (typeof globalThis !== "undefined") {+ return globalThis;+ }+ if (typeof self !== "undefined") {+ return self;+ }+ if (typeof window !== "undefined") {+ return window;+ }+ if (typeof global !== "undefined") {+ return global;+ }+ throw "Unable to locate global object";+})();+type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;export type DeepPartial<T> = T extends Builtin ? T@@ -774,6 +4429,46 @@ export type DeepPartial<T> = T extends Builtin ? T: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }: Partial<T>;+function toTimestamp(date: Date): Timestamp {+ const seconds = 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 || 0) * 1_000;+ millis += (t.nanos || 0) / 1_000_000;+ return new Date(millis);+}++function fromJsonTimestamp(o: any): Date {+ if (o instanceof Date) {+ return o;+ } else if (typeof o === "string") {+ return new Date(o);+ } else {+ return fromTimestamp(Timestamp.fromJSON(o));+ }+}++function longToNumber(long: Long): number {+ if (long.gt(Number.MAX_SAFE_INTEGER)) {+ throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");+ }+ return long.toNumber();+}++// If you get a compile-error about 'Constructor<Long> and ... have no overlap',+// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.+if (_m0.util.Long !== Long) {+ _m0.util.Long = Long as any;+ _m0.configure();+}++function isObject(value: any): boolean {+ return typeof value === "object" && value !== null;+}+function isSet(value: any): boolean {return value !== null && value !== undefined;}diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 29333658f7..35fe5eb37c 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -339,11 +339,42 @@- [v1/rollout_service.proto](#v1_rollout_service-proto)- [CreatePlanRequest](#bytebase-v1-CreatePlanRequest)- [GetPlanRequest](#bytebase-v1-GetPlanRequest)+ - [GetRolloutRequest](#bytebase-v1-GetRolloutRequest)+ - [ListPlanCheckRunsRequest](#bytebase-v1-ListPlanCheckRunsRequest)+ - [ListPlanCheckRunsResponse](#bytebase-v1-ListPlanCheckRunsResponse)- [ListPlansRequest](#bytebase-v1-ListPlansRequest)- [ListPlansResponse](#bytebase-v1-ListPlansResponse)- [Plan](#bytebase-v1-Plan)+ - [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig)+ - [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig)+ - [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry)+ - [Plan.RestoreDatabaseConfig](#bytebase-v1-Plan-RestoreDatabaseConfig)+ - [Plan.Spec](#bytebase-v1-Plan-Spec)+ - [Plan.Step](#bytebase-v1-Plan-Step)+ - [PlanCheckRun](#bytebase-v1-PlanCheckRun)+ - [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result)+ - [Rollout](#bytebase-v1-Rollout)+ - [Stage](#bytebase-v1-Stage)+ - [Task](#bytebase-v1-Task)+ - [Task.DatabaseBackup](#bytebase-v1-Task-DatabaseBackup)+ - [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate)+ - [Task.DatabaseCreate.LabelsEntry](#bytebase-v1-Task-DatabaseCreate-LabelsEntry)+ - [Task.DatabaseDataUpdate](#bytebase-v1-Task-DatabaseDataUpdate)+ - [Task.DatabaseRestoreRestore](#bytebase-v1-Task-DatabaseRestoreRestore)+ - [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline)+ - [Task.DatabaseSchemaUpdate](#bytebase-v1-Task-DatabaseSchemaUpdate)+ - [TaskRun](#bytebase-v1-TaskRun)- [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest)+ - [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type)+ - [PlanCheckRun.Result.Namespace](#bytebase-v1-PlanCheckRun-Result-Namespace)+ - [PlanCheckRun.Result.Status](#bytebase-v1-PlanCheckRun-Result-Status)+ - [PlanCheckRun.Status](#bytebase-v1-PlanCheckRun-Status)+ - [PlanCheckRun.Type](#bytebase-v1-PlanCheckRun-Type)+ - [Task.DatabaseDataUpdate.RollbackSqlStatus](#bytebase-v1-Task-DatabaseDataUpdate-RollbackSqlStatus)+ - [Task.Type](#bytebase-v1-Task-Type)+ - [TaskRun.Status](#bytebase-v1-TaskRun-Status)+- [RolloutService](#bytebase-v1-RolloutService)- [v1/subscription_service.proto](#v1_subscription_service-proto)@@ -5276,6 +5307,56 @@ When paginating, all other parameters provided to `ListRoles` must match the cal+<a name="bytebase-v1-GetRolloutRequest"></a>++### GetRolloutRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the rollout to retrieve. Format: projects/{project}/rollouts/{rollout} |+++++++<a name="bytebase-v1-ListPlanCheckRunsRequest"></a>++### ListPlanCheckRunsRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent, which owns this collection of plan check runs. Format: projects/{project}/plans/{plan} |+| page_size | [int32](#int32) | | The maximum number of plan check runs to return. The service may return fewer than this value. If unspecified, at most 50 plans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListPlanCheckRuns` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListPlanCheckRuns` must match the call that provided the page token. |+++++++<a name="bytebase-v1-ListPlanCheckRunsResponse"></a>++### ListPlanCheckRunsResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| plan_check_runs | [PlanCheckRun](#bytebase-v1-PlanCheckRun) | repeated | The plan check runs from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |++++++<a name="bytebase-v1-ListPlansRequest"></a>### ListPlansRequest@@ -5321,8 +5402,379 @@ When paginating, all other parameters provided to `ListPlans` must match the cal| ----- | ---- | ----- | ----------- || name | [string](#string) | | The name of the plan. `plan` is a system generated ID. Format: projects/{project}/plans/{plan} || uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| review | [string](#string) | | The resource name of the review associated with this plan. Format: projects/{project}/reviews/{review} || title | [string](#string) | | || description | [string](#string) | | |+| steps | [Plan.Step](#bytebase-v1-Plan-Step) | repeated | |+++++++<a name="bytebase-v1-Plan-ChangeDatabaseConfig"></a>++### Plan.ChangeDatabaseConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| target | [string](#string) | | The resource name of the target. Format: projects/{project}/logicalDatabases/{ldb1}. Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}. Format: instances/{xxx}/databases/{db1}. |+| sheet | [string](#string) | | The resource name of the sheet. Format: sheets/{sheet} |+| type | [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type) | | |+| schema_version | [string](#string) | | schema_version is parsed from VCS file name. It is automatically generated in the UI workflow. |+| rollback_enabled | [bool](#bool) | | If RollbackEnabled, build the RollbackSheetID of the task. |+++++++<a name="bytebase-v1-Plan-CreateDatabaseConfig"></a>++### Plan.CreateDatabaseConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| target | [string](#string) | | The resource name of the instance on which the database is created. Format: instances/{instance} |+| database | [string](#string) | | The name of the database to create. |+| table | [string](#string) | | table is the name of the table, if it is not empty, Bytebase should create a table after creating the database. For example, in MongoDB, it only creates the database when we first store data in that database. |+| character_set | [string](#string) | | character_set is the character set of the database. |+| collation | [string](#string) | | collation is the collation of the database. |+| cluster | [string](#string) | | cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". |+| owner | [string](#string) | | owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". |+| backup | [string](#string) | | backup is the resource name of the backup. FIXME: backup v1 API is not ready yet, write the format here when it's ready. |+| labels | [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry) | repeated | labels of the database. |+++++++<a name="bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry"></a>++### Plan.CreateDatabaseConfig.LabelsEntry++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [string](#string) | | |+++++++<a name="bytebase-v1-Plan-RestoreDatabaseConfig"></a>++### Plan.RestoreDatabaseConfig++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| target | [string](#string) | | The resource name of the target to restore. Format: instances/{instance}/databases/{database} |+| create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | optional | create_database_config is present if the user wants to restore to a new database. |+| backup | [string](#string) | | FIXME: format TBD Restore from a backup. |+| point_in_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | After the PITR operations, the database will be recovered to the state at this time. |+++++++<a name="bytebase-v1-Plan-Spec"></a>++### Plan.Spec++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | earliest_allowed_time the earliest execution time of the change. |+| create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | | |+| change_database_config | [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig) | | |+| restore_database_config | [Plan.RestoreDatabaseConfig](#bytebase-v1-Plan-RestoreDatabaseConfig) | | |+++++++<a name="bytebase-v1-Plan-Step"></a>++### Plan.Step+FIXME(d/xz): support spec with deployment config+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| specs | [Plan.Spec](#bytebase-v1-Plan-Spec) | repeated | |+++++++<a name="bytebase-v1-PlanCheckRun"></a>++### PlanCheckRun++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| type | [PlanCheckRun.Type](#bytebase-v1-PlanCheckRun-Type) | | |+| status | [PlanCheckRun.Status](#bytebase-v1-PlanCheckRun-Status) | | |+| target | [string](#string) | | Format: instances/{instance}/databases/{database} |+| sheet | [string](#string) | | Format: sheets/{sheet} |+| detail | [string](#string) | | |+| results | [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result) | repeated | |+++++++<a name="bytebase-v1-PlanCheckRun-Result"></a>++### PlanCheckRun.Result++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| namespace | [PlanCheckRun.Result.Namespace](#bytebase-v1-PlanCheckRun-Result-Namespace) | | |+| code | [int64](#int64) | | |+| status | [PlanCheckRun.Result.Status](#bytebase-v1-PlanCheckRun-Result-Status) | | |+| title | [string](#string) | | |+| content | [string](#string) | | |+| line | [int64](#int64) | | |+| detail | [string](#string) | | |+++++++<a name="bytebase-v1-Rollout"></a>++### Rollout++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The resource name of the rollout. Format: projects/{project}/rollouts/{rollout} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| plan | [string](#string) | | The plan that this rollout is based on. Format: projects/{project}/plans/{plan} |+| title | [string](#string) | | |+| stages | [Stage](#bytebase-v1-Stage) | repeated | stages and thus tasks of the rollout. |+++++++<a name="bytebase-v1-Stage"></a>++### Stage++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| environment | [string](#string) | | Format: environments/{environment} |+| title | [string](#string) | | |+| tasks | [Task](#bytebase-v1-Task) | repeated | |+++++++<a name="bytebase-v1-Task"></a>++### Task++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| title | [string](#string) | | |+| type | [Task.Type](#bytebase-v1-Task-Type) | | |+| blocked_by_tasks | [string](#string) | repeated | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| target | [string](#string) | | Format: instances/{instance}/databases/{database} |+| database_case | [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate) | | |+| database_schema_baseline | [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline) | | |+| database_schema_update | [Task.DatabaseSchemaUpdate](#bytebase-v1-Task-DatabaseSchemaUpdate) | | |+| database_data_update | [Task.DatabaseDataUpdate](#bytebase-v1-Task-DatabaseDataUpdate) | | |+| database_restore_restore | [Task.DatabaseRestoreRestore](#bytebase-v1-Task-DatabaseRestoreRestore) | | |+++++++<a name="bytebase-v1-Task-DatabaseBackup"></a>++### Task.DatabaseBackup++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| backup | [string](#string) | | The resource name of the backup. FIXME: format TBD. |+++++++<a name="bytebase-v1-Task-DatabaseCreate"></a>++### Task.DatabaseCreate++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| project | [string](#string) | | The project owning the database. Format: projects/{project} |+| database | [string](#string) | | database name |+| table | [string](#string) | | table name |+| sheet | [string](#string) | | Format: sheets/{sheet} |+| character_set | [string](#string) | | |+| collection | [string](#string) | | |+| labels | [Task.DatabaseCreate.LabelsEntry](#bytebase-v1-Task-DatabaseCreate-LabelsEntry) | repeated | |+++++++<a name="bytebase-v1-Task-DatabaseCreate-LabelsEntry"></a>++### Task.DatabaseCreate.LabelsEntry++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [string](#string) | | |+++++++<a name="bytebase-v1-Task-DatabaseDataUpdate"></a>++### Task.DatabaseDataUpdate++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| sheet | [string](#string) | | Format: sheets/{sheet} |+| schema_version | [string](#string) | | |+| rollback_enabled | [bool](#bool) | | Build the rollback SQL if rollback_enabled. |+| rollback_sql_status | [Task.DatabaseDataUpdate.RollbackSqlStatus](#bytebase-v1-Task-DatabaseDataUpdate-RollbackSqlStatus) | | The status of the rollback SQL generation. |+| transaction_id | [string](#string) | | transaction_id is the ID of the transaction executing the migration. It is only use for Oracle to find Rollback SQL statement now. |+| thread_id | [string](#string) | | thread_id is the ID of the connection executing the migration. We use it to filter the binlog events of the migration transaction. |+| change_history | [string](#string) | | change_history is the resource name of the change history. We use it to get the schema when the transaction ran. Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| binlog_file_start | [string](#string) | | |+| binlog_file_end | [string](#string) | | |+| binlog_position_start | [int64](#int64) | | |+| binlog_position_end | [int64](#int64) | | |+| rollback_error | [string](#string) | | |+| rollback_sheet | [string](#string) | | rollback_sheet is the resource name of the sheet that stores the generated rollback SQL statement. Format: sheets/{sheet} |+| rollback_from_review | [string](#string) | | rollback_from_review is the resource name of the review that the rollback SQL statement is generated from. Format: projects/{project}/reviews/{review} |+| rollback_from_task | [string](#string) | | rollback_from_task is the resource name of the task that the rollback SQL statement is generated from. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+++++++<a name="bytebase-v1-Task-DatabaseRestoreRestore"></a>++### Task.DatabaseRestoreRestore++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| target | [string](#string) | | Target is only used when doing restore to a new database now. It is empty for the case of in-place restore. Target {instance} must be within the same environment as the instance of the original database. {database} is the target database name. Format: instances/{instance}/databases/database |+| backup | [string](#string) | | Only used when doing restore full backup only. |+| point_in_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | After the PITR operations, the database will be recovered to the state at this time. |+++++++<a name="bytebase-v1-Task-DatabaseSchemaBaseline"></a>++### Task.DatabaseSchemaBaseline++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| schema_version | [string](#string) | | |+++++++<a name="bytebase-v1-Task-DatabaseSchemaUpdate"></a>++### Task.DatabaseSchemaUpdate++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| sheet | [string](#string) | | Format: sheets/{sheet} |+| schema_version | [string](#string) | | |+++++++<a name="bytebase-v1-TaskRun"></a>++### TaskRun++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskrun} |+| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |+| creator | [string](#string) | | Format: user:[email protected] |+| updater | [string](#string) | | Format: user:[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| title | [string](#string) | | |+| status | [TaskRun.Status](#bytebase-v1-TaskRun-Status) | | |+| detail | [string](#string) | | Below are the results of a task run. |+| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| schema_version | [string](#string) | | |@@ -5348,6 +5800,139 @@ The plan's `name` field is used to identify the plan to update. Format: proj++<a name="bytebase-v1-Plan-ChangeDatabaseConfig-Type"></a>++### Plan.ChangeDatabaseConfig.Type+Type is the database change type.++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| BASELINE | 1 | Used for establishing schema baseline, this is used when 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema. 2. Had schema drift and need to re-establish the baseline. |+| MIGRATE | 2 | Used for DDL changes including CREATE DATABASE. |+| MIGRATE_SDL | 3 | Used for schema changes via state-based schema migration including CREATE DATABASE. |+| MIGRATE_GHOST | 4 | Used for DDL changes using gh-ost. |+| BRANCH | 5 | Used when restoring from a backup (the restored database branched from the original backup). |+| DATA | 6 | Used for DML change. |++++<a name="bytebase-v1-PlanCheckRun-Result-Namespace"></a>++### PlanCheckRun.Result.Namespace+++| Name | Number | Description |+| ---- | ------ | ----------- |+| NAMESPACE_UNSPECIFIED | 0 | |+| BYTEBASE | 1 | |+| ADVISOR | 2 | |++++<a name="bytebase-v1-PlanCheckRun-Result-Status"></a>++### PlanCheckRun.Result.Status+++| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| ERROR | 1 | |+| WARNING | 2 | |+| SUCCESS | 3 | |++++<a name="bytebase-v1-PlanCheckRun-Status"></a>++### PlanCheckRun.Status+++| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| RUNNING | 1 | |+| DONE | 2 | |+| FAILED | 3 | |+| CANCELED | 4 | |++++<a name="bytebase-v1-PlanCheckRun-Type"></a>++### PlanCheckRun.Type+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| DATABASE_STATEMENT_FAKE_ADVISE | 1 | |+| DATABASE_STATEMENT_SYNTAX | 2 | |+| DATABASE_STATEMENT_COMPATIBILITY | 3 | |+| DATABASE_STATEMENT_ADVISE | 4 | |+| DATABASE_STATEMENT_TYPE | 5 | |+| DATABASE_STATEMENT_TYPE_REPORT | 6 | |+| DATABASE_STATEMENT_AFFECTED_ROWS_REPORT | 7 | |+| DATABASE_CONNECT | 8 | |+| DATABASE_GHOST_SYNC | 9 | |+| DATABASE_PITR_MYSQL | 10 | |++++<a name="bytebase-v1-Task-DatabaseDataUpdate-RollbackSqlStatus"></a>++### Task.DatabaseDataUpdate.RollbackSqlStatus+++| Name | Number | Description |+| ---- | ------ | ----------- |+| ROLLBACK_SQL_STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| DONE | 2 | |+| FAILED | 3 | |++++<a name="bytebase-v1-Task-Type"></a>++### Task.Type+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| GENERAL | 1 | |+| DATABASE_CREATE | 2 | use payload DatabaseCreate |+| DATABASE_SCHEMA_BASELINE | 3 | use payload DatabaseSchemaBaseline |+| DATABASE_SCHEMA_UPDATE | 4 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_SDL | 5 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_GHOST_SYNC | 6 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER | 7 | use payload nil |+| DATABASE_DATA_UPDATE | 8 | use payload DatabaseDataUpdate |+| DATABASE_BACKUP | 9 | use payload DatabaseBackup |+| DATABASE_RESTORE_RESTORE | 10 | use payload DatabaseRestoreRestore |+| DATABASE_RESTORE_CUTOVER | 11 | use payload nil |++++<a name="bytebase-v1-TaskRun-Status"></a>++### TaskRun.Status+++| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| RUNNING | 2 | |+| COMPLETED | 3 | |+| FAILED | 4 | |+| CANCELED | 5 | |+| SKIPPED | 6 | |++@@ -5364,6 +5949,9 @@ The plan's `name` field is used to identify the plan to update. Format: proj| ListPlans | [ListPlansRequest](#bytebase-v1-ListPlansRequest) | [ListPlansResponse](#bytebase-v1-ListPlansResponse) | || CreatePlan | [CreatePlanRequest](#bytebase-v1-CreatePlanRequest) | [Plan](#bytebase-v1-Plan) | || UpdatePlan | [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest) | [Plan](#bytebase-v1-Plan) | |+| GetRollout | [GetRolloutRequest](#bytebase-v1-GetRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |+| ListRolloutTaskRuns | [ListPlansRequest](#bytebase-v1-ListPlansRequest) | [ListPlansResponse](#bytebase-v1-ListPlansResponse) | |+| ListPlanCheckRuns | [ListPlanCheckRunsRequest](#bytebase-v1-ListPlanCheckRunsRequest) | [ListPlanCheckRunsResponse](#bytebase-v1-ListPlanCheckRunsResponse) | |diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.goindex cd74425932..6e7150bbd2 100644--- a/proto/generated-go/v1/rollout_service.pb.go+++ b/proto/generated-go/v1/rollout_service.pb.go@@ -11,6 +11,7 @@ import (protoreflect "google.golang.org/protobuf/reflect/protoreflect"protoimpl "google.golang.org/protobuf/runtime/protoimpl"fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"+ timestamppb "google.golang.org/protobuf/types/known/timestamppb"reflect "reflect"sync "sync")@@ -22,6 +23,504 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))+// Type is the database change type.+type Plan_ChangeDatabaseConfig_Type int32++const (+ Plan_ChangeDatabaseConfig_TYPE_UNSPECIFIED Plan_ChangeDatabaseConfig_Type = 0+ // Used for establishing schema baseline, this is used when+ // 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.+ // 2. Had schema drift and need to re-establish the baseline.+ Plan_ChangeDatabaseConfig_BASELINE Plan_ChangeDatabaseConfig_Type = 1+ // Used for DDL changes including CREATE DATABASE.+ Plan_ChangeDatabaseConfig_MIGRATE Plan_ChangeDatabaseConfig_Type = 2+ // Used for schema changes via state-based schema migration including CREATE DATABASE.+ Plan_ChangeDatabaseConfig_MIGRATE_SDL Plan_ChangeDatabaseConfig_Type = 3+ // Used for DDL changes using gh-ost.+ Plan_ChangeDatabaseConfig_MIGRATE_GHOST Plan_ChangeDatabaseConfig_Type = 4+ // Used when restoring from a backup (the restored database branched from the original backup).+ Plan_ChangeDatabaseConfig_BRANCH Plan_ChangeDatabaseConfig_Type = 5+ // Used for DML change.+ Plan_ChangeDatabaseConfig_DATA Plan_ChangeDatabaseConfig_Type = 6+)++// Enum value maps for Plan_ChangeDatabaseConfig_Type.+var (+ Plan_ChangeDatabaseConfig_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "BASELINE",+ 2: "MIGRATE",+ 3: "MIGRATE_SDL",+ 4: "MIGRATE_GHOST",+ 5: "BRANCH",+ 6: "DATA",+ }+ Plan_ChangeDatabaseConfig_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "BASELINE": 1,+ "MIGRATE": 2,+ "MIGRATE_SDL": 3,+ "MIGRATE_GHOST": 4,+ "BRANCH": 5,+ "DATA": 6,+ }+)++func (x Plan_ChangeDatabaseConfig_Type) Enum() *Plan_ChangeDatabaseConfig_Type {+ p := new(Plan_ChangeDatabaseConfig_Type)+ *p = x+ return p+}++func (x Plan_ChangeDatabaseConfig_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (Plan_ChangeDatabaseConfig_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_rollout_service_proto_enumTypes[0].Descriptor()+}++func (Plan_ChangeDatabaseConfig_Type) Type() protoreflect.EnumType {+ return &file_v1_rollout_service_proto_enumTypes[0]+}++func (x Plan_ChangeDatabaseConfig_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use Plan_ChangeDatabaseConfig_Type.Descriptor instead.+func (Plan_ChangeDatabaseConfig_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 3, 0}+}++type PlanCheckRun_Type int32++const (+ PlanCheckRun_TYPE_UNSPECIFIED PlanCheckRun_Type = 0+ PlanCheckRun_DATABASE_STATEMENT_FAKE_ADVISE PlanCheckRun_Type = 1+ PlanCheckRun_DATABASE_STATEMENT_SYNTAX PlanCheckRun_Type = 2+ PlanCheckRun_DATABASE_STATEMENT_COMPATIBILITY PlanCheckRun_Type = 3+ PlanCheckRun_DATABASE_STATEMENT_ADVISE PlanCheckRun_Type = 4+ PlanCheckRun_DATABASE_STATEMENT_TYPE PlanCheckRun_Type = 5+ PlanCheckRun_DATABASE_STATEMENT_TYPE_REPORT PlanCheckRun_Type = 6+ PlanCheckRun_DATABASE_STATEMENT_AFFECTED_ROWS_REPORT PlanCheckRun_Type = 7+ PlanCheckRun_DATABASE_CONNECT PlanCheckRun_Type = 8+ PlanCheckRun_DATABASE_GHOST_SYNC PlanCheckRun_Type = 9+ PlanCheckRun_DATABASE_PITR_MYSQL PlanCheckRun_Type = 10+)++// Enum value maps for PlanCheckRun_Type.+var (+ PlanCheckRun_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "DATABASE_STATEMENT_FAKE_ADVISE",+ 2: "DATABASE_STATEMENT_SYNTAX",+ 3: "DATABASE_STATEMENT_COMPATIBILITY",+ 4: "DATABASE_STATEMENT_ADVISE",+ 5: "DATABASE_STATEMENT_TYPE",+ 6: "DATABASE_STATEMENT_TYPE_REPORT",+ 7: "DATABASE_STATEMENT_AFFECTED_ROWS_REPORT",+ 8: "DATABASE_CONNECT",+ 9: "DATABASE_GHOST_SYNC",+ 10: "DATABASE_PITR_MYSQL",+ }+ PlanCheckRun_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "DATABASE_STATEMENT_FAKE_ADVISE": 1,+ "DATABASE_STATEMENT_SYNTAX": 2,+ "DATABASE_STATEMENT_COMPATIBILITY": 3,+ "DATABASE_STATEMENT_ADVISE": 4,+ "DATABASE_STATEMENT_TYPE": 5,+ "DATABASE_STATEMENT_TYPE_REPORT": 6,+ "DATABASE_STATEMENT_AFFECTED_ROWS_REPORT": 7,+ "DATABASE_CONNECT": 8,+ "DATABASE_GHOST_SYNC": 9,+ "DATABASE_PITR_MYSQL": 10,+ }+)++func (x PlanCheckRun_Type) Enum() *PlanCheckRun_Type {+ p := new(PlanCheckRun_Type)+ *p = x+ return p+}++func (x PlanCheckRun_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (PlanCheckRun_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_rollout_service_proto_enumTypes[1].Descriptor()+}++func (PlanCheckRun_Type) Type() protoreflect.EnumType {+ return &file_v1_rollout_service_proto_enumTypes[1]+}++func (x PlanCheckRun_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use PlanCheckRun_Type.Descriptor instead.+func (PlanCheckRun_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{8, 0}+}++type PlanCheckRun_Status int32++const (+ PlanCheckRun_STATUS_UNSPECIFIED PlanCheckRun_Status = 0+ PlanCheckRun_RUNNING PlanCheckRun_Status = 1+ PlanCheckRun_DONE PlanCheckRun_Status = 2+ PlanCheckRun_FAILED PlanCheckRun_Status = 3+ PlanCheckRun_CANCELED PlanCheckRun_Status = 4+)++// Enum value maps for PlanCheckRun_Status.+var (+ PlanCheckRun_Status_name = map[int32]string{+ 0: "STATUS_UNSPECIFIED",+ 1: "RUNNING",+ 2: "DONE",+ 3: "FAILED",+ 4: "CANCELED",+ }+ PlanCheckRun_Status_value = map[string]int32{+ "STATUS_UNSPECIFIED": 0,+ "RUNNING": 1,+ "DONE": 2,+ "FAILED": 3,+ "CANCELED": 4,+ }+)++func (x PlanCheckRun_Status) Enum() *PlanCheckRun_Status {+ p := new(PlanCheckRun_Status)+ *p = x+ return p+}++func (x PlanCheckRun_Status) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (PlanCheckRun_Status) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_rollout_service_proto_enumTypes[2].Descriptor()+}++func (PlanCheckRun_Status) Type() protoreflect.EnumType {+ return &file_v1_rollout_service_proto_enumTypes[2]+}++func (x PlanCheckRun_Status) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use PlanCheckRun_Status.Descriptor instead.+func (PlanCheckRun_Status) EnumDescriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{8, 1}+}++type PlanCheckRun_Result_Namespace int32++const (+ PlanCheckRun_Result_NAMESPACE_UNSPECIFIED PlanCheckRun_Result_Namespace = 0+ PlanCheckRun_Result_BYTEBASE PlanCheckRun_Result_Namespace = 1+ PlanCheckRun_Result_ADVISOR PlanCheckRun_Result_Namespace = 2+)++// Enum value maps for PlanCheckRun_Result_Namespace.+var (+ PlanCheckRun_Result_Namespace_name = map[int32]string{+ 0: "NAMESPACE_UNSPECIFIED",+ 1: "BYTEBASE",+ 2: "ADVISOR",+ }+ PlanCheckRun_Result_Namespace_value = map[string]int32{+ "NAMESPACE_UNSPECIFIED": 0,+ "BYTEBASE": 1,+ "ADVISOR": 2,+ }+)++func (x PlanCheckRun_Result_Namespace) Enum() *PlanCheckRun_Result_Namespace {+ p := new(PlanCheckRun_Result_Namespace)+ *p = x+ return p+}++func (x PlanCheckRun_Result_Namespace) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (PlanCheckRun_Result_Namespace) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_rollout_service_proto_enumTypes[3].Descriptor()+}++func (PlanCheckRun_Result_Namespace) Type() protoreflect.EnumType {+ return &file_v1_rollout_service_proto_enumTypes[3]+}++func (x PlanCheckRun_Result_Namespace) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use PlanCheckRun_Result_Namespace.Descriptor instead.+func (PlanCheckRun_Result_Namespace) EnumDescriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{8, 0, 0}+}++type PlanCheckRun_Result_Status int32++const (+ PlanCheckRun_Result_STATUS_UNSPECIFIED PlanCheckRun_Result_Status = 0+ PlanCheckRun_Result_ERROR PlanCheckRun_Result_Status = 1+ PlanCheckRun_Result_WARNING PlanCheckRun_Result_Status = 2+ PlanCheckRun_Result_SUCCESS PlanCheckRun_Result_Status = 3+)++// Enum value maps for PlanCheckRun_Result_Status.+var (+ PlanCheckRun_Result_Status_name = map[int32]string{+ 0: "STATUS_UNSPECIFIED",+ 1: "ERROR",+ 2: "WARNING",+ 3: "SUCCESS",+ }+ PlanCheckRun_Result_Status_value = map[string]int32{+ "STATUS_UNSPECIFIED": 0,+ "ERROR": 1,+ "WARNING": 2,+ "SUCCESS": 3,+ }+)++func (x PlanCheckRun_Result_Status) Enum() *PlanCheckRun_Result_Status {+ p := new(PlanCheckRun_Result_Status)+ *p = x+ return p+}++func (x PlanCheckRun_Result_Status) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (PlanCheckRun_Result_Status) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_rollout_service_proto_enumTypes[4].Descriptor()+}++func (PlanCheckRun_Result_Status) Type() protoreflect.EnumType {+ return &file_v1_rollout_service_proto_enumTypes[4]+}++func (x PlanCheckRun_Result_Status) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use PlanCheckRun_Result_Status.Descriptor instead.+func (PlanCheckRun_Result_Status) EnumDescriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{8, 0, 1}+}++type Task_Type int32++const (+ Task_TYPE_UNSPECIFIED Task_Type = 0+ Task_GENERAL Task_Type = 1+ // use payload DatabaseCreate+ Task_DATABASE_CREATE Task_Type = 2+ // use payload DatabaseSchemaBaseline+ Task_DATABASE_SCHEMA_BASELINE Task_Type = 3+ // use payload DatabaseSchemaUpdate+ Task_DATABASE_SCHEMA_UPDATE Task_Type = 4+ // use payload DatabaseSchemaUpdate+ Task_DATABASE_SCHEMA_UPDATE_SDL Task_Type = 5+ // use payload DatabaseSchemaUpdate+ Task_DATABASE_SCHEMA_UPDATE_GHOST_SYNC Task_Type = 6+ // use payload nil+ Task_DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER Task_Type = 7+ // use payload DatabaseDataUpdate+ Task_DATABASE_DATA_UPDATE Task_Type = 8+ // use payload DatabaseBackup+ Task_DATABASE_BACKUP Task_Type = 9+ // use payload DatabaseRestoreRestore+ Task_DATABASE_RESTORE_RESTORE Task_Type = 10+ // use payload nil+ Task_DATABASE_RESTORE_CUTOVER Task_Type = 11+)++// Enum value maps for Task_Type.+var (+ Task_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "GENERAL",+ 2: "DATABASE_CREATE",+ 3: "DATABASE_SCHEMA_BASELINE",+ 4: "DATABASE_SCHEMA_UPDATE",+ 5: "DATABASE_SCHEMA_UPDATE_SDL",+ 6: "DATABASE_SCHEMA_UPDATE_GHOST_SYNC",+ 7: "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER",+ 8: "DATABASE_DATA_UPDATE",+ 9: "DATABASE_BACKUP",+ 10: "DATABASE_RESTORE_RESTORE",+ 11: "DATABASE_RESTORE_CUTOVER",+ }+ Task_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "GENERAL": 1,+ "DATABASE_CREATE": 2,+ "DATABASE_SCHEMA_BASELINE": 3,+ "DATABASE_SCHEMA_UPDATE": 4,+ "DATABASE_SCHEMA_UPDATE_SDL": 5,+ "DATABASE_SCHEMA_UPDATE_GHOST_SYNC": 6,+ "DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER": 7,+ "DATABASE_DATA_UPDATE": 8,+ "DATABASE_BACKUP": 9,+ "DATABASE_RESTORE_RESTORE": 10,+ "DATABASE_RESTORE_CUTOVER": 11,+ }+)++func (x Task_Type) Enum() *Task_Type {+ p := new(Task_Type)+ *p = x+ return p+}++func (x Task_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (Task_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_rollout_service_proto_enumTypes[5].Descriptor()+}++func (Task_Type) Type() protoreflect.EnumType {+ return &file_v1_rollout_service_proto_enumTypes[5]+}++func (x Task_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use Task_Type.Descriptor instead.+func (Task_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12, 0}+}++type Task_DatabaseDataUpdate_RollbackSqlStatus int32++const (+ Task_DatabaseDataUpdate_ROLLBACK_SQL_STATUS_UNSPECIFIED Task_DatabaseDataUpdate_RollbackSqlStatus = 0+ Task_DatabaseDataUpdate_PENDING Task_DatabaseDataUpdate_RollbackSqlStatus = 1+ Task_DatabaseDataUpdate_DONE Task_DatabaseDataUpdate_RollbackSqlStatus = 2+ Task_DatabaseDataUpdate_FAILED Task_DatabaseDataUpdate_RollbackSqlStatus = 3+)++// Enum value maps for Task_DatabaseDataUpdate_RollbackSqlStatus.+var (+ Task_DatabaseDataUpdate_RollbackSqlStatus_name = map[int32]string{+ 0: "ROLLBACK_SQL_STATUS_UNSPECIFIED",+ 1: "PENDING",+ 2: "DONE",+ 3: "FAILED",+ }+ Task_DatabaseDataUpdate_RollbackSqlStatus_value = map[string]int32{+ "ROLLBACK_SQL_STATUS_UNSPECIFIED": 0,+ "PENDING": 1,+ "DONE": 2,+ "FAILED": 3,+ }+)++func (x Task_DatabaseDataUpdate_RollbackSqlStatus) Enum() *Task_DatabaseDataUpdate_RollbackSqlStatus {+ p := new(Task_DatabaseDataUpdate_RollbackSqlStatus)+ *p = x+ return p+}++func (x Task_DatabaseDataUpdate_RollbackSqlStatus) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (Task_DatabaseDataUpdate_RollbackSqlStatus) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_rollout_service_proto_enumTypes[6].Descriptor()+}++func (Task_DatabaseDataUpdate_RollbackSqlStatus) Type() protoreflect.EnumType {+ return &file_v1_rollout_service_proto_enumTypes[6]+}++func (x Task_DatabaseDataUpdate_RollbackSqlStatus) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use Task_DatabaseDataUpdate_RollbackSqlStatus.Descriptor instead.+func (Task_DatabaseDataUpdate_RollbackSqlStatus) EnumDescriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12, 3, 0}+}++type TaskRun_Status int32++const (+ TaskRun_STATUS_UNSPECIFIED TaskRun_Status = 0+ TaskRun_PENDING TaskRun_Status = 1+ TaskRun_RUNNING TaskRun_Status = 2+ TaskRun_COMPLETED TaskRun_Status = 3+ TaskRun_FAILED TaskRun_Status = 4+ TaskRun_CANCELED TaskRun_Status = 5+ TaskRun_SKIPPED TaskRun_Status = 6+)++// Enum value maps for TaskRun_Status.+var (+ TaskRun_Status_name = map[int32]string{+ 0: "STATUS_UNSPECIFIED",+ 1: "PENDING",+ 2: "RUNNING",+ 3: "COMPLETED",+ 4: "FAILED",+ 5: "CANCELED",+ 6: "SKIPPED",+ }+ TaskRun_Status_value = map[string]int32{+ "STATUS_UNSPECIFIED": 0,+ "PENDING": 1,+ "RUNNING": 2,+ "COMPLETED": 3,+ "FAILED": 4,+ "CANCELED": 5,+ "SKIPPED": 6,+ }+)++func (x TaskRun_Status) Enum() *TaskRun_Status {+ p := new(TaskRun_Status)+ *p = x+ return p+}++func (x TaskRun_Status) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (TaskRun_Status) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_rollout_service_proto_enumTypes[7].Descriptor()+}++func (TaskRun_Status) Type() protoreflect.EnumType {+ return &file_v1_rollout_service_proto_enumTypes[7]+}++func (x TaskRun_Status) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use TaskRun_Status.Descriptor instead.+func (TaskRun_Status) EnumDescriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{13, 0}+}+type GetPlanRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -332,9 +831,13 @@ type Plan struct {// Format: projects/{project}/plans/{plan}Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`// The system-assigned, unique identifier for a resource.- Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`- Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`- Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ // The resource name of the review associated with this plan.+ // Format: projects/{project}/reviews/{review}+ Review string `protobuf:"bytes,3,opt,name=review,proto3" json:"review,omitempty"`+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`+ Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`+ Steps []*Plan_Step `protobuf:"bytes,6,rep,name=steps,proto3" json:"steps,omitempty"`}func (x *Plan) Reset() {@@ -383,6 +886,13 @@ func (x *Plan) GetUid() string {return ""}+func (x *Plan) GetReview() string {+ if x != nil {+ return x.Review+ }+ return ""+}+func (x *Plan) GetTitle() string {if x != nil {return x.Title@@ -397,149 +907,2494 @@ func (x *Plan) GetDescription() string {return ""}-var File_v1_rollout_service_proto protoreflect.FileDescriptor+func (x *Plan) GetSteps() []*Plan_Step {+ if x != nil {+ return x.Steps+ }+ return nil+}-var file_v1_rollout_service_proto_rawDesc = []byte{- 0x0a, 0x18, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x72,- 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,- 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,- 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,- 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,- 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,- 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x22, 0x29, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6b, 0x0a, 0x10,- 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a,- 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,- 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61,- 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,- 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x11, 0x4c, 0x69, 0x73,- 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27,- 0x0a, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e,- 0x52, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f,- 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22,- 0x5c, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,- 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c,- 0x61, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x81, 0x01,- 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x50, 0x6c, 0x61, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12,- 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,- 0x6b, 0x22, 0x69, 0x0a, 0x04, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a,- 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,- 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,- 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xed, 0x03, 0x0a,- 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,- 0x67, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1b, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x2c, 0xda, 0x41, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74,- 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70,- 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x6f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c,- 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x2e, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25,- 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,- 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,- 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x43, 0xda, 0x41, 0x10, 0x70, 0x6c, 0x61, 0x6e,- 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x2a, 0x3a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x32, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,- 0x6c, 0x61, 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f,- 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+type ListPlanCheckRunsRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The parent, which owns this collection of plan check runs.+ // Format: projects/{project}/plans/{plan}+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`+ // The maximum number of plan check runs to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 plans will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`+ // A page token, received from a previous `ListPlanCheckRuns` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListPlanCheckRuns` must match+ // the call that provided the page token.+ PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`}-var (- file_v1_rollout_service_proto_rawDescOnce sync.Once- file_v1_rollout_service_proto_rawDescData = file_v1_rollout_service_proto_rawDesc-)+func (x *ListPlanCheckRunsRequest) Reset() {+ *x = ListPlanCheckRunsRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[6]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}-func file_v1_rollout_service_proto_rawDescGZIP() []byte {- file_v1_rollout_service_proto_rawDescOnce.Do(func() {- file_v1_rollout_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_rollout_service_proto_rawDescData)- })- return file_v1_rollout_service_proto_rawDescData+func (x *ListPlanCheckRunsRequest) String() string {+ return protoimpl.X.MessageStringOf(x)}-var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)-var file_v1_rollout_service_proto_goTypes = []interface{}{- (*GetPlanRequest)(nil), // 0: bytebase.v1.GetPlanRequest- (*ListPlansRequest)(nil), // 1: bytebase.v1.ListPlansRequest- (*ListPlansResponse)(nil), // 2: bytebase.v1.ListPlansResponse- (*CreatePlanRequest)(nil), // 3: bytebase.v1.CreatePlanRequest- (*UpdatePlanRequest)(nil), // 4: bytebase.v1.UpdatePlanRequest- (*Plan)(nil), // 5: bytebase.v1.Plan- (*fieldmaskpb.FieldMask)(nil), // 6: google.protobuf.FieldMask+func (*ListPlanCheckRunsRequest) ProtoMessage() {}++func (x *ListPlanCheckRunsRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[6]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)}-var file_v1_rollout_service_proto_depIdxs = []int32{- 5, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan- 5, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan- 5, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan- 6, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask- 0, // 4: bytebase.v1.RolloutService.GetPlan:input_type -> bytebase.v1.GetPlanRequest- 1, // 5: bytebase.v1.RolloutService.ListPlans:input_type -> bytebase.v1.ListPlansRequest- 3, // 6: bytebase.v1.RolloutService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest- 4, // 7: bytebase.v1.RolloutService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest- 5, // 8: bytebase.v1.RolloutService.GetPlan:output_type -> bytebase.v1.Plan- 2, // 9: bytebase.v1.RolloutService.ListPlans:output_type -> bytebase.v1.ListPlansResponse- 5, // 10: bytebase.v1.RolloutService.CreatePlan:output_type -> bytebase.v1.Plan- 5, // 11: bytebase.v1.RolloutService.UpdatePlan:output_type -> bytebase.v1.Plan- 8, // [8:12] is the sub-list for method output_type- 4, // [4:8] is the sub-list for method input_type- 4, // [4:4] is the sub-list for extension type_name- 4, // [4:4] is the sub-list for extension extendee- 0, // [0:4] is the sub-list for field type_name++// Deprecated: Use ListPlanCheckRunsRequest.ProtoReflect.Descriptor instead.+func (*ListPlanCheckRunsRequest) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{6}}-func init() { file_v1_rollout_service_proto_init() }-func file_v1_rollout_service_proto_init() {- if File_v1_rollout_service_proto != nil {- return+func (x *ListPlanCheckRunsRequest) GetParent() string {+ if x != nil {+ return x.Parent}- if !protoimpl.UnsafeEnabled {- file_v1_rollout_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GetPlanRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil+ return ""+}++func (x *ListPlanCheckRunsRequest) GetPageSize() int32 {+ if x != nil {+ return x.PageSize+ }+ return 0+}++func (x *ListPlanCheckRunsRequest) GetPageToken() string {+ if x != nil {+ return x.PageToken+ }+ return ""+}++type ListPlanCheckRunsResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The plan check runs from the specified request.+ PlanCheckRuns []*PlanCheckRun `protobuf:"bytes,1,rep,name=plan_check_runs,json=planCheckRuns,proto3" json:"plan_check_runs,omitempty"`+ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+}++func (x *ListPlanCheckRunsResponse) Reset() {+ *x = ListPlanCheckRunsResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[7]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListPlanCheckRunsResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListPlanCheckRunsResponse) ProtoMessage() {}++func (x *ListPlanCheckRunsResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[7]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ListPlanCheckRunsResponse.ProtoReflect.Descriptor instead.+func (*ListPlanCheckRunsResponse) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{7}+}++func (x *ListPlanCheckRunsResponse) GetPlanCheckRuns() []*PlanCheckRun {+ if x != nil {+ return x.PlanCheckRuns+ }+ return nil+}++func (x *ListPlanCheckRunsResponse) GetNextPageToken() string {+ if x != nil {+ return x.NextPageToken+ }+ return ""+}++type PlanCheckRun struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ Type PlanCheckRun_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.PlanCheckRun_Type" json:"type,omitempty"`+ Status PlanCheckRun_Status `protobuf:"varint,4,opt,name=status,proto3,enum=bytebase.v1.PlanCheckRun_Status" json:"status,omitempty"`+ // Format: instances/{instance}/databases/{database}+ Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`+ // Format: sheets/{sheet}+ Sheet string `protobuf:"bytes,6,opt,name=sheet,proto3" json:"sheet,omitempty"`+ Detail string `protobuf:"bytes,7,opt,name=detail,proto3" json:"detail,omitempty"`+ Results []*PlanCheckRun_Result `protobuf:"bytes,8,rep,name=results,proto3" json:"results,omitempty"`+}++func (x *PlanCheckRun) Reset() {+ *x = PlanCheckRun{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[8]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PlanCheckRun) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PlanCheckRun) ProtoMessage() {}++func (x *PlanCheckRun) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[8]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use PlanCheckRun.ProtoReflect.Descriptor instead.+func (*PlanCheckRun) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{8}+}++func (x *PlanCheckRun) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *PlanCheckRun) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *PlanCheckRun) GetType() PlanCheckRun_Type {+ if x != nil {+ return x.Type+ }+ return PlanCheckRun_TYPE_UNSPECIFIED+}++func (x *PlanCheckRun) GetStatus() PlanCheckRun_Status {+ if x != nil {+ return x.Status+ }+ return PlanCheckRun_STATUS_UNSPECIFIED+}++func (x *PlanCheckRun) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (x *PlanCheckRun) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *PlanCheckRun) GetDetail() string {+ if x != nil {+ return x.Detail+ }+ return ""+}++func (x *PlanCheckRun) GetResults() []*PlanCheckRun_Result {+ if x != nil {+ return x.Results+ }+ return nil+}++type GetRolloutRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name of the rollout to retrieve.+ // Format: projects/{project}/rollouts/{rollout}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *GetRolloutRequest) Reset() {+ *x = GetRolloutRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[9]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *GetRolloutRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*GetRolloutRequest) ProtoMessage() {}++func (x *GetRolloutRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[9]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use GetRolloutRequest.ProtoReflect.Descriptor instead.+func (*GetRolloutRequest) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{9}+}++func (x *GetRolloutRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type Rollout struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The resource name of the rollout.+ // Format: projects/{project}/rollouts/{rollout}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ // The plan that this rollout is based on.+ // Format: projects/{project}/plans/{plan}+ Plan string `protobuf:"bytes,3,opt,name=plan,proto3" json:"plan,omitempty"`+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`+ // stages and thus tasks of the rollout.+ Stages []*Stage `protobuf:"bytes,5,rep,name=stages,proto3" json:"stages,omitempty"`+}++func (x *Rollout) Reset() {+ *x = Rollout{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[10]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Rollout) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Rollout) ProtoMessage() {}++func (x *Rollout) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[10]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Rollout.ProtoReflect.Descriptor instead.+func (*Rollout) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{10}+}++func (x *Rollout) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *Rollout) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *Rollout) GetPlan() string {+ if x != nil {+ return x.Plan+ }+ return ""+}++func (x *Rollout) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Rollout) GetStages() []*Stage {+ if x != nil {+ return x.Stages+ }+ return nil+}++type Stage struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ // Format: environments/{environment}+ Environment string `protobuf:"bytes,3,opt,name=environment,proto3" json:"environment,omitempty"`+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`+ Tasks []*Task `protobuf:"bytes,5,rep,name=tasks,proto3" json:"tasks,omitempty"`+}++func (x *Stage) Reset() {+ *x = Stage{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[11]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Stage) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Stage) ProtoMessage() {}++func (x *Stage) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[11]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Stage.ProtoReflect.Descriptor instead.+func (*Stage) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{11}+}++func (x *Stage) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *Stage) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *Stage) GetEnvironment() string {+ if x != nil {+ return x.Environment+ }+ return ""+}++func (x *Stage) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Stage) GetTasks() []*Task {+ if x != nil {+ return x.Tasks+ }+ return nil+}++type Task struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`+ Type Task_Type `protobuf:"varint,4,opt,name=type,proto3,enum=bytebase.v1.Task_Type" json:"type,omitempty"`+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ BlockedByTasks []string `protobuf:"bytes,5,rep,name=blocked_by_tasks,json=blockedByTasks,proto3" json:"blocked_by_tasks,omitempty"`+ // Format: instances/{instance}/databases/{database}+ Target string `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"`+ // Types that are assignable to Payload:+ //+ // *Task_DatabaseCase+ // *Task_DatabaseSchemaBaseline_+ // *Task_DatabaseSchemaUpdate_+ // *Task_DatabaseDataUpdate_+ // *Task_DatabaseRestoreRestore_+ Payload isTask_Payload `protobuf_oneof:"payload"`+}++func (x *Task) Reset() {+ *x = Task{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[12]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Task) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Task) ProtoMessage() {}++func (x *Task) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[12]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Task.ProtoReflect.Descriptor instead.+func (*Task) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12}+}++func (x *Task) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *Task) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *Task) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *Task) GetType() Task_Type {+ if x != nil {+ return x.Type+ }+ return Task_TYPE_UNSPECIFIED+}++func (x *Task) GetBlockedByTasks() []string {+ if x != nil {+ return x.BlockedByTasks+ }+ return nil+}++func (x *Task) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (m *Task) GetPayload() isTask_Payload {+ if m != nil {+ return m.Payload+ }+ return nil+}++func (x *Task) GetDatabaseCase() *Task_DatabaseCreate {+ if x, ok := x.GetPayload().(*Task_DatabaseCase); ok {+ return x.DatabaseCase+ }+ return nil+}++func (x *Task) GetDatabaseSchemaBaseline() *Task_DatabaseSchemaBaseline {+ if x, ok := x.GetPayload().(*Task_DatabaseSchemaBaseline_); ok {+ return x.DatabaseSchemaBaseline+ }+ return nil+}++func (x *Task) GetDatabaseSchemaUpdate() *Task_DatabaseSchemaUpdate {+ if x, ok := x.GetPayload().(*Task_DatabaseSchemaUpdate_); ok {+ return x.DatabaseSchemaUpdate+ }+ return nil+}++func (x *Task) GetDatabaseDataUpdate() *Task_DatabaseDataUpdate {+ if x, ok := x.GetPayload().(*Task_DatabaseDataUpdate_); ok {+ return x.DatabaseDataUpdate+ }+ return nil+}++func (x *Task) GetDatabaseRestoreRestore() *Task_DatabaseRestoreRestore {+ if x, ok := x.GetPayload().(*Task_DatabaseRestoreRestore_); ok {+ return x.DatabaseRestoreRestore+ }+ return nil+}++type isTask_Payload interface {+ isTask_Payload()+}++type Task_DatabaseCase struct {+ DatabaseCase *Task_DatabaseCreate `protobuf:"bytes,7,opt,name=database_case,json=databaseCase,proto3,oneof"`+}++type Task_DatabaseSchemaBaseline_ struct {+ DatabaseSchemaBaseline *Task_DatabaseSchemaBaseline `protobuf:"bytes,8,opt,name=database_schema_baseline,json=databaseSchemaBaseline,proto3,oneof"`+}++type Task_DatabaseSchemaUpdate_ struct {+ DatabaseSchemaUpdate *Task_DatabaseSchemaUpdate `protobuf:"bytes,9,opt,name=database_schema_update,json=databaseSchemaUpdate,proto3,oneof"`+}++type Task_DatabaseDataUpdate_ struct {+ DatabaseDataUpdate *Task_DatabaseDataUpdate `protobuf:"bytes,10,opt,name=database_data_update,json=databaseDataUpdate,proto3,oneof"`+}++type Task_DatabaseRestoreRestore_ struct {+ DatabaseRestoreRestore *Task_DatabaseRestoreRestore `protobuf:"bytes,11,opt,name=database_restore_restore,json=databaseRestoreRestore,proto3,oneof"`+}++func (*Task_DatabaseCase) isTask_Payload() {}++func (*Task_DatabaseSchemaBaseline_) isTask_Payload() {}++func (*Task_DatabaseSchemaUpdate_) isTask_Payload() {}++func (*Task_DatabaseDataUpdate_) isTask_Payload() {}++func (*Task_DatabaseRestoreRestore_) isTask_Payload() {}++type TaskRun struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskrun}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The system-assigned, unique identifier for a resource.+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`+ // Format: user:[email protected]+ Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`+ // Format: user:[email protected]+ Updater string `protobuf:"bytes,4,opt,name=updater,proto3" json:"updater,omitempty"`+ CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`+ Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`+ Status TaskRun_Status `protobuf:"varint,8,opt,name=status,proto3,enum=bytebase.v1.TaskRun_Status" json:"status,omitempty"`+ // Below are the results of a task run.+ Detail string `protobuf:"bytes,9,opt,name=detail,proto3" json:"detail,omitempty"`+ // The resource name of the change history+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ ChangeHistory string `protobuf:"bytes,10,opt,name=change_history,json=changeHistory,proto3" json:"change_history,omitempty"`+ SchemaVersion string `protobuf:"bytes,11,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+}++func (x *TaskRun) Reset() {+ *x = TaskRun{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[13]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *TaskRun) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*TaskRun) ProtoMessage() {}++func (x *TaskRun) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[13]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use TaskRun.ProtoReflect.Descriptor instead.+func (*TaskRun) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{13}+}++func (x *TaskRun) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *TaskRun) GetUid() string {+ if x != nil {+ return x.Uid+ }+ return ""+}++func (x *TaskRun) GetCreator() string {+ if x != nil {+ return x.Creator+ }+ return ""+}++func (x *TaskRun) GetUpdater() string {+ if x != nil {+ return x.Updater+ }+ return ""+}++func (x *TaskRun) GetCreateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.CreateTime+ }+ return nil+}++func (x *TaskRun) GetUpdateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.UpdateTime+ }+ return nil+}++func (x *TaskRun) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *TaskRun) GetStatus() TaskRun_Status {+ if x != nil {+ return x.Status+ }+ return TaskRun_STATUS_UNSPECIFIED+}++func (x *TaskRun) GetDetail() string {+ if x != nil {+ return x.Detail+ }+ return ""+}++func (x *TaskRun) GetChangeHistory() string {+ if x != nil {+ return x.ChangeHistory+ }+ return ""+}++func (x *TaskRun) GetSchemaVersion() string {+ if x != nil {+ return x.SchemaVersion+ }+ return ""+}++// FIXME(d/xz): support spec with deployment config+type Plan_Step struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Specs []*Plan_Spec `protobuf:"bytes,1,rep,name=specs,proto3" json:"specs,omitempty"`+}++func (x *Plan_Step) Reset() {+ *x = Plan_Step{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[14]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_Step) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_Step) ProtoMessage() {}++func (x *Plan_Step) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[14]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Plan_Step.ProtoReflect.Descriptor instead.+func (*Plan_Step) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 0}+}++func (x *Plan_Step) GetSpecs() []*Plan_Spec {+ if x != nil {+ return x.Specs+ }+ return nil+}++type Plan_Spec struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // earliest_allowed_time the earliest execution time of the change.+ EarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=earliest_allowed_time,json=earliestAllowedTime,proto3" json:"earliest_allowed_time,omitempty"`+ // Types that are assignable to Config:+ //+ // *Plan_Spec_CreateDatabaseConfig+ // *Plan_Spec_ChangeDatabaseConfig+ // *Plan_Spec_RestoreDatabaseConfig+ Config isPlan_Spec_Config `protobuf_oneof:"config"`+}++func (x *Plan_Spec) Reset() {+ *x = Plan_Spec{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[15]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_Spec) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_Spec) ProtoMessage() {}++func (x *Plan_Spec) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[15]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Plan_Spec.ProtoReflect.Descriptor instead.+func (*Plan_Spec) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 1}+}++func (x *Plan_Spec) GetEarliestAllowedTime() *timestamppb.Timestamp {+ if x != nil {+ return x.EarliestAllowedTime+ }+ return nil+}++func (m *Plan_Spec) GetConfig() isPlan_Spec_Config {+ if m != nil {+ return m.Config+ }+ return nil+}++func (x *Plan_Spec) GetCreateDatabaseConfig() *Plan_CreateDatabaseConfig {+ if x, ok := x.GetConfig().(*Plan_Spec_CreateDatabaseConfig); ok {+ return x.CreateDatabaseConfig+ }+ return nil+}++func (x *Plan_Spec) GetChangeDatabaseConfig() *Plan_ChangeDatabaseConfig {+ if x, ok := x.GetConfig().(*Plan_Spec_ChangeDatabaseConfig); ok {+ return x.ChangeDatabaseConfig+ }+ return nil+}++func (x *Plan_Spec) GetRestoreDatabaseConfig() *Plan_RestoreDatabaseConfig {+ if x, ok := x.GetConfig().(*Plan_Spec_RestoreDatabaseConfig); ok {+ return x.RestoreDatabaseConfig+ }+ return nil+}++type isPlan_Spec_Config interface {+ isPlan_Spec_Config()+}++type Plan_Spec_CreateDatabaseConfig struct {+ CreateDatabaseConfig *Plan_CreateDatabaseConfig `protobuf:"bytes,1,opt,name=create_database_config,json=createDatabaseConfig,proto3,oneof"`+}++type Plan_Spec_ChangeDatabaseConfig struct {+ ChangeDatabaseConfig *Plan_ChangeDatabaseConfig `protobuf:"bytes,2,opt,name=change_database_config,json=changeDatabaseConfig,proto3,oneof"`+}++type Plan_Spec_RestoreDatabaseConfig struct {+ RestoreDatabaseConfig *Plan_RestoreDatabaseConfig `protobuf:"bytes,3,opt,name=restore_database_config,json=restoreDatabaseConfig,proto3,oneof"`+}++func (*Plan_Spec_CreateDatabaseConfig) isPlan_Spec_Config() {}++func (*Plan_Spec_ChangeDatabaseConfig) isPlan_Spec_Config() {}++func (*Plan_Spec_RestoreDatabaseConfig) isPlan_Spec_Config() {}++type Plan_CreateDatabaseConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The resource name of the instance on which the database is created.+ // Format: instances/{instance}+ Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`+ // The name of the database to create.+ Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`+ // table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+ // For example, in MongoDB, it only creates the database when we first store data in that database.+ Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`+ // character_set is the character set of the database.+ CharacterSet string `protobuf:"bytes,4,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`+ // collation is the collation of the database.+ Collation string `protobuf:"bytes,5,opt,name=collation,proto3" json:"collation,omitempty"`+ // cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".+ Cluster string `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`+ // owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".+ Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`+ // backup is the resource name of the backup.+ // FIXME: backup v1 API is not ready yet, write the format here when it's ready.+ Backup string `protobuf:"bytes,8,opt,name=backup,proto3" json:"backup,omitempty"`+ // labels of the database.+ Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`+}++func (x *Plan_CreateDatabaseConfig) Reset() {+ *x = Plan_CreateDatabaseConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[16]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_CreateDatabaseConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_CreateDatabaseConfig) ProtoMessage() {}++func (x *Plan_CreateDatabaseConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[16]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Plan_CreateDatabaseConfig.ProtoReflect.Descriptor instead.+func (*Plan_CreateDatabaseConfig) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 2}+}++func (x *Plan_CreateDatabaseConfig) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetDatabase() string {+ if x != nil {+ return x.Database+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetTable() string {+ if x != nil {+ return x.Table+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetCharacterSet() string {+ if x != nil {+ return x.CharacterSet+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetCollation() string {+ if x != nil {+ return x.Collation+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetCluster() string {+ if x != nil {+ return x.Cluster+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetOwner() string {+ if x != nil {+ return x.Owner+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetBackup() string {+ if x != nil {+ return x.Backup+ }+ return ""+}++func (x *Plan_CreateDatabaseConfig) GetLabels() map[string]string {+ if x != nil {+ return x.Labels+ }+ return nil+}++type Plan_ChangeDatabaseConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The resource name of the target.+ // Format: projects/{project}/logicalDatabases/{ldb1}.+ // Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.+ // Format: instances/{xxx}/databases/{db1}.+ Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`+ // The resource name of the sheet.+ // Format: sheets/{sheet}+ Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`+ Type Plan_ChangeDatabaseConfig_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.Plan_ChangeDatabaseConfig_Type" json:"type,omitempty"`+ // schema_version is parsed from VCS file name.+ // It is automatically generated in the UI workflow.+ SchemaVersion string `protobuf:"bytes,4,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+ // If RollbackEnabled, build the RollbackSheetID of the task.+ RollbackEnabled bool `protobuf:"varint,5,opt,name=rollback_enabled,json=rollbackEnabled,proto3" json:"rollback_enabled,omitempty"`+}++func (x *Plan_ChangeDatabaseConfig) Reset() {+ *x = Plan_ChangeDatabaseConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[17]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_ChangeDatabaseConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_ChangeDatabaseConfig) ProtoMessage() {}++func (x *Plan_ChangeDatabaseConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[17]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Plan_ChangeDatabaseConfig.ProtoReflect.Descriptor instead.+func (*Plan_ChangeDatabaseConfig) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 3}+}++func (x *Plan_ChangeDatabaseConfig) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (x *Plan_ChangeDatabaseConfig) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *Plan_ChangeDatabaseConfig) GetType() Plan_ChangeDatabaseConfig_Type {+ if x != nil {+ return x.Type+ }+ return Plan_ChangeDatabaseConfig_TYPE_UNSPECIFIED+}++func (x *Plan_ChangeDatabaseConfig) GetSchemaVersion() string {+ if x != nil {+ return x.SchemaVersion+ }+ return ""+}++func (x *Plan_ChangeDatabaseConfig) GetRollbackEnabled() bool {+ if x != nil {+ return x.RollbackEnabled+ }+ return false+}++type Plan_RestoreDatabaseConfig struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The resource name of the target to restore.+ // Format: instances/{instance}/databases/{database}+ Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`+ // create_database_config is present if the user wants to restore to a new database.+ CreateDatabaseConfig *Plan_CreateDatabaseConfig `protobuf:"bytes,2,opt,name=create_database_config,json=createDatabaseConfig,proto3,oneof" json:"create_database_config,omitempty"`+ // source determines how to restore the database.+ // 1. from a backup+ // 2. from a point in time+ //+ // Types that are assignable to Source:+ //+ // *Plan_RestoreDatabaseConfig_Backup+ // *Plan_RestoreDatabaseConfig_PointInTime+ Source isPlan_RestoreDatabaseConfig_Source `protobuf_oneof:"source"`+}++func (x *Plan_RestoreDatabaseConfig) Reset() {+ *x = Plan_RestoreDatabaseConfig{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[18]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Plan_RestoreDatabaseConfig) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Plan_RestoreDatabaseConfig) ProtoMessage() {}++func (x *Plan_RestoreDatabaseConfig) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[18]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Plan_RestoreDatabaseConfig.ProtoReflect.Descriptor instead.+func (*Plan_RestoreDatabaseConfig) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{5, 4}+}++func (x *Plan_RestoreDatabaseConfig) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (x *Plan_RestoreDatabaseConfig) GetCreateDatabaseConfig() *Plan_CreateDatabaseConfig {+ if x != nil {+ return x.CreateDatabaseConfig+ }+ return nil+}++func (m *Plan_RestoreDatabaseConfig) GetSource() isPlan_RestoreDatabaseConfig_Source {+ if m != nil {+ return m.Source+ }+ return nil+}++func (x *Plan_RestoreDatabaseConfig) GetBackup() string {+ if x, ok := x.GetSource().(*Plan_RestoreDatabaseConfig_Backup); ok {+ return x.Backup+ }+ return ""+}++func (x *Plan_RestoreDatabaseConfig) GetPointInTime() *timestamppb.Timestamp {+ if x, ok := x.GetSource().(*Plan_RestoreDatabaseConfig_PointInTime); ok {+ return x.PointInTime+ }+ return nil+}++type isPlan_RestoreDatabaseConfig_Source interface {+ isPlan_RestoreDatabaseConfig_Source()+}++type Plan_RestoreDatabaseConfig_Backup struct {+ // FIXME: format TBD+ // Restore from a backup.+ Backup string `protobuf:"bytes,3,opt,name=backup,proto3,oneof"`+}++type Plan_RestoreDatabaseConfig_PointInTime struct {+ // After the PITR operations, the database will be recovered to the state at this time.+ PointInTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=point_in_time,json=pointInTime,proto3,oneof"`+}++func (*Plan_RestoreDatabaseConfig_Backup) isPlan_RestoreDatabaseConfig_Source() {}++func (*Plan_RestoreDatabaseConfig_PointInTime) isPlan_RestoreDatabaseConfig_Source() {}++type PlanCheckRun_Result struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Namespace PlanCheckRun_Result_Namespace `protobuf:"varint,1,opt,name=namespace,proto3,enum=bytebase.v1.PlanCheckRun_Result_Namespace" json:"namespace,omitempty"`+ Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`+ Status PlanCheckRun_Result_Status `protobuf:"varint,3,opt,name=status,proto3,enum=bytebase.v1.PlanCheckRun_Result_Status" json:"status,omitempty"`+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`+ Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`+ Line int64 `protobuf:"varint,6,opt,name=line,proto3" json:"line,omitempty"`+ Detail string `protobuf:"bytes,7,opt,name=detail,proto3" json:"detail,omitempty"`+}++func (x *PlanCheckRun_Result) Reset() {+ *x = PlanCheckRun_Result{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[20]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *PlanCheckRun_Result) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*PlanCheckRun_Result) ProtoMessage() {}++func (x *PlanCheckRun_Result) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[20]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use PlanCheckRun_Result.ProtoReflect.Descriptor instead.+func (*PlanCheckRun_Result) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{8, 0}+}++func (x *PlanCheckRun_Result) GetNamespace() PlanCheckRun_Result_Namespace {+ if x != nil {+ return x.Namespace+ }+ return PlanCheckRun_Result_NAMESPACE_UNSPECIFIED+}++func (x *PlanCheckRun_Result) GetCode() int64 {+ if x != nil {+ return x.Code+ }+ return 0+}++func (x *PlanCheckRun_Result) GetStatus() PlanCheckRun_Result_Status {+ if x != nil {+ return x.Status+ }+ return PlanCheckRun_Result_STATUS_UNSPECIFIED+}++func (x *PlanCheckRun_Result) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *PlanCheckRun_Result) GetContent() string {+ if x != nil {+ return x.Content+ }+ return ""+}++func (x *PlanCheckRun_Result) GetLine() int64 {+ if x != nil {+ return x.Line+ }+ return 0+}++func (x *PlanCheckRun_Result) GetDetail() string {+ if x != nil {+ return x.Detail+ }+ return ""+}++type Task_DatabaseCreate struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The project owning the database.+ // Format: projects/{project}+ Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`+ // database name+ Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`+ // table name+ Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`+ // Format: sheets/{sheet}+ Sheet string `protobuf:"bytes,4,opt,name=sheet,proto3" json:"sheet,omitempty"`+ CharacterSet string `protobuf:"bytes,5,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`+ Collection string `protobuf:"bytes,6,opt,name=collection,proto3" json:"collection,omitempty"`+ Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`+}++func (x *Task_DatabaseCreate) Reset() {+ *x = Task_DatabaseCreate{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[21]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Task_DatabaseCreate) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Task_DatabaseCreate) ProtoMessage() {}++func (x *Task_DatabaseCreate) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[21]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Task_DatabaseCreate.ProtoReflect.Descriptor instead.+func (*Task_DatabaseCreate) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12, 0}+}++func (x *Task_DatabaseCreate) GetProject() string {+ if x != nil {+ return x.Project+ }+ return ""+}++func (x *Task_DatabaseCreate) GetDatabase() string {+ if x != nil {+ return x.Database+ }+ return ""+}++func (x *Task_DatabaseCreate) GetTable() string {+ if x != nil {+ return x.Table+ }+ return ""+}++func (x *Task_DatabaseCreate) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *Task_DatabaseCreate) GetCharacterSet() string {+ if x != nil {+ return x.CharacterSet+ }+ return ""+}++func (x *Task_DatabaseCreate) GetCollection() string {+ if x != nil {+ return x.Collection+ }+ return ""+}++func (x *Task_DatabaseCreate) GetLabels() map[string]string {+ if x != nil {+ return x.Labels+ }+ return nil+}++type Task_DatabaseSchemaBaseline struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+}++func (x *Task_DatabaseSchemaBaseline) Reset() {+ *x = Task_DatabaseSchemaBaseline{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[22]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Task_DatabaseSchemaBaseline) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Task_DatabaseSchemaBaseline) ProtoMessage() {}++func (x *Task_DatabaseSchemaBaseline) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[22]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Task_DatabaseSchemaBaseline.ProtoReflect.Descriptor instead.+func (*Task_DatabaseSchemaBaseline) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12, 1}+}++func (x *Task_DatabaseSchemaBaseline) GetSchemaVersion() string {+ if x != nil {+ return x.SchemaVersion+ }+ return ""+}++type Task_DatabaseSchemaUpdate struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: sheets/{sheet}+ Sheet string `protobuf:"bytes,1,opt,name=sheet,proto3" json:"sheet,omitempty"`+ SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+}++func (x *Task_DatabaseSchemaUpdate) Reset() {+ *x = Task_DatabaseSchemaUpdate{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[23]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Task_DatabaseSchemaUpdate) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Task_DatabaseSchemaUpdate) ProtoMessage() {}++func (x *Task_DatabaseSchemaUpdate) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[23]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Task_DatabaseSchemaUpdate.ProtoReflect.Descriptor instead.+func (*Task_DatabaseSchemaUpdate) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12, 2}+}++func (x *Task_DatabaseSchemaUpdate) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *Task_DatabaseSchemaUpdate) GetSchemaVersion() string {+ if x != nil {+ return x.SchemaVersion+ }+ return ""+}++type Task_DatabaseDataUpdate struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: sheets/{sheet}+ Sheet string `protobuf:"bytes,1,opt,name=sheet,proto3" json:"sheet,omitempty"`+ SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+ // Build the rollback SQL if rollback_enabled.+ RollbackEnabled bool `protobuf:"varint,3,opt,name=rollback_enabled,json=rollbackEnabled,proto3" json:"rollback_enabled,omitempty"`+ // The status of the rollback SQL generation.+ RollbackSqlStatus Task_DatabaseDataUpdate_RollbackSqlStatus `protobuf:"varint,4,opt,name=rollback_sql_status,json=rollbackSqlStatus,proto3,enum=bytebase.v1.Task_DatabaseDataUpdate_RollbackSqlStatus" json:"rollback_sql_status,omitempty"`+ // transaction_id is the ID of the transaction executing the migration.+ // It is only use for Oracle to find Rollback SQL statement now.+ TransactionId string `protobuf:"bytes,5,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`+ // thread_id is the ID of the connection executing the migration.+ // We use it to filter the binlog events of the migration transaction.+ ThreadId string `protobuf:"bytes,6,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"`+ // change_history is the resource name of the change history.+ // We use it to get the schema when the transaction ran.+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ ChangeHistory string `protobuf:"bytes,7,opt,name=change_history,json=changeHistory,proto3" json:"change_history,omitempty"`+ BinlogFileStart string `protobuf:"bytes,8,opt,name=binlog_file_start,json=binlogFileStart,proto3" json:"binlog_file_start,omitempty"`+ BinlogFileEnd string `protobuf:"bytes,9,opt,name=binlog_file_end,json=binlogFileEnd,proto3" json:"binlog_file_end,omitempty"`+ BinlogPositionStart int64 `protobuf:"varint,10,opt,name=binlog_position_start,json=binlogPositionStart,proto3" json:"binlog_position_start,omitempty"`+ BinlogPositionEnd int64 `protobuf:"varint,11,opt,name=binlog_position_end,json=binlogPositionEnd,proto3" json:"binlog_position_end,omitempty"`+ RollbackError string `protobuf:"bytes,12,opt,name=rollback_error,json=rollbackError,proto3" json:"rollback_error,omitempty"`+ // rollback_sheet is the resource name of+ // the sheet that stores the generated rollback SQL statement.+ // Format: sheets/{sheet}+ RollbackSheet string `protobuf:"bytes,13,opt,name=rollback_sheet,json=rollbackSheet,proto3" json:"rollback_sheet,omitempty"`+ // rollback_from_review is the resource name of the review that+ // the rollback SQL statement is generated from.+ // Format: projects/{project}/reviews/{review}+ RollbackFromReview string `protobuf:"bytes,14,opt,name=rollback_from_review,json=rollbackFromReview,proto3" json:"rollback_from_review,omitempty"`+ // rollback_from_task is the resource name of the task that+ // the rollback SQL statement is generated from.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ RollbackFromTask string `protobuf:"bytes,15,opt,name=rollback_from_task,json=rollbackFromTask,proto3" json:"rollback_from_task,omitempty"`+}++func (x *Task_DatabaseDataUpdate) Reset() {+ *x = Task_DatabaseDataUpdate{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[24]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Task_DatabaseDataUpdate) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Task_DatabaseDataUpdate) ProtoMessage() {}++func (x *Task_DatabaseDataUpdate) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[24]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Task_DatabaseDataUpdate.ProtoReflect.Descriptor instead.+func (*Task_DatabaseDataUpdate) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12, 3}+}++func (x *Task_DatabaseDataUpdate) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetSchemaVersion() string {+ if x != nil {+ return x.SchemaVersion+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetRollbackEnabled() bool {+ if x != nil {+ return x.RollbackEnabled+ }+ return false+}++func (x *Task_DatabaseDataUpdate) GetRollbackSqlStatus() Task_DatabaseDataUpdate_RollbackSqlStatus {+ if x != nil {+ return x.RollbackSqlStatus+ }+ return Task_DatabaseDataUpdate_ROLLBACK_SQL_STATUS_UNSPECIFIED+}++func (x *Task_DatabaseDataUpdate) GetTransactionId() string {+ if x != nil {+ return x.TransactionId+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetThreadId() string {+ if x != nil {+ return x.ThreadId+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetChangeHistory() string {+ if x != nil {+ return x.ChangeHistory+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetBinlogFileStart() string {+ if x != nil {+ return x.BinlogFileStart+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetBinlogFileEnd() string {+ if x != nil {+ return x.BinlogFileEnd+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetBinlogPositionStart() int64 {+ if x != nil {+ return x.BinlogPositionStart+ }+ return 0+}++func (x *Task_DatabaseDataUpdate) GetBinlogPositionEnd() int64 {+ if x != nil {+ return x.BinlogPositionEnd+ }+ return 0+}++func (x *Task_DatabaseDataUpdate) GetRollbackError() string {+ if x != nil {+ return x.RollbackError+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetRollbackSheet() string {+ if x != nil {+ return x.RollbackSheet+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetRollbackFromReview() string {+ if x != nil {+ return x.RollbackFromReview+ }+ return ""+}++func (x *Task_DatabaseDataUpdate) GetRollbackFromTask() string {+ if x != nil {+ return x.RollbackFromTask+ }+ return ""+}++type Task_DatabaseBackup struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The resource name of the backup.+ // FIXME: format TBD.+ Backup string `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty"`+}++func (x *Task_DatabaseBackup) Reset() {+ *x = Task_DatabaseBackup{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[25]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Task_DatabaseBackup) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Task_DatabaseBackup) ProtoMessage() {}++func (x *Task_DatabaseBackup) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[25]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Task_DatabaseBackup.ProtoReflect.Descriptor instead.+func (*Task_DatabaseBackup) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12, 4}+}++func (x *Task_DatabaseBackup) GetBackup() string {+ if x != nil {+ return x.Backup+ }+ return ""+}++type Task_DatabaseRestoreRestore struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Target is only used when doing restore to a new database now.+ // It is empty for the case of in-place restore.+ // Target {instance} must be within the same environment as the instance of the original database.+ // {database} is the target database name.+ // Format: instances/{instance}/databases/database+ Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`+ // Types that are assignable to Source:+ //+ // *Task_DatabaseRestoreRestore_Backup+ // *Task_DatabaseRestoreRestore_PointInTime+ Source isTask_DatabaseRestoreRestore_Source `protobuf_oneof:"source"`+}++func (x *Task_DatabaseRestoreRestore) Reset() {+ *x = Task_DatabaseRestoreRestore{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_rollout_service_proto_msgTypes[26]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Task_DatabaseRestoreRestore) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Task_DatabaseRestoreRestore) ProtoMessage() {}++func (x *Task_DatabaseRestoreRestore) ProtoReflect() protoreflect.Message {+ mi := &file_v1_rollout_service_proto_msgTypes[26]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use Task_DatabaseRestoreRestore.ProtoReflect.Descriptor instead.+func (*Task_DatabaseRestoreRestore) Descriptor() ([]byte, []int) {+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{12, 5}+}++func (x *Task_DatabaseRestoreRestore) GetTarget() string {+ if x != nil {+ return x.Target+ }+ return ""+}++func (m *Task_DatabaseRestoreRestore) GetSource() isTask_DatabaseRestoreRestore_Source {+ if m != nil {+ return m.Source+ }+ return nil+}++func (x *Task_DatabaseRestoreRestore) GetBackup() string {+ if x, ok := x.GetSource().(*Task_DatabaseRestoreRestore_Backup); ok {+ return x.Backup+ }+ return ""+}++func (x *Task_DatabaseRestoreRestore) GetPointInTime() *timestamppb.Timestamp {+ if x, ok := x.GetSource().(*Task_DatabaseRestoreRestore_PointInTime); ok {+ return x.PointInTime+ }+ return nil+}++type isTask_DatabaseRestoreRestore_Source interface {+ isTask_DatabaseRestoreRestore_Source()+}++type Task_DatabaseRestoreRestore_Backup struct {+ // Only used when doing restore full backup only.+ Backup string `protobuf:"bytes,2,opt,name=backup,proto3,oneof"`+}++type Task_DatabaseRestoreRestore_PointInTime struct {+ // After the PITR operations, the database will be recovered to the state at this time.+ PointInTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=point_in_time,json=pointInTime,proto3,oneof"`+}++func (*Task_DatabaseRestoreRestore_Backup) isTask_DatabaseRestoreRestore_Source() {}++func (*Task_DatabaseRestoreRestore_PointInTime) isTask_DatabaseRestoreRestore_Source() {}++var File_v1_rollout_service_proto protoreflect.FileDescriptor++var file_v1_rollout_service_proto_rawDesc = []byte{+ 0x0a, 0x18, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x72,+ 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,+ 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,+ 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,+ 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,+ 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,+ 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x22, 0x29, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6b, 0x0a,+ 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b,+ 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,+ 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x11, 0x4c, 0x69,+ 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,+ 0x27, 0x0a, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,+ 0x6e, 0x52, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74,+ 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,+ 0x22, 0x5c, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x6c, 0x61, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x81,+ 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e,+ 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73,+ 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,+ 0x73, 0x6b, 0x22, 0xc3, 0x0c, 0x0a, 0x04, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,+ 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x14,+ 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,+ 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,+ 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,+ 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18,+ 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05, 0x73,+ 0x74, 0x65, 0x70, 0x73, 0x1a, 0x34, 0x0a, 0x04, 0x53, 0x74, 0x65, 0x70, 0x12, 0x2c, 0x0a, 0x05,+ 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x53,+ 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x1a, 0x83, 0x03, 0x0a, 0x04, 0x53,+ 0x70, 0x65, 0x63, 0x12, 0x4e, 0x0a, 0x15, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f,+ 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13,+ 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x54,+ 0x69, 0x6d, 0x65, 0x12, 0x5e, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x14, 0x63,+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x12, 0x5e, 0x0a, 0x16, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x14, 0x63,+ 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x12, 0x61, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,+ 0x15, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x1a, 0xf2, 0x02, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72,+ 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,+ 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a,+ 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61,+ 0x62, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72,+ 0x5f, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72,+ 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c,+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c,+ 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,+ 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,+ 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70,+ 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x4a,+ 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,+ 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74,+ 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61,+ 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,+ 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xca, 0x02, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16,+ 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x3f, 0x0a, 0x04,+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x68,+ 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a,+ 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72,+ 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,+ 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f,+ 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22,+ 0x71, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a,+ 0x08, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d,+ 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52,+ 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47,+ 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06,+ 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41,+ 0x10, 0x06, 0x1a, 0x93, 0x02, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06,+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61,+ 0x72, 0x67, 0x65, 0x74, 0x12, 0x61, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x01, 0x52, 0x14,+ 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x88, 0x01, 0x01, 0x12, 0x18, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75,+ 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75,+ 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 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, 0x00, 0x52, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x54,+ 0x69, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x19, 0x0a,+ 0x17, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x73, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74,+ 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,+ 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x86, 0x01,+ 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,+ 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x70,+ 0x6c, 0x61, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x52,+ 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26,+ 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,+ 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67,+ 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe4, 0x08, 0x0a, 0x0c, 0x50, 0x6c, 0x61, 0x6e, 0x43,+ 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75,+ 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x32, 0x0a,+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68,+ 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61,+ 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74,+ 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72,+ 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74,+ 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69,+ 0x6c, 0x12, 0x3a, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03,+ 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65,+ 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x8d, 0x03,+ 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x48, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,+ 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68,+ 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4e, 0x61,+ 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,+ 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,+ 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75,+ 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,+ 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a,+ 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18,+ 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64,+ 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74,+ 0x61, 0x69, 0x6c, 0x22, 0x41, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,+ 0x12, 0x19, 0x0a, 0x15, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42,+ 0x59, 0x54, 0x45, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x44, 0x56,+ 0x49, 0x53, 0x4f, 0x52, 0x10, 0x02, 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,+ 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f,+ 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02,+ 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x03, 0x22, 0xda, 0x02,+ 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e,+ 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45,+ 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x4b, 0x45, 0x5f, 0x41, 0x44, 0x56, 0x49, 0x53, 0x45, 0x10, 0x01,+ 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41,+ 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x54, 0x41, 0x58, 0x10, 0x02, 0x12,+ 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54,+ 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x41, 0x54, 0x49, 0x42, 0x49, 0x4c,+ 0x49, 0x54, 0x59, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,+ 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x44, 0x56, 0x49,+ 0x53, 0x45, 0x10, 0x04, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,+ 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10,+ 0x05, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54,+ 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50,+ 0x4f, 0x52, 0x54, 0x10, 0x06, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53,+ 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x46, 0x46, 0x45,+ 0x43, 0x54, 0x45, 0x44, 0x5f, 0x52, 0x4f, 0x57, 0x53, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x52, 0x54,+ 0x10, 0x07, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43,+ 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41,+ 0x42, 0x41, 0x53, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10,+ 0x09, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x49,+ 0x54, 0x52, 0x5f, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x10, 0x0a, 0x22, 0x51, 0x0a, 0x06, 0x53, 0x74,+ 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,+ 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e,+ 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12,+ 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x22, 0x2c, 0x0a,+ 0x11, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x07,+ 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75,+ 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75,+ 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x06,+ 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65,+ 0x52, 0x06, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61,+ 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a,+ 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12,+ 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x8f,+ 0x13, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75,+ 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75,+ 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,+ 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x5f,+ 0x62, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e,+ 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16,+ 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x47, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x5f, 0x63, 0x61, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b,+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48,+ 0x00, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x73, 0x65, 0x12,+ 0x64, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x48, 0x00, 0x52, 0x16, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73,+ 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x5e, 0x0a, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18,+ 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52,+ 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44,+ 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x12, 0x64, 0x61, 0x74,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12,+ 0x64, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74,+ 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x48, 0x00, 0x52, 0x16, 0x64,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0xb8, 0x02, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14,+ 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,+ 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68,+ 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12,+ 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,+ 0x44, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,+ 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74,+ 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c,+ 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45,+ 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,+ 0x1a, 0x3f, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,+ 0x6e, 0x1a, 0x53, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65,+ 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12,+ 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,+ 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56,+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x92, 0x06, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a,+ 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68,+ 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65,+ 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x6f,+ 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x6e,+ 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x66, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,+ 0x6b, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61,+ 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63,+ 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c,+ 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a,+ 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,+ 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,+ 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69,+ 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x49,+ 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74,+ 0x6f, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x69, 0x6e, 0x6c,+ 0x6f, 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x08, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x53,+ 0x74, 0x61, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x5f, 0x66,+ 0x69, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62,+ 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x45, 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x15,+ 0x62, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f,+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x62, 0x69, 0x6e,+ 0x6c, 0x6f, 0x67, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74,+ 0x12, 0x2e, 0x0a, 0x13, 0x62, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74,+ 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x62,+ 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64,+ 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x72, 0x72,+ 0x6f, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61,+ 0x63, 0x6b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f, 0x6c, 0x6c, 0x62,+ 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0d, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x30,+ 0x0a, 0x14, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f,+ 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x6f,+ 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77,+ 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x6f,+ 0x6d, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x6f,+ 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x5b,+ 0x0a, 0x11, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x71, 0x6c, 0x53, 0x74, 0x61,+ 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x4f, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x5f,+ 0x53, 0x51, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44,+ 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12,+ 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x1a, 0x28, 0x0a, 0x0e, 0x44,+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x16, 0x0a,+ 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62,+ 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x96, 0x01, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,+ 0x73, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b,+ 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b,+ 0x75, 0x70, 0x12, 0x40, 0x0a, 0x0d, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x5f, 0x74,+ 0x69, 0x6d, 0x65, 0x18, 0x03, 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, 0x00, 0x52, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e,+ 0x54, 0x69, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xd4,+ 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a,+ 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x41,+ 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12,+ 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45,+ 0x4d, 0x41, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x1a, 0x0a,+ 0x16, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,+ 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x41, 0x54,+ 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44,+ 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x05, 0x12, 0x25, 0x0a, 0x21, 0x44, 0x41, 0x54,+ 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44,+ 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x06,+ 0x12, 0x28, 0x0a, 0x24, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48,+ 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54,+ 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41,+ 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41,+ 0x54, 0x45, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,+ 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x10, 0x09, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54,+ 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x4f, 0x52, 0x45, 0x5f, 0x52, 0x45,+ 0x53, 0x54, 0x4f, 0x52, 0x45, 0x10, 0x0a, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42,+ 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x55, 0x54, 0x4f,+ 0x56, 0x45, 0x52, 0x10, 0x0b, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,+ 0x22, 0x85, 0x04, 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,+ 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,+ 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,+ 0x72, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x63,+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,+ 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72,+ 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,+ 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x07,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73,+ 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,+ 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,+ 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e,+ 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12,+ 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,+ 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56,+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x70, 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, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10,+ 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0c, 0x0a,+ 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x53,+ 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, 0x06, 0x32, 0x91, 0x07, 0x0a, 0x0e, 0x52, 0x6f, 0x6c,+ 0x6c, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x67, 0x0a, 0x07, 0x47,+ 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x2c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e,+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e,+ 0x73, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,+ 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,+ 0x22, 0x2e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73,+ 0x12, 0x6f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,+ 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,+ 0x6e, 0x22, 0x2e, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x04, 0x70, 0x6c,+ 0x61, 0x6e, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x6e,+ 0x73, 0x12, 0x84, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e,+ 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,+ 0x6c, 0x61, 0x6e, 0x22, 0x43, 0xda, 0x41, 0x10, 0x70, 0x6c, 0x61, 0x6e, 0x2c, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x04,+ 0x70, 0x6c, 0x61, 0x6e, 0x32, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6c, 0x61, 0x6e, 0x2e,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,+ 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52,+ 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x2f, 0xda, 0x41,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x87, 0x01,+ 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x54, 0x61, 0x73,+ 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72,+ 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x12, 0xa2, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74,+ 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x25, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,+ 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b,+ 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0xda, 0x41,+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f,+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70,+ 0x6c, 0x61, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x42, 0x11, 0x5a, 0x0f,+ 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+}++var (+ file_v1_rollout_service_proto_rawDescOnce sync.Once+ file_v1_rollout_service_proto_rawDescData = file_v1_rollout_service_proto_rawDesc+)++func file_v1_rollout_service_proto_rawDescGZIP() []byte {+ file_v1_rollout_service_proto_rawDescOnce.Do(func() {+ file_v1_rollout_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_rollout_service_proto_rawDescData)+ })+ return file_v1_rollout_service_proto_rawDescData+}++var file_v1_rollout_service_proto_enumTypes = make([]protoimpl.EnumInfo, 8)+var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 28)+var file_v1_rollout_service_proto_goTypes = []interface{}{+ (Plan_ChangeDatabaseConfig_Type)(0), // 0: bytebase.v1.Plan.ChangeDatabaseConfig.Type+ (PlanCheckRun_Type)(0), // 1: bytebase.v1.PlanCheckRun.Type+ (PlanCheckRun_Status)(0), // 2: bytebase.v1.PlanCheckRun.Status+ (PlanCheckRun_Result_Namespace)(0), // 3: bytebase.v1.PlanCheckRun.Result.Namespace+ (PlanCheckRun_Result_Status)(0), // 4: bytebase.v1.PlanCheckRun.Result.Status+ (Task_Type)(0), // 5: bytebase.v1.Task.Type+ (Task_DatabaseDataUpdate_RollbackSqlStatus)(0), // 6: bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus+ (TaskRun_Status)(0), // 7: bytebase.v1.TaskRun.Status+ (*GetPlanRequest)(nil), // 8: bytebase.v1.GetPlanRequest+ (*ListPlansRequest)(nil), // 9: bytebase.v1.ListPlansRequest+ (*ListPlansResponse)(nil), // 10: bytebase.v1.ListPlansResponse+ (*CreatePlanRequest)(nil), // 11: bytebase.v1.CreatePlanRequest+ (*UpdatePlanRequest)(nil), // 12: bytebase.v1.UpdatePlanRequest+ (*Plan)(nil), // 13: bytebase.v1.Plan+ (*ListPlanCheckRunsRequest)(nil), // 14: bytebase.v1.ListPlanCheckRunsRequest+ (*ListPlanCheckRunsResponse)(nil), // 15: bytebase.v1.ListPlanCheckRunsResponse+ (*PlanCheckRun)(nil), // 16: bytebase.v1.PlanCheckRun+ (*GetRolloutRequest)(nil), // 17: bytebase.v1.GetRolloutRequest+ (*Rollout)(nil), // 18: bytebase.v1.Rollout+ (*Stage)(nil), // 19: bytebase.v1.Stage+ (*Task)(nil), // 20: bytebase.v1.Task+ (*TaskRun)(nil), // 21: bytebase.v1.TaskRun+ (*Plan_Step)(nil), // 22: bytebase.v1.Plan.Step+ (*Plan_Spec)(nil), // 23: bytebase.v1.Plan.Spec+ (*Plan_CreateDatabaseConfig)(nil), // 24: bytebase.v1.Plan.CreateDatabaseConfig+ (*Plan_ChangeDatabaseConfig)(nil), // 25: bytebase.v1.Plan.ChangeDatabaseConfig+ (*Plan_RestoreDatabaseConfig)(nil), // 26: bytebase.v1.Plan.RestoreDatabaseConfig+ nil, // 27: bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry+ (*PlanCheckRun_Result)(nil), // 28: bytebase.v1.PlanCheckRun.Result+ (*Task_DatabaseCreate)(nil), // 29: bytebase.v1.Task.DatabaseCreate+ (*Task_DatabaseSchemaBaseline)(nil), // 30: bytebase.v1.Task.DatabaseSchemaBaseline+ (*Task_DatabaseSchemaUpdate)(nil), // 31: bytebase.v1.Task.DatabaseSchemaUpdate+ (*Task_DatabaseDataUpdate)(nil), // 32: bytebase.v1.Task.DatabaseDataUpdate+ (*Task_DatabaseBackup)(nil), // 33: bytebase.v1.Task.DatabaseBackup+ (*Task_DatabaseRestoreRestore)(nil), // 34: bytebase.v1.Task.DatabaseRestoreRestore+ nil, // 35: bytebase.v1.Task.DatabaseCreate.LabelsEntry+ (*fieldmaskpb.FieldMask)(nil), // 36: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 37: google.protobuf.Timestamp+}+var file_v1_rollout_service_proto_depIdxs = []int32{+ 13, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan+ 13, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan+ 13, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan+ 36, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask+ 22, // 4: bytebase.v1.Plan.steps:type_name -> bytebase.v1.Plan.Step+ 16, // 5: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun+ 1, // 6: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type+ 2, // 7: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status+ 28, // 8: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result+ 19, // 9: bytebase.v1.Rollout.stages:type_name -> bytebase.v1.Stage+ 20, // 10: bytebase.v1.Stage.tasks:type_name -> bytebase.v1.Task+ 5, // 11: bytebase.v1.Task.type:type_name -> bytebase.v1.Task.Type+ 29, // 12: bytebase.v1.Task.database_case:type_name -> bytebase.v1.Task.DatabaseCreate+ 30, // 13: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline+ 31, // 14: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate+ 32, // 15: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate+ 34, // 16: bytebase.v1.Task.database_restore_restore:type_name -> bytebase.v1.Task.DatabaseRestoreRestore+ 37, // 17: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp+ 37, // 18: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp+ 7, // 19: bytebase.v1.TaskRun.status:type_name -> bytebase.v1.TaskRun.Status+ 23, // 20: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec+ 37, // 21: bytebase.v1.Plan.Spec.earliest_allowed_time:type_name -> google.protobuf.Timestamp+ 24, // 22: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig+ 25, // 23: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig+ 26, // 24: bytebase.v1.Plan.Spec.restore_database_config:type_name -> bytebase.v1.Plan.RestoreDatabaseConfig+ 27, // 25: bytebase.v1.Plan.CreateDatabaseConfig.labels:type_name -> bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry+ 0, // 26: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type+ 24, // 27: bytebase.v1.Plan.RestoreDatabaseConfig.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig+ 37, // 28: bytebase.v1.Plan.RestoreDatabaseConfig.point_in_time:type_name -> google.protobuf.Timestamp+ 3, // 29: bytebase.v1.PlanCheckRun.Result.namespace:type_name -> bytebase.v1.PlanCheckRun.Result.Namespace+ 4, // 30: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status+ 35, // 31: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry+ 6, // 32: bytebase.v1.Task.DatabaseDataUpdate.rollback_sql_status:type_name -> bytebase.v1.Task.DatabaseDataUpdate.RollbackSqlStatus+ 37, // 33: bytebase.v1.Task.DatabaseRestoreRestore.point_in_time:type_name -> google.protobuf.Timestamp+ 8, // 34: bytebase.v1.RolloutService.GetPlan:input_type -> bytebase.v1.GetPlanRequest+ 9, // 35: bytebase.v1.RolloutService.ListPlans:input_type -> bytebase.v1.ListPlansRequest+ 11, // 36: bytebase.v1.RolloutService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest+ 12, // 37: bytebase.v1.RolloutService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest+ 17, // 38: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest+ 9, // 39: bytebase.v1.RolloutService.ListRolloutTaskRuns:input_type -> bytebase.v1.ListPlansRequest+ 14, // 40: bytebase.v1.RolloutService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest+ 13, // 41: bytebase.v1.RolloutService.GetPlan:output_type -> bytebase.v1.Plan+ 10, // 42: bytebase.v1.RolloutService.ListPlans:output_type -> bytebase.v1.ListPlansResponse+ 13, // 43: bytebase.v1.RolloutService.CreatePlan:output_type -> bytebase.v1.Plan+ 13, // 44: bytebase.v1.RolloutService.UpdatePlan:output_type -> bytebase.v1.Plan+ 18, // 45: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout+ 10, // 46: bytebase.v1.RolloutService.ListRolloutTaskRuns:output_type -> bytebase.v1.ListPlansResponse+ 15, // 47: bytebase.v1.RolloutService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse+ 41, // [41:48] is the sub-list for method output_type+ 34, // [34:41] is the sub-list for method input_type+ 34, // [34:34] is the sub-list for extension type_name+ 34, // [34:34] is the sub-list for extension extendee+ 0, // [0:34] is the sub-list for field type_name+}++func init() { file_v1_rollout_service_proto_init() }+func file_v1_rollout_service_proto_init() {+ if File_v1_rollout_service_proto != nil {+ return+ }+ if !protoimpl.UnsafeEnabled {+ file_v1_rollout_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*GetPlanRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil}}file_v1_rollout_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {@@ -602,19 +3457,280 @@ func file_v1_rollout_service_proto_init() {return nil}}+ file_v1_rollout_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListPlanCheckRunsRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListPlanCheckRunsResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PlanCheckRun); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*GetRolloutRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Rollout); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Stage); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Task); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*TaskRun); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_Step); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_Spec); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_CreateDatabaseConfig); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_ChangeDatabaseConfig); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Plan_RestoreDatabaseConfig); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PlanCheckRun_Result); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Task_DatabaseCreate); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Task_DatabaseSchemaBaseline); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Task_DatabaseSchemaUpdate); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Task_DatabaseDataUpdate); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Task_DatabaseBackup); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_rollout_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Task_DatabaseRestoreRestore); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ }+ file_v1_rollout_service_proto_msgTypes[12].OneofWrappers = []interface{}{+ (*Task_DatabaseCase)(nil),+ (*Task_DatabaseSchemaBaseline_)(nil),+ (*Task_DatabaseSchemaUpdate_)(nil),+ (*Task_DatabaseDataUpdate_)(nil),+ (*Task_DatabaseRestoreRestore_)(nil),+ }+ file_v1_rollout_service_proto_msgTypes[15].OneofWrappers = []interface{}{+ (*Plan_Spec_CreateDatabaseConfig)(nil),+ (*Plan_Spec_ChangeDatabaseConfig)(nil),+ (*Plan_Spec_RestoreDatabaseConfig)(nil),+ }+ file_v1_rollout_service_proto_msgTypes[18].OneofWrappers = []interface{}{+ (*Plan_RestoreDatabaseConfig_Backup)(nil),+ (*Plan_RestoreDatabaseConfig_PointInTime)(nil),+ }+ file_v1_rollout_service_proto_msgTypes[26].OneofWrappers = []interface{}{+ (*Task_DatabaseRestoreRestore_Backup)(nil),+ (*Task_DatabaseRestoreRestore_PointInTime)(nil),}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_rollout_service_proto_rawDesc,- NumEnums: 0,- NumMessages: 6,+ NumEnums: 8,+ NumMessages: 28,NumExtensions: 0,NumServices: 1,},GoTypes: file_v1_rollout_service_proto_goTypes,DependencyIndexes: file_v1_rollout_service_proto_depIdxs,+ EnumInfos: file_v1_rollout_service_proto_enumTypes,MessageInfos: file_v1_rollout_service_proto_msgTypes,}.Build()File_v1_rollout_service_proto = out.Filediff --git a/proto/generated-go/v1/rollout_service.pb.gw.go b/proto/generated-go/v1/rollout_service.pb.gw.goindex f8cbc41f9c..f09c206c63 100644--- a/proto/generated-go/v1/rollout_service.pb.gw.go+++ b/proto/generated-go/v1/rollout_service.pb.gw.go@@ -321,6 +321,198 @@ func local_request_RolloutService_UpdatePlan_0(ctx context.Context, marshaler ru}+func request_RolloutService_GetRollout_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetRolloutRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.GetRollout(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_RolloutService_GetRollout_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetRolloutRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.GetRollout(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_RolloutService_ListRolloutTaskRuns_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}+)++func request_RolloutService_ListRolloutTaskRuns_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListPlansRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListRolloutTaskRuns_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.ListRolloutTaskRuns(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_RolloutService_ListRolloutTaskRuns_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListPlansRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListRolloutTaskRuns_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.ListRolloutTaskRuns(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_RolloutService_ListPlanCheckRuns_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}+)++func request_RolloutService_ListPlanCheckRuns_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListPlanCheckRunsRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListPlanCheckRuns_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.ListPlanCheckRuns(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_RolloutService_ListPlanCheckRuns_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListPlanCheckRunsRequest+ var metadata runtime.ServerMetadata++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["parent"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")+ }++ protoReq.Parent, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RolloutService_ListPlanCheckRuns_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.ListPlanCheckRuns(ctx, &protoReq)+ return msg, metadata, err++}+// RegisterRolloutServiceHandlerServer registers the http handlers for service RolloutService to "mux".// UnaryRPC :call RolloutServiceServer directly.// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.@@ -427,6 +619,81 @@ func RegisterRolloutServiceHandlerServer(ctx context.Context, mux *runtime.Serve})+ mux.Handle("GET", pattern_RolloutService_GetRollout_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/GetRollout", runtime.WithHTTPPathPattern("/v1/{name=projects/*/rollouts/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_RolloutService_GetRollout_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RolloutService_GetRollout_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_RolloutService_ListRolloutTaskRuns_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/ListRolloutTaskRuns", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/rollouts"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_RolloutService_ListRolloutTaskRuns_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RolloutService_ListRolloutTaskRuns_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_RolloutService_ListPlanCheckRuns_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/ListPlanCheckRuns", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/plans/*}/planCheckRuns"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_RolloutService_ListPlanCheckRuns_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RolloutService_ListPlanCheckRuns_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+return nil}@@ -556,6 +823,72 @@ func RegisterRolloutServiceHandlerClient(ctx context.Context, mux *runtime.Serve})+ mux.Handle("GET", pattern_RolloutService_GetRollout_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/GetRollout", runtime.WithHTTPPathPattern("/v1/{name=projects/*/rollouts/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_RolloutService_GetRollout_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RolloutService_GetRollout_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_RolloutService_ListRolloutTaskRuns_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/ListRolloutTaskRuns", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/rollouts"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_RolloutService_ListRolloutTaskRuns_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RolloutService_ListRolloutTaskRuns_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("GET", pattern_RolloutService_ListPlanCheckRuns_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/ListPlanCheckRuns", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/plans/*}/planCheckRuns"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_RolloutService_ListPlanCheckRuns_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RolloutService_ListPlanCheckRuns_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+return nil}@@ -567,6 +900,12 @@ var (pattern_RolloutService_CreatePlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "plans"}, ""))pattern_RolloutService_UpdatePlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "plan.name"}, ""))++ pattern_RolloutService_GetRollout_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "rollouts", "name"}, ""))++ pattern_RolloutService_ListRolloutTaskRuns_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "rollouts"}, ""))++ pattern_RolloutService_ListPlanCheckRuns_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "projects", "plans", "parent", "planCheckRuns"}, "")))var (@@ -577,4 +916,10 @@ var (forward_RolloutService_CreatePlan_0 = runtime.ForwardResponseMessageforward_RolloutService_UpdatePlan_0 = runtime.ForwardResponseMessage++ forward_RolloutService_GetRollout_0 = runtime.ForwardResponseMessage++ forward_RolloutService_ListRolloutTaskRuns_0 = runtime.ForwardResponseMessage++ forward_RolloutService_ListPlanCheckRuns_0 = runtime.ForwardResponseMessage)diff --git a/proto/generated-go/v1/rollout_service_grpc.pb.go b/proto/generated-go/v1/rollout_service_grpc.pb.goindex 59e169b939..08ef4d2208 100644--- a/proto/generated-go/v1/rollout_service_grpc.pb.go+++ b/proto/generated-go/v1/rollout_service_grpc.pb.go@@ -19,10 +19,13 @@ import (const _ = grpc.SupportPackageIsVersion7const (- RolloutService_GetPlan_FullMethodName = "/bytebase.v1.RolloutService/GetPlan"- RolloutService_ListPlans_FullMethodName = "/bytebase.v1.RolloutService/ListPlans"- RolloutService_CreatePlan_FullMethodName = "/bytebase.v1.RolloutService/CreatePlan"- RolloutService_UpdatePlan_FullMethodName = "/bytebase.v1.RolloutService/UpdatePlan"+ RolloutService_GetPlan_FullMethodName = "/bytebase.v1.RolloutService/GetPlan"+ RolloutService_ListPlans_FullMethodName = "/bytebase.v1.RolloutService/ListPlans"+ RolloutService_CreatePlan_FullMethodName = "/bytebase.v1.RolloutService/CreatePlan"+ RolloutService_UpdatePlan_FullMethodName = "/bytebase.v1.RolloutService/UpdatePlan"+ RolloutService_GetRollout_FullMethodName = "/bytebase.v1.RolloutService/GetRollout"+ RolloutService_ListRolloutTaskRuns_FullMethodName = "/bytebase.v1.RolloutService/ListRolloutTaskRuns"+ RolloutService_ListPlanCheckRuns_FullMethodName = "/bytebase.v1.RolloutService/ListPlanCheckRuns")// RolloutServiceClient is the client API for RolloutService service.@@ -33,6 +36,9 @@ type RolloutServiceClient interface {ListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*ListPlansResponse, error)CreatePlan(ctx context.Context, in *CreatePlanRequest, opts ...grpc.CallOption) (*Plan, error)UpdatePlan(ctx context.Context, in *UpdatePlanRequest, opts ...grpc.CallOption) (*Plan, error)+ GetRollout(ctx context.Context, in *GetRolloutRequest, opts ...grpc.CallOption) (*Rollout, error)+ ListRolloutTaskRuns(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*ListPlansResponse, error)+ ListPlanCheckRuns(ctx context.Context, in *ListPlanCheckRunsRequest, opts ...grpc.CallOption) (*ListPlanCheckRunsResponse, error)}type rolloutServiceClient struct {@@ -79,6 +85,33 @@ func (c *rolloutServiceClient) UpdatePlan(ctx context.Context, in *UpdatePlanReqreturn out, nil}+func (c *rolloutServiceClient) GetRollout(ctx context.Context, in *GetRolloutRequest, opts ...grpc.CallOption) (*Rollout, error) {+ out := new(Rollout)+ err := c.cc.Invoke(ctx, RolloutService_GetRollout_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *rolloutServiceClient) ListRolloutTaskRuns(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*ListPlansResponse, error) {+ out := new(ListPlansResponse)+ err := c.cc.Invoke(ctx, RolloutService_ListRolloutTaskRuns_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *rolloutServiceClient) ListPlanCheckRuns(ctx context.Context, in *ListPlanCheckRunsRequest, opts ...grpc.CallOption) (*ListPlanCheckRunsResponse, error) {+ out := new(ListPlanCheckRunsResponse)+ err := c.cc.Invoke(ctx, RolloutService_ListPlanCheckRuns_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}+// RolloutServiceServer is the server API for RolloutService service.// All implementations must embed UnimplementedRolloutServiceServer// for forward compatibility@@ -87,6 +120,9 @@ type RolloutServiceServer interface {ListPlans(context.Context, *ListPlansRequest) (*ListPlansResponse, error)CreatePlan(context.Context, *CreatePlanRequest) (*Plan, error)UpdatePlan(context.Context, *UpdatePlanRequest) (*Plan, error)+ GetRollout(context.Context, *GetRolloutRequest) (*Rollout, error)+ ListRolloutTaskRuns(context.Context, *ListPlansRequest) (*ListPlansResponse, error)+ ListPlanCheckRuns(context.Context, *ListPlanCheckRunsRequest) (*ListPlanCheckRunsResponse, error)mustEmbedUnimplementedRolloutServiceServer()}@@ -106,6 +142,15 @@ func (UnimplementedRolloutServiceServer) CreatePlan(context.Context, *CreatePlanfunc (UnimplementedRolloutServiceServer) UpdatePlan(context.Context, *UpdatePlanRequest) (*Plan, error) {return nil, status.Errorf(codes.Unimplemented, "method UpdatePlan not implemented")}+func (UnimplementedRolloutServiceServer) GetRollout(context.Context, *GetRolloutRequest) (*Rollout, error) {+ return nil, status.Errorf(codes.Unimplemented, "method GetRollout not implemented")+}+func (UnimplementedRolloutServiceServer) ListRolloutTaskRuns(context.Context, *ListPlansRequest) (*ListPlansResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListRolloutTaskRuns not implemented")+}+func (UnimplementedRolloutServiceServer) ListPlanCheckRuns(context.Context, *ListPlanCheckRunsRequest) (*ListPlanCheckRunsResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListPlanCheckRuns not implemented")+}func (UnimplementedRolloutServiceServer) mustEmbedUnimplementedRolloutServiceServer() {}// UnsafeRolloutServiceServer may be embedded to opt out of forward compatibility for this service.@@ -191,6 +236,60 @@ func _RolloutService_UpdatePlan_Handler(srv interface{}, ctx context.Context, dereturn interceptor(ctx, in, info, handler)}+func _RolloutService_GetRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(GetRolloutRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(RolloutServiceServer).GetRollout(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: RolloutService_GetRollout_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(RolloutServiceServer).GetRollout(ctx, req.(*GetRolloutRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _RolloutService_ListRolloutTaskRuns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListPlansRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(RolloutServiceServer).ListRolloutTaskRuns(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: RolloutService_ListRolloutTaskRuns_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(RolloutServiceServer).ListRolloutTaskRuns(ctx, req.(*ListPlansRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _RolloutService_ListPlanCheckRuns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListPlanCheckRunsRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(RolloutServiceServer).ListPlanCheckRuns(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: RolloutService_ListPlanCheckRuns_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(RolloutServiceServer).ListPlanCheckRuns(ctx, req.(*ListPlanCheckRunsRequest))+ }+ return interceptor(ctx, in, info, handler)+}+// RolloutService_ServiceDesc is the grpc.ServiceDesc for RolloutService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)@@ -214,6 +313,18 @@ var RolloutService_ServiceDesc = grpc.ServiceDesc{MethodName: "UpdatePlan",Handler: _RolloutService_UpdatePlan_Handler,},+ {+ MethodName: "GetRollout",+ Handler: _RolloutService_GetRollout_Handler,+ },+ {+ MethodName: "ListRolloutTaskRuns",+ Handler: _RolloutService_ListRolloutTaskRuns_Handler,+ },+ {+ MethodName: "ListPlanCheckRuns",+ Handler: _RolloutService_ListPlanCheckRuns_Handler,+ },},Streams: []grpc.StreamDesc{},Metadata: "v1/rollout_service.proto",diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.protoindex 0e233556d5..8dcfd094f8 100644--- a/proto/v1/rollout_service.proto+++ b/proto/v1/rollout_service.proto@@ -6,6 +6,7 @@ import "google/api/annotations.proto";import "google/api/client.proto";import "google/api/field_behavior.proto";import "google/protobuf/field_mask.proto";+import "google/protobuf/timestamp.proto";option go_package = "generated-go/v1";@@ -35,6 +36,21 @@ service RolloutService {};option (google.api.method_signature) = "plan,update_mask";}++ rpc GetRollout(GetRolloutRequest) returns (Rollout) {+ option (google.api.http) = {get: "/v1/{name=projects/*/rollouts/*}"};+ option (google.api.method_signature) = "name";+ }++ rpc ListRolloutTaskRuns(ListPlansRequest) returns (ListPlansResponse) {+ option (google.api.http) = {get: "/v1/{parent=projects/*}/rollouts"};+ option (google.api.method_signature) = "parent";+ }++ rpc ListPlanCheckRuns(ListPlanCheckRunsRequest) returns (ListPlanCheckRunsResponse) {+ option (google.api.http) = {get: "/v1/{parent=projects/*/plans/*}/planCheckRuns"};+ option (google.api.method_signature) = "parent";+ }}message GetPlanRequest {@@ -101,9 +117,406 @@ message Plan {// The system-assigned, unique identifier for a resource.string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];+ // The resource name of the review associated with this plan.+ // Format: projects/{project}/reviews/{review}+ string review = 3;++ string title = 4;+ string description = 5;++ repeated Step steps = 6;++ // FIXME(d/xz): support spec with deployment config+ message Step {+ repeated Spec specs = 1;+ }++ message Spec {+ // earliest_allowed_time the earliest execution time of the change.+ google.protobuf.Timestamp earliest_allowed_time = 4;++ oneof config {+ CreateDatabaseConfig create_database_config = 1;+ ChangeDatabaseConfig change_database_config = 2;+ RestoreDatabaseConfig restore_database_config = 3;+ }+ }++ message CreateDatabaseConfig {+ // The resource name of the instance on which the database is created.+ // Format: instances/{instance}+ string target = 1;+ // The name of the database to create.+ string database = 2;+ // table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+ // For example, in MongoDB, it only creates the database when we first store data in that database.+ string table = 3;+ // character_set is the character set of the database.+ string character_set = 4;+ // collation is the collation of the database.+ string collation = 5;+ // cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".+ string cluster = 6;+ // owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".+ string owner = 7;+ // backup is the resource name of the backup.+ // FIXME: backup v1 API is not ready yet, write the format here when it's ready.+ string backup = 8;+ // labels of the database.+ map<string, string> labels = 9;+ }++ message ChangeDatabaseConfig {+ // The resource name of the target.+ // Format: projects/{project}/logicalDatabases/{ldb1}.+ // Format: projects/{project}/logicalDatabases/{ldb1}/logicalTables/{ltb1}.+ // Format: instances/{xxx}/databases/{db1}.+ string target = 1;+ // The resource name of the sheet.+ // Format: sheets/{sheet}+ string sheet = 2;+ // Type is the database change type.+ enum Type {+ TYPE_UNSPECIFIED = 0;+ // Used for establishing schema baseline, this is used when+ // 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.+ // 2. Had schema drift and need to re-establish the baseline.+ BASELINE = 1;+ // Used for DDL changes including CREATE DATABASE.+ MIGRATE = 2;+ // Used for schema changes via state-based schema migration including CREATE DATABASE.+ MIGRATE_SDL = 3;+ // Used for DDL changes using gh-ost.+ MIGRATE_GHOST = 4;+ // Used when restoring from a backup (the restored database branched from the original backup).+ BRANCH = 5;+ // Used for DML change.+ DATA = 6;+ }+ Type type = 3;+ // schema_version is parsed from VCS file name.+ // It is automatically generated in the UI workflow.+ string schema_version = 4;++ // If RollbackEnabled, build the RollbackSheetID of the task.+ bool rollback_enabled = 5;+ }++ message RestoreDatabaseConfig {+ // The resource name of the target to restore.+ // Format: instances/{instance}/databases/{database}+ string target = 1;+ // create_database_config is present if the user wants to restore to a new database.+ optional CreateDatabaseConfig create_database_config = 2;+ // source determines how to restore the database.+ // 1. from a backup+ // 2. from a point in time+ oneof source {+ // FIXME: format TBD+ // Restore from a backup.+ string backup = 3;+ // After the PITR operations, the database will be recovered to the state at this time.+ google.protobuf.Timestamp point_in_time = 4;+ }+ }+}++message ListPlanCheckRunsRequest {+ // The parent, which owns this collection of plan check runs.+ // Format: projects/{project}/plans/{plan}+ string parent = 1 [(google.api.field_behavior) = REQUIRED];++ // The maximum number of plan check runs to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 plans will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ int32 page_size = 2;++ // A page token, received from a previous `ListPlanCheckRuns` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListPlanCheckRuns` must match+ // the call that provided the page token.+ string page_token = 3;+}++message ListPlanCheckRunsResponse {+ // The plan check runs from the specified request.+ repeated PlanCheckRun plan_check_runs = 1;++ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ string next_page_token = 2;+}++message PlanCheckRun {+ // Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}+ string name = 1;++ // The system-assigned, unique identifier for a resource.+ string uid = 2;++ enum Type {+ TYPE_UNSPECIFIED = 0;+ DATABASE_STATEMENT_FAKE_ADVISE = 1;+ DATABASE_STATEMENT_SYNTAX = 2;+ DATABASE_STATEMENT_COMPATIBILITY = 3;+ DATABASE_STATEMENT_ADVISE = 4;+ DATABASE_STATEMENT_TYPE = 5;+ DATABASE_STATEMENT_TYPE_REPORT = 6;+ DATABASE_STATEMENT_AFFECTED_ROWS_REPORT = 7;+ DATABASE_CONNECT = 8;+ DATABASE_GHOST_SYNC = 9;+ DATABASE_PITR_MYSQL = 10;+ }+ Type type = 3;++ enum Status {+ STATUS_UNSPECIFIED = 0;+ RUNNING = 1;+ DONE = 2;+ FAILED = 3;+ CANCELED = 4;+ }+ Status status = 4;++ // Format: instances/{instance}/databases/{database}+ string target = 5;+ // Format: sheets/{sheet}+ string sheet = 6;++ string detail = 7;+ repeated Result results = 8;++ message Result {+ enum Namespace {+ NAMESPACE_UNSPECIFIED = 0;+ BYTEBASE = 1;+ ADVISOR = 2;+ }+ Namespace namespace = 1;+ int64 code = 2;+ enum Status {+ STATUS_UNSPECIFIED = 0;+ ERROR = 1;+ WARNING = 2;+ SUCCESS = 3;+ }+ Status status = 3;+ string title = 4;+ string content = 5;+ int64 line = 6;+ string detail = 7;+ }+}++message GetRolloutRequest {+ // The name of the rollout to retrieve.+ // Format: projects/{project}/rollouts/{rollout}+ string name = 1 [(google.api.field_behavior) = REQUIRED];+}++message Rollout {+ // The resource name of the rollout.+ // Format: projects/{project}/rollouts/{rollout}+ string name = 1;++ // The system-assigned, unique identifier for a resource.+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];++ // The plan that this rollout is based on.+ // Format: projects/{project}/plans/{plan}+ string plan = 3;++ string title = 4;++ // stages and thus tasks of the rollout.+ repeated Stage stages = 5;+}++message Stage {+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ string name = 1;+ // The system-assigned, unique identifier for a resource.+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];+ // Format: environments/{environment}+ string environment = 3;++ string title = 4;+ repeated Task tasks = 5;+}++message Task {+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ string name = 1;+ // The system-assigned, unique identifier for a resource.+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];string title = 3;- string description = 4;+ enum Type {+ TYPE_UNSPECIFIED = 0;+ GENERAL = 1;+ // use payload DatabaseCreate+ DATABASE_CREATE = 2;+ // use payload DatabaseSchemaBaseline+ DATABASE_SCHEMA_BASELINE = 3;+ // use payload DatabaseSchemaUpdate+ DATABASE_SCHEMA_UPDATE = 4;+ // use payload DatabaseSchemaUpdate+ DATABASE_SCHEMA_UPDATE_SDL = 5;+ // use payload DatabaseSchemaUpdate+ DATABASE_SCHEMA_UPDATE_GHOST_SYNC = 6;+ // use payload nil+ DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER = 7;+ // use payload DatabaseDataUpdate+ DATABASE_DATA_UPDATE = 8;+ // use payload DatabaseBackup+ DATABASE_BACKUP = 9;+ // use payload DatabaseRestoreRestore+ DATABASE_RESTORE_RESTORE = 10;+ // use payload nil+ DATABASE_RESTORE_CUTOVER = 11;+ }+ Type type = 4;++ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ repeated string blocked_by_tasks = 5;++ // Format: instances/{instance}/databases/{database}+ string target = 6;++ message DatabaseCreate {+ // The project owning the database.+ // Format: projects/{project}+ string project = 1;+ // database name+ string database = 2;+ // table name+ string table = 3;+ // Format: sheets/{sheet}+ string sheet = 4;+ string character_set = 5;+ string collection = 6;+ map<string, string> labels = 7;+ }++ message DatabaseSchemaBaseline {+ string schema_version = 1;+ }++ message DatabaseSchemaUpdate {+ // Format: sheets/{sheet}+ string sheet = 1;+ string schema_version = 2;+ }++ message DatabaseDataUpdate {+ // Format: sheets/{sheet}+ string sheet = 1;+ string schema_version = 2;++ // MySQL rollback SQL related.++ // Build the rollback SQL if rollback_enabled.+ bool rollback_enabled = 3;+ enum RollbackSqlStatus {+ ROLLBACK_SQL_STATUS_UNSPECIFIED = 0;+ PENDING = 1;+ DONE = 2;+ FAILED = 3;+ }+ // The status of the rollback SQL generation.+ RollbackSqlStatus rollback_sql_status = 4;+ // transaction_id is the ID of the transaction executing the migration.+ // It is only use for Oracle to find Rollback SQL statement now.+ string transaction_id = 5;+ // thread_id is the ID of the connection executing the migration.+ // We use it to filter the binlog events of the migration transaction.+ string thread_id = 6;+ // change_history is the resource name of the change history.+ // We use it to get the schema when the transaction ran.+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ string change_history = 7;+ string binlog_file_start = 8;+ string binlog_file_end = 9;+ int64 binlog_position_start = 10;+ int64 binlog_position_end = 11;+ string rollback_error = 12;+ // rollback_sheet is the resource name of+ // the sheet that stores the generated rollback SQL statement.+ // Format: sheets/{sheet}+ string rollback_sheet = 13;+ // rollback_from_review is the resource name of the review that+ // the rollback SQL statement is generated from.+ // Format: projects/{project}/reviews/{review}+ string rollback_from_review = 14;+ // rollback_from_task is the resource name of the task that+ // the rollback SQL statement is generated from.+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ string rollback_from_task = 15;+ }++ message DatabaseBackup {+ // The resource name of the backup.+ // FIXME: format TBD.+ string backup = 1;+ }++ message DatabaseRestoreRestore {+ // Target is only used when doing restore to a new database now.+ // It is empty for the case of in-place restore.+ // Target {instance} must be within the same environment as the instance of the original database.+ // {database} is the target database name.+ // Format: instances/{instance}/databases/database+ string target = 1;++ oneof source {+ // Only used when doing restore full backup only.+ string backup = 2;+ // After the PITR operations, the database will be recovered to the state at this time.+ google.protobuf.Timestamp point_in_time = 3;+ }+ }++ oneof payload {+ DatabaseCreate database_case = 7;+ DatabaseSchemaBaseline database_schema_baseline = 8;+ DatabaseSchemaUpdate database_schema_update = 9;+ DatabaseDataUpdate database_data_update = 10;+ DatabaseRestoreRestore database_restore_restore = 11;+ }+}++message TaskRun {+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskrun}+ string name = 1;+ // The system-assigned, unique identifier for a resource.+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];++ // Format: user:[email protected]+ string creator = 3;+ // Format: user:[email protected]+ string updater = 4;+ google.protobuf.Timestamp create_time = 5;+ google.protobuf.Timestamp update_time = 6;++ string title = 7;++ enum Status {+ STATUS_UNSPECIFIED = 0;+ PENDING = 1;+ RUNNING = 2;+ COMPLETED = 3;+ FAILED = 4;+ CANCELED = 5;+ SKIPPED = 6;+ }+ Status status = 8;- // TODO(d/xz): support spec with 1) deployment config, 2) user specified targets with stages/steps, 3) project groups in the future.+ // Below are the results of a task run.+ string detail = 9;+ // The resource name of the change history+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ string change_history = 10;+ string schema_version = 11;}