Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: release proto&table (#13853)
p0nyd6342e980254
diff --git a/backend/migrator/migration/dev/20240924000000##release.sql b/backend/migrator/migration/dev/20240924000000##release.sqlnew file mode 100644index 0000000000..3a7b52e3e7--- /dev/null+++ b/backend/migrator/migration/dev/20240924000000##release.sql@@ -0,0 +1,7 @@+CREATE TABLE release (+ id BIGSERIAL PRIMARY KEY,+ project_id INTEGER NOT NULL REFERENCES project (id),+ creator_id INTEGER NOT NULL REFERENCES principal (id),+ created_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),+ payload JSONB NOT NULL DEFAULT '{}'+);\ No newline at end of filediff --git a/frontend/src/types/proto/store/release.ts b/frontend/src/types/proto/store/release.tsnew file mode 100644index 0000000000..0b38a62c8e--- /dev/null+++ b/frontend/src/types/proto/store/release.ts@@ -0,0 +1,381 @@+/* eslint-disable */+import Long from "long";+import _m0 from "protobufjs/minimal";+import { VCSType, vCSTypeFromJSON, vCSTypeToJSON, vCSTypeToNumber } from "./common";++export const protobufPackage = "bytebase.store";++export interface ReleasePayload {+ title: string;+ files: ReleasePayload_File[];+ vcsSource: ReleasePayload_VCSSource | undefined;+}++export interface ReleasePayload_File {+ /** The filename. */+ title: string;+ /**+ * The sheet that holds the content.+ * Format: projects/{project}/sheets/{sheet}+ */+ sheet: string;+ /** The SHA1 hash value of the sheet. */+ sheetSha1: string;+ type: ReleasePayload_File_Type;+ version: string;+}++export enum ReleasePayload_File_Type {+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",+ VERSIONED = "VERSIONED",+ UNRECOGNIZED = "UNRECOGNIZED",+}++export function releasePayload_File_TypeFromJSON(object: any): ReleasePayload_File_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return ReleasePayload_File_Type.TYPE_UNSPECIFIED;+ case 1:+ case "VERSIONED":+ return ReleasePayload_File_Type.VERSIONED;+ case -1:+ case "UNRECOGNIZED":+ default:+ return ReleasePayload_File_Type.UNRECOGNIZED;+ }+}++export function releasePayload_File_TypeToJSON(object: ReleasePayload_File_Type): string {+ switch (object) {+ case ReleasePayload_File_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case ReleasePayload_File_Type.VERSIONED:+ return "VERSIONED";+ case ReleasePayload_File_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export function releasePayload_File_TypeToNumber(object: ReleasePayload_File_Type): number {+ switch (object) {+ case ReleasePayload_File_Type.TYPE_UNSPECIFIED:+ return 0;+ case ReleasePayload_File_Type.VERSIONED:+ return 1;+ case ReleasePayload_File_Type.UNRECOGNIZED:+ default:+ return -1;+ }+}++export interface ReleasePayload_VCSSource {+ vcsType: VCSType;+ pullRequestUrl: string;+}++function createBaseReleasePayload(): ReleasePayload {+ return { title: "", files: [], vcsSource: undefined };+}++export const ReleasePayload = {+ encode(message: ReleasePayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.title !== "") {+ writer.uint32(10).string(message.title);+ }+ for (const v of message.files) {+ ReleasePayload_File.encode(v!, writer.uint32(18).fork()).ldelim();+ }+ if (message.vcsSource !== undefined) {+ ReleasePayload_VCSSource.encode(message.vcsSource, writer.uint32(26).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ReleasePayload {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseReleasePayload();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.title = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.files.push(ReleasePayload_File.decode(reader, reader.uint32()));+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.vcsSource = ReleasePayload_VCSSource.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ReleasePayload {+ return {+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ files: globalThis.Array.isArray(object?.files)+ ? object.files.map((e: any) => ReleasePayload_File.fromJSON(e))+ : [],+ vcsSource: isSet(object.vcsSource) ? ReleasePayload_VCSSource.fromJSON(object.vcsSource) : undefined,+ };+ },++ toJSON(message: ReleasePayload): unknown {+ const obj: any = {};+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.files?.length) {+ obj.files = message.files.map((e) => ReleasePayload_File.toJSON(e));+ }+ if (message.vcsSource !== undefined) {+ obj.vcsSource = ReleasePayload_VCSSource.toJSON(message.vcsSource);+ }+ return obj;+ },++ create(base?: DeepPartial<ReleasePayload>): ReleasePayload {+ return ReleasePayload.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ReleasePayload>): ReleasePayload {+ const message = createBaseReleasePayload();+ message.title = object.title ?? "";+ message.files = object.files?.map((e) => ReleasePayload_File.fromPartial(e)) || [];+ message.vcsSource = (object.vcsSource !== undefined && object.vcsSource !== null)+ ? ReleasePayload_VCSSource.fromPartial(object.vcsSource)+ : undefined;+ return message;+ },+};++function createBaseReleasePayload_File(): ReleasePayload_File {+ return { title: "", sheet: "", sheetSha1: "", type: ReleasePayload_File_Type.TYPE_UNSPECIFIED, version: "" };+}++export const ReleasePayload_File = {+ encode(message: ReleasePayload_File, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.title !== "") {+ writer.uint32(10).string(message.title);+ }+ if (message.sheet !== "") {+ writer.uint32(18).string(message.sheet);+ }+ if (message.sheetSha1 !== "") {+ writer.uint32(26).string(message.sheetSha1);+ }+ if (message.type !== ReleasePayload_File_Type.TYPE_UNSPECIFIED) {+ writer.uint32(32).int32(releasePayload_File_TypeToNumber(message.type));+ }+ if (message.version !== "") {+ writer.uint32(42).string(message.version);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ReleasePayload_File {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseReleasePayload_File();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.title = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.sheet = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.sheetSha1 = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.type = releasePayload_File_TypeFromJSON(reader.int32());+ continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.version = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ReleasePayload_File {+ return {+ title: isSet(object.title) ? globalThis.String(object.title) : "",+ sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",+ sheetSha1: isSet(object.sheetSha1) ? globalThis.String(object.sheetSha1) : "",+ type: isSet(object.type)+ ? releasePayload_File_TypeFromJSON(object.type)+ : ReleasePayload_File_Type.TYPE_UNSPECIFIED,+ version: isSet(object.version) ? globalThis.String(object.version) : "",+ };+ },++ toJSON(message: ReleasePayload_File): unknown {+ const obj: any = {};+ if (message.title !== "") {+ obj.title = message.title;+ }+ if (message.sheet !== "") {+ obj.sheet = message.sheet;+ }+ if (message.sheetSha1 !== "") {+ obj.sheetSha1 = message.sheetSha1;+ }+ if (message.type !== ReleasePayload_File_Type.TYPE_UNSPECIFIED) {+ obj.type = releasePayload_File_TypeToJSON(message.type);+ }+ if (message.version !== "") {+ obj.version = message.version;+ }+ return obj;+ },++ create(base?: DeepPartial<ReleasePayload_File>): ReleasePayload_File {+ return ReleasePayload_File.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ReleasePayload_File>): ReleasePayload_File {+ const message = createBaseReleasePayload_File();+ message.title = object.title ?? "";+ message.sheet = object.sheet ?? "";+ message.sheetSha1 = object.sheetSha1 ?? "";+ message.type = object.type ?? ReleasePayload_File_Type.TYPE_UNSPECIFIED;+ message.version = object.version ?? "";+ return message;+ },+};++function createBaseReleasePayload_VCSSource(): ReleasePayload_VCSSource {+ return { vcsType: VCSType.VCS_TYPE_UNSPECIFIED, pullRequestUrl: "" };+}++export const ReleasePayload_VCSSource = {+ encode(message: ReleasePayload_VCSSource, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.vcsType !== VCSType.VCS_TYPE_UNSPECIFIED) {+ writer.uint32(8).int32(vCSTypeToNumber(message.vcsType));+ }+ if (message.pullRequestUrl !== "") {+ writer.uint32(18).string(message.pullRequestUrl);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ReleasePayload_VCSSource {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseReleasePayload_VCSSource();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 8) {+ break;+ }++ message.vcsType = vCSTypeFromJSON(reader.int32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.pullRequestUrl = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ReleasePayload_VCSSource {+ return {+ vcsType: isSet(object.vcsType) ? vCSTypeFromJSON(object.vcsType) : VCSType.VCS_TYPE_UNSPECIFIED,+ pullRequestUrl: isSet(object.pullRequestUrl) ? globalThis.String(object.pullRequestUrl) : "",+ };+ },++ toJSON(message: ReleasePayload_VCSSource): unknown {+ const obj: any = {};+ if (message.vcsType !== VCSType.VCS_TYPE_UNSPECIFIED) {+ obj.vcsType = vCSTypeToJSON(message.vcsType);+ }+ if (message.pullRequestUrl !== "") {+ obj.pullRequestUrl = message.pullRequestUrl;+ }+ return obj;+ },++ create(base?: DeepPartial<ReleasePayload_VCSSource>): ReleasePayload_VCSSource {+ return ReleasePayload_VCSSource.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ReleasePayload_VCSSource>): ReleasePayload_VCSSource {+ const message = createBaseReleasePayload_VCSSource();+ message.vcsType = object.vcsType ?? VCSType.VCS_TYPE_UNSPECIFIED;+ message.pullRequestUrl = object.pullRequestUrl ?? "";+ return message;+ },+};++type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;++export type DeepPartial<T> = T extends Builtin ? T+ : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }+ : Partial<T>;++if (_m0.util.Long !== Long) {+ _m0.util.Long = Long as any;+ _m0.configure();+}++function isSet(value: any): boolean {+ return value !== null && value !== undefined;+}diff --git a/frontend/src/types/proto/v1/release_service.ts b/frontend/src/types/proto/v1/release_service.tsindex 80e8d3dafb..0b57fc199c 100644--- a/frontend/src/types/proto/v1/release_service.ts+++ b/frontend/src/types/proto/v1/release_service.ts@@ -1,6 +1,7 @@/* eslint-disable */import Long from "long";import _m0 from "protobufjs/minimal";+import { Timestamp } from "../google/protobuf/timestamp";import { VCSType, vCSTypeFromJSON, vCSTypeToJSON, vCSTypeToNumber } from "./common";export const protobufPackage = "bytebase.v1";@@ -48,14 +49,21 @@ export interface CreateReleaseRequest {export interface Release {/** Format: projects/{project}/releases/{release} */name: string;+ title: string;files: Release_File[];- vcsSource: Release_VCSSource | undefined;+ vcsSource:+ | Release_VCSSource+ | undefined;+ /** Format: users/[email protected] */+ creator: string;+ createTime: Date | undefined;}export interface Release_File {- filename: string;+ /** The filename. */+ title: string;/**- * The sheet that holds the statement.+ * The sheet that holds the content.* Format: projects/{project}/sheets/{sheet}*/sheet: string;@@ -412,7 +420,7 @@ export const CreateReleaseRequest = {};function createBaseRelease(): Release {- return { name: "", files: [], vcsSource: undefined };+ return { name: "", title: "", files: [], vcsSource: undefined, creator: "", createTime: undefined };}export const Release = {@@ -420,11 +428,20 @@ export const Release = {if (message.name !== "") {writer.uint32(10).string(message.name);}+ if (message.title !== "") {+ writer.uint32(18).string(message.title);+ }for (const v of message.files) {- Release_File.encode(v!, writer.uint32(18).fork()).ldelim();+ Release_File.encode(v!, writer.uint32(26).fork()).ldelim();}if (message.vcsSource !== undefined) {- Release_VCSSource.encode(message.vcsSource, writer.uint32(26).fork()).ldelim();+ Release_VCSSource.encode(message.vcsSource, writer.uint32(34).fork()).ldelim();+ }+ if (message.creator !== "") {+ writer.uint32(42).string(message.creator);+ }+ if (message.createTime !== undefined) {+ Timestamp.encode(toTimestamp(message.createTime), writer.uint32(50).fork()).ldelim();}return writer;},@@ -448,15 +465,36 @@ export const Release = {break;}- message.files.push(Release_File.decode(reader, reader.uint32()));+ message.title = reader.string();continue;case 3:if (tag !== 26) {break;}+ message.files.push(Release_File.decode(reader, reader.uint32()));+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }+message.vcsSource = Release_VCSSource.decode(reader, reader.uint32());continue;+ case 5:+ if (tag !== 42) {+ break;+ }++ message.creator = reader.string();+ continue;+ case 6:+ if (tag !== 50) {+ break;+ }++ message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -469,8 +507,11 @@ export const Release = {fromJSON(object: any): Release {return {name: isSet(object.name) ? globalThis.String(object.name) : "",+ title: isSet(object.title) ? globalThis.String(object.title) : "",files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => Release_File.fromJSON(e)) : [],vcsSource: isSet(object.vcsSource) ? Release_VCSSource.fromJSON(object.vcsSource) : undefined,+ creator: isSet(object.creator) ? globalThis.String(object.creator) : "",+ createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,};},@@ -479,12 +520,21 @@ export const Release = {if (message.name !== "") {obj.name = message.name;}+ if (message.title !== "") {+ obj.title = message.title;+ }if (message.files?.length) {obj.files = message.files.map((e) => Release_File.toJSON(e));}if (message.vcsSource !== undefined) {obj.vcsSource = Release_VCSSource.toJSON(message.vcsSource);}+ if (message.creator !== "") {+ obj.creator = message.creator;+ }+ if (message.createTime !== undefined) {+ obj.createTime = message.createTime.toISOString();+ }return obj;},@@ -494,22 +544,25 @@ export const Release = {fromPartial(object: DeepPartial<Release>): Release {const message = createBaseRelease();message.name = object.name ?? "";+ message.title = object.title ?? "";message.files = object.files?.map((e) => Release_File.fromPartial(e)) || [];message.vcsSource = (object.vcsSource !== undefined && object.vcsSource !== null)? Release_VCSSource.fromPartial(object.vcsSource): undefined;+ message.creator = object.creator ?? "";+ message.createTime = object.createTime ?? undefined;return message;},};function createBaseRelease_File(): Release_File {- return { filename: "", sheet: "", sheetSha1: "", type: Release_File_Type.TYPE_UNSPECIFIED, version: "" };+ return { title: "", sheet: "", sheetSha1: "", type: Release_File_Type.TYPE_UNSPECIFIED, version: "" };}export const Release_File = {encode(message: Release_File, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.filename !== "") {- writer.uint32(10).string(message.filename);+ if (message.title !== "") {+ writer.uint32(10).string(message.title);}if (message.sheet !== "") {writer.uint32(18).string(message.sheet);@@ -538,7 +591,7 @@ export const Release_File = {break;}- message.filename = reader.string();+ message.title = reader.string();continue;case 2:if (tag !== 18) {@@ -579,7 +632,7 @@ export const Release_File = {fromJSON(object: any): Release_File {return {- filename: isSet(object.filename) ? globalThis.String(object.filename) : "",+ title: isSet(object.title) ? globalThis.String(object.title) : "",sheet: isSet(object.sheet) ? globalThis.String(object.sheet) : "",sheetSha1: isSet(object.sheetSha1) ? globalThis.String(object.sheetSha1) : "",type: isSet(object.type) ? release_File_TypeFromJSON(object.type) : Release_File_Type.TYPE_UNSPECIFIED,@@ -589,8 +642,8 @@ export const Release_File = {toJSON(message: Release_File): unknown {const obj: any = {};- if (message.filename !== "") {- obj.filename = message.filename;+ if (message.title !== "") {+ obj.title = message.title;}if (message.sheet !== "") {obj.sheet = message.sheet;@@ -612,7 +665,7 @@ export const Release_File = {},fromPartial(object: DeepPartial<Release_File>): Release_File {const message = createBaseRelease_File();- message.filename = object.filename ?? "";+ message.title = object.title ?? "";message.sheet = object.sheet ?? "";message.sheetSha1 = object.sheetSha1 ?? "";message.type = object.type ?? Release_File_Type.TYPE_UNSPECIFIED;@@ -873,6 +926,32 @@ export type DeepPartial<T> = T extends Builtin ? T: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }: Partial<T>;+function toTimestamp(date: Date): Timestamp {+ const seconds = numberToLong(date.getTime() / 1_000);+ const nanos = (date.getTime() % 1_000) * 1_000_000;+ return { seconds, nanos };+}++function fromTimestamp(t: Timestamp): Date {+ let millis = (t.seconds.toNumber() || 0) * 1_000;+ millis += (t.nanos || 0) / 1_000_000;+ return new globalThis.Date(millis);+}++function fromJsonTimestamp(o: any): Date {+ if (o instanceof globalThis.Date) {+ return o;+ } else if (typeof o === "string") {+ return new globalThis.Date(o);+ } else {+ return fromTimestamp(Timestamp.fromJSON(o));+ }+}++function numberToLong(number: number) {+ return Long.fromNumber(number);+}+if (_m0.util.Long !== Long) {_m0.util.Long = Long as any;_m0.configure();diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex a92c9d364e..b7fc703bd7 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -12004,21 +12004,32 @@ components:name:type: stringdescription: 'Format: projects/{project}/releases/{release}'+ title:+ type: stringfiles:type: arrayitems:$ref: '#/components/schemas/Release_File'vcsSource:$ref: '#/components/schemas/Release_VCSSource'+ creator:+ readOnly: true+ type: string+ description: 'Format: users/[email protected]'+ createTime:+ readOnly: true+ type: string+ format: date-timeRelease_File:type: objectproperties:- filename:+ title:type: string+ description: The filename.sheet:type: stringdescription: |-- The sheet that holds the statement.+ The sheet that holds the content.Format: projects/{project}/sheets/{sheet}sheetSha1:type: stringdiff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 1547f66acd..dcc83749fd 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -220,6 +220,13 @@- [store/query_history.proto](#store_query_history-proto)- [QueryHistoryPayload](#bytebase-store-QueryHistoryPayload)+- [store/release.proto](#store_release-proto)+ - [ReleasePayload](#bytebase-store-ReleasePayload)+ - [ReleasePayload.File](#bytebase-store-ReleasePayload-File)+ - [ReleasePayload.VCSSource](#bytebase-store-ReleasePayload-VCSSource)++ - [ReleasePayload.File.Type](#bytebase-store-ReleasePayload-File-Type)+- [store/review_config.proto](#store_review_config-proto)- [ReviewConfigPayload](#bytebase-store-ReviewConfigPayload)@@ -3455,6 +3462,86 @@ SlowQueryPolicy is the policy configuration for slow query.+<a name="store_release-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## store/release.proto++++<a name="bytebase-store-ReleasePayload"></a>++### ReleasePayload++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| title | [string](#string) | | |+| files | [ReleasePayload.File](#bytebase-store-ReleasePayload-File) | repeated | |+| vcs_source | [ReleasePayload.VCSSource](#bytebase-store-ReleasePayload-VCSSource) | | |+++++++<a name="bytebase-store-ReleasePayload-File"></a>++### ReleasePayload.File++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| title | [string](#string) | | The filename. |+| sheet | [string](#string) | | The sheet that holds the content. Format: projects/{project}/sheets/{sheet} |+| sheet_sha1 | [string](#string) | | The SHA1 hash value of the sheet. |+| type | [ReleasePayload.File.Type](#bytebase-store-ReleasePayload-File-Type) | | |+| version | [string](#string) | | |+++++++<a name="bytebase-store-ReleasePayload-VCSSource"></a>++### ReleasePayload.VCSSource++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| vcs_type | [VCSType](#bytebase-store-VCSType) | | |+| pull_request_url | [string](#string) | | |+++++++++<a name="bytebase-store-ReleasePayload-File-Type"></a>++### ReleasePayload.File.Type+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| VERSIONED | 1 | |++++++++++<a name="store_review_config-proto"></a><p align="right"><a href="#top">Top</a></p>diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 34fde7ee1a..b96ea8ebcc 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -1063,6 +1063,33 @@</li>+ <li>+ <a href="#store%2frelease.proto">store/release.proto</a>+ <ul>++ <li>+ <a href="#bytebase.store.ReleasePayload"><span class="badge">M</span>ReleasePayload</a>+ </li>++ <li>+ <a href="#bytebase.store.ReleasePayload.File"><span class="badge">M</span>ReleasePayload.File</a>+ </li>++ <li>+ <a href="#bytebase.store.ReleasePayload.VCSSource"><span class="badge">M</span>ReleasePayload.VCSSource</a>+ </li>+++ <li>+ <a href="#bytebase.store.ReleasePayload.File.Type"><span class="badge">E</span>ReleasePayload.File.Type</a>+ </li>++++ </ul>+ </li>++<li><a href="#store%2freview_config.proto">store/review_config.proto</a><ul>@@ -8804,6 +8831,165 @@ IM integration setting should be set for this function to work. </p></td>+ <div class="file-heading">+ <h2 id="store/release.proto">store/release.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.store.ReleasePayload">ReleasePayload</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>files</td>+ <td><a href="#bytebase.store.ReleasePayload.File">ReleasePayload.File</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>vcs_source</td>+ <td><a href="#bytebase.store.ReleasePayload.VCSSource">ReleasePayload.VCSSource</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.ReleasePayload.File">ReleasePayload.File</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The filename. </p></td>+ </tr>++ <tr>+ <td>sheet</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The sheet that holds the content.+Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>sheet_sha1</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The SHA1 hash value of the sheet. </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.store.ReleasePayload.File.Type">ReleasePayload.File.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.ReleasePayload.VCSSource">ReleasePayload.VCSSource</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>vcs_type</td>+ <td><a href="#bytebase.store.VCSType">VCSType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>pull_request_url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.store.ReleasePayload.File.Type">ReleasePayload.File.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>VERSIONED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+++++++<div class="file-heading"><h2 id="store/review_config.proto">store/review_config.proto</h2><a href="#title">Top</a></div>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex d06e0d772d..ae4d9dcb43 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -8754,8 +8754,11 @@ When paginating, all other parameters provided to `ListReleasesRequest` must mat| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || name | [string](#string) | | Format: projects/{project}/releases/{release} |+| title | [string](#string) | | || files | [Release.File](#bytebase-v1-Release-File) | repeated | || vcs_source | [Release.VCSSource](#bytebase-v1-Release-VCSSource) | | |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |@@ -8770,8 +8773,8 @@ When paginating, all other parameters provided to `ListReleasesRequest` must mat| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| filename | [string](#string) | | |-| sheet | [string](#string) | | The sheet that holds the statement. Format: projects/{project}/sheets/{sheet} |+| title | [string](#string) | | The filename. |+| sheet | [string](#string) | | The sheet that holds the content. Format: projects/{project}/sheets/{sheet} || sheet_sha1 | [string](#string) | | The SHA1 hash value of the sheet. || type | [Release.File.Type](#bytebase-v1-Release-File-Type) | | || version | [string](#string) | | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 4a7bc56b41..71f4023fec 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -24078,6 +24078,13 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p>Format: projects/{project}/releases/{release} </p></td></tr>+ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+<tr><td>files</td><td><a href="#bytebase.v1.Release.File">Release.File</a></td>@@ -24092,6 +24099,20 @@ If this field is omitted, there are no subsequent pages. </p></td><td><p> </p></td></tr>+ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: users/[email protected] </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -24110,17 +24131,17 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>filename</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The filename. </p></td></tr><tr><td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p>The sheet that holds the statement.+ <td><p>The sheet that holds the content.Format: projects/{project}/sheets/{sheet} </p></td></tr>diff --git a/proto/generated-go/store/release.pb.go b/proto/generated-go/store/release.pb.gonew file mode 100644index 0000000000..0a528852e0--- /dev/null+++ b/proto/generated-go/store/release.pb.go@@ -0,0 +1,412 @@+// Code generated by protoc-gen-go. DO NOT EDIT.+// versions:+// protoc-gen-go v1.34.2+// protoc (unknown)+// source: store/release.proto++package store++import (+ _ "google.golang.org/genproto/googleapis/api/annotations"+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"+ reflect "reflect"+ sync "sync"+)++const (+ // Verify that this generated code is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)+ // Verify that runtime/protoimpl is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)+)++type ReleasePayload_File_Type int32++const (+ ReleasePayload_File_TYPE_UNSPECIFIED ReleasePayload_File_Type = 0+ ReleasePayload_File_VERSIONED ReleasePayload_File_Type = 1+)++// Enum value maps for ReleasePayload_File_Type.+var (+ ReleasePayload_File_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "VERSIONED",+ }+ ReleasePayload_File_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "VERSIONED": 1,+ }+)++func (x ReleasePayload_File_Type) Enum() *ReleasePayload_File_Type {+ p := new(ReleasePayload_File_Type)+ *p = x+ return p+}++func (x ReleasePayload_File_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (ReleasePayload_File_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_store_release_proto_enumTypes[0].Descriptor()+}++func (ReleasePayload_File_Type) Type() protoreflect.EnumType {+ return &file_store_release_proto_enumTypes[0]+}++func (x ReleasePayload_File_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use ReleasePayload_File_Type.Descriptor instead.+func (ReleasePayload_File_Type) EnumDescriptor() ([]byte, []int) {+ return file_store_release_proto_rawDescGZIP(), []int{0, 0, 0}+}++type ReleasePayload struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ Files []*ReleasePayload_File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`+ VcsSource *ReleasePayload_VCSSource `protobuf:"bytes,3,opt,name=vcs_source,json=vcsSource,proto3" json:"vcs_source,omitempty"`+}++func (x *ReleasePayload) Reset() {+ *x = ReleasePayload{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_release_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ReleasePayload) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ReleasePayload) ProtoMessage() {}++func (x *ReleasePayload) ProtoReflect() protoreflect.Message {+ mi := &file_store_release_proto_msgTypes[0]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ReleasePayload.ProtoReflect.Descriptor instead.+func (*ReleasePayload) Descriptor() ([]byte, []int) {+ return file_store_release_proto_rawDescGZIP(), []int{0}+}++func (x *ReleasePayload) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *ReleasePayload) GetFiles() []*ReleasePayload_File {+ if x != nil {+ return x.Files+ }+ return nil+}++func (x *ReleasePayload) GetVcsSource() *ReleasePayload_VCSSource {+ if x != nil {+ return x.VcsSource+ }+ return nil+}++type ReleasePayload_File struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The filename.+ Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ // The sheet that holds the content.+ // Format: projects/{project}/sheets/{sheet}+ Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`+ // The SHA1 hash value of the sheet.+ SheetSha1 string `protobuf:"bytes,3,opt,name=sheet_sha1,json=sheetSha1,proto3" json:"sheet_sha1,omitempty"`+ Type ReleasePayload_File_Type `protobuf:"varint,4,opt,name=type,proto3,enum=bytebase.store.ReleasePayload_File_Type" json:"type,omitempty"`+ Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`+}++func (x *ReleasePayload_File) Reset() {+ *x = ReleasePayload_File{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_release_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ReleasePayload_File) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ReleasePayload_File) ProtoMessage() {}++func (x *ReleasePayload_File) ProtoReflect() protoreflect.Message {+ mi := &file_store_release_proto_msgTypes[1]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ReleasePayload_File.ProtoReflect.Descriptor instead.+func (*ReleasePayload_File) Descriptor() ([]byte, []int) {+ return file_store_release_proto_rawDescGZIP(), []int{0, 0}+}++func (x *ReleasePayload_File) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}++func (x *ReleasePayload_File) GetSheet() string {+ if x != nil {+ return x.Sheet+ }+ return ""+}++func (x *ReleasePayload_File) GetSheetSha1() string {+ if x != nil {+ return x.SheetSha1+ }+ return ""+}++func (x *ReleasePayload_File) GetType() ReleasePayload_File_Type {+ if x != nil {+ return x.Type+ }+ return ReleasePayload_File_TYPE_UNSPECIFIED+}++func (x *ReleasePayload_File) GetVersion() string {+ if x != nil {+ return x.Version+ }+ return ""+}++type ReleasePayload_VCSSource struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ VcsType VCSType `protobuf:"varint,1,opt,name=vcs_type,json=vcsType,proto3,enum=bytebase.store.VCSType" json:"vcs_type,omitempty"`+ PullRequestUrl string `protobuf:"bytes,2,opt,name=pull_request_url,json=pullRequestUrl,proto3" json:"pull_request_url,omitempty"`+}++func (x *ReleasePayload_VCSSource) Reset() {+ *x = ReleasePayload_VCSSource{}+ if protoimpl.UnsafeEnabled {+ mi := &file_store_release_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ReleasePayload_VCSSource) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ReleasePayload_VCSSource) ProtoMessage() {}++func (x *ReleasePayload_VCSSource) ProtoReflect() protoreflect.Message {+ mi := &file_store_release_proto_msgTypes[2]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ReleasePayload_VCSSource.ProtoReflect.Descriptor instead.+func (*ReleasePayload_VCSSource) Descriptor() ([]byte, []int) {+ return file_store_release_proto_rawDescGZIP(), []int{0, 1}+}++func (x *ReleasePayload_VCSSource) GetVcsType() VCSType {+ if x != nil {+ return x.VcsType+ }+ return VCSType_VCS_TYPE_UNSPECIFIED+}++func (x *ReleasePayload_VCSSource) GetPullRequestUrl() string {+ if x != nil {+ return x.PullRequestUrl+ }+ return ""+}++var File_store_release_proto protoreflect.FileDescriptor++var file_store_release_proto_rawDesc = []byte{+ 0x0a, 0x13, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,+ 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x04, 0x0a, 0x0e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x39, 0x0a,+ 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65,+ 0x6c, 0x65, 0x61, 0x73, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x46, 0x69, 0x6c,+ 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x76, 0x63, 0x73, 0x5f,+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65,+ 0x6c, 0x65, 0x61, 0x73, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x56, 0x43, 0x53,+ 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x76, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x1a, 0xef, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,+ 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,+ 0x6f, 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12,+ 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x31, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x31, 0x12, 0x3c,+ 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65,+ 0x6c, 0x65, 0x61, 0x73, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x46, 0x69, 0x6c,+ 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07,+ 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76,+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2b, 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, 0x0d, 0x0a, 0x09, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x45,+ 0x44, 0x10, 0x01, 0x1a, 0x69, 0x0a, 0x09, 0x56, 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,+ 0x12, 0x32, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,+ 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x43, 0x53, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x63, 0x73,+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,+ 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x42, 0x14,+ 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+}++var (+ file_store_release_proto_rawDescOnce sync.Once+ file_store_release_proto_rawDescData = file_store_release_proto_rawDesc+)++func file_store_release_proto_rawDescGZIP() []byte {+ file_store_release_proto_rawDescOnce.Do(func() {+ file_store_release_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_release_proto_rawDescData)+ })+ return file_store_release_proto_rawDescData+}++var file_store_release_proto_enumTypes = make([]protoimpl.EnumInfo, 1)+var file_store_release_proto_msgTypes = make([]protoimpl.MessageInfo, 3)+var file_store_release_proto_goTypes = []any{+ (ReleasePayload_File_Type)(0), // 0: bytebase.store.ReleasePayload.File.Type+ (*ReleasePayload)(nil), // 1: bytebase.store.ReleasePayload+ (*ReleasePayload_File)(nil), // 2: bytebase.store.ReleasePayload.File+ (*ReleasePayload_VCSSource)(nil), // 3: bytebase.store.ReleasePayload.VCSSource+ (VCSType)(0), // 4: bytebase.store.VCSType+}+var file_store_release_proto_depIdxs = []int32{+ 2, // 0: bytebase.store.ReleasePayload.files:type_name -> bytebase.store.ReleasePayload.File+ 3, // 1: bytebase.store.ReleasePayload.vcs_source:type_name -> bytebase.store.ReleasePayload.VCSSource+ 0, // 2: bytebase.store.ReleasePayload.File.type:type_name -> bytebase.store.ReleasePayload.File.Type+ 4, // 3: bytebase.store.ReleasePayload.VCSSource.vcs_type:type_name -> bytebase.store.VCSType+ 4, // [4:4] is the sub-list for method output_type+ 4, // [4:4] is the sub-list for method input_type+ 4, // [4:4] is the sub-list for extension type_name+ 4, // [4:4] is the sub-list for extension extendee+ 0, // [0:4] is the sub-list for field type_name+}++func init() { file_store_release_proto_init() }+func file_store_release_proto_init() {+ if File_store_release_proto != nil {+ return+ }+ file_store_common_proto_init()+ if !protoimpl.UnsafeEnabled {+ file_store_release_proto_msgTypes[0].Exporter = func(v any, i int) any {+ switch v := v.(*ReleasePayload); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_release_proto_msgTypes[1].Exporter = func(v any, i int) any {+ switch v := v.(*ReleasePayload_File); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_store_release_proto_msgTypes[2].Exporter = func(v any, i int) any {+ switch v := v.(*ReleasePayload_VCSSource); 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_store_release_proto_rawDesc,+ NumEnums: 1,+ NumMessages: 3,+ NumExtensions: 0,+ NumServices: 0,+ },+ GoTypes: file_store_release_proto_goTypes,+ DependencyIndexes: file_store_release_proto_depIdxs,+ EnumInfos: file_store_release_proto_enumTypes,+ MessageInfos: file_store_release_proto_msgTypes,+ }.Build()+ File_store_release_proto = out.File+ file_store_release_proto_rawDesc = nil+ file_store_release_proto_goTypes = nil+ file_store_release_proto_depIdxs = nil+}diff --git a/proto/generated-go/v1/release_service.pb.go b/proto/generated-go/v1/release_service.pb.goindex 5a9d21d75c..88bdd164c3 100644--- a/proto/generated-go/v1/release_service.pb.go+++ b/proto/generated-go/v1/release_service.pb.go@@ -10,6 +10,7 @@ import (_ "google.golang.org/genproto/googleapis/api/annotations"protoreflect "google.golang.org/protobuf/reflect/protoreflect"protoimpl "google.golang.org/protobuf/runtime/protoimpl"+ timestamppb "google.golang.org/protobuf/types/known/timestamppb"reflect "reflect"sync "sync")@@ -308,8 +309,12 @@ type Release struct {// Format: projects/{project}/releases/{release}Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- Files []*Release_File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`- VcsSource *Release_VCSSource `protobuf:"bytes,3,opt,name=vcs_source,json=vcsSource,proto3" json:"vcs_source,omitempty"`+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`+ Files []*Release_File `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`+ VcsSource *Release_VCSSource `protobuf:"bytes,4,opt,name=vcs_source,json=vcsSource,proto3" json:"vcs_source,omitempty"`+ // Format: users/[email protected]+ Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"`+ CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`}func (x *Release) Reset() {@@ -351,6 +356,13 @@ func (x *Release) GetName() string {return ""}+func (x *Release) GetTitle() string {+ if x != nil {+ return x.Title+ }+ return ""+}+func (x *Release) GetFiles() []*Release_File {if x != nil {return x.Files@@ -365,13 +377,28 @@ func (x *Release) GetVcsSource() *Release_VCSSource {return nil}+func (x *Release) GetCreator() string {+ if x != nil {+ return x.Creator+ }+ return ""+}++func (x *Release) GetCreateTime() *timestamppb.Timestamp {+ if x != nil {+ return x.CreateTime+ }+ return nil+}+type Release_File struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`- // The sheet that holds the statement.+ // The filename.+ Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`+ // The sheet that holds the content.// Format: projects/{project}/sheets/{sheet}Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`// The SHA1 hash value of the sheet.@@ -412,9 +439,9 @@ func (*Release_File) Descriptor() ([]byte, []int) {return file_v1_release_service_proto_rawDescGZIP(), []int{4, 0}}-func (x *Release_File) GetFilename() string {+func (x *Release_File) GetTitle() string {if x != nil {- return x.Filename+ return x.Title}return ""}@@ -514,95 +541,104 @@ var file_v1_release_service_proto_rawDesc = []byte{0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63,- 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x11, 0x47,- 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x31, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d,- 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65,- 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01,- 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,- 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,- 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x70,- 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65,- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73,- 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x08,- 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 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, 0x83, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61,- 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01, 0x02, 0xfa,- 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d,- 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07, 0x72,- 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xe3, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x6c, 0x65, 0x61,- 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18,- 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65,- 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x0a, 0x76, 0x63, 0x73, 0x5f, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79,+ 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,+ 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,+ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f,+ 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x11,+ 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x31, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x1d, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c,+ 0x65, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41,+ 0x01, 0x02, 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,+ 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22,+ 0x70, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61,+ 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52,+ 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 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, 0x83, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe2, 0x41, 0x01, 0x02,+ 0xfa, 0x41, 0x16, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f,+ 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x07,+ 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xd6, 0x04, 0x0a, 0x07, 0x52, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a,+ 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61,+ 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x3d,+ 0x0a, 0x0a, 0x76, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x56, 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x52, 0x09, 0x76, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1e, 0x0a,+ 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,+ 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41, 0x0a,+ 0x0b, 0x63, 0x72, 0x65, 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, 0x42, 0x04,+ 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,+ 0x1a, 0xe5, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,+ 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,+ 0x2d, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x17,+ 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f,+ 0x6d, 0x2f, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1d,+ 0x0a, 0x0a, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x31, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x31, 0x12, 0x32, 0x0a,+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,- 0x65, 0x2e, 0x56, 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x76, 0x63, 0x73,- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xeb, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12,- 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73,- 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x17, 0xfa, 0x41, 0x14, 0x0a,- 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x68,- 0x65, 0x65, 0x74, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x68,- 0x65, 0x65, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x31, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,- 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x68, 0x61, 0x31, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70,- 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x46, 0x69,- 0x6c, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a,- 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,- 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2b, 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, 0x0d, 0x0a, 0x09, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e,- 0x45, 0x44, 0x10, 0x01, 0x1a, 0x66, 0x0a, 0x09, 0x56, 0x43, 0x53, 0x53, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x56, 0x43, 0x53, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76, 0x63, 0x73, 0x54, 0x79,- 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75,- 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x32, 0x9d, 0x03, 0x0a,- 0x0e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,- 0x73, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x1e, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52,- 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65,- 0x61, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,- 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x86, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c,- 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,- 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0xda, 0x41, 0x06, 0x70,- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x8c, 0x01,- 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12,- 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x42, 0xda, 0x41, 0x0e, 0x70, 0x61, 0x72,- 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x2b, 0x3a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f,- 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f,- 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2b, 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, 0x0d, 0x0a, 0x09, 0x56, 0x45, 0x52,+ 0x53, 0x49, 0x4f, 0x4e, 0x45, 0x44, 0x10, 0x01, 0x1a, 0x66, 0x0a, 0x09, 0x56, 0x43, 0x53, 0x53,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x76, 0x63, 0x73, 0x5f, 0x74, 0x79, 0x70,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x76,+ 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x72,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0e, 0x70, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c,+ 0x32, 0x9d, 0x03, 0x0a, 0x0e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76,+ 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,+ 0x65, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x6c,+ 0x65, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x86, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73,+ 0x74, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,+ 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31,+ 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12,+ 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,+ 0x73, 0x12, 0x8c, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65,+ 0x61, 0x73, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x42, 0xda, 0x41,+ 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x82,+ 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x20,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,+ 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73,+ 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,+ 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -620,34 +656,36 @@ func file_v1_release_service_proto_rawDescGZIP() []byte {var file_v1_release_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)var file_v1_release_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7)var file_v1_release_service_proto_goTypes = []any{- (Release_File_Type)(0), // 0: bytebase.v1.Release.File.Type- (*GetReleaseRequest)(nil), // 1: bytebase.v1.GetReleaseRequest- (*ListReleasesRequest)(nil), // 2: bytebase.v1.ListReleasesRequest- (*ListReleasesResponse)(nil), // 3: bytebase.v1.ListReleasesResponse- (*CreateReleaseRequest)(nil), // 4: bytebase.v1.CreateReleaseRequest- (*Release)(nil), // 5: bytebase.v1.Release- (*Release_File)(nil), // 6: bytebase.v1.Release.File- (*Release_VCSSource)(nil), // 7: bytebase.v1.Release.VCSSource- (VCSType)(0), // 8: bytebase.v1.VCSType+ (Release_File_Type)(0), // 0: bytebase.v1.Release.File.Type+ (*GetReleaseRequest)(nil), // 1: bytebase.v1.GetReleaseRequest+ (*ListReleasesRequest)(nil), // 2: bytebase.v1.ListReleasesRequest+ (*ListReleasesResponse)(nil), // 3: bytebase.v1.ListReleasesResponse+ (*CreateReleaseRequest)(nil), // 4: bytebase.v1.CreateReleaseRequest+ (*Release)(nil), // 5: bytebase.v1.Release+ (*Release_File)(nil), // 6: bytebase.v1.Release.File+ (*Release_VCSSource)(nil), // 7: bytebase.v1.Release.VCSSource+ (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp+ (VCSType)(0), // 9: bytebase.v1.VCSType}var file_v1_release_service_proto_depIdxs = []int32{- 5, // 0: bytebase.v1.ListReleasesResponse.releases:type_name -> bytebase.v1.Release- 5, // 1: bytebase.v1.CreateReleaseRequest.release:type_name -> bytebase.v1.Release- 6, // 2: bytebase.v1.Release.files:type_name -> bytebase.v1.Release.File- 7, // 3: bytebase.v1.Release.vcs_source:type_name -> bytebase.v1.Release.VCSSource- 0, // 4: bytebase.v1.Release.File.type:type_name -> bytebase.v1.Release.File.Type- 8, // 5: bytebase.v1.Release.VCSSource.vcs_type:type_name -> bytebase.v1.VCSType- 1, // 6: bytebase.v1.ReleaseService.GetRelease:input_type -> bytebase.v1.GetReleaseRequest- 2, // 7: bytebase.v1.ReleaseService.ListReleases:input_type -> bytebase.v1.ListReleasesRequest- 4, // 8: bytebase.v1.ReleaseService.CreateRelease:input_type -> bytebase.v1.CreateReleaseRequest- 5, // 9: bytebase.v1.ReleaseService.GetRelease:output_type -> bytebase.v1.Release- 3, // 10: bytebase.v1.ReleaseService.ListReleases:output_type -> bytebase.v1.ListReleasesResponse- 5, // 11: bytebase.v1.ReleaseService.CreateRelease:output_type -> bytebase.v1.Release- 9, // [9:12] is the sub-list for method output_type- 6, // [6:9] is the sub-list for method input_type- 6, // [6:6] is the sub-list for extension type_name- 6, // [6:6] is the sub-list for extension extendee- 0, // [0:6] is the sub-list for field type_name+ 5, // 0: bytebase.v1.ListReleasesResponse.releases:type_name -> bytebase.v1.Release+ 5, // 1: bytebase.v1.CreateReleaseRequest.release:type_name -> bytebase.v1.Release+ 6, // 2: bytebase.v1.Release.files:type_name -> bytebase.v1.Release.File+ 7, // 3: bytebase.v1.Release.vcs_source:type_name -> bytebase.v1.Release.VCSSource+ 8, // 4: bytebase.v1.Release.create_time:type_name -> google.protobuf.Timestamp+ 0, // 5: bytebase.v1.Release.File.type:type_name -> bytebase.v1.Release.File.Type+ 9, // 6: bytebase.v1.Release.VCSSource.vcs_type:type_name -> bytebase.v1.VCSType+ 1, // 7: bytebase.v1.ReleaseService.GetRelease:input_type -> bytebase.v1.GetReleaseRequest+ 2, // 8: bytebase.v1.ReleaseService.ListReleases:input_type -> bytebase.v1.ListReleasesRequest+ 4, // 9: bytebase.v1.ReleaseService.CreateRelease:input_type -> bytebase.v1.CreateReleaseRequest+ 5, // 10: bytebase.v1.ReleaseService.GetRelease:output_type -> bytebase.v1.Release+ 3, // 11: bytebase.v1.ReleaseService.ListReleases:output_type -> bytebase.v1.ListReleasesResponse+ 5, // 12: bytebase.v1.ReleaseService.CreateRelease:output_type -> bytebase.v1.Release+ 10, // [10:13] is the sub-list for method output_type+ 7, // [7:10] is the sub-list for method input_type+ 7, // [7:7] is the sub-list for extension type_name+ 7, // [7:7] is the sub-list for extension extendee+ 0, // [0:7] is the sub-list for field type_name}func init() { file_v1_release_service_proto_init() }diff --git a/proto/store/release.proto b/proto/store/release.protonew file mode 100644index 0000000000..60f5aea0e5--- /dev/null+++ b/proto/store/release.proto@@ -0,0 +1,38 @@+syntax = "proto3";++package bytebase.store;++import "google/api/resource.proto";+import "store/common.proto";++option go_package = "generated-go/store";++message ReleasePayload {+ string title = 1;++ repeated File files = 2;++ VCSSource vcs_source = 3;++ message File {+ // The filename.+ string title = 1;+ // The sheet that holds the content.+ // Format: projects/{project}/sheets/{sheet}+ string sheet = 2 [(google.api.resource_reference) = {type: "bytebase.com/Sheet"}];+ // The SHA1 hash value of the sheet.+ string sheet_sha1 = 3;+ Type type = 4;+ string version = 5;++ enum Type {+ TYPE_UNSPECIFIED = 0;+ VERSIONED = 1;+ }+ }++ message VCSSource {+ VCSType vcs_type = 1;+ string pull_request_url = 2;+ }+}diff --git a/proto/v1/release_service.proto b/proto/v1/release_service.protoindex e1d50c4233..ed635c0f1b 100644--- a/proto/v1/release_service.proto+++ b/proto/v1/release_service.proto@@ -6,6 +6,7 @@ import "google/api/annotations.proto";import "google/api/client.proto";import "google/api/field_behavior.proto";import "google/api/resource.proto";+import "google/protobuf/timestamp.proto";import "v1/common.proto";option go_package = "generated-go/v1";@@ -79,19 +80,25 @@ message Release {// Format: projects/{project}/releases/{release}string name = 1;- repeated File files = 2;+ string title = 2;- VCSSource vcs_source = 3;+ repeated File files = 3;- message File {- string filename = 1;+ VCSSource vcs_source = 4;++ // Format: users/[email protected]+ string creator = 5 [(google.api.field_behavior) = OUTPUT_ONLY];++ google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];- // The sheet that holds the statement.+ message File {+ // The filename.+ string title = 1;+ // The sheet that holds the content.// Format: projects/{project}/sheets/{sheet}string sheet = 2 [(google.api.resource_reference) = {type: "bytebase.com/Sheet"}];// The SHA1 hash value of the sheet.string sheet_sha1 = 3;-Type type = 4;string version = 5;