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: remove deprecated sheet sync (#9008)
Danny Xu2e748e562965
diff --git a/backend/api/v1/sheet_service.go b/backend/api/v1/sheet_service.goindex 7eeb177d7e..b7b706519c 100644--- a/backend/api/v1/sheet_service.go+++ b/backend/api/v1/sheet_service.go@@ -3,14 +3,10 @@ package v1import ("context""fmt"- "path/filepath"- "regexp""strings"- "time""log/slog"- "github.com/pkg/errors""google.golang.org/grpc/codes""google.golang.org/grpc/status""google.golang.org/protobuf/types/known/emptypb"@@ -20,9 +16,7 @@ import ("github.com/bytebase/bytebase/backend/common/log"enterprise "github.com/bytebase/bytebase/backend/enterprise/api"api "github.com/bytebase/bytebase/backend/legacyapi"- vcsplugin "github.com/bytebase/bytebase/backend/plugin/vcs""github.com/bytebase/bytebase/backend/store"- "github.com/bytebase/bytebase/backend/utils"storepb "github.com/bytebase/bytebase/proto/generated-go/store"v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")@@ -439,254 +433,6 @@ func (s *SheetService) DeleteSheet(ctx context.Context, request *v1pb.DeleteSheereturn &emptypb.Empty{}, nil}-// SyncSheets syncs sheets from VCS.-func (s *SheetService) SyncSheets(ctx context.Context, request *v1pb.SyncSheetsRequest) (*emptypb.Empty, error) {- principalID, ok := ctx.Value(common.PrincipalIDContextKey).(int)- if !ok {- return nil, status.Errorf(codes.Internal, "principal ID not found")- }-- projectResourceID, err := common.GetProjectID(request.Parent)- if err != nil {- return nil, status.Errorf(codes.InvalidArgument, err.Error())- }- project, err := s.store.GetProjectV2(ctx, &store.FindProjectMessage{ResourceID: &projectResourceID})- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("failed to get project with resource id %q, err: %s", projectResourceID, err.Error()))- }- if project == nil {- return nil, status.Errorf(codes.NotFound, fmt.Sprintf("project with resource id %q not found", projectResourceID))- }- if project.Deleted {- return nil, status.Errorf(codes.NotFound, fmt.Sprintf("project with resource id %q had deleted", projectResourceID))- }- if project.Workflow != api.VCSWorkflow {- return nil, status.Errorf(codes.InvalidArgument, fmt.Sprintf("project with resource id %q is not a VCS enabled project", projectResourceID))- }-- projectRoles, err := s.findProjectRoles(ctx, project.UID, principalID)- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("failed to find roles in the project: %v", err))- }- if !api.ProjectPermission(api.ProjectPermissionSyncSheet, s.licenseService.GetEffectivePlan(), projectRoles) {- return nil, status.Errorf(codes.PermissionDenied, "permission denied to sync sheet for project")- }-- repo, err := s.store.GetRepositoryV2(ctx, &store.FindRepositoryMessage{ProjectResourceID: &project.ResourceID})- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("failed to find repository for sync sheet: %d", project.UID))- }- if repo == nil {- return nil, status.Errorf(codes.NotFound, fmt.Sprintf("repository not found for sync sheet: %d", project.UID))- }-- vcs, err := s.store.GetExternalVersionControlV2(ctx, repo.VCSUID)- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("failed to find VCS for sync sheet, VCSID: %d", repo.VCSUID))- }- if vcs == nil {- return nil, status.Errorf(codes.NotFound, fmt.Sprintf("VCS not found for sync sheet: %d", repo.VCSUID))- }-- setting, err := s.store.GetWorkspaceGeneralSetting(ctx)- if err != nil {- return nil, status.Errorf(codes.Internal, "failed to find workspace setting with error: %v", err.Error())- }- if setting.ExternalUrl == "" {- return nil, status.Errorf(codes.FailedPrecondition, "external url is required")- }-- basePath := filepath.Dir(repo.SheetPathTemplate)- // TODO(Steven): The repo.branchFilter could be `test/*` which cannot be the ref value.- // TODO(zp): We may need a need VCS interface to get fetch repository file list for a branch instead of a SHA1.- fileList, err := vcsplugin.Get(vcs.Type, vcsplugin.ProviderConfig{}).FetchRepositoryFileList(ctx,- common.OauthContext{- ClientID: vcs.ApplicationID,- ClientSecret: vcs.Secret,- AccessToken: repo.AccessToken,- RefreshToken: repo.RefreshToken,- Refresher: utils.RefreshToken(ctx, s.store, repo.WebURL),- RedirectURL: fmt.Sprintf("%s/oauth/callback", setting.ExternalUrl),- },- vcs.InstanceURL,- repo.ExternalID,- repo.BranchFilter,- basePath,- )- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("failed to fetch repository file list for sync sheet: %d", project.UID))- }-- for _, file := range fileList {- sheetInfo, err := parseSheetInfo(file.Path, repo.SheetPathTemplate)- if err != nil {- return nil, status.Errorf(codes.Internal, "Failed to parse sheet info from template")- }- if sheetInfo.SheetName == "" {- return nil, status.Errorf(codes.InvalidArgument, fmt.Sprintf("sheet name cannot be empty from sheet path %s with template %s", file.Path, repo.SheetPathTemplate))- }-- fileContent, err := vcsplugin.Get(vcs.Type, vcsplugin.ProviderConfig{}).ReadFileContent(ctx,- common.OauthContext{- ClientID: vcs.ApplicationID,- ClientSecret: vcs.Secret,- AccessToken: repo.AccessToken,- RefreshToken: repo.RefreshToken,- Refresher: utils.RefreshToken(ctx, s.store, repo.WebURL),- RedirectURL: fmt.Sprintf("%s/oauth/callback", setting.ExternalUrl),- },- vcs.InstanceURL,- repo.ExternalID,- file.Path,- vcsplugin.RefInfo{- RefType: vcsplugin.RefTypeBranch,- RefName: repo.BranchFilter,- },- )- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("Failed to fetch file content from VCS, instance URL: %s, repo ID: %s, file path: %s, branch: %s", vcs.InstanceURL, repo.ExternalID, file.Path, repo.BranchFilter))- }-- fileMeta, err := vcsplugin.Get(vcs.Type, vcsplugin.ProviderConfig{}).ReadFileMeta(ctx,- common.OauthContext{- ClientID: vcs.ApplicationID,- ClientSecret: vcs.Secret,- AccessToken: repo.AccessToken,- RefreshToken: repo.RefreshToken,- Refresher: utils.RefreshToken(ctx, s.store, repo.WebURL),- RedirectURL: fmt.Sprintf("%s/oauth/callback", setting.ExternalUrl),- },- vcs.InstanceURL,- repo.ExternalID,- file.Path,- vcsplugin.RefInfo{- RefType: vcsplugin.RefTypeBranch,- RefName: repo.BranchFilter,- },- )- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("Failed to fetch file meta from VCS, instance URL: %s, repo ID: %s, file path: %s, branch: %s", vcs.InstanceURL, repo.ExternalID, file.Path, repo.BranchFilter))- }-- lastCommit, err := vcsplugin.Get(vcs.Type, vcsplugin.ProviderConfig{}).FetchCommitByID(ctx,- common.OauthContext{- ClientID: vcs.ApplicationID,- ClientSecret: vcs.Secret,- AccessToken: repo.AccessToken,- RefreshToken: repo.RefreshToken,- Refresher: utils.RefreshToken(ctx, s.store, repo.WebURL),- RedirectURL: fmt.Sprintf("%s/oauth/callback", setting.ExternalUrl),- },- vcs.InstanceURL,- repo.ExternalID,- fileMeta.LastCommitID,- )- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("Failed to fetch commit data from VCS, instance URL: %s, repo ID: %s, commit ID: %s", vcs.InstanceURL, repo.ExternalID, fileMeta.LastCommitID))- }-- sheetVCSPayload := &storepb.SheetPayload{- VcsPayload: &storepb.SheetPayload_VCSPayload{- FileName: fileMeta.Name,- FilePath: fileMeta.Path,- Size: fileMeta.Size,- Author: lastCommit.AuthorName,- LastCommitId: lastCommit.ID,- LastSyncTs: time.Now().Unix(),- },- }-- var databaseID *int- // In non-tenant mode, we can set a databaseId for sheet with ENV_ID and DB_NAME,- // and ENV_ID and DB_NAME is either both present or neither present.- if project.TenantMode != api.TenantModeDisabled {- if sheetInfo.EnvironmentID != "" && sheetInfo.DatabaseName != "" {- // The database name for PostgreSQL, Oracle, Snowflake and some databases are case sensitive.- // But the database name for MySQL, TiDB and other databases are case insensitive.- // So we should find databases by case-insensitive and double-check for case sensitive database engines.- databases, err := s.store.ListDatabases(ctx, &store.FindDatabaseMessage{- ProjectID: &project.ResourceID,- DatabaseName: &sheetInfo.DatabaseName,- IgnoreCaseSensitive: true,- })- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("Failed to find database list with name: %s, project ID: %d", sheetInfo.DatabaseName, project.UID))- }- for _, database := range databases {- database := database // create a new var "database".- instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &database.InstanceID})- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("Failed to find instance with ID: %s", database.InstanceID))- }- if !store.IgnoreDatabaseAndTableCaseSensitive(instance) && database.DatabaseName != sheetInfo.DatabaseName {- continue- }- if database.EffectiveEnvironmentID == sheetInfo.EnvironmentID {- databaseID = &database.UID- break- }- }- }- }-- var sheetSource store.SheetSource- switch vcs.Type {- case vcsplugin.GitLab:- sheetSource = store.SheetFromGitLab- case vcsplugin.GitHub:- sheetSource = store.SheetFromGitHub- case vcsplugin.Bitbucket:- sheetSource = store.SheetFromBitbucket- }- vscSheetType := store.SheetForSQL- sheetFind := &store.FindSheetMessage{- Name: &sheetInfo.SheetName,- ProjectUID: &project.UID,- Source: &sheetSource,- Type: &vscSheetType,- }- sheet, err := s.store.GetSheet(ctx, sheetFind, principalID)- if err != nil {- return nil, status.Errorf(codes.Internal, fmt.Sprintf("Failed to find sheet with name: %s, project ID: %d", sheetInfo.SheetName, project.UID))- }-- if sheet == nil {- sheetCreate := &store.SheetMessage{- ProjectUID: project.UID,- CreatorID: principalID,- Name: sheetInfo.SheetName,- Statement: fileContent,- Visibility: store.ProjectSheet,- Source: sheetSource,- Type: store.SheetForSQL,- Payload: sheetVCSPayload,- }- if databaseID != nil {- sheetCreate.DatabaseUID = databaseID- }-- if _, err := s.store.CreateSheet(ctx, sheetCreate); err != nil {- return nil, status.Errorf(codes.Internal, "Failed to create sheet from VCS")- }- } else {- sheetPatch := store.PatchSheetMessage{- UID: sheet.UID,- UpdaterID: principalID,- Statement: &fileContent,- Payload: sheetVCSPayload,- }- if databaseID != nil {- sheetPatch.DatabaseUID = databaseID- }-- if _, err := s.store.PatchSheet(ctx, &sheetPatch); err != nil {- return nil, status.Errorf(codes.Internal, "Failed to patch sheet from VCS")- }- }- }- return &emptypb.Empty{}, nil-}-// UpdateSheetOrganizer upsert the sheet organizer.func (s *SheetService) UpdateSheetOrganizer(ctx context.Context, request *v1pb.UpdateSheetOrganizerRequest) (*v1pb.SheetOrganizer, error) {_, sheetUID, err := common.GetProjectResourceIDSheetUID(request.Organizer.Sheet)@@ -996,49 +742,3 @@ func convertToStoreSheetVisibility(visibility v1pb.Sheet_Visibility) (store.Sheereturn store.SheetVisibility(""), status.Errorf(codes.InvalidArgument, fmt.Sprintf("invalid visibility %q", visibility))}}--// SheetInfo represents the sheet related information from sheetPathTemplate.-type SheetInfo struct {- EnvironmentID string- DatabaseName string- SheetName string-}--// parseSheetInfo matches sheetPath against sheetPathTemplate. If sheetPath matches, then it will derive SheetInfo from the sheetPath.-// Both sheetPath and sheetPathTemplate are the full file path(including the base directory) of the repository.-func parseSheetInfo(sheetPath string, sheetPathTemplate string) (*SheetInfo, error) {- placeholderList := []string{- "ENV_ID",- "DB_NAME",- "NAME",- }- sheetPathRegex := sheetPathTemplate- for _, placeholder := range placeholderList {- sheetPathRegex = strings.ReplaceAll(sheetPathRegex, fmt.Sprintf("{{%s}}", placeholder), fmt.Sprintf("(?P<%s>[a-zA-Z0-9\\+\\-\\=\\_\\#\\!\\$\\. ]+)", placeholder))- }- sheetRegex, err := regexp.Compile(fmt.Sprintf("^%s$", sheetPathRegex))- if err != nil {- return nil, errors.Wrapf(err, "invalid sheet path template %q", sheetPathTemplate)- }- if !sheetRegex.MatchString(sheetPath) {- return nil, errors.Errorf("sheet path %q does not match sheet path template %q", sheetPath, sheetPathTemplate)- }-- matchList := sheetRegex.FindStringSubmatch(sheetPath)- sheetInfo := &SheetInfo{}- for _, placeholder := range placeholderList {- index := sheetRegex.SubexpIndex(placeholder)- if index >= 0 {- switch placeholder {- case "ENV_ID":- sheetInfo.EnvironmentID = matchList[index]- case "DB_NAME":- sheetInfo.DatabaseName = matchList[index]- case "NAME":- sheetInfo.SheetName = matchList[index]- }- }- }-- return sheetInfo, nil-}diff --git a/backend/tests/sheet_vcs_test.go b/backend/tests/sheet_vcs_test.godeleted file mode 100644index 5fdd267ae1..0000000000--- a/backend/tests/sheet_vcs_test.go+++ /dev/null@@ -1,132 +0,0 @@-package tests--import (- "context"- "fmt"- "strings"- "testing"-- "github.com/stretchr/testify/require"-- "github.com/bytebase/bytebase/backend/tests/fake"- v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"-)--func TestSheetVCS(t *testing.T) {- t.Parallel()- tests := []struct {- name string- vcsProviderCreator fake.VCSProviderCreator- vcsType v1pb.ExternalVersionControl_Type- externalID string- repositoryFullPath string- }{- {- name: "GitLab",- vcsProviderCreator: fake.NewGitLab,- vcsType: v1pb.ExternalVersionControl_GITLAB,- externalID: "121",- repositoryFullPath: "test/schemaUpdate",- },- {- name: "GitHub",- vcsProviderCreator: fake.NewGitHub,- vcsType: v1pb.ExternalVersionControl_GITHUB,- externalID: "octocat/Hello-World",- repositoryFullPath: "octocat/Hello-World",- },- }- for _, test := range tests {- // Fix the problem that closure in a for loop will always use the last element.- test := test- t.Run(test.name, func(t *testing.T) {- t.Parallel()-- a := require.New(t)- ctx := context.Background()- ctl := &controller{}- ctx, err := ctl.StartServerWithExternalPg(ctx, &config{- dataDir: t.TempDir(),- vcsProviderCreator: test.vcsProviderCreator,- })- a.NoError(err)- defer func() {- _ = ctl.Close(ctx)- }()-- // Create a VCS.- evcs, err := ctl.evcsClient.CreateExternalVersionControl(ctx, &v1pb.CreateExternalVersionControlRequest{- ExternalVersionControl: &v1pb.ExternalVersionControl{- Title: t.Name(),- Type: test.vcsType,- Url: ctl.vcsURL,- ApiUrl: ctl.vcsProvider.APIURL(ctl.vcsURL),- ApplicationId: "testApplicationID",- Secret: "testApplicationSecret",- },- })- a.NoError(err)-- // Create a repository.- ctl.vcsProvider.CreateRepository(test.externalID)-- // Create the branch- err = ctl.vcsProvider.CreateBranch(test.externalID, "feature/foo")- a.NoError(err)-- _, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{- ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{- Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),- VcsUid: strings.TrimPrefix(evcs.Name, "externalVersionControls/"),- Title: "Test Repository",- FullPath: test.repositoryFullPath,- WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),- BranchFilter: "feature/foo",- BaseDirectory: baseDirectory,- FilePathTemplate: "{{ENV_ID}}/{{DB_NAME}}##{{VERSION}}##{{TYPE}}##{{DESCRIPTION}}.sql",- SchemaPathTemplate: "{{ENV_ID}}/.{{DB_NAME}}##LATEST.sql",- SheetPathTemplate: "sheet/{{NAME}}.sql",- ExternalId: test.externalID,- AccessToken: "accessToken1",- RefreshToken: "refreshToken1",- },- AllowMissing: true,- })- a.NoError(err)-- // Initial git files.- gitFile := "sheet/all_employee.sql"- fileContent := "SELECT * FROM employee"- files := map[string]string{- gitFile: fileContent,- }- files[gitFile] = fileContent- err = ctl.vcsProvider.AddFiles(test.externalID, files)- a.NoError(err)-- resp, err := ctl.sheetServiceClient.SearchSheets(ctx, &v1pb.SearchSheetsRequest{- Parent: "projects/-",- Filter: "creator = users/[email protected]",- })- a.NoError(err)- sheetsBefore := resp.Sheets- a.NoError(err)-- _, err = ctl.sheetServiceClient.SyncSheets(ctx, &v1pb.SyncSheetsRequest{Parent: ctl.project.Name})- a.NoError(err)-- resp, err = ctl.sheetServiceClient.SearchSheets(ctx, &v1pb.SearchSheetsRequest{- Parent: "projects/-",- Filter: "creator = users/[email protected]",- })- a.NoError(err)- sheetsAfter := resp.Sheets- a.NoError(err)- a.Len(sheetsAfter, len(sheetsBefore)+1)-- sheetFromVCS := sheetsAfter[len(sheetsAfter)-1]- a.Equal("all_employee", sheetFromVCS.Title)- a.Equal(fileContent, string(sheetFromVCS.Content))- })- }-}diff --git a/frontend/src/types/proto/v1/sheet_service.ts b/frontend/src/types/proto/v1/sheet_service.tsindex 10aadeef92..89d34a1232 100644--- a/frontend/src/types/proto/v1/sheet_service.ts+++ b/frontend/src/types/proto/v1/sheet_service.ts@@ -133,15 +133,6 @@ export interface SearchSheetsResponse {nextPageToken: string;}-export interface SyncSheetsRequest {- /**- * The name of the project to sync sheets.- *- * Format: projects/{project}- */- parent: string;-}-export interface Sheet {/*** The name of the sheet resource, generated by the server.@@ -975,62 +966,6 @@ export const SearchSheetsResponse = {},};-function createBaseSyncSheetsRequest(): SyncSheetsRequest {- return { parent: "" };-}--export const SyncSheetsRequest = {- encode(message: SyncSheetsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.parent !== "") {- writer.uint32(10).string(message.parent);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): SyncSheetsRequest {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSyncSheetsRequest();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 10) {- break;- }-- message.parent = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): SyncSheetsRequest {- return { parent: isSet(object.parent) ? String(object.parent) : "" };- },-- toJSON(message: SyncSheetsRequest): unknown {- const obj: any = {};- message.parent !== undefined && (obj.parent = message.parent);- return obj;- },-- create(base?: DeepPartial<SyncSheetsRequest>): SyncSheetsRequest {- return SyncSheetsRequest.fromPartial(base ?? {});- },-- fromPartial(object: DeepPartial<SyncSheetsRequest>): SyncSheetsRequest {- const message = createBaseSyncSheetsRequest();- message.parent = object.parent ?? "";- return message;- },-};-function createBaseSheet(): Sheet {return {name: "",@@ -1755,60 +1690,6 @@ export const SheetServiceDefinition = {},},},- syncSheets: {- name: "SyncSheets",- requestType: SyncSheetsRequest,- requestStream: false,- responseType: Empty,- responseStream: false,- options: {- _unknownFields: {- 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],- 578365826: [- new Uint8Array([- 37,- 34,- 35,- 47,- 118,- 49,- 47,- 123,- 112,- 97,- 114,- 101,- 110,- 116,- 61,- 112,- 114,- 111,- 106,- 101,- 99,- 116,- 115,- 47,- 42,- 125,- 47,- 115,- 104,- 101,- 101,- 116,- 115,- 58,- 115,- 121,- 110,- 99,- ]),- ],- },- },- },},} as const;diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex f8b6ab2bba..073dafe78d 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -603,7 +603,6 @@- [Sheet](#bytebase-v1-Sheet)- [SheetOrganizer](#bytebase-v1-SheetOrganizer)- [SheetPayload](#bytebase-v1-SheetPayload)- - [SyncSheetsRequest](#bytebase-v1-SyncSheetsRequest)- [UpdateSheetOrganizerRequest](#bytebase-v1-UpdateSheetOrganizerRequest)- [UpdateSheetRequest](#bytebase-v1-UpdateSheetRequest)@@ -9646,23 +9645,6 @@ When paginating, all other parameters provided to `SearchSheets` must match the-<a name="bytebase-v1-SyncSheetsRequest"></a>--### SyncSheetsRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the project to sync sheets.--Format: projects/{project} |------<a name="bytebase-v1-UpdateSheetOrganizerRequest"></a>### UpdateSheetOrganizerRequest@@ -9772,7 +9754,6 @@ Type of the SheetPayload.| UpdateSheet | [UpdateSheetRequest](#bytebase-v1-UpdateSheetRequest) | [Sheet](#bytebase-v1-Sheet) | || UpdateSheetOrganizer | [UpdateSheetOrganizerRequest](#bytebase-v1-UpdateSheetOrganizerRequest) | [SheetOrganizer](#bytebase-v1-SheetOrganizer) | || DeleteSheet | [DeleteSheetRequest](#bytebase-v1-DeleteSheetRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| SyncSheets | [SyncSheetsRequest](#bytebase-v1-SyncSheetsRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |diff --git a/proto/generated-go/v1/sheet_service.pb.go b/proto/generated-go/v1/sheet_service.pb.goindex 53c111ca4d..8e31339e8c 100644--- a/proto/generated-go/v1/sheet_service.pb.go+++ b/proto/generated-go/v1/sheet_service.pb.go@@ -76,7 +76,7 @@ func (x Sheet_Visibility) Number() protoreflect.EnumNumber {// Deprecated: Use Sheet_Visibility.Descriptor instead.func (Sheet_Visibility) EnumDescriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{9, 0}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{8, 0}}type Sheet_Source int32@@ -139,7 +139,7 @@ func (x Sheet_Source) Number() protoreflect.EnumNumber {// Deprecated: Use Sheet_Source.Descriptor instead.func (Sheet_Source) EnumDescriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{9, 1}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{8, 1}}type Sheet_Type int32@@ -185,7 +185,7 @@ func (x Sheet_Type) Number() protoreflect.EnumNumber {// Deprecated: Use Sheet_Type.Descriptor instead.func (Sheet_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{9, 2}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{8, 2}}// Type of the SheetPayload.@@ -232,7 +232,7 @@ func (x SheetPayload_Type) Number() protoreflect.EnumNumber {// Deprecated: Use SheetPayload_Type.Descriptor instead.func (SheetPayload_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{10, 0}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{9, 0}}type CreateSheetRequest struct {@@ -743,56 +743,6 @@ func (x *SearchSheetsResponse) GetNextPageToken() string {return ""}-type SyncSheetsRequest struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- // The name of the project to sync sheets.- //- // Format: projects/{project}- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`-}--func (x *SyncSheetsRequest) Reset() {- *x = SyncSheetsRequest{}- if protoimpl.UnsafeEnabled {- mi := &file_v1_sheet_service_proto_msgTypes[8]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *SyncSheetsRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SyncSheetsRequest) ProtoMessage() {}--func (x *SyncSheetsRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_sheet_service_proto_msgTypes[8]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SyncSheetsRequest.ProtoReflect.Descriptor instead.-func (*SyncSheetsRequest) Descriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{8}-}--func (x *SyncSheetsRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}-type Sheet struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -835,7 +785,7 @@ type Sheet struct {func (x *Sheet) Reset() {*x = Sheet{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sheet_service_proto_msgTypes[9]+ mi := &file_v1_sheet_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -848,7 +798,7 @@ func (x *Sheet) String() string {func (*Sheet) ProtoMessage() {}func (x *Sheet) ProtoReflect() protoreflect.Message {- mi := &file_v1_sheet_service_proto_msgTypes[9]+ mi := &file_v1_sheet_service_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -861,7 +811,7 @@ func (x *Sheet) ProtoReflect() protoreflect.Message {// Deprecated: Use Sheet.ProtoReflect.Descriptor instead.func (*Sheet) Descriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{9}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{8}}func (x *Sheet) GetName() string {@@ -977,7 +927,7 @@ type SheetPayload struct {func (x *SheetPayload) Reset() {*x = SheetPayload{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sheet_service_proto_msgTypes[10]+ mi := &file_v1_sheet_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -990,7 +940,7 @@ func (x *SheetPayload) String() string {func (*SheetPayload) ProtoMessage() {}func (x *SheetPayload) ProtoReflect() protoreflect.Message {- mi := &file_v1_sheet_service_proto_msgTypes[10]+ mi := &file_v1_sheet_service_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1003,7 +953,7 @@ func (x *SheetPayload) ProtoReflect() protoreflect.Message {// Deprecated: Use SheetPayload.ProtoReflect.Descriptor instead.func (*SheetPayload) Descriptor() ([]byte, []int) {- return file_v1_sheet_service_proto_rawDescGZIP(), []int{10}+ return file_v1_sheet_service_proto_rawDescGZIP(), []int{9}}func (x *SheetPayload) GetType() SheetPayload_Type {@@ -1098,148 +1048,138 @@ var file_v1_sheet_service_proto_rawDesc = []byte{0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x06, 0x73, 0x68, 0x65, 0x65, 0x74,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, 0x2b, 0x0a, 0x11, 0x53, 0x79, 0x6e,- 0x63, 0x53, 0x68, 0x65, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,- 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0xac, 0x07, 0x0a, 0x05, 0x53, 0x68, 0x65, 0x65, 0x74,- 0x12, 0x1a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06,- 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, 0x69,- 0x74, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,- 0x6f, 0x72, 0x12, 0x40, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,- 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x63, 0x6f,- 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,- 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03,- 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x42, 0x0a,- 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x53, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74,- 0x79, 0x12, 0x36, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x53, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41,- 0x03, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70,- 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x73,- 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41,- 0x03, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x70, 0x61,- 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50,- 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12,- 0x35, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x0e, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x70, 0x75, 0x73,- 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x6f, 0x0a, 0x0a, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69,- 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49,- 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,- 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50,- 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53, 0x49, 0x42,- 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x12,- 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52,- 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x03, 0x22, 0x8f, 0x01, 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, 0x13, 0x0a, 0x0f, 0x53, 0x4f,- 0x55, 0x52, 0x43, 0x45, 0x5f, 0x42, 0x59, 0x54, 0x45, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12,- 0x1c, 0x0a, 0x18, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x42, 0x59, 0x54, 0x45, 0x42, 0x41,- 0x53, 0x45, 0x5f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x10, 0x02, 0x12, 0x11, 0x0a,- 0x0d, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x03,- 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x48, 0x55,- 0x42, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x42, 0x49,- 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x05, 0x22, 0x2a, 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, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x53, 0x51, 0x4c, 0x10, 0x01, 0x22, 0x90, 0x02, 0x0a, 0x0c, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50,- 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e,- 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x12, 0x55, 0x0a, 0x18, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,- 0x16, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x2f, 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, 0x11, 0x0a, 0x0d, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f,- 0x44, 0x45, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x32, 0xc4, 0x07, 0x0a, 0x0c, 0x53, 0x68, 0x65,- 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x0b, 0x43, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68,- 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22, 0x3c,- 0xda, 0x41, 0x0c, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x68, 0x65, 0x65, 0x74, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x1e, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,- 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12, 0x6b, 0x0a, 0x08,- 0x47, 0x65, 0x74, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22, 0x2d, 0xda, 0x41, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b,- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x0c, 0x53, 0x65,- 0x61, 0x72, 0x63, 0x68, 0x53, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53,- 0x68, 0x65, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,- 0x68, 0x53, 0x68, 0x65, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,- 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x8b,- 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1f,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68,- 0x65, 0x65, 0x74, 0x22, 0x47, 0xda, 0x41, 0x11, 0x73, 0x68, 0x65, 0x65, 0x74, 0x2c, 0x75, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a,- 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x32, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x68, 0x65,- 0x65, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xbd, 0x01, 0x0a,- 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61,- 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x4f,- 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68,- 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x22, 0x5e, 0xda, 0x41,- 0x15, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x3a, 0x09, 0x6f, 0x72,- 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x1a, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6f, 0x72,- 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x73, 0x68, 0x65, 0x65, 0x74, 0x3d, 0x70, 0x72,- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f,- 0x2a, 0x7d, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x75, 0x0a, 0x0b,- 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,- 0x53, 0x68, 0x65, 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, 0x2d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,- 0x93, 0x02, 0x20, 0x2a, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73,- 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a, 0x0a, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x65, 0x65, 0x74,- 0x73, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x65, 0x65, 0x74, 0x73, 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, 0xda, 0x41, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x2f,+ 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xac, 0x07, 0x0a, 0x05, 0x53, 0x68,+ 0x65, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,+ 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x74,+ 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,+ 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,+ 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x63, 0x72,+ 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x40, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65,+ 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,+ 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74,+ 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03,+ 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65,+ 0x12, 0x42, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x09,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c,+ 0x69, 0x74, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69,+ 0x6c, 0x69, 0x74, 0x79, 0x12, 0x36, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0a,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42,+ 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x04,+ 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x54,+ 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d,+ 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x42,+ 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x12, 0x33, 0x0a,+ 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65,+ 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,+ 0x61, 0x64, 0x12, 0x35, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74,+ 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x09,+ 0x70, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x6f, 0x0a, 0x0a, 0x56, 0x69, 0x73,+ 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42,+ 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,+ 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54,+ 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49,+ 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54,+ 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59,+ 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x03, 0x22, 0x8f, 0x01, 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, 0x13, 0x0a,+ 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x42, 0x59, 0x54, 0x45, 0x42, 0x41, 0x53, 0x45,+ 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x42, 0x59, 0x54,+ 0x45, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x10, 0x02,+ 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x4c, 0x41,+ 0x42, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x47, 0x49,+ 0x54, 0x48, 0x55, 0x42, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,+ 0x5f, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x05, 0x22, 0x2a, 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, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x53, 0x51, 0x4c, 0x10, 0x01, 0x22, 0x90, 0x02, 0x0a, 0x0c, 0x53, 0x68, 0x65,+ 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f,+ 0x61, 0x64, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a,+ 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x18, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f,+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x52, 0x16, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x2f, 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, 0x11, 0x0a, 0x0d, 0x53, 0x43, 0x48, 0x45,+ 0x4d, 0x41, 0x5f, 0x44, 0x45, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x32, 0xc8, 0x06, 0x0a, 0x0c,+ 0x53, 0x68, 0x65, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x80, 0x01, 0x0a,+ 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,+ 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65,+ 0x74, 0x22, 0x3c, 0xda, 0x41, 0x0c, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x68, 0x65,+ 0x65, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22,+ 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12,+ 0x6b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1c, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x65,+ 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22, 0x2d, 0xda,+ 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x82, 0x01, 0x0a,+ 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12, 0x20, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72,+ 0x63, 0x68, 0x53, 0x68, 0x65, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,+ 0x61, 0x72, 0x63, 0x68, 0x53, 0x68, 0x65, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f,0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x3a, 0x73, 0x79, 0x6e, 0x63, 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, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63,+ 0x68, 0x12, 0x8b, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65,+ 0x74, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x22, 0x47, 0xda, 0x41, 0x11, 0x73, 0x68, 0x65, 0x65, 0x74,+ 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x2d, 0x3a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x32, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x73, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12,+ 0xbd, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x4f,+ 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x65,+ 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x22,+ 0x5e, 0xda, 0x41, 0x15, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x2c, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x3a,+ 0x09, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x1a, 0x33, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x73, 0x68, 0x65, 0x65, 0x74,+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65, 0x65,+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12,+ 0x75, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1f,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x53, 0x68, 0x65, 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, 0x2d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x2a, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,+ 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x68, 0x65,+ 0x65, 0x74, 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 (@@ -1255,7 +1195,7 @@ func file_v1_sheet_service_proto_rawDescGZIP() []byte {}var file_v1_sheet_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)-var file_v1_sheet_service_proto_msgTypes = make([]protoimpl.MessageInfo, 11)+var file_v1_sheet_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)var file_v1_sheet_service_proto_goTypes = []interface{}{(Sheet_Visibility)(0), // 0: bytebase.v1.Sheet.Visibility(Sheet_Source)(0), // 1: bytebase.v1.Sheet.Source@@ -1269,48 +1209,45 @@ var file_v1_sheet_service_proto_goTypes = []interface{}{(*DeleteSheetRequest)(nil), // 9: bytebase.v1.DeleteSheetRequest(*SearchSheetsRequest)(nil), // 10: bytebase.v1.SearchSheetsRequest(*SearchSheetsResponse)(nil), // 11: bytebase.v1.SearchSheetsResponse- (*SyncSheetsRequest)(nil), // 12: bytebase.v1.SyncSheetsRequest- (*Sheet)(nil), // 13: bytebase.v1.Sheet- (*SheetPayload)(nil), // 14: bytebase.v1.SheetPayload- (*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp- (*PushEvent)(nil), // 17: bytebase.v1.PushEvent- (*DatabaseConfig)(nil), // 18: bytebase.v1.DatabaseConfig- (*emptypb.Empty)(nil), // 19: google.protobuf.Empty+ (*Sheet)(nil), // 12: bytebase.v1.Sheet+ (*SheetPayload)(nil), // 13: bytebase.v1.SheetPayload+ (*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp+ (*PushEvent)(nil), // 16: bytebase.v1.PushEvent+ (*DatabaseConfig)(nil), // 17: bytebase.v1.DatabaseConfig+ (*emptypb.Empty)(nil), // 18: google.protobuf.Empty}var file_v1_sheet_service_proto_depIdxs = []int32{- 13, // 0: bytebase.v1.CreateSheetRequest.sheet:type_name -> bytebase.v1.Sheet- 13, // 1: bytebase.v1.UpdateSheetRequest.sheet:type_name -> bytebase.v1.Sheet- 15, // 2: bytebase.v1.UpdateSheetRequest.update_mask:type_name -> google.protobuf.FieldMask+ 12, // 0: bytebase.v1.CreateSheetRequest.sheet:type_name -> bytebase.v1.Sheet+ 12, // 1: bytebase.v1.UpdateSheetRequest.sheet:type_name -> bytebase.v1.Sheet+ 14, // 2: bytebase.v1.UpdateSheetRequest.update_mask:type_name -> google.protobuf.FieldMask8, // 3: bytebase.v1.UpdateSheetOrganizerRequest.organizer:type_name -> bytebase.v1.SheetOrganizer- 15, // 4: bytebase.v1.UpdateSheetOrganizerRequest.update_mask:type_name -> google.protobuf.FieldMask- 13, // 5: bytebase.v1.SearchSheetsResponse.sheets:type_name -> bytebase.v1.Sheet- 16, // 6: bytebase.v1.Sheet.create_time:type_name -> google.protobuf.Timestamp- 16, // 7: bytebase.v1.Sheet.update_time:type_name -> google.protobuf.Timestamp+ 14, // 4: bytebase.v1.UpdateSheetOrganizerRequest.update_mask:type_name -> google.protobuf.FieldMask+ 12, // 5: bytebase.v1.SearchSheetsResponse.sheets:type_name -> bytebase.v1.Sheet+ 15, // 6: bytebase.v1.Sheet.create_time:type_name -> google.protobuf.Timestamp+ 15, // 7: bytebase.v1.Sheet.update_time:type_name -> google.protobuf.Timestamp0, // 8: bytebase.v1.Sheet.visibility:type_name -> bytebase.v1.Sheet.Visibility1, // 9: bytebase.v1.Sheet.source:type_name -> bytebase.v1.Sheet.Source2, // 10: bytebase.v1.Sheet.type:type_name -> bytebase.v1.Sheet.Type- 14, // 11: bytebase.v1.Sheet.payload:type_name -> bytebase.v1.SheetPayload- 17, // 12: bytebase.v1.Sheet.push_event:type_name -> bytebase.v1.PushEvent+ 13, // 11: bytebase.v1.Sheet.payload:type_name -> bytebase.v1.SheetPayload+ 16, // 12: bytebase.v1.Sheet.push_event:type_name -> bytebase.v1.PushEvent3, // 13: bytebase.v1.SheetPayload.type:type_name -> bytebase.v1.SheetPayload.Type- 18, // 14: bytebase.v1.SheetPayload.database_config:type_name -> bytebase.v1.DatabaseConfig- 18, // 15: bytebase.v1.SheetPayload.baseline_database_config:type_name -> bytebase.v1.DatabaseConfig+ 17, // 14: bytebase.v1.SheetPayload.database_config:type_name -> bytebase.v1.DatabaseConfig+ 17, // 15: bytebase.v1.SheetPayload.baseline_database_config:type_name -> bytebase.v1.DatabaseConfig4, // 16: bytebase.v1.SheetService.CreateSheet:input_type -> bytebase.v1.CreateSheetRequest5, // 17: bytebase.v1.SheetService.GetSheet:input_type -> bytebase.v1.GetSheetRequest10, // 18: bytebase.v1.SheetService.SearchSheets:input_type -> bytebase.v1.SearchSheetsRequest6, // 19: bytebase.v1.SheetService.UpdateSheet:input_type -> bytebase.v1.UpdateSheetRequest7, // 20: bytebase.v1.SheetService.UpdateSheetOrganizer:input_type -> bytebase.v1.UpdateSheetOrganizerRequest9, // 21: bytebase.v1.SheetService.DeleteSheet:input_type -> bytebase.v1.DeleteSheetRequest- 12, // 22: bytebase.v1.SheetService.SyncSheets:input_type -> bytebase.v1.SyncSheetsRequest- 13, // 23: bytebase.v1.SheetService.CreateSheet:output_type -> bytebase.v1.Sheet- 13, // 24: bytebase.v1.SheetService.GetSheet:output_type -> bytebase.v1.Sheet- 11, // 25: bytebase.v1.SheetService.SearchSheets:output_type -> bytebase.v1.SearchSheetsResponse- 13, // 26: bytebase.v1.SheetService.UpdateSheet:output_type -> bytebase.v1.Sheet- 8, // 27: bytebase.v1.SheetService.UpdateSheetOrganizer:output_type -> bytebase.v1.SheetOrganizer- 19, // 28: bytebase.v1.SheetService.DeleteSheet:output_type -> google.protobuf.Empty- 19, // 29: bytebase.v1.SheetService.SyncSheets:output_type -> google.protobuf.Empty- 23, // [23:30] is the sub-list for method output_type- 16, // [16:23] is the sub-list for method input_type+ 12, // 22: bytebase.v1.SheetService.CreateSheet:output_type -> bytebase.v1.Sheet+ 12, // 23: bytebase.v1.SheetService.GetSheet:output_type -> bytebase.v1.Sheet+ 11, // 24: bytebase.v1.SheetService.SearchSheets:output_type -> bytebase.v1.SearchSheetsResponse+ 12, // 25: bytebase.v1.SheetService.UpdateSheet:output_type -> bytebase.v1.Sheet+ 8, // 26: bytebase.v1.SheetService.UpdateSheetOrganizer:output_type -> bytebase.v1.SheetOrganizer+ 18, // 27: bytebase.v1.SheetService.DeleteSheet:output_type -> google.protobuf.Empty+ 22, // [22:28] is the sub-list for method output_type+ 16, // [16:22] is the sub-list for method input_type16, // [16:16] is the sub-list for extension type_name16, // [16:16] is the sub-list for extension extendee0, // [0:16] is the sub-list for field type_name@@ -1421,18 +1358,6 @@ func file_v1_sheet_service_proto_init() {}}file_v1_sheet_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SyncSheetsRequest); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_v1_sheet_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*Sheet); i {case 0:return &v.state@@ -1444,7 +1369,7 @@ func file_v1_sheet_service_proto_init() {return nil}}- file_v1_sheet_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ file_v1_sheet_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SheetPayload); i {case 0:return &v.state@@ -1463,7 +1388,7 @@ func file_v1_sheet_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_sheet_service_proto_rawDesc,NumEnums: 4,- NumMessages: 11,+ NumMessages: 10,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/sheet_service.pb.gw.go b/proto/generated-go/v1/sheet_service.pb.gw.goindex 23a99529f9..94ba81c3aa 100644--- a/proto/generated-go/v1/sheet_service.pb.gw.go+++ b/proto/generated-go/v1/sheet_service.pb.gw.go@@ -477,58 +477,6 @@ func local_request_SheetService_DeleteSheet_0(ctx context.Context, marshaler run}-func request_SheetService_SyncSheets_0(ctx context.Context, marshaler runtime.Marshaler, client SheetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq SyncSheetsRequest- 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)- }-- msg, err := client.SyncSheets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err--}--func local_request_SheetService_SyncSheets_0(ctx context.Context, marshaler runtime.Marshaler, server SheetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq SyncSheetsRequest- 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)- }-- msg, err := server.SyncSheets(ctx, &protoReq)- return msg, metadata, err--}-// RegisterSheetServiceHandlerServer registers the http handlers for service SheetService to "mux".// UnaryRPC :call SheetServiceServer directly.// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.@@ -685,31 +633,6 @@ func RegisterSheetServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu})- mux.Handle("POST", pattern_SheetService_SyncSheets_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.SheetService/SyncSheets", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/sheets:sync"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_SheetService_SyncSheets_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_SheetService_SyncSheets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-return nil}@@ -883,28 +806,6 @@ func RegisterSheetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu})- mux.Handle("POST", pattern_SheetService_SyncSheets_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.SheetService/SyncSheets", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/sheets:sync"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_SheetService_SyncSheets_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }-- forward_SheetService_SyncSheets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)-- })-return nil}@@ -920,8 +821,6 @@ var (pattern_SheetService_UpdateSheetOrganizer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "projects", "sheets", "organizer.sheet", "organizer"}, ""))pattern_SheetService_DeleteSheet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "sheets", "name"}, ""))-- pattern_SheetService_SyncSheets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "sheets"}, "sync")))var (@@ -936,6 +835,4 @@ var (forward_SheetService_UpdateSheetOrganizer_0 = runtime.ForwardResponseMessageforward_SheetService_DeleteSheet_0 = runtime.ForwardResponseMessage-- forward_SheetService_SyncSheets_0 = runtime.ForwardResponseMessage)diff --git a/proto/generated-go/v1/sheet_service_grpc.pb.go b/proto/generated-go/v1/sheet_service_grpc.pb.goindex 9c8c91551a..fcd4ceb291 100644--- a/proto/generated-go/v1/sheet_service_grpc.pb.go+++ b/proto/generated-go/v1/sheet_service_grpc.pb.go@@ -26,7 +26,6 @@ const (SheetService_UpdateSheet_FullMethodName = "/bytebase.v1.SheetService/UpdateSheet"SheetService_UpdateSheetOrganizer_FullMethodName = "/bytebase.v1.SheetService/UpdateSheetOrganizer"SheetService_DeleteSheet_FullMethodName = "/bytebase.v1.SheetService/DeleteSheet"- SheetService_SyncSheets_FullMethodName = "/bytebase.v1.SheetService/SyncSheets")// SheetServiceClient is the client API for SheetService service.@@ -39,7 +38,6 @@ type SheetServiceClient interface {UpdateSheet(ctx context.Context, in *UpdateSheetRequest, opts ...grpc.CallOption) (*Sheet, error)UpdateSheetOrganizer(ctx context.Context, in *UpdateSheetOrganizerRequest, opts ...grpc.CallOption) (*SheetOrganizer, error)DeleteSheet(ctx context.Context, in *DeleteSheetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)- SyncSheets(ctx context.Context, in *SyncSheetsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)}type sheetServiceClient struct {@@ -104,15 +102,6 @@ func (c *sheetServiceClient) DeleteSheet(ctx context.Context, in *DeleteSheetReqreturn out, nil}-func (c *sheetServiceClient) SyncSheets(ctx context.Context, in *SyncSheetsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {- out := new(emptypb.Empty)- err := c.cc.Invoke(ctx, SheetService_SyncSheets_FullMethodName, in, out, opts...)- if err != nil {- return nil, err- }- return out, nil-}-// SheetServiceServer is the server API for SheetService service.// All implementations must embed UnimplementedSheetServiceServer// for forward compatibility@@ -123,7 +112,6 @@ type SheetServiceServer interface {UpdateSheet(context.Context, *UpdateSheetRequest) (*Sheet, error)UpdateSheetOrganizer(context.Context, *UpdateSheetOrganizerRequest) (*SheetOrganizer, error)DeleteSheet(context.Context, *DeleteSheetRequest) (*emptypb.Empty, error)- SyncSheets(context.Context, *SyncSheetsRequest) (*emptypb.Empty, error)mustEmbedUnimplementedSheetServiceServer()}@@ -149,9 +137,6 @@ func (UnimplementedSheetServiceServer) UpdateSheetOrganizer(context.Context, *Upfunc (UnimplementedSheetServiceServer) DeleteSheet(context.Context, *DeleteSheetRequest) (*emptypb.Empty, error) {return nil, status.Errorf(codes.Unimplemented, "method DeleteSheet not implemented")}-func (UnimplementedSheetServiceServer) SyncSheets(context.Context, *SyncSheetsRequest) (*emptypb.Empty, error) {- return nil, status.Errorf(codes.Unimplemented, "method SyncSheets not implemented")-}func (UnimplementedSheetServiceServer) mustEmbedUnimplementedSheetServiceServer() {}// UnsafeSheetServiceServer may be embedded to opt out of forward compatibility for this service.@@ -273,24 +258,6 @@ func _SheetService_DeleteSheet_Handler(srv interface{}, ctx context.Context, decreturn interceptor(ctx, in, info, handler)}-func _SheetService_SyncSheets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(SyncSheetsRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(SheetServiceServer).SyncSheets(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: SheetService_SyncSheets_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(SheetServiceServer).SyncSheets(ctx, req.(*SyncSheetsRequest))- }- return interceptor(ctx, in, info, handler)-}-// SheetService_ServiceDesc is the grpc.ServiceDesc for SheetService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)@@ -322,10 +289,6 @@ var SheetService_ServiceDesc = grpc.ServiceDesc{MethodName: "DeleteSheet",Handler: _SheetService_DeleteSheet_Handler,},- {- MethodName: "SyncSheets",- Handler: _SheetService_SyncSheets_Handler,- },},Streams: []grpc.StreamDesc{},Metadata: "v1/sheet_service.proto",diff --git a/proto/v1/sheet_service.proto b/proto/v1/sheet_service.protoindex 05a03e9f2d..2385851a1e 100644--- a/proto/v1/sheet_service.proto+++ b/proto/v1/sheet_service.proto@@ -51,11 +51,6 @@ service SheetService {option (google.api.http) = {delete: "/v1/{name=projects/*/sheets/*}"};option (google.api.method_signature) = "name";}-- rpc SyncSheets(SyncSheetsRequest) returns (google.protobuf.Empty) {- option (google.api.http) = {post: "/v1/{parent=projects/*}/sheets:sync"};- option (google.api.method_signature) = "parent";- }}message CreateSheetRequest {@@ -162,13 +157,6 @@ message SearchSheetsResponse {string next_page_token = 2;}-message SyncSheetsRequest {- // The name of the project to sync sheets.- //- // Format: projects/{project}- string parent = 1;-}-message Sheet {// The name of the sheet resource, generated by the server.// Canonical parent is project.