Skip to content

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

feat(proto): change history in database service (#6144)

p0ny0c0205a8715a
diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.ts
index 61c332ff4c..a9ca8279aa 100644
--- a/frontend/src/types/proto/v1/database_service.ts
+++ b/frontend/src/types/proto/v1/database_service.ts
@@ -11,6 +11,49 @@ import { State, stateFromJSON, stateToJSON } from "./common";
export const protobufPackage = "bytebase.v1";
+export enum ChangeHistoryView {
+ /**
+ * CHANGE_HISTORY_VIEW_UNSPECIFIED - The default / unset value.
+ * The API will default to the BASIC view.
+ */
+ CHANGE_HISTORY_VIEW_UNSPECIFIED = 0,
+ CHANGE_HISTORY_VIEW_BASIC = 1,
+ CHANGE_HISTORY_VIEW_FULL = 2,
+ UNRECOGNIZED = -1,
+}
+
+export function changeHistoryViewFromJSON(object: any): ChangeHistoryView {
+ switch (object) {
+ case 0:
+ case "CHANGE_HISTORY_VIEW_UNSPECIFIED":
+ return ChangeHistoryView.CHANGE_HISTORY_VIEW_UNSPECIFIED;
+ case 1:
+ case "CHANGE_HISTORY_VIEW_BASIC":
+ return ChangeHistoryView.CHANGE_HISTORY_VIEW_BASIC;
+ case 2:
+ case "CHANGE_HISTORY_VIEW_FULL":
+ return ChangeHistoryView.CHANGE_HISTORY_VIEW_FULL;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return ChangeHistoryView.UNRECOGNIZED;
+ }
+}
+
+export function changeHistoryViewToJSON(object: ChangeHistoryView): string {
+ switch (object) {
+ case ChangeHistoryView.CHANGE_HISTORY_VIEW_UNSPECIFIED:
+ return "CHANGE_HISTORY_VIEW_UNSPECIFIED";
+ case ChangeHistoryView.CHANGE_HISTORY_VIEW_BASIC:
+ return "CHANGE_HISTORY_VIEW_BASIC";
+ case ChangeHistoryView.CHANGE_HISTORY_VIEW_FULL:
+ return "CHANGE_HISTORY_VIEW_FULL";
+ case ChangeHistoryView.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
export interface GetDatabaseRequest {
/**
* The name of the database to retrieve.
@@ -438,7 +481,7 @@ export interface Backup {
* Format: instances/{instance}/databases/{database}/backups/{backup-name}
*/
name: string;
- /** The timestamp when the backup resource was created initally. */
+ /** The timestamp when the backup resource was created initially. */
createTime?: Date;
/** The timestamp when the backup resource was updated. */
updateTime?: Date;
@@ -704,13 +747,13 @@ export interface Secret {
* instances/{instance}/databases/{database}/secrets/{secret}
*/
name: string;
- /** Not used. The timestamp when the secret resource was created initally. */
+ /** Not used. The timestamp when the secret resource was created initially. */
createdTime?: Date;
/** Not used. The timestamp when the secret resource was updated. */
updatedTime?: Date;
/** The value of the secret. */
value: string;
- /** The decsription of the secret. */
+ /** The description of the secret. */
description: string;
}
@@ -732,6 +775,226 @@ export interface AdviseIndexResponse {
createIndexStatement: string;
}
+export interface ChangeHistory {
+ /** Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} */
+ name: string;
+ uid: string;
+ /** Format: users/[email protected] */
+ creator: string;
+ /** Format: users/[email protected] */
+ updater: string;
+ createTime?: Date;
+ updateTime?: Date;
+ /** release version of Bytebase */
+ releaseVersion: string;
+ source: ChangeHistory_Source;
+ type: ChangeHistory_Type;
+ status: ChangeHistory_Status;
+ version: string;
+ description: string;
+ statement: string;
+ schema: string;
+ prevSchema: string;
+ executionDuration?: Duration;
+ /** Format: projects/{project}/reviews/{review} */
+ review: string;
+}
+
+export enum ChangeHistory_Source {
+ SOURCE_UNSPECIFIED = 0,
+ UI = 1,
+ VCS = 2,
+ LIBRARY = 3,
+ UNRECOGNIZED = -1,
+}
+
+export function changeHistory_SourceFromJSON(object: any): ChangeHistory_Source {
+ switch (object) {
+ case 0:
+ case "SOURCE_UNSPECIFIED":
+ return ChangeHistory_Source.SOURCE_UNSPECIFIED;
+ case 1:
+ case "UI":
+ return ChangeHistory_Source.UI;
+ case 2:
+ case "VCS":
+ return ChangeHistory_Source.VCS;
+ case 3:
+ case "LIBRARY":
+ return ChangeHistory_Source.LIBRARY;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return ChangeHistory_Source.UNRECOGNIZED;
+ }
+}
+
+export function changeHistory_SourceToJSON(object: ChangeHistory_Source): string {
+ switch (object) {
+ case ChangeHistory_Source.SOURCE_UNSPECIFIED:
+ return "SOURCE_UNSPECIFIED";
+ case ChangeHistory_Source.UI:
+ return "UI";
+ case ChangeHistory_Source.VCS:
+ return "VCS";
+ case ChangeHistory_Source.LIBRARY:
+ return "LIBRARY";
+ case ChangeHistory_Source.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export enum ChangeHistory_Type {
+ TYPE_UNSPECIFIED = 0,
+ BASELINE = 1,
+ MIGRATE = 2,
+ MIGRATE_SDL = 3,
+ MIGRATE_GHOST = 4,
+ BRANCH = 5,
+ DATA = 6,
+ UNRECOGNIZED = -1,
+}
+
+export function changeHistory_TypeFromJSON(object: any): ChangeHistory_Type {
+ switch (object) {
+ case 0:
+ case "TYPE_UNSPECIFIED":
+ return ChangeHistory_Type.TYPE_UNSPECIFIED;
+ case 1:
+ case "BASELINE":
+ return ChangeHistory_Type.BASELINE;
+ case 2:
+ case "MIGRATE":
+ return ChangeHistory_Type.MIGRATE;
+ case 3:
+ case "MIGRATE_SDL":
+ return ChangeHistory_Type.MIGRATE_SDL;
+ case 4:
+ case "MIGRATE_GHOST":
+ return ChangeHistory_Type.MIGRATE_GHOST;
+ case 5:
+ case "BRANCH":
+ return ChangeHistory_Type.BRANCH;
+ case 6:
+ case "DATA":
+ return ChangeHistory_Type.DATA;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return ChangeHistory_Type.UNRECOGNIZED;
+ }
+}
+
+export function changeHistory_TypeToJSON(object: ChangeHistory_Type): string {
+ switch (object) {
+ case ChangeHistory_Type.TYPE_UNSPECIFIED:
+ return "TYPE_UNSPECIFIED";
+ case ChangeHistory_Type.BASELINE:
+ return "BASELINE";
+ case ChangeHistory_Type.MIGRATE:
+ return "MIGRATE";
+ case ChangeHistory_Type.MIGRATE_SDL:
+ return "MIGRATE_SDL";
+ case ChangeHistory_Type.MIGRATE_GHOST:
+ return "MIGRATE_GHOST";
+ case ChangeHistory_Type.BRANCH:
+ return "BRANCH";
+ case ChangeHistory_Type.DATA:
+ return "DATA";
+ case ChangeHistory_Type.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export enum ChangeHistory_Status {
+ STATUS_UNSPECIFIED = 0,
+ PENDING = 1,
+ COMPLETED = 2,
+ FAILED = 3,
+ UNRECOGNIZED = -1,
+}
+
+export function changeHistory_StatusFromJSON(object: any): ChangeHistory_Status {
+ switch (object) {
+ case 0:
+ case "STATUS_UNSPECIFIED":
+ return ChangeHistory_Status.STATUS_UNSPECIFIED;
+ case 1:
+ case "PENDING":
+ return ChangeHistory_Status.PENDING;
+ case 2:
+ case "COMPLETED":
+ return ChangeHistory_Status.COMPLETED;
+ case 3:
+ case "FAILED":
+ return ChangeHistory_Status.FAILED;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return ChangeHistory_Status.UNRECOGNIZED;
+ }
+}
+
+export function changeHistory_StatusToJSON(object: ChangeHistory_Status): string {
+ switch (object) {
+ case ChangeHistory_Status.STATUS_UNSPECIFIED:
+ return "STATUS_UNSPECIFIED";
+ case ChangeHistory_Status.PENDING:
+ return "PENDING";
+ case ChangeHistory_Status.COMPLETED:
+ return "COMPLETED";
+ case ChangeHistory_Status.FAILED:
+ return "FAILED";
+ case ChangeHistory_Status.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export interface ListChangeHistoriesRequest {
+ /**
+ * The parent of the change histories.
+ * Format: instances/{instance}/databases/{database}
+ */
+ parent: string;
+ /**
+ * Not used. The maximum number of change histories to return. The service may return fewer than this value.
+ * If unspecified, at most 50 change histories will be returned.
+ * The maximum value is 1000; values above 1000 will be coerced to 1000.
+ */
+ pageSize: number;
+ /**
+ * Not used. A page token, received from a previous `ListChangeHistories` call.
+ * Provide this to retrieve the subsequent page.
+ *
+ * When paginating, all other parameters provided to `ListChangeHistories` must match
+ * the call that provided the page token.
+ */
+ pageToken: string;
+ view: ChangeHistoryView;
+}
+
+export interface ListChangeHistoriesResponse {
+ /** The list of change histories. */
+ changeHistories: ChangeHistory[];
+ /**
+ * Not used. A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ */
+ nextPageToken: string;
+}
+
+export interface GetChangeHistoryRequest {
+ /**
+ * The name of the change history to retrieve.
+ * Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}
+ */
+ name: string;
+ view: ChangeHistoryView;
+}
+
function createBaseGetDatabaseRequest(): GetDatabaseRequest {
return { name: "" };
}
@@ -4738,140 +5001,672 @@ export const AdviseIndexResponse = {
},
};
-export type DatabaseServiceDefinition = typeof DatabaseServiceDefinition;
-export const DatabaseServiceDefinition = {
- name: "DatabaseService",
- fullName: "bytebase.v1.DatabaseService",
- methods: {
- getDatabase: {
- name: "GetDatabase",
- requestType: GetDatabaseRequest,
- requestStream: false,
- responseType: Database,
- responseStream: false,
- options: {
- _unknownFields: {
- 8410: [new Uint8Array([4, 110, 97, 109, 101])],
- 578365826: [
- new Uint8Array([
- 36,
- 18,
- 34,
- 47,
- 118,
- 49,
- 47,
- 123,
- 110,
- 97,
- 109,
- 101,
- 61,
- 105,
- 110,
- 115,
- 116,
- 97,
- 110,
- 99,
- 101,
- 115,
- 47,
- 42,
- 47,
- 100,
- 97,
- 116,
- 97,
- 98,
- 97,
- 115,
- 101,
- 115,
- 47,
- 42,
- 125,
- ]),
- ],
- },
- },
- },
- listDatabases: {
- name: "ListDatabases",
- requestType: ListDatabasesRequest,
- requestStream: false,
- responseType: ListDatabasesResponse,
- responseStream: false,
- options: {
- _unknownFields: {
- 8410: [new Uint8Array([0])],
- 578365826: [
- new Uint8Array([
- 36,
- 18,
- 34,
- 47,
- 118,
- 49,
- 47,
- 123,
- 112,
- 97,
- 114,
- 101,
- 110,
- 116,
- 61,
- 105,
- 110,
- 115,
- 116,
- 97,
- 110,
- 99,
- 101,
- 115,
- 47,
- 42,
- 125,
- 47,
- 100,
- 97,
- 116,
- 97,
- 98,
- 97,
- 115,
- 101,
- 115,
- ]),
- ],
- },
- },
- },
- /** Search for databases that the caller has both projects.get permission on, and also satisfy the specified query. */
- searchDatabases: {
- name: "SearchDatabases",
- requestType: SearchDatabasesRequest,
- requestStream: false,
- responseType: SearchDatabasesResponse,
- responseStream: false,
- options: {
- _unknownFields: {
- 8410: [new Uint8Array([0])],
- 578365826: [
- new Uint8Array([
- 43,
- 18,
- 41,
- 47,
- 118,
- 49,
- 47,
- 123,
- 112,
- 97,
- 114,
+function createBaseChangeHistory(): ChangeHistory {
+ return {
+ name: "",
+ uid: "",
+ creator: "",
+ updater: "",
+ createTime: undefined,
+ updateTime: undefined,
+ releaseVersion: "",
+ source: 0,
+ type: 0,
+ status: 0,
+ version: "",
+ description: "",
+ statement: "",
+ schema: "",
+ prevSchema: "",
+ executionDuration: undefined,
+ review: "",
+ };
+}
+
+export const ChangeHistory = {
+ encode(message: ChangeHistory, 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.releaseVersion !== "") {
+ writer.uint32(58).string(message.releaseVersion);
+ }
+ if (message.source !== 0) {
+ writer.uint32(64).int32(message.source);
+ }
+ if (message.type !== 0) {
+ writer.uint32(72).int32(message.type);
+ }
+ if (message.status !== 0) {
+ writer.uint32(80).int32(message.status);
+ }
+ if (message.version !== "") {
+ writer.uint32(90).string(message.version);
+ }
+ if (message.description !== "") {
+ writer.uint32(98).string(message.description);
+ }
+ if (message.statement !== "") {
+ writer.uint32(106).string(message.statement);
+ }
+ if (message.schema !== "") {
+ writer.uint32(114).string(message.schema);
+ }
+ if (message.prevSchema !== "") {
+ writer.uint32(122).string(message.prevSchema);
+ }
+ if (message.executionDuration !== undefined) {
+ Duration.encode(message.executionDuration, writer.uint32(130).fork()).ldelim();
+ }
+ if (message.review !== "") {
+ writer.uint32(138).string(message.review);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChangeHistory {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseChangeHistory();
+ 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.releaseVersion = reader.string();
+ continue;
+ case 8:
+ if (tag !== 64) {
+ break;
+ }
+
+ message.source = reader.int32() as any;
+ continue;
+ case 9:
+ if (tag !== 72) {
+ break;
+ }
+
+ message.type = reader.int32() as any;
+ continue;
+ case 10:
+ if (tag !== 80) {
+ break;
+ }
+
+ message.status = reader.int32() as any;
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.version = reader.string();
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.description = reader.string();
+ continue;
+ case 13:
+ if (tag !== 106) {
+ break;
+ }
+
+ message.statement = reader.string();
+ continue;
+ case 14:
+ if (tag !== 114) {
+ break;
+ }
+
+ message.schema = reader.string();
+ continue;
+ case 15:
+ if (tag !== 122) {
+ break;
+ }
+
+ message.prevSchema = reader.string();
+ continue;
+ case 16:
+ if (tag !== 130) {
+ break;
+ }
+
+ message.executionDuration = Duration.decode(reader, reader.uint32());
+ continue;
+ case 17:
+ if (tag !== 138) {
+ break;
+ }
+
+ message.review = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): ChangeHistory {
+ 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,
+ releaseVersion: isSet(object.releaseVersion) ? String(object.releaseVersion) : "",
+ source: isSet(object.source) ? changeHistory_SourceFromJSON(object.source) : 0,
+ type: isSet(object.type) ? changeHistory_TypeFromJSON(object.type) : 0,
+ status: isSet(object.status) ? changeHistory_StatusFromJSON(object.status) : 0,
+ version: isSet(object.version) ? String(object.version) : "",
+ description: isSet(object.description) ? String(object.description) : "",
+ statement: isSet(object.statement) ? String(object.statement) : "",
+ schema: isSet(object.schema) ? String(object.schema) : "",
+ prevSchema: isSet(object.prevSchema) ? String(object.prevSchema) : "",
+ executionDuration: isSet(object.executionDuration) ? Duration.fromJSON(object.executionDuration) : undefined,
+ review: isSet(object.review) ? String(object.review) : "",
+ };
+ },
+
+ toJSON(message: ChangeHistory): 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.releaseVersion !== undefined && (obj.releaseVersion = message.releaseVersion);
+ message.source !== undefined && (obj.source = changeHistory_SourceToJSON(message.source));
+ message.type !== undefined && (obj.type = changeHistory_TypeToJSON(message.type));
+ message.status !== undefined && (obj.status = changeHistory_StatusToJSON(message.status));
+ message.version !== undefined && (obj.version = message.version);
+ message.description !== undefined && (obj.description = message.description);
+ message.statement !== undefined && (obj.statement = message.statement);
+ message.schema !== undefined && (obj.schema = message.schema);
+ message.prevSchema !== undefined && (obj.prevSchema = message.prevSchema);
+ message.executionDuration !== undefined &&
+ (obj.executionDuration = message.executionDuration ? Duration.toJSON(message.executionDuration) : undefined);
+ message.review !== undefined && (obj.review = message.review);
+ return obj;
+ },
+
+ create(base?: DeepPartial<ChangeHistory>): ChangeHistory {
+ return ChangeHistory.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<ChangeHistory>): ChangeHistory {
+ const message = createBaseChangeHistory();
+ 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.releaseVersion = object.releaseVersion ?? "";
+ message.source = object.source ?? 0;
+ message.type = object.type ?? 0;
+ message.status = object.status ?? 0;
+ message.version = object.version ?? "";
+ message.description = object.description ?? "";
+ message.statement = object.statement ?? "";
+ message.schema = object.schema ?? "";
+ message.prevSchema = object.prevSchema ?? "";
+ message.executionDuration = (object.executionDuration !== undefined && object.executionDuration !== null)
+ ? Duration.fromPartial(object.executionDuration)
+ : undefined;
+ message.review = object.review ?? "";
+ return message;
+ },
+};
+
+function createBaseListChangeHistoriesRequest(): ListChangeHistoriesRequest {
+ return { parent: "", pageSize: 0, pageToken: "", view: 0 };
+}
+
+export const ListChangeHistoriesRequest = {
+ encode(message: ListChangeHistoriesRequest, 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);
+ }
+ if (message.view !== 0) {
+ writer.uint32(32).int32(message.view);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListChangeHistoriesRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseListChangeHistoriesRequest();
+ 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;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+
+ message.view = reader.int32() as any;
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): ListChangeHistoriesRequest {
+ return {
+ parent: isSet(object.parent) ? String(object.parent) : "",
+ pageSize: isSet(object.pageSize) ? Number(object.pageSize) : 0,
+ pageToken: isSet(object.pageToken) ? String(object.pageToken) : "",
+ view: isSet(object.view) ? changeHistoryViewFromJSON(object.view) : 0,
+ };
+ },
+
+ toJSON(message: ListChangeHistoriesRequest): 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);
+ message.view !== undefined && (obj.view = changeHistoryViewToJSON(message.view));
+ return obj;
+ },
+
+ create(base?: DeepPartial<ListChangeHistoriesRequest>): ListChangeHistoriesRequest {
+ return ListChangeHistoriesRequest.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<ListChangeHistoriesRequest>): ListChangeHistoriesRequest {
+ const message = createBaseListChangeHistoriesRequest();
+ message.parent = object.parent ?? "";
+ message.pageSize = object.pageSize ?? 0;
+ message.pageToken = object.pageToken ?? "";
+ message.view = object.view ?? 0;
+ return message;
+ },
+};
+
+function createBaseListChangeHistoriesResponse(): ListChangeHistoriesResponse {
+ return { changeHistories: [], nextPageToken: "" };
+}
+
+export const ListChangeHistoriesResponse = {
+ encode(message: ListChangeHistoriesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.changeHistories) {
+ ChangeHistory.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): ListChangeHistoriesResponse {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseListChangeHistoriesResponse();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.changeHistories.push(ChangeHistory.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): ListChangeHistoriesResponse {
+ return {
+ changeHistories: Array.isArray(object?.changeHistories)
+ ? object.changeHistories.map((e: any) => ChangeHistory.fromJSON(e))
+ : [],
+ nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "",
+ };
+ },
+
+ toJSON(message: ListChangeHistoriesResponse): unknown {
+ const obj: any = {};
+ if (message.changeHistories) {
+ obj.changeHistories = message.changeHistories.map((e) => e ? ChangeHistory.toJSON(e) : undefined);
+ } else {
+ obj.changeHistories = [];
+ }
+ message.nextPageToken !== undefined && (obj.nextPageToken = message.nextPageToken);
+ return obj;
+ },
+
+ create(base?: DeepPartial<ListChangeHistoriesResponse>): ListChangeHistoriesResponse {
+ return ListChangeHistoriesResponse.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<ListChangeHistoriesResponse>): ListChangeHistoriesResponse {
+ const message = createBaseListChangeHistoriesResponse();
+ message.changeHistories = object.changeHistories?.map((e) => ChangeHistory.fromPartial(e)) || [];
+ message.nextPageToken = object.nextPageToken ?? "";
+ return message;
+ },
+};
+
+function createBaseGetChangeHistoryRequest(): GetChangeHistoryRequest {
+ return { name: "", view: 0 };
+}
+
+export const GetChangeHistoryRequest = {
+ encode(message: GetChangeHistoryRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.view !== 0) {
+ writer.uint32(16).int32(message.view);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetChangeHistoryRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseGetChangeHistoryRequest();
+ 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 !== 16) {
+ break;
+ }
+
+ message.view = reader.int32() as any;
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): GetChangeHistoryRequest {
+ return {
+ name: isSet(object.name) ? String(object.name) : "",
+ view: isSet(object.view) ? changeHistoryViewFromJSON(object.view) : 0,
+ };
+ },
+
+ toJSON(message: GetChangeHistoryRequest): unknown {
+ const obj: any = {};
+ message.name !== undefined && (obj.name = message.name);
+ message.view !== undefined && (obj.view = changeHistoryViewToJSON(message.view));
+ return obj;
+ },
+
+ create(base?: DeepPartial<GetChangeHistoryRequest>): GetChangeHistoryRequest {
+ return GetChangeHistoryRequest.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<GetChangeHistoryRequest>): GetChangeHistoryRequest {
+ const message = createBaseGetChangeHistoryRequest();
+ message.name = object.name ?? "";
+ message.view = object.view ?? 0;
+ return message;
+ },
+};
+
+export type DatabaseServiceDefinition = typeof DatabaseServiceDefinition;
+export const DatabaseServiceDefinition = {
+ name: "DatabaseService",
+ fullName: "bytebase.v1.DatabaseService",
+ methods: {
+ getDatabase: {
+ name: "GetDatabase",
+ requestType: GetDatabaseRequest,
+ requestStream: false,
+ responseType: Database,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],
+ 578365826: [
+ new Uint8Array([
+ 36,
+ 18,
+ 34,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 110,
+ 97,
+ 109,
+ 101,
+ 61,
+ 105,
+ 110,
+ 115,
+ 116,
+ 97,
+ 110,
+ 99,
+ 101,
+ 115,
+ 47,
+ 42,
+ 47,
+ 100,
+ 97,
+ 116,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 115,
+ 47,
+ 42,
+ 125,
+ ]),
+ ],
+ },
+ },
+ },
+ listDatabases: {
+ name: "ListDatabases",
+ requestType: ListDatabasesRequest,
+ requestStream: false,
+ responseType: ListDatabasesResponse,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([0])],
+ 578365826: [
+ new Uint8Array([
+ 36,
+ 18,
+ 34,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 112,
+ 97,
+ 114,
+ 101,
+ 110,
+ 116,
+ 61,
+ 105,
+ 110,
+ 115,
+ 116,
+ 97,
+ 110,
+ 99,
+ 101,
+ 115,
+ 47,
+ 42,
+ 125,
+ 47,
+ 100,
+ 97,
+ 116,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 115,
+ ]),
+ ],
+ },
+ },
+ },
+ /** Search for databases that the caller has both projects.get permission on, and also satisfy the specified query. */
+ searchDatabases: {
+ name: "SearchDatabases",
+ requestType: SearchDatabasesRequest,
+ requestStream: false,
+ responseType: SearchDatabasesResponse,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([0])],
+ 578365826: [
+ new Uint8Array([
+ 43,
+ 18,
+ 41,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 112,
+ 97,
+ 114,
101,
110,
116,
@@ -5811,6 +6606,148 @@ export const DatabaseServiceDefinition = {
},
},
},
+ listChangeHistories: {
+ name: "ListChangeHistories",
+ requestType: ListChangeHistoriesRequest,
+ requestStream: false,
+ responseType: ListChangeHistoriesResponse,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],
+ 578365826: [
+ new Uint8Array([
+ 54,
+ 18,
+ 52,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 112,
+ 97,
+ 114,
+ 101,
+ 110,
+ 116,
+ 61,
+ 105,
+ 110,
+ 115,
+ 116,
+ 97,
+ 110,
+ 99,
+ 101,
+ 115,
+ 47,
+ 42,
+ 47,
+ 100,
+ 97,
+ 116,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 115,
+ 47,
+ 42,
+ 125,
+ 47,
+ 99,
+ 104,
+ 97,
+ 110,
+ 103,
+ 101,
+ 72,
+ 105,
+ 115,
+ 116,
+ 111,
+ 114,
+ 105,
+ 101,
+ 115,
+ ]),
+ ],
+ },
+ },
+ },
+ getChangeHistory: {
+ name: "GetChangeHistory",
+ requestType: GetChangeHistoryRequest,
+ requestStream: false,
+ responseType: ChangeHistory,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],
+ 578365826: [
+ new Uint8Array([
+ 54,
+ 18,
+ 52,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 110,
+ 97,
+ 109,
+ 101,
+ 61,
+ 105,
+ 110,
+ 115,
+ 116,
+ 97,
+ 110,
+ 99,
+ 101,
+ 115,
+ 47,
+ 42,
+ 47,
+ 100,
+ 97,
+ 116,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 115,
+ 47,
+ 42,
+ 47,
+ 99,
+ 104,
+ 97,
+ 110,
+ 103,
+ 101,
+ 72,
+ 105,
+ 115,
+ 116,
+ 111,
+ 114,
+ 105,
+ 101,
+ 115,
+ 47,
+ 42,
+ 125,
+ ]),
+ ],
+ },
+ },
+ },
},
} as const;
@@ -5865,6 +6802,14 @@ export interface DatabaseServiceImplementation<CallContextExt = {}> {
request: AdviseIndexRequest,
context: CallContext & CallContextExt,
): Promise<DeepPartial<AdviseIndexResponse>>;
+ listChangeHistories(
+ request: ListChangeHistoriesRequest,
+ context: CallContext & CallContextExt,
+ ): Promise<DeepPartial<ListChangeHistoriesResponse>>;
+ getChangeHistory(
+ request: GetChangeHistoryRequest,
+ context: CallContext & CallContextExt,
+ ): Promise<DeepPartial<ChangeHistory>>;
}
export interface DatabaseServiceClient<CallOptionsExt = {}> {
@@ -5921,6 +6866,14 @@ export interface DatabaseServiceClient<CallOptionsExt = {}> {
request: DeepPartial<AdviseIndexRequest>,
options?: CallOptions & CallOptionsExt,
): Promise<AdviseIndexResponse>;
+ listChangeHistories(
+ request: DeepPartial<ListChangeHistoriesRequest>,
+ options?: CallOptions & CallOptionsExt,
+ ): Promise<ListChangeHistoriesResponse>;
+ getChangeHistory(
+ request: DeepPartial<GetChangeHistoryRequest>,
+ options?: CallOptions & CallOptionsExt,
+ ): Promise<ChangeHistory>;
}
declare var self: any | undefined;
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 59807c40a0..c9ffea5ce7 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -67,6 +67,7 @@
- [BackupSetting](#bytebase-v1-BackupSetting)
- [BatchUpdateDatabasesRequest](#bytebase-v1-BatchUpdateDatabasesRequest)
- [BatchUpdateDatabasesResponse](#bytebase-v1-BatchUpdateDatabasesResponse)
+ - [ChangeHistory](#bytebase-v1-ChangeHistory)
- [ColumnMetadata](#bytebase-v1-ColumnMetadata)
- [CreateBackupRequest](#bytebase-v1-CreateBackupRequest)
- [Database](#bytebase-v1-Database)
@@ -79,12 +80,15 @@
- [ForeignKeyMetadata](#bytebase-v1-ForeignKeyMetadata)
- [FunctionMetadata](#bytebase-v1-FunctionMetadata)
- [GetBackupSettingRequest](#bytebase-v1-GetBackupSettingRequest)
+ - [GetChangeHistoryRequest](#bytebase-v1-GetChangeHistoryRequest)
- [GetDatabaseMetadataRequest](#bytebase-v1-GetDatabaseMetadataRequest)
- [GetDatabaseRequest](#bytebase-v1-GetDatabaseRequest)
- [GetDatabaseSchemaRequest](#bytebase-v1-GetDatabaseSchemaRequest)
- [IndexMetadata](#bytebase-v1-IndexMetadata)
- [ListBackupRequest](#bytebase-v1-ListBackupRequest)
- [ListBackupResponse](#bytebase-v1-ListBackupResponse)
+ - [ListChangeHistoriesRequest](#bytebase-v1-ListChangeHistoriesRequest)
+ - [ListChangeHistoriesResponse](#bytebase-v1-ListChangeHistoriesResponse)
- [ListDatabasesRequest](#bytebase-v1-ListDatabasesRequest)
- [ListDatabasesResponse](#bytebase-v1-ListDatabasesResponse)
- [ListSecretsRequest](#bytebase-v1-ListSecretsRequest)
@@ -106,6 +110,10 @@
- [Backup.BackupState](#bytebase-v1-Backup-BackupState)
- [Backup.BackupType](#bytebase-v1-Backup-BackupType)
+ - [ChangeHistory.Source](#bytebase-v1-ChangeHistory-Source)
+ - [ChangeHistory.Status](#bytebase-v1-ChangeHistory-Status)
+ - [ChangeHistory.Type](#bytebase-v1-ChangeHistory-Type)
+ - [ChangeHistoryView](#bytebase-v1-ChangeHistoryView)
- [DatabaseService](#bytebase-v1-DatabaseService)
@@ -1196,7 +1204,7 @@ The message of the backup.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | The resource name of the database backup. backup-name is specified by the client. Format: instances/{instance}/databases/{database}/backups/{backup-name} |
-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the backup resource was created initally. |
+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the backup resource was created initially. |
| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the backup resource was updated. |
| state | [Backup.BackupState](#bytebase-v1-Backup-BackupState) | | The state of the backup. |
| backup_type | [Backup.BackupType](#bytebase-v1-Backup-BackupType) | | The type of the backup. |
@@ -1258,6 +1266,37 @@ Default (empty): Disable automatic backup. |
+<a name="bytebase-v1-ChangeHistory"></a>
+
+### ChangeHistory
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |
+| uid | [string](#string) | | |
+| creator | [string](#string) | | Format: users/[email protected] |
+| updater | [string](#string) | | Format: users/[email protected] |
+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
+| release_version | [string](#string) | | release version of Bytebase |
+| source | [ChangeHistory.Source](#bytebase-v1-ChangeHistory-Source) | | |
+| type | [ChangeHistory.Type](#bytebase-v1-ChangeHistory-Type) | | |
+| status | [ChangeHistory.Status](#bytebase-v1-ChangeHistory-Status) | | |
+| version | [string](#string) | | |
+| description | [string](#string) | | |
+| statement | [string](#string) | | |
+| schema | [string](#string) | | |
+| prev_schema | [string](#string) | | |
+| execution_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |
+| review | [string](#string) | | Format: projects/{project}/reviews/{review} |
+
+
+
+
+
+
<a name="bytebase-v1-ColumnMetadata"></a>
### ColumnMetadata
@@ -1470,6 +1509,22 @@ FunctionMetadata is the metadata for functions.
+<a name="bytebase-v1-GetChangeHistoryRequest"></a>
+
+### GetChangeHistoryRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the change history to retrieve. Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |
+| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |
+
+
+
+
+
+
<a name="bytebase-v1-GetDatabaseMetadataRequest"></a>
### GetDatabaseMetadataRequest
@@ -1571,6 +1626,42 @@ When paginating, all other parameters provided to `ListBackup` must match the ca
+<a name="bytebase-v1-ListChangeHistoriesRequest"></a>
+
+### ListChangeHistoriesRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| parent | [string](#string) | | The parent of the change histories. Format: instances/{instance}/databases/{database} |
+| page_size | [int32](#int32) | | Not used. The maximum number of change histories to return. The service may return fewer than this value. If unspecified, at most 50 change histories will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListChangeHistories` call. Provide this to retrieve the subsequent page.
+
+When paginating, all other parameters provided to `ListChangeHistories` must match the call that provided the page token. |
+| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |
+
+
+
+
+
+
+<a name="bytebase-v1-ListChangeHistoriesResponse"></a>
+
+### ListChangeHistoriesResponse
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| change_histories | [ChangeHistory](#bytebase-v1-ChangeHistory) | repeated | The list of change histories. |
+| next_page_token | [string](#string) | | Not used. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
+
+
+
+
+
+
<a name="bytebase-v1-ListDatabasesRequest"></a>
### ListDatabasesRequest
@@ -1738,10 +1829,10 @@ Secret is the secret of the database now.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | name is the unique name of the secret, which is specified by the client. Format: instances/{instance}/databases/{database}/secrets/{secret} |
-| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was created initally. |
+| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was created initially. |
| updated_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was updated. |
| value | [string](#string) | | The value of the secret. |
-| description | [string](#string) | | The decsription of the secret. |
+| description | [string](#string) | | The description of the secret. |
@@ -1934,6 +2025,64 @@ The type of the backup.
| PITR | 3 | The backup is created automatically after doing PITR. |
+
+<a name="bytebase-v1-ChangeHistory-Source"></a>
+
+### ChangeHistory.Source
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| SOURCE_UNSPECIFIED | 0 | |
+| UI | 1 | |
+| VCS | 2 | |
+| LIBRARY | 3 | |
+
+
+
+<a name="bytebase-v1-ChangeHistory-Status"></a>
+
+### ChangeHistory.Status
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| STATUS_UNSPECIFIED | 0 | |
+| PENDING | 1 | |
+| COMPLETED | 2 | |
+| FAILED | 3 | |
+
+
+
+<a name="bytebase-v1-ChangeHistory-Type"></a>
+
+### ChangeHistory.Type
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| TYPE_UNSPECIFIED | 0 | |
+| BASELINE | 1 | |
+| MIGRATE | 2 | |
+| MIGRATE_SDL | 3 | |
+| MIGRATE_GHOST | 4 | |
+| BRANCH | 5 | |
+| DATA | 6 | |
+
+
+
+<a name="bytebase-v1-ChangeHistoryView"></a>
+
+### ChangeHistoryView
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| CHANGE_HISTORY_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |
+| CHANGE_HISTORY_VIEW_BASIC | 1 | |
+| CHANGE_HISTORY_VIEW_FULL | 2 | |
+
+
@@ -1962,6 +2111,8 @@ The type of the backup.
| UpdateSecret | [UpdateSecretRequest](#bytebase-v1-UpdateSecretRequest) | [Secret](#bytebase-v1-Secret) | |
| DeleteSecret | [DeleteSecretRequest](#bytebase-v1-DeleteSecretRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
| AdviseIndex | [AdviseIndexRequest](#bytebase-v1-AdviseIndexRequest) | [AdviseIndexResponse](#bytebase-v1-AdviseIndexResponse) | |
+| ListChangeHistories | [ListChangeHistoriesRequest](#bytebase-v1-ListChangeHistoriesRequest) | [ListChangeHistoriesResponse](#bytebase-v1-ListChangeHistoriesResponse) | |
+| GetChangeHistory | [GetChangeHistoryRequest](#bytebase-v1-GetChangeHistoryRequest) | [ChangeHistory](#bytebase-v1-ChangeHistory) | |
diff --git a/proto/generated-go/v1/database_service.pb.go b/proto/generated-go/v1/database_service.pb.go
index ee708eeeff..56df03aeca 100644
--- a/proto/generated-go/v1/database_service.pb.go
+++ b/proto/generated-go/v1/database_service.pb.go
@@ -26,6 +26,57 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
+type ChangeHistoryView int32
+
+const (
+ // The default / unset value.
+ // The API will default to the BASIC view.
+ ChangeHistoryView_CHANGE_HISTORY_VIEW_UNSPECIFIED ChangeHistoryView = 0
+ ChangeHistoryView_CHANGE_HISTORY_VIEW_BASIC ChangeHistoryView = 1
+ ChangeHistoryView_CHANGE_HISTORY_VIEW_FULL ChangeHistoryView = 2
+)
+
+// Enum value maps for ChangeHistoryView.
+var (
+ ChangeHistoryView_name = map[int32]string{
+ 0: "CHANGE_HISTORY_VIEW_UNSPECIFIED",
+ 1: "CHANGE_HISTORY_VIEW_BASIC",
+ 2: "CHANGE_HISTORY_VIEW_FULL",
+ }
+ ChangeHistoryView_value = map[string]int32{
+ "CHANGE_HISTORY_VIEW_UNSPECIFIED": 0,
+ "CHANGE_HISTORY_VIEW_BASIC": 1,
+ "CHANGE_HISTORY_VIEW_FULL": 2,
+ }
+)
+
+func (x ChangeHistoryView) Enum() *ChangeHistoryView {
+ p := new(ChangeHistoryView)
+ *p = x
+ return p
+}
+
+func (x ChangeHistoryView) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (ChangeHistoryView) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_database_service_proto_enumTypes[0].Descriptor()
+}
+
+func (ChangeHistoryView) Type() protoreflect.EnumType {
+ return &file_v1_database_service_proto_enumTypes[0]
+}
+
+func (x ChangeHistoryView) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use ChangeHistoryView.Descriptor instead.
+func (ChangeHistoryView) EnumDescriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{0}
+}
+
// The type of the backup.
type Backup_BackupType int32
@@ -67,11 +118,11 @@ func (x Backup_BackupType) String() string {
}
func (Backup_BackupType) Descriptor() protoreflect.EnumDescriptor {
- return file_v1_database_service_proto_enumTypes[0].Descriptor()
+ return file_v1_database_service_proto_enumTypes[1].Descriptor()
}
func (Backup_BackupType) Type() protoreflect.EnumType {
- return &file_v1_database_service_proto_enumTypes[0]
+ return &file_v1_database_service_proto_enumTypes[1]
}
func (x Backup_BackupType) Number() protoreflect.EnumNumber {
@@ -124,11 +175,11 @@ func (x Backup_BackupState) String() string {
}
func (Backup_BackupState) Descriptor() protoreflect.EnumDescriptor {
- return file_v1_database_service_proto_enumTypes[1].Descriptor()
+ return file_v1_database_service_proto_enumTypes[2].Descriptor()
}
func (Backup_BackupState) Type() protoreflect.EnumType {
- return &file_v1_database_service_proto_enumTypes[1]
+ return &file_v1_database_service_proto_enumTypes[2]
}
func (x Backup_BackupState) Number() protoreflect.EnumNumber {
@@ -140,6 +191,171 @@ func (Backup_BackupState) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{28, 1}
}
+type ChangeHistory_Source int32
+
+const (
+ ChangeHistory_SOURCE_UNSPECIFIED ChangeHistory_Source = 0
+ ChangeHistory_UI ChangeHistory_Source = 1
+ ChangeHistory_VCS ChangeHistory_Source = 2
+ ChangeHistory_LIBRARY ChangeHistory_Source = 3
+)
+
+// Enum value maps for ChangeHistory_Source.
+var (
+ ChangeHistory_Source_name = map[int32]string{
+ 0: "SOURCE_UNSPECIFIED",
+ 1: "UI",
+ 2: "VCS",
+ 3: "LIBRARY",
+ }
+ ChangeHistory_Source_value = map[string]int32{
+ "SOURCE_UNSPECIFIED": 0,
+ "UI": 1,
+ "VCS": 2,
+ "LIBRARY": 3,
+ }
+)
+
+func (x ChangeHistory_Source) Enum() *ChangeHistory_Source {
+ p := new(ChangeHistory_Source)
+ *p = x
+ return p
+}
+
+func (x ChangeHistory_Source) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (ChangeHistory_Source) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_database_service_proto_enumTypes[3].Descriptor()
+}
+
+func (ChangeHistory_Source) Type() protoreflect.EnumType {
+ return &file_v1_database_service_proto_enumTypes[3]
+}
+
+func (x ChangeHistory_Source) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use ChangeHistory_Source.Descriptor instead.
+func (ChangeHistory_Source) EnumDescriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{41, 0}
+}
+
+type ChangeHistory_Type int32
+
+const (
+ ChangeHistory_TYPE_UNSPECIFIED ChangeHistory_Type = 0
+ ChangeHistory_BASELINE ChangeHistory_Type = 1
+ ChangeHistory_MIGRATE ChangeHistory_Type = 2
+ ChangeHistory_MIGRATE_SDL ChangeHistory_Type = 3
+ ChangeHistory_MIGRATE_GHOST ChangeHistory_Type = 4
+ ChangeHistory_BRANCH ChangeHistory_Type = 5
+ ChangeHistory_DATA ChangeHistory_Type = 6
+)
+
+// Enum value maps for ChangeHistory_Type.
+var (
+ ChangeHistory_Type_name = map[int32]string{
+ 0: "TYPE_UNSPECIFIED",
+ 1: "BASELINE",
+ 2: "MIGRATE",
+ 3: "MIGRATE_SDL",
+ 4: "MIGRATE_GHOST",
+ 5: "BRANCH",
+ 6: "DATA",
+ }
+ ChangeHistory_Type_value = map[string]int32{
+ "TYPE_UNSPECIFIED": 0,
+ "BASELINE": 1,
+ "MIGRATE": 2,
+ "MIGRATE_SDL": 3,
+ "MIGRATE_GHOST": 4,
+ "BRANCH": 5,
+ "DATA": 6,
+ }
+)
+
+func (x ChangeHistory_Type) Enum() *ChangeHistory_Type {
+ p := new(ChangeHistory_Type)
+ *p = x
+ return p
+}
+
+func (x ChangeHistory_Type) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (ChangeHistory_Type) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_database_service_proto_enumTypes[4].Descriptor()
+}
+
+func (ChangeHistory_Type) Type() protoreflect.EnumType {
+ return &file_v1_database_service_proto_enumTypes[4]
+}
+
+func (x ChangeHistory_Type) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use ChangeHistory_Type.Descriptor instead.
+func (ChangeHistory_Type) EnumDescriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{41, 1}
+}
+
+type ChangeHistory_Status int32
+
+const (
+ ChangeHistory_STATUS_UNSPECIFIED ChangeHistory_Status = 0
+ ChangeHistory_PENDING ChangeHistory_Status = 1
+ ChangeHistory_COMPLETED ChangeHistory_Status = 2
+ ChangeHistory_FAILED ChangeHistory_Status = 3
+)
+
+// Enum value maps for ChangeHistory_Status.
+var (
+ ChangeHistory_Status_name = map[int32]string{
+ 0: "STATUS_UNSPECIFIED",
+ 1: "PENDING",
+ 2: "COMPLETED",
+ 3: "FAILED",
+ }
+ ChangeHistory_Status_value = map[string]int32{
+ "STATUS_UNSPECIFIED": 0,
+ "PENDING": 1,
+ "COMPLETED": 2,
+ "FAILED": 3,
+ }
+)
+
+func (x ChangeHistory_Status) Enum() *ChangeHistory_Status {
+ p := new(ChangeHistory_Status)
+ *p = x
+ return p
+}
+
+func (x ChangeHistory_Status) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (ChangeHistory_Status) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_database_service_proto_enumTypes[5].Descriptor()
+}
+
+func (ChangeHistory_Status) Type() protoreflect.EnumType {
+ return &file_v1_database_service_proto_enumTypes[5]
+}
+
+func (x ChangeHistory_Status) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use ChangeHistory_Status.Descriptor instead.
+func (ChangeHistory_Status) EnumDescriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{41, 2}
+}
+
type GetDatabaseRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -2194,7 +2410,7 @@ type Backup struct {
// The resource name of the database backup. backup-name is specified by the client.
// Format: instances/{instance}/databases/{database}/backups/{backup-name}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The timestamp when the backup resource was created initally.
+ // The timestamp when the backup resource was created initially.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The timestamp when the backup resource was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
@@ -2982,13 +3198,13 @@ type Secret struct {
// Format:
// instances/{instance}/databases/{database}/secrets/{secret}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // Not used. The timestamp when the secret resource was created initally.
+ // Not used. The timestamp when the secret resource was created initially.
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
// Not used. The timestamp when the secret resource was updated.
UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
// The value of the secret.
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
- // The decsription of the secret.
+ // The description of the secret.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
}
@@ -3184,6 +3400,382 @@ func (x *AdviseIndexResponse) GetCreateIndexStatement() string {
return ""
}
+type ChangeHistory struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
+ // Format: users/[email protected]
+ Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
+ // Format: users/[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"`
+ // release version of Bytebase
+ ReleaseVersion string `protobuf:"bytes,7,opt,name=release_version,json=releaseVersion,proto3" json:"release_version,omitempty"`
+ Source ChangeHistory_Source `protobuf:"varint,8,opt,name=source,proto3,enum=bytebase.v1.ChangeHistory_Source" json:"source,omitempty"`
+ Type ChangeHistory_Type `protobuf:"varint,9,opt,name=type,proto3,enum=bytebase.v1.ChangeHistory_Type" json:"type,omitempty"`
+ Status ChangeHistory_Status `protobuf:"varint,10,opt,name=status,proto3,enum=bytebase.v1.ChangeHistory_Status" json:"status,omitempty"`
+ Version string `protobuf:"bytes,11,opt,name=version,proto3" json:"version,omitempty"`
+ Description string `protobuf:"bytes,12,opt,name=description,proto3" json:"description,omitempty"`
+ Statement string `protobuf:"bytes,13,opt,name=statement,proto3" json:"statement,omitempty"`
+ Schema string `protobuf:"bytes,14,opt,name=schema,proto3" json:"schema,omitempty"`
+ PrevSchema string `protobuf:"bytes,15,opt,name=prev_schema,json=prevSchema,proto3" json:"prev_schema,omitempty"`
+ ExecutionDuration *durationpb.Duration `protobuf:"bytes,16,opt,name=execution_duration,json=executionDuration,proto3" json:"execution_duration,omitempty"`
+ // Format: projects/{project}/reviews/{review}
+ Review string `protobuf:"bytes,17,opt,name=review,proto3" json:"review,omitempty"`
+}
+
+func (x *ChangeHistory) Reset() {
+ *x = ChangeHistory{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_database_service_proto_msgTypes[41]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ChangeHistory) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ChangeHistory) ProtoMessage() {}
+
+func (x *ChangeHistory) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_database_service_proto_msgTypes[41]
+ 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 ChangeHistory.ProtoReflect.Descriptor instead.
+func (*ChangeHistory) Descriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{41}
+}
+
+func (x *ChangeHistory) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetUid() string {
+ if x != nil {
+ return x.Uid
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetCreator() string {
+ if x != nil {
+ return x.Creator
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetUpdater() string {
+ if x != nil {
+ return x.Updater
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetCreateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.CreateTime
+ }
+ return nil
+}
+
+func (x *ChangeHistory) GetUpdateTime() *timestamppb.Timestamp {
+ if x != nil {
+ return x.UpdateTime
+ }
+ return nil
+}
+
+func (x *ChangeHistory) GetReleaseVersion() string {
+ if x != nil {
+ return x.ReleaseVersion
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetSource() ChangeHistory_Source {
+ if x != nil {
+ return x.Source
+ }
+ return ChangeHistory_SOURCE_UNSPECIFIED
+}
+
+func (x *ChangeHistory) GetType() ChangeHistory_Type {
+ if x != nil {
+ return x.Type
+ }
+ return ChangeHistory_TYPE_UNSPECIFIED
+}
+
+func (x *ChangeHistory) GetStatus() ChangeHistory_Status {
+ if x != nil {
+ return x.Status
+ }
+ return ChangeHistory_STATUS_UNSPECIFIED
+}
+
+func (x *ChangeHistory) GetVersion() string {
+ if x != nil {
+ return x.Version
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetDescription() string {
+ if x != nil {
+ return x.Description
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetStatement() string {
+ if x != nil {
+ return x.Statement
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetSchema() string {
+ if x != nil {
+ return x.Schema
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetPrevSchema() string {
+ if x != nil {
+ return x.PrevSchema
+ }
+ return ""
+}
+
+func (x *ChangeHistory) GetExecutionDuration() *durationpb.Duration {
+ if x != nil {
+ return x.ExecutionDuration
+ }
+ return nil
+}
+
+func (x *ChangeHistory) GetReview() string {
+ if x != nil {
+ return x.Review
+ }
+ return ""
+}
+
+type ListChangeHistoriesRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The parent of the change histories.
+ // Format: instances/{instance}/databases/{database}
+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
+ // Not used. The maximum number of change histories to return. The service may return fewer than this value.
+ // If unspecified, at most 50 change histories 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"`
+ // Not used. A page token, received from a previous `ListChangeHistories` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListChangeHistories` 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"`
+ View ChangeHistoryView `protobuf:"varint,4,opt,name=view,proto3,enum=bytebase.v1.ChangeHistoryView" json:"view,omitempty"`
+}
+
+func (x *ListChangeHistoriesRequest) Reset() {
+ *x = ListChangeHistoriesRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_database_service_proto_msgTypes[42]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ListChangeHistoriesRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListChangeHistoriesRequest) ProtoMessage() {}
+
+func (x *ListChangeHistoriesRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_database_service_proto_msgTypes[42]
+ 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 ListChangeHistoriesRequest.ProtoReflect.Descriptor instead.
+func (*ListChangeHistoriesRequest) Descriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{42}
+}
+
+func (x *ListChangeHistoriesRequest) GetParent() string {
+ if x != nil {
+ return x.Parent
+ }
+ return ""
+}
+
+func (x *ListChangeHistoriesRequest) GetPageSize() int32 {
+ if x != nil {
+ return x.PageSize
+ }
+ return 0
+}
+
+func (x *ListChangeHistoriesRequest) GetPageToken() string {
+ if x != nil {
+ return x.PageToken
+ }
+ return ""
+}
+
+func (x *ListChangeHistoriesRequest) GetView() ChangeHistoryView {
+ if x != nil {
+ return x.View
+ }
+ return ChangeHistoryView_CHANGE_HISTORY_VIEW_UNSPECIFIED
+}
+
+type ListChangeHistoriesResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The list of change histories.
+ ChangeHistories []*ChangeHistory `protobuf:"bytes,1,rep,name=change_histories,json=changeHistories,proto3" json:"change_histories,omitempty"`
+ // Not used. A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
+}
+
+func (x *ListChangeHistoriesResponse) Reset() {
+ *x = ListChangeHistoriesResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_database_service_proto_msgTypes[43]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *ListChangeHistoriesResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListChangeHistoriesResponse) ProtoMessage() {}
+
+func (x *ListChangeHistoriesResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_database_service_proto_msgTypes[43]
+ 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 ListChangeHistoriesResponse.ProtoReflect.Descriptor instead.
+func (*ListChangeHistoriesResponse) Descriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{43}
+}
+
+func (x *ListChangeHistoriesResponse) GetChangeHistories() []*ChangeHistory {
+ if x != nil {
+ return x.ChangeHistories
+ }
+ return nil
+}
+
+func (x *ListChangeHistoriesResponse) GetNextPageToken() string {
+ if x != nil {
+ return x.NextPageToken
+ }
+ return ""
+}
+
+type GetChangeHistoryRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name of the change history to retrieve.
+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ View ChangeHistoryView `protobuf:"varint,2,opt,name=view,proto3,enum=bytebase.v1.ChangeHistoryView" json:"view,omitempty"`
+}
+
+func (x *GetChangeHistoryRequest) Reset() {
+ *x = GetChangeHistoryRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_database_service_proto_msgTypes[44]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetChangeHistoryRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetChangeHistoryRequest) ProtoMessage() {}
+
+func (x *GetChangeHistoryRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_database_service_proto_msgTypes[44]
+ 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 GetChangeHistoryRequest.ProtoReflect.Descriptor instead.
+func (*GetChangeHistoryRequest) Descriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{44}
+}
+
+func (x *GetChangeHistoryRequest) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *GetChangeHistoryRequest) GetView() ChangeHistoryView {
+ if x != nil {
+ return x.View
+ }
+ return ChangeHistoryView_CHANGE_HISTORY_VIEW_UNSPECIFIED
+}
+
var File_v1_database_service_proto protoreflect.FileDescriptor
var file_v1_database_service_proto_rawDesc = []byte{
@@ -3632,157 +4224,270 @@ var file_v1_database_service_proto_rawDesc = []byte{
0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,
0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x32,
- 0xbc, 0x12, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76,
- 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x85, 0x01,
- 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12,
- 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
- 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61,
- 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12,
- 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0xa1, 0x01, 0x0a, 0x0e, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x14, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
- 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa6,
- 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63,
- 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
- 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
- 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
- 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d,
- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12,
- 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0x8a, 0x01, 0x0a,
- 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22,
+ 0xa9, 0x07, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,
+ 0x79, 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, 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, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,
+ 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,
+ 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39,
+ 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,
+ 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74,
+ 0x6f, 0x72, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39,
+ 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,
+ 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
+ 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
+ 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
+ 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65,
+ 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,
+ 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0e, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x70,
+ 0x72, 0x65, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x48, 0x0a, 0x12,
+ 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75,
+ 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77,
+ 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x22, 0x3e,
+ 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52,
+ 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
+ 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10,
+ 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x52, 0x59, 0x10, 0x03, 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, 0x22, 0x48, 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, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12,
+ 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, 0xa9, 0x01, 0x0a, 0x1a,
+ 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,
+ 0x69, 0x65, 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, 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65,
+ 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0x8c, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74,
+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67,
+ 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0f, 0x63,
+ 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 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, 0x61, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61,
+ 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56,
+ 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x2a, 0x75, 0x0a, 0x11, 0x43, 0x68, 0x61,
+ 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x23,
+ 0x0a, 0x1f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59,
+ 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
+ 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49,
+ 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43,
+ 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53,
+ 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02,
+ 0x32, 0x8a, 0x15, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x31, 0xda, 0x41, 0x04,
+ 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f,
+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x85,
+ 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
+ 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61, 0x72, 0x63,
+ 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
+ 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b,
+ 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0xa1, 0x01, 0x0a, 0x0e,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x22,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x14, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
+ 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12,
+ 0xa6, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
+ 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74,
+ 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
+ 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65,
0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29,
- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x10, 0x47, 0x65,
- 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x24,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
- 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
- 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
- 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b,
- 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x13, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x3a,
- 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73,
- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d,
+ 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63,
- 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x36, 0x3a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x2c, 0x2f, 0x76, 0x31, 0x2f,
+ 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0x8a, 0x01,
+ 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12,
+ 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x10, 0x47,
+ 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
+ 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
+ 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63,
+ 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x13,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65,
+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43,
+ 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x3c, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x36, 0x3a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x2c, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,
+ 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x8c, 0x01, 0x0a, 0x0a, 0x4c, 0x69,
+ 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f,
0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
- 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x8c, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73,
- 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
- 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74,
- 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c,
- 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
- 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c,
- 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4c, 0x69,
- 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74,
+ 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73,
+ 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53,
+ 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65,
+ 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73,
+ 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4c,
+ 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74,
0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41,
- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f,
+ 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda,
+ 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x8a, 0x01, 0x0a,
+ 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x06, 0x73, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65,
+ 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73,
+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x0c, 0x44, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
+ 0x70, 0x74, 0x79, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x2a, 0x2c, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73,
+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x0b, 0x41, 0x64,
+ 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e,
+ 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49,
+ 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda, 0x41,
+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x22, 0x30, 0x2f,
0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
- 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x0c,
- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x06, 0x73, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
- 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65,
- 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
- 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
- 0x74, 0x79, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x2a, 0x2c, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65,
- 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x76,
- 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64,
- 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e,
- 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06,
- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x22, 0x30, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
- 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 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,
+ 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12,
+ 0xaf, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69,
+ 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
+ 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69,
+ 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0xda, 0x41, 0x06, 0x70,
+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,
+ 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65,
+ 0x73, 0x12, 0x99, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48,
+ 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69,
+ 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,
+ 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x43, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67,
+ 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 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,
}
var (
@@ -3797,139 +4502,160 @@ func file_v1_database_service_proto_rawDescGZIP() []byte {
return file_v1_database_service_proto_rawDescData
}
-var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
-var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 42)
+var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
+var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 46)
var file_v1_database_service_proto_goTypes = []interface{}{
- (Backup_BackupType)(0), // 0: bytebase.v1.Backup.BackupType
- (Backup_BackupState)(0), // 1: bytebase.v1.Backup.BackupState
- (*GetDatabaseRequest)(nil), // 2: bytebase.v1.GetDatabaseRequest
- (*ListDatabasesRequest)(nil), // 3: bytebase.v1.ListDatabasesRequest
- (*ListDatabasesResponse)(nil), // 4: bytebase.v1.ListDatabasesResponse
- (*SearchDatabasesRequest)(nil), // 5: bytebase.v1.SearchDatabasesRequest
- (*SearchDatabasesResponse)(nil), // 6: bytebase.v1.SearchDatabasesResponse
- (*UpdateDatabaseRequest)(nil), // 7: bytebase.v1.UpdateDatabaseRequest
- (*BatchUpdateDatabasesRequest)(nil), // 8: bytebase.v1.BatchUpdateDatabasesRequest
- (*BatchUpdateDatabasesResponse)(nil), // 9: bytebase.v1.BatchUpdateDatabasesResponse
- (*GetDatabaseMetadataRequest)(nil), // 10: bytebase.v1.GetDatabaseMetadataRequest
- (*GetDatabaseSchemaRequest)(nil), // 11: bytebase.v1.GetDatabaseSchemaRequest
- (*GetBackupSettingRequest)(nil), // 12: bytebase.v1.GetBackupSettingRequest
- (*UpdateBackupSettingRequest)(nil), // 13: bytebase.v1.UpdateBackupSettingRequest
- (*CreateBackupRequest)(nil), // 14: bytebase.v1.CreateBackupRequest
- (*ListBackupRequest)(nil), // 15: bytebase.v1.ListBackupRequest
- (*ListBackupResponse)(nil), // 16: bytebase.v1.ListBackupResponse
- (*Database)(nil), // 17: bytebase.v1.Database
- (*DatabaseMetadata)(nil), // 18: bytebase.v1.DatabaseMetadata
- (*SchemaMetadata)(nil), // 19: bytebase.v1.SchemaMetadata
- (*TableMetadata)(nil), // 20: bytebase.v1.TableMetadata
- (*ColumnMetadata)(nil), // 21: bytebase.v1.ColumnMetadata
- (*ViewMetadata)(nil), // 22: bytebase.v1.ViewMetadata
- (*DependentColumn)(nil), // 23: bytebase.v1.DependentColumn
- (*FunctionMetadata)(nil), // 24: bytebase.v1.FunctionMetadata
- (*IndexMetadata)(nil), // 25: bytebase.v1.IndexMetadata
- (*ExtensionMetadata)(nil), // 26: bytebase.v1.ExtensionMetadata
- (*ForeignKeyMetadata)(nil), // 27: bytebase.v1.ForeignKeyMetadata
- (*DatabaseSchema)(nil), // 28: bytebase.v1.DatabaseSchema
- (*BackupSetting)(nil), // 29: bytebase.v1.BackupSetting
- (*Backup)(nil), // 30: bytebase.v1.Backup
- (*ListSlowQueriesRequest)(nil), // 31: bytebase.v1.ListSlowQueriesRequest
- (*ListSlowQueriesResponse)(nil), // 32: bytebase.v1.ListSlowQueriesResponse
- (*SlowQueryLog)(nil), // 33: bytebase.v1.SlowQueryLog
- (*SlowQueryStatistics)(nil), // 34: bytebase.v1.SlowQueryStatistics
- (*SlowQueryDetails)(nil), // 35: bytebase.v1.SlowQueryDetails
- (*ListSecretsRequest)(nil), // 36: bytebase.v1.ListSecretsRequest
- (*ListSecretsResponse)(nil), // 37: bytebase.v1.ListSecretsResponse
- (*UpdateSecretRequest)(nil), // 38: bytebase.v1.UpdateSecretRequest
- (*DeleteSecretRequest)(nil), // 39: bytebase.v1.DeleteSecretRequest
- (*Secret)(nil), // 40: bytebase.v1.Secret
- (*AdviseIndexRequest)(nil), // 41: bytebase.v1.AdviseIndexRequest
- (*AdviseIndexResponse)(nil), // 42: bytebase.v1.AdviseIndexResponse
- nil, // 43: bytebase.v1.Database.LabelsEntry
- (*fieldmaskpb.FieldMask)(nil), // 44: google.protobuf.FieldMask
- (State)(0), // 45: bytebase.v1.State
- (*timestamppb.Timestamp)(nil), // 46: google.protobuf.Timestamp
- (*wrapperspb.StringValue)(nil), // 47: google.protobuf.StringValue
- (*durationpb.Duration)(nil), // 48: google.protobuf.Duration
- (*emptypb.Empty)(nil), // 49: google.protobuf.Empty
+ (ChangeHistoryView)(0), // 0: bytebase.v1.ChangeHistoryView
+ (Backup_BackupType)(0), // 1: bytebase.v1.Backup.BackupType
+ (Backup_BackupState)(0), // 2: bytebase.v1.Backup.BackupState
+ (ChangeHistory_Source)(0), // 3: bytebase.v1.ChangeHistory.Source
+ (ChangeHistory_Type)(0), // 4: bytebase.v1.ChangeHistory.Type
+ (ChangeHistory_Status)(0), // 5: bytebase.v1.ChangeHistory.Status
+ (*GetDatabaseRequest)(nil), // 6: bytebase.v1.GetDatabaseRequest
+ (*ListDatabasesRequest)(nil), // 7: bytebase.v1.ListDatabasesRequest
+ (*ListDatabasesResponse)(nil), // 8: bytebase.v1.ListDatabasesResponse
+ (*SearchDatabasesRequest)(nil), // 9: bytebase.v1.SearchDatabasesRequest
+ (*SearchDatabasesResponse)(nil), // 10: bytebase.v1.SearchDatabasesResponse
+ (*UpdateDatabaseRequest)(nil), // 11: bytebase.v1.UpdateDatabaseRequest
+ (*BatchUpdateDatabasesRequest)(nil), // 12: bytebase.v1.BatchUpdateDatabasesRequest
+ (*BatchUpdateDatabasesResponse)(nil), // 13: bytebase.v1.BatchUpdateDatabasesResponse
+ (*GetDatabaseMetadataRequest)(nil), // 14: bytebase.v1.GetDatabaseMetadataRequest
+ (*GetDatabaseSchemaRequest)(nil), // 15: bytebase.v1.GetDatabaseSchemaRequest
+ (*GetBackupSettingRequest)(nil), // 16: bytebase.v1.GetBackupSettingRequest
+ (*UpdateBackupSettingRequest)(nil), // 17: bytebase.v1.UpdateBackupSettingRequest
+ (*CreateBackupRequest)(nil), // 18: bytebase.v1.CreateBackupRequest
+ (*ListBackupRequest)(nil), // 19: bytebase.v1.ListBackupRequest
+ (*ListBackupResponse)(nil), // 20: bytebase.v1.ListBackupResponse
+ (*Database)(nil), // 21: bytebase.v1.Database
+ (*DatabaseMetadata)(nil), // 22: bytebase.v1.DatabaseMetadata
+ (*SchemaMetadata)(nil), // 23: bytebase.v1.SchemaMetadata
+ (*TableMetadata)(nil), // 24: bytebase.v1.TableMetadata
+ (*ColumnMetadata)(nil), // 25: bytebase.v1.ColumnMetadata
+ (*ViewMetadata)(nil), // 26: bytebase.v1.ViewMetadata
+ (*DependentColumn)(nil), // 27: bytebase.v1.DependentColumn
+ (*FunctionMetadata)(nil), // 28: bytebase.v1.FunctionMetadata
+ (*IndexMetadata)(nil), // 29: bytebase.v1.IndexMetadata
+ (*ExtensionMetadata)(nil), // 30: bytebase.v1.ExtensionMetadata
+ (*ForeignKeyMetadata)(nil), // 31: bytebase.v1.ForeignKeyMetadata
+ (*DatabaseSchema)(nil), // 32: bytebase.v1.DatabaseSchema
+ (*BackupSetting)(nil), // 33: bytebase.v1.BackupSetting
+ (*Backup)(nil), // 34: bytebase.v1.Backup
+ (*ListSlowQueriesRequest)(nil), // 35: bytebase.v1.ListSlowQueriesRequest
+ (*ListSlowQueriesResponse)(nil), // 36: bytebase.v1.ListSlowQueriesResponse
+ (*SlowQueryLog)(nil), // 37: bytebase.v1.SlowQueryLog
+ (*SlowQueryStatistics)(nil), // 38: bytebase.v1.SlowQueryStatistics
+ (*SlowQueryDetails)(nil), // 39: bytebase.v1.SlowQueryDetails
+ (*ListSecretsRequest)(nil), // 40: bytebase.v1.ListSecretsRequest
+ (*ListSecretsResponse)(nil), // 41: bytebase.v1.ListSecretsResponse
+ (*UpdateSecretRequest)(nil), // 42: bytebase.v1.UpdateSecretRequest
+ (*DeleteSecretRequest)(nil), // 43: bytebase.v1.DeleteSecretRequest
+ (*Secret)(nil), // 44: bytebase.v1.Secret
+ (*AdviseIndexRequest)(nil), // 45: bytebase.v1.AdviseIndexRequest
+ (*AdviseIndexResponse)(nil), // 46: bytebase.v1.AdviseIndexResponse
+ (*ChangeHistory)(nil), // 47: bytebase.v1.ChangeHistory
+ (*ListChangeHistoriesRequest)(nil), // 48: bytebase.v1.ListChangeHistoriesRequest
+ (*ListChangeHistoriesResponse)(nil), // 49: bytebase.v1.ListChangeHistoriesResponse
+ (*GetChangeHistoryRequest)(nil), // 50: bytebase.v1.GetChangeHistoryRequest
+ nil, // 51: bytebase.v1.Database.LabelsEntry
+ (*fieldmaskpb.FieldMask)(nil), // 52: google.protobuf.FieldMask
+ (State)(0), // 53: bytebase.v1.State
+ (*timestamppb.Timestamp)(nil), // 54: google.protobuf.Timestamp
+ (*wrapperspb.StringValue)(nil), // 55: google.protobuf.StringValue
+ (*durationpb.Duration)(nil), // 56: google.protobuf.Duration
+ (*emptypb.Empty)(nil), // 57: google.protobuf.Empty
}
var file_v1_database_service_proto_depIdxs = []int32{
- 17, // 0: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database
- 17, // 1: bytebase.v1.SearchDatabasesResponse.databases:type_name -> bytebase.v1.Database
- 17, // 2: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database
- 44, // 3: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask
- 7, // 4: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest
- 17, // 5: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database
- 29, // 6: bytebase.v1.UpdateBackupSettingRequest.setting:type_name -> bytebase.v1.BackupSetting
- 30, // 7: bytebase.v1.CreateBackupRequest.backup:type_name -> bytebase.v1.Backup
- 30, // 8: bytebase.v1.ListBackupResponse.backups:type_name -> bytebase.v1.Backup
- 45, // 9: bytebase.v1.Database.sync_state:type_name -> bytebase.v1.State
- 46, // 10: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp
- 43, // 11: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry
- 19, // 12: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata
- 26, // 13: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata
- 20, // 14: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata
- 22, // 15: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata
- 24, // 16: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata
- 21, // 17: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
- 25, // 18: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
- 27, // 19: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata
- 47, // 20: bytebase.v1.ColumnMetadata.default:type_name -> google.protobuf.StringValue
- 23, // 21: bytebase.v1.ViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn
- 48, // 22: bytebase.v1.BackupSetting.backup_retain_duration:type_name -> google.protobuf.Duration
- 46, // 23: bytebase.v1.Backup.create_time:type_name -> google.protobuf.Timestamp
- 46, // 24: bytebase.v1.Backup.update_time:type_name -> google.protobuf.Timestamp
- 1, // 25: bytebase.v1.Backup.state:type_name -> bytebase.v1.Backup.BackupState
- 0, // 26: bytebase.v1.Backup.backup_type:type_name -> bytebase.v1.Backup.BackupType
- 33, // 27: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog
- 34, // 28: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics
- 46, // 29: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp
- 48, // 30: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration
- 48, // 31: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration
- 35, // 32: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails
- 46, // 33: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
- 48, // 34: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
- 48, // 35: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration
- 40, // 36: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret
- 40, // 37: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret
- 44, // 38: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask
- 46, // 39: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp
- 46, // 40: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp
- 2, // 41: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
- 3, // 42: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
- 5, // 43: bytebase.v1.DatabaseService.SearchDatabases:input_type -> bytebase.v1.SearchDatabasesRequest
- 7, // 44: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
- 8, // 45: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
- 10, // 46: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
- 11, // 47: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
- 12, // 48: bytebase.v1.DatabaseService.GetBackupSetting:input_type -> bytebase.v1.GetBackupSettingRequest
- 13, // 49: bytebase.v1.DatabaseService.UpdateBackupSetting:input_type -> bytebase.v1.UpdateBackupSettingRequest
- 14, // 50: bytebase.v1.DatabaseService.CreateBackup:input_type -> bytebase.v1.CreateBackupRequest
- 15, // 51: bytebase.v1.DatabaseService.ListBackup:input_type -> bytebase.v1.ListBackupRequest
- 31, // 52: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest
- 36, // 53: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest
- 38, // 54: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest
- 39, // 55: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest
- 41, // 56: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest
- 17, // 57: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
- 4, // 58: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
- 6, // 59: bytebase.v1.DatabaseService.SearchDatabases:output_type -> bytebase.v1.SearchDatabasesResponse
- 17, // 60: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
- 9, // 61: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
- 18, // 62: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
- 28, // 63: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
- 29, // 64: bytebase.v1.DatabaseService.GetBackupSetting:output_type -> bytebase.v1.BackupSetting
- 29, // 65: bytebase.v1.DatabaseService.UpdateBackupSetting:output_type -> bytebase.v1.BackupSetting
- 30, // 66: bytebase.v1.DatabaseService.CreateBackup:output_type -> bytebase.v1.Backup
- 16, // 67: bytebase.v1.DatabaseService.ListBackup:output_type -> bytebase.v1.ListBackupResponse
- 32, // 68: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse
- 37, // 69: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse
- 40, // 70: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret
- 49, // 71: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty
- 42, // 72: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse
- 57, // [57:73] is the sub-list for method output_type
- 41, // [41:57] is the sub-list for method input_type
- 41, // [41:41] is the sub-list for extension type_name
- 41, // [41:41] is the sub-list for extension extendee
- 0, // [0:41] is the sub-list for field type_name
+ 21, // 0: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database
+ 21, // 1: bytebase.v1.SearchDatabasesResponse.databases:type_name -> bytebase.v1.Database
+ 21, // 2: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database
+ 52, // 3: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 11, // 4: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest
+ 21, // 5: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database
+ 33, // 6: bytebase.v1.UpdateBackupSettingRequest.setting:type_name -> bytebase.v1.BackupSetting
+ 34, // 7: bytebase.v1.CreateBackupRequest.backup:type_name -> bytebase.v1.Backup
+ 34, // 8: bytebase.v1.ListBackupResponse.backups:type_name -> bytebase.v1.Backup
+ 53, // 9: bytebase.v1.Database.sync_state:type_name -> bytebase.v1.State
+ 54, // 10: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp
+ 51, // 11: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry
+ 23, // 12: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata
+ 30, // 13: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata
+ 24, // 14: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata
+ 26, // 15: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata
+ 28, // 16: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata
+ 25, // 17: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
+ 29, // 18: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
+ 31, // 19: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata
+ 55, // 20: bytebase.v1.ColumnMetadata.default:type_name -> google.protobuf.StringValue
+ 27, // 21: bytebase.v1.ViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn
+ 56, // 22: bytebase.v1.BackupSetting.backup_retain_duration:type_name -> google.protobuf.Duration
+ 54, // 23: bytebase.v1.Backup.create_time:type_name -> google.protobuf.Timestamp
+ 54, // 24: bytebase.v1.Backup.update_time:type_name -> google.protobuf.Timestamp
+ 2, // 25: bytebase.v1.Backup.state:type_name -> bytebase.v1.Backup.BackupState
+ 1, // 26: bytebase.v1.Backup.backup_type:type_name -> bytebase.v1.Backup.BackupType
+ 37, // 27: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog
+ 38, // 28: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics
+ 54, // 29: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp
+ 56, // 30: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration
+ 56, // 31: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration
+ 39, // 32: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails
+ 54, // 33: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
+ 56, // 34: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
+ 56, // 35: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration
+ 44, // 36: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret
+ 44, // 37: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret
+ 52, // 38: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 54, // 39: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp
+ 54, // 40: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp
+ 54, // 41: bytebase.v1.ChangeHistory.create_time:type_name -> google.protobuf.Timestamp
+ 54, // 42: bytebase.v1.ChangeHistory.update_time:type_name -> google.protobuf.Timestamp
+ 3, // 43: bytebase.v1.ChangeHistory.source:type_name -> bytebase.v1.ChangeHistory.Source
+ 4, // 44: bytebase.v1.ChangeHistory.type:type_name -> bytebase.v1.ChangeHistory.Type
+ 5, // 45: bytebase.v1.ChangeHistory.status:type_name -> bytebase.v1.ChangeHistory.Status
+ 56, // 46: bytebase.v1.ChangeHistory.execution_duration:type_name -> google.protobuf.Duration
+ 0, // 47: bytebase.v1.ListChangeHistoriesRequest.view:type_name -> bytebase.v1.ChangeHistoryView
+ 47, // 48: bytebase.v1.ListChangeHistoriesResponse.change_histories:type_name -> bytebase.v1.ChangeHistory
+ 0, // 49: bytebase.v1.GetChangeHistoryRequest.view:type_name -> bytebase.v1.ChangeHistoryView
+ 6, // 50: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
+ 7, // 51: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
+ 9, // 52: bytebase.v1.DatabaseService.SearchDatabases:input_type -> bytebase.v1.SearchDatabasesRequest
+ 11, // 53: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
+ 12, // 54: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
+ 14, // 55: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
+ 15, // 56: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
+ 16, // 57: bytebase.v1.DatabaseService.GetBackupSetting:input_type -> bytebase.v1.GetBackupSettingRequest
+ 17, // 58: bytebase.v1.DatabaseService.UpdateBackupSetting:input_type -> bytebase.v1.UpdateBackupSettingRequest
+ 18, // 59: bytebase.v1.DatabaseService.CreateBackup:input_type -> bytebase.v1.CreateBackupRequest
+ 19, // 60: bytebase.v1.DatabaseService.ListBackup:input_type -> bytebase.v1.ListBackupRequest
+ 35, // 61: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest
+ 40, // 62: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest
+ 42, // 63: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest
+ 43, // 64: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest
+ 45, // 65: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest
+ 48, // 66: bytebase.v1.DatabaseService.ListChangeHistories:input_type -> bytebase.v1.ListChangeHistoriesRequest
+ 50, // 67: bytebase.v1.DatabaseService.GetChangeHistory:input_type -> bytebase.v1.GetChangeHistoryRequest
+ 21, // 68: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
+ 8, // 69: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
+ 10, // 70: bytebase.v1.DatabaseService.SearchDatabases:output_type -> bytebase.v1.SearchDatabasesResponse
+ 21, // 71: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
+ 13, // 72: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
+ 22, // 73: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
+ 32, // 74: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
+ 33, // 75: bytebase.v1.DatabaseService.GetBackupSetting:output_type -> bytebase.v1.BackupSetting
+ 33, // 76: bytebase.v1.DatabaseService.UpdateBackupSetting:output_type -> bytebase.v1.BackupSetting
+ 34, // 77: bytebase.v1.DatabaseService.CreateBackup:output_type -> bytebase.v1.Backup
+ 20, // 78: bytebase.v1.DatabaseService.ListBackup:output_type -> bytebase.v1.ListBackupResponse
+ 36, // 79: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse
+ 41, // 80: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse
+ 44, // 81: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret
+ 57, // 82: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty
+ 46, // 83: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse
+ 49, // 84: bytebase.v1.DatabaseService.ListChangeHistories:output_type -> bytebase.v1.ListChangeHistoriesResponse
+ 47, // 85: bytebase.v1.DatabaseService.GetChangeHistory:output_type -> bytebase.v1.ChangeHistory
+ 68, // [68:86] is the sub-list for method output_type
+ 50, // [50:68] is the sub-list for method input_type
+ 50, // [50:50] is the sub-list for extension type_name
+ 50, // [50:50] is the sub-list for extension extendee
+ 0, // [0:50] is the sub-list for field type_name
}
func init() { file_v1_database_service_proto_init() }
@@ -4431,14 +5157,62 @@ func file_v1_database_service_proto_init() {
return nil
}
}
+ file_v1_database_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ChangeHistory); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_database_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListChangeHistoriesRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_database_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*ListChangeHistoriesResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_database_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*GetChangeHistoryRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_database_service_proto_rawDesc,
- NumEnums: 2,
- NumMessages: 42,
+ NumEnums: 6,
+ NumMessages: 46,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/generated-go/v1/database_service.pb.gw.go b/proto/generated-go/v1/database_service.pb.gw.go
index 5d708e6687..c66a38cd61 100644
--- a/proto/generated-go/v1/database_service.pb.gw.go
+++ b/proto/generated-go/v1/database_service.pb.gw.go
@@ -1115,6 +1115,146 @@ func local_request_DatabaseService_AdviseIndex_0(ctx context.Context, marshaler
}
+var (
+ filter_DatabaseService_ListChangeHistories_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}
+)
+
+func request_DatabaseService_ListChangeHistories_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq ListChangeHistoriesRequest
+ 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_DatabaseService_ListChangeHistories_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.ListChangeHistories(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_DatabaseService_ListChangeHistories_0(ctx context.Context, marshaler runtime.Marshaler, server DatabaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq ListChangeHistoriesRequest
+ 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_DatabaseService_ListChangeHistories_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.ListChangeHistories(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+var (
+ filter_DatabaseService_GetChangeHistory_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}
+)
+
+func request_DatabaseService_GetChangeHistory_0(ctx context.Context, marshaler runtime.Marshaler, client DatabaseServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetChangeHistoryRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
+ }
+
+ protoReq.Name, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DatabaseService_GetChangeHistory_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.GetChangeHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_DatabaseService_GetChangeHistory_0(ctx context.Context, marshaler runtime.Marshaler, server DatabaseServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetChangeHistoryRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
+ }
+
+ protoReq.Name, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DatabaseService_GetChangeHistory_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.GetChangeHistory(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
// RegisterDatabaseServiceHandlerServer registers the http handlers for service DatabaseService to "mux".
// UnaryRPC :call DatabaseServiceServer directly.
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
@@ -1521,6 +1661,56 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
})
+ mux.Handle("GET", pattern_DatabaseService_ListChangeHistories_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.DatabaseService/ListChangeHistories", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/changeHistories"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_DatabaseService_ListChangeHistories_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_DatabaseService_ListChangeHistories_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("GET", pattern_DatabaseService_GetChangeHistory_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.DatabaseService/GetChangeHistory", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/changeHistories/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_DatabaseService_GetChangeHistory_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_DatabaseService_GetChangeHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
return nil
}
@@ -1914,6 +2104,50 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
})
+ mux.Handle("GET", pattern_DatabaseService_ListChangeHistories_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.DatabaseService/ListChangeHistories", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/changeHistories"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_DatabaseService_ListChangeHistories_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_DatabaseService_ListChangeHistories_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("GET", pattern_DatabaseService_GetChangeHistory_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.DatabaseService/GetChangeHistory", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/changeHistories/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_DatabaseService_GetChangeHistory_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_DatabaseService_GetChangeHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
return nil
}
@@ -1949,6 +2183,10 @@ var (
pattern_DatabaseService_DeleteSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "secrets", "name"}, ""))
pattern_DatabaseService_AdviseIndex_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "databases", "parent"}, "adviseIndex"))
+
+ pattern_DatabaseService_ListChangeHistories_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", "instances", "databases", "parent", "changeHistories"}, ""))
+
+ pattern_DatabaseService_GetChangeHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "changeHistories", "name"}, ""))
)
var (
@@ -1983,4 +2221,8 @@ var (
forward_DatabaseService_DeleteSecret_0 = runtime.ForwardResponseMessage
forward_DatabaseService_AdviseIndex_0 = runtime.ForwardResponseMessage
+
+ forward_DatabaseService_ListChangeHistories_0 = runtime.ForwardResponseMessage
+
+ forward_DatabaseService_GetChangeHistory_0 = runtime.ForwardResponseMessage
)
diff --git a/proto/generated-go/v1/database_service_grpc.pb.go b/proto/generated-go/v1/database_service_grpc.pb.go
index 5e9ff8692b..dd48ea6ec5 100644
--- a/proto/generated-go/v1/database_service_grpc.pb.go
+++ b/proto/generated-go/v1/database_service_grpc.pb.go
@@ -36,6 +36,8 @@ const (
DatabaseService_UpdateSecret_FullMethodName = "/bytebase.v1.DatabaseService/UpdateSecret"
DatabaseService_DeleteSecret_FullMethodName = "/bytebase.v1.DatabaseService/DeleteSecret"
DatabaseService_AdviseIndex_FullMethodName = "/bytebase.v1.DatabaseService/AdviseIndex"
+ DatabaseService_ListChangeHistories_FullMethodName = "/bytebase.v1.DatabaseService/ListChangeHistories"
+ DatabaseService_GetChangeHistory_FullMethodName = "/bytebase.v1.DatabaseService/GetChangeHistory"
)
// DatabaseServiceClient is the client API for DatabaseService service.
@@ -59,6 +61,8 @@ type DatabaseServiceClient interface {
UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*Secret, error)
DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
AdviseIndex(ctx context.Context, in *AdviseIndexRequest, opts ...grpc.CallOption) (*AdviseIndexResponse, error)
+ ListChangeHistories(ctx context.Context, in *ListChangeHistoriesRequest, opts ...grpc.CallOption) (*ListChangeHistoriesResponse, error)
+ GetChangeHistory(ctx context.Context, in *GetChangeHistoryRequest, opts ...grpc.CallOption) (*ChangeHistory, error)
}
type databaseServiceClient struct {
@@ -213,6 +217,24 @@ func (c *databaseServiceClient) AdviseIndex(ctx context.Context, in *AdviseIndex
return out, nil
}
+func (c *databaseServiceClient) ListChangeHistories(ctx context.Context, in *ListChangeHistoriesRequest, opts ...grpc.CallOption) (*ListChangeHistoriesResponse, error) {
+ out := new(ListChangeHistoriesResponse)
+ err := c.cc.Invoke(ctx, DatabaseService_ListChangeHistories_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *databaseServiceClient) GetChangeHistory(ctx context.Context, in *GetChangeHistoryRequest, opts ...grpc.CallOption) (*ChangeHistory, error) {
+ out := new(ChangeHistory)
+ err := c.cc.Invoke(ctx, DatabaseService_GetChangeHistory_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
// DatabaseServiceServer is the server API for DatabaseService service.
// All implementations must embed UnimplementedDatabaseServiceServer
// for forward compatibility
@@ -234,6 +256,8 @@ type DatabaseServiceServer interface {
UpdateSecret(context.Context, *UpdateSecretRequest) (*Secret, error)
DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error)
AdviseIndex(context.Context, *AdviseIndexRequest) (*AdviseIndexResponse, error)
+ ListChangeHistories(context.Context, *ListChangeHistoriesRequest) (*ListChangeHistoriesResponse, error)
+ GetChangeHistory(context.Context, *GetChangeHistoryRequest) (*ChangeHistory, error)
mustEmbedUnimplementedDatabaseServiceServer()
}
@@ -289,6 +313,12 @@ func (UnimplementedDatabaseServiceServer) DeleteSecret(context.Context, *DeleteS
func (UnimplementedDatabaseServiceServer) AdviseIndex(context.Context, *AdviseIndexRequest) (*AdviseIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AdviseIndex not implemented")
}
+func (UnimplementedDatabaseServiceServer) ListChangeHistories(context.Context, *ListChangeHistoriesRequest) (*ListChangeHistoriesResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ListChangeHistories not implemented")
+}
+func (UnimplementedDatabaseServiceServer) GetChangeHistory(context.Context, *GetChangeHistoryRequest) (*ChangeHistory, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetChangeHistory not implemented")
+}
func (UnimplementedDatabaseServiceServer) mustEmbedUnimplementedDatabaseServiceServer() {}
// UnsafeDatabaseServiceServer may be embedded to opt out of forward compatibility for this service.
@@ -590,6 +620,42 @@ func _DatabaseService_AdviseIndex_Handler(srv interface{}, ctx context.Context,
return interceptor(ctx, in, info, handler)
}
+func _DatabaseService_ListChangeHistories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ListChangeHistoriesRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DatabaseServiceServer).ListChangeHistories(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DatabaseService_ListChangeHistories_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DatabaseServiceServer).ListChangeHistories(ctx, req.(*ListChangeHistoriesRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DatabaseService_GetChangeHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetChangeHistoryRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DatabaseServiceServer).GetChangeHistory(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DatabaseService_GetChangeHistory_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DatabaseServiceServer).GetChangeHistory(ctx, req.(*GetChangeHistoryRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
// DatabaseService_ServiceDesc is the grpc.ServiceDesc for DatabaseService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -661,6 +727,14 @@ var DatabaseService_ServiceDesc = grpc.ServiceDesc{
MethodName: "AdviseIndex",
Handler: _DatabaseService_AdviseIndex_Handler,
},
+ {
+ MethodName: "ListChangeHistories",
+ Handler: _DatabaseService_ListChangeHistories_Handler,
+ },
+ {
+ MethodName: "GetChangeHistory",
+ Handler: _DatabaseService_GetChangeHistory_Handler,
+ },
},
Streams: []grpc.StreamDesc{},
Metadata: "v1/database_service.proto",
diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.proto
index 039d0a83cd..40a9ba43b1 100644
--- a/proto/v1/database_service.proto
+++ b/proto/v1/database_service.proto
@@ -102,6 +102,15 @@ service DatabaseService {
option (google.api.http) = {post: "/v1/{parent=instances/*/databases/*}:adviseIndex"};
option (google.api.method_signature) = "parent";
}
+
+ rpc ListChangeHistories(ListChangeHistoriesRequest) returns (ListChangeHistoriesResponse) {
+ option (google.api.http) = {get: "/v1/{parent=instances/*/databases/*}/changeHistories"};
+ option (google.api.method_signature) = "parent";
+ }
+ rpc GetChangeHistory(GetChangeHistoryRequest) returns (ChangeHistory) {
+ option (google.api.http) = {get: "/v1/{name=instances/*/databases/*/changeHistories/*}"};
+ option (google.api.method_signature) = "name";
+ }
}
message GetDatabaseRequest {
@@ -561,7 +570,7 @@ message Backup {
// Format: instances/{instance}/databases/{database}/backups/{backup-name}
string name = 1;
- // The timestamp when the backup resource was created initally.
+ // The timestamp when the backup resource was created initially.
google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
// The timestamp when the backup resource was updated.
@@ -737,7 +746,7 @@ message Secret {
// instances/{instance}/databases/{database}/secrets/{secret}
string name = 1 [(google.api.field_behavior) = REQUIRED];
- // Not used. The timestamp when the secret resource was created initally.
+ // Not used. The timestamp when the secret resource was created initially.
google.protobuf.Timestamp created_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
// Not used. The timestamp when the secret resource was updated.
@@ -746,7 +755,7 @@ message Secret {
// The value of the secret.
string value = 4 [(google.api.field_behavior) = INPUT_ONLY];
- // The decsription of the secret.
+ // The description of the secret.
string description = 5;
}
@@ -770,3 +779,102 @@ message AdviseIndexResponse {
// The create index statement of the suggested index.
string create_index_statement = 3;
}
+
+message ChangeHistory {
+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}
+ string name = 1;
+ string uid = 2;
+
+ // Format: users/[email protected]
+ string creator = 3;
+ // Format: users/[email protected]
+ string updater = 4;
+ google.protobuf.Timestamp create_time = 5;
+ google.protobuf.Timestamp update_time = 6;
+
+ // release version of Bytebase
+ string release_version = 7;
+
+ enum Source {
+ SOURCE_UNSPECIFIED = 0;
+ UI = 1;
+ VCS = 2;
+ LIBRARY = 3;
+ }
+ Source source = 8;
+
+ enum Type {
+ TYPE_UNSPECIFIED = 0;
+ BASELINE = 1;
+ MIGRATE = 2;
+ MIGRATE_SDL = 3;
+ MIGRATE_GHOST = 4;
+ BRANCH = 5;
+ DATA = 6;
+ }
+ Type type = 9;
+
+ enum Status {
+ STATUS_UNSPECIFIED = 0;
+ PENDING = 1;
+ COMPLETED = 2;
+ FAILED = 3;
+ }
+ Status status = 10;
+
+ string version = 11;
+
+ string description = 12;
+ string statement = 13;
+ string schema = 14;
+ string prev_schema = 15;
+ google.protobuf.Duration execution_duration = 16;
+ // Format: projects/{project}/reviews/{review}
+ string review = 17;
+
+ // FIXME: vcs push event to be done.
+}
+
+enum ChangeHistoryView {
+ // The default / unset value.
+ // The API will default to the BASIC view.
+ CHANGE_HISTORY_VIEW_UNSPECIFIED = 0;
+ CHANGE_HISTORY_VIEW_BASIC = 1;
+ CHANGE_HISTORY_VIEW_FULL = 2;
+}
+
+message ListChangeHistoriesRequest {
+ // The parent of the change histories.
+ // Format: instances/{instance}/databases/{database}
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Not used. The maximum number of change histories to return. The service may return fewer than this value.
+ // If unspecified, at most 50 change histories will be returned.
+ // The maximum value is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // Not used. A page token, received from a previous `ListChangeHistories` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListChangeHistories` must match
+ // the call that provided the page token.
+ string page_token = 3;
+
+ ChangeHistoryView view = 4;
+}
+
+message ListChangeHistoriesResponse {
+ // The list of change histories.
+ repeated ChangeHistory change_histories = 1;
+
+ // Not used. A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+message GetChangeHistoryRequest {
+ // The name of the change history to retrieve.
+ // Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}
+ string name = 1;
+ ChangeHistoryView view = 2;
+}